/* arena.css — NC26 Idea Arena
   Built on Once UI tokens (colors_and_type.css). Arena-specific layout, the
   six stage screens, the operator drawer and all motion live here.
   Live-accent + gold ramps are injected as --live-* / --gold-* on .arena-root. */

* { box-sizing: border-box; }

/* Global keyboard-focus ring. Applies app-wide (stage, audience, kiosk, console);
   :focus-visible keeps it keyboard-only so mouse/touch don't get a ring. Components
   that set `outline: none` on :focus should rely on this for keyboard users. */
:focus-visible {
  outline: 2px solid var(--brand-border-strong, #5A93FC);
  outline-offset: 2px;
  border-radius: var(--radius-s, 8px);
}

html, body { height: 100%; margin: 0; background: #000; }
/* The stage (.arena-root) is a fixed, self-scrolling 1920px canvas, so it locks body
   scroll. Every OTHER route (/console, /submit, /vote, /join, /table) is a normal tall
   document that MUST scroll — so only clamp body overflow when the stage is mounted.
   arena.css is loaded globally; without this guard those pages get clipped at viewport
   height and can't scroll. */
body:has(.arena-root) { overflow: hidden; }

/* ---- the 16:9 stage: a fixed 1920×1080 canvas, contain-scaled + centred ----
   The CD model: clip the viewport and letterbox (black bars) on anything that isn't true
   16:9, instead of scrolling. fit() in App.tsx scales the canvas by min(vw/1920, vh/1080)
   and translates it to centre (top-left origin) — so the whole stage always fits and the
   header + footer can never be clipped off the bottom. The canvas sits at the viewport's
   top-left; the translate does the centring. */
#viewport { position: fixed; inset: 0; background: #000; overflow: hidden; }
.scale-wrap { position: absolute; top: 0; left: 0; }

.stage-canvas {
  position: absolute; top: 0; left: 0;
  width: 1920px; height: 1080px;
  transform-origin: top left;
  background:
    radial-gradient(1200px 760px at 50% -8%, var(--neutral-background-medium) 0%, transparent 62%),
    var(--page-background);
  color: var(--neutral-on-background-strong);
  font-family: var(--font-body);
  overflow: hidden;
}

/* hairline grain so the deep neutral never feels flat on a big screen */
.stage-canvas::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--neutral-alpha-weak) 1px, transparent 1px),
    linear-gradient(90deg, var(--neutral-alpha-weak) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(1400px 900px at 50% 40%, #000 0%, transparent 78%);
          mask-image: radial-gradient(1400px 900px at 50% 40%, #000 0%, transparent 78%);
  opacity: .5;
}

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.col { display: flex; flex-direction: column; }
.row { display: flex; flex-direction: row; }
.mono { font-family: var(--font-code); }

/* ============================ STAGE HEADER ============================ */
.stage-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 40px 64px; flex: 0 0 auto; z-index: 3;
}
.brand-lock { display: flex; align-items: center; gap: 18px; }
.brand-mark {
  width: 56px; height: 56px; border-radius: var(--radius-m);
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--live-solid), var(--live-deep));
  box-shadow: 0 0 0 1px var(--live-line), 0 10px 30px var(--live-glow);
  font-family: var(--font-heading); font-weight: 700; font-size: 24px;
  color: #fff; letter-spacing: -0.02em;
}
.brand-name { font-family: var(--font-heading); font-weight: 600; font-size: 30px; line-height: 1; }
.brand-sub  { font-family: var(--font-label); font-size: 16px; color: var(--neutral-on-background-weak); margin-top: 6px; letter-spacing: .14em; text-transform: uppercase; }

.phase-pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: var(--radius-full);
  background: var(--neutral-background-medium);
  border: 1px solid var(--neutral-alpha-weak);
  font-family: var(--font-label); font-size: 18px; font-weight: 600;
  color: var(--neutral-on-background-medium);
}
.live-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--live-bright); box-shadow: 0 0 0 0 var(--live-glow); animation: livePulse 2s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 var(--live-glow); } 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ============================ 1 · COUNTDOWN ============================ */
.count-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding-bottom: 28px; }
.count-eyebrow { font-family: var(--font-label); font-size: 22px; letter-spacing: .22em; text-transform: uppercase; color: var(--neutral-on-background-weak); }
.count-num {
  font-family: var(--font-heading); font-weight: 600; font-size: 340px; line-height: .9;
  letter-spacing: 0; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--neutral-on-background-strong) 0%, var(--neutral-on-background-medium) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.count-num.urgent { background: linear-gradient(180deg, var(--scheme-yellow-900), var(--scheme-yellow-700)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.count-status { font-family: var(--font-heading); font-size: 34px; font-weight: 500; color: var(--neutral-on-background-medium); margin-top: 6px; }
.count-status b { color: var(--live-bright); font-weight: 700; }

/* three-phase session rail */
.phase-rail { flex: 0 0 auto; display: flex; gap: 18px; padding: 0 64px 40px; }
.phase-seg { flex-basis: 0; display: flex; flex-direction: column; gap: 12px; }
.phase-seg-bar { height: 10px; border-radius: 999px; background: var(--neutral-background-strong); overflow: hidden; }
.phase-seg-fill { height: 100%; border-radius: 999px; background: var(--live-solid); transition: width .9s var(--transition-eased); }
.phase-seg.done .phase-seg-fill { background: var(--scheme-green-700); }
.phase-seg.active .phase-seg-bar { box-shadow: 0 0 0 1px var(--live-line); }
.phase-seg-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.phase-seg-name { font-family: var(--font-label); font-size: 20px; font-weight: 600; color: var(--neutral-on-background-weak); }
.phase-seg.active .phase-seg-name { color: var(--live-bright); }
.phase-seg.done .phase-seg-name { color: var(--neutral-on-background-medium); }
.phase-seg-min { font-family: var(--font-code); font-size: 16px; color: var(--neutral-on-background-weak); }

/* table map — compact bar cells (style 3) */
.map-strip { flex: 0 0 auto; padding: 0 64px 56px; }
.map-strip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.map-strip-title { font-family: var(--font-label); font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--neutral-on-background-weak); }
.map-legend { display: flex; gap: 24px; font-family: var(--font-label); font-size: 16px; color: var(--neutral-on-background-weak); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg-swatch { width: 14px; height: 14px; border-radius: 4px; }

.map-grid { display: grid; grid-template-columns: repeat(13, 1fr); gap: 12px; }
.map-cell {
  height: 64px; border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-label); font-weight: 600; font-size: 22px;
  background: var(--neutral-background-medium);
  border: 1px solid var(--neutral-alpha-weak);
  color: var(--neutral-on-background-weak);
  transition: var(--transition-macro-medium);
  position: relative; overflow: hidden;
}
.map-cell.done {
  background: var(--live-bg);
  border-color: var(--live-line);
  color: var(--live-bright);
}
.map-cell.done .tick { width: 16px; height: 16px; }
.map-cell.just {
  animation: cellPop var(--mo-long) var(--transition-eased);
}
@keyframes cellPop { 0% { transform: scale(.7); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ============================ 2 · LIVE BOARD ============================ */
.board-head { padding: 28px 56px; flex: 0 0 auto; }
.board-meta { display: flex; align-items: center; gap: 18px; }
.board-grid {
  flex: 1; display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px; padding: 0 56px 44px; min-height: 0;
}
[data-density="dense"] .board-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
[data-density="dense"] .idea-card { padding: 16px 18px; gap: 8px; }
[data-density="dense"] .idea-title { font-size: 19px; }
[data-density="dense"] .idea-desc { font-size: 14px; -webkit-line-clamp: 2; }

.idea-card {
  background: var(--neutral-background-medium);
  border: 1px solid var(--neutral-alpha-weak);
  border-radius: var(--radius-l);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.idea-card .cat-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cat-color); opacity: .85; }
.idea-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.idea-table { font-family: var(--font-heading); font-weight: 600; font-size: 18px; color: var(--neutral-on-background-strong); }
.cat-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px; border-radius: var(--radius-full);
  font-family: var(--font-label); font-size: 13px; font-weight: 600;
  background: var(--cat-bg); color: var(--cat-color);
  border: 1px solid var(--cat-line); white-space: nowrap;
}
.cat-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--cat-color); }
.idea-title {
  font-family: var(--font-heading); font-weight: 600; font-size: 21px; line-height: 1.2;
  color: var(--neutral-on-background-strong); text-wrap: balance;
}
.idea-desc {
  font-family: var(--font-body); font-size: 15px; line-height: 1.42;
  color: var(--neutral-on-background-medium); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.idea-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-family: var(--font-label); font-size: 13px; font-weight: 600;
}
.status-pill .sd { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.st-submitted { background: var(--neutral-background-strong); color: var(--neutral-on-background-medium); }
.st-enriched  { background: var(--live-bg); color: var(--live-bright); border: 1px solid var(--live-line); }
.st-finalist  { background: var(--gold-bg); color: var(--gold-bright); border: 1px solid var(--gold-line); }
.st-winner    { background: var(--gold-solid); color: #1a1206; }

.idea-card.enter { animation: cardIn var(--mo-long) var(--transition-eased) both; }
@keyframes cardIn {
  0%   { opacity: 0; transform: translateY(16px) scale(.96); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.idea-card.pulse::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 2px solid var(--live-bright); opacity: 0; pointer-events: none;
  animation: arrivePulse 1.6s var(--transition-eased) 1;
}
@keyframes arrivePulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.04); } }

