:root {
  --paper: #f6f4ed;
  --ink: #1f322d;
  --muted: #596a60;
  --line: #cccec1;
  --dark: #213e32;
  --sun: #f4c568;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #98701c;
  outline-offset: 4px;
}
button,
select,
input {
  font: inherit;
  accent-color: #2f654d;
}
button,
select,
a {
  touch-action: manipulation;
}
.rail,
.wrap {
  width: min(1100px, calc(100% - 64px));
  margin: auto;
}
.rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
header {
  height: 78px;
  border-bottom: 1px solid var(--line);
}
header a,
.game-links a,
footer a {
  text-decoration: none;
}
header nav,
.game-links {
  display: flex;
  gap: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: -0.035em;
  font-size: 20px;
}
.rail nav,
.rail > a:not(.brand),
footer {
  font-size: 14px;
}
.intro {
  padding: clamp(40px, 5.4vw, 76px) 0 36px;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.kicker i {
  width: 9px;
  height: 9px;
  background: #68906b;
  box-shadow: 3px -3px 0 #d9dfcd;
}
.intro h1,
.theater > h1 {
  font:
    500 clamp(44px, 6.6vw, 87px)/0.98 Georgia,
    serif;
  letter-spacing: -0.063em;
  margin: 0 0 19px;
}
.intro h1 span {
  color: #be7b30;
}
.intro > p:last-child {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin: 0 0 22px;
  background: #fbfaf6;
}
.feature-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding: clamp(24px, 4vw, 55px);
}
.feature h2,
.about h2 {
  font:
    500 clamp(32px, 3.6vw, 48px)/1.06 Georgia,
    serif;
  letter-spacing: -0.045em;
  margin: 0;
}
.subtitle {
  font-size: 21px;
  margin: 9px 0 0;
}
.fine,
.note {
  color: var(--muted);
}
.fine {
  font: 13px var(--mono);
  margin: 11px 0 25px;
}
.cta,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  background: var(--dark);
  color: #fff;
  border: 0;
  border-radius: 5px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  padding: 12px 19px;
  cursor: pointer;
}
.cta:hover,
button:hover {
  background: #315741;
}
.cta span {
  color: var(--sun);
  font-size: 19px;
  line-height: 1;
}
.art,
.board {
  background-color: #284435;
  background-image:
    linear-gradient(#68806430 1px, transparent 1px),
    linear-gradient(90deg, #68806430 1px, transparent 1px);
  background-size: 22px 22px;
}
.art {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-height: 324px;
  display: grid;
  place-items: center;
  padding: 24px 24px 43px;
}
.art img,
.board canvas {
  image-rendering: pixelated;
}
.art img {
  height: clamp(185px, 19vw, 250px);
  max-width: 95%;
  object-fit: contain;
  filter: drop-shadow(7px 8px 0 #132f29);
}
.art span {
  position: absolute;
  bottom: 11px;
  right: 15px;
  color: #f5e8c6;
  font: 11px var(--mono);
}
.scores {
  grid-column: 1/-1;
  overflow: auto;
  border-top: 1px solid var(--line);
  padding: 3px 24px 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
th,
td {
  text-align: right;
  padding: 11px 7px;
}
th:first-child {
  text-align: left;
}
thead th {
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
tbody tr {
  border-top: 1px solid var(--line);
}
tbody th {
  font-size: 15px;
}
tbody td {
  font: 14px var(--mono);
  white-space: nowrap;
}
small {
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}
.about {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  margin-top: 45px;
}
.about h2 {
  font-size: 32px;
}
.about p {
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 60ch;
}
.game-links a {
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.rail:last-child {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  color: var(--muted);
}
.theater {
  padding: 42px 0 50px;
}
.theater > h1 {
  font-size: clamp(40px, 5vw, 66px);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 0 22px;
}
.toolbar label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
select {
  max-width: 100%;
  background: #fffdf5;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px;
}
.check input {
  width: 16px;
  height: 16px;
}
#lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 16px;
}
.lane {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: #fbfaf6;
}
.lane header {
  height: auto;
  border: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 15px;
  gap: 8px;
}
.lane h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.025em;
}
.score,
.stream,
.telemetry,
output {
  font: 13px var(--mono);
  font-variant-numeric: tabular-nums;
}
.board {
  height: clamp(205px, 22.2vw, 305px);
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: 16px;
}
.board canvas {
  display: block;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.telemetry,
.stream {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 12px 14px;
}
.telemetry {
  color: var(--muted);
}
.stream {
  min-height: 45px;
  padding-top: 0;
  justify-content: flex-start;
  overflow: hidden;
}
.key {
  border: 1px solid #b2b7a9;
  border-radius: 3px;
  min-width: 22px;
  text-align: center;
  color: var(--muted);
  line-height: 21px;
}
.key:last-child {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}
.transport {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
}
.transport > div {
  flex: 1;
  display: grid;
  gap: 3px;
}
.transport label {
  font: 11px var(--mono);
  color: var(--muted);
}
.transport input {
  width: 100%;
  margin: 0;
}
.transport output {
  white-space: nowrap;
}
.transport button {
  width: 88px;
  padding: 10px;
}
.note {
  font-size: 14px;
  max-width: 78ch;
}
[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  .rail,
  .wrap {
    width: calc(100% - 32px);
  }
  header {
    height: 60px;
  }
  header nav {
    gap: 14px;
  }
  .intro {
    padding: 36px 0 24px;
  }
  .intro > p:last-child {
    font-size: 16px;
  }
  .feature {
    grid-template-columns: 1fr;
  }
  .art {
    grid-row: 1;
    grid-column: 1;
    min-height: 210px;
    padding: 17px 20px 27px;
  }
  .art img {
    height: 172px;
  }
  .feature-copy {
    grid-row: 2;
    grid-column: 1;
    padding: 22px;
  }
  .feature-copy .kicker {
    margin-bottom: 8px;
  }
  .fine {
    margin: 8px 0 16px;
  }
  .scores {
    padding: 1px 8px 6px;
  }
  .scores th,
  .scores td {
    padding: 8px 3px;
  }
  .scores small {
    display: block;
    margin: 0;
  }
  .scores td {
    font-size: 12px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }
  .board {
    height: 220px;
  }
  .theater {
    padding: 28px 0;
  }
  .toolbar {
    gap: 10px;
  }
  .transport {
    gap: 9px;
  }
  .transport output {
    font-size: 11px;
  }
  .transport button {
    width: 62px;
  }
  .rail nav,
  .rail > a:not(.brand),
  footer {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
