@charset "UTF-8";
:root {
  color-scheme:dark;
  --bg:#10181c;
  --panel:#172126;
  --line:#304047;
  --text:#edf3ee;
  --muted:#a4b5b8;
  --accent:#b3edb0;
  --green:#8bdfb4;
  --red:#f08a7e;
  --blue:#82aef5;
  font-family:Inter,"Segoe UI",sans-serif;
  font-size:16px
}

* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text)
}
a {
  color:inherit
}
button,input,select {
  font:inherit
}
button,select,input[type=number] {
  border:1px solid var(--line);
  border-radius:7px;
  background:#1f2b31;
  color:var(--text);
  min-height:40px
}
button {
  cursor:pointer;
  padding:.6rem .85rem;
  font-size:.875rem;
  font-weight:600;
  transition:background .15s
}
button:hover {
  background:#31424a
}
button:disabled {
  opacity:.5;
  cursor:default
}
button.primary {
  background:var(--accent);
  color:#163322;
  border-color:var(--accent)
}
button.primary:hover {
  background:#c9f5c6
}
button.subtle {
  background:#25372f;
  border-color:#48634e;
  color:#d0eccc
}
button.subtle:hover {
  background:#314b3a
}
:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:4px
}
input,select {
  width:100%;
  padding:.55rem .7rem
}
input[type=checkbox] {
  width:16px;
  height:16px;
  accent-color:var(--accent);
  flex-shrink:0
}
input[type=range] {
  padding:0;
  accent-color:var(--accent);
  height:24px;
  cursor:pointer
}
select {
  appearance:none;
  padding-right:2.2rem;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%23a4b5b8' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right .8rem center
}
label {
  display:block;
  font-size:.875rem;
  margin-bottom:.5rem
}
p {
  line-height:1.65
}
h1,h2,h3,p {
  margin-top:0
}
.masthead {
  max-width:1480px;
  margin:auto;
  padding:1.7rem 3rem;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:1.3rem
}
.brand {
  font-weight:750;
  letter-spacing:.16em;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:.8rem;
  font-size:.9rem
}
.brand-mark {
  display:grid;
  gap:3px;
  transform:rotate(-17deg)
}
.brand-mark i {
  display:block;
  width:22px;
  height:5px;
  background:var(--green)
}
.brand-mark i:nth-child(2) {
  background:var(--red)
}
.brand-mark i:nth-child(3) {
  background:var(--blue)
}
.masthead-note {
  color:var(--muted);
  font-size:.875rem;
  border-left:1px solid var(--line);
  padding-left:1.3rem
}
.source-link {
  margin-left:auto;
  color:var(--muted);
  font-size:.875rem;
  text-underline-offset:5px
}
main {
  max-width:1480px;
  margin:auto;
  padding:0 3rem
}
.intro {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:3rem;
  padding:3.3rem 0 2.6rem
}
.eyebrow {
  font-size:.75rem;
  letter-spacing:.16em;
  font-weight:650;
  color:var(--accent);
  margin-bottom:.9rem
}
h1 {
  font-size:clamp(2.5rem,4.2vw,4.25rem);
  line-height:1.08;
  font-weight:550;
  letter-spacing:-.045em;
  margin:0
}
h1 span {
  color:var(--accent)
}
.intro-copy {
  max-width:360px;
  margin:0 0 .2rem;
  color:var(--muted);
  font-size:1rem
}
.playground {
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:var(--panel)
}
.controls {
  padding:1.5rem;
  border-right:1px solid var(--line);
  max-height:930px;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:var(--line) transparent
}
.panel-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  margin-bottom:1.1rem
}
.panel-title h2 {
  font-size:1rem;
  font-weight:650;
  margin:0
}
.state-label {
  font-size:.75rem;
  padding:.25rem .55rem;
  border:1px solid #49644f;
  border-radius:20px;
  color:var(--accent)
}
.muted {
  color:var(--muted);
  font-size:.8rem
}
.pair {
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:.8rem;
  margin-top:1rem
}
.check {
  display:flex;
  align-items:center;
  gap:.45rem;
  line-height:1.4;
  margin:1rem 0;
  font-size:.8rem;
  color:var(--muted)
}
.full {
  width:100%
}
.hint {
  font-size:.8rem;
  color:var(--muted);
  line-height:1.55;
  margin:.65rem 0 1rem
}
.divider {
  border-top:1px solid var(--line);
  margin:1.35rem 0
}
.transport {
  display:flex;
  gap:.4rem;
  margin:1rem 0 1.25rem
}
.transport .primary {
  flex:1
}
.speed-label {
  display:flex;
  justify-content:space-between;
  font-size:.8rem
}
.speed-label output {
  color:var(--muted)
}
.rule {
  border:0;
  border-top:1px solid var(--line);
  padding:1rem 0;
  margin:0;
  min-width:0
}
.rule legend {
  font-size:.875rem;
  padding-right:.5rem
}
.swatch {
  display:inline-block;
  width:.65rem;
  height:.65rem;
  border-radius:2px;
  margin-right:.45rem;
  background:var(--layer-color)
}
.rule-grid {
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:.5rem
}
.rule-grid label {
  font-size:.75rem;
  color:var(--muted)
}
.rule-grid input {
  margin-top:.4rem;
  padding:.5rem .35rem;
  font-size:.875rem
}
.rule-description {
  font-size:.75rem;
  color:var(--muted);
  margin:.4rem 0 .6rem
}
.rule .check {
  margin:.6rem 0 0
}
.message {
  font-size:.85rem;
  line-height:1.5;
  color:var(--accent);
  margin:1rem 0 0
}
.message.error {
  color:#ffb4a8
}
.simulation {
  min-width:0;
  display:flex;
  flex-direction:column;
  background:#0d1519
}
.view-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 1.2rem;
  gap:1rem
}
.view-switch {
  display:flex;
  border:1px solid var(--line);
  border-radius:7px;
  padding:3px
}
.view-switch button {
  min-height:32px;
  border:0;
  background:none;
  font-size:.8rem;
  padding:.4rem .8rem
}
.view-switch button.selected {
  background:#2b3e41;
  color:var(--accent)
}
button.text-button {
  background:none;
  border:0;
  color:var(--muted);
  font-size:.8rem;
  padding:.4rem
}
.viewport {
  position:relative;
  min-height:470px;
  flex:1;
  overflow:hidden
}
.viewport canvas {
  display:block;
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
  touch-action:none;
  cursor:grab
}
.viewport canvas:active {
  cursor:grabbing
}
.empty-message {
  position:absolute;
  bottom:1rem;
  left:1rem;
  right:1rem;
  background:#19272ee8;
  border:1px solid var(--line);
  border-radius:8px;
  padding:.9rem;
  font-size:.875rem;
  text-align:center;
  margin:0
}
.view-footer {
  padding:.6rem 1.4rem 1rem;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  color:var(--muted);
  font-size:.8rem
}
.view-footer .check {
  margin:0
}
.metrics {
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:1fr 1fr 1.2fr;
  padding:1.5rem;
  gap:1rem;
  background:#152025
}
.metrics>div+div {
  border-left:1px solid var(--line);
  padding-left:1.3rem
}
.metric-label {
  display:block;
  font-size:.65rem;
  letter-spacing:.12em;
  color:var(--muted);
  margin-bottom:.65rem
}
.metrics strong {
  font-size:2rem;
  font-weight:450;
  font-variant-numeric:tabular-nums
}
.metrics strong.metric-text {
  font-size:1rem;
  display:block;
  padding-top:.55rem
}
.flat-view {
  min-height:470px;
  max-height:690px;
  overflow:auto;
  flex:1;
  padding:1rem;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  align-content:start;
  gap:1rem
}
.flat-card {
  border:1px solid var(--line);
  padding:.8rem;
  border-radius:8px;
  background:#142025
}
.flat-card h3 {
  font-size:.875rem;
  margin-bottom:.75rem;
  display:flex;
  justify-content:space-between;
  gap:.5rem
}
.flat-card h3 span:last-child {
  font-size:.8rem;
  font-weight:400;
  color:var(--muted)
}
.flat-card canvas {
  width:100%;
  height:auto;
  image-rendering:pixelated;
  display:block;
  background:#0d1519
}
.notes {
  display:grid;
  grid-template-columns:1.1fr 1fr 1fr;
  gap:3rem;
  padding:3rem 0 2.4rem;
  border-bottom:1px solid var(--line)
}
.notes h2 {
  font-size:1.8rem;
  letter-spacing:-.035em;
  font-weight:500
}
.notes h3 {
  font-size:1rem;
  font-weight:550;
  margin-bottom:.8rem
}
.notes p:not(.eyebrow) {
  color:var(--muted);
  font-size:.875rem;
  margin-bottom:0
}
.footer {
  display:flex;
  justify-content:space-between;
  gap:2rem;
  color:var(--muted);
  font-size:.75rem;
  padding:1.6rem 0 2rem
}
kbd {
  font:inherit;
  border:1px solid var(--line);
  border-radius:3px;
  padding:.1rem .3rem;
  margin:0 .25rem 0 .7rem
}
.noscript {
  position:fixed;
  inset:auto 1rem 1rem;
  background:#402d28;
  padding:1rem;
  border-radius:8px
}
[hidden] {
  display:none!important
}