/* shared empty hint */
.empty-hint { flex: 1; display: grid; place-items: center; color: var(--neutral-on-background-weak); font-family: var(--font-label); font-size: 22px; }

/* ============================ 3 · LOCKED ============================ */
.board-grid.frozen .idea-card { filter: grayscale(.85) brightness(.62); transition: filter var(--mo-long); }
.lock-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 26px; z-index: 4;
  background: radial-gradient(900px 520px at 50% 46%, rgba(0,0,0,.42), rgba(0,0,0,.82));
  backdrop-filter: blur(2px);
  animation: fadeIn var(--mo-long) var(--transition-eased) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lock-badge {
  width: 96px; height: 96px; border-radius: var(--radius-l);
  display: grid; place-items: center;
  background: var(--neutral-background-medium); border: 1px solid var(--neutral-alpha-medium);
}
.lock-badge svg { width: 44px; height: 44px; stroke: var(--neutral-on-background-medium); }
.lock-title { font-family: var(--font-heading); font-weight: 600; font-size: 96px; letter-spacing: -0.01em; }
.lock-count { font-family: var(--font-heading); font-size: 40px; color: var(--live-bright); font-weight: 600; }
.lock-msg { font-family: var(--font-body); font-size: 28px; color: var(--neutral-on-background-medium); }

/* ============================ 4 · JUDGING ============================ */
.judge-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 0 120px; }
.judge-title { font-family: var(--font-heading); font-weight: 600; font-size: 108px; letter-spacing: -0.01em; text-align: center; }
.judge-sub { font-family: var(--font-body); font-size: 30px; color: var(--neutral-on-background-medium); text-align: center; margin-top: -18px; }
.meter { width: 100%; max-width: 1180px; height: 16px; border-radius: 999px; background: var(--neutral-background-strong); overflow: hidden; position: relative; }
.meter-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--live-deep), var(--live-bright)); position: relative; transition: width .9s var(--transition-eased); }
.meter-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-100%); animation: shimmer 1.8s var(--mo-shimmer) infinite;
}
@keyframes shimmer { to { transform: translateX(220%); } }
.judge-pct { font-family: var(--font-heading); font-variant-numeric: tabular-nums; font-size: 40px; font-weight: 600; color: var(--neutral-on-background-medium); }

.rubric-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; max-width: 1180px; }
.rubric-chip {
  padding: 14px 26px; border-radius: var(--radius-full);
  font-family: var(--font-label); font-size: 22px; font-weight: 600;
  background: var(--neutral-background-medium); border: 1px solid var(--neutral-alpha-weak);
  color: var(--neutral-on-background-weak); transition: var(--transition-macro-medium);
}
.rubric-chip.active { background: var(--live-bg); border-color: var(--live-line); color: var(--live-bright); transform: translateY(-2px); }
.rubric-chip.done { color: var(--neutral-on-background-medium); }
.rubric-chip.done::before { content: "✓  "; color: var(--scheme-green-700); }

/* scan grid of all submissions */
.scan-grid { display: grid; grid-template-columns: repeat(13, 1fr); gap: 10px; width: 100%; max-width: 1180px; }
.scan-cell { height: 30px; border-radius: var(--radius-xs); background: var(--neutral-background-strong); transition: var(--transition-micro-long); }
.scan-cell.lit { background: var(--live-solid); box-shadow: 0 0 14px var(--live-glow); }
.scan-cell.scored { background: var(--live-line); }

