@font-face {
  font-family: 'Anton';
  src: url('./fonts/Anton-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face { /* the VICEFALL wordmark (OFL — fonts/Monoton-OFL.txt), as on the landing page */
  font-family: 'Monoton';
  src: url('./fonts/Monoton-Regular.ttf') format('truetype');
  font-display: swap;
}

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  height: 100%;
  overflow: hidden;
  font-family: 'Anton', sans-serif;
}

#game {
  display: block;
  width: 100vw;
  height: 100vh;
}

#ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden; /* edge HUD elements/labels must never grow the page */
}

/* The labels' own layer (labels.js): first in #ui, below every overlay. */
#labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Projected actor labels — positioned via translate3d by labels.js.
   The translate(-50%,-100%) in here centres them above the anchor point. */
.label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -100%);
  color: #cfd6e4;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  white-space: pre-line; /* fat-target labels carry a second $ line (02-05) */
  text-align: center;
  will-change: transform;
}

.label.me {
  color: #ccff00; /* accent */
}

.label.bot {
  font-size: 11px; /* slightly smaller than a player's name */
  opacity: 0.72;   /* and dimmer — bots are tellable at a glance (03-03) */
}

.label.cop {
  color: #ff5566; /* police red — readable as threat at a glance (03-04) */
  font-size: 11px;
  letter-spacing: 0.18em;
}

.label.site {
  color: #d6b8ff; /* vault violet — matches the ready ring */
  font-size: 14px;
  letter-spacing: 0.16em;
  padding: 2px 8px;
  background: rgba(12, 8, 26, 0.7);
  border: 1px solid rgba(185, 140, 255, 0.55);
  border-radius: 4px;
}
.label.site.crack { /* someone is cracking it — everyone sees */
  color: #ff8a6a;
  border-color: rgba(255, 106, 60, 0.75);
  animation: site-crack 0.6s ease-in-out infinite alternate;
}
@keyframes site-crack { from { opacity: 1; } to { opacity: 0.55; } }
.label.site.cd { /* cooling: when it reopens */
  color: #b4bccc;
  border-color: rgba(139, 147, 167, 0.5);
  font-size: 13px;
}

/* Centre-screen contextual hint (03-01): HOLD TO CRACK inside a ready ring.
   Below #aimhint (CLICK TO AIM, at 18%), which covered it — and not above
   it, where it sat on our own character (2026-10-06). */
#hint {
  position: absolute;
  bottom: calc(18% - 46px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  color: #ffd94d;
  font-size: 18px;
  letter-spacing: 0.18em;
  background: rgba(7, 9, 8, 0.7);
  border: 1px solid rgba(255, 217, 77, 0.35);
  border-radius: 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

#banner {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  color: #e8ecf4;
  background: rgba(7, 9, 8, 0.82);
  border: 1px solid #30382a;
  border-radius: 4px;
  font-size: 14px;
  letter-spacing: 0.05em;
}

#debug {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 8px;
  color: #8f8;
  background: rgba(0, 0, 0, 0.6);
  font: 12px monospace;
  white-space: pre;
}

/* Master volume pill (07-02) — top-right, out of the pad arrow's way. */
#volbtn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  color: #8fa0b8;
  background: rgba(7, 9, 8, 0.82);
  border: 1px solid #30382a;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
}
#volbtn:hover { color: #e8ecf4; border-color: #ccff00; }

/* ------------------------------------------------- run HUD (02-05) ------ */

#timer {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  color: #e8ecf4;
  font-size: 34px;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* DETECTED (police-packs): pulses while the police know where you are,
   fades out when the timer runs out. */
#detected {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border: 2px solid #ff3b4a;
  border-radius: 4px;
  background: rgba(40, 0, 6, 0.55);
  color: #ff3b4a;
  font-size: 22px;
  letter-spacing: 0.12em;
  text-shadow: 0 0 8px rgba(255, 59, 74, 0.8);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease-out;
}
#detected.on { opacity: 1; transition: none; animation: detected-pulse 0.6s ease-in-out infinite alternate; }
@keyframes detected-pulse { from { opacity: 1; box-shadow: 0 0 14px rgba(255, 59, 74, 0.7); } to { opacity: 0.45; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { #detected.on { animation: none; } }

#timer.sudden {
  color: #ff5040;
  animation: sudden-pulse 0.5s infinite;
}

@keyframes sudden-pulse {
  50% { transform: translateX(-50%) scale(1.12); }
}

#runhud {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: #e8ecf4;
  background: rgba(7, 9, 8, 0.72);
  border: 1px solid #30382a;
  border-radius: 4px;
  font-size: 15px;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

#carry { color: #ffd94d; }
#mult  { color: #66d9ff; }
#banked { color: #ccff00; }
#heat  { color: #ff7040; min-height: 1em; }
/* Heat for hurting police (ev wanted): outlasts a bank, so it says so. */
#heat.assault { color: #ff3b4a; animation: heat-assault 0.7s ease-in-out infinite alternate; }
@keyframes heat-assault { from { opacity: 1; text-shadow: 0 0 6px #ff3b4a; } to { opacity: 0.55; text-shadow: none; } }
@media (prefers-reduced-motion: reduce) { #heat.assault { animation: none; } }

/* Combat (phase 08): health bar, weapon line, death card, kill feed. */
#hpbar {
  width: 120px;
  height: 7px;
  margin: 2px 0 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
#hpbar-fill { height: 100%; width: 100%; background: #b8f200; transition: width 0.12s linear; }
#weapon { display: flex; gap: 6px; color: #e8ecf4; font-size: 13px; }
#weapon .w-slot {
  padding: 2px 7px;
  border: 1px solid rgba(120, 140, 170, 0.35);
  border-radius: 4px;
  background: rgba(8, 12, 9, 0.55);
  letter-spacing: 1px;
  white-space: nowrap;
  opacity: 0.85;
}
#weapon .w-slot.on { border-color: rgba(255, 210, 60, 0.85); color: #ffd23c; opacity: 1; box-shadow: 0 0 10px rgba(255, 200, 60, 0.25); }
#weapon .w-slot.none { opacity: 0.3; }
#deathcard {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 22px;
  border-radius: 6px;
  background: rgba(7, 9, 8, 0.82);
  border: 1px solid rgba(255, 74, 74, 0.6);
  color: #ff6a6a;
  font-size: 22px;
  letter-spacing: 0.08em;
  pointer-events: none;
}
#killfeed {
  position: absolute;
  top: 56px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
}
#killfeed .kf {
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(7, 9, 8, 0.7);
  color: #e8ecf4;
  font-size: 13px;
  letter-spacing: 0.04em;
}
#killfeed .kf.mine { color: #ffd94d; border: 1px solid rgba(255, 217, 77, 0.5); }

/* Dash cooldown ring (03-02): conic fill beside the carry readout —
   full cyan = dash ready. */
#dashring {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin: 2px 0 4px;
  background: conic-gradient(#35d0e0 360deg, rgba(255, 255, 255, 0.10) 0deg);
}
#dashring.ready {
  box-shadow: 0 0 6px rgba(53, 208, 224, 0.8);
}
#dashring-in {
  width: 12px;
  height: 12px;
  margin: 4px;
  border-radius: 50%;
  background: #14161d;
}

/* Screen-edge compass arrow — clip-path triangle pointing UP at rotate(0);
   hud.js adds the +π/2 offset so rotate(a) tracks the screen-space angle. */
#padarrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 30px;
  background: #ccff00;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.8));
  will-change: transform, opacity; /* moved every frame (hud.js updatePadArrow) */
}

#bankflash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(204, 255, 0, 0) 55%, rgba(204, 255, 0, 0.4) 100%);
}

#bankflash.on { animation: bankflash 0.55s ease-out; }

@keyframes bankflash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Red edge flash when the local player is tackled (03-02). */
#hitflash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(255, 64, 64, 0) 50%, rgba(255, 64, 64, 0.45) 100%);
}

#hitflash.on { animation: hitflash 0.45s ease-out; }

@keyframes hitflash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* BUSTED banner — the exact loss, centre screen (03-04). */
#bustflash {
  position: absolute;
  top: 22%;
  left: 0;
  right: 0;
  pointer-events: none;
  opacity: 0;
  text-align: center;
  font-family: 'Anton', sans-serif;
  font-size: 44px;
  letter-spacing: 0.08em;
  color: #ff5566;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

#bustflash.on { animation: bustflash 1.4s ease-out; }

@keyframes bustflash {
  0% { opacity: 0; transform: scale(1.25); }
  12% { opacity: 1; transform: scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

/* Danger vignette — opacity is driven per frame by cop proximity (03-04). */
#danger {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(255, 47, 69, 0) 55%, rgba(255, 47, 69, 0.5) 100%);
  transition: opacity 0.18s linear;
}

/* Corner minimap (03-05) — bottom-right, clear of the run HUD (top-left),
   the round strip area (top), the hint (bottom-centre) and debug (bottom-left). */
#minimap {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 160px;
  height: 160px;
  background: transparent; /* the canvas paints its own backdrop — see below */
  border: 1px solid #30382a;
  border-radius: 6px;
  /* NOT element opacity. The panel should sit in the scene rather than on top of
     it (the project lead's call), but `opacity` here fades the arrow, pads and
     sites along with the backdrop — dimming the one thing you have to find at a
     glance. The canvas draws its BACKDROP at CONFIG.minimap.baseAlpha and every
     marker at full strength, so the city shows faintly through the map while
     you stay crisp on it. */
  opacity: 1;
}

