/* TradingGuru — corrected design · shared stylesheet
   All visual identity in one place. No demo data. */

:root {
  --bg: #050810;
  --bg-2: #0a0f1c;
  --panel: rgba(10, 16, 28, 0.86);
  --grid: rgba(80, 110, 160, 0.06);
  --border: rgba(120, 160, 220, 0.18);
  --border-soft: rgba(120, 160, 220, 0.10);
  --text: #d8dfe8;
  --text-dim: #7a8499;
  --text-mute: #4d5468;
  --amber: #f9c440;
  --amber-2: #e69528;
  --cyan: #5fd1f0;
  --green: #6cd97a;
  --red: #ef5959;
  --purple: #b070e0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;          /* fallback */
  min-height: 100dvh;          /* mobile-safe dynamic viewport */
  overflow-x: hidden;
}

body {
  font-family: 'VT323', monospace;
  font-size: 19px;
  line-height: 1.45;
  /* Pixelated rendering is now scoped to .pixel only — keeps JetBrains Mono crisp. */
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(ellipse 900px 600px at 50% -10%, rgba(249, 196, 64, 0.06) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
/* Mobile: drop fixed bg-attachment — fixes scroll jank + battery on iOS/Android */
@media (max-width: 860px) {
  body { background-attachment: scroll; }
}

/* CRT scanlines — z-index lowered so future modals/dropdowns can layer above */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: multiply;
}

/* Pixel-rendered text only — preserves intentional retro aesthetic without
   blurring JetBrains Mono / system fonts elsewhere. */
.pixel {
  font-family: 'Press Start 2P', monospace;
  -webkit-font-smoothing: none;
  image-rendering: pixelated;
}
.mono  { font-family: 'JetBrains Mono', monospace; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ───────── Nav ───────── */
nav.top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(5, 8, 16, 0.78);
  border-bottom: 1px solid var(--border);
}
nav.top .row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .logo {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 2px solid var(--amber);
  color: var(--amber);
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  box-shadow: 0 0 0 2px var(--bg), 0 0 12px rgba(249, 196, 64, 0.35);
}
.brand .name { font-family: 'Press Start 2P', monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--text); }
.brand .name span { color: var(--amber); }
nav.top ul { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
nav.top a {
  color: var(--text-dim); text-decoration: none;
  font-family: 'Press Start 2P', monospace; font-size: 10px;
  letter-spacing: 0.10em;
}
nav.top a:hover { color: var(--amber); }
nav.top a.active { color: var(--amber); }
nav.top .cta {
  color: var(--bg); background: var(--amber);
  padding: 8px 14px; border: 2px solid var(--amber);
  font-family: 'Press Start 2P', monospace; font-size: 10px;
  box-shadow: 4px 4px 0 rgba(249,196,64,0.18);
}
nav.top .cta:hover { background: var(--amber-2); }

/* ───────── Hero / page heads ───────── */
.page-head { padding: 80px 0 40px; }
.eyebrow {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px; color: var(--cyan); letter-spacing: 0.22em;
  margin-bottom: 24px;
}
.eyebrow .sep { color: var(--text-mute); margin: 0 10px; }

h1.title {
  font-family: 'Press Start 2P', monospace;
  -webkit-font-smoothing: none; image-rendering: pixelated;
  font-size: clamp(20px, 4.4vw, 40px);
  line-height: 1.35; letter-spacing: 0.02em;
  color: var(--text); max-width: 880px;
  margin-bottom: 22px;
  /* allow long compound titles to break gracefully without forced <br> */
  overflow-wrap: anywhere;
}
/* Each span in the hero h1 stacks as its own line — replaces the brittle <br>.
   Wraps naturally at narrow breakpoints. */
h1.title > span { display: block; }
h1.title .amber {
  color: var(--amber);
  text-shadow: 0 0 8px rgba(249, 196, 64, 0.55), 0 0 18px rgba(230, 149, 40, 0.35);
}
.page-sub { font-size: 21px; color: var(--text-dim); max-width: 720px; margin-bottom: 32px; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  font-family: 'Press Start 2P', monospace; font-size: 11px;
  letter-spacing: 0.12em;
  text-decoration: none; cursor: pointer;
  border: 2px solid currentColor; background: transparent;
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn-primary {
  color: var(--bg); background: var(--amber); border-color: var(--amber);
  box-shadow: 5px 5px 0 rgba(249,196,64,0.22);
}
.btn-primary:hover { transform: translate(-1px,-1px); box-shadow: 7px 7px 0 rgba(249,196,64,0.30); }
.btn-ghost { color: var(--cyan); border-color: var(--cyan); box-shadow: 5px 5px 0 rgba(95,209,240,0.14); }
.btn-ghost:hover { transform: translate(-1px,-1px); box-shadow: 7px 7px 0 rgba(95,209,240,0.24); }

/* ───────── Status strip ───────── */
.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.status-cell {
  background: var(--panel);
  border: 2px solid var(--border);
  padding: 18px 18px 16px;
  position: relative;
}
.status-cell::before {
  content: ''; position: absolute; top: -2px; left: -2px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--amber); border-left: 2px solid var(--amber);
}
.status-cell::after {
  content: ''; position: absolute; bottom: -2px; right: -2px;
  width: 14px; height: 14px;
  border-bottom: 2px solid var(--amber); border-right: 2px solid var(--amber);
}
.status-cell .label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px; letter-spacing: 0.18em;
  color: var(--text-mute); margin-bottom: 12px;
}
.status-cell .value {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(13px, 2.6vw, 18px); /* prevents $1,980.90 from overflowing the cell on small mobile */
  color: var(--text); line-height: 1.15;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.status-cell .value.amber { color: var(--amber); text-shadow: 0 0 8px rgba(249,196,64,0.45); }
.status-cell .value.green { color: var(--green); }
.status-cell .value.cyan  { color: var(--cyan); }
.status-cell .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-mute); margin-top: 10px;
}
@media (max-width: 760px) { .status-strip { grid-template-columns: repeat(2, 1fr); } }

