/* PRODIGEEK ARENA — tema ARCADE: VERSUS MODE
   PRODIGEEK ARENA come schermata select/versus di un picchiaduro a 16 bit.
   Ogni Ciclo è un round, Channel A sta sul lato 1P (ciano elettrico), Channel B sul lato 2P (magenta caldo).
   Il verde Prodigeek è "PLAYER READY / WINNER / INSERT COIN"; il giallo arcade solo per evidenze (timer critico, K.O.).
   Angoli a gradino di pixel (clip-path), bordi pieni da 3px, ombre dure, nessun raggio. */
:root {
  color-scheme: dark;
  --bg: oklch(15% 0.05 290); --bg-2: oklch(12% 0.045 290);
  --surface: oklch(19% 0.06 288); --surface-2: oklch(23.5% 0.07 288); --surface-3: oklch(29% 0.085 288);
  --line: oklch(36% 0.1 290); --line-strong: oklch(53% 0.14 292);
  --ink: oklch(97% 0.012 290); --ink-2: oklch(84% 0.035 290); --ink-3: oklch(71% 0.055 290);
  --brand: oklch(80% 0.2 152); --brand-ink: oklch(17% 0.05 160); --brand-soft: oklch(80% 0.2 152 / .13);
  --a: oklch(80% 0.14 222); --a-ink: oklch(16% 0.06 255); --a-soft: oklch(80% 0.14 222 / .13);
  --b: oklch(66% 0.23 6); --b-ink: oklch(15% 0.06 355); --b-soft: oklch(66% 0.23 6 / .14);
  --danger: oklch(68% 0.2 28); --warn: oklch(88% 0.17 95);
  --font-display: 'Silkscreen', 'Pixelify Sans', system-ui, sans-serif; /* Pixelify's C reads as O: keep it for VS / K.O. stamps only */
  --font-stamp: 'Pixelify Sans', 'Silkscreen', system-ui, sans-serif;
  --font-body: 'Rubik', system-ui, sans-serif;
  --font-num: 'Silkscreen', 'Pixelify Sans', ui-monospace, monospace;
  --label-font: 'Silkscreen', 'Pixelify Sans', ui-monospace, monospace; --label-tracking: 0.02em; --label-weight: 400; --label-case: uppercase;
  --display-weight: 700; --display-tracking: 0; --display-case: uppercase;
  --radius-s: 0px; --radius-m: 0px; --radius-l: 0px; --border-w: 3px;
  --shadow-1: none;
  --shadow-2: 5px 5px 0 oklch(7% 0.04 290);
  --focus: var(--warn);
  --panel-bg: var(--surface);
  --topbar-bg: var(--bg-2);
  --chat-name-l: 82%; --chat-name-c: 0.15;
  --particle-opacity: .5; --contender-opacity: 1; --contender-w: var(--border-w);
  --hard: oklch(7% 0.04 290);
  /* One pixel of the grid = the border width. Two shapes: a one-step notch (pure border corner, no paint needed)
     and a two-step stair for big panels, whose inner corner cell is painted with --edge via --dots. */
  --px: 3px;
  --notch: polygon(var(--px) 0, calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px), 100% calc(100% - var(--px)), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%, var(--px) 100%, var(--px) calc(100% - var(--px)), 0 calc(100% - var(--px)), 0 var(--px), var(--px) var(--px));
  --stair: polygon(0 calc(var(--px) * 2), var(--px) calc(var(--px) * 2), var(--px) var(--px), calc(var(--px) * 2) var(--px), calc(var(--px) * 2) 0,
    calc(100% - var(--px) * 2) 0, calc(100% - var(--px) * 2) var(--px), calc(100% - var(--px)) var(--px), calc(100% - var(--px)) calc(var(--px) * 2), 100% calc(var(--px) * 2),
    100% calc(100% - var(--px) * 2), calc(100% - var(--px)) calc(100% - var(--px) * 2), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px) * 2) calc(100% - var(--px)), calc(100% - var(--px) * 2) 100%,
    calc(var(--px) * 2) 100%, calc(var(--px) * 2) calc(100% - var(--px)), var(--px) calc(100% - var(--px)), var(--px) calc(100% - var(--px) * 2), 0 calc(100% - var(--px) * 2));
}