@media (max-width: 600px) {
  #minimap { width: 120px; height: 120px; }
}

/* ------------------------------------------------- round strip (04-03) --
   One line under the run timer. Layout is pinned: banner top:12 center,
   runhud top:12 left, timer top:44 center (~51px + pulse), minimap
   bottom-right — the strip owns the free band at top:104. */
#roundstrip {
  position: absolute;
  top: 104px; /* timer box ends ~95px; the sudden pulse adds ~3px */
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  color: #cfd6e4;
  background: rgba(7, 9, 8, 0.72);
  border: 1px solid #30382a;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
}

@media (max-width: 600px) {
  #roundstrip {
    font-size: 11px;
    padding: 4px 8px;
    max-width: 96vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ------------------------------------------------- leaderboard (04-03) --
   Translucent card like the title: the arena stays alive behind it. */
#lb {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 45;
}
#lb .lb-card {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  width: min(480px, 94vw);
  max-height: 80vh;
  padding: 20px 22px 16px;
  background: rgba(8, 12, 9, 0.9);
  border: 1px solid rgba(64, 200, 255, 0.35);
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 170, 255, 0.18);
  color: #e8ecf4;
  font-size: 13px;
  letter-spacing: 0.04em;
}
#lb .lb-head { display: flex; align-items: center; justify-content: space-between; }
#lb .lb-title {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: #7fd4ff;
  text-shadow: 0 0 12px rgba(64, 200, 255, 0.5);
}
#lb .lb-close {
  background: none; border: none; color: #8a93a8;
  font-size: 22px; cursor: pointer; padding: 0 4px;
}
#lb .lb-close:hover { color: #e8ecf4; }
#lb .lb-tabs { display: flex; gap: 6px; margin: 12px 0 10px; }
#lb .lb-tabs button {
  flex: 1;
  padding: 6px 0;
  background: rgba(20, 28, 44, 0.6);
  border: 1px solid #30382a;
  border-radius: 4px;
  color: #8a93a8;
  font: inherit;
  letter-spacing: 0.08em;
  cursor: pointer;
}
#lb .lb-tabs button.on {
  color: #ffd76a;
  border-color: rgba(255, 200, 60, 0.5);
  background: rgba(50, 38, 10, 0.55);
}
#lb .lb-body { overflow-y: auto; min-height: 120px; }
#lb .lb-sub { color: #9fb3d8; padding: 4px 0; }
#lb .lb-sec {
  margin-top: 12px; padding: 4px 0;
  color: #7fd4ff; border-bottom: 1px solid #30382a;
}
#lb .lb-empty { color: #8a93a8; padding: 14px 0; text-align: center; }
#lb .lb-row {
  display: flex; gap: 10px; align-items: baseline;
  padding: 3px 0;
}
#lb .lb-rank { color: #ffd76a; min-width: 30px; }
#lb .lb-alias { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lb .lb-wallet { color: #8a93a8; font-size: 11px; }
#lb .lb-score { color: #7fe08a; }
#lb .lb-prize { color: #ffd76a; }
#lb .lb-payout { padding: 0 0 6px 40px; color: #8a93a8; font-size: 11px; }
#lb .lb-payout a { color: #7fd4ff; }
#lb .lb-foot { color: #8a93a8; font-size: 11px; min-height: 16px; padding-top: 8px; }
#lb .lb-rules { display: block; text-align: center; margin-top: 10px; color: #7fd4ff; font-size: 12px; text-decoration: none; }
#lb .lb-rules:hover { text-decoration: underline; }

/* ------------------------------------------------- 04-04: round end --
   BANK NOW flashes during the intermission window while a run is still
   live; the intermission card is the closed-round winner board. */
#banknow {
  position: absolute;
  top: 150px; /* below the round strip, above gameplay focus */
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 22px;
  color: #070908;
  background: #ff4455;
  border-radius: 4px;
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 0.08em;
  animation: banknowpulse 0.6s infinite alternate;
  /* display is inline-controlled by intermission.js — a stylesheet
     display:none here would win over style.display='' forever */
}
@keyframes banknowpulse {
  from { opacity: 1; }
  to { opacity: 0.55; }
}

#intermission {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 15, 0.72);
  pointer-events: none;
  z-index: 46; /* above the leaderboard card */
}
#intermission .im-card {
  pointer-events: auto;
  min-width: 320px;
  max-width: 560px;
  padding: 26px 34px;
  color: #e8ecf4;
  background: rgba(7, 9, 8, 0.94);
  border: 1px solid rgba(64, 200, 255, 0.35);
  border-radius: 10px;
  text-align: center;
  letter-spacing: 0.05em;
}
#intermission .im-title { font-size: 22px; letter-spacing: 0.12em; color: #ffd76a; }
#intermission .im-sub { margin-top: 8px; font-size: 13px; color: #8b93a7; }
#intermission .im-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 6px 12px; margin-top: 6px; font-size: 14px;
  background: rgba(28, 34, 52, 0.6); border-radius: 4px;
}
#intermission .im-row.top { border: 1px solid rgba(255, 215, 106, 0.3); }
#intermission .im-rank { color: #8a93a8; }
#intermission .im-alias { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; }
#intermission .im-wallet { color: #8a93a8; font-size: 11px; }
#intermission .im-score { color: #7fe08a; }
#intermission .im-prize { color: #ffd76a; }
#intermission .im-mine { margin-top: 12px; font-size: 13px; color: #ffb84d; }
#intermission .im-play {
  margin-top: 14px; padding: 8px 24px; font-family: inherit; font-size: 15px;
  letter-spacing: 0.08em; color: #070908; background: #ccff00;
  border: none; border-radius: 4px; cursor: pointer;
}
#intermission .im-play:hover:not(:disabled) { background: #d8ff40; }
#intermission .im-play:disabled { opacity: 0.45; cursor: default; }
#intermission .im-foot { margin-top: 12px; font-size: 13px; color: #8b93a7; }
#intermission .im-rules {
  display: inline-block; margin-top: 10px; color: #7fd4ff;
  font-size: 12px; text-decoration: none;
}
#intermission .im-rules:hover { text-decoration: underline; }

/* -------------------------------------------------------------- title --
   04-01: translucent neon card over the live arena (the spectator socket
   renders behind it). Pointer events only on the card — the arena stays
   alive underneath. */
#title {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 40;
}
#title .t-card {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 34px 44px 30px;
  background: rgba(8, 12, 9, 0.82);
  border: 1px solid rgba(64, 200, 255, 0.35);
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 170, 255, 0.18), inset 0 0 60px rgba(0, 60, 120, 0.15);
  backdrop-filter: blur(3px);
}
/* The VICEFALL wordmark — the landing page's neon logo: a white core in
   cyan and magenta glow, a magenta copy (top) and a cyan copy (bottom)
   offset behind it that jump now and then, a slow breathe and a flicker. */