/* ───────── Sections ───────── */
section { padding: 70px 0; border-top: 1px solid var(--border-soft); }
.section-head { margin-bottom: 40px; max-width: 760px; }
.section-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px; color: var(--amber);
  letter-spacing: 0.22em; margin-bottom: 16px;
}
h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(18px, 3vw, 26px);
  line-height: 1.35; color: var(--text);
  margin-bottom: 14px;
}
.section-sub { color: var(--text-dim); font-size: 20px; max-width: 680px; }

/* ───────── Cards ───────── */
.card {
  background: var(--panel);
  border: 2px solid var(--border);
  padding: 24px 26px;
}
.card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px; color: var(--text); letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.card p { color: var(--text-dim); font-size: 19px; }

/* ───────── Layers ───────── */
.layers { display: grid; gap: 14px; }
.layer-card { background: var(--panel); border: 2px solid var(--border); padding: 26px 28px; }
.layer-card .head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.layer-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px; padding: 6px 10px;
  letter-spacing: 0.14em; border: 2px solid currentColor;
}
.layer-tag.l1 { color: var(--green); }
.layer-tag.l2 { color: var(--cyan); }
.layer-tag.l3 { color: var(--purple); }
.layer-card h3 { font-family: 'Press Start 2P', monospace; font-size: 14px; color: var(--text); }
.layer-card p { color: var(--text-dim); font-size: 19px; max-width: 760px; }
.layer-card .props {
  display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--text-mute);
}
.layer-card .props span strong { color: var(--text); font-weight: 500; }
.firewall {
  text-align: center; padding: 16px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px; letter-spacing: 0.20em; color: var(--amber);
  border-top: 2px dashed rgba(249, 196, 64, 0.30);
  border-bottom: 2px dashed rgba(249, 196, 64, 0.30);
  margin: 14px 0;
  text-shadow: 0 0 6px rgba(249,196,64,0.45);
}