/* ============================ 5 · TOP THREE ============================ */
.reveal-wrap { flex: 1; display: flex; flex-direction: column; }
.reveal-head { text-align: center; padding: 8px 0 0; }
.reveal-kicker { font-family: var(--font-label); font-size: 22px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-bright); }
.reveal-h { font-family: var(--font-heading); font-weight: 600; font-size: 84px; letter-spacing: -0.01em; margin-top: 6px; }
@keyframes revealIn { 0% { opacity: 0; transform: translateY(40px) scale(.94); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

.award-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: var(--radius-full);
  font-family: var(--font-label); font-size: 16px; font-weight: 600;
  background: var(--gold-bg); color: var(--gold-bright); border: 1px solid var(--gold-line); white-space: nowrap;
}

/* judge avatars */
.judge-row { display: flex; align-items: center; }
.judge-av {
  display: inline-grid; place-items: center; border-radius: 999px; margin-left: -8px;
  background: var(--neutral-background-strong); border: 2px solid var(--neutral-background-weak);
  color: var(--neutral-on-background-medium); font-family: var(--font-label); font-weight: 700; letter-spacing: .02em;
}
.judge-av:first-child { margin-left: 0; }

.cat-chip.lg { font-size: 18px; padding: 7px 16px; gap: 9px; }
.cat-chip.lg .cat-dot { width: 10px; height: 10px; }

/* four finalist cards in a row */
.fin4-row { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 26px 72px 80px; align-items: stretch; }
.fin4-card {
  border-radius: var(--radius-xl); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden;
  background: linear-gradient(168deg, var(--cat-bg), var(--neutral-background-medium) 64%);
  border: 1px solid var(--cat-line);
}
.fin4-card.in { animation: revealIn var(--mo-reveal) var(--transition-eased) both; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.fin4-card.pending { background: var(--neutral-background-weak); border: 1px dashed var(--neutral-alpha-medium); align-items: center; justify-content: center; }
.fin4-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fin4-score { text-align: right; }
.fin4-score .v { font-family: var(--font-heading); font-weight: 700; font-size: 44px; line-height: 1; color: var(--cat-color); }
.fin4-score .l { font-family: var(--font-label); font-size: 13px; color: var(--neutral-on-background-weak); letter-spacing: .1em; text-transform: uppercase; }
.fin4-table { font-family: var(--font-label); font-size: 20px; color: var(--neutral-on-background-medium); font-weight: 600; }
.fin4-title { font-family: var(--font-heading); font-weight: 600; font-size: 30px; line-height: 1.14; text-wrap: balance; color: var(--neutral-on-background-strong); }
.fin4-desc { font-family: var(--font-body); font-size: 18px; line-height: 1.45; color: var(--neutral-on-background-medium); }
.fin4-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.fin4-judges { display: flex; align-items: center; gap: 12px; }
.fin4-judges-l { font-family: var(--font-label); font-size: 14px; color: var(--neutral-on-background-weak); letter-spacing: .04em; }
.fin4-ph { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.fin4-ph-q { font-family: var(--font-heading); font-size: 96px; color: var(--neutral-on-background-weak); opacity: .35; line-height: .8; }
.fin4-ph-l { font-family: var(--font-label); font-size: 18px; color: var(--neutral-on-background-weak); letter-spacing: .08em; text-transform: uppercase; }

/* 6 · VERDICT (McGinley) — REMOVED (D1 2026-06-11, Task 8). The old-design verdict
   screen (`.verdict-*`, `.mcg-*`, `.v-reco-*`, `.v-mini-*`) was the John McGinley card +
   recommendation panel. Task 7 replaced the winner reveal with the CD AI-host "What Next"
   panel (scoped `CD_WIN_STYLE` in Screens.tsx); none of these classes are referenced in
   src any longer (grep-confirmed 0 refs), so the whole block is retired here. */

/* ============================ 6 · WINNER ============================ */
.winner-screen { position: absolute; inset: 0; overflow: hidden; background: var(--page-background); }
.spotlight {
  position: absolute; left: 50%; top: -22%; width: 1500px; height: 1400px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--gold-glow), transparent 70%);
  opacity: 0; animation: spotIn var(--mo-reveal) var(--transition-eased) .1s forwards;
  pointer-events: none;
}
.beam {
  position: absolute; left: 50%; top: -6%; width: 760px; height: 1200px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold-beam), transparent 64%);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  opacity: 0; animation: spotIn var(--mo-reveal) var(--transition-eased) .05s forwards; pointer-events: none;
}
@keyframes spotIn { to { opacity: 1; } }
.winner-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 180px; gap: 22px; z-index: 2; animation: revealIn var(--mo-reveal) var(--transition-eased) .15s both; }
.winner-kicker { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-label); font-size: 26px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-bright); }
.winner-trophy { width: 30px; height: 30px; stroke: var(--gold-bright); }
.winner-table { font-family: var(--font-label); font-size: 28px; color: var(--neutral-on-background-medium); letter-spacing: .04em; }
.winner-title { font-family: var(--font-heading); font-weight: 600; font-size: 120px; line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; max-width: 1500px; background: linear-gradient(180deg, #fff, var(--gold-bright)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.winner-meta { display: flex; align-items: center; gap: 18px; }
.winner-desc { font-family: var(--font-body); font-size: 30px; line-height: 1.4; color: var(--neutral-on-background-medium); max-width: 1180px; }
.winner-rationale { display: flex; gap: 20px; max-width: 1120px; padding: 26px 32px; border-radius: var(--radius-l); background: var(--neutral-background-medium); border: 1px solid var(--gold-line); text-align: left; align-items: center; }
.winner-rationale p { margin: 0; font-family: var(--font-body); font-size: 23px; line-height: 1.5; color: var(--neutral-on-background-medium); }
.winner-rationale-by { margin-top: 10px; font-family: var(--font-label); font-size: 16px; letter-spacing: .04em; color: var(--gold-bright); font-weight: 600; }
.winner-stat { display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 22px; border-radius: var(--radius-full); background: var(--gold-solid); color: #1a1206; font-family: var(--font-heading); font-weight: 700; }
.winner-stat .l { font-family: var(--font-label); font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }

/* confetti / gold motes */
.mote { position: absolute; top: -20px; width: 9px; height: 9px; border-radius: 2px; background: var(--gold-bright); opacity: 0; animation: fall linear infinite; pointer-events: none; z-index: 1; }
@keyframes fall { 0% { transform: translateY(-30px) rotate(0); opacity: 0; } 12% { opacity: .9; } 100% { transform: translateY(1180px) rotate(420deg); opacity: 0; } }
[data-motion="restrained"] .mote, [data-motion="restrained"] .beam { display: none; }

/* ============================ iPad CONFIRMATION ============================ */
.ipad-screen { position: absolute; inset: 0; display: grid; place-items: center; }
.ipad {
  width: 920px; height: 700px; border-radius: 42px; padding: 22px;
  background: linear-gradient(160deg, #2a2a2a, #141414);
  box-shadow: 0 50px 120px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.05);
}
.ipad-glass {
  width: 100%; height: 100%; border-radius: 24px; background: var(--page-background);
  border: 1px solid var(--neutral-alpha-weak); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px; text-align: center; padding: 60px; position: relative; overflow: hidden;
}
.ipad-check { width: 132px; height: 132px; border-radius: 999px; display: grid; place-items: center; background: var(--success-background-medium); border: 1px solid var(--success-border-medium); animation: checkPop var(--mo-long) var(--transition-eased) both; }
@keyframes checkPop { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.ipad-check svg { width: 64px; height: 64px; stroke: var(--scheme-green-700); }
.ipad-table { font-family: var(--font-heading); font-weight: 600; font-size: 52px; }
.ipad-idea { font-family: var(--font-heading); font-size: 30px; color: var(--neutral-on-background-medium); line-height: 1.2; max-width: 640px; text-wrap: balance; }
.ipad-status { display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; border-radius: var(--radius-full); background: var(--success-background-medium); color: var(--success-on-background-medium); border: 1px solid var(--success-border-medium); font-family: var(--font-label); font-size: 20px; font-weight: 600; }
.ipad-msg { font-family: var(--font-body); font-size: 22px; color: var(--neutral-on-background-weak); }

/* ============================ OPERATOR DRAWER ============================ */
#op-toggle {
  position: fixed; right: 22px; top: 22px; z-index: 50;
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px;
  border-radius: var(--radius-full); cursor: pointer;
  background: var(--neutral-background-medium); color: var(--neutral-on-background-strong);
  border: 1px solid var(--neutral-alpha-medium); font-family: var(--font-label); font-weight: 600; font-size: 15px;
  backdrop-filter: blur(8px); box-shadow: var(--shadow-m);
}
#op-toggle:hover { background: var(--neutral-background-strong); }
#op-toggle svg { width: 18px; height: 18px; stroke: currentColor; }

.op-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; z-index: 49;
  background: var(--neutral-background-weak); border-left: 1px solid var(--neutral-alpha-medium);
  box-shadow: -30px 0 80px rgba(0,0,0,.5); transform: translateX(100%);
  transition: transform var(--transition-macro-medium); display: flex; flex-direction: column;
  font-family: var(--font-body); color: var(--neutral-on-background-strong);
}
.op-drawer.open { transform: translateX(0); }
.op-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--neutral-alpha-weak); }
.op-h-title { font-family: var(--font-heading); font-weight: 600; font-size: 19px; }
.op-h-sub { font-family: var(--font-code); font-size: 12px; color: var(--neutral-on-background-weak); margin-top: 3px; }
.op-x { width: 34px; height: 34px; border-radius: var(--radius-s); display: grid; place-items: center; background: transparent; border: 1px solid var(--neutral-alpha-weak); color: var(--neutral-on-background-medium); cursor: pointer; }
.op-x:hover { background: var(--neutral-background-medium); }
.op-body { flex: 1; overflow-y: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 22px; }

.op-stage-banner { border-radius: var(--radius-m); padding: 14px 16px; background: var(--neutral-background-medium); border: 1px solid var(--neutral-alpha-weak); display: flex; align-items: center; gap: 12px; }
.op-stage-banner .ph-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--live-bright); }
.op-stage-banner .ph-name { font-family: var(--font-heading); font-weight: 600; font-size: 16px; }
.op-stage-banner .ph-flow { font-family: var(--font-code); font-size: 11px; color: var(--neutral-on-background-weak); margin-left: auto; }

.op-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.op-stat { background: var(--neutral-background-medium); border: 1px solid var(--neutral-alpha-weak); border-radius: var(--radius-m); padding: 12px 14px; }
.op-stat .v { font-family: var(--font-heading); font-weight: 700; font-size: 26px; line-height: 1; }
.op-stat .l { font-family: var(--font-label); font-size: 12px; color: var(--neutral-on-background-weak); margin-top: 6px; letter-spacing: .04em; }
.op-stat.live .v { color: var(--live-bright); }
.op-stat.gold .v { color: var(--gold-bright); }

.op-section-label { font-family: var(--font-label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--neutral-on-background-weak); margin-bottom: -8px; }

.op-primary {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; border-radius: var(--radius-m); border: none; cursor: pointer;
  background: var(--live-solid); color: #fff;
  font-family: var(--font-label); font-weight: 700; font-size: 18px;
  box-shadow: 0 8px 24px var(--live-glow); transition: var(--transition-micro-medium);
}
.op-primary:hover { background: var(--live-bright); }
.op-primary.gold { background: var(--gold-solid); color: #1a1206; box-shadow: 0 8px 24px var(--gold-glow); }
.op-primary.gold:hover { background: var(--gold-bright); }
.op-primary:disabled { background: var(--neutral-background-strong); color: var(--neutral-on-background-weak); box-shadow: none; cursor: not-allowed; }
.op-primary svg { width: 20px; height: 20px; stroke: currentColor; }

.op-btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.op-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border-radius: var(--radius-s); cursor: pointer;
  background: transparent; color: var(--neutral-on-background-strong);
  border: 1px solid var(--neutral-alpha-medium);
  font-family: var(--font-label); font-weight: 600; font-size: 14px; transition: var(--transition-micro-medium);
}
.op-btn:hover { background: var(--neutral-background-medium); }
.op-btn.wide { grid-column: span 2; }
.op-btn.active { background: var(--live-bg); border-color: var(--live-line); color: var(--live-bright); }
.op-btn svg { width: 16px; height: 16px; stroke: currentColor; }
.op-btn.danger { color: var(--scheme-red-700); border-color: var(--danger-border-medium); }
.op-btn.danger:hover { background: var(--danger-background-medium); }

.op-select { width: 100%; height: 44px; border-radius: var(--radius-s); background: var(--neutral-background-medium); color: var(--neutral-on-background-strong); border: 1px solid var(--neutral-alpha-medium); padding: 0 14px; font-family: var(--font-label); font-size: 14px; font-weight: 600; cursor: pointer; }

.op-winner-sum { border-radius: var(--radius-m); padding: 16px; background: var(--gold-bg); border: 1px solid var(--gold-line); }
.op-winner-sum .l { font-family: var(--font-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); }
.op-winner-sum .t { font-family: var(--font-heading); font-weight: 600; font-size: 18px; margin-top: 6px; line-height: 1.2; }
.op-winner-sum .m { font-family: var(--font-code); font-size: 12px; color: var(--neutral-on-background-medium); margin-top: 8px; }