#title .t-name {
  position: relative;
  z-index: 0;
  font-family: 'Monoton', 'Anton', sans-serif;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: #f2feff;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 16px #00e5ff,
    0 0 36px #00e5ff,
    0 0 70px rgba(255, 46, 166, 0.8),
    0 0 120px rgba(255, 46, 166, 0.55);
  white-space: nowrap;
  animation: t-logo-breathe 5s ease-in-out infinite, t-logo-outage 9s linear infinite;
}
#title .t-name::before,
#title .t-name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
  text-shadow: none; /* the glow is the core's: inherited, the band clip cut it into hard boxes */
}
#title .t-name::before {
  color: #ff2ea6;
  transform: translate(0.035em, 0.02em);
  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 42%);
  animation: t-logo-glitch-a 3.7s infinite steps(1);
}
#title .t-name::after {
  color: #00e5ff;
  transform: translate(-0.035em, -0.015em);
  clip-path: polygon(0 62%, 100% 58%, 100% 100%, 0 100%);
  animation: t-logo-glitch-b 4.3s infinite steps(1);
}
@keyframes t-logo-glitch-a {
  0%, 88%, 100% { transform: translate(0.035em, 0.02em); }
  90% { transform: translate(0.11em, 0.02em); }
  92% { transform: translate(-0.06em, 0.05em); }
  94% { transform: translate(0.035em, 0.02em); }
}
@keyframes t-logo-glitch-b {
  0%, 82%, 100% { transform: translate(-0.035em, -0.015em); }
  84% { transform: translate(-0.12em, -0.03em); }
  86% { transform: translate(0.07em, 0em); }
  88% { transform: translate(-0.035em, -0.015em); }
}
@keyframes t-logo-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.14); }
}
@keyframes t-logo-outage {
  0%, 91%, 94.5%, 96%, 100% { opacity: 1; }
  92%, 95% { opacity: 0.55; }
}
#title .t-tag {
  font-size: 13px;
  color: #9fb4d0;
  letter-spacing: 0.5px;
  margin-top: -6px;
}
#title .t-account {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
#title .t-who {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  letter-spacing: 1.5px;
  color: #dfff66;
  text-shadow: 0 0 12px rgba(204, 255, 0, 0.4);
}
#title .t-addr {
  font-size: 12px;
  color: #7f93ad;
  font-family: monospace;
  letter-spacing: 1px;
}
#title .t-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 260px;
}
#title .t-btn {
  font-family: 'Anton', sans-serif;
  font-size: 17px;
  letter-spacing: 2px;
  padding: 11px 22px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(64, 200, 255, 0.5);
  background: rgba(16, 32, 56, 0.9);
  color: #d8ecff;
  text-shadow: 0 0 8px rgba(120, 210, 255, 0.35);
  transition: background 0.12s, box-shadow 0.12s;
}
#title .t-btn:hover { background: rgba(28, 56, 92, 0.95); box-shadow: 0 0 16px rgba(64, 200, 255, 0.3); }
#title .t-btn.primary {
  border-color: rgba(255, 200, 60, 0.65);
  color: #ffd23c;
  text-shadow: 0 0 10px rgba(255, 200, 60, 0.4);
}
#title .t-btn.primary:hover { background: rgba(70, 52, 12, 0.9); box-shadow: 0 0 16px rgba(255, 200, 60, 0.3); }
#title .t-btn.dim {
  border-color: rgba(120, 140, 170, 0.35);
  color: #9fb4d0;
  font-size: 14px;
  text-shadow: none;
}
#title .t-err {
  font-size: 12px;
  color: #ff8d7a;
  max-width: 300px;
  text-align: center;
}
#title .t-pitch {
  font-size: 13px;
  color: #ffb84d;
  max-width: 320px;
  text-align: center;
  min-height: 16px;
}
#title .t-rules {
  font-size: 12px;
  color: #7fd4ff;
  text-decoration: none;
}
#title .t-rules:hover { text-decoration: underline; }
@media (max-width: 600px) {
  #title .t-card { padding: 24px 22px 20px; }
  #title .t-name { font-size: 40px; }
}

/* ------------------------------ title: character panel (player-menu) --- */

#title { gap: 28px; }
#title .t-row { display: flex; gap: 10px; min-width: 260px; }
#title .t-row .t-btn { flex: 1; }
#title .t-hero {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 14px;
  background: rgba(8, 12, 9, 0.76);
  border: 1px solid rgba(64, 200, 255, 0.28);
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 170, 255, 0.14), inset 0 0 60px rgba(0, 60, 120, 0.12);
  backdrop-filter: blur(3px);
}
#title .t-hero-head { font-size: 13px; letter-spacing: 3px; color: #7fd4ff; }

/* Roster (left) · pedestal (right). The roster is as tall as the stage and
   scrolls when there are more heroes than fit. */
#title .t-hero-body { display: flex; gap: 14px; align-items: flex-start; }
#title .t-roster {
  display: flex;
  flex-direction: column;
  gap: 6px;             /* 4 tiles × 100 + 3 × 6 + 2 = the stage's 420 */
  max-height: 420px;
  overflow-y: auto;
  padding: 1px 6px 1px 1px;
  scrollbar-width: thin;
  scrollbar-color: rgba(64, 200, 255, 0.35) transparent;
}
#title .t-tile {
  position: relative;
  flex: none;
  width: 100px;
  height: 100px;
  padding: 0;
  border: 2px solid rgba(120, 140, 170, 0.35);
  border-radius: 6px;
  overflow: hidden;
  background: #070b16;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
#title .t-tile .pt-img { filter: saturate(0.55) brightness(0.72); transition: filter 0.15s; }
#title .t-tile:hover { border-color: rgba(64, 200, 255, 0.8); transform: translateY(-1px); }
#title .t-tile:hover .pt-img { filter: none; }
#title .t-tile:focus-visible { outline: 2px solid #7fd4ff; outline-offset: 2px; }
#title .t-tile.on {
  border-color: #ffd23c;
  box-shadow: 0 0 16px rgba(255, 200, 60, 0.45), inset 0 0 0 1px rgba(255, 230, 150, 0.5);
}
#title .t-tile.on .pt-img { filter: none; }
#title .t-tile-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 0 3px;
  font-family: 'Anton', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: #cfe0f4;
  background: linear-gradient(transparent, rgba(4, 6, 14, 0.92) 55%);
  text-align: center;
  pointer-events: none;
}
#title .t-tile.on .t-tile-name { color: #ffd23c; }

#title .t-podium { display: flex; flex-direction: column; gap: 8px; width: 280px; }
/* The 3D character is drawn into this box (showcase.js): a frame, a backdrop
   and the name plate on top — keep the middle free. */
#title .t-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 420px;
  border-radius: 8px;
  cursor: grab;
  touch-action: none;
  background:
    radial-gradient(ellipse 60% 16% at 50% 90%, rgba(64, 200, 255, 0.24), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(40, 70, 130, 0.35), transparent 75%),
    linear-gradient(180deg, rgba(10, 16, 32, 0.9), rgba(4, 6, 14, 0.95));
  box-shadow: inset 0 0 0 1px rgba(64, 200, 255, 0.12), inset 0 -30px 60px rgba(0, 0, 0, 0.5);
}
#title .t-stage:active { cursor: grabbing; }
#title .t-stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#title .t-plate {
  position: absolute;
  top: 12px; left: 0; right: 0;
  text-align: center;
  pointer-events: none;
  z-index: 1;
}
#title .t-skin {
  font-size: 30px;
  letter-spacing: 4px;
  line-height: 1;
  color: #ffd23c;
  text-shadow: 0 0 14px rgba(255, 190, 40, 0.45), 0 2px 0 #6b4a00;
}
#title .t-callsign {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  font-size: 12px;
  letter-spacing: 2px;
  color: #7fd4ff;
}
#title .t-callsign input {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(64, 200, 255, 0.45);
  background: rgba(4, 10, 22, 0.9);
  color: #eaf6ff;
  outline: none;
  text-transform: none;
}
#title .t-callsign input:focus { border-color: rgba(255, 210, 60, 0.8); box-shadow: 0 0 14px rgba(255, 200, 60, 0.25); }
#title .t-callsign input::placeholder { color: #4d6380; }
#title .t-namenote {
  width: 100%;
  min-height: 16px;
  font-size: 12px;
  color: #8fa6c2;
  letter-spacing: 0.5px;
}
#title .t-namenote.bad { color: #ff8d7a; }
/* Medium widths: hero select + card side by side only fit with a slimmer
   stage and card. */
@media (max-width: 1060px) and (min-width: 861px) {
  #title { gap: 16px; }
  #title .t-podium { width: 230px; }
  #title .t-card { padding: 26px 24px 22px; }
  #title .t-name { font-size: 38px; letter-spacing: 2px; }
  #title .t-tag { max-width: 300px; text-align: center; }
}
/* Short windows: a shorter stage (and roster) so the panel fits. */
@media (max-height: 700px) {
  #title .t-stage { height: 340px; }
  #title .t-roster { max-height: 340px; }
}
/* Narrow: the panel stacks above the card; the roster becomes a strip of
   48 px portraits (the hand-reduced take — never a smeared 96) over the stage. */
@media (max-width: 860px) {
  #title { flex-direction: column; gap: 12px; overflow-y: auto; justify-content: flex-start; padding: 16px 0; }
  #title .t-hero { width: min(340px, calc(100vw - 32px)); padding: 12px 14px; box-sizing: border-box; }
  #title .t-hero-body { flex-direction: column; gap: 10px; }
  #title .t-roster { flex-direction: row; max-height: none; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 2px; }
  #title .t-tile { width: 52px; height: 52px; }
  #title .t-tile .pt-96 { width: 48px; height: 48px; }
  #title .t-tile .pt-96 .pt-img { width: 48px; height: 48px; }
  #title .t-tile picture { display: block; }
  #title .t-tile-name { display: none; }
  #title .t-podium { width: 100%; }
  #title .t-stage { height: 220px; }
  #title .t-skin { font-size: 24px; }
}

/* ----------------------------------------- menu + settings (player-menu) --- */

#menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  background: rgba(3, 5, 12, 0.55);
  backdrop-filter: blur(4px);
}
#menu .m-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 26px 30px 24px;
  background: rgba(8, 12, 9, 0.92);
  border: 1px solid rgba(64, 200, 255, 0.35);
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 170, 255, 0.18), inset 0 0 60px rgba(0, 60, 120, 0.15);
  color: #d8ecff;
  box-sizing: border-box;
}
#menu .m-title { font-size: 32px; letter-spacing: 3px; color: #ffd23c; text-shadow: 0 0 14px rgba(255, 190, 40, 0.4), 0 2px 0 #6b4a00; }
#menu .m-sub, #menu .m-note, #menu .m-hint { font-family: system-ui, sans-serif; font-size: 12px; color: #8fa6c2; letter-spacing: 0.3px; }
#menu .m-hint { text-align: center; color: #5f7896; }
#menu .m-col { display: flex; flex-direction: column; gap: 10px; }
#menu .m-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#menu .m-tabs { display: flex; gap: 6px; }
#menu .m-btn {
  font-family: 'Anton', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(64, 200, 255, 0.5);
  background: rgba(16, 32, 56, 0.9);
  color: #d8ecff;
  transition: background 0.12s, box-shadow 0.12s;
}
#menu .m-btn:hover { background: rgba(28, 56, 92, 0.95); box-shadow: 0 0 16px rgba(64, 200, 255, 0.3); }
#menu .m-btn.primary { border-color: rgba(255, 200, 60, 0.65); color: #ffd23c; }
#menu .m-btn.primary:hover { background: rgba(70, 52, 12, 0.9); box-shadow: 0 0 16px rgba(255, 200, 60, 0.3); }
#menu .m-btn.dim { border-color: rgba(120, 140, 170, 0.35); color: #9fb4d0; font-size: 13px; align-self: flex-start; }
#menu .m-tab { font-size: 13px; padding: 7px 14px; border-color: rgba(120, 140, 170, 0.35); color: #8fa6c2; }
#menu .m-tab.on { border-color: rgba(64, 200, 255, 0.8); color: #eaf6ff; background: rgba(28, 56, 92, 0.95); }
#menu .m-body { display: flex; flex-direction: column; gap: 10px; }
#menu .m-binds { display: flex; flex-direction: column; gap: 6px; }
#menu .m-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  color: #cfe0f4;
}
#menu .m-label { flex: 1; }
#menu .m-key {
  min-width: 118px;
  font-size: 14px;
  padding: 6px 12px;
  text-align: center;
}
#menu .m-key.wait { border-color: rgba(255, 210, 60, 0.9); color: #ffd23c; animation: m-blink 0.9s ease-in-out infinite; }
@keyframes m-blink { 50% { box-shadow: 0 0 18px rgba(255, 200, 60, 0.45); } }
#menu .m-slider input[type=range] { flex: 1.3; accent-color: #40c8ff; }
#menu .m-val { min-width: 52px; text-align: right; font-family: 'Anton', sans-serif; letter-spacing: 1px; color: #7fd4ff; }
#menu .m-foot { display: flex; justify-content: flex-end; }

/* --------------------------------------------- results screen (02-05) --- */

#results {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 15, 0.55);
}

.r-card {
  min-width: 260px;
  padding: 26px 34px;
  color: #e8ecf4;
  background: rgba(7, 9, 8, 0.92);
  border: 1px solid #30382a;
  border-radius: 6px;
  text-align: center;
  letter-spacing: 0.06em;
}

.r-title {
  font-size: 30px;
  margin-bottom: 14px;
}

.r-row {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  font-size: 15px;
  line-height: 1.9;
}

.r-row span { color: #8b93a7; }
.r-row b { color: #ffd94d; }

#r-again {
  margin-top: 18px;
  padding: 10px 30px;
  font-family: inherit;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: #070908;
  background: #ccff00;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  pointer-events: auto; /* #ui is pointer-events:none */
}

#r-again:hover { background: #d8ff40; }

#r-menu {
  display: block;
  margin: 10px auto 0;
  padding: 7px 26px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #e8ecf4;
  background: transparent;
  border: 1px solid rgba(232, 236, 244, 0.35);
  border-radius: 4px;
  cursor: pointer;
  pointer-events: auto;
}
#r-menu:hover { background: rgba(255, 255, 255, 0.08); }

.r-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #8b93a7;
}

.r-pitch {
  margin-top: 10px;
  font-size: 13px;
  color: #ffb84d;
}

#r-claim {
  margin-top: 10px;
  padding: 7px 20px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #e8ecf4;
  background: transparent;
  border: 1px solid rgba(64, 200, 255, 0.5);
  border-radius: 4px;
  cursor: pointer;
  pointer-events: auto;
}
#r-claim:hover { background: rgba(28, 56, 92, 0.9); }

/* Aim controls (branch aim-controls): shown during a run while the pointer is free. */
#aimhint {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border: 1px solid #ccff00;
  border-radius: 6px;
  background: rgba(8, 10, 18, 0.72);
  color: #ccff00;
  font: 15px/1 'Anton', sans-serif;
  letter-spacing: 0.12em;
  white-space: nowrap;
  pointer-events: none;
}

/* ------------------------------- round board in play (more-skins) --- */

/* Hold Tab: the full board over the game — input carries on underneath. */
#scoreboard {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start; /* under the round strip: you keep playing, so the centre (you) stays clear as long as the board fits */
  justify-content: center;
  padding-top: 138px;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 30;
}
#scoreboard .sb-card {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100vh - 150px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 14px 20px 12px;
  background: rgba(6, 10, 20, 0.86);
  border: 1px solid rgba(64, 200, 255, 0.35);
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 170, 255, 0.18);
  box-sizing: border-box;
  color: #d8ecff;
}
#scoreboard .sb-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 10px; }
#scoreboard .sb-title { font-size: 22px; letter-spacing: 3px; color: #ffd23c; text-shadow: 0 0 14px rgba(255, 190, 40, 0.4); }
#scoreboard .sb-meta { display: flex; gap: 14px; font-size: 14px; letter-spacing: 1.5px; color: #9fb4d0; }
#scoreboard .sb-pool { color: #dfff66; }
#scoreboard .sb-prizes { width: 100%; display: flex; gap: 14px; font-size: 12px; letter-spacing: 1.5px; color: #ffd23c; opacity: 0.85; }
#scoreboard .sb-body { display: flex; flex-direction: column; gap: 2px; min-height: 0; flex: 1 1 auto; }
#scoreboard .sb-top { display: flex; flex-direction: column; gap: 2px; min-height: 0; flex: 0 1 auto; overflow: hidden; }
#scoreboard .sb-head, #scoreboard .sb-foot, #scoreboard .sb-row, #scoreboard .sb-gap { flex: none; }
#scoreboard .sb-row {
  display: grid;
  grid-template-columns: 34px 1fr 110px 90px;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 15px;
  letter-spacing: 1px;
  background: rgba(20, 30, 50, 0.55);
}
#scoreboard .sb-colhead { background: none; font-size: 11px; letter-spacing: 2px; color: #6f86a6; padding-top: 0; padding-bottom: 2px; }
#scoreboard .sb-row.podium .sb-rank { color: #ffd23c; }
#scoreboard .sb-row.me { background: rgba(204, 255, 0, 0.18); box-shadow: inset 0 0 0 1px rgba(204, 255, 0, 0.6); color: #f8ffe0; }
#scoreboard .sb-rank { text-align: right; color: #9fb4d0; }
#scoreboard .sb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: system-ui, sans-serif; font-weight: 600; font-size: 14px; }
#scoreboard .sb-score { text-align: right; color: #dfff66; }
#scoreboard .sb-prize { text-align: right; font-size: 13px; color: #ffd23c; }
#scoreboard .sb-gap, #scoreboard .sb-empty { text-align: center; color: #6f86a6; font-size: 13px; padding: 1px 4px; line-height: 1; font-family: system-ui, sans-serif; }
#scoreboard .sb-foot { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; font-family: system-ui, sans-serif; font-size: 12px; color: #9fb4d0; }
#scoreboard .sb-note { color: #ffb84d; }
#scoreboard .sb-hint { color: #5f7896; }