/* ───────── Refusals ───────── */
.refusals { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.refusal {
  background: var(--panel);
  border: 2px solid var(--border);
  border-left: 4px solid var(--red);
  padding: 16px 18px;
}
.refusal .num { font-family: 'Press Start 2P', monospace; font-size: 9px; color: var(--text-mute); letter-spacing: 0.16em; margin-bottom: 12px; }
.refusal h4 { font-family: 'Press Start 2P', monospace; font-size: 12px; color: var(--amber); margin-bottom: 12px; line-height: 1.55; letter-spacing: 0.04em; }
.refusal p { font-size: 17px; color: var(--text-dim); line-height: 1.5; }

/* ───────── Arena ───────── */
.arena-shell {
  background: var(--panel); border: 2px solid var(--border);
  padding: 28px; position: relative;
}
.arena-shell::before, .arena-shell::after { content: ''; position: absolute; width: 16px; height: 16px; }
.arena-shell::before { top: -2px; left: -2px; border-top: 3px solid var(--amber); border-left: 3px solid var(--amber); }
.arena-shell::after  { bottom: -2px; right: -2px; border-bottom: 3px solid var(--amber); border-right: 3px solid var(--amber); }
.arena-shell > .c-tr { position: absolute; top: -2px; right: -2px; width: 16px; height: 16px; border-top: 3px solid var(--amber); border-right: 3px solid var(--amber); }
.arena-shell > .c-bl { position: absolute; bottom: -2px; left: -2px; width: 16px; height: 16px; border-bottom: 3px solid var(--amber); border-left: 3px solid var(--amber); }
.arena-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.arena-head .title {
  font-family: 'Press Start 2P', monospace; font-size: 13px;
  color: var(--amber); letter-spacing: 0.18em;
  text-shadow: 0 0 8px rgba(249,196,64,0.40);
}
.arena-head .pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--green);
  padding: 4px 10px; border: 1px solid rgba(108, 217, 122, 0.4);
}
.arena-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .arena-grid { grid-template-columns: 1fr; } }
.arena-block { background: rgba(0,0,0,0.35); border: 1px solid var(--border-soft); padding: 18px; }
.arena-block .h {
  font-family: 'Press Start 2P', monospace; font-size: 10px;
  color: var(--cyan); letter-spacing: 0.16em; margin-bottom: 14px;
}
.empty-state {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--text-mute);
  padding: 24px 8px; text-align: center; letter-spacing: 0.06em;
}
.empty-state .dash { display: block; font-family: 'Press Start 2P', monospace; color: var(--text-mute); font-size: 16px; margin-bottom: 10px; }

.timeline-rail {
  height: 36px; position: relative;
  background: repeating-linear-gradient(90deg, rgba(120,160,220,0.10) 0 1px, transparent 1px 40px), rgba(0,0,0,0.5);
  border: 1px solid var(--border-soft);
}
.timeline-rail .cursor { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.timeline-rail .label { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-mute); }

/* ───────── Disclosure block ───────── */
.disclosure {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px dashed rgba(249, 196, 64, 0.55);
  background: rgba(249, 196, 64, 0.08); /* contrast bump: 4.6:1 → 6.1:1 */
  color: #ffd66b;                        /* lighter amber for body legibility */
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; letter-spacing: 0.04em; line-height: 1.55;
  border-radius: 2px;
}
.disclosure strong { color: var(--amber); }