.op-json { width: 100%; min-height: 92px; resize: vertical; border-radius: var(--radius-s); background: var(--neutral-background-medium); border: 1px solid var(--neutral-alpha-medium); color: var(--neutral-on-background-strong); font-family: var(--font-code); font-size: 12px; padding: 10px 12px; }
.op-hint { font-family: var(--font-code); font-size: 11px; color: var(--neutral-on-background-weak); }

/* toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 60; opacity: 0; transition: var(--transition-macro-medium); padding: 14px 22px; border-radius: var(--radius-full); background: var(--neutral-background-strong); border: 1px solid var(--neutral-alpha-medium); color: var(--neutral-on-background-strong); font-family: var(--font-label); font-weight: 600; font-size: 15px; box-shadow: var(--shadow-l); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* keep tweaks/host buttons clear of op toggle handled inline */

/* ============================================================
   UNIFIED STAGE — one persistent view: bar (countdown) + board,
   with focus layers for locked / judging / finalists / verdict / winner.
   ============================================================ */
/* Fixed 1080px-tall flex column: header (auto) + main-region (flex-fill) + footer strip
   (auto). The contain-scaler (App.tsx fit()) sizes the whole 1920×1080 canvas to the
   viewport, so this height is definite and the main region fills cleanly without JS. */
.stage { position: relative; height: 1080px; display: flex; flex-direction: column; overflow: hidden; }

/* ---- persistent bar ---- */
.stagebar {
  flex: 0 0 auto; display: flex; flex-direction: column; gap: 16px;
  padding: 26px 56px 22px; position: relative; z-index: 6;
  border-bottom: 1px solid var(--neutral-alpha-weak);
  background: linear-gradient(180deg, var(--neutral-background-medium), transparent);
}
.sb-top { display: flex; align-items: center; justify-content: space-between; }
.sb-main { display: flex; align-items: flex-end; gap: 44px; }

.sb-clock { display: flex; flex-direction: column; gap: 2px; flex: 0 0 auto; min-width: 340px; }
.sb-clock-label { font-family: var(--font-label); font-size: 17px; letter-spacing: .16em; text-transform: uppercase; color: var(--neutral-on-background-weak); }
.sb-clock-num {
  font-family: var(--font-heading); font-weight: 600; font-size: 112px; line-height: .9;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
  background: linear-gradient(180deg, var(--neutral-on-background-strong), var(--neutral-on-background-medium));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sb-clock-num.urgent { background: linear-gradient(180deg, var(--scheme-yellow-900), var(--scheme-yellow-700)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sb-clock-foot { font-family: var(--font-label); font-size: 16px; color: var(--neutral-on-background-weak); margin-top: 4px; }

.sb-context { flex: 1; display: flex; align-items: flex-end; min-width: 0; padding-bottom: 6px; }

/* three-phase rail in the bar */
.sb-rail { display: flex; gap: 16px; width: 100%; }
.sb-seg { flex-basis: 0; display: flex; flex-direction: column; gap: 9px; }
.sb-seg-bar { height: 9px; border-radius: 999px; background: var(--neutral-background-strong); overflow: hidden; }
.sb-seg-fill { height: 100%; border-radius: 999px; background: var(--live-solid); transition: width .9s var(--transition-eased); }
.sb-seg.done .sb-seg-fill { background: var(--scheme-green-700); }
.sb-seg.active .sb-seg-bar { box-shadow: 0 0 0 1px var(--live-line); }
.sb-seg-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-family: var(--font-label); font-size: 16px; font-weight: 600; color: var(--neutral-on-background-weak); }
.sb-seg.active .sb-seg-meta { color: var(--live-bright); }
.sb-seg.done .sb-seg-meta { color: var(--neutral-on-background-medium); }
.sb-seg-meta .mono { font-family: var(--font-code); font-weight: 500; opacity: .8; }

/* judging meter in the bar */
.sb-judging { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.sb-meter { max-width: none; }
.sb-judging-row { display: flex; align-items: center; gap: 20px; }
.sb-judging-row .judge-pct { font-size: 22px; }
.sb-rubric { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-rubric-chip { padding: 6px 13px; border-radius: var(--radius-full); font-family: var(--font-label); font-size: 14px; font-weight: 600; background: var(--neutral-background-medium); border: 1px solid var(--neutral-alpha-weak); color: var(--neutral-on-background-weak); }
.sb-rubric-chip.active { background: var(--live-bg); border-color: var(--live-line); color: var(--live-bright); }
.sb-rubric-chip.done { color: var(--neutral-on-background-medium); }
.sb-rubric-chip.done::before { content: "✓ "; color: var(--scheme-green-700); }

.sb-statusline { font-family: var(--font-body); font-size: 22px; color: var(--neutral-on-background-medium); }

.sb-count { flex: 0 0 auto; text-align: right; }
.sb-count-v { font-family: var(--font-heading); font-weight: 600; font-size: 40px; line-height: 1; color: var(--neutral-on-background-medium); }
.sb-count-v b { color: var(--live-bright); font-weight: 700; }
.sb-count-v span { font-size: 26px; color: var(--neutral-on-background-weak); margin-left: 4px; }
.sb-count-l { font-family: var(--font-label); font-size: 15px; color: var(--neutral-on-background-weak); margin-top: 6px; letter-spacing: .04em; }

/* ---- board region (fills the rest, holds focus layers) ---- */
.board-region { flex: 1; position: relative; min-height: 0; }
.board-grid {
  position: absolute; inset: 0; display: grid;
  grid-template-columns: repeat(5, 1fr); grid-auto-rows: 1fr;
  gap: 16px; padding: 22px 56px 36px;
  transition: filter var(--mo-long), transform var(--mo-long);
}
[data-density="dense"] .board-grid { grid-template-columns: repeat(6, 1fr); gap: 13px; }
.board-grid.backdrop { filter: blur(3px) brightness(.5) saturate(.7); transform: scale(.99); }
.board-grid.frozen .idea-card { filter: grayscale(.7) brightness(.7); }
.board-grid.scanning::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(105deg, transparent 42%, var(--live-glow) 50%, transparent 58%);
  background-size: 240% 100%; animation: boardScan 2.2s linear infinite;
}
@keyframes boardScan { 0% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

/* compact card tuning for the always-on board */
.idea-desc { -webkit-line-clamp: 2; }
.idea-score { font-family: var(--font-code); font-size: 15px; color: var(--neutral-on-background-medium); font-weight: 600; }
.idea-card.scored { animation: scoredPop var(--mo-long) var(--transition-eased) both; }
@keyframes scoredPop { 0% { box-shadow: 0 0 0 1px var(--live-line); } 100% { box-shadow: none; } }
.idea-card.emph-finalist { box-shadow: 0 0 0 2px var(--gold-line), 0 16px 40px var(--gold-glow); filter: none !important; }
.idea-card.emph-winner { box-shadow: 0 0 0 2px var(--gold-solid), 0 18px 50px var(--gold-glow); filter: none !important; }
.idea-flag { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--gold-solid); color: #1a1206; }

/* ---- locked ribbon (board stays visible, frozen) ---- */
.focus-ribbon.locked {
  position: absolute; top: 30px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: 18px; padding: 18px 30px;
  border-radius: var(--radius-l); background: var(--neutral-background-medium);
  border: 1px solid var(--neutral-alpha-medium); box-shadow: var(--shadow-xl);
  animation: dropIn var(--mo-long) var(--transition-eased) both;
}
@keyframes dropIn { 0% { opacity: 0; transform: translate(-50%, -16px); } 100% { opacity: 1; transform: translate(-50%, 0); } }
.lock-badge.sm { width: 54px; height: 54px; border-radius: var(--radius-m); }
.ribbon-title { font-family: var(--font-heading); font-weight: 600; font-size: 30px; }
.ribbon-sub { font-family: var(--font-body); font-size: 19px; color: var(--neutral-on-background-medium); border-left: 1px solid var(--neutral-alpha-medium); padding-left: 18px; }

/* ---- generic focus layer (scrim over the board) ---- */
.focus-layer {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px; padding: 30px 56px 48px;
  background: radial-gradient(1200px 760px at 50% 42%, rgba(0,0,0,.45), rgba(0,0,0,.74));
  animation: fadeIn var(--mo-long) var(--transition-eased) both;
}
.focus-head { text-align: center; }
.focus-kicker { font-family: var(--font-label); font-size: 21px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-bright); }
.focus-h { font-family: var(--font-heading); font-weight: 600; font-size: 76px; letter-spacing: -0.01em; margin-top: 6px; }

/* finalists layer */
.finalists-layer .fin4-row { width: 100%; padding: 0; flex: 0 0 auto; height: 620px; }

/* verdict layer */
.verdict-layer { padding: 0; }
.verdict-layer .verdict-body { width: 100%; height: 100%; padding: 40px 72px; }

/* winner layer */
.winner-layer { padding: 0; background: radial-gradient(1100px 760px at 50% 40%, rgba(0,0,0,.35), rgba(0,0,0,.82)); }
.winner-layer .winner-inner { padding: 0 160px; gap: 20px; }

/* ---- cheering layer ---- */
.cheer-layer.boom::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 62%, var(--gold-glow), transparent 58%);
  animation: boomFade .5s var(--transition-eased) both;
}
@keyframes boomFade { 0% { opacity: .8; } 100% { opacity: 0; } }
.cheer-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; width: 100%; height: 600px; }
.cheer-card {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 28px 26px;
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(168deg, var(--cat-bg), var(--neutral-background-medium) 64%);
  border: 1px solid var(--cat-line); transition: var(--transition-macro-medium);
}
.cheer-card.loudest { border-color: var(--gold-line); box-shadow: 0 0 0 2px var(--gold-line), 0 22px 60px var(--gold-glow); transform: translateY(-4px); }
.cheer-card.cheering { animation: cheerBump .5s var(--transition-eased); }
@keyframes cheerBump { 0% { transform: scale(1); } 42% { transform: scale(1.035); } 100% { transform: scale(1); } }
.cheer-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.loudest-tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: var(--radius-full); background: var(--gold-solid); color: #1a1206; font-family: var(--font-label); font-size: 14px; font-weight: 700; }
.cheer-title { font-family: var(--font-heading); font-weight: 600; font-size: 26px; line-height: 1.14; text-wrap: balance; }
.cheer-table { font-family: var(--font-label); font-size: 18px; color: var(--neutral-on-background-weak); }
.cheer-meter-wrap { flex: 1; display: flex; align-items: flex-end; gap: 16px; min-height: 0; }
.cheer-meter { flex: 1; height: 100%; border-radius: var(--radius-m); background: var(--neutral-background-strong); display: flex; align-items: flex-end; overflow: hidden; }
.cheer-meter-fill { width: 100%; min-height: 4px; background: linear-gradient(0deg, var(--gold-deep), var(--gold-bright)); border-radius: var(--radius-m); box-shadow: 0 0 26px var(--gold-glow); transition: height .5s var(--transition-eased); }
.cheer-level { font-family: var(--font-heading); font-weight: 700; font-size: 46px; line-height: 1; color: var(--gold-bright); align-self: flex-end; min-width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.cheer-burst { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.cheer-spark { position: absolute; bottom: 34%; width: 9px; height: 9px; border-radius: 2px; background: var(--gold-bright); opacity: 0; animation: cheerRise .95s var(--transition-eased) forwards; }
@keyframes cheerRise { 0% { transform: translate(0,0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), -360px) scale(.4); opacity: 0; } }
.cheer-foot { font-family: var(--font-label); font-size: 20px; color: var(--neutral-on-background-medium); letter-spacing: .02em; }

/* ---- operator: session clock + cheer controls ---- */
.op-clock { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--neutral-background-medium); border: 1px solid var(--neutral-alpha-weak); border-radius: var(--radius-m); }
.op-clock-num { font-family: var(--font-heading); font-weight: 700; font-size: 32px; line-height: 1; color: var(--neutral-on-background-strong); font-variant-numeric: tabular-nums; }
.op-clock-btns { display: flex; gap: 8px; }
.op-clock-btns .op-btn { height: 38px; padding: 0 14px; }