/* The mini board: bottom-right above the minimap, the top 3 and you. */
#miniboard {
  position: absolute;
  right: 12px;
  bottom: 186px;
  width: 190px;
  padding: 7px 9px 6px;
  background: rgba(8, 12, 9, 0.7);
  border: 1px solid rgba(120, 140, 170, 0.3);
  border-radius: 7px;
  pointer-events: none;
  color: #cfe0f4;
  transition: box-shadow 0.25s, border-color 0.25s;
}
#miniboard.up { border-color: rgba(184, 242, 0, 0.9); box-shadow: 0 0 16px rgba(184, 242, 0, 0.45); }
#miniboard.down { border-color: rgba(255, 110, 90, 0.9); box-shadow: 0 0 16px rgba(255, 110, 90, 0.4); }
#miniboard .mb-title { font-size: 10px; letter-spacing: 2px; color: #6f86a6; margin-bottom: 3px; }
#miniboard .mb-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px; font-size: 13px; letter-spacing: 0.5px; padding: 1px 0; }
#miniboard .mb-row.me { color: #dfff66; }
#miniboard .mb-rank { text-align: right; color: #ffd23c; }
#miniboard .mb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: system-ui, sans-serif; font-size: 12px; font-weight: 600; grid-column: auto; }
#miniboard .mb-row.me .mb-name:only-child { grid-column: 1 / -1; }
#miniboard .mb-score { color: #eaff99; }
#miniboard .mb-note { font-family: system-ui, sans-serif; font-size: 11px; color: #6f86a6; }
#miniboard .mb-hint { margin-top: 3px; font-size: 9px; letter-spacing: 1.5px; color: #7890ad; }
@media (max-width: 600px) { #miniboard { display: none !important; } }

/* The results card's short board. */
#results .r-board { width: 100%; display: flex; flex-direction: column; gap: 3px; margin: 4px 0 6px; }
#results .r-board:empty { display: none; }
#results .r-board-title { font-size: 11px; letter-spacing: 2px; color: #6f86a6; }
#results .r-board-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; font-size: 14px; padding: 3px 8px; border-radius: 4px; background: rgba(20, 30, 50, 0.5); }
#results .r-board-row.me { background: rgba(204, 255, 0, 0.18); box-shadow: inset 0 0 0 1px rgba(204, 255, 0, 0.6); color: #f8ffe0; }
#results .r-board-row .rk { color: #ffd23c; }
#results .r-board-row .nm { font-family: system-ui, sans-serif; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#results .r-board-row .sc { color: #dfff66; }
#results .r-board-gap { text-align: center; color: #6f86a6; font-size: 12px; }
#results .r-board-note { font-family: system-ui, sans-serif; font-size: 12px; color: #ffb84d; }

/* --------------------------------------------- demo mode: prize codes --- */

/* ev prize: you placed — the code, big. Above the intermission overlay. */
#prizecard, #prizes {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  z-index: 48;
  pointer-events: auto; /* #ui is pointer-events:none — without this no button here could be clicked */
}
#prizecard { background: rgba(3, 5, 4, 0.8); backdrop-filter: blur(8px); }
#prizecard .pz-card, #prizes .pz-panel {
  width: min(460px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-sizing: border-box;
  padding: 22px 24px 18px;
  background:
    linear-gradient(135deg, rgba(204, 255, 0, 0.045), transparent 38%),
    rgba(7, 9, 8, 0.97);
  border: 1px solid rgba(204, 255, 0, 0.5);
  border-top: 2px solid #ccff00;
  border-radius: 2px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62), 0 0 34px rgba(204, 255, 0, 0.08);
  color: #f4f7ed;
  text-align: center;
}
#prizecard .pz-kicker { font-size: 12px; letter-spacing: 2px; color: #ccff00; }
#prizecard .pz-big {
  font-family: 'Anton', sans-serif;
  font-size: 34px;
  letter-spacing: 3px;
  color: #ccff00;
  text-shadow: 0 0 18px rgba(204, 255, 0, 0.28);
  margin: 4px 0 2px;
}
#prizecard .pz-score { font-size: 13px; color: #edf1e9; }
#prizecard .pz-label { margin-top: 18px; font-size: 11px; letter-spacing: 2px; color: #919991; }
#prizecard .pz-code {
  margin: 6px auto 0;
  padding: 12px 10px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #f8ffe0;
  background: rgba(204, 255, 0, 0.12);
  border: 1px dashed rgba(204, 255, 0, 0.7);
  border-radius: 0;
  user-select: all;
  -webkit-user-select: all;
  outline: none;
}
#prizecard .pz-warn { margin-top: 12px; font-size: 13px; line-height: 1.5; color: #ffb84d; }
#prizecard .pz-note, #prizes .pz-note { margin-top: 12px; font-size: 12px; color: #919991; }
#prizecard .pz-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

.pz-btn {
  font-family: 'Anton', sans-serif;
  font-size: 15px;
  letter-spacing: 2px;
  padding: 9px 18px;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #edf1e9;
  transition: color .18s, border-color .18s, background .18s, transform .18s;
}
.pz-btn.primary { border-color: #ccff00; color: #ccff00; }
.pz-btn:hover { color: #070908; border-color: #ccff00; background: #ccff00; transform: translateY(-1px); }
.pz-btn.small { font-size: 12px; padding: 5px 10px; letter-spacing: 1.5px; }

/* MY PRIZES (the title). */
#prizes {
  background: rgba(3, 5, 4, 0.68);
  backdrop-filter: blur(10px) saturate(.7);
}
#prizes .pz-panel {
  position: relative;
  text-align: left;
  border-color: rgba(204, 255, 0, 0.42);
  border-top-color: #ccff00;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62), 0 0 34px rgba(204, 255, 0, 0.08);
}
#prizes .pz-panel::before {
  content: 'PRIZE VAULT // PLAYER RECORD';
  position: absolute;
  right: 24px;
  bottom: 10px;
  color: rgba(204, 255, 0, 0.28);
  font-size: 8px;
  letter-spacing: .18em;
}
#prizes .pz-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
#prizes .pz-title { font-family: 'Anton', sans-serif; font-size: 22px; letter-spacing: 3px; color: #ccff00; text-shadow: 0 0 18px rgba(204, 255, 0, .18); }
#prizes .pz-close {
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 0;
  font-family: system-ui, sans-serif;
  font-size: 22px;
  line-height: 30px;
  color: #919991;
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}
#prizes .pz-close:hover { color: #070908; border-color: #ccff00; background: #ccff00; }
#prizes .pz-list { display: flex; flex-direction: column; gap: 6px; }
#prizes .pz-item {
  display: block;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-left: 2px solid rgba(204, 255, 0, .6);
  border-radius: 0;
  background: rgba(255, 255, 255, .025);
}
#prizes .pz-item-meta { font-size: 13px; color: #edf1e9; }
#prizes .pz-status { font-size: 11px; letter-spacing: 1.5px; color: #919991; }
#prizes .pz-status.claimed,
#prizes .pz-status.paid { color: #ccff00; }
#prizes .pz-status.rejected { color: #ff8d7a; }
#prizes .pz-empty {
  padding: 15px 14px 16px;
  border-left: 2px solid rgba(204, 255, 0, .42);
  background: rgba(204, 255, 0, .025);
  color: #a7afaa;
  font-size: 13px;
  line-height: 1.6;
}

/* ------------------------------------------ portraits (portraits.js) --- */