/* ---------- Pixel boxes ---------- */
.stage, .schedule, .vault, .null-sector, .chat, .fighter, .modal {
  --edge: var(--line);
  --dots: linear-gradient(var(--edge) 0 0) 0 0 / var(--px) var(--px) no-repeat, linear-gradient(var(--edge) 0 0) 100% 0 / var(--px) var(--px) no-repeat,
          linear-gradient(var(--edge) 0 0) 0 100% / var(--px) var(--px) no-repeat, linear-gradient(var(--edge) 0 0) 100% 100% / var(--px) var(--px) no-repeat;
  border-color: var(--edge); clip-path: var(--stair); box-shadow: none;
}
.stage, .schedule, .vault, .null-sector, .chat, .modal { background: var(--dots), var(--panel-bg); }
.modal { --edge: var(--line-strong); }
.phase-steps li, .how-steps li, .live-status, .profile-btn, .icon-btn, .count-pill, .fighter-flag, .fighter-price, .pit-member, .chat-announcement,
.comms-emoji-picker, .timer, .schedule-toggle, .toast, .bout--current, .split-bar, .send-btn, .comms-emoji-toggle, #chatInput, .modal input { clip-path: var(--notch); }
.primary-btn, .winner-link, .chat-fab { clip-path: var(--stair); }

/* Clipped controls cannot show an outside outline: draw focus inside, in the text colour of the control. */
.profile-btn:focus-visible, .icon-btn:focus-visible, .primary-btn:focus-visible, .winner-link:focus-visible, .chat-fab:focus-visible,
.schedule-toggle:focus-visible, .send-btn:focus-visible, .comms-emoji-toggle:focus-visible { outline: 3px solid currentColor; outline-offset: -8px; }
#chatInput:focus-visible, .modal input:focus-visible { outline: 0; border-color: var(--warn); }