.op-cheer-btn { display: flex; align-items: center; gap: 11px; width: 100%; height: 46px; padding: 0 13px; border-radius: var(--radius-s); background: transparent; border: 1px solid var(--neutral-alpha-medium); cursor: pointer; color: var(--neutral-on-background-strong); font-family: var(--font-label); font-weight: 600; font-size: 14px; transition: var(--transition-micro-medium); }
.op-cheer-btn:hover { background: var(--neutral-background-medium); }
.op-cheer-btn.loud { border-color: var(--gold-line); }
.occ-cat { width: 10px; height: 10px; border-radius: 999px; flex: 0 0 auto; }
.occ-name { flex: 0 0 auto; white-space: nowrap; }
.occ-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--neutral-background-strong); overflow: hidden; }
.occ-fill { height: 100%; background: var(--gold-solid); border-radius: 999px; transition: width .4s var(--transition-eased); }
.occ-lvl { flex: 0 0 auto; width: 26px; text-align: right; color: var(--neutral-on-background-weak); }

/* ============================================================
   TABBED MAIN-DISPLAY SHELL (current build)
   ============================================================ */
.stagebar .sb-main { align-items: center; }

/* tabs */
.tabbar { display: flex; gap: 6px; padding: 5px; border-radius: var(--radius-full); background: var(--neutral-background-strong); border: 1px solid var(--neutral-alpha-weak); }
.tab { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 24px; border: none; border-radius: var(--radius-full); background: transparent; color: var(--neutral-on-background-medium); font-family: var(--font-label); font-weight: 600; font-size: 17px; cursor: pointer; transition: var(--transition-micro-medium); }
.tab:hover:not(.on) { color: var(--neutral-on-background-strong); }
.tab.on { background: var(--neutral-background-medium); color: var(--neutral-on-background-strong); box-shadow: var(--shadow-s); }
.tab.on svg { stroke: var(--live-bright); }
.tab-badge { padding: 1px 9px; border-radius: 999px; background: var(--live-bg); color: var(--live-bright); font-size: 13px; font-weight: 700; }

/* clock control */
.sb-clock-ctrl { display: flex; gap: 8px; align-items: center; }
.clk-btn { width: 50px; height: 50px; border-radius: var(--radius-m); display: grid; place-items: center; background: var(--neutral-background-medium); border: 1px solid var(--neutral-alpha-medium); color: var(--neutral-on-background-strong); cursor: pointer; transition: var(--transition-micro-medium); }
.clk-btn:hover { background: var(--neutral-background-strong); }
.clk-btn.on { background: var(--live-bg); border-color: var(--live-line); color: var(--live-bright); }
.clk-btn.nav { width: 40px; }
.clk-chev { font-size: 26px; line-height: 1; font-weight: 400; }

/* judging subsection stepper — re-skinned to the CD chrome rail; see CD_SUBRAIL_STYLE
   (`.cdsubrail`) in Screens.tsx. The old `.judge-subrail`/`.jsub*` rules are retired. */

/* ============================================================
   AI AVATAR VIDEO (HeyGen placeholders)
   ============================================================ */