/* Pixel art: always at an exact multiple of its 48/96 px source, nearest-neighbour. */
.pt { display: inline-block; flex: none; position: relative; overflow: hidden; border-radius: 3px; background: #0b0e0c; vertical-align: middle; }
.pt-img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.pt-24 { width: 24px; height: 24px; }
.pt-48 { width: 48px; height: 48px; }
.pt-96 { width: 96px; height: 96px; }
/* No portrait for this skin: a quiet silhouette. */
.pt-none {
  background:
    radial-gradient(circle at 50% 38%, rgba(120, 140, 170, 0.45) 0 18%, transparent 19%),
    radial-gradient(ellipse 36% 30% at 50% 100%, rgba(120, 140, 170, 0.35) 0 98%, transparent 100%),
    #0b0e0c;
}

/* The podium: 2nd · 1st (raised) · 3rd, gold / silver / bronze. */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 4px 0 10px; }
.pd-slot { display: flex; flex-direction: column; align-items: center; width: 132px; min-width: 0; text-align: center; }
.pd-1 { order: 2; }
.pd-2 { order: 1; }
.pd-3 { order: 3; }
.pd-1 .pd-frame { margin-bottom: 18px; } /* the winner stands higher */
.pd-frame { position: relative; padding: 2px; border-radius: 6px; line-height: 0; --pd: #c9d3e0; background: var(--pd); box-shadow: 0 0 14px color-mix(in srgb, var(--pd) 45%, transparent); }
.pd-1 .pd-frame { --pd: #ffd23c; }
.pd-2 .pd-frame { --pd: #c9d3e0; }
.pd-3 .pd-frame { --pd: #d08a4a; }
.pd-frame .pt { border-radius: 4px; }
.pd-place {
  position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
  padding: 3px 7px 2px; border-radius: 4px; line-height: 1;
  font-family: 'Anton', sans-serif; font-size: 11px; letter-spacing: 1.5px;
  background: var(--pd); color: #140e00;
}
.pd-name { margin-top: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: system-ui, sans-serif; font-weight: 700; font-size: 13px; color: #e8ecf4; }
.pd-score { font-size: 14px; color: #dfff66; letter-spacing: 0.5px; }
.pd-prize { font-size: 11px; letter-spacing: 1.5px; color: #ffd23c; }
.pd-bot { font-size: 10px; letter-spacing: 1.5px; color: #8a93a8; }
.pd-slot.me .pd-name { color: #dfff66; }
.pd-open { opacity: 0.4; }
.pd-open .pd-frame { --pd: rgba(120, 140, 170, 0.5); box-shadow: none; }
@media (max-width: 600px) {
  .podium { gap: 6px; }
  .pd-slot { width: 100px; }
}

/* Inline top-3 portraits (24 px): mini board, results card, past rounds. */
#miniboard { width: 210px; }
#miniboard .mb-row { align-items: center; }
#miniboard .mb-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
#miniboard .mb-alias { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#results .r-board-row { align-items: center; }
#results .r-board-row .nm { display: flex; align-items: center; gap: 6px; }
#lb .lb-alias .pt { margin-right: 6px; }
#lb .lb-pt-slot { padding-left: 30px; }
#scoreboard .podium { flex: none; margin: 2px 0 12px; }
#intermission .podium { margin: 6px 0 12px; }

/* Outfits: a stepper in the stage's name plate (title.js) — ‹ OUTFIT ›, then
   n / N and dots. Overlaid on the stage, so every hero's panel is one size. */
#title .t-outfit-row {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 6px; pointer-events: auto;
}
#title .t-outfit-step {
  width: 26px; height: 26px; padding: 0; min-width: 0;
  font-family: system-ui, sans-serif; font-size: 18px; line-height: 1;
  border-radius: 50%; background: rgba(6, 10, 20, 0.72);
}
#title .t-outfit-step:hover { border-color: rgba(255, 210, 60, 0.8); color: #ffd23c; }
#title .t-outfit-mid { width: 150px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
#title .t-outfit {
  width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; letter-spacing: 2.5px; line-height: 14px; color: #e6f0ff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}
#title .t-outfit-count {
  display: flex; align-items: center; justify-content: center; height: 7px;
  font-size: 9px; letter-spacing: 1.5px; line-height: 7px; color: #9fb4d0;
}
#title .t-outfit-dots { display: inline-flex; gap: 4px; }
#title .t-outfit-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(160, 180, 210, 0.35); }
#title .t-outfit-dots i.on { background: #ffd23c; box-shadow: 0 0 6px rgba(255, 200, 60, 0.6); }
@media (max-width: 860px) {
  #title .t-outfit-mid { width: 130px; }
}

/* Claim form (prizes.js): paste a wallet, SUBMIT. */
.pz-claim { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pz-claim .pz-wallet {
  flex: 1 1 220px; min-width: 0; box-sizing: border-box; padding: 10px 12px;
  background: #0d1220; color: #f8ffe0; border: 1px solid #2a3450; border-radius: 6px;
  font-family: ui-monospace, Menlo, monospace; font-size: 13px; letter-spacing: 0.02em;
}
.pz-claim .pz-wallet:focus { outline: none; border-color: #ccff00; }
.pz-claim.small .pz-wallet { padding: 6px 8px; font-size: 12px; }
.pz-claim .pz-msg { flex-basis: 100%; }
.pz-msg { margin-top: 8px; font-size: 13px; line-height: 1.5; }
.pz-msg:empty { display: none; }
.pz-msg.ok { color: #eaff99; }
.pz-msg.err { color: #ffb0a0; }
#prizes .pz-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ---- the Skydeck (docs/SKYDECK.md, deck.js) ---- */
#deckprompt {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px 10px 12px; border-radius: 30px;
  background: rgba(14, 8, 30, 0.72); border: 2px solid #37e6ff;
  color: #fff; font-family: 'Anton', sans-serif; font-size: 22px; letter-spacing: 1px;
  pointer-events: none; text-shadow: 0 0 10px rgba(55, 230, 255, 0.6);
}
#deckprompt .dp-ring {
  --p: 0; width: 38px; height: 38px; border-radius: 50%;
  background: conic-gradient(#37e6ff calc(var(--p) * 1%), rgba(255, 255, 255, 0.15) 0);
  -webkit-mask: radial-gradient(circle, transparent 11px, #000 12px);
  mask: radial-gradient(circle, transparent 11px, #000 12px);
}
#deckprompt.dp-warn { border-color: #ffa53a; text-shadow: 0 0 10px rgba(255, 165, 58, 0.6); }
#deckprompt.dp-warn .dp-ring { background: conic-gradient(#ffa53a calc(var(--p) * 1%), rgba(255, 255, 255, 0.15) 0); }
#deckprompt.dp-locked { border-color: #8a2a4a; color: #e8b8c8; }
#runcard {
  position: absolute; left: 50%; top: 18%; transform: translateX(-50%);
  min-width: 280px; padding: 14px 22px; border-radius: 10px;
  background: rgba(14, 8, 30, 0.82); border: 2px solid #ff3fd2;
  color: #fff; font-family: 'Anton', sans-serif; pointer-events: none;
  box-shadow: 0 0 24px rgba(255, 63, 210, 0.35);
}
#runcard .rc-title { font-size: 24px; color: #ff3fd2; margin-bottom: 8px; letter-spacing: 1px; }
#runcard .rc-row { display: flex; justify-content: space-between; gap: 30px; font-size: 20px; line-height: 1.5; }
#runcard .rc-good span:last-child { color: #b8f200; }
#runcard .rc-bad span:last-child { color: #ff6a6a; }
#beamflash {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 18% 100% at 50% 50%, rgba(255, 255, 255, 0.95), rgba(120, 230, 255, 0.35) 55%, transparent 80%);
}
#beamflash.on { animation: beamflash 0.9s ease-out; }
@keyframes beamflash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }

/* ---- the Skydeck, phase 2 (deck.js hint, deckui.js overlays) ---- */
#deckhint {
  position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%);
  padding: 6px 16px; border-radius: 6px; background: rgba(14, 8, 30, 0.75);
  border: 1px solid #ff3fd2; color: #fff; font-family: 'Anton', sans-serif; font-size: 18px;
  letter-spacing: 1px; pointer-events: none;
}
#deckui {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: auto; /* #ui ignores the mouse: an overlay must take it back or nothing is clickable */
  background: rgba(6, 3, 16, 0.55); z-index: 30; font-family: 'Anton', sans-serif; color: #fff;
}
#deckui .du-panel {
  background: rgba(16, 10, 34, 0.94); border: 2px solid #37e6ff; border-radius: 12px;
  box-shadow: 0 0 30px rgba(55, 230, 255, 0.25); padding: 22px 26px; max-width: 92vw;
}
#deckui .du-armory { display: flex; gap: 24px; align-items: stretch; }
#deckui .du-stage { position: relative; width: min(520px, 50vw); min-height: 380px;
  background: radial-gradient(circle at 50% 45%, #2a1d52, #0d0820 70%); border-radius: 8px; }
#deckui .du-canvas { width: 100%; height: 100%; display: block; cursor: grab; }
#deckui .du-hint { position: absolute; bottom: 10px; width: 100%; text-align: center; font-size: 13px; color: #8f96c8; letter-spacing: 1px; pointer-events: none; }
#deckui .du-card { width: 330px; display: flex; flex-direction: column; gap: 8px; }
#deckui .du-maker { color: #37e6ff; font-size: 14px; letter-spacing: 2px; }
#deckui .du-name { color: #ffd060; font-size: 32px; line-height: 1.1; margin-bottom: 6px; }
#deckui .du-stat { display: grid; grid-template-columns: 90px 1fr 56px; align-items: center; gap: 10px; font-size: 15px; }
#deckui .du-track { height: 8px; background: rgba(255, 255, 255, 0.12); border-radius: 4px; overflow: hidden; }
#deckui .du-fill { display: block; height: 100%; background: linear-gradient(90deg, #37e6ff, #ff3fd2); }
#deckui .du-sv { text-align: right; color: #e8e8ff; }
#deckui .du-found { font-family: system-ui, sans-serif; font-size: 14px; color: #c8cdf0; }
#deckui .du-lore { font-family: system-ui, sans-serif; font-size: 14px; line-height: 1.45; color: #b6bbe0; margin-top: 6px; }
#deckui .du-notsold { margin-top: auto; color: #ff3fd2; font-size: 15px; letter-spacing: 1px; }
#deckui .du-close, #deckui .du-hero, #deckui .du-emote {
  font-family: 'Anton', sans-serif; color: #fff; background: #1c1438; border: 1px solid #37e6ff;
  border-radius: 6px; cursor: pointer; letter-spacing: 1px;
}
#deckui .du-close { padding: 8px; font-size: 16px; }
#deckui .du-title { font-size: 30px; color: #ff3fd2; letter-spacing: 2px; text-align: center; }
#deckui .du-sub { font-family: system-ui, sans-serif; font-size: 14px; color: #b6bbe0; text-align: center; margin: 6px 0 14px; }
#deckui .du-grid { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
#deckui .du-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; width: 120px; font-size: 16px; }
#deckui .du-hero img { width: 96px; height: 96px; border-radius: 6px; }
#deckui .du-hero.on { border-color: #ffd060; box-shadow: 0 0 12px rgba(255, 208, 96, 0.5); }
#deckui .du-wheel { position: relative; width: 340px; height: 340px; margin: 10px auto 0;
  border-radius: 50%; border: 2px dashed rgba(55, 230, 255, 0.35); }
#deckui .du-emote { position: absolute; transform: translate(-50%, -50%); padding: 10px 14px; font-size: 16px; display: flex; gap: 8px; align-items: center; }
#deckui .du-key { color: #ffd060; }
#deckui .du-citymap { display: block; margin: 10px auto 6px; border-radius: 8px; border: 1px solid #2a1d52; }
#deckui .du-legend { display: flex; gap: 8px 14px; flex-wrap: wrap; justify-content: center; align-items: center; font-size: 14px; letter-spacing: 1px; }
#deckui .du-lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
#deckui .lg-vault { background: #ffd060; } #deckui .lg-pad { border: 2px solid #b8f200; width: 9px; height: 9px; }
#deckui .lg-heat { background: rgba(255, 60, 80, 0.7); } #deckui .lg-top { background: #ffd060; border-radius: 2px; }

/* the Skydeck's winners on the podium (main.js updatePodium) */
.label.podium { color: #ffd060; font-size: 12px; letter-spacing: 0.04em; }
#deckui .du-citymap { cursor: crosshair; }
#deckui .du-row { display: flex; gap: 12px; justify-content: center; margin-top: 4px; }
#deckui .du-row .du-close { padding: 8px 18px; }

/* ------------------------------------------------ Vicefall title refresh --
   Local preview: align the entry flow with the public landing page while
   preserving all original controls and game states. */
#title {
  gap: clamp(22px, 3vw, 54px);
  padding: 54px clamp(24px, 5vw, 84px);
  box-sizing: border-box;
  background:
    radial-gradient(circle at 30% 48%, rgba(204, 255, 0, 0.055), transparent 32%),
    linear-gradient(90deg, rgba(4, 6, 5, 0.92), rgba(4, 6, 5, 0.7));
  backdrop-filter: blur(8px) saturate(0.7);
}
#title::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}
#title::after {
  content: 'VICEFALL  /  LIVE CITY FEED';
  position: absolute;
  left: clamp(24px, 5vw, 84px);
  bottom: 25px;
  color: rgba(255, 255, 255, 0.34);
  font: 10px/1 system-ui, sans-serif;
  letter-spacing: 0.2em;
}

#title .t-hero,
#title .t-card {
  position: relative;
  z-index: 1;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 2px solid #ccff00;
  background: rgba(7, 9, 8, 0.88);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

#title .t-hero {
  width: min(580px, 52vw);
  padding: 26px;
  gap: 16px;
}
#title .t-hero::before,
#title .t-card::before {
  position: absolute;
  top: -12px;
  right: 18px;
  padding: 5px 9px;
  color: #070908;
  background: #ccff00;
  font: 10px/1 system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.15em;
}
#title .t-hero::before { content: 'CREW / 01'; }
#title .t-card::before { content: 'PLAY / LIVE'; }
#title .t-hero-head {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f3f5ee;
  font-size: 12px;
  letter-spacing: 0.22em;
}
#title .t-hero-head::before {
  content: '';
  width: 34px;
  height: 2px;
  background: #ccff00;
}

