:root {
  /* TX Blaster "Tactical Command Center" — exact brand tokens (foto 2) */
  --bg0: #05070B;           /* deep blue-black void */
  --bg1: #0B1118;           /* panel base */
  --cyan: #00CFEA;          /* primary UI */
  --blue: #008CFF;          /* secondary highlight */
  --amber: #FF8A1A;         /* CTA / energy / price */
  --red: #FF3B2E;
  --lila: #6A5CFF;          /* cold violet — apex / on-chain (NOT magenta) */
  --status-live: #D7FF2F;   /* lime — LIVE/online status only */
  --ink: #C7D1DB;           /* cool neutral bright */
  --dim: #6B7280;           /* cool neutral dim */
  /* legacy aliases remapped to the brand palette (keep old selectors working) */
  --magenta: #6A5CFF;
  --lime: #00CFEA;
  --violet: #6A5CFF;
  --panel: rgba(11, 17, 24, 0.86);
  --panel-line: #1e2636;    /* subtle steel border, not a glowing edge */
  --font: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --display: 'Orbitron', 'JetBrains Mono', monospace;
}

/* Shared TX Blaster radio widget (radio.js) — EXACT canonical brand tokens from
   chronicle-tx-blaster so the radio is pixel-identical to breaker / the main app
   (and to every game from here on). Do not improvise these values. */
:root {
  --neon-cyan: #00CFEA; --neon-mag: #FF8A1A; --neon-lime: #D7FF2F;
  --font-mono: 'JetBrains Mono', monospace; --font-hud: 'Orbitron', sans-serif;
  --bg-panel: #0B1118; --bg-panel-2: #101620; --bg-elev: #111827;
  --border: #1e2636; --border-hot: #2d3a50;
  --txt-bright: #C7D1DB; --txt-dim: #6B7280; --txt-mid: #9CA3AF; --txt-white: #E8EDF2;
  --glow-amber: 0 0 12px rgba(255,138,26,0.45);
  --hud-corner: 8px;
  --clip-corner: polygon(var(--hud-corner) 0%, 100% 0%, 100% calc(100% - var(--hud-corner)), calc(100% - var(--hud-corner)) 100%, 0% 100%, 0% var(--hud-corner));
  --hud-inset: rgba(0,207,234,0.03);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg0);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#game { position: fixed; inset: 0; z-index: 1; display: block; }
#overlay { position: fixed; inset: 0; z-index: 2; display: block; touch-action: none; }

/* CRT scanline + vignette overlay */
#crt {
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.10) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

/* ── HUD ─────────────────────────────────────────────── */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 20; }
.hud-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 12px 14px; gap: 10px;
}
.stat { font-size: 12px; letter-spacing: 0.06em; }
.stat b { display: block; font-size: 11px; color: var(--dim); font-weight: 400; }
.center-stats { text-align: center; }
.center-stats .block { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--cyan); text-shadow: 0 0 12px rgba(0,207,234,0.7); line-height: 1; }
/* F2: Block counter flip-pop — fires when a new block seals. game.js toggles .blkpop.
   transform-origin center so the letter-spacing/center-stats layout doesn't drift. */
@keyframes blkpop {
  0%   { transform: scale(1.55); color: #D7FF2F; text-shadow: 0 0 26px #D7FF2F, 0 0 8px #fff; }
  55%  { color: #00CFEA; }
  100% { transform: scale(1); text-shadow: 0 0 12px rgba(0,207,234,.7); }
}
.center-stats .block.blkpop { animation: blkpop .5s cubic-bezier(.2,1.5,.4,1); transform-origin: center; }
.center-stats .sub { font-size: 12px; color: var(--ink); margin-top: 3px; }
.center-stats .score { color: var(--lime); }
.right-stats { text-align: right; }

.badge {
  display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px;
  letter-spacing: 0.12em; border: 1px solid; font-weight: 700;
}
.badge.live { color: var(--status-live); border-color: var(--status-live); box-shadow: 0 0 10px rgba(215,255,47,0.35); }
.badge.demo { color: var(--amber); border-color: var(--amber); }
.badge.offline { color: var(--dim); border-color: var(--dim); }
.seed { font-size: 10px; color: var(--dim); margin-top: 4px; }

/* HP + XP bars */
.bar { height: 9px; border-radius: 5px; background: rgba(255,255,255,0.08); overflow: hidden; border: 1px solid rgba(255,255,255,0.12); }
.bar > i { display: block; height: 100%; transition: width 0.12s linear; }
.hp { width: 168px; margin-top: 4px; position: relative; }
.hp > i { background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 8px var(--cyan); }

/* F1: HP ghost lag-bar — the red "data-corruption" chip that trails the real fill.
   #hpFill fills instantly (transition:none) so the magenta chip is always readable;
   the lag lives ONLY on #hpGhost, sitting UNDER the fill (lower z-index). */
.hp > #hpGhost {
  position: absolute; left: 0; top: 0; height: 100%; z-index: 0;
  background: #FF3B2E;
  /* hard-edge flicker, not a soft RPG bar — compositor-only shadow */
  box-shadow: 0 0 6px rgba(255,59,46,0.75) inset, 0 0 4px rgba(255,59,46,0.5);
  border-radius: 0;
  transition: width 0.35s ease-out 0.12s;
}
.hp > #hpFill {
  position: relative; z-index: 1;
  transition: none; /* instant — chip reveal handled by ghost */
}
/* Critical pulse: pulses a compositor-friendly box-shadow/filter (no gradient recalc).
   game.js toggles .crit on the .hp element (or #hpFill) when HP is low. */
@keyframes hpCrit {
  0%, 100% { box-shadow: 0 0 8px var(--cyan); filter: none; }
  50%      { box-shadow: 0 0 14px #FF3B2E, 0 0 4px #FF3B2E; filter: brightness(1.15) saturate(1.3); }
}
.hp.crit > #hpFill { animation: hpCrit 0.55s steps(2, jump-none) infinite; }
/* Critical vignette — bound to the existing #crt overlay (z50). Transform/opacity
   only, will-change'd: NEVER animate box-shadow or radial-gradient per frame. */
#crt.crit::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  will-change: opacity, transform;
  background: radial-gradient(120% 90% at 50% 50%, transparent 46%, rgba(255,59,46,0.42) 100%);
  mix-blend-mode: screen; opacity: 0; transform: scale(1.04);
  animation: hpCritVig 0.9s ease-in-out infinite;
}
@keyframes hpCritVig {
  0%, 100% { opacity: 0.35; transform: scale(1.0); }
  50%      { opacity: 0.85; transform: scale(1.045); }
}
.xp-wrap { position: absolute; left: 14px; right: 14px; bottom: 12px; }
.xp { height: 7px; }
.xp > i { background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 8px var(--cyan); width: 0; }
.xp-label { font-size: 10px; color: var(--dim); margin-bottom: 3px; letter-spacing: 0.1em; }