@media(min-width:1700px) {
  .viewport {
  min-height:600px
}

}

@media(max-width:1050px) {
  .masthead {
  padding:1.4rem 1.7rem
}
main {
  padding:0 1.7rem
}
.intro {
  gap:2rem
}
.intro-copy {
  max-width:280px
}
.playground {
  grid-template-columns:290px minmax(0,1fr)
}
.controls {
  padding:1.2rem
}
.metrics {
  gap:.6rem;
  padding:1.2rem
}
.metrics>div+div {
  padding-left:.7rem
}
.notes {
  gap:1.5rem
}
.view-footer {
  padding-left:1rem;
  padding-right:1rem
}

}

@media(max-width:760px) {
  .masthead {
  padding:1.2rem
}
.masthead-note {
  display:none
}
main {
  padding:0 1rem
}
.intro {
  display:block;
  padding:2rem 0
}
.intro-copy {
  margin-top:1.3rem;
  max-width:100%;
  font-size:.9rem
}
.playground {
  display:flex;
  flex-direction:column
}
.simulation {
  order:-1
}
.controls {
  border-right:0;
  border-top:1px solid var(--line);
  max-height:none;
  padding:1.3rem
}
.viewport {
  height:390px;
  min-height:390px
}
.flat-view {
  height:390px;
  min-height:390px
}
.view-toolbar {
  padding:.8rem
}
.view-footer {
  font-size:.75rem;
  gap:.5rem
}
.metrics {
  padding:1rem;
  gap:.5rem
}
.metrics strong {
  font-size:1.65rem
}
.metrics strong.metric-text {
  font-size:.875rem
}
.metric-label {
  font-size:.6rem
}
.notes {
  grid-template-columns:1fr;
  gap:1.3rem;
  padding:2rem 0
}
.notes h2 {
  margin-bottom:0
}
.footer {
  flex-direction:column;
  gap:.8rem
}
.footer span:last-child {
  margin-left:-.7rem
}
.rule-grid input {
  padding:.6rem
}
.rule-grid label {
  font-size:.875rem
}

}

@media(prefers-reduced-motion:reduce) {
  * {
  transition:none!important
}

}