.avatar-video { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.avatar-stage {
  position: relative; width: 460px; max-width: 38vw; aspect-ratio: 16 / 10;
  border-radius: var(--radius-l); overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--neutral-background-strong), var(--neutral-background-weak)),
    var(--neutral-background-medium);
  border: 1px solid var(--neutral-alpha-medium); display: grid; place-items: center;
  box-shadow: var(--shadow-l);
}
.avatar-video.lg .avatar-stage { width: 560px; max-width: 46vw; }
.avatar-video.xl .avatar-stage { width: 428px; height: 241px; aspect-ratio: auto; max-width: 48vw; }
.avatar-video.xl .avatar-head { width: 120px; height: 120px; font-size: 46px; }
.avatar-video.hero .avatar-stage { width: 760px; height: 470px; aspect-ratio: auto; max-width: 52vw; }
.avatar-video.hero .avatar-head { width: 168px; height: 168px; font-size: 64px; }
.avatar-figure { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.avatar-head { width: 132px; height: 132px; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(160deg, var(--neutral-solid-medium), var(--neutral-background-strong)); border: 1px solid var(--neutral-alpha-medium); color: var(--neutral-on-background-strong); font-family: var(--font-heading); font-weight: 700; font-size: 48px; position: relative; isolation: isolate; }
.avatar-video.playing .avatar-head { box-shadow: 0 0 0 4px var(--live-bg), 0 0 40px var(--live-glow); border-color: var(--live-line); }
.avatar-wave { display: flex; align-items: flex-end; gap: 5px; height: 28px; }
.avatar-wave i { width: 5px; height: 100%; border-radius: 999px; background: linear-gradient(180deg, #00bfff, #7c5cff); animation: avWave 0.9s ease-in-out infinite; }
.avatar-wave i:nth-child(2){ animation-delay: .12s; } .avatar-wave i:nth-child(3){ animation-delay: .24s; } .avatar-wave i:nth-child(4){ animation-delay: .36s; } .avatar-wave i:nth-child(5){ animation-delay: .48s; }
@keyframes avWave { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.avatar-tag { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: var(--radius-full); background: var(--static-black-medium); border: 1px solid var(--neutral-alpha-weak); font-family: var(--font-code); font-size: 12px; color: var(--neutral-on-background-medium); letter-spacing: .02em; }
.avatar-play { position: absolute; bottom: 14px; right: 14px; width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; background: var(--live-solid); color: #fff; border: none; box-shadow: 0 8px 24px var(--live-glow); transition: var(--transition-micro-medium); }
.avatar-play:hover { background: var(--live-bright); }
.avatar-play.on { background: var(--neutral-background-strong); color: var(--live-bright); border: 1px solid var(--live-line); box-shadow: none; }
.avatar-meta { text-align: center; }
.avatar-name { font-family: var(--font-heading); font-weight: 600; font-size: 24px; }
.avatar-role { font-family: var(--font-label); font-size: 16px; color: var(--neutral-on-background-weak); margin-top: 2px; }
.avatar-caption { font-family: var(--font-label); font-size: 16px; color: var(--neutral-on-background-medium); }

/* Siri-style host presence — voice-active animated orb (placeholder for the HeyGen avatar). */
.avatar-video.playing .avatar-head::before {
  content: ""; position: absolute; inset: -24%; border-radius: 999px; z-index: -1;
  background: conic-gradient(from 0deg, var(--live-bright), #7c5cff, #00bfff, #19e3b1, var(--live-bright));
  filter: blur(24px);
  animation: siriSpin 7s linear infinite, siriGlow 2.6s ease-in-out infinite;
}
.avatar-video.playing .avatar-head::after {
  content: ""; position: absolute; inset: -6%; border-radius: 999px; z-index: -1;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--live-bright) 60%, transparent), transparent 70%);
  animation: siriBreathe 2.6s ease-in-out infinite;
}
@keyframes siriSpin { to { transform: rotate(360deg); } }
@keyframes siriGlow { 0%,100% { opacity: .5; } 50% { opacity: .95; } }
@keyframes siriBreathe { 0%,100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.16); opacity: .85; } }
@media (prefers-reduced-motion: reduce) {
  .avatar-video.playing .avatar-head::before, .avatar-video.playing .avatar-head::after { animation: siriGlow 3s ease-in-out infinite; }
  .avatar-wave i { animation: none; }
}

/* judging split layout */
/* judging split layout */
.judge-split { flex: 1; display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; padding: 0 80px; }
.judge-left { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; text-align: left; }
.judge-left .judge-title { text-align: left; }
.judge-left .judge-sub { text-align: left; max-width: 620px; }
.judge-left .meter { width: 100%; max-width: 620px; }
.judge-prompt { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: var(--radius-full); background: var(--live-bg); border: 1px solid var(--live-line); color: var(--live-bright); font-family: var(--font-label); font-weight: 600; font-size: 20px; margin-top: 8px; }
.rubric-row.left { justify-content: flex-start; max-width: 640px; }

/* judging stage (centered, large avatar) */
.judge-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; padding: 10px 60px 0; overflow: hidden; }
.judge-stage-head { text-align: center; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.judge-stage-head .judge-title { font-size: 52px; line-height: 1.04; }
.judge-stage-head .judge-sub { font-size: 20px; margin-top: 0; line-height: 1.4; color: var(--neutral-on-background-medium); }
.judge-stage-foot { min-height: 50px; display: flex; align-items: center; justify-content: center; }

/* judging split: big video left · pointable AI quotes right */
.judge-split { flex: 1; min-height: 0; width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; padding: 8px 8px 24px; }
.judge-quotes { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 720px; }
.judge-quotes-label { font-family: var(--font-label); font-size: 16px; letter-spacing: .16em; text-transform: uppercase; color: var(--neutral-on-background-weak); }
.judge-quote-list { display: flex; flex-direction: column; gap: 12px; }
.judge-quote {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 20px 16px 18px; border-radius: var(--radius-l);
  background: var(--neutral-background-medium); border: 1px solid var(--neutral-alpha-weak);
  border-left: 4px solid var(--cat-color);
  opacity: 0; transform: translateY(10px); transition: opacity var(--mo-long), transform var(--mo-long), box-shadow var(--transition-micro-medium), border-color var(--transition-micro-medium);
}
.judge-quote.in { opacity: 1; transform: translateY(0); }
.judge-quote.active { background: var(--neutral-background-strong); box-shadow: 0 0 0 1px var(--cat-line), var(--shadow-m); }
.judge-quote-mark { font-family: var(--font-heading); font-size: 40px; line-height: .7; color: var(--cat-color); flex: 0 0 auto; }
.judge-quote p { margin: 0; font-family: var(--font-body); font-size: 21px; line-height: 1.4; color: var(--neutral-on-background-strong); text-wrap: pretty; }
.judge-quotes .judge-progressline { width: 100%; max-width: none; margin-top: 4px; }
.judge-quotes .judge-prompt.done { align-self: flex-start; margin-top: 4px; }
.judge-progressline { display: flex; align-items: center; gap: 18px; width: 620px; max-width: 60vw; }
.judge-progressline .meter { flex: 1; }
.judge-prompt.done { background: var(--gold-bg); border-color: var(--gold-line); color: var(--gold-bright); }
.judge-prompt.done kbd { background: var(--gold-solid); color: #1a1206; border: none; }

/* finalist avatar modal */
.avatar-modal { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; background: rgba(0,0,0,.66); backdrop-filter: blur(3px); animation: fadeIn var(--mo-long) var(--transition-eased) both; padding: 30px; }
.avatar-modal-card { position: relative; width: 1100px; max-width: 92%; border-radius: var(--radius-xl); padding: 30px 34px; background: linear-gradient(168deg, var(--cat-bg), var(--neutral-background-medium) 62%); border: 1px solid var(--cat-line); box-shadow: var(--shadow-xl); }
.avatar-modal-x { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: var(--radius-s); display: grid; place-items: center; background: var(--neutral-background-medium); border: 1px solid var(--neutral-alpha-medium); color: var(--neutral-on-background-medium); cursor: pointer; }
.avatar-modal-x:hover { background: var(--neutral-background-strong); }
.avatar-modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.avatar-modal-table { font-family: var(--font-label); font-size: 18px; color: var(--neutral-on-background-weak); }
.avatar-modal-body { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.avatar-modal-pitch { display: flex; flex-direction: column; gap: 12px; }
.avatar-modal-title { font-family: var(--font-heading); font-weight: 600; font-size: 34px; line-height: 1.12; text-wrap: balance; }
.avatar-modal-pitch p { margin: 0; font-family: var(--font-body); font-size: 20px; line-height: 1.5; color: var(--neutral-on-background-medium); }
.avatar-modal-hook { font-style: italic; color: var(--neutral-on-background-weak) !important; }
.avatar-modal-foot { margin-top: 20px; font-family: var(--font-label); font-size: 15px; color: var(--neutral-on-background-weak); text-align: center; }

/* winner selection + spotlight grid */
.winner-pick { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 0 56px; }
.winner-pick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; width: 100%; max-width: 1640px; }
.winner-pick-card { position: relative; overflow: hidden; text-align: left; cursor: pointer; border-radius: var(--radius-xl); padding: 26px 24px; background: linear-gradient(168deg, var(--cat-bg), var(--neutral-background-medium) 64%); border: 1px solid var(--cat-line); display: flex; flex-direction: column; gap: 14px; transition: var(--transition-micro-medium); color: inherit; font: inherit; }
/* dim the others when hovering the row; lift + focus the hovered one */
.winner-pick-row:hover .winner-pick-card { opacity: .4; filter: saturate(.7); transform: scale(.98); }
.winner-pick-row .winner-pick-card:hover { opacity: 1; filter: none; transform: translateY(-6px) scale(1.02); border-color: var(--gold-line); box-shadow: 0 0 0 2px var(--gold-line), 0 24px 64px var(--gold-glow); z-index: 2; }
.winner-pick-title { font-family: var(--font-heading); font-weight: 600; font-size: 26px; line-height: 1.16; text-wrap: balance; }
.winner-pick-foot { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-label); font-size: 18px; color: var(--neutral-on-background-weak); }
.winner-pick-focus { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, var(--gold-bg), rgba(0,0,0,.34)); opacity: 0; transition: opacity var(--transition-micro-medium); pointer-events: none; }
.winner-pick-card:hover .winner-pick-focus { opacity: 1; }
.winner-pick-q { font-family: var(--font-heading); font-weight: 700; font-size: 120px; line-height: 1; color: var(--gold-bright); text-shadow: 0 8px 30px var(--gold-glow); }
.winner-pick-hint { font-family: var(--font-label); font-size: 18px; color: var(--neutral-on-background-weak); }
.winner-grid { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; padding: 0 90px; }
.winner-grid .winner-inner { position: static; padding: 0; align-items: flex-start; text-align: left; }
.winner-grid .winner-title { font-size: 76px; line-height: 1.04; }
.winner-grid .winner-desc { font-size: 24px; max-width: 760px; }
.winner-grid .winner-title { background: linear-gradient(180deg, #fff, var(--gold-bright)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.winner-avatar { display: grid; place-items: center; }

/* tab body */
.tab-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.main-body { flex: 1; min-height: 0; position: relative; display: flex; }

/* ---- main · activity (Spark / Red Team) ----
   Re-skinned to the CD navy working ground — see CD_ACTIVITY_STYLE (`.cdact`) in
   Screens.tsx. The old centred dark `.activity*` / `.act-*` rules are retired. */

/* ---- main · judging (full body) ---- */
.judge-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 0 120px; }

/* ---- main · finalists ---- */
.finalists-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 26px 56px 30px; }
.finalists-screen .fin4-row { width: 100%; height: 540px; padding: 0; }
.fin4-card.clickable { cursor: pointer; text-align: left; font: inherit; color: inherit; }
.fin4-card.clickable:hover { border-color: var(--gold-line); box-shadow: 0 0 0 2px var(--gold-line), 0 20px 56px var(--gold-glow); transform: translateY(-5px); }
.crown-hint { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px; background: var(--gold-solid); color: #1a1206; font-family: var(--font-label); font-weight: 700; font-size: 16px; transform: translateY(100%); transition: transform var(--transition-micro-medium); }
.fin4-card.clickable:hover .crown-hint { transform: translateY(0); }
.crown-key { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--neutral-background-strong); border: 1px solid var(--neutral-alpha-weak); color: var(--neutral-on-background-medium); font-family: var(--font-code); font-size: 16px; }