/* Chain panel */
#chain {
  position: absolute; top: 64px; right: 12px; width: 226px;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 8px;
  padding: 8px 9px; backdrop-filter: blur(3px);
  max-height: 46vh; overflow: hidden;
}
#chain h4 { font-size: 11px; letter-spacing: 0.14em; color: var(--violet); margin-bottom: 6px; display: flex; justify-content: space-between; }
#chain h4 .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); align-self: center; }
#chain h4 .dot.on { background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: pulseDot 1.4s infinite; }
.link {
  font-size: 10px; padding: 4px 6px; border-radius: 5px; margin-bottom: 4px;
  border-left: 2px solid var(--dim); background: rgba(255,255,255,0.03);
  display: flex; justify-content: space-between; gap: 6px;
  animation: slideIn 0.3s ease;
}
.link.pending { border-left-color: var(--amber); }
.link.ok { border-left-color: var(--lime); }
.link.fail { border-left-color: var(--magenta); }
.link .blk { color: var(--cyan); }
.link .id { color: var(--dim); font-size: 9px; }
.link a { color: var(--cyan); text-decoration: none; }

@keyframes slideIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* combo */
#combo {
  position: absolute; top: 96px; left: 50%; transform: translateX(-50%);
  font-size: 15px; font-weight: 700; color: var(--amber); opacity: 0;
  text-shadow: 0 0 10px rgba(255,179,26,0.7); transition: opacity 0.2s;
}
#combo.on { opacity: 1; }

/* ── Overlays ────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 100% at 50% 30%, rgba(20,12,40,0.6), rgba(6,4,12,0.92));
  backdrop-filter: blur(2px); padding: 20px;
}
.overlay.hidden { display: none; }
.panel {
  width: min(560px, 94vw); background: var(--panel); border: 1px solid var(--panel-line);
  border-radius: 14px; padding: 26px 24px; box-shadow: 0 0 40px rgba(0,207,234,0.14), inset 0 0 60px rgba(255,138,26,0.04);
  max-height: 92vh; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--cyan) rgba(0,0,0,0.25);   /* Firefox */
}
/* Cyber scrollbar (WebKit) — cyan→amber thumb on a dark notched track */
.panel::-webkit-scrollbar { width: 10px; }
.panel::-webkit-scrollbar-track { background: rgba(0,0,0,0.28); border-radius: 8px; margin: 6px; }
.panel::-webkit-scrollbar-thumb {
  border-radius: 8px; border: 2px solid var(--bg1);
  background: linear-gradient(180deg, var(--cyan), var(--amber));
}
.panel::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--amber), var(--cyan)); }
/* ── TX Blaster brand chrome (cohesion with txblaster.xyz / Breaker) ──────── */
/* home wordmark: chevron cyan · "TX" amber · BLASTER ink — the logo, in brand colors */
.brand-home {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.18em;
  color: var(--ink); text-decoration: none; margin-bottom: 14px;
}
.brand-home .chev { color: var(--cyan); font-weight: 800; }
.brand-home .hx { color: var(--amber); }
.brand-home:hover { filter: drop-shadow(0 0 8px rgba(255,138,26,0.45)); }
/* eyebrow: the 2×2 grid glyph (3 cyan + 1 amber cell) + label */
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 10px;
}
.eyebrow svg { width: 16px; height: 16px; }

.title {
  font-family: var(--display);
  font-size: 38px; font-weight: 900; letter-spacing: 0.04em; line-height: 0.98;
  background: linear-gradient(110deg, #FFB000 0%, var(--amber) 32%, var(--cyan) 70%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; text-align: center;
  filter: drop-shadow(0 0 22px rgba(255,138,26,0.34)) drop-shadow(0 0 26px rgba(0,207,234,0.20));
}
.title small { display: block; font-size: 13px; letter-spacing: 0.34em; color: var(--cyan); margin-top: 8px; -webkit-text-fill-color: var(--cyan); }
.tagline { text-align: center; color: var(--ink); font-size: 13px; margin: 14px 0 18px; line-height: 1.55; }
.tagline em { color: var(--cyan); font-style: normal; }

.row { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
input[type=text] {
  background: rgba(0,0,0,0.4); border: 1px solid var(--panel-line); color: var(--ink);
  font-family: var(--font); font-size: 15px; padding: 10px 12px; border-radius: 8px; width: 220px; text-align: center;
}
input[type=text]:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 10px rgba(0,207,234,0.3); }

.btn {
  font-family: var(--font); font-size: 15px; font-weight: 700; letter-spacing: 0.08em;
  padding: 12px 28px; border-radius: 9px; cursor: pointer; pointer-events: auto;
  background: linear-gradient(180deg, var(--cyan), var(--blue)); color: #04060e; border: none;
  box-shadow: 0 0 20px rgba(0,140,255,0.4); transition: transform 0.08s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(0,140,255,0.6); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--panel-line); box-shadow: none; }

