:root {
  color-scheme: dark;
  --paper: #f7f6f0;
  --muted: #afbbc6;
  --copper: #ffa56c;
  --launch: #ffae77;
  --green: #a4fc77;
  --line: #343e49;
  --metal: #1b232d;
  --mono: 'Press Mono', Consolas, monospace;
  --body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: #0c1016; }
body {
  min-width: 0;
  margin: 0;
  color: var(--paper);
  font: 400 1rem/1.5 var(--body);
  -webkit-text-size-adjust: 100%;
  background: radial-gradient(ellipse at 60% 5%, #20263155 0, transparent 63%), #0c1016;
}
#app {
  min-height: 100svh;
  max-width: 102rem;
  margin: auto;
  padding: 0 max(clamp(1rem, 4vw, 4rem), env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(clamp(1rem, 4vw, 4rem), env(safe-area-inset-left));
}
#app [hidden] { display: none !important; }
.pit-nav, .nav-actions, .utility, .catalog-link, .board-head, .display-tag, .eyebrow, .soft-action, .control, .signal-line, .launch-control {
  display: flex;
  align-items: center;
}
.pit-nav {
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 5rem;
  padding-block: max(.7rem, env(safe-area-inset-top)) .7rem;
  border-bottom: 1px solid #2a313c;
}
.nav-actions { gap: clamp(.3rem, 1vw, .9rem); }
.pit-nav a { text-decoration: none; }
.utility, .catalog-link, .soft-action {
  gap: .55rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  color: #d4dbe0;
  background: transparent;
  font: 600 .91rem/1.25 var(--body);
  text-align: start;
}
.utility, .soft-action, .control, .launch-control { cursor: pointer; appearance: none; }
.utility, .catalog-link { padding-inline: .3rem; }
.nav-brake {
  width: .66rem;
  height: .66rem;
  margin-inline: .22rem .12rem;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
}
.rules-icon {
  display: grid;
  place-content: center;
  width: 1.12rem;
  height: 1.12rem;
  border: 1.7px solid currentColor;
  border-radius: 50%;
  font: 700 .75rem/1 var(--body);
}
.profile { max-width: min(18vw, 11rem); }
.profile [data-player-name] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-icon {
  flex: none;
  width: 1.08rem;
  height: 1.1rem;
  background: radial-gradient(circle at 50% 25%, currentColor 0 23%, transparent 25%) 0 0 / 100% 100% no-repeat;
}
.profile-icon::after {
  display: block;
  content: '';
  width: 86%;
  height: 38%;
  margin: 57% auto 0;
  border: 1.7px solid currentColor;
  border-radius: 50% 50% 22% 22% / 80% 80% 20% 20%;
}
.pit {
  display: grid;
  grid-template-columns: minmax(0, 1.66fr) minmax(18rem, 1fr);
  align-items: stretch;
  gap: clamp(2rem, 4vw, 4.7rem);
  margin: clamp(1.6rem, 5vh, 4.5rem) 0 0;
}
.board {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(29rem, 68svh, 44rem);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #46515f;
  border-radius: .4rem;
  background: #141a23;
  box-shadow: 0 1.4rem 3.5rem -2.5rem #000d;
}
.start-photo, .board-overlay, .gantry { position: absolute; pointer-events: none; }
.start-photo {
  z-index: -3;
  inset: 0;
  background: #19202b url('../../launcher-art/grid-flash.webp') center / cover no-repeat;
}
.board-overlay {
  z-index: -2;
  inset: 0;
  background: linear-gradient(180deg, #050910b0 0%, transparent 23%, transparent 52%, #080d13c7 78%, #080d13 100%);
}
.board::after {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: .24rem;
  content: '';
  background: linear-gradient(90deg, #ffab72 0 15%, #946448 15% 16%, transparent 16%);
}
.board-head {
  justify-content: space-between;
  gap: .6rem;
  margin: clamp(.9rem, 2.4vw, 2rem);
  font: 500 .82rem/1.3 var(--mono);
  letter-spacing: .04em;
}
.display-tag, .counter {
  min-height: 2rem;
  padding: .36rem .65rem;
  border: 1px solid #a0a8b05e;
  border-radius: .2rem;
  background: #0e131bdb;
}
.display-tag { gap: .67rem; }
.counter { text-align: end; font-variant-numeric: tabular-nums; }
.flag {
  display: inline-block;
  flex: none;
  width: 1.45rem;
  height: .87rem;
  background: repeating-conic-gradient(currentColor 0% 25%, transparent 0% 50%) 0 0 / .58rem .58rem;
  transform: skewX(-14deg);
}
.track-call { padding: clamp(1.1rem, 3vw, 2.8rem); }
.signal-line { gap: .9rem; }
.call-icon {
  width: .42rem;
  height: clamp(1.7rem, 3vw, 3rem);
  flex: none;
  background: var(--copper);
  transform: skewX(-12deg);
}
#signal, #game-title, .pit-wall h2, .guide h2 {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 850;
  font-synthesis: weight style;
  line-height: 1.02;
  letter-spacing: -.052em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
#signal {
  font-size: clamp(2.15rem, 4.5vw, 4.5rem);
  text-transform: uppercase;
  text-shadow: 0 2px 16px #050b11;
}
#signal-detail {
  margin: .65rem 0 0;
  color: #d4dbe3;
  font: 500 .92rem/1.45 var(--mono);
  overflow-wrap: anywhere;
}
.pit-wall { min-width: 0; width: 100%; max-width: 35rem; align-self: center; }
.pit-wall section { min-width: 0; }
.eyebrow, .field-label, .join-form label {
  color: var(--muted);
  font: 500 .81rem/1.5 var(--mono);
  letter-spacing: .035em;
}
.eyebrow { gap: .7rem; margin: 0 0 .95rem; color: var(--copper); }
.slants {
  display: inline-block;
  width: 1.65rem;
  height: .8rem;
  flex: none;
  color: var(--copper);
  transform: skewX(-22deg);
  background: repeating-linear-gradient(90deg, currentColor 0 .29rem, transparent .29rem .51rem);
}
#game-title {
  width: fit-content;
  max-width: 100%;
  padding-inline-end: .085em;
  font-size: clamp(3rem, 4.7vw, 5rem);
  text-transform: uppercase;
}
.pit-wall h2, .guide h2 { font-size: clamp(2rem, 3vw, 3.2rem); }
.lead { margin: .95rem 0 1.6rem; color: #c1cad3; font-size: 1.04rem; line-height: 1.56; }
.lead:empty, #signal-detail:empty, .message:empty { display: none; }
.actions { display: grid; gap: .55rem; }
.control, .launch-control {
  justify-content: center;
  gap: .7rem;
  width: 100%;
  min-height: 3.05rem;
  padding: .65rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: .33rem;
  color: var(--paper);
  background: var(--metal);
  font: 700 1rem/1.3 var(--body);
  text-align: center;
  letter-spacing: -.01em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.primary, .launch-control {
  border-color: #ffb987;
  background: var(--launch);
  color: #24170f;
}
.secondary { background: #202731; border-color: #46515f; }
.control:disabled, .launch-control:disabled, .soft-action:disabled { opacity: .55; cursor: default; }
.plus {
  width: .98rem;
  height: .98rem;
  flex: none;
  background: linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 2px 100% no-repeat;
}
.pair {
  position: relative;
  width: 1.58rem;
  height: 1.03rem;
  flex: none;
  background: radial-gradient(circle at 37% 23%, currentColor 0 15%, transparent 17%), radial-gradient(circle at 75% 30%, currentColor 0 11%, transparent 13%);
}
.pair::before, .pair::after {
  position: absolute;
  bottom: 0;
  content: '';
  width: 59%;
  height: 43%;
  border-radius: 75% 75% 18% 18%;
  background: currentColor;
}
.pair::before { left: 8%; }
.pair::after { right: 2%; width: 27%; height: 34%; border-radius: 5% 93% 18% 5%; }
.join-form {
  margin-block-start: 1.4rem;
  padding-block-start: 1.16rem;
  border-top: 1px solid var(--line);
}
.join-form label { display: block; margin: 0 0 .43rem; }
.code-entry { display: grid; grid-template-columns: minmax(4rem, 1fr) auto; gap: .5rem; }
.code-entry input, #invite-link {
  width: 100%;
  min-width: 0;
  min-height: 2.85rem;
  padding: .55rem .85rem;
  border: 1px solid #46515f;
  border-radius: .33rem;
  color: var(--paper);
  background: #0e141b;
  font: 500 1rem/1.2 var(--mono);
}
.code-entry input { letter-spacing: .13em; text-transform: uppercase; }
.code-entry input::placeholder { color: #8c99a6; }
.small { min-height: 2.85rem; font-size: .94rem; }
.soft-action { width: fit-content; margin-block-start: .72rem; color: var(--muted); }
.timer-icon {
  position: relative;
  width: .94rem;
  height: .94rem;
  border: 1.5px solid;
  border-radius: 50%;
}
.timer-icon::before, .timer-icon::after {
  position: absolute;
  width: .3rem;
  height: 2px;
  left: calc(50% - .15rem);
  top: -.21rem;
  background: currentColor;
  content: '';
}
.timer-icon::after { top: 35%; transform: rotate(115deg); }
:is(.control, .launch-control, .utility, .soft-action, .catalog-link, .code-entry input, #invite-link):focus-visible {
  outline: 3px solid #ffce9f;
  outline-offset: 3px;
}
.message {
  margin: .9rem 0 0;
  padding: .65rem .8rem;
  border-inline-start: .2rem solid var(--copper);
  color: #ffe2c8;
  background: #2a211e;
  font-size: .92rem;
  overflow-wrap: anywhere;
}
.list {
  margin: .85rem 0 1rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.list:empty { display: none; }
.list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .62rem;
  min-height: 2.85rem;
  padding: .66rem .5rem .66rem .1rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.list li::before {
  content: '';
  align-self: center;
  width: .33rem;
  height: .87rem;
  margin-inline: .17rem;
  transform: skewX(-12deg);
  background: #788998;
}
.list strong { max-width: 11rem; color: #e4e9ed; text-align: end; font: 500 .88rem/1.4 var(--mono); }
.list .is-me { background: #2d261e; box-shadow: inset .16rem 0 var(--copper); padding-inline-start: .55rem; }
.list .is-me::before { background: var(--copper); }
.list .is-me strong { color: #ffbd8e; }
.list .is-left { color: #b1b7bd; background: #161b21; }
.list .is-left::before { background: #68707c; }
.standings-head { margin: 1.35rem 0 0; }
.invite {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .85rem;
  margin: .8rem 0 1rem;
  padding: .8rem;
  background: #171e27;
  border: 1px solid var(--line);
  border-radius: .32rem;
}
.invite .field-label { display: block; }
#room-code { display: block; margin: .15rem 0 0; font: 500 1.55rem/1.25 var(--mono); letter-spacing: .1em; }
.invite .control { width: auto; }
#invite-link { flex-basis: 100%; letter-spacing: 0; }
.guide {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 1px solid #535e6b;
  border-radius: .45rem;
  color: var(--paper);
  background: #171e27;
}
.guide::backdrop { background: #04070dc9; }
.guide-inner { padding: clamp(1.1rem, 3vw, 2rem); }
.guide h2 { margin: .7rem 0 1rem; }
.guide p { color: #d0d8de; }
.guide form { margin-top: 1.4rem; }

/* During a heat only the live lamps can signal a start. Crop the photo to the cars below its gantry. */
.gantry { display: none; }
#app:is([data-screen="race"], [data-screen="practice"]) .board {
  background: radial-gradient(ellipse at 50% 21%, #333f4c 0, #1d2733 33%, #101922 64%, #090f16 100%);
}
#app:is([data-screen="race"], [data-screen="practice"]) .start-photo {
  inset: auto 0 0;
  width: 100%;
  aspect-ratio: 5.5;
  background-size: 100% auto;
  background-position: center 75%;
  opacity: .3;
}
#app:is([data-screen="race"], [data-screen="practice"]) .board-overlay {
  background: repeating-linear-gradient(90deg, transparent 0 3.48rem, #ffffff05 3.5rem 3.56rem),
    linear-gradient(0deg, #071018e0, #0b121905 20%, #141e2900 66%, #0d151eca);
}
#app:is([data-screen="race"], [data-screen="practice"]) .gantry {
  display: grid;
  position: relative;
  width: 100%;
  place-items: center;
  margin-block: clamp(.5rem, 3vh, 1.75rem);
}
.gantry-bar {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 39%;
  border-block: 3px solid #4f5963;
  box-shadow: 0 3px 0 #04080d, 0 -2px 0 #9ca3a733;
  background: repeating-linear-gradient(45deg, transparent 0 1.55rem, #5c6670 1.57rem 1.79rem, #161f29 1.81rem 1.9rem, transparent 1.91rem 3.35rem),
    repeating-linear-gradient(-45deg, transparent 0 1.55rem, #414b55 1.57rem 1.79rem, #161f29 1.81rem 1.9rem, transparent 1.91rem 3.35rem);
}
.light-bank {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.5%;
  width: 88%;
  max-width: 42rem;
  padding: 2.35% 2%;
  border: 1px solid #58606b;
  border-top: 3px solid #727c83;
  border-bottom: 3px solid #060b0e;
  border-radius: .46rem;
  background: linear-gradient(#424953, #14191d 12%, #080d13 89%, #3c444b);
  box-shadow: 0 1rem 1.35rem -.55rem #02060edb;
}
.lamp {
  --face: #302127;
  --rim: #130f13;
  display: grid;
  position: relative;
  aspect-ratio: .81;
  place-items: center;
  border: 1px solid #46505b;
  border-radius: 23% 23% 10% 10%;
  background: linear-gradient(155deg, #4a5056 0, #202630 27%, #070c11 70%);
  box-shadow: inset 0 1px #949ba322, 0 2px 3px #000;
}
.lamp::before {
  grid-area: 1 / 1;
  content: '';
  width: 77%;
  aspect-ratio: 1;
  border: 2px solid #0a0d12;
  border-radius: 50%;
  background: radial-gradient(circle, #0005 0 24%, transparent 30%) center / 5px 5px,
    radial-gradient(ellipse at 43% 68%, var(--face) 0 35%, var(--rim) 87%);
  box-shadow: inset 0 .31rem .48rem #000a, 0 -3px 0 #84868b80, 0 2px 0 #4a505a;
}
.lamp.lit { --face: #ff4042; --rim: #a90821; }
.lamp.lit::before { box-shadow: inset 0 1px .4rem #fb6669, 0 0 1rem #ff344775, 0 0 2.7rem #ff25332d; }
[data-phase="go"] .lamp { --face: #a9fc72; --rim: #68cd56; }
[data-phase="go"] .lamp::before { box-shadow: inset 0 2px .45rem #efffc0a8, 0 0 1.35rem #8df67c7a; }
[data-phase="go"] .lamp::after, [data-phase="false"] .lamp::after {
  grid-area: 1 / 1;
  position: relative;
  content: '';
  width: 37%;
  aspect-ratio: 1;
  background: #152d20;
  clip-path: polygon(0 12%, 45% 12%, 92% 50%, 45% 88%, 0 88%, 47% 50%);
}
[data-phase="go"] .call-icon { background: var(--green); }
[data-phase="go"] #signal { color: #c4ffa0; }
[data-phase="go"] .launch-control { background: var(--green); color: #17251b; border-color: #c5ffae; }
[data-phase="false"] .lamp { --face: #e95045; --rim: #812b31; }
[data-phase="false"] .lamp::after {
  background: #260c13;
  clip-path: polygon(17% 0, 50% 34%, 83% 0, 100% 17%, 66% 50%, 100% 83%, 83% 100%, 50% 66%, 17% 100%, 0 83%, 34% 50%, 0 17%);
}
[data-phase="false"] .call-icon { background: #ff756f; }
.launch-control {
  margin-block-start: 1.2rem;
  min-height: 3.6rem;
  font-size: 1.15rem;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.pedal {
  width: .81rem;
  height: 1.1rem;
  border-radius: .16rem;
  border: 1.5px solid currentColor;
  transform: skewX(-12deg);
  background: repeating-linear-gradient(0deg, transparent 0 3px, currentColor 3px 4px);
}
.race-lanes {
  display: grid;
  gap: 3px;
  margin-inline: clamp(1rem, 4vw, 3rem);
  padding: .6rem .85rem;
  border: 1px solid #72839346;
  border-radius: .25rem;
  background: #0a1019bd;
}
.lane { --paint: #ffab70; display: grid; grid-template-columns: 3.3em 1fr; align-items: center; }
.lane:nth-child(2) { --paint: #70c9dd; }
.lane:nth-child(3) { --paint: #d4ce75; }
.lane:nth-child(4) { --paint: #bc9cdd; }
.lane > span {
  color: var(--paint);
  font: 600 .69rem/1.3 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tarmac {
  position: relative;
  height: 1rem;
  border-inline-end: 3px double #cfdae6ad;
  border-bottom: 1px dashed #43515e;
  background: linear-gradient(90deg, transparent 1.65rem, #e2e7eb55 1.65rem 1.78rem, transparent 1.78rem);
}
.car {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 1.52rem;
  height: .7rem;
  color: var(--paint);
}
.car::before {
  content: '';
  position: absolute;
  inset: 0 0 1px;
  background: linear-gradient(135deg, transparent 31%, #385160 32% 44%, transparent 46%), currentColor;
  clip-path: polygon(0 30%, 18% 31%, 30% 4%, 57% 2%, 74% 32%, 92% 44%, 100% 60%, 98% 84%, 2% 88%);
}
.car::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: .37rem;
  background: radial-gradient(circle at 23% 45%, #aebdc5 0 1px, #15202a 1.3px 2.6px, transparent 2.9px),
    radial-gradient(circle at 80% 45%, #aebdc5 0 1px, #15202a 1.3px 2.6px, transparent 2.9px);
}
.lane[data-start="ok"] .car {
  left: calc(100% - 1.52rem);
  transition: left .85s cubic-bezier(.56,.03,.55,.97);
}
.lane[data-start="false"] .car { left: 2rem; color: #ff6c68; }
@media (prefers-reduced-motion: reduce) {
  .lane[data-start="ok"] .car { transition: none; }
}
@media (hover: hover) {
  .utility:hover, .catalog-link:hover, .soft-action:not(:disabled):hover { color: #ffe0bc; }
  .secondary:not(:disabled):hover, .small:not(:disabled):hover { border-color: #9caab6; background: #2b3540; }
  .primary:not(:disabled):hover, .launch-control:not(:disabled):hover { filter: brightness(1.1); }
}
@media (max-width: 57rem) {
  #app { padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right)); }
  .pit { gap: 1.4rem; grid-template-columns: minmax(0, 1.35fr) minmax(16.5rem, 1fr); }
  .board { min-height: 29rem; }
  .lead { font-size: 1rem; }
}
@media (max-width: 43rem) {
  .pit-nav { min-height: 3.85rem; gap: .5rem; }
  .pit { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; margin-top: 1rem; }
  .pit-wall { max-width: none; }
  .board { min-height: 0; aspect-ratio: 1.92; }
  .start-photo { background-position: center 48%; }
  .board-head { margin: .7rem .83rem; }
  .track-call { padding: .75rem 1rem 1rem; }
  .display-tag, .counter { min-height: 1.7rem; padding: .24rem .5rem; }
  .board-head { font-size: .76rem; }
  #signal { font-size: clamp(1.85rem, 7.7vw, 3rem); }
  #signal-detail { margin-top: .25rem; font-size: .85rem; }
  .eyebrow { margin-bottom: .44rem; }
  #game-title { font-size: clamp(2.7rem, 10vw, 4rem); }
  .lead { margin: .6rem 0 1rem; }
  .join-form { margin-top: 1rem; padding-top: .85rem; }
  .profile { min-width: 2.4rem; max-width: 23vw; justify-content: center; }
  #app:is([data-screen="race"], [data-screen="practice"]) .board { aspect-ratio: auto; min-height: 18.5rem; }
  #app:is([data-screen="race"], [data-screen="practice"]) .gantry { margin-block: .45rem .5rem; }
  .light-bank { width: 77%; max-width: 22rem; padding: 1.5%; }
  .lamp { aspect-ratio: .9; }
  .launch-control { min-height: 3.2rem; margin-top: .75rem; }
}
@media (max-width: 29rem) {
  .pit-nav .utility { gap: .34rem; }
  .profile [data-player-name] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nav-actions { gap: .25rem; }
  .catalog-link, .utility { font-size: .84rem; }
  .board { aspect-ratio: 1.72; }
}
@media (max-width: 22rem) {
  #app { padding-inline: max(.65rem, env(safe-area-inset-left)) max(.65rem, env(safe-area-inset-right)); }
  #rules .rules-icon { display: none; }
  .catalog-link { gap: .22rem; }
  .pit-nav .utility { padding-inline: .12rem; }
  .profile { min-width: 1.75rem; }
}
@media (orientation: landscape) and (max-height: 32rem) and (min-width: 43.01rem) {
  .pit-nav { min-height: 3.3rem; padding-block: .2rem; }
  .pit { margin-top: .8rem; }
  #app:is([data-screen="race"], [data-screen="practice"]) .board { min-height: min(27rem, calc(100svh - 5rem)); }
  #app:is([data-screen="race"], [data-screen="practice"]) .board-head { margin: .6rem; }
  #app:is([data-screen="race"], [data-screen="practice"]) .gantry { margin: 0; }
  #app:is([data-screen="race"], [data-screen="practice"]) .light-bank { width: min(73%, 36vh); }
  #app:is([data-screen="race"], [data-screen="practice"]) .track-call { padding: .55rem .9rem .8rem; }
  #app:is([data-screen="race"], [data-screen="practice"]) #signal { font-size: 1.8rem; }
  .launch-control { min-height: 2.85rem; margin-top: .55rem; }
}
@media (forced-colors: active) {
  .lamp, .lamp::after, .flag, .slants, .call-icon { forced-color-adjust: none; }
  .lamp::before { forced-color-adjust: none; }
  .board, .control, .launch-control { border-color: ButtonText; }
}

/* Frame the start grid as the title screen, then reclaim the full board for a heat. */
#app[data-screen="lobby"] .pit {grid-template:1fr / minmax(0,1fr);gap:0;min-height:clamp(27rem,74svh,54rem);position:relative;isolation:isolate;overflow:hidden;border:1px solid #3b434d;border-radius:.75rem}
#app[data-screen="lobby"] .board {position:absolute;inset:0;z-index:-1;aspect-ratio:auto;border:0;border-radius:0;min-height:0}
#app[data-screen="lobby"] .start-photo {background-position:center 51%}
#app[data-screen="lobby"] .board-overlay {background:linear-gradient(0deg,#080c13f5 0%,#080c13a0 32%,transparent 73%),linear-gradient(90deg,#0e101b99,transparent 65%)}
#app[data-screen="lobby"] .board-head,#app[data-screen="lobby"] .track-call {display:none}
#app[data-screen="lobby"] .pit-wall {align-self:end;max-width:60rem;padding:clamp(1.25rem,5.4vw,5.5rem)}
#game-title {margin:0 0 clamp(1rem,2.4vw,1.65rem);font-size:clamp(3.3rem,8.4vw,8.5rem);letter-spacing:-.076em;text-shadow:0 .05em .5em #060912ab}
#lobby .actions {display:flex;gap:.6rem;flex-wrap:wrap}
#lobby .actions button {width:auto;min-width:10rem;padding-inline:1.2rem}
#lobby .control.primary {background:#ffb26d;color:#18100b;border-color:#ffb26d}
#lobby .control.secondary {background:#0b111bdc;border-color:#828a99}
#practice-start {margin-top:.5rem;color:#d3d5d8}
.opponent-ready {display:flex;align-items:center;gap:.55rem;margin:.8rem 0 0;color:#b8f9c7;font-weight:600}
.opponent-ready::before {content:"";width:.5rem;height:.5rem;border-radius:50%;background:#90f4b8;box-shadow:0 0 .65rem #90f4b880}
.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.lane {grid-template-columns:minmax(4.6rem,18%) 1fr}
.list {display:grid;gap:.25rem}
.list li {border:0;border-left:2px solid #506079;background:linear-gradient(90deg,#1c2631,transparent);padding:.5rem .6rem}
.list li.is-me {border-color:var(--copper);box-shadow:none;background:linear-gradient(90deg,#3b2c22,transparent)}
@media(max-width:43rem) {
  #app[data-screen="lobby"] .pit {min-height:clamp(25rem,71svh,44rem)}
  #app[data-screen="lobby"] .start-photo {background-position:58% center}
  #app[data-screen="lobby"] .pit-wall {padding:clamp(1rem,5vw,2rem)}
  #game-title {font-size:clamp(2.6rem,11vw,4.8rem)}
  #lobby .actions button {min-width:min(9rem,100%);flex:1;padding-inline:.7rem}
}