/* fx control bar */
.fx-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.fx-btn { display: inline-flex; align-items: center; gap: 11px; height: 54px; padding: 0 24px; border-radius: var(--radius-full); background: var(--neutral-background-medium); border: 1px solid var(--neutral-alpha-medium); color: var(--neutral-on-background-strong); font-family: var(--font-label); font-weight: 600; font-size: 18px; cursor: pointer; transition: var(--transition-micro-medium); }
.fx-btn:hover { background: var(--neutral-background-strong); border-color: var(--gold-line); }
.fx-hint { display: flex; align-items: center; gap: 8px; font-family: var(--font-label); font-size: 16px; color: var(--neutral-on-background-weak); }
kbd { font-family: var(--font-code); font-size: 13px; padding: 3px 8px; border-radius: 6px; background: var(--neutral-background-strong); border: 1px solid var(--neutral-alpha-medium); color: var(--neutral-on-background-medium); }
.fx-hint kbd { margin-right: 2px; }
.fx-btn kbd { margin-left: 2px; }

/* closing button on winner */
.closing-btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: var(--radius-full); background: transparent; border: 1px solid var(--neutral-alpha-medium); color: var(--neutral-on-background-strong); font-family: var(--font-label); font-weight: 600; font-size: 17px; cursor: pointer; transition: var(--transition-micro-medium); }
.closing-btn:hover { background: var(--neutral-background-medium); }

/* ---- main · closing ---- */
/* Re-skinned to the CD teal sign-off — see CD_CLOSE_STYLE (`.cdclose`) in Screens.tsx.
   The old dark `.final-*` rules are retired (the component no longer emits those classes). */

/* ---- fx layer (applause / confetti) ---- */
.fx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 9; overflow: hidden; }
.fx-confetti { position: absolute; top: -24px; width: 12px; height: 14px; border-radius: 2px; animation: fxFall linear forwards; }
@keyframes fxFall { 0% { transform: translateY(-40px) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(1160px) rotate(560deg); opacity: 0; } }
/* FX recoloured to the NC26 palette (was gold/live tokens) — teal/coral/amber/lime. */
.fx-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 58%, color-mix(in srgb, var(--teal-bright) 38%, transparent), transparent 60%); animation: fxFlash .5s var(--transition-eased) both; }
@keyframes fxFlash { 0% { opacity: 0; } 22% { opacity: .7; } 100% { opacity: 0; } }
.fx-ring { position: absolute; left: 50%; top: 56%; width: 120px; height: 120px; border-radius: 999px; border: 3px solid color-mix(in srgb, var(--teal-bright) 55%, transparent); transform: translate(-50%, -50%) scale(.2); animation: fxRing 1s var(--transition-eased) forwards; }
@keyframes fxRing { 0% { opacity: .85; transform: translate(-50%,-50%) scale(.2); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(6); } }
.fx-clapbars { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; display: flex; align-items: flex-end; justify-content: center; gap: 8px; }
.fx-clapbar { width: 10px; transform-origin: bottom; border-radius: 4px 4px 0 0; background: linear-gradient(0deg, var(--teal-deep), var(--teal-bright)); animation: fxClap .65s var(--transition-eased) both; }
@keyframes fxClap { 0% { transform: scaleY(.08); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---- submissions tab ---- */
.subs-tab { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.subs-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 56px 18px; flex: 0 0 auto; }
.subs-title { font-family: var(--font-heading); font-weight: 600; font-size: 30px; }
.subs-sub { font-family: var(--font-label); font-size: 18px; color: var(--neutral-on-background-weak); margin-top: 4px; }
.start-judging { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 32px; border-radius: var(--radius-m); background: var(--live-solid); color: #fff; border: none; font-family: var(--font-label); font-weight: 700; font-size: 20px; cursor: pointer; box-shadow: 0 8px 24px var(--live-glow); transition: var(--transition-micro-medium); }
.start-judging:hover:not(:disabled) { background: var(--live-bright); }
.start-judging:disabled { background: var(--neutral-background-strong); color: var(--neutral-on-background-weak); box-shadow: none; cursor: not-allowed; }
.subs-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 1fr; gap: 16px; padding: 6px 56px 36px; }
[data-density="dense"] .subs-grid { grid-template-columns: repeat(6, 1fr); gap: 13px; }
.subs-tab .empty-hint { flex: 1; }

/* ---- session reset (armed) + testing chip ---- */
.clk-btn.armed { background: var(--danger-background-medium); border-color: var(--danger-border-medium); color: var(--scheme-red-700); width: auto; padding: 0 14px; }
.clk-confirm { font-family: var(--font-label); font-size: 14px; font-weight: 700; white-space: nowrap; }
.test-chip { margin-left: 12px; padding: 2px 9px; border-radius: var(--radius-s); background: var(--warning-background-medium); color: var(--warning-on-background-medium); border: 1px solid var(--warning-border-medium); font-size: 13px; font-weight: 700; letter-spacing: .08em; vertical-align: middle; }

/* ---- testing mode panel (secret) ---- */
.test-panel {
  position: fixed; top: 18px; left: 18px; z-index: 80; width: 320px;
  background: var(--neutral-background-weak); border: 1px solid var(--warning-border-medium);
  border-radius: var(--radius-l); box-shadow: var(--shadow-xl); overflow: hidden;
  font-family: var(--font-body); color: var(--neutral-on-background-strong);
}
.test-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--neutral-alpha-weak); background: var(--neutral-background-medium); }
.test-h { display: flex; align-items: center; gap: 10px; font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.test-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--warning-solid-strong); box-shadow: 0 0 0 0 var(--warning-solid-strong); animation: livePulse 2s ease-out infinite; }
.test-x { width: 30px; height: 30px; border-radius: var(--radius-s); display: grid; place-items: center; background: transparent; border: 1px solid var(--neutral-alpha-weak); color: var(--neutral-on-background-medium); cursor: pointer; }
.test-x:hover { background: var(--neutral-background-medium); }
.test-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; max-height: 78vh; overflow-y: auto; }
.test-sec { font-family: var(--font-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--neutral-on-background-weak); margin-top: 8px; }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.test-col { display: flex; flex-direction: column; gap: 6px; }
.test-btn { height: 36px; padding: 0 8px; border-radius: var(--radius-s); background: var(--neutral-background-medium); border: 1px solid var(--neutral-alpha-medium); color: var(--neutral-on-background-strong); font-family: var(--font-label); font-weight: 600; font-size: 13px; cursor: pointer; transition: var(--transition-micro-medium); }
.test-btn:hover { background: var(--neutral-background-strong); }
.test-btn.on { background: var(--live-bg); border-color: var(--live-line); color: var(--live-bright); }
.test-btn.wide { text-align: left; padding: 0 12px; }
.test-reset { margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: var(--radius-s); background: var(--danger-background-medium); border: 1px solid var(--danger-border-medium); color: var(--scheme-red-700); font-family: var(--font-label); font-weight: 700; font-size: 14px; cursor: pointer; }
.test-reset:hover { background: color-mix(in srgb, var(--danger-solid-strong) 22%, transparent); }
.test-foot { font-family: var(--font-label); font-size: 12px; color: var(--neutral-on-background-weak); margin-top: 10px; text-align: center; }
.test-foot kbd { font-size: 12px; padding: 1px 6px; }