/* ---------- Night arcade: CRT scanlines + perspective floor ---------- */
.backdrop-art {
  background:
    repeating-linear-gradient(0deg, oklch(0% 0 0 / .2) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--bg) 0 52%, oklch(12% 0.06 300) 100%);
}
.backdrop-art::before {
  content: ""; position: absolute; left: -60%; right: -60%; bottom: -10vh; height: 62vh;
  background:
    linear-gradient(oklch(55% 0.17 300 / .55) 0 2px, transparent 2px) 0 0 / 100% 48px,
    linear-gradient(90deg, oklch(55% 0.17 300 / .55) 0 2px, transparent 2px) 50% 0 / 64px 100%;
  transform: perspective(380px) rotateX(64deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(0deg, #000 0%, transparent 78%);
  animation: arcadeFloor 7s linear infinite;
}
.backdrop-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, oklch(6% 0.03 290 / .7)); }
@keyframes arcadeFloor { to { transform: perspective(380px) rotateX(64deg) translateY(48px); } }
.unlock-panel { margin: 12px 0 4px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line-strong); }
.unlock-kicker { margin: 0 0 4px; color: var(--brand); font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.unlock-panel h3 { margin: 0 0 6px; font-family: var(--font-display); }
.unlock-panel p { margin: 0 0 10px; color: var(--ink-2); }
.unlock-meter { height: 14px; background: var(--surface-3); border: 1px solid var(--line); overflow: hidden; }
.unlock-meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--a), var(--brand)); transition: width .25s linear; }
.unlock-count { font-family: var(--font-num); color: var(--ink); }
.unlock-note, .unlock-chat-hint { font-size: 13px; }
.unlock-banner { margin: 0 0 10px; padding: 10px 12px; background: var(--brand); color: var(--brand-ink); font-family: var(--font-display); text-align: center; }
.unlock-pixel { width: min(280px, 100%); max-height: 280px; object-fit: contain; image-rendering: pixelated; background: #000; }
.unlock-sequence, .unlock-arrows, .unlock-options, .unlock-price { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.unlock-sequence span.done { color: var(--brand); }
.unlock-arrows button, .unlock-options button { min-width: 44px; min-height: 44px; }
.fx-particle { border-radius: 0; width: 4px; height: 4px; }
.fx-particle--green { width: 6px; height: 6px; }

/* ---------- Top bar ---------- */
.topbar { border-bottom-color: var(--line); }
.brand-word { font-size: 1.2rem; letter-spacing: .01em; }
.live-status { border-radius: 0; background: var(--bg); font-size: .72rem; }
.live-dot, .online-dot { border-radius: 0; }
body:not([data-phase="idle"]):not([data-phase="completed"]) .live-status .live-dot { box-shadow: none; animation: arcadeBlink 1s steps(1) infinite; }
.profile-btn { font-family: var(--label-font); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; border-color: var(--line-strong); }
body[data-nick="none"] .profile-btn { box-shadow: inset 0 -3px 0 oklch(0% 0 0 / .28); }
.profile-mark, .bot-mark, .chat-fab-icon { border-radius: 0; transform: none; }
@keyframes arcadeBlink { 50% { opacity: 0; } }

/* ---------- Stage ---------- */
.stage-kicker { font-size: .78rem; color: var(--brand); }
.stage-kicker::before { content: "▶ "; color: var(--warn); }
body:not([data-phase="idle"]):not([data-paused="true"]) .stage-kicker::before { animation: arcadeBlink 1s steps(1) infinite; }
.stage-title { font-size: clamp(1.2rem, .85rem + 1.05vw, 1.75rem); line-height: 1.15; text-shadow: 3px 3px 0 var(--hard); }
.stage-hint { font-size: .98rem; }

/* Round clock: framed, centred, chunky digits; the track is a segmented health bar. */
.timer { justify-items: center; min-width: 168px; padding: 8px 14px 12px; background: var(--bg-2); border: var(--border-w) solid var(--line-strong); }
.timer-caption { font-size: .66rem; text-align: center; }
.timer-value { font-size: clamp(1.8rem, 1.3rem + 1.3vw, 2.5rem); color: var(--ink); letter-spacing: 0; text-shadow: 3px 3px 0 var(--line); }
.timer-value.urgent { color: var(--warn); text-shadow: 3px 3px 0 oklch(45% 0.18 28); }
.timer-track { position: relative; height: 10px; border-radius: 0; background: var(--surface-3); }
.timer-track::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 9px, var(--bg-2) 9px 12px); }
body[data-phase="voting"] .timer-track i { background: var(--brand); }

.phase-steps li { border-color: var(--line); background: var(--bg-2); }
.step-name { font-size: .74rem; }
.step-index { border-radius: 0; font-family: var(--label-font); font-weight: 700; border-width: 2px; }

/* ---------- Duel: character select ---------- */
.fighter {
  --edge: var(--side); gap: 6px;
  background: var(--dots), linear-gradient(180deg, color-mix(in srgb, var(--side) 16%, var(--surface)) 0, var(--surface) 46%);
}
.fighter:has(.vote-btn:not(:disabled)):hover { --edge: var(--ink); border-color: var(--edge); }
.fighter.voted, .fighter.victory { --edge: var(--brand); border-color: var(--edge); }
.fighter.defeat { --edge: var(--line-strong); border-color: var(--edge); }
/* Marquee chase runs on the frame itself (the shared ring sits outside the clip). */
.fighter::before { inset: 0; --pg-border-color: var(--ink); }
.fighter.victory::before { --pg-border-color: var(--warn); }
.fighter-topline { font-size: .7rem; white-space: nowrap; }
.channel-badge { width: 26px; height: 26px; border-radius: 0; font: 700 1rem/1 var(--font-display); }
.fighter-flag { border-radius: 0; font-weight: 700; font-size: .62rem; padding: 3px 6px; }
.fighter-emoji {
  position: relative; width: clamp(104px, 10vw, 150px); margin: 4px 0 6px; border-radius: 0;
  border: var(--border-w) solid var(--side); clip-path: var(--notch);
  background: repeating-linear-gradient(0deg, oklch(100% 0 0 / .045) 0 2px, transparent 2px 4px), color-mix(in srgb, var(--side) 14%, var(--bg-2));
  box-shadow: inset 0 0 0 3px var(--hard);
}
.fighter-emoji::after {
  content: "1P"; position: absolute; left: 3px; top: 3px; padding: 3px 4px 2px; background: var(--side); color: var(--side-ink);
  font: 700 .62rem/1 var(--label-font); letter-spacing: 0;
}
.fighter.right .fighter-emoji::after { content: "2P"; left: auto; right: 3px; }
.unknown-mark { text-shadow: 3px 3px 0 var(--hard); }
.fighter-label { font-size: .72rem; }
.fighter-name { font-size: clamp(.9rem, .72rem + .45vw, 1.1rem); line-height: 1.2; overflow-wrap: normal; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 14 6 6; /* words up to 13 letters move whole to the next line */ text-shadow: 2px 2px 0 var(--hard); }
.fighter-price { border-radius: 0; font-family: var(--font-num); }