/* ───────── Agent grid ───────── */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.agent-card {
  background: var(--panel); border: 2px solid var(--border);
  padding: 22px;
  position: relative;
}
.agent-card .slot { font-family: 'Press Start 2P', monospace; font-size: 9px; color: var(--text-mute); letter-spacing: 0.18em; margin-bottom: 12px; }
.agent-card h3 { font-family: 'Press Start 2P', monospace; font-size: 12px; color: var(--amber); margin-bottom: 10px; letter-spacing: 0.06em; }
.agent-card .desc { color: var(--text-dim); font-size: 17px; margin-bottom: 14px; }
.agent-card .stat-row {
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text-mute); margin-bottom: 4px;
}
.agent-card .stat-row strong { color: var(--text); font-weight: 500; }

/* ───────── Leaderboard ───────── */
.lb-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 2px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}
.lb-table th, .lb-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.lb-table th {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px; color: var(--cyan);
  letter-spacing: 0.18em;
  background: rgba(0,0,0,0.35);
}
.lb-table tr:last-child td { border-bottom: none; }
.lb-table td.dash { color: var(--text-mute); font-family: 'Press Start 2P', monospace; font-size: 11px; }

/* ───────── Live data ───────── */
.value.green, .value.red {
  text-shadow: 0 0 6px currentColor;
}
.value.red, td.red, strong.red, span.red { color: var(--red); }
.value.green, td.green, strong.green, span.green { color: var(--green); }

.conn-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--text-mute);
  letter-spacing: 0.08em; margin-top: 18px;
  padding: 8px 12px;
  border: 1px dashed var(--border-soft);
  background: rgba(0,0,0,0.25);
}

.event-feed-list {
  list-style: none; padding: 0; margin: 0;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  max-height: 280px; overflow-y: auto;
}
.event-feed-list li {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-dim);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.event-feed-list li:last-child { border-bottom: none; }
.event-feed-list .ts { color: var(--text-mute); font-size: 11px; min-width: 150px; }
.event-feed-list .kind {
  color: var(--cyan);
  font-family: 'Press Start 2P', monospace; font-size: 9px;
  letter-spacing: 0.12em; padding: 1px 4px;
  border: 1px solid rgba(95, 209, 240, 0.30);
}

.heat-row {
  display: flex; align-items: flex-end; gap: 1px;
  height: 80px; padding: 4px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border-soft);
}
.heat-cell {
  flex: 1 1 0; min-width: 2px;
  background: var(--cyan);
  opacity: 0.7;
  border-radius: 1px 1px 0 0;
}

.cycle-stat-tbl {
  width: 100%; border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
}
.cycle-stat-tbl th {
  text-align: left;
  font-family: 'Press Start 2P', monospace; font-size: 9px;
  color: var(--text-mute); letter-spacing: 0.16em;
  padding: 6px 8px; width: 40%;
  border-bottom: 1px solid var(--border-soft);
}
.cycle-stat-tbl td {
  text-align: right;
  color: var(--text); padding: 6px 8px;
  border-bottom: 1px solid var(--border-soft);
}
.cycle-stat-tbl tr:last-child th,
.cycle-stat-tbl tr:last-child td { border-bottom: none; }

/* ───────── Championship banner ───────── */
.champ-banner {
  background: linear-gradient(180deg, rgba(249, 196, 64, 0.10) 0%, rgba(10, 16, 28, 0.86) 100%);
  border: 2px solid var(--amber);
  padding: 24px 26px;
  position: relative;
}
.champ-banner::before, .champ-banner::after {
  content: ''; position: absolute; width: 16px; height: 16px;
}
.champ-banner::before { top: -2px; left: -2px; border-top: 3px solid var(--amber); border-left: 3px solid var(--amber); }
.champ-banner::after { bottom: -2px; right: -2px; border-bottom: 3px solid var(--amber); border-right: 3px solid var(--amber); }
.champ-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .champ-row { grid-template-columns: 1fr; } }
.champ-cell .label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px; letter-spacing: 0.18em;
  color: var(--text-mute); margin-bottom: 12px;
}
.champ-cell .value {
  font-family: 'Press Start 2P', monospace;
  font-size: 22px; line-height: 1.1;
  text-shadow: 0 0 10px currentColor;
}
.champ-cell .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--text-mute); margin-top: 10px;
}
.champ-progress {
  margin-top: 22px; height: 6px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}