/* ── Economy panel (PLAY FOR REAL / Yours connect) ───────────────────────── */
.econ-panel { margin-top: 16px; width: 100%; }
.econ-h { font-size: 12px; color: var(--ink); text-align: center; line-height: 1.55; margin-bottom: 12px; }
.econ-h b { color: var(--amber); }
.econ-h a { color: var(--cyan); text-decoration: none; }
.econ-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.econ-btn {
  font-family: var(--font); font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
  padding: 10px 16px; border-radius: 9px; cursor: pointer; pointer-events: auto;
  background: linear-gradient(180deg, var(--amber), #e0780f); color: #1a0e02; border: none;
  box-shadow: 0 0 18px rgba(255,138,26,0.4); transition: transform 0.08s, box-shadow 0.2s; text-align: center;
}
.econ-btn:hover { transform: translateY(-1px); box-shadow: 0 0 26px rgba(255,138,26,0.6); }
.econ-btn:active { transform: translateY(1px); }
.econ-btn small { display: block; font-weight: 400; font-size: 10px; opacity: 0.82; margin-top: 2px; }
.econ-status { text-align: center; font-size: 12px; color: var(--cyan); margin-top: 10px; min-height: 16px; }

.howto { font-size: 12px; color: var(--dim); text-align: center; margin-top: 16px; line-height: 1.7; }
.howto kbd { color: var(--ink); border: 1px solid var(--panel-line); border-radius: 4px; padding: 1px 6px; font-size: 11px; }

/* leaderboard table */
.lb { margin-top: 18px; }
.lb h3 { font-size: 12px; letter-spacing: 0.16em; color: var(--cyan); margin-bottom: 8px; text-align: center; }
.lb table { width: 100%; border-collapse: collapse; font-size: 12px; }
.lb th { color: var(--dim); font-weight: 400; text-align: left; padding: 3px 6px; font-size: 10px; letter-spacing: 0.08em; }
.lb td { padding: 4px 6px; border-top: 1px solid rgba(255,255,255,0.06); }
.lb td.s { color: var(--lime); text-align: right; }
.lb td.b { color: var(--cyan); }
.lb a { color: var(--cyan); text-decoration: none; }
.lb .me { background: rgba(0,207,234,0.07); }
/* TODAY / SEASON tabs on the ranked leaderboard */
.lb-tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.lb-tab { font: 700 11px var(--font-mono, "JetBrains Mono"), monospace; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); background: rgba(11,17,24,0.6); border: 1px solid var(--panel-line); border-radius: 999px; padding: 5px 15px; cursor: pointer; transition: all .15s; }
.lb-tab.active { color: #04060e; background: linear-gradient(180deg, var(--amber), #e0780f); box-shadow: 0 0 12px rgba(255,138,26,0.4); }
.lb-tab:not(.active):hover { color: var(--ink); border-color: var(--cyan); }

/* level-up cards */
.cards { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.card {
  width: 150px; min-height: 168px; background: rgba(0,0,0,0.35); border: 1px solid var(--panel-line);
  border-radius: 12px; padding: 14px 12px; cursor: pointer; pointer-events: auto;
  transition: transform 0.1s, border-color 0.15s, box-shadow 0.15s; display: flex; flex-direction: column; gap: 8px;
}
.card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 0 22px rgba(0,207,234,0.3); }
.card .ico { font-size: 30px; text-align: center; }
.card .name { font-size: 13px; font-weight: 700; color: var(--cyan); text-align: center; }
.card .lvl { font-size: 10px; color: var(--amber); text-align: center; letter-spacing: 0.1em; }
.card .desc { font-size: 11px; color: var(--ink); line-height: 1.45; text-align: center; flex: 1; }

.seal {
  margin: 14px 0; padding: 12px; border: 1px dashed var(--panel-line); border-radius: 10px;
  text-align: center; font-size: 12px; line-height: 1.6;
}
.seal .txid { color: var(--cyan); word-break: break-all; font-size: 11px; }
.big-num { font-family: var(--display); font-size: 32px; font-weight: 900; color: var(--cyan); text-shadow: 0 0 14px rgba(0,207,234,0.5); }
.muted { color: var(--dim); }

@media (max-width: 560px) {
  .title { font-size: 30px; }
  #chain { width: 150px; top: 78px; }
  .hp { width: 120px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY REFINEMENT — premium hierarchy within the canonical brand faces
   (Orbitron display + JetBrains Mono) and brand colours (orange + blue). The
   signature is a LEDGER/TERMINAL voice: all on-chain DATA (scores, times, block,
   txids) is set in tabular monospace so it aligns like a real ledger — true to
   "every block is a verifiable transaction".
   ════════════════════════════════════════════════════════════════════════════ */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* Display title: Orbitron, tightened tracking reads more premium than the wide default */
.title { letter-spacing: 0.012em; }
.title small { letter-spacing: 0.4em; font-weight: 700; opacity: 0.92; }

/* Eyebrow / section labels: terminal-style mono, wide tracking, hairline weight */
.eyebrow { letter-spacing: 0.28em; font-weight: 700; }

/* Buttons: confident uppercase, even tracking */
.btn, .econ-btn { text-transform: uppercase; }
.btn { letter-spacing: 0.1em; }
.econ-btn { letter-spacing: 0.06em; font-weight: 700; }
.econ-btn small { letter-spacing: 0.04em; text-transform: none; opacity: 0.85; }

/* Tabular figures everywhere numbers live → no jitter, ledger alignment */
.center-stats .block, .center-stats .sub, #scoreText, #timeText, #blockText, #lvlText,
.big-num, .lb table, .seal .txid, .link, #combo {
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "ss01" 1;
}

/* Leaderboard: a clean data table — dim mono rank, tabular score/time, airier rows */
.lb h3 { letter-spacing: 0.2em; font-weight: 700; color: var(--cyan); }
.lb table { letter-spacing: 0.01em; }
.lb th { text-transform: uppercase; letter-spacing: 0.12em; }
.lb td { padding: 5px 7px; }
.lb td:first-child { color: var(--dim); font-weight: 700; }
.lb td.s { font-weight: 700; }
.lb tr.me td:first-child { color: var(--cyan); }

/* Level-up cards: stronger name, calmer description */
.card .name { letter-spacing: 0.02em; font-weight: 700; }
.card .lvl { text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; }
.card .desc { color: var(--ink); opacity: 0.92; }

/* HUD block counter: a touch tighter so the big Orbitron number feels engineered */
.center-stats .block { letter-spacing: 0.01em; }

/* ═══════════════════════════════════════════════════════════════════════════
   START-MENU COMMAND CONSOLE
   Turns the centred "card on void" into a 2-zone tactical console (identity |
   action) floating over the LIVE 3D mempool. Scoped to .console so the guide /
   level-up / game-over panels keep the original chrome. All game.js ids kept.
   ═══════════════════════════════════════════════════════════════════════════ */

/* reveal the living 3D world behind the menu (other modals keep the opaque scrim) */
#menu.overlay {
  background: radial-gradient(135% 105% at 50% 18%, rgba(10,16,30,0.46), rgba(5,7,11,0.85));
  backdrop-filter: blur(7px) saturate(1.18);
}

/* shared HUD frame (menu console + game over): notch + brackets + scanline + glow */
.panel.con-frame {
  position: relative; border: 1px solid var(--border-hot); border-radius: 0;
  clip-path: var(--clip-corner);
  background:
    repeating-linear-gradient(0deg, rgba(0,207,234,0.022) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(13,19,28,0.84), rgba(8,12,18,0.88));
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), inset 0 0 90px rgba(0,207,234,0.045);
  backdrop-filter: blur(3px);
}
.panel.con-frame::before, .panel.con-frame::after {
  content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none;
  border: 2px solid rgba(0,207,234,0.55);
}
.panel.con-frame::before { top: 7px; right: 7px; border-left: none; border-bottom: none; }
.panel.con-frame::after  { bottom: 7px; left: 7px; border-right: none; border-top: none; }

/* menu console: sizing only (chrome comes from .con-frame) */
.panel.console {
  width: min(940px, 96vw); max-width: 96vw; max-height: 92vh; overflow-y: auto;
  padding: 20px 22px 18px;
}

/* status strip */
.con-status {
  display: flex; align-items: center; gap: 9px; padding-bottom: 13px; margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font: 700 10px var(--font-mono), monospace; letter-spacing: 0.14em;
  color: var(--txt-dim); text-transform: uppercase;
}
.con-status .con-live { display: inline-flex; align-items: center; gap: 6px; color: var(--status-live); }
.con-status .con-led { width: 7px; height: 7px; border-radius: 50%; background: var(--status-live);
  box-shadow: 0 0 8px var(--status-live); animation: conled 1.8s ease-in-out infinite; }
@keyframes conled { 0%,100% { opacity: 1; } 50% { opacity: 0.32; } }
.con-status .con-net b { color: var(--cyan); }
.con-status .con-sep { opacity: 0.45; }
.con-status .seed { margin: 0; }
.con-status .con-ver { color: var(--status-live); font-weight: 700; }
.con-status .con-grow { flex: 1; }
.con-status .badge { margin: 0; }

/* 2-zone grid */
.con-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: 26px; align-items: start; }
.con-id { text-align: left; border-right: 1px solid rgba(0,207,234,0.1); padding-right: 24px; }
.con-act { display: flex; flex-direction: column; gap: 11px; min-width: 0; }