/* Arcade buttons: solid cap on a darker base, pressed = sinks onto the base. */
.vote-btn {
  min-height: 52px; margin-bottom: 5px; border-radius: 0; font: 700 .86rem/1.1 var(--label-font); letter-spacing: .02em;
  box-shadow: inset 0 3px 0 oklch(100% 0 0 / .32), inset 0 -4px 0 oklch(0% 0 0 / .22), 0 5px 0 color-mix(in srgb, var(--side) 45%, var(--hard));
  transition: transform 80ms steps(2), box-shadow 80ms steps(2), filter var(--dur);
}
.vote-btn::after { border-radius: 0; }
.vote-btn:not(:disabled):active { transform: translateY(5px); box-shadow: inset 0 3px 0 oklch(0% 0 0 / .2); }
.vote-btn[aria-pressed="true"] { transform: translateY(5px); box-shadow: inset 0 3px 0 oklch(0% 0 0 / .18); }
.vote-btn:disabled:not([aria-pressed="true"]) { transform: translateY(5px); box-shadow: none; }

/* Big VS with a hard drop shadow. */
.versus-core, .versus-core--paused {
  width: auto; height: auto; padding: 0 2px; border: 0; border-radius: 0; background: none;
  font: 700 clamp(2.8rem, 1.8rem + 2.6vw, 4.4rem)/1 var(--font-stamp); color: var(--warn); rotate: -8deg;
  text-shadow: -2px -2px 0 var(--hard), 2px -2px 0 var(--hard), -2px 2px 0 var(--hard), 2px 2px 0 var(--hard), 5px 5px 0 oklch(50% 0.2 20);
}
.versus-core--paused { rotate: 0deg; color: var(--warn); font-family: var(--font-body); font-weight: 700; }

/* Defeated card: dim the contents, keep the frame, stamp K.O. */
.fighter.defeat, .fx-verdict-entered .fighter.defeat { opacity: 1; animation: none; }
.fighter.defeat > * { opacity: .5; filter: grayscale(.7); }
.fighter.defeat::after {
  content: "K.O."; position: absolute; left: 50%; top: 32%; z-index: 2; translate: -50% -50%; rotate: -10deg;
  font: 700 clamp(2.2rem, 1.6rem + 2vw, 3.4rem)/1 var(--font-stamp); color: var(--warn);
  text-shadow: -2px -2px 0 var(--hard), 2px -2px 0 var(--hard), -2px 2px 0 var(--hard), 2px 2px 0 var(--hard), 5px 5px 0 oklch(50% 0.2 20);
}
.fx-verdict-entered .fighter.defeat::after { animation: arcadeStamp 420ms steps(4) 500ms both; }
@keyframes arcadeStamp { from { opacity: 0; transform: scale(2.4); } to { opacity: 1; transform: none; } }