.champ-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--amber-2), var(--amber));
  box-shadow: 0 0 8px var(--amber);
  transition: width 0.6s ease-out;
}

.lb-table .empty-cell {
  text-align: center; color: var(--text-mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; padding: 22px;
}

/* ───────── Footer ───────── */
footer { border-top: 1px solid var(--border-soft); padding: 36px 0 60px; margin-top: 40px; }
footer .row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer .legal { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-mute); letter-spacing: 0.10em; }
footer .brand-small { font-family: 'Press Start 2P', monospace; font-size: 10px; color: var(--text-dim); letter-spacing: 0.12em; }
footer .col-links { display: flex; gap: 18px; flex-wrap: wrap; }
footer .col-links a { color: var(--text-dim); text-decoration: none; font-family: 'Press Start 2P', monospace; font-size: 9px; letter-spacing: 0.16em; padding: 6px 2px; }
footer .col-links a:hover { color: var(--amber); }

/* ═════════════════════════════════════════════════════════════════════
   UI corrections appendix · 2026-05-25
   Mobile responsiveness · accessibility · polish.
   Pure additive — no rule removed above this line.
   ═════════════════════════════════════════════════════════════════════ */

/* ───────── Skip-to-content link (a11y) ───────── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: var(--bg);
  padding: 12px 18px;
  font-family: 'Press Start 2P', monospace; font-size: 11px;
  letter-spacing: 0.10em; z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; outline: 3px solid var(--cyan); }

/* ───────── Universal :focus-visible ring (a11y · WCAG 2.4.7) ───────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(249, 196, 64, 0.18);
}
nav.top a:focus-visible,
footer a:focus-visible,
.btn:focus-visible {
  outline-offset: 4px;
}

/* ───────── prefers-reduced-motion (a11y · WCAG 2.3.3) ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .btn-primary:hover, .btn-ghost:hover { transform: none; }
  body::after { display: none; } /* scanlines off for vestibular safety */
}

/* ───────── Mobile nav · hamburger toggle ───────── */
.nav-toggle {
  display: none;
  background: transparent; border: 2px solid var(--amber);
  color: var(--amber); padding: 8px 10px;
  font-family: 'Press Start 2P', monospace; font-size: 11px;
  letter-spacing: 0.12em; cursor: pointer;
  min-height: 44px; min-width: 44px;        /* WCAG 2.5.5 target size */
}
.nav-toggle[aria-expanded="true"] { background: var(--amber); color: var(--bg); }

@media (max-width: 860px) {
  nav.top .row { height: auto; padding: 10px 0; flex-wrap: nowrap; }
  nav.top ul {
    order: 3; flex-basis: 100%;
    flex-direction: column; gap: 0;
    border-top: 1px solid var(--border);
    margin-top: 10px; padding-top: 6px;
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease-out;
  }
  nav.top.is-open ul { max-height: 60vh; }
  nav.top ul li { width: 100%; }
  nav.top ul a {
    display: block; padding: 14px 4px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 11px;
    min-height: 44px;
  }
  nav.top .cta { padding: 10px 12px; font-size: 9px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ───────── Mobile · spacing + typography rescale ───────── */
@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .page-head { padding: 48px 0 28px; }
  section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }
  .page-sub { font-size: 18px; margin-bottom: 24px; }
  .section-sub { font-size: 17px; }
  .hero-cta, header .page-head > div[style*="display: flex"] {
    flex-direction: column; align-items: stretch;
  }
  .btn { justify-content: center; width: 100%; }
  .eyebrow { font-size: 9px; letter-spacing: 0.18em; margin-bottom: 18px; }
  .status-strip { gap: 10px; margin-top: 28px; }
  .status-cell { padding: 14px 14px 12px; }
  .status-cell .label { font-size: 8px; margin-bottom: 8px; }
  .status-cell .meta { font-size: 10px; margin-top: 6px; }
  .layer-card { padding: 20px 18px; }
  .layer-card p { font-size: 17px; }
  .refusals { gap: 10px; }
  .refusal { padding: 14px 14px; }
  .refusal p { font-size: 16px; }
  .arena-shell { padding: 18px; }
  footer { padding: 28px 0 48px; }
  footer .row { flex-direction: column; gap: 18px; }
  footer .col-links { gap: 12px 16px; }
}