/* identity column — left-aligned brand block */
.console .brand-home { justify-content: flex-start; margin-bottom: 12px; }
.console .eyebrow { justify-content: flex-start; margin-bottom: 8px; }
.console .title { text-align: left; font-size: clamp(30px, 4vw, 46px); }
.console .title small { letter-spacing: 0.3em; }
.console .tagline { text-align: left; margin: 12px 0 4px; font-size: 13px; max-width: 44ch; line-height: 1.55; }

/* action column header + info */
.con-h { display: flex; align-items: center; gap: 9px; margin-bottom: 2px;
  font: 800 13px var(--display); letter-spacing: 0.14em; color: var(--cyan); text-transform: uppercase; }
.con-info { width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--border-hot);
  background: transparent; color: var(--txt-dim); font: 700 11px var(--font-mono), monospace; line-height: 1; cursor: pointer; }
.con-info:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 10px rgba(0,207,234,0.3); }

/* full-width controls in the action column */
.con-act .row { width: 100%; justify-content: stretch; margin: 0; }
.console input[type=text] { width: 100%; text-align: left; }
.console .mode-toggle { display: flex; }
.con-hint { font-size: 11px; text-align: left; margin: 2px 0 0; line-height: 1.5; }
.con-note { font-size: 11px; text-align: center; margin-top: 2px; }
.con-howto { font-size: 11px; text-align: left; margin-top: 8px; line-height: 1.7; }
.con-donate { font-size: 11px; text-align: left; margin-top: 6px; line-height: 1.5; word-break: break-all; }
.console .con-free { width: 100%; }
.console .econ-panel { margin-top: 4px; }
/* PLAY tiers as equal "cartridge" tiles; connect button fills the row */
.console .econ-row { display: flex; gap: 8px; }
.console .econ-btn { flex: 1; padding: 11px 6px; }
.console .econ-h { text-align: left; font-size: 11.5px; margin-bottom: 8px; }
/* ONE prominent on-chain CTA + a quiet free link below (TreeChat-dev feedback) */
.console .econ-btn.play-cta { width: 100%; flex: none; font-size: 16px; padding: 15px 12px; letter-spacing: 0.07em; }
.console .econ-sub { text-align: center; font-size: 11px; margin: 9px 0 0; color: var(--txt-dim); line-height: 1.55; }
.console .con-free-row { justify-content: center; margin-top: 6px; }
.console .con-free { width: auto; background: transparent; border: none; box-shadow: none; color: var(--txt-dim);
  font: 700 12px var(--font-mono), monospace; letter-spacing: 0.06em; cursor: pointer; padding: 6px 8px;
  text-decoration: underline; text-underline-offset: 3px; transition: color 0.15s; }
.console .con-free:hover { color: var(--cyan); box-shadow: none; transform: none; }
.console .con-free::after { display: none; }

/* leaderboard = CURRENT HOLDER + top scores (left zone) */
.console .con-lb { margin-top: 16px; }
.console .con-lb h3 { text-align: left; }
.console .con-lb table { font-size: 11.5px; }
/* champion = first DATA row (row 1 is the <th> header) */
.console .con-lb table tr:nth-child(2) td {
  padding: 9px 7px; font-size: 13px; border-top: 1px solid rgba(255,138,26,0.34);
  background: linear-gradient(90deg, rgba(255,138,26,0.13), rgba(0,207,234,0.04) 70%, transparent);
}
.console .con-lb table tr:nth-child(2) td:first-child { color: var(--amber); font-weight: 800; }
.console .con-lb table tr:nth-child(2) td.s { color: var(--status-live); }

/* entrance — staggered rise on reveal (intro handoff or returning-visitor load).
   `backwards` fill = hidden only while the animation is queued, so without the
   .reveal class the menu is always visible (never a blank panel). */
@keyframes conIn { from { opacity: 0; transform: translateY(16px) scale(0.99); } to { opacity: 1; transform: none; } }
#menu.reveal .con-status { animation: conIn 0.5s cubic-bezier(0.16,0.84,0.36,1) 0.02s backwards; }
#menu.reveal .con-id { animation: conIn 0.6s cubic-bezier(0.16,0.84,0.36,1) 0.1s backwards; }
#menu.reveal .con-act > * { animation: conIn 0.5s cubic-bezier(0.16,0.84,0.36,1) backwards; }
#menu.reveal .con-act > *:nth-child(1) { animation-delay: 0.16s; }
#menu.reveal .con-act > *:nth-child(2) { animation-delay: 0.22s; }
#menu.reveal .con-act > *:nth-child(3) { animation-delay: 0.28s; }
#menu.reveal .con-act > *:nth-child(4) { animation-delay: 0.34s; }
#menu.reveal .con-act > *:nth-child(5) { animation-delay: 0.4s; }
#menu.reveal .con-act > *:nth-child(n+6) { animation-delay: 0.46s; }