.vote-total { font-size: .86rem; }
.result-callout { text-shadow: 2px 2px 0 var(--hard); }
.split-bar { height: 44px; border-radius: 0; background: var(--bg-2); }
.split-a { background: repeating-linear-gradient(90deg, var(--a) 0 12px, color-mix(in srgb, var(--a) 78%, var(--hard)) 12px 15px); }
.split-b { background: repeating-linear-gradient(270deg, var(--b) 0 12px, color-mix(in srgb, var(--b) 78%, var(--hard)) 12px 15px); }
.split-bar span { font-size: .82rem; }
.split-bar b { font: 800 1.15rem/1 var(--font-body); } /* Silkscreen's % reads as Z */
.winner-link, .primary-btn { font-family: var(--label-font); font-weight: 700; font-size: .86rem; text-transform: uppercase; box-shadow: inset 0 3px 0 oklch(100% 0 0 / .3), inset 0 -4px 0 oklch(0% 0 0 / .25); }
.primary-btn:active, .winner-link:active { transform: translateY(2px); box-shadow: inset 0 3px 0 oklch(0% 0 0 / .2); }

/* Pause: blinking PAUSE emblem, no spinning ring. */
.pause-layer { border-radius: 0; background: color-mix(in oklch, var(--bg-2) 86%, transparent); backdrop-filter: none; }
.pause-emblem-ring { border-radius: 0; border: var(--border-w) dashed var(--warn); animation: arcadeBlink 1.2s steps(1) infinite; }
.pause-emblem-icon i { border-radius: 0; }
.pause-status { font-size: 1.6rem; color: var(--warn); text-shadow: 3px 3px 0 var(--hard); }

/* ---------- Idle / completed: title screen ---------- */
.core-idle-mark { width: 84px; height: 84px; border-radius: 0; border: var(--border-w) solid var(--brand); background: var(--brand-soft); clip-path: var(--notch); }
.core-idle-mark span { display: none; }
/* The Prodigeek play triangle, drawn as a pixel stair. */
.core-idle-mark::before {
  content: ""; width: 24px; height: 42px; margin-left: 6px; background: var(--brand);
  clip-path: polygon(0 0, 6px 0, 6px 6px, 12px 6px, 12px 12px, 18px 12px, 18px 18px, 24px 18px, 24px 24px, 18px 24px, 18px 30px, 12px 30px, 12px 36px, 6px 36px, 6px 42px, 0 42px);
}
.idle-eyebrow { font-size: .78rem; }
.idle-panel h2 { font-size: clamp(1.7rem, 1rem + 2.8vw, 3.1rem); text-shadow: 4px 4px 0 oklch(42% 0.2 300), 8px 8px 0 var(--hard); }
.how-steps li { border-color: var(--line); background: var(--bg-2); }
.how-steps li::before { font-family: var(--label-font); }
.how-steps b { font-size: 1.05rem; }
.standby-count { font-family: var(--label-font); font-weight: 400; }
.idle-panel::after { content: "— INSERT COIN —"; order: 99; font: 400 .78rem/1 var(--label-font); color: var(--warn); animation: arcadeBlink 1.6s steps(1) infinite; }
body[data-phase="completed"] .idle-panel::after { content: "THANKS FOR PLAYING!"; }

/* ---------- Schedule: round list ---------- */
.section-head h2 { font-size: 1.05rem; }
.count-pill { border-radius: 0; background: var(--bg-2); }
.bout { grid-template-columns: 30px minmax(0, 1fr); border-radius: 0; }
.bout-num { font-family: var(--label-font); }
.bout--current { background: var(--brand-soft); }
.slot { border-radius: 0; }
.slot::before { left: -1px; width: 4px; border-radius: 0; }
.slot-thumb { border-radius: 0; background: var(--bg-2); }
.slot-sub { font-size: .7rem; }
.slot-winner-price { font-family: var(--label-font); font-weight: 700; }
.legend-a, .legend-b { border-radius: 0; font-family: var(--font-display); }
.schedule-toggle { font-weight: 600; }