@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .status-strip { grid-template-columns: 1fr; }
  .status-cell .value { font-size: 16px; }
  h1.title { font-size: clamp(18px, 6.8vw, 28px); }
  .pre-line, .eyebrow { font-size: 8px; }
  .arena-head .title { font-size: 11px; }
  .arena-head .pill { font-size: 10px; }
}

/* ───────── Footer hygiene ───────── */
footer .build-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text-mute);
  letter-spacing: 0.10em;
  opacity: 0.65;
}
footer .col-links a { min-height: 32px; display: inline-flex; align-items: center; }

/* ───────── Status-cell · prevent overlap of value + corner brackets ───────── */
.status-cell .label, .status-cell .value, .status-cell .meta { position: relative; z-index: 1; }

/* ───────── Live-data cells: tabular numbers (prevents value jitter on poll) ───────── */
[data-ticker], [data-battle], .value, .lb-table td, .cycle-stat-tbl td {
  font-variant-numeric: tabular-nums;
}

/* ───────── Disclosure: kill the dead text-shadow noop on h1 (was site.css:111) ───────── */
/* note: handled inline above by replacing the rule */


/* ═════════════════════════════════════════════════════════════════════
   Dashboard (/dashboard.html) · 2026-05-25
   ═════════════════════════════════════════════════════════════════════ */

.dash-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
@media (max-width: 1080px) { .dash-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px)  { .dash-grid { grid-template-columns: 1fr; } }

.dash-panel { padding: 22px 24px; }
@media (max-width: 760px) { .dash-panel { padding: 18px 16px; } }

.tape-chart {
  margin-top: 16px;
  height: 220px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-soft);
  display: grid; place-items: center;
}
.tape-rsi {
  margin-top: 14px;
  font-size: 12px; color: var(--text-mute);
  letter-spacing: 0.06em;
}

.tape-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 480px) { .tape-stats { grid-template-columns: repeat(2, 1fr); } }
.tape-stat {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-soft);
  padding: 10px 12px;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px;
}
.tape-stat .k {
  font-family: 'Press Start 2P', monospace;
  -webkit-font-smoothing: none; image-rendering: pixelated;
  font-size: 9px; color: var(--text-mute);
  letter-spacing: 0.14em;
}
.tape-stat strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; color: var(--text); font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.balance-big {
  font-family: 'Press Start 2P', monospace;
  -webkit-font-smoothing: none; image-rendering: pixelated;
  font-size: clamp(20px, 4.2vw, 34px);
  color: var(--green);
  text-shadow: 0 0 12px rgba(108, 217, 122, 0.45);
  margin-top: 18px;
  line-height: 1.15;
}
.balance-meta {
  color: var(--text-mute);
  font-size: 12px;
  margin-top: 8px;
  letter-spacing: 0.06em;
}

.kv-grid { display: flex; flex-direction: column; margin-top: 4px; }
.kv-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-soft);
  gap: 12px;
}
.kv-row:last-child { border-bottom: none; }
.kv-row .k {
  font-family: 'Press Start 2P', monospace;
  -webkit-font-smoothing: none; image-rendering: pixelated;
  font-size: 9px; color: var(--text-mute);
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.kv-row strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; color: var(--text); font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