/* mobile: stack the two zones */
@media (max-width: 760px) {
  .panel.console { padding: 16px 15px; width: 96vw; }
  .con-grid { grid-template-columns: 1fr; gap: 16px; }
  .con-id { border-right: none; padding-right: 0; padding-bottom: 14px;
    border-bottom: 1px solid rgba(0,207,234,0.1); }
  .console .title { text-align: center; }
  .console .brand-home, .console .eyebrow { justify-content: center; }
  .console .tagline { text-align: center; margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  #menu.reveal .con-status, #menu.reveal .con-id, #menu.reveal .con-act > * { animation: none; }
  .con-status .con-led { animation: none; }
}

/* ── status-strip mute toggle ── */
.con-mute { width: 22px; height: 22px; padding: 0; flex: 0 0 auto; border-radius: 50%;
  border: 1px solid var(--border); background: transparent; color: var(--status-live);
  font-size: 12px; line-height: 1; cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.con-mute.off { color: var(--txt-dim); }
.con-mute:hover { border-color: var(--cyan); }

/* ── CURRENT HOLDER hero card (identity zone) ── */
.con-champ { position: relative; margin: 14px 0 2px; padding: 12px 14px;
  border: 1px solid rgba(255,138,26,0.42);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  background: linear-gradient(118deg, rgba(255,138,26,0.14), rgba(0,207,234,0.05) 64%, transparent); }
.con-champ .champ-tag { font: 700 9.5px var(--font-mono), monospace; letter-spacing: 0.2em;
  color: var(--amber); text-transform: uppercase; }
.con-champ .champ-name { font: 800 19px var(--display); color: #EAF6FF; margin: 5px 0 7px; letter-spacing: 0.02em; }
.con-champ .champ-stats { display: flex; align-items: baseline; gap: 11px; }
.con-champ .champ-stats b { font: 900 21px var(--display); color: var(--status-live); line-height: 1; }
.con-champ .champ-stats span { font: 600 12px var(--font-mono), monospace; color: var(--txt-dim); }
.con-champ .champ-seal { display: inline-block; margin-top: 9px; color: var(--cyan);
  font: 600 10px var(--font-mono), monospace; letter-spacing: 0.05em; text-decoration: none; }
.con-champ .champ-seal:hover { text-shadow: 0 0 8px rgba(0,207,234,0.5); }

/* ── cartridge buttons: a light sheen sweeps across on hover ── */
.console .econ-btn, .console .con-free, .go-panel .btn, .card {
  position: relative; overflow: hidden; isolation: isolate; }
.console .econ-btn::after, .console .con-free::after, .go-panel .btn::after, .card::after {
  content: ""; position: absolute; top: 0; left: -65%; width: 48%; height: 100%; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.32), transparent);
  transform: skewX(-18deg); transition: left 0.55s ease; pointer-events: none; }
.console .econ-btn:hover::after, .console .con-free:hover::after,
.go-panel .btn:hover::after, .card:hover::after { left: 135%; }

/* ── GAME OVER — results console (shares .con-frame chrome) ── */
.go-panel { width: min(540px, 94vw); max-width: 94vw; max-height: 92vh; overflow-y: auto;
  padding: 24px 22px 20px; text-align: center; }
.go-title { background: linear-gradient(108deg, #FF6A5C 0%, var(--red) 48%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255,59,46,0.4)); }
.go-panel .big-num { font-size: 54px; line-height: 1; text-shadow: none;
  background: linear-gradient(180deg, #5FE2FF 0%, #FFFFFF 50%, #FFD9A6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(0,207,234,0.38)); }
.go-panel .seal { border: 1px dashed rgba(0,207,234,0.34); border-radius: 0;
  background: rgba(0,207,234,0.04);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.go-share { letter-spacing: 0.08em; }
.go-share:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 16px rgba(0,207,234,0.3); }

/* ── LEVEL-UP cards — premium treatment ── */
.card { background: linear-gradient(180deg, rgba(0,207,234,0.05), rgba(0,0,0,0.4)); }
.card:hover { box-shadow: 0 0 24px rgba(0,207,234,0.32), inset 0 1px 0 rgba(255,255,255,0.08); }
.card[style*="FFB000"] { background: linear-gradient(180deg, rgba(255,176,0,0.12), rgba(0,0,0,0.45)); }
.card[style*="FFB000"]:hover { box-shadow: 0 0 28px rgba(255,176,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1) !important;
  border-color: #FFB000 !important; }
.card[style*="FFB000"]::after { background: linear-gradient(100deg, transparent, rgba(255,214,77,0.4), transparent); }
#levelup .title { background: linear-gradient(110deg, var(--cyan), var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.lvl-panel { width: min(960px, 96vw); max-height: 92vh; overflow-y: auto; padding: 22px 22px 24px; text-align: center; }
/* ── 5-card deal (3 free | separator | 2 premium) — monetization v2 ── */
.cards { align-items: stretch; }
.card { width: 142px; }
.card-sep { flex: 0 0 2px; align-self: stretch; margin: 6px 2px; border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(255,176,0,0.55), transparent); }
.card.prem { background: linear-gradient(180deg, rgba(255,176,0,0.14), rgba(0,0,0,0.5)); }
.card .prem-tag { align-self: center; font: 800 8.5px "JetBrains Mono", monospace; letter-spacing: 0.14em;
  color: #04060e; background: linear-gradient(180deg, #FFD24D, #FFB000); border-radius: 999px;
  padding: 2px 9px; box-shadow: 0 0 10px rgba(255,176,0,0.55); pointer-events: none; }
/* ACTIVE-ability card ("6th SPACE card") — distinct from the gold premiums: cyan energy
   frame + a flat light "SPACE" bar across the top that reads like a keyboard space bar. */
.card.ability { border: 2px solid #7FE3FF; box-shadow: 0 0 20px rgba(127,227,255,0.4);
  background: linear-gradient(180deg, rgba(127,227,255,0.10), rgba(0,0,0,0.5)); }
.card.ability:hover { border-color: #BFefff; box-shadow: 0 0 26px rgba(127,227,255,0.6); }
.card.ability .name { color: #CDF3FF; }
.card.ability .lvl { color: #7FE3FF; }
.card .ab-space { align-self: stretch; height: 15px; margin: -3px 0 5px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font: 800 8px "JetBrains Mono", monospace; letter-spacing: 0.4em; color: #0a1420;
  background: linear-gradient(180deg, #eef6fb 0%, #c3d2dc 55%, #9fb3c8 100%);
  border: 1px solid #7f95a6; box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -3px 0 rgba(0,0,0,0.22);
  pointer-events: none; }
/* narrow screens: divider becomes a horizontal gold rule → cards wrap 3 free / 2 gold */
@media (max-width: 900px) {
  .card-sep { flex: 1 0 100%; height: 2px; align-self: auto; margin: 4px 10%;
    background: linear-gradient(90deg, transparent, rgba(255,176,0,0.55), transparent); }
}
/* phones: 3-across compact cards (free row) + 2 gold under the rule; panel scrolls if needed */
@media (max-width: 540px) {
  .cards { gap: 9px; }
  .card { width: calc(33.33% - 8px); min-width: 92px; min-height: 148px; padding: 10px 8px; }
  .card .ico { font-size: 24px; }
  .card .name { font-size: 11.5px; }
  .card .desc { font-size: 10px; }
}
/* level-up "punch": the title pops in (scaled, not the glass panel → backdrop-filter intact) */
#levelup.reveal .title { animation: lvlPunch 0.45s cubic-bezier(0.2,1.4,0.4,1) backwards; }
@keyframes lvlPunch { from { transform: scale(0.72); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #levelup.reveal .title { animation: none; } }

/* ── shell-screen entrances (menu-fx adds .reveal on show) ── */
@keyframes goIn { from { opacity: 0; transform: translateY(20px) scale(0.985); } to { opacity: 1; transform: none; } }
#gameover.reveal .panel.con-frame > * { animation: goIn 0.5s cubic-bezier(0.16,0.84,0.36,1) backwards; }
#gameover.reveal .panel.con-frame > *:nth-child(2) { animation-delay: 0.05s; }
#gameover.reveal .panel.con-frame > *:nth-child(3) { animation-delay: 0.11s; }
#gameover.reveal .panel.con-frame > *:nth-child(4) { animation-delay: 0.17s; }
#gameover.reveal .panel.con-frame > *:nth-child(n+5) { animation-delay: 0.23s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) rotateX(14deg); } to { opacity: 1; transform: none; } }
#levelup.reveal .cards .card { animation: cardIn 0.45s cubic-bezier(0.16,0.84,0.36,1) backwards; transform-origin: bottom center; }
#levelup.reveal .cards .card:nth-child(1) { animation-delay: 0.03s; }
#levelup.reveal .cards .card:nth-child(2) { animation-delay: 0.1s; }
#levelup.reveal .cards .card:nth-child(3) { animation-delay: 0.17s; }
#levelup.reveal .cards .card:nth-child(n+4) { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  #gameover.reveal .panel.con-frame > *, #levelup.reveal .cards .card { animation: none; }
  .console .econ-btn::after, .console .con-free::after, .go-panel .btn::after, .card::after { display: none; }
}

/* ── HELP / quick-guide panel (shares .con-frame chrome) ── */
.guide-panel { width: min(600px, 95vw); max-height: 92vh; overflow-y: auto; padding: 24px 24px 22px; }
.guide-what { font-size: 13.5px; line-height: 1.6; color: var(--ink); margin: 10px 0 14px; text-align: center; }
.guide-what em { font-style: normal; color: var(--cyan); font-weight: 700; }
.guide-steps { text-align: left; font-size: 14px; line-height: 1.65; }

/* ── cyberpunk reticle (replaces the native cursor on fine pointers) ── */
.ms-cursor-fine, .ms-cursor-fine * { cursor: none !important; }
.ms-cursor-fine input[type=text], .ms-cursor-fine textarea { cursor: text !important; }
.ms-reticle { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  z-index: 9999; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  transition: opacity 0.2s, width 0.12s, height 0.12s, margin 0.12s; }
.ms-reticle .r-ring { position: absolute; inset: 0; border: 1.5px solid rgba(0,207,234,0.85);
  border-radius: 50%; box-shadow: 0 0 8px rgba(0,207,234,0.5); }
.ms-reticle .r-dot { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px;
  background: var(--amber); border-radius: 50%; box-shadow: 0 0 6px var(--amber); }
.ms-reticle .r-l { position: absolute; background: rgba(0,207,234,0.85); }
.ms-reticle .r-l-t { left: 50%; top: -5px; width: 1.5px; height: 5px; margin-left: -0.75px; }
.ms-reticle .r-l-b { left: 50%; bottom: -5px; width: 1.5px; height: 5px; margin-left: -0.75px; }
.ms-reticle .r-l-l { top: 50%; left: -5px; height: 1.5px; width: 5px; margin-top: -0.75px; }
.ms-reticle .r-l-r { top: 50%; right: -5px; height: 1.5px; width: 5px; margin-top: -0.75px; }
.ms-reticle.hot { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.ms-reticle.hot .r-ring { border-color: var(--amber); box-shadow: 0 0 13px rgba(255,138,26,0.7); }
.ms-reticle.down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

/* ── in-run chrome control (driven by <html data-ms-state>) ────────────────────
   While a run is PLAYING the pointer is a distraction inside the arena (it reads as
   an enemy/ship), so hide BOTH the native cursor and the reticle. They return the
   moment you pause or a level-up modal opens (to click an upgrade / buy a premium).
   The EN/ES toggle is hidden too while playing so it can't overlap the HUD badge. */
html[data-ms-state="playing"] .ms-reticle { opacity: 0 !important; }
html[data-ms-state="playing"],
html[data-ms-state="playing"] body,
html[data-ms-state="playing"] canvas { cursor: none !important; }
html[data-ms-state="playing"] #langToggle,
html[data-ms-state="paused"] #langToggle,
html[data-ms-state="levelup"] #langToggle,
html[data-ms-state="dead"] #langToggle { display: none !important; }

/* ── menu parallax inner layer (transform here, not on the backdrop-filter panel) ── */
.con-inner { transition: transform 0.25s ease-out; will-change: transform; }

/* ── screen transition: block-slam wipe (menu → game) ─────────────────────────
   Reskin of the old cyan sweep: a 2x2 "block" glyph (3 cyan cells + 1 amber cell
   bottom-right = the real BSV block) slams down from top → center → punches through.
   CSS-only. JS trigger in menu-fx.js is unchanged (still toggles .go). The amber
   cell is the real OP_RETURN block; ideal to reveal the live txid at impact
   (game.js updateLastLink) — CSS just provides the impact frame. */
.ms-wipe { position: fixed; inset: 0; z-index: 190; pointer-events: none; opacity: 0;
  background:
    /* scan band (kept, subtle) */
    linear-gradient(180deg, transparent 44%, rgba(0,207,234,0.30) 50%, transparent 56%),
    /* 2x2 block glyph: TL/TR/BL cyan, BR amber */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Crect x='6' y='6' width='50' height='50' rx='6' fill='%2300CFEA'/%3E%3Crect x='64' y='6' width='50' height='50' rx='6' fill='%2300CFEA'/%3E%3Crect x='6' y='64' width='50' height='50' rx='6' fill='%2300CFEA'/%3E%3Crect x='64' y='64' width='50' height='50' rx='6' fill='%23FF8A1A'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.22) 2px 4px);
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: 100% 280%, 42px 42px, 100% 100%;
  background-position: 0 -60%, 50% -20%, 0 0; }
.ms-wipe.go { animation: msWipe 0.5s cubic-bezier(.2,1.5,.4,1) forwards; }
/* impact flash + amber inset punch via pseudo (compositor-only) */
.ms-wipe.go::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  will-change: opacity; opacity: 0;
  box-shadow: inset 0 0 80px var(--amber, #FF8A1A);
  animation: msWipeFlash 0.5s ease-out forwards;
}
@keyframes msWipe {
  /* glyph: small + high + invisible → slams to center full-size (flash) → punch through bottom */
  0%   { opacity: 0; background-position: 0 -60%, 50% -30%, 0 0; background-size: 100% 280%, 22px 22px, 100% 100%; filter: brightness(1); }
  12%  { opacity: 1; }
  55%  { opacity: 1; background-position: 0 50%, 50% 50%, 0 0;  background-size: 100% 280%, 220px 220px, 100% 100%; filter: brightness(2); }
  56%  { filter: brightness(1); }
  100% { opacity: 0; background-position: 0 160%, 50% 140%, 0 0; background-size: 100% 280%, 260px 260px, 100% 100%; filter: brightness(1); }
}
@keyframes msWipeFlash {
  0%, 50% { opacity: 0; }
  55%     { opacity: 1; }
  100%    { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-reticle, .ms-wipe { display: none !important; }
  .con-inner { transition: none; }
  .ms-cursor-fine, .ms-cursor-fine * { cursor: auto !important; }
}

/* ── VIRAL: challenge banner + toasts + challenge button (Phase 1) ─────────── */
/* Persistent "?challenge" banner — bottom-center, clear of the HUD top bar, the
   radio/guide fabs (bottom-left) and the rain top-up banner (bottom:104px). */
#challengeBanner { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 149;
  max-width: min(92vw, 620px); padding: 8px 18px; border-radius: 999px; text-align: center;
  font: 700 12.5px "JetBrains Mono", monospace; letter-spacing: 0.04em; color: #FFD9AD;
  background: rgba(11, 17, 24, 0.92); border: 1px solid var(--amber, #FF8A1A);
  box-shadow: 0 0 18px rgba(255, 138, 26, 0.35); pointer-events: none; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
/* Toasts — top-center, below the HUD top strip. */
#msToasts { position: fixed; top: 86px; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.ms-toast { padding: 10px 18px; border-radius: 10px; max-width: min(92vw, 540px); text-align: center;
  font: 700 13px "JetBrains Mono", monospace; color: #EAF6FF;
  background: rgba(11, 17, 24, 0.94); border: 1px solid var(--cyan, #00CFEA);
  box-shadow: 0 0 20px rgba(0, 207, 234, 0.35); animation: msToastIn 0.25s ease-out; }
.ms-toast.out { opacity: 0; transform: translateY(-8px); transition: opacity 0.35s, transform 0.35s; }
@keyframes msToastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ms-toast { animation: none; } }
/* Game-over button row now holds 4 buttons — let it wrap; amber accent on the duel CTA. */
.go-panel .row { flex-wrap: wrap; }
#goChallenge { border-color: var(--amber, #FF8A1A); color: var(--amber, #FF8A1A); }
#goChallenge:hover { box-shadow: 0 0 16px rgba(255, 138, 26, 0.4); color: #FFD9AD; }

/* ── DAILY POT (Phase 2) — menu counters + opt-in RANKED entry button ───────── */
.pot-box { margin: 10px 0 4px; padding: 10px 12px; border: 1px solid rgba(255, 138, 26, 0.45); border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 138, 26, 0.08), rgba(0, 207, 234, 0.05));
  box-shadow: inset 0 0 14px rgba(255, 138, 26, 0.10); }
.pot-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pot-k { font: 700 11px/1.7 "JetBrains Mono", monospace; letter-spacing: 0.12em; color: #EAF6FF; opacity: 0.9; }
.pot-v { font-family: var(--display, Orbitron), "JetBrains Mono", monospace; font-weight: 800; font-size: 18px; line-height: 1.35; }
.pot-amber { color: var(--amber, #FF8A1A); text-shadow: 0 0 10px rgba(255, 138, 26, 0.55); }
.pot-cyan { color: var(--cyan, #00CFEA); text-shadow: 0 0 10px rgba(0, 207, 234, 0.5); }
.pot-sub { font: 500 10px/1.5 "JetBrains Mono", monospace; color: rgba(199, 209, 219, 0.65); margin-top: 4px; }
.pot-warn { color: var(--amber, #FF8A1A); }
.pot-btn { width: 100%; margin-top: 8px; padding: 10px 12px; border: none; border-radius: 8px; cursor: pointer;
  font: 800 12px/1.2 "JetBrains Mono", monospace; letter-spacing: 0.08em; color: #1a0e02;
  background: linear-gradient(180deg, var(--amber, #FF8A1A), #e0780f); box-shadow: 0 0 14px rgba(255, 138, 26, 0.35); }
.pot-btn:hover { filter: brightness(1.1); }
.pot-btn:disabled { opacity: 0.6; cursor: default; }
/* FREE-CHOICE ranked-pot stake: terms disclosure + amount input row */
.pot-terms { font: 600 10px/1.5 "JetBrains Mono", monospace; color: #FFD24D; margin-top: 8px;
  background: rgba(255,176,0,0.08); border: 1px solid rgba(255,176,0,0.4); border-radius: 8px; padding: 8px 10px; }
.pot-stake { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pot-amt { flex: 1 1 auto; min-width: 0; font: 700 14px "JetBrains Mono", monospace; text-align: right; color: #EAF6FF;
  background: rgba(4,6,14,0.7); border: 1px solid rgba(0,207,234,0.35); border-radius: 8px; padding: 9px 10px; }
.pot-amt:focus { outline: none; border-color: var(--cyan, #00CFEA); box-shadow: 0 0 10px rgba(0,207,234,0.3); }
.pot-amt-u { font: 700 11px "JetBrains Mono", monospace; color: var(--txt-dim, #6B7280); flex: 0 0 auto; }
.pot-stake .pot-btn { width: auto; margin-top: 0; flex: 0 0 auto; padding: 10px 16px; }
.pot-entered { margin-top: 8px; text-align: center; font: 800 12px/1.5 "JetBrains Mono", monospace;
  color: var(--cyan, #00CFEA); text-shadow: 0 0 10px rgba(0, 207, 234, 0.5); }
.pot-mark { color: var(--amber, #FF8A1A); font-size: 11px; }

/* ── GHOST + STREAK (Phase 4) — streak chip + leader-ghost opt-out toggle ───── */
.streak-chip { margin: 4px 0 0; align-self: flex-start; padding: 4px 10px; border: 1px solid rgba(255, 138, 26, 0.45); border-radius: 999px;
  font: 800 11px/1.5 "JetBrains Mono", monospace; letter-spacing: 0.06em;
  color: var(--amber, #FF8A1A); text-shadow: 0 0 10px rgba(255, 138, 26, 0.45);
  background: rgba(255, 138, 26, 0.07); box-shadow: inset 0 0 10px rgba(255, 138, 26, 0.08); }
.ghost-opt { margin: 4px 0 0; font: 500 11px/1.6 "JetBrains Mono", monospace; color: rgba(199, 209, 219, 0.75); }
.ghost-opt label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.ghost-opt input { accent-color: var(--cyan, #00CFEA); }
.ghost-opt span { text-shadow: 0 0 8px rgba(0, 207, 234, 0.25); }

/* ── HANGAR (Phase 3) — ship-skin selector (skins = 1Sat ordinals) ──────────── */
.hangar { margin: 2px 0 10px; padding: 9px 10px 10px; border: 1px solid rgba(0, 207, 234, 0.25); border-radius: 11px;
  background: linear-gradient(180deg, rgba(0, 207, 234, 0.05), rgba(11, 17, 24, 0.5)); }
.hangar-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font: 800 11px "JetBrains Mono", monospace; letter-spacing: 0.1em; color: var(--amber, #FF8A1A); margin-bottom: 7px; }
.hangar-sel { font: 700 10px "JetBrains Mono", monospace; letter-spacing: 0.06em; color: var(--cyan, #00CFEA); }
.hangar-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.hg-slot { position: relative; flex: 0 0 auto; width: 58px; padding: 7px 4px 5px; border-radius: 9px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
  background: rgba(4, 6, 14, 0.6); border: 1px solid rgba(0, 207, 234, 0.22); transition: all 0.15s; }
.hg-slot:hover { border-color: var(--cyan, #00CFEA); }
.hg-slot.active { border-color: var(--amber, #FF8A1A); box-shadow: 0 0 12px rgba(255, 138, 26, 0.4), inset 0 0 8px rgba(255, 138, 26, 0.12); }
.hg-ship { font-size: 20px; line-height: 1.1; filter: drop-shadow(0 0 6px currentColor); }
.hg-name { font: 700 7.5px/1.2 "JetBrains Mono", monospace; letter-spacing: 0.04em; color: #C7D1DB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hg-tier { font: 800 7px/1 "JetBrains Mono", monospace; letter-spacing: 0.1em; border-radius: 4px; padding: 2px 4px; }
.hg-tier.common { color: #9fb3c8; background: rgba(159, 179, 200, 0.14); }
.hg-tier.rare { color: #B39DFF; background: rgba(106, 92, 255, 0.18); }
.hg-tier.legendary { color: #FFD24D; background: rgba(255, 176, 0, 0.16); }
.hg-slot.locked { cursor: not-allowed; }
.hg-slot.locked .hg-ship { filter: grayscale(1) brightness(0.55); }
.hg-slot.locked .hg-name { color: #6B7280; }
.hg-lock { position: absolute; top: 3px; right: 4px; font-size: 10px; line-height: 1; opacity: 0.9; }
.hg-preview { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); font: 800 7px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.08em; color: #04060e; background: var(--cyan, #00CFEA); border-radius: 4px; padding: 2px 4px;
  box-shadow: 0 0 8px rgba(0, 207, 234, 0.6); }
.hangar-perk { font: 500 9.5px/1.4 "JetBrains Mono", monospace; color: rgba(199, 209, 219, 0.65); margin-top: 6px; }

/* REROLL (skin perk) — under the level-up cards */
.reroll-row { margin-top: 12px; min-height: 0; }
.reroll-row:empty { display: none; }
.reroll-btn { font: 800 12px "JetBrains Mono", monospace; letter-spacing: 0.08em; padding: 9px 18px; cursor: pointer;
  color: var(--lila, #6A5CFF); background: rgba(106, 92, 255, 0.1); border: 1px solid var(--lila, #6A5CFF); border-radius: 9px;
  box-shadow: 0 0 12px rgba(106, 92, 255, 0.25); transition: all 0.15s; }
.reroll-btn:hover { background: rgba(106, 92, 255, 0.22); color: #B39DFF; }

/* ── HANGAR ship thumbs (models/<id>.webp; ⏶ glyph is the 404 fallback) ────── */
.hg-img { display: block; width: 100%; height: 42px; object-fit: cover; border-radius: 6px; margin: 0 0 3px; background: #0A0F16; }
.hg-slot.has-img .hg-ship { display: none; }
.hg-slot.locked .hg-img { filter: grayscale(1) brightness(0.5); }
.hg-slot.active .hg-img { box-shadow: 0 0 8px rgba(255, 138, 26, 0.35); }

/* ── SHIP FOUNDRY (Phase 5) — price band on locked minteable slots + confirm ── */
.hg-price { display: block; width: calc(100% + 8px); margin: 1px -4px -5px; padding: 3px 0 4px;
  font: 800 7.5px/1 "JetBrains Mono", monospace; letter-spacing: 0.08em; text-align: center;
  color: #04060e; background: var(--amber, #FF8A1A); border-radius: 0 0 8px 8px; }
.hg-slot.locked:has(.hg-price:not(.auction):not(.out)) { cursor: pointer; }
.hg-price.auction { color: #FFD24D; background: rgba(255, 176, 0, 0.16); }
.hg-price.out { color: #6B7280; background: rgba(107, 114, 128, 0.18); }
/* HandCash titularidad band under the price on a locked minteable slot. */
.hg-hc { display: block; width: calc(100% + 8px); margin: 0 -4px -5px; padding: 2px 0 3px;
  font: 800 6.5px/1 "JetBrains Mono", monospace; letter-spacing: 0.06em; text-align: center;
  color: #04060e; background: #45E0C8; border-radius: 0 0 8px 8px; }
/* CLAIM AS ORDINAL band on an unlocked, HandCash-entitled ship (clickable). */
.hg-claim { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); cursor: pointer;
  font: 800 6.5px/1 "JetBrains Mono", monospace; letter-spacing: 0.04em; white-space: nowrap;
  color: #04060e; background: #45E0C8; padding: 2px 5px; border-radius: 5px; }
.hg-claim:hover { filter: brightness(1.12); }
.mint-hc { background: #45E0C8; color: #04060e; }
.mint-hc-note { color: #8fe9dc; font-size: 9px; }
#mintPanel { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(4, 6, 14, 0.78); backdrop-filter: blur(3px); }
.mint-box { width: min(340px, calc(100vw - 36px)); padding: 18px 18px 14px; border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, rgba(0, 207, 234, 0.06), rgba(11, 17, 24, 0.96));
  border: 1px solid var(--amber, #FF8A1A); box-shadow: 0 0 30px rgba(255, 138, 26, 0.25); }
.mint-eyebrow { font: 800 10px "JetBrains Mono", monospace; letter-spacing: 0.16em; color: var(--amber, #FF8A1A); }
.mint-ship { font: 900 20px Orbitron, "JetBrains Mono", monospace; letter-spacing: 0.06em; margin: 7px 0 2px;
  filter: drop-shadow(0 0 8px currentColor); }
.mint-perks { font: 600 9.5px/1.4 "JetBrains Mono", monospace; color: rgba(199, 209, 219, 0.8); }
.mint-supply { font: 800 11px "JetBrains Mono", monospace; color: var(--cyan, #00CFEA); margin: 7px 0 2px; }
.mint-note { font: 500 9.5px/1.5 "JetBrains Mono", monospace; color: rgba(199, 209, 219, 0.6); margin: 6px 0; }
.mint-note.mint-pend { color: var(--cyan, #00CFEA); }
.mint-note.mint-warn { color: var(--amber, #FF8A1A); }
.mint-status { font: 700 10px/1.5 "JetBrains Mono", monospace; color: var(--amber, #FF8A1A); margin: 8px 0;
  animation: mintPulse 1.2s ease-in-out infinite; }
@keyframes mintPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.mint-go { display: block; width: 100%; margin: 10px 0 6px; padding: 12px 10px; cursor: pointer; border-radius: 10px;
  font: 800 13px "JetBrains Mono", monospace; letter-spacing: 0.08em; color: #04060e;
  background: var(--amber, #FF8A1A); border: 1px solid var(--amber, #FF8A1A);
  box-shadow: 0 0 16px rgba(255, 138, 26, 0.45); transition: all 0.15s; }
.mint-go:hover { filter: brightness(1.12); }
.mint-cancel { display: block; width: 100%; padding: 8px 10px; cursor: pointer; border-radius: 9px;
  font: 700 10px "JetBrains Mono", monospace; letter-spacing: 0.08em; color: rgba(199, 209, 219, 0.7);
  background: transparent; border: 1px solid rgba(199, 209, 219, 0.25); }
.mint-cancel:hover { color: #EAF6FF; border-color: rgba(199, 209, 219, 0.5); }

/* ── wallet panel auto-sync note (balance refreshes itself while open) ──────── */
.w-sync { font: 500 9.5px/1.35 "JetBrains Mono", monospace; color: rgba(0, 207, 234, 0.55); margin-top: 4px; letter-spacing: 0.02em; }

/* ── DAILY POT monthly prize: the 1/1 fox NFT, framed as the hook ──────────── */
.pot-prize { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; padding: 8px; border: 1px solid rgba(255, 138, 26, 0.35); border-radius: 10px; background: linear-gradient(180deg, rgba(255,138,26,0.08), rgba(0,207,234,0.05)); }
.pot-prize-img { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 8px; image-rendering: pixelated; border: 1px solid rgba(0,207,234,0.4); box-shadow: 0 0 10px rgba(255,138,26,0.25); }
.pot-prize-txt { font: 500 10.5px/1.35 "JetBrains Mono", monospace; color: #C7D1DB; }
.pot-prize-txt b { color: var(--amber, #FF8A1A); }

/* ── WIDE (16:9 desktop) console: the whole fleet visible, no hangar scroll ──
   940px left the action column ~426px; 7 slots need ~442px. On true widescreen
   we open the panel up and give the action column the extra room. */
@media (min-width: 1160px) {
  .panel.console { width: min(1220px, 94vw); }
  .con-grid { grid-template-columns: 1fr 1.18fr; }
  /* the fleet fills the row edge-to-edge — no dead space after GENESIS */
  .hangar-row { gap: 8px; }
  .hg-slot { flex: 1 1 0; width: auto; min-width: 58px; max-width: 96px; }
  .hg-img { height: 52px; }
}