/* ---------- The Vault: high-score table ---------- */
.medals { gap: 0; }
.medal {
  min-height: 50px; padding: 6px 8px; border: 0; border-radius: 0; background: linear-gradient(90deg, var(--line) 50%, transparent 0) 0 100% / 8px 2px repeat-x;
  grid-template-columns: 30px 36px minmax(0, 1fr) auto auto;
}
.medal:nth-child(odd) { background-color: oklch(100% 0 0 / .025); }
.medal-pos { font-family: var(--label-font); font-size: .82rem; color: var(--warn); }
.medal-emoji { border-radius: 0; background: var(--bg-2); box-shadow: inset 0 0 0 2px var(--brand); }
.medal-name { font-family: var(--font-display); font-weight: 400; font-size: .86rem; }
.medal-price { font-family: var(--label-font); font-size: .86rem; text-align: right; }
.medal-link:hover { background-color: var(--brand-soft); border-color: transparent; }
.pit-member { border-radius: 0; background: var(--bg-2); }
.pit-pos { font-family: var(--label-font); font-weight: 400; }

/* ---------- COMMS ---------- */
.chat-header h2 { font-size: 1.2rem; }
.chat-eyebrow .live-dot { animation: arcadeBlink 1s steps(1) infinite; }
.chat-announcement { border-radius: 0; background: var(--bg-2); box-shadow: inset 3px 0 0 var(--brand); }
.chat-msg { border-radius: 0; }
.chat-name { font-size: .78rem; }
.chat-body { font-size: .94rem; }
.chat-msg.bot { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.chat-msg--mine { box-shadow: inset -3px 0 0 var(--line-strong); }
#chatInput { border-radius: 0; }
.comms-emoji-toggle, .send-btn, .comms-emoji-picker, .comms-emoji-choice, .icon-btn { border-radius: 0; }
.send-btn { box-shadow: inset 0 -3px 0 oklch(0% 0 0 / .25); }
.chat-fab { border-radius: 0; font-family: var(--label-font); font-weight: 700; box-shadow: inset 0 3px 0 oklch(100% 0 0 / .3), inset 0 -4px 0 oklch(0% 0 0 / .25); }
.chat-unread { border-radius: 0; }

/* ---------- Footer, dialog, toast ---------- */
.footer { border-top-width: var(--border-w); }
.modal h2 { text-shadow: 3px 3px 0 var(--hard); }
.modal label { font-family: var(--label-font); font-weight: 400; text-transform: uppercase; }
.modal-close { border-radius: 0; }
.toast { border-radius: 0; background: var(--brand); color: var(--brand-ink); box-shadow: none; }

/* ---------- FX: fighting-game stingers (durations stay in effects.js) ---------- */
.fx-stage { border-radius: 0; }
.fx-stage b, .fx-stage strong { text-shadow: 3px 3px 0 var(--hard); }
.fx-stage--boot, .fx-stage--complete {
  background: repeating-linear-gradient(0deg, oklch(0% 0 0 / .25) 0 1px, transparent 1px 3px), color-mix(in oklch, var(--bg-2) 94%, transparent);
}
.fx-boot-screen strong, .fx-complete-screen strong { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); }
.fx-boot-bar { height: 10px; border-radius: 0; position: relative; }
.fx-boot-bar span { animation-timing-function: steps(10); }
.fx-boot-screen::after { content: "PRESS START"; font: 400 .9rem/1 var(--label-font); color: var(--warn); animation: arcadeBlink .5s steps(1) infinite; }
.fx-portals::after {
  content: "NEXT ROUND"; position: absolute; left: 50%; top: 22%; translate: -50% -50%; padding: 10px 18px; white-space: nowrap;
  background: var(--bg-2); color: var(--warn); font: 700 clamp(1.4rem, 1rem + 1.6vw, 2.4rem)/1 var(--font-display); clip-path: var(--notch);
  animation: fxStamp 1.6s steps(6) both;
}
.fx-portal { justify-self: stretch; align-self: stretch; } /* shared grid centres the halves; make them fill */
.fx-portal b { text-shadow: none; }
.fx-voting-wave::before {
  content: "FIGHT!"; font: 700 clamp(3rem, 2rem + 5vw, 5.6rem)/1 var(--font-stamp); color: var(--warn); rotate: -6deg;
  text-shadow: -3px -3px 0 var(--hard), 3px -3px 0 var(--hard), -3px 3px 0 var(--hard), 3px 3px 0 var(--hard), 7px 7px 0 oklch(50% 0.2 20);
  animation: fxStamp 1.15s steps(5) both;
}
.fx-voting-wave b { font-size: clamp(.95rem, .8rem + .8vw, 1.4rem); border-radius: 0; background: var(--brand); color: var(--brand-ink); text-shadow: none; clip-path: var(--notch); }
.fx-voting-wave span { border-radius: 0; border: var(--border-w) solid var(--warn); }
.fx-transmission::before { content: "1P READY"; grid-column: 1 / -1; font: 700 clamp(1.8rem, 1.2rem + 2.6vw, 3rem)/1 var(--font-display); color: var(--a); text-shadow: 3px 3px 0 var(--hard); }
.fx-transmission--omega::before { content: "2P READY"; color: var(--b); }
.fx-beam { justify-self: stretch; height: 10px; border-radius: 0; }
.fx-stage--signal-left, .fx-stage--signal-right { background: color-mix(in oklch, var(--bg-2) 86%, transparent); }
.fx-beam i { animation-timing-function: steps(8); }
.fx-transmission b { border-radius: 0; text-shadow: none; clip-path: var(--notch); }
.fx-energy-impact { font-size: 0; }
.fx-energy-impact::before {
  content: "K.O."; font: 700 clamp(3.4rem, 2.2rem + 6vw, 6.4rem)/1 var(--font-stamp); color: var(--warn);
  text-shadow: -3px -3px 0 var(--hard), 3px -3px 0 var(--hard), -3px 3px 0 var(--hard), 3px 3px 0 var(--hard), 8px 8px 0 oklch(50% 0.2 20);
}
.fx-energy-clash b { margin-top: 110px; font-size: clamp(1rem, .8rem + 1vw, 1.5rem); padding: 6px 14px; background: var(--bg-2); clip-path: var(--notch); }
.fx-complete-screen span { font-size: 0; }
.fx-complete-screen span::before { content: "GAME OVER"; font: 700 clamp(2.6rem, 1.8rem + 4vw, 4.8rem)/1 var(--font-stamp); color: var(--warn); text-shadow: 4px 4px 0 oklch(50% 0.2 20), 8px 8px 0 var(--hard); }
.fx-complete-screen strong { font-size: clamp(1.1rem, .9rem + 1.2vw, 1.8rem); color: var(--brand); }
.fx-complete-screen::after { content: "CONTINUE?"; font: 400 .9rem/1 var(--label-font); color: var(--ink-2); animation: arcadeBlink .6s steps(1) infinite; }

