* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
  --ivory: #fff0cf;
  --mint: #9ff7db;
  --brass: #e6b86c;
  --panel: #0a3034;
  --dim: #bbd3c9;
  --edge: #944;
  scroll-padding-top: 75px;
}
body {
  margin: 0;
  min-height: 100svh;
  background: #102a2b;
  color: var(--ivory);
  font:
    16px/1.48 'Trebuchet MS',
    system-ui,
    sans-serif;
}
body:before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #08252a99, #0b292cda 75%),
    url(/lab.webp) center/cover;
}
header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #0a292af7;
  border-bottom: 1px solid #a27b46;
}
nav {
  max-width: 1330px;
  margin: auto;
  padding: 8px max(10px, env(safe-area-inset-right));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}
.mini-brand {
  margin: 0;
  font: bold italic 25px Georgia;
  color: var(--ivory);
}
.control-group,
.actions,
.line,
.statusbar,
.controls {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.control-group {
  justify-self: end;
  flex-wrap: nowrap;
}
.games-short {
  display: none;
}
.control svg {
  width: 17px;
  height: 17px;
}
.all-games {
  justify-self: start;
}
.control,
.btn,
button,
input {
  font: inherit;
}
button,
.btn,
.control,
summary {
  cursor: pointer;
}
a {
  color: var(--mint);
}
button,
.btn,
.control {
  border: 1px solid #7a998c;
  border-radius: 8px;
  background: #143e40;
  color: var(--ivory);
  padding: 0.65em 1.05em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
}
.control {
  padding: 8px;
  min-height: 36px;
  font-size: 13px;
}
.volume {
  width: 76px;
  accent-color: var(--brass);
}
button,
.btn,
.control,
summary {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
button:disabled {
  opacity: 0.6;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid #ffce75;
  outline-offset: 3px;
}
button:hover:not(:disabled),
.btn:hover,
.control:hover {
  border-color: var(--mint);
}
button.prime,
.prime {
  color: #102d2e;
  background: #ace9be;
  border-color: #daefba;
  box-shadow: 0 3px 0 #508173;
}
.actions {
  margin-top: 16px;
}
.actions input,
.controlrow input,
dialog input {
  min-width: 0;
  border: 1px solid #879d8c;
  border-radius: 7px;
  padding: 0.7em;
  background: #082c2f;
  color: white;
}
.actions input {
  width: 115px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.controlrow {
  display: flex;
  gap: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Georgia, serif;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(27px, 3.4vw, 45px);
}
h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5em;
}
.label,
.meter,
.caption,
.num,
th {
  font:
    700 0.73rem/1.4 ui-monospace,
    monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.label {
  color: var(--brass);
  margin-bottom: 8px;
}
main {
  width: min(1330px, 100%);
  margin: auto;
  padding: clamp(13px, 3vw, 38px);
}
.hero,
.glass,
.paper,
.plate {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #be995f;
}
.hero {
  position: relative;
  min-height: clamp(410px, 59vh, 670px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, #062d32f5 1%, #0b3334e8 28%, #10333796 51%, transparent 78%),
    url(/lab.webp) center/cover;
  box-shadow:
    inset 0 0 0 5px #eac9831e,
    0 16px 44px #00141688;
}
.herocopy {
  max-width: 630px;
  padding: clamp(25px, 4.8vw, 75px);
}
.herocopy h1 {
  font-size: clamp(68px, 9vw, 145px);
  font-style: italic;
  color: #ffedc8;
  text-shadow:
    2px 3px #47685d,
    4px 5px #12483e;
  margin: 8px 0 20px;
}
.herocopy h1 i,
.mini-brand i {
  color: #a4ebcb;
}
.herocopy > p:not(.label) {
  max-width: 32ch;
  font-size: clamp(17px, 1.6vw, 23px);
}
.hero footer {
  position: absolute;
  right: 18px;
  bottom: 16px;
}
.glass,
.plate {
  background: linear-gradient(145deg, #154346, #092c30);
  padding: clamp(17px, 2.3vw, 31px);
}
.paper {
  color: #293c38;
  background: linear-gradient(120deg, #fff2d4, #ead7af);
  padding: clamp(17px, 2.3vw, 31px);
}
.paper .label {
  color: #775021;
}
.glass h2,
.paper h2 {
  margin-bottom: 12px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr);
  gap: 16px;
  margin: 16px 0;
}
.stack {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}
.statusbar {
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: #08282cf2;
  border: 1px solid #9f8b62;
  border-radius: 10px;
}
.statusbar .meter {
  font-size: 1rem;
  color: var(--mint);
  letter-spacing: 0.05em;
}
.statusbar strong {
  color: #ffc97f;
}
.host {
  display: flex;
  gap: 15px;
  align-items: center;
}
.quack {
  flex: none;
  width: clamp(60px, 6vw, 84px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid #bd955e;
  background: url(/quack-at-bench.webp) center/cover;
}
.speaking .quack { box-shadow: 0 0 0 3px #94e3c966; }
.host p:last-child {
  font: italic 1.1rem/1.35 Georgia;
}
.avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #30565a;
  color: white;
  border: 2px solid #aa956c;
  vertical-align: middle;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ai,
.flag {
  font:
    700 0.65rem ui-monospace,
    monospace;
  letter-spacing: 0.035em;
  color: var(--brass);
}
.paper .ai,
.paper .flag {
  color: #795020;
}
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 8px;
}
.people button {
  font-size: 13px;
  justify-content: flex-start;
  min-width: 0;
  padding: 7px;
  overflow-wrap: anywhere;
}
.people button:disabled { opacity: 1; }
.people .avatar { width: 44px; height: 44px; }
.people button[aria-pressed='true'] {
  border-color: var(--mint);
  background: #206056;
}
.people small {
  display: block;
  font-weight: normal;
  color: #cee4db;
}
.answer {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}
.channel {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border-radius: 8px;
  border: 1px solid #a89974;
  background: #fff8e7;
}
.channel b,
.channel .num {
  display: grid;
  place-items: center;
  color: #217364;
  font: 700 18px ui-monospace;
}
.channel input {
  min-width: 0;
  color: #203e3a;
  background: transparent;
  border: 0;
  padding: 8px 0;
  font: 600 1.07rem Georgia;
  width: 100%;
}
.channel small {
  font: 11px monospace;
  color: #57716c;
}
.channel:focus-within {
  box-shadow: 0 0 0 3px #b47a2a;
}
.channel input:focus {
  outline: 0;
}
.plate {
  margin-top: 14px;
}
.muted {
  color: var(--dim);
}
.paper .muted {
  color: #52665e;
}
.stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.stats span,
.tier {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid #94977c;
  font-size: 0.81rem;
}
.matchslot {
  padding: 12px 0;
  border-bottom: 1px solid #ae9f7d;
}
.matchslot h3,
.rowhead {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: space-between;
  overflow-wrap: anywhere;
}
.chip {
  font-size: 0.8rem;
  padding: 4px 7px;
  margin: 3px 2px;
  min-height: 36px;
}
.chip .avatar {
  width: 24px;
  height: 24px;
}
.tier0,
.chip.tier0 {
  background: linear-gradient(120deg, #ffc5bc, #ffe8a2, #b6f3d3, #a9d3f9, #e4c2ef);
  color: #173833;
}
.tier1 {
  background: linear-gradient(110deg, #ffe39d, #d9a34c);
  color: #483516;
}
.tier2 {
  background: linear-gradient(120deg, #e9f2f7, #afbfcb);
  color: #263c47;
}
.tier3 {
  background: #ead0b0;
  color: #503825;
}
details {
  padding: 9px 0;
  border-bottom: 1px solid #82918660;
}
summary {
  font-weight: 700;
}
.ranking {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ranking li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #78948b42;
}
.ranking button {
  padding: 3px 7px;
  font-size: 0.9rem;
}
.score {
  font:
    bold 1rem ui-monospace,
    monospace;
}
.wave {
  width: 100%;
  height: 40px;
  display: block;
  color: #8aefd6;
  filter: drop-shadow(0 0 3px #4baf98);
}
.station {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.signal {
  padding: 12px;
  background: repeating-linear-gradient(0deg, #0d3130 0 2px, #0a282a 3px 4px);
  border: 1px solid #7f937e;
  border-radius: 8px;
}
.award {
  margin: 7px 0;
}
.award b {
  display: block;
  color: var(--brass);
}
.session {
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
#notice {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 92vw;
  background: #fff0cf;
  color: #243b39;
  z-index: 7;
  border-radius: 8px;
  font-weight: 700;
}
#notice:not(:empty) {
  padding: 10px 16px;
  border: 1px solid #94724b;
  box-shadow: 0 3px 18px #0006;
}
dialog {
  color: var(--ivory);
  background: #113d40;
  border: 2px solid var(--brass);
  border-radius: 15px;
  max-width: min(510px, 92vw);
  padding: 25px;
}
dialog::backdrop {
  background: #001718c9;
}
dialog input {
  width: 100%;
  margin-bottom: 10px;
}
dialog h2 {
  margin-bottom: 14px;
}
.scoring {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.sync-event {
  color: #193935;
  background: linear-gradient(100deg, #a2eed2, #f5d397);
  padding: 8px 12px;
  border-radius: 8px;
}
.perfect {
  background: linear-gradient(110deg, #ffb7c7, #ffdf9a, #adf6d5, #aecdf7);
  animation: glow 2s ease-in-out 2;
}
.empty {
  font-style: italic;
  opacity: 0.8;
}
@keyframes glow {
  50% {
    box-shadow: 0 0 24px #99fadd;
  }
}
@media (max-width: 760px) {
  .workspace,
  .station {
    grid-template-columns: 1fr;
  }
  .herocopy {
    padding: 28px;
  }
  .hero {
    min-height: 420px;
    background-position: 60% center;
  }
  .hero footer {
    display: none;
  }
  .volume {
    width: 52px;
  }
  .people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .people button {
    display: block;
  }
  .workspace {
    gap: 11px;
  }
  main {
    padding: 10px;
  }
  .control {
    padding: 7px;
  }
  .control-group {
    gap: 4px;
  }
  .games-full {
    display: none;
  }
  .games-short {
    display: inline;
  }
  .mini-brand {
    font-size: 20px;
  }
  .label {
    font-size: 0.68rem;
  }
  .history {
    flex-wrap: wrap;
  }
  .hist {
    min-width: 42px;
  }
  .statusbar {
    position: sticky;
    top: 54px;
    z-index: 2;
  }
  .statusbar button {
    padding: 6px 10px;
  }
  .hero .actions {
    max-width: 340px;
  }
}
@media (max-width: 410px) {
  .volume {
    width: 40px;
  }
  .control-group {
    gap: 2px;
  }
  .all-games svg {
    display: none;
  }
  .mini-brand {
    font-size: 17px;
  }
  .control svg {
    width: 15px;
  }
  .channel {
    grid-template-columns: 25px 1fr auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

@font-face {
  font-family: Playfair Display;
  src: url(/playfair.woff2) format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Barlow Condensed;
  src: url(/barlow.woff2) format('woff2');
  font-weight: 700;
  font-display: swap;
}
.herocopy h1,
h2,
.mini-brand {
  font-family: 'Playfair Display', Georgia, serif;
}
.label,
.caption {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem;
}
.herocopy h1 {
  white-space: nowrap;
  font-size: clamp(64px, 7.5vw, 112px);
}
.herocopy {
  max-width: 690px;
}

.ranking .score-parts {
  display: block;
  font:
    500 0.68rem/1.45 system-ui,
    sans-serif;
  color: var(--mint);
  text-align: right;
}

.hero.staffed {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.4fr);
  align-items: stretch;
  min-height: 0;
  background: radial-gradient(ellipse at 20% 0%, #285450, #0b3034 63%, #08272c);
}
.staffed .herocopy {
  align-self: center;
  padding: clamp(24px, 3vw, 46px);
  min-width: 0;
}
.staffed .herocopy h1 { font-size: clamp(58px, 6vw, 95px); line-height: 1.06; }
.crew-stage {
  margin: 0;
  align-self: stretch;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-inline-start: 1px solid #b49161;
  background: #183c39;
}
.crew-stage img, .crew-stage video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bench-caption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 14px 9px;
  color: #fff3d5;
  background: linear-gradient(transparent, #0c2528d6);
  font-size: 0.86rem;
}
.bench-caption button {
  min-width: 42px;
  min-height: 36px;
  line-height: 1;
  padding: 4px;
  background: #123b3dec;
}
.cast-era { margin: 6px 0 0; color: #efdfbd; font-size: .92rem; line-height: 1.4; }
@media (max-width: 800px) {
  .hero.staffed { grid-template-columns: minmax(0,1fr); }
  .staffed .herocopy { padding: 22px; }
  .crew-stage { aspect-ratio: 16/8.5; border-inline-start: 0; border-top: 1px solid #b49161; }
}

body[data-experiment]::before {
  background: linear-gradient(180deg, #08191f44, #071a24a8), var(--scene) center / cover;
}
body[data-experiment] { isolation: isolate; }
body[data-experiment='1'] { --scene: url(/room-1.webp); --station: #d1df8c; }
body[data-experiment='2'] { --scene: url(/room-2.webp); --station: #8cdced; }
body[data-experiment='3'] { --scene: url(/room-3.webp); --station: #e8a5af; }
body[data-experiment='4'] { --scene: url(/room-4.webp); --station: #ffbc80; }
body[data-experiment='5'] { --scene: url(/room-5.webp); --station: #efa1db; }
body[data-experiment='6'] { --scene: url(/room-6.webp); --station: #b6afff; }
body[data-experiment] .statusbar { border-bottom: 3px solid var(--station); }
.crew-report { margin: 0; display: block; padding: 0; overflow: hidden; }
.bench-view { position: relative; overflow: hidden; background: #132f32; }
.bench-view img { display: block; width: 100%; height: auto; }
.bench-view video { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.bench-view .bench-caption span { color: #fff4d9; font: 600 clamp(17px, 1.6vw, 24px)/1.2 Georgia, serif; }
.crew-report figcaption { padding: 12px 18px 15px; border-top: 2px solid var(--station); }
.crew-report figcaption p { margin: 0; }
.crew-report figcaption .label { margin-bottom: 4px; color: var(--station); }
.crew-report.speaking figcaption { border-top-color: white; }
.round-findings { display: grid; gap: 16px; margin: 16px 0; }
.personal-findings {
  display: grid;
  grid-template: "question crew" auto "answers answers" auto "totals totals" auto /
    minmax(0, 1fr) minmax(240px, 32%);
  align-items: center;
  gap: 18px 28px;
}
.findings-heading { grid-area: question; overflow-wrap: anywhere; }
.personal-findings .crew-report { grid-area: crew; color: var(--ivory); }
.personal-findings .bench-view { aspect-ratio: 3 / 1; }
.personal-findings .bench-view :is(img, video) { height: 100%; object-fit: cover; object-position: center 35%; }
.personal-findings .crew-report figcaption { padding: 8px 14px 11px; }
.personal-findings .stats { grid-area: totals; margin: 0; }
.answer-grid {
  grid-area: answers;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 42px);
  border-top: 1px solid #ae9f7d;
}
.match-wording { margin: 3px 0 6px; font-size: .92rem; }
.answer-grid .matchslot { min-width: 0; }
.answer-grid .matchslot h3 { align-items: baseline; }
.answer-grid .matchslot h3 b { flex: none; font-variant-numeric: tabular-nums; }
.answer-grid .chip { max-width: calc(100% - 4px); flex-wrap: wrap; overflow-wrap: anywhere; }
@media (max-width: 680px) {
  .personal-findings {
    grid-template: "question" auto "answers" auto "totals" auto "crew" auto / minmax(0, 1fr);
    gap: 14px;
  }
  .answer-grid { grid-template-columns: minmax(0, 1fr); }
}

.collective { grid-column: 1 / -1; min-width: 0; }
.thought-grid, .thought-grid > div { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; gap: clamp(12px, 1.8vw, 25px); }
.thought-column { min-width: 0; }
.thought-column details { padding: 0; overflow-wrap: anywhere; }
.thought-column summary { display: grid; align-items: baseline; grid-template-columns: 8px minmax(0,1fr) auto; gap: 7px; padding: 9px 0; cursor: pointer; line-height: 1.3; }
.thought-column summary::-webkit-details-marker { display: none; }
.thought-column summary::before { content: '▸'; color: var(--station, var(--mint)); font-size: .82em; }
.thought-column details[open] > summary::before { content: '▾'; }
.thought-column summary small { font: 600 .73rem/1.5 ui-monospace, monospace; white-space: nowrap; color: var(--dim); }
.thought-column .chip { max-width: 100%; flex-wrap: wrap; margin: 2px 0 6px; text-align: left; }
@media (max-width: 900px) { .thought-grid > div { display: block; } }
@media (max-width: 420px) { .thought-grid { display: block; } }

.honors, .archive, .public-board { margin: 16px 0; }
.honors { padding: 0; overflow: hidden; background: #102b35; }
.honors-banner {
  min-height: clamp(155px, 17vw, 235px); padding: clamp(19px, 3vw, 42px);
  display: flex; flex-direction: column; justify-content: center;
  background: #0e2432 url(/honors-bench.webp) center 40% / cover;
}
.honors-banner h2 { font-size: clamp(36px,5vw,72px); margin: 0; color: #fff4cf; }
.honors ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(220px,100%),1fr)); gap: 12px; list-style: none; padding: 18px; margin: 0; }
.honors li {
  background: linear-gradient(110deg,#15323d,#0c252e); padding: 13px 15px;
  border: 1px solid #52656a; border-top: 4px solid var(--reagent); border-radius: 7px 7px 16px 16px;
}
.honors li h3 { color: var(--reagent); margin: 0; font: 600 1.3rem Georgia,serif; }
.honorees { display: flex; gap: 6px 12px; flex-wrap: wrap; margin: 10px 0 5px; }
.honors li small { color: #d1e4df; }
.archive { background: linear-gradient(155deg,#123842,#071e2a 80%); }
.samples {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(79px,1fr); align-items: start;
  overflow-x: auto; list-style: none; padding: 14px 8px 9px; margin: 0;
  background: repeating-linear-gradient(to top, transparent 0 31px,#86cdcc1e 32px), #081e29;
  border: 1px solid #546561; border-radius: 9px; text-align:center; color: #e8f6ef;
}
.sample { --liquid: linear-gradient(#a8f7eb,#318787); font: 600 .84rem/1.3 ui-monospace,monospace; min-width:0; }
.sample.rainbow { --liquid: linear-gradient(15deg,#a58aec,#7bcdfa 26%,#a5efc1 50%,#ffdd8f 74%,#f89cae); }
.sample.gold { --liquid: linear-gradient(#ffe6a5,#d59a37); }
.sample.silver { --liquid: linear-gradient(#e9f8ff,#8da9c2); }
.sample-tube {
  overflow: hidden; position: relative; width:42px; height:110px; margin:8px auto;
  border:2px solid #acc0b6; border-top:4px solid #ddbd8a; border-radius:3px 3px 19px 19px;
  background: linear-gradient(90deg,#c0e4ff24,transparent 28%,#a8d0eb1a);
}
.reagent { position:absolute; inset:auto 0 0; background:var(--liquid); }
.medal { position:relative; display:inline-block; margin-top:5px; font-size:1.1rem; line-height:1;
  background:var(--liquid); color:transparent; background-clip:text; filter:drop-shadow(0 1px 1px #172932); }
.sample small { display:block; margin-top:2px; }
.record-name { text-transform:capitalize; }
.current-label { color:#a5f4d1; }
.sample.current b { border-bottom:2px solid #a5f4d1; }
.archive-key { margin:12px 0 0; color:var(--dim); font-size:.85rem; }
.samples {
  --sample-width: clamp(80px, 8vw, 117px);
  grid-auto-columns: var(--sample-width);
  max-width: 100%; width: max-content;
  padding-inline: 14px; border-bottom: 6px double #9d8764;
}
.sample.gold .sample-tube { border-color: #eac06a; }
.sample.silver .sample-tube { border-color: #c3d2df; }
.sample.rainbow .sample-tube { border-color: #cfb9de; }
.sample .record-name { color: #ffe9c1; }

.standings-board {
  margin: 12px 0 16px; padding: 12px clamp(10px, 2vw, 22px) 16px; border: 1px solid #ab966a;
  border-radius: 14px; background: linear-gradient(115deg,#163d3f,#09272d 72%);
}
.standings-board h2 { margin: 0 0 8px; font-size: 1.45rem; }
.standing-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 6px; padding: 0; margin: 0; list-style: none; }
.standing-grid li { min-width: 0; }
.standing {
  display: grid; grid-template-columns: auto auto minmax(0,1fr); gap: 7px; align-items: center;
  text-align: left; width: 100%; height: 100%; padding: 6px 8px; line-height: 1.18; background: #12343b; border-color: #52706e;
}
.standing.mine { border-color: #ebc47c; background: linear-gradient(110deg,#583f28,#304741); }
.standing[aria-pressed=true] { box-shadow: inset 0 -3px var(--mint); }
.standing .place { color: #ffda91; font: bold .98rem/1 ui-monospace,monospace; }
.standing .avatar { width: 30px; height: 30px; }
.standing-name { display: block; overflow-wrap: anywhere; font-weight: 700; }
.standing-score { display: block; color: #cfdfd8; font-size: .78rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.final-signal { margin: 14px 0; }
@media (max-width: 1080px) { .standing-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 660px) {
  .standing-grid { grid-auto-flow: column; grid-template-rows: repeat(3,auto); grid-template-columns: none;
    grid-auto-columns: minmax(140px, 37%); overflow-x: auto; padding: 2px 2px 7px; scroll-snap-type: x proximity; }
  .standing-grid li { scroll-snap-align: start; }
}

.count-stage {
  position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; align-content: center;
  gap: clamp(14px, 2vh, 24px); min-height: min(65svh, 570px); padding: 28px 12px; border-radius: 22px;
  color: #dbfff0; border: 2px solid #b09a69; background: #05272c; box-shadow: inset 0 0 0 5px #163438;
}
.count-stage::before { content: ''; position: absolute; z-index: -1; inset: 7px; border-radius: 15px;
  background: linear-gradient(90deg,#092c2bbf,#092c2be8 48%,#092c2bbf),var(--scene) center/cover; }
.count-host { display: flex; align-items: center; gap: 10px; }
.count-host img { width: 48px; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--brass); border-radius: 50%; }
.count-host h2 { margin: 0; font: italic 700 1.4rem Georgia, serif; color: var(--ivory); }
.scope-face { position: relative; display: grid; place-items: center; width: min(100%,470px); height: clamp(156px,28vh,250px);
  border-radius: 42% / 15%; border: 5px solid #b99e65; outline: 4px solid #293b36; background-color: #093a3a;
  background-image: linear-gradient(#94d1bc20 1px,transparent 1px),linear-gradient(90deg,#94d1bc20 1px,transparent 1px);
  background-size: 24px 24px; box-shadow: inset 0 0 40px #021418,0 8px 12px #00191a88; }
.scope-ticks { position: absolute; width: 72%; height: 64%; border: 1px dashed #bcddc33b; border-radius: 50%; }
.count-value { font: 700 clamp(64px,10vw,135px)/1 Georgia,serif; letter-spacing: -.035em; color: var(--station,var(--mint)); text-shadow: 0 0 23px #afedcd44; }
.count-stage[data-beat="-1"] .count-value { font-size: clamp(40px,6vw,72px); }
.count-lamps { display: flex; gap: 14px; }
.count-lamps i { width: 17px; aspect-ratio: 1; border-radius: 50%; border: 2px solid #937f5b; background: #112e30; }
.count-lamps .lit { background: var(--station,var(--mint)); box-shadow: 0 0 10px var(--station,var(--mint)); }
.enable-count[hidden] { display: none; }
.standing.mine .place { font-size: 1.18rem; color: #ffde9d; }

.entry-actions .controlrow { display: inline-flex; align-items: stretch; gap: 4px; }
.entry-actions input { width: 7.4em; min-width: 0; text-transform: uppercase; }
.entry-actions input::placeholder { text-transform: none; }
.entry-note { display: block; margin-top: 12px; color: var(--dim); }
.waiting-lab .herocopy h2 { margin: 0; font-size: clamp(36px,5vw,72px); line-height: 1.03; }
.waiting-lab .herocopy .invite-plate { display: inline-grid; gap: 2px; margin: 18px 0 10px; padding: 6px 18px; border: 1px solid var(--brass); border-radius: 8px; background: #102d2e; color: var(--brass); font: bold 13px/1.2 monospace; }
.invite-plate b { color: var(--ivory); font-size: 26px; letter-spacing: .12em; }
.wait-state { align-self: center; }
.lobby-roster, .lobby-guide { margin: 14px 0; }
.lobby-roster h3, .lobby-guide h2, .lobby-guide h3 { margin: 0; }
.lobby-roster > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 10px; }
.lobby-roster > div:first-child span { color: var(--dim); }
.lobby-guide ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; list-style: none; padding: 0; margin: 14px 0 0; }
.lobby-guide li { min-width: 0; }
.lobby-guide li p { margin: .25em 0 0; max-width: 36ch; }
.guide-drawing { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 108px; margin-bottom: 12px; border: 2px solid #ab8a51; border-radius: 10px; background-color: #143c3b; background-image: repeating-linear-gradient(0deg,transparent 0 13px,#d5f9da15 13px 14px),repeating-linear-gradient(90deg,transparent 0 13px,#d5f9da15 13px 14px); box-shadow: inset 0 0 18px #061d21a1; color: #fcf1ce; }
.prompt-drawing span { padding: 7px; font: italic bold 18px Georgia,serif; }
.prompt-drawing b { font: 42px Georgia,serif; color: #f5c86e; }
.channel-drawing { display:grid; grid-template-columns:repeat(2,auto); align-content:center; }
.channel-drawing span,.match-drawing span { background:#f8e7bb; color:#263e3c; border-left:3px solid #bd8344; border-radius:3px; padding: 2px 6px; font-size:14px; font-weight:700; }
.match-drawing { flex-wrap:wrap; align-content:center; }
.match-drawing b { flex-basis:100%; text-align:center; color:#a8f0cf; }
@media(max-width:680px) {
 .lobby-guide ol { grid-template-columns:1fr; }
 .lobby-guide li { display:grid; grid-template-columns:minmax(112px,40%) 1fr; column-gap:12px; align-content:center; }
 .guide-drawing { grid-column:1;grid-row:1/3;margin:0;min-height:94px; }
 .prompt-drawing { flex-direction:column-reverse;gap:0; }
 .prompt-drawing b { font-size:26px; }
 .prompt-drawing span,.channel-drawing span,.match-drawing span { font-size:12px; }
 .channel-drawing { grid-template-columns:auto; gap:2px; }
 .lobby-guide h3 {align-self:end;}
}