/* A landing-page-like main portrait with the crew tabs beneath it. */
#title .t-hero-body {
  flex-direction: column-reverse;
  gap: 12px;
  min-width: 0;
}
#title .t-podium { width: 100%; }
#title .t-stage {
  height: min(48vh, 440px);
  min-height: 310px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(rgba(204, 255, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 255, 0, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 72%, rgba(204, 255, 0, 0.16), transparent 35%),
    linear-gradient(180deg, #0b0f0c, #050706);
  background-size: 38px 38px, 38px 38px, auto, auto;
  box-shadow: inset 0 -80px 90px rgba(0, 0, 0, 0.48);
}
#title .t-stage::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(204, 255, 0, 0.09);
  pointer-events: none;
}
#title .t-plate { top: 18px; }
#title .t-skin {
  color: #ccff00;
  font-size: 38px;
  letter-spacing: 0.055em;
  text-shadow: 0 0 22px rgba(204, 255, 0, 0.22);
}
#title .t-outfit { color: #a3aaa4; }
#title .t-outfit-step {
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(7, 9, 8, 0.76);
}
#title .t-outfit-step:hover { border-color: #ccff00; color: #ccff00; }
#title .t-outfit-dots i.on { background: #ccff00; box-shadow: 0 0 8px rgba(204, 255, 0, 0.5); }

#title .t-roster {
  width: 100%;
  max-width: 100%;
  max-height: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding: 0;
}
#title .t-tile {
  width: 100%;
  height: 78px;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: #080b09;
}
#title .t-tile .pt-96,
#title .t-tile .pt-96 .pt-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#title .t-tile .pt-img { filter: grayscale(1) brightness(0.58); }
#title .t-tile:hover {
  border-color: rgba(204, 255, 0, 0.6);
  transform: translateY(-2px);
}
#title .t-tile.on {
  border-color: #ccff00;
  box-shadow: inset 0 -3px 0 #ccff00, 0 8px 24px rgba(0, 0, 0, 0.3);
}
#title .t-tile-name {
  padding: 18px 0 5px;
  color: #dfe4dd;
  background: linear-gradient(transparent, rgba(4, 6, 5, 0.96) 60%);
}
#title .t-tile.on .t-tile-name { color: #ccff00; }

#title .t-callsign { color: #ccff00; }
#title .t-callsign input {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.18);
  border-left: 3px solid #ccff00;
  background: rgba(3, 5, 4, 0.9);
  color: #f4f6ef;
  padding: 12px 14px;
}
#title .t-callsign input:focus {
  border-color: #ccff00;
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.08);
}
#title .t-callsign input::placeholder { color: #596159; }

#title .t-card {
  width: min(560px, 42vw);
  align-items: stretch;
  padding: 62px 42px 38px;
  gap: 16px;
}
#title .t-name {
  color: #ccff00;
  /* Monoton runs ~5.5em for 'VICEFALL' — stay inside the card */
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 0.84;
  letter-spacing: -0.025em;
  text-align: left;
  text-shadow: none;
}
#title .t-tag {
  max-width: 320px;
  margin: 4px 0 18px;
  color: #8e968f;
  font: 13px/1.65 system-ui, sans-serif;
  letter-spacing: 0;
  text-align: left;
}
#title .t-buttons,
#title .t-row { min-width: 0; width: 100%; }
#title .t-btn {
  min-height: 52px;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #e2e6df;
  font-size: 14px;
  text-shadow: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
#title .t-btn:hover {
  color: #ccff00;
  border-color: #ccff00;
  background: rgba(204, 255, 0, 0.055);
  box-shadow: none;
  transform: translateY(-2px);
}
#title .t-btn.primary {
  border-color: #ccff00;
  background: #ccff00;
  color: #070908;
  text-shadow: none;
}
#title .t-btn.primary:hover {
  color: #070908;
  background: #ddff55;
  box-shadow: 0 12px 32px rgba(204, 255, 0, 0.14);
}
#title .t-btn.dim {
  color: #949b95;
  border-color: rgba(255, 255, 255, 0.13);
}
#title .t-btn.dim:hover { color: #ccff00; border-color: #ccff00; }
#title .t-rules {
  align-self: flex-start;
  margin-top: 5px;
  color: #ccff00;
  letter-spacing: 0.16em;
  border-bottom: 1px solid rgba(204, 255, 0, 0.35);
  padding-bottom: 5px;
}

@media (max-width: 1060px) and (min-width: 861px) {
  #title { padding-inline: 24px; }
  #title .t-hero { width: min(540px, 54vw); }
  #title .t-podium { width: 100%; }
  #title .t-card { width: min(350px, 38vw); padding: 55px 28px 30px; }
  #title .t-name { font-size: clamp(40px, 4.7vw, 52px); }
}

@media (max-width: 860px) {
  #title {
    justify-content: flex-start;
    gap: 18px;
    padding: 32px 16px 70px;
  }
  #title::after { left: 18px; bottom: 18px; }
  #title .t-hero,
  #title .t-card { width: min(520px, calc(100vw - 32px)); flex: none; }
  #title .t-hero { padding: 22px 18px 18px; }
  #title .t-hero-body { flex-direction: column-reverse; }
  #title .t-roster {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    padding: 0;
  }
  #title .t-tile { width: 100%; height: 62px; }
  #title .t-tile .pt-96,
  #title .t-tile .pt-96 .pt-img { width: 100%; height: 100%; }
  #title .t-tile-name { display: block; font-size: 10px; letter-spacing: 1px; }
  #title .t-podium { width: 100%; }
  #title .t-stage { height: 300px; min-height: 300px; }
  #title .t-card { padding: 55px 26px 28px; }
  #title .t-name { font-size: clamp(36px, 13vw, 76px); }
}

@media (max-height: 720px) and (min-width: 861px) {
  #title { padding-block: 30px; }
  #title .t-stage { height: 320px; min-height: 280px; }
  #title .t-tile { height: 62px; }
  #title .t-hero { padding: 20px; }
  #title .t-card { padding-block: 48px 28px; }
}

/* Carry the landing-page shell into gameplay and secondary overlays. */
#banner,
#runhud,
#volbtn {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(7, 9, 8, 0.88);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}
#banner {
  border-top: 2px solid #ccff00;
  color: #eef2e9;
  letter-spacing: 0.12em;
}
#runhud { border-left: 3px solid #ccff00; }
#volbtn:hover { color: #ccff00; border-color: #ccff00; }