/* ---------- Control Center (admin.css shares the tokens) ---------- */
.admin .card { --edge: var(--line); clip-path: var(--stair); background: linear-gradient(var(--edge) 0 0) 0 0 / var(--px) var(--px) no-repeat, linear-gradient(var(--edge) 0 0) 100% 0 / var(--px) var(--px) no-repeat, linear-gradient(var(--edge) 0 0) 0 100% / var(--px) var(--px) no-repeat, linear-gradient(var(--edge) 0 0) 100% 100% / var(--px) var(--px) no-repeat, var(--surface); }
.admin h1 { text-shadow: 3px 3px 0 var(--hard); }
.admin-badge, .status-led, .admin code { border-radius: 0; }
.admin-badge { clip-path: var(--notch); }
.admin button { font-family: var(--label-font); font-weight: 700; font-size: .8rem; text-transform: uppercase; clip-path: var(--notch); box-shadow: inset 0 -3px 0 oklch(0% 0 0 / .25); }
.admin button:active { transform: translateY(2px); box-shadow: none; }
.admin button:focus-visible { outline: 3px solid currentColor; outline-offset: -8px; }
.admin input:focus-visible { outline: 0; border-color: var(--warn); }

/* ---------- Responsive ---------- */
@media(max-width:1300px) {
  .chat-fab { min-height: 52px; }
  .chat { clip-path: none; border-width: 0 0 0 var(--border-w); }
}
@media(max-width:720px) {
  .stage { clip-path: var(--notch); }
  .stage-title { font-size: 1.12rem; }
  .stage-hint { font-size: .9rem; }
  .timer { min-width: 0; padding: 6px 10px 8px; justify-items: start; }
  .timer-caption { text-align: left; }
  .timer-value { font-size: 2rem; }
  .step-name { font-size: .6rem; }
  .fighter-emoji { width: 84px; font-size: 2.6rem; }
  .fighter-emoji::after { font-size: .55rem; }
  .fighter-topline { font-size: .62rem; }
  .fighter-name { font-size: .78rem; } /* 13-letter words (ASPIRAPOLVERE) fit the 138px card */
  .vote-btn { font: 700 .98rem/1.1 var(--font-display); text-transform: uppercase; min-height: 50px; padding: 8px 4px; }
  .count-pill { flex: none; }
  .versus { top: 78px; }
  .versus-core, .versus-core--paused { width: auto; height: auto; font-size: 1.9rem; }
  .fighter.defeat::after { top: 30%; }
  .fx-energy-impact::before { font-size: 3rem; }
  .fx-energy-clash b { margin-top: 70px; }
  .idle-panel h2 { text-shadow: 3px 3px 0 oklch(42% 0.2 300), 6px 6px 0 var(--hard); }
}
@media(prefers-reduced-motion:reduce) {
  .backdrop-art::before, .live-dot, .stage-kicker::before, .pause-emblem-ring, .idle-panel::after, .fighter.defeat::after,
  .fx-boot-screen::after, .fx-complete-screen::after { animation: none !important; }
}