/* ============================================================
   ALWAYS-ON SUBMISSIONS STRIP (main content above, subs below)
   ============================================================ */
.main-region { flex: 1 1 auto; min-height: 0; position: relative; display: flex; flex-direction: column; }
.stagebar .sb-top .sb-now { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: var(--radius-full); background: var(--neutral-background-strong); border: 1px solid var(--neutral-alpha-weak); }
.sb-now-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--live-bright); }
.sb-now-l { font-family: var(--font-label); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--neutral-on-background-weak); }
.sb-now-v { font-family: var(--font-label); font-size: 16px; font-weight: 700; color: var(--neutral-on-background-strong); }

.subs-strip {
  flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px;
  padding: 14px 56px 28px; border-top: 1px solid var(--neutral-alpha-weak);
  background: linear-gradient(0deg, var(--neutral-background-medium), transparent);
  transition: opacity var(--mo-long);
}
.subs-strip.dim { opacity: .45; }
.subs-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 auto; }
.subs-strip-title { display: flex; align-items: baseline; gap: 12px; font-family: var(--font-heading); font-weight: 600; font-size: 22px; }
.subs-strip-count { font-family: var(--font-code); font-size: 20px; color: var(--live-bright); font-weight: 600; }
.subs-strip-state { font-family: var(--font-label); font-size: 15px; color: var(--neutral-on-background-weak); font-weight: 500; }
.subs-strip-src { font-family: var(--font-label); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--neutral-on-background-weak); padding: 3px 10px; border-radius: var(--radius-full); border: 1px solid var(--neutral-alpha-weak); }
.subs-strip-src.on { color: var(--scheme-green-700); border-color: color-mix(in srgb, var(--scheme-green-600) 34%, transparent); }
.start-judging.sm { height: 46px; padding: 0 22px; font-size: 16px; gap: 9px; border-radius: var(--radius-s); }
.subs-strip-empty { flex: 1; display: flex; align-items: center; font-family: var(--font-label); font-size: 18px; color: var(--neutral-on-background-weak); }
.subs-strip-row {
  flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 92px; gap: 12px; align-content: start;
}

/* ---- main · introduction + getting started ----
   Re-skinned to the CD teal brand ground — see CD_INTRO_STYLE (`.cdintro`) and
   CD_GS_STYLE (`.cdgs`) in Screens.tsx. The old dark `.intro*` / `.getstarted*` / `.gs-*`
   rules are retired (the components no longer emit those classes). */

/* ---- pitch build split: text/timer left, cards right ---- */
.pitchbuild { flex: 1; display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 48px; padding: 36px 56px 28px; align-items: start; min-height: 0; }
.pitchbuild-left { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.pitchbuild-left .activity-title { font-size: 72px; text-align: left; }
.pitchbuild-left .activity-note { font-size: 24px; text-align: left; }
.pitchbuild-left .activity-timerwrap { align-items: flex-start; margin-top: 18px; }
.pitchbuild-left .activity-timer { font-size: 88px; }
.pitchbuild-left .activity-bar { width: 380px; }
.pitchbuild-right { min-width: 0; }
.pitchbuild-empty { display: flex; align-items: center; min-height: 240px; font-family: var(--font-label); font-size: 20px; color: var(--neutral-on-background-weak); }
.pitchbuild-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-content: start; }

.sub-card { position: relative; overflow: hidden; border-radius: var(--radius-l); padding: 18px 20px 18px 24px; display: flex; flex-direction: column; gap: 8px; background: var(--neutral-background-medium); border: 1px solid var(--neutral-alpha-weak); box-shadow: var(--shadow-xs); }
.sub-card-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cat-color); }
.sub-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sub-card-table { font-family: var(--font-label); font-weight: 700; font-size: 16px; color: var(--neutral-on-background-medium); }
.sub-card-title { font-family: var(--font-heading); font-weight: 600; font-size: 20px; line-height: 1.18; color: var(--neutral-on-background-strong); text-wrap: balance; }
.sub-card-desc { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.42; color: var(--neutral-on-background-medium); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sub-card.pulse { animation: cardIn var(--mo-long) var(--transition-eased) both; }
.sub-card.pulse::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--live-bright); opacity: 0; pointer-events: none; animation: arrivePulse 1.6s var(--transition-eased) 1; }

.sub-mini {
  position: relative; overflow: hidden; border-radius: var(--radius-m);
  padding: 12px 16px 12px 20px; display: flex; flex-direction: column; gap: 7px;
  background: var(--neutral-background-medium); border: 1px solid var(--neutral-alpha-weak);
}
.sub-mini-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cat-color); }
.sub-mini.fin { border-color: var(--gold-line); box-shadow: inset 0 0 0 1px var(--gold-line); }
.sub-mini-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sub-mini-table { font-family: var(--font-label); font-weight: 700; font-size: 15px; color: var(--neutral-on-background-medium); }
.sub-mini-cat { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-label); font-size: 13px; font-weight: 600; color: var(--cat-color); }
.sub-mini-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--cat-color); flex: 0 0 auto; }
.sub-mini-title { font-family: var(--font-heading); font-weight: 600; font-size: 16px; line-height: 1.25; color: var(--neutral-on-background-strong); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sub-mini.pulse { animation: cardIn var(--mo-long) var(--transition-eased) both; }
.sub-mini.pulse::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--live-bright); opacity: 0; pointer-events: none; animation: arrivePulse 1.6s var(--transition-eased) 1; }

/* finalists row flexes to fit the shorter main region now */
.finalists-screen { padding: 18px 48px 16px; gap: 18px; }
.finalists-screen .fin4-row { height: auto; flex: 1; min-height: 0; }
.finalists-screen .focus-h { font-size: 60px; }
.fin4-card { padding: 22px 22px; }
.fin4-desc { font-size: 16px; }

/* winner fills the main region (above the strip). Closing is now `.cdclose` (CD teal). */
.winner-screen { position: absolute; inset: 0; }

/* ---- small discreet testing toggle (bottom-left) ---- */
.test-toggle {
  position: fixed; left: 16px; bottom: 14px; z-index: 70;
  width: 34px; height: 34px; border-radius: var(--radius-s);
  display: grid; place-items: center; cursor: pointer;
  background: var(--neutral-background-medium); border: 1px solid var(--neutral-alpha-weak);
  color: var(--neutral-on-background-weak); opacity: .4; transition: var(--transition-micro-medium);
}
.test-toggle:hover { opacity: 1; color: var(--neutral-on-background-strong); }
.test-toggle.on { opacity: 1; background: var(--warning-background-medium); border-color: var(--warning-border-medium); color: var(--warning-on-background-medium); }

/* ---- data source toggle (live / demo), next to the testing toggle ---- */
.data-toggle {
  position: fixed; left: 58px; bottom: 14px; z-index: 70;
  height: 34px; padding: 0 12px; border-radius: var(--radius-s);
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--neutral-background-medium); border: 1px solid var(--neutral-alpha-weak);
  color: var(--neutral-on-background-weak); opacity: .4; transition: var(--transition-micro-medium);
  font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: .08em;
}
.data-toggle:hover { opacity: 1; }
.data-toggle-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--neutral-on-background-weak); }
.data-toggle.live { opacity: 1; background: color-mix(in srgb, var(--scheme-green-600) 14%, transparent); border-color: color-mix(in srgb, var(--scheme-green-600) 34%, transparent); color: var(--scheme-green-700); }
.data-toggle.live .data-toggle-dot { background: var(--scheme-green-700); box-shadow: 0 0 0 0 var(--scheme-green-700); animation: livePulse 2s ease-out infinite; }
/* live mode, backend reachable, but no session started yet: calm blue "STANDBY" — distinct
   from the alarming amber OFFLINE, so a healthy pre-session backend doesn't look broken. */
.data-toggle.standby { opacity: 1; background: color-mix(in srgb, var(--scheme-blue-600) 14%, transparent); border-color: color-mix(in srgb, var(--scheme-blue-600) 34%, transparent); color: var(--scheme-blue-700); }
.data-toggle.standby .data-toggle-dot { background: var(--scheme-blue-700); }
/* live mode but backend unreachable (e.g. 403 off-network, or no Worker on the dev server):
   honest amber "OFFLINE" — the board shows the real (empty) state, not demo data. */
.data-toggle.offline { opacity: 1; background: color-mix(in srgb, var(--scheme-yellow-600) 14%, transparent); border-color: color-mix(in srgb, var(--scheme-yellow-600) 34%, transparent); color: var(--scheme-yellow-700); }
.data-toggle.offline .data-toggle-dot { background: var(--scheme-yellow-700); }

.subs-strip-src.demo { color: var(--neutral-on-background-weak); }