#menu,
#intermission,
#results { backdrop-filter: blur(10px) saturate(0.72); }
#menu .m-card,
#lb .lb-card,
#intermission .im-card,
.r-card {
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 2px solid #ccff00;
  background: rgba(7, 9, 8, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}
#menu .m-title,
#lb .lb-title,
#intermission .im-title { color: #ccff00; text-shadow: none; }
#menu .m-btn,
#lb .lb-tabs button {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #dce2da;
}
#menu .m-btn:hover,
#menu .m-tab.on,
#lb .lb-tabs button.on {
  color: #ccff00;
  border-color: #ccff00;
  background: rgba(204, 255, 0, 0.055);
  box-shadow: none;
}
#menu .m-btn.primary {
  color: #070908;
  border-color: #ccff00;
  background: #ccff00;
}
#menu .m-btn.primary:hover { color: #070908; background: #ddff55; }
#menu .m-slider input[type=range] { accent-color: #ccff00; }
#menu .m-val,
#lb .lb-sec,
#lb .lb-rules,
#intermission .im-rules { color: #ccff00; }

/* Keep the entry composition clean: gameplay HUD belongs to the game, not
   behind the title. The arena itself remains visible as atmosphere. */
body.title-open #runhud,
body.title-open #timer,
body.title-open #roundstrip,
body.title-open #minimap,
body.title-open #miniboard,
body.title-open #scoreboard,
body.title-open #padarrow,
body.title-open #aimhint,
body.title-open #hint { display: none !important; }

/* Scrolling remains available on short screens, without the intrusive
   operating-system scrollbar shown over the interface. */
#title,
#title .t-roster,
#lb .lb-body,
#menu .m-card {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}
#title::-webkit-scrollbar,
#title .t-roster::-webkit-scrollbar,
#lb .lb-body::-webkit-scrollbar,
#menu .m-card::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Skydeck: replace the legacy violet/cyan arcade palette with Vicefall's
   charcoal, white, and acid-lime system. Warning/locked states stay distinct. */
#deckprompt,
#deckhint,
#runcard {
  border-radius: 2px;
  border-color: #ccff00;
  background: rgba(7, 9, 8, 0.9);
  color: #f4f7ed;
  text-shadow: none;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
}
#deckprompt { border-width: 1px; border-left-width: 3px; }
#deckprompt .dp-ring {
  background: conic-gradient(#ccff00 calc(var(--p) * 1%), rgba(255, 255, 255, 0.13) 0);
}
#runcard .rc-title { color: #ccff00; }
#beamflash {
  background: radial-gradient(ellipse 18% 100% at 50% 50%, rgba(255, 255, 255, 0.95), rgba(204, 255, 0, 0.28) 55%, transparent 80%);
}

/* Skydeck-to-city drop: fast, legible and unmistakably Vicefall. */
#divefx {
  --dive-force: 0;
  position: absolute;
  inset: 0;
  z-index: 26;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  color: #ccff00;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 17%, rgba(204, 255, 0, calc(var(--dive-force) * 0.045)) 34%, transparent 55%),
    radial-gradient(circle at 50% 50%, transparent 28%, rgba(0, 0, 0, calc(var(--dive-force) * 0.72)) 100%);
  transition: opacity 0.12s ease;
}
#divefx.on { opacity: 1; visibility: visible; }
#divefx::after {
  content: '';
  position: absolute;
  inset: -12%;
  opacity: 0;
  border: 5px solid #ccff00;
  box-shadow: inset 0 0 90px 20px rgba(204, 255, 0, 0.55), 0 0 80px #ccff00;
  pointer-events: none;
}
#divefx.impact { visibility: visible; }
#divefx.impact::after { animation: dive-impact 0.5s cubic-bezier(.1,.7,.2,1); }
@keyframes dive-impact {
  0% { opacity: 0.95; transform: scale(0.82); }
  45% { opacity: 0.36; }
  100% { opacity: 0; transform: scale(1.08); }
}
.df-speedlines { position: absolute; inset: 0; transform: skewX(-2deg); }
.df-speedlines > i {
  position: absolute;
  top: -25%;
  left: var(--x);
  width: 2px;
  height: var(--len);
  opacity: calc(0.18 + var(--dive-force) * 0.72);
  transform: rotate(var(--lean));
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.9) 45%, #ccff00);
  box-shadow: 0 0 9px rgba(204, 255, 0, 0.7);
  animation: dive-streak var(--speed) linear var(--delay) infinite;
  animation-play-state: paused;
}
#divefx.on .df-speedlines > i { animation-play-state: running; }
@keyframes dive-streak {
  from { translate: 0 -10vh; scale: 1 calc(.45 + var(--dive-force)); }
  to { translate: 3vw 145vh; scale: 1 calc(.9 + var(--dive-force)); }
}
.df-reticle {
  position: absolute;
  left: 50%;
  top: 48%;
  width: clamp(150px, 20vw, 270px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px solid rgba(204, 255, 0, calc(.2 + var(--dive-force) * .45));
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(204, 255, 0, calc(var(--dive-force) * .15));
  transform: rotate(calc(var(--dive-force) * 28deg)) scale(calc(1 + var(--dive-force) * .12));
}
.df-reticle::before,
.df-reticle::after {
  content: '';
  position: absolute;
  background: #ccff00;
  box-shadow: 0 0 8px rgba(204, 255, 0, .8);
}
.df-reticle::before { left: 50%; top: -9px; width: 1px; height: calc(100% + 18px); }
.df-reticle::after { top: 50%; left: -9px; height: 1px; width: calc(100% + 18px); }
.df-reticle > i { position: absolute; width: 17px; height: 17px; border-color: #ccff00; border-style: solid; }
.df-reticle > i:nth-child(1) { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.df-reticle > i:nth-child(2) { right: -1px; top: -1px; border-width: 2px 2px 0 0; }
.df-reticle > i:nth-child(3) { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.df-reticle > i:nth-child(4) { left: -1px; bottom: -1px; border-width: 0 0 2px 2px; }
.df-telemetry {
  position: absolute;
  left: clamp(18px, 4vw, 64px);
  bottom: clamp(22px, 6vh, 72px);
  width: min(260px, 58vw);
  padding-left: 14px;
  border-left: 3px solid #ccff00;
  filter: drop-shadow(0 2px 8px #000);
}
.df-telemetry span,
.df-telemetry em { display: block; font-style: normal; letter-spacing: .18em; }
.df-telemetry span { color: #f4f7ed; font-size: 11px; }
.df-telemetry strong { display: block; font-size: clamp(42px, 7vw, 78px); line-height: .96; letter-spacing: .04em; }
.df-telemetry strong small { margin-left: 5px; font-size: .28em; }
.df-telemetry em { margin: 6px 0 9px; color: rgba(244,247,237,.62); font-size: 9px; }
.df-meter { height: 3px; overflow: hidden; background: rgba(255,255,255,.15); }
.df-meter > i { display: block; width: 0; height: 100%; background: #ccff00; box-shadow: 0 0 10px #ccff00; }

@media (prefers-reduced-motion: reduce) {
  .df-speedlines { display: none; }
  .df-reticle { transform: none; }
}

#deckui {
  background:
    linear-gradient(rgba(204, 255, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 255, 0, 0.035) 1px, transparent 1px),
    rgba(4, 6, 5, 0.78);
  background-size: 54px 54px, 54px 54px, auto;
  backdrop-filter: blur(12px) saturate(0.72);
}
#deckui .du-panel {
  padding: 26px 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 2px solid #ccff00;
  border-radius: 2px;
  background: rgba(7, 9, 8, 0.95);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}
#deckui .du-stage {
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(rgba(204, 255, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 255, 0, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(204, 255, 0, 0.14), #080b09 68%);
  background-size: 38px 38px, 38px 38px, auto;
}
#deckui .du-hint,
#deckui .du-found,
#deckui .du-lore,
#deckui .du-sub { color: #919991; }
#deckui .du-maker,
#deckui .du-name,
#deckui .du-title,
#deckui .du-key { color: #ccff00; }
#deckui .du-fill { background: linear-gradient(90deg, #7f9f00, #ccff00); }
#deckui .du-sv { color: #edf1e9; }
#deckui .du-notsold { color: #a7afaa; }
#deckui .du-close,
#deckui .du-hero,
#deckui .du-emote {
  color: #edf1e9;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
#deckui .du-close:hover,
#deckui .du-hero:hover,
#deckui .du-emote:hover {
  color: #ccff00;
  border-color: #ccff00;
  background: rgba(204, 255, 0, 0.055);
  transform: translateY(-2px);
}
#deckui .du-hero img,
#deckui .du-citymap { border-radius: 0; }
#deckui .du-hero.on {
  color: #070908;
  border-color: #ccff00;
  background: #ccff00;
  box-shadow: 0 12px 30px rgba(204, 255, 0, 0.12);
}
#deckui .du-wheel { border-color: rgba(204, 255, 0, 0.28); }
#deckui .du-citymap { border-color: rgba(204, 255, 0, 0.35); }