/* v1.3.0 — Winning product destinations: visual affordance in ARCADE theme.
   URLs are rendered only for proclaimed winners with valid HTTPS product links. */
.fighter.fighter-link {
  color: var(--ink); text-decoration: none; cursor: pointer;
  --edge: var(--brand); border-color: var(--brand);
  background: var(--dots), linear-gradient(180deg, var(--brand-soft), var(--surface) 65%);
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}
.fighter.fighter-link:hover { transform: translateY(-3px); filter: brightness(1.1); --edge: var(--warn); }
.fighter.fighter-link:focus-visible { outline: 3px solid var(--warn); outline-offset: 3px; }
.fighter-open {
  margin-top: auto; align-self: stretch; min-height: 40px; display: grid; place-items: center;
  padding: 7px 9px; background: var(--brand); color: var(--brand-ink);
  font: 700 .72rem/1.2 var(--label-font); clip-path: var(--notch);
}
/* Whole winner entries are links: green stroke and explicit action on hover/focus. */
.slot.slot-link {
  color: var(--ink); background: var(--brand-soft); border: 2px solid var(--brand);
  padding: 5px 8px 5px 6px; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.slot.slot-link .slot-open { color: var(--brand); font: 700 1rem/1 var(--label-font); }
.slot.slot-link:hover { background: var(--surface-3); transform: translateY(-1px); border-color: var(--warn); }
.slot.slot-link:focus-visible { outline: 3px solid var(--warn); outline-offset: 2px; }
.slot.slot-link .slot-name { color: var(--ink); }
.medal.medal-link {
  color: var(--ink); cursor: pointer; text-decoration: none;
  transition: background-color .18s ease, filter .18s ease;
}
.medal.medal-link .medal-open { color: var(--brand); font: 700 .7rem/1.1 var(--label-font); white-space: nowrap; }
.medal.medal-link:hover { background-color: var(--brand-soft); filter: brightness(1.1); }
.medal.medal-link:focus-visible { outline: 3px solid var(--warn); outline-offset: -3px; }
.medal.medal-no-link { color: var(--ink-2); }
@media(max-width:520px) {
  .medal-open-label { display: none; }
  .fighter-open { font-size: .62rem; min-height: 38px; padding: 5px; }
}
@media(prefers-reduced-motion:reduce) {
  .fighter.fighter-link, .slot.slot-link, .medal.medal-link { transition: none; }
  .fighter.fighter-link:hover, .slot.slot-link:hover { transform: none; }
}
