/* Leonida after dark: night violet, vice pink, liquid mint, wanted-star gold, her blue. */
:root {
  --bg: #14081f;
  --bg-2: #1d0c2e;
  --panel: rgba(36, 16, 58, 0.78);
  --line: rgba(255, 150, 220, 0.16);
  --line-strong: rgba(255, 150, 220, 0.36);
  --text: #fff4fb;
  --muted: #c9b2d8;
  --pink: #ff3f9b;
  --mint: #5ef2c8;
  --gold: #ffd23f;
  --blue: #4f8fe6;
  --red: #ff3e6c;
  --ink: #14081f;
  --f-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --f-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--f-body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font: 400 clamp(2.4rem, 1.6rem + 3.5vw, 4.6rem)/0.95 var(--f-display); letter-spacing: 0.01em; text-transform: uppercase; }
p { margin: 0; }
.small { font-size: 0.85rem; color: var(--muted); }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 700 0.78rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.chip { color: var(--ink); background: var(--mint); padding: 4px 8px; border-radius: 6px; letter-spacing: 0.04em; }
.section-lead { max-width: 62ch; color: var(--muted); margin-top: 14px; font-size: 1.1rem; }
.stars-svg { display: inline-flex; gap: 3px; }
.stars-svg svg { width: 1em; height: 1em; fill: rgba(255, 255, 255, 0.14); stroke: rgba(0, 0, 0, 0.6); stroke-width: 1.2; }
.stars-svg svg.on { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(255, 210, 63, 0.7)); }

/* live news bar */
.newsbar { display: flex; align-items: center; gap: 0; height: 34px; background: #0b0512; border-bottom: 1px solid var(--line); font: 700 0.78rem/1 var(--f-mono); overflow: hidden; }
.newsbar-tag { flex: none; height: 100%; display: grid; place-items: center; padding: 0 12px 0 var(--gl); background: var(--pink); color: #fff; letter-spacing: 0.12em; }
.newsbar-track { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent); }
.newsbar-run { display: inline-flex; gap: 34px; padding-left: 20px; white-space: nowrap; animation: news 40s linear infinite; }
.newsbar-run span { color: var(--muted); }
.newsbar-run b { color: var(--text); font-weight: 700; }
.newsbar-run .up { color: var(--mint); }
.newsbar-run .down { color: var(--red); }
@keyframes news { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 12px var(--gr) 12px var(--gl); background: rgba(20, 8, 31, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.35rem/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.02em; }
.brand img { width: 36px; height: 36px; }
.links { display: flex; gap: 20px; margin-left: auto; }
.links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.links a:hover { color: var(--text); }
@media (max-width: 960px) { .links { display: none; } .nav .btn { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--line-strong); background: rgba(20, 8, 31, 0.5); color: var(--text); text-decoration: none; font: 700 0.98rem/1 var(--f-body); cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s; }
.btn:hover { transform: translateY(-2px); border-color: var(--pink); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn-main { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 0 6px 24px rgba(255, 63, 155, 0.35); }
.btn-main:hover { box-shadow: 0 10px 34px rgba(255, 63, 155, 0.55); }
.btn[aria-disabled="true"] { display: none; }

/* hero */
.hero { position: relative; padding-block: 34px 60px; background: radial-gradient(ellipse at 75% 30%, rgba(255, 63, 155, 0.2), transparent 55%), radial-gradient(ellipse at 10% 80%, rgba(94, 242, 200, 0.08), transparent 50%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 0; }
h1 { font: 400 clamp(4rem, 2rem + 8vw, 8.6rem)/0.84 var(--f-display); text-transform: uppercase; letter-spacing: 0.005em; }
h1 em { font-style: normal; color: var(--mint); text-shadow: 0 0 40px rgba(94, 242, 200, 0.5); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.ca { display: flex; align-items: center; gap: 12px; width: min(560px, 100%); padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-strong); }
.ca span { font: 700 0.78rem var(--f-mono); color: var(--mint); letter-spacing: 0.1em; }
.ca code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-mono); font-size: 0.9rem; user-select: all; }
.ca button { flex: none; border: 0; border-radius: 999px; padding: 9px 16px; background: var(--text); color: var(--ink); font: 700 0.85rem var(--f-body); cursor: pointer; }
.ca button:disabled { opacity: 0.3; cursor: default; }
.ca-wide { width: min(760px, 100%); margin-top: 26px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.stat span { display: block; font: 700 0.68rem var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; font: 400 clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem)/1.15 var(--f-display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat small { display: block; font: 700 0.8rem var(--f-mono); color: var(--muted); }
.stat small.up { color: var(--mint); }
.stat small.down { color: var(--red); }
.stat-hot { border-color: rgba(255, 210, 63, 0.45); }
.stat .stars-inline .stars-svg { font: 400 1.45rem/1 var(--f-body); letter-spacing: 0; text-transform: none; color: inherit; padding-top: 6px; }
.level { grid-column: 1 / -1; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 6px; }
.level-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.level-top b { font: 400 1.4rem/1 var(--f-display); text-transform: uppercase; }
.level p { color: var(--muted); }
.badge { font: 700 0.65rem/1 var(--f-mono); letter-spacing: 0.14em; padding: 5px 8px; border-radius: 6px; background: rgba(255, 210, 63, 0.16); color: var(--gold); }
body[data-mode="live"] .badge { background: rgba(94, 242, 200, 0.16); color: var(--mint); }
.bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--gold)); transition: width 0.25s; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 3D stage */
.stage-wrap { position: relative; height: clamp(520px, 78vh, 780px); border-radius: 26px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5); background: #d9d6b8; }
#stage { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#stage:active { cursor: grabbing; }
.hud { position: absolute; right: 14px; top: 14px; display: grid; justify-items: end; gap: 4px; pointer-events: none; }
.hud-label { font: 700 0.66rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px #000; }
.hud-stars { font-size: clamp(22px, 2.6vw, 32px); }
.hud-stars svg { stroke: #000; stroke-width: 1.6; fill: rgba(255, 255, 255, 0.28); }
.hud-stars svg.on { fill: #fff; filter: drop-shadow(0 0 2px #000); }
.hud-stars svg.on.blink { animation: starblink 0.5s steps(2) infinite; }
@keyframes starblink { 50% { fill: var(--gold); } }
.quip { position: absolute; left: 50%; top: 22px; transform: translate(-50%, -8px); max-width: min(360px, 70%); padding: 10px 16px; border-radius: 16px; background: var(--text); color: var(--ink); font-weight: 700; text-align: center; opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
.quip.on { opacity: 1; transform: translate(-50%, 0); }
.stage-hint { position: absolute; right: 14px; bottom: 12px; font: 600 0.72rem var(--f-mono); color: #fff; background: rgba(20, 8, 31, 0.6); padding: 6px 10px; border-radius: 99px; pointer-events: none; }

/* simulator */
.sim { margin-top: 28px; padding: 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 16px; }
.sim-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.sim-head h2 { font-size: 1.6rem; }
.sim-head .btn { margin-left: auto; }
.sim-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 7ch; gap: 14px; align-items: center; }
.sim-row label { font: 700 0.75rem var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sim-row output { font: 700 1.1rem var(--f-mono); color: var(--gold); text-align: right; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--pink); height: 28px; }
.sim-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* sections */
.zone { padding-block: clamp(70px, 10vw, 120px); border-top: 1px solid var(--line); }
.ladder { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 8px; }
.ladder button { width: 100%; display: grid; grid-template-columns: 9ch minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(36, 16, 58, 0.45); color: var(--muted); text-align: left; font: inherit; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.ladder button:hover { border-color: var(--pink); }
.lv-mc { font: 700 1rem var(--f-mono); font-variant-numeric: tabular-nums; }
.lv-name b { display: block; font: 400 1.25rem/1.1 var(--f-display); text-transform: uppercase; color: var(--text); }
.lv-name small { font-size: 0.9rem; }
.lv-stars { font-size: 1.05rem; }
.ladder li.reached button { background: rgba(94, 242, 200, 0.06); border-color: rgba(94, 242, 200, 0.28); color: var(--text); }
.ladder li.current button { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 8px 30px rgba(255, 210, 63, 0.15); }
@media (max-width: 560px) { .ladder button { grid-template-columns: minmax(0, 1fr) auto; } .lv-mc { grid-column: 1 / -1; } }
.seen { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; color: var(--muted); font-size: 0.9rem; }
.seen b { font-family: var(--f-mono); color: var(--text); }

/* leverage run */
.run-zone { background: linear-gradient(180deg, transparent, rgba(255, 63, 155, 0.06) 30%, transparent); }
.run-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; margin-top: 34px; align-items: start; }
.run-wrap { position: relative; height: clamp(480px, 72vh, 680px); border-radius: 24px; overflow: hidden; border: 1px solid var(--line-strong); background: #2a0f3d; }
#runCanvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.run-hud { position: absolute; left: 12px; top: 12px; display: grid; gap: 8px; width: min(300px, calc(100% - 24px)); padding: 12px 14px; border-radius: 16px; background: rgba(12, 5, 20, 0.72); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.run-hud span, .run-row span, .run-card > span { display: block; font: 700 0.62rem var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.run-pnl b { font: 400 2.4rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.run-pnl b.up { color: var(--mint); } .run-pnl b.down { color: var(--red); }
.run-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.run-row b { font: 700 0.86rem var(--f-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.run-margin .bar i { background: linear-gradient(90deg, var(--red), var(--gold), var(--mint)); }
.run-spark { width: 100%; height: 48px; }
.run-wanted { position: absolute; right: 14px; top: 14px; font-size: 26px; pointer-events: none; }
.run-wanted svg { stroke: #000; stroke-width: 1.6; fill: rgba(255, 255, 255, 0.25); }
.run-wanted svg.on { fill: #fff; }
.run-panel { position: absolute; inset: 0; margin: auto; width: min(440px, calc(100% - 24px)); height: max-content; max-height: calc(100% - 24px); overflow: auto; padding: 22px; border-radius: 20px; background: rgba(14, 6, 24, 0.9); border: 1px solid var(--line-strong); display: grid; gap: 14px; text-align: center; justify-items: center; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.run-panel h3 { font: 400 2rem/1 var(--f-display); text-transform: uppercase; }
.lev { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.lev button { display: grid; gap: 4px; justify-items: center; padding: 10px 6px; border-radius: 14px; border: 2px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); font: 400 1.5rem/1 var(--f-display); cursor: pointer; }
.lev button .stars-svg { font-size: 0.7rem; }
.lev button[aria-checked="true"] { border-color: var(--gold); background: rgba(255, 210, 63, 0.1); }
.lev button small { font: 700 0.62rem var(--f-mono); color: var(--muted); letter-spacing: 0.04em; }
.run-entry { font: 700 0.85rem var(--f-mono); color: var(--mint); }
.run-verdict { font: 400 clamp(2.8rem, 2rem + 4vw, 4.4rem)/0.9 var(--f-display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--red); text-shadow: 0 4px 0 #000; }
.run-end.win .run-verdict { color: var(--mint); }
.run-quote { font-style: italic; color: var(--muted); font-size: 1.1rem; }
.run-result { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
.run-result b { font: 400 1.5rem/1.1 var(--f-display); }
.run-pad { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 10px; padding: 0 12px; }
.run-pad .btn { min-width: 64px; background: rgba(14, 6, 24, 0.75); }
.run-pad .btn-close { border-color: var(--gold); color: var(--gold); flex: 1; max-width: 200px; }
.run-side { display: grid; gap: 12px; }
.run-card { padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 4px; }
.run-card b { font: 400 1.8rem/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.run-card small { color: var(--muted); font-size: 0.85rem; }
.rules ul { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; font-size: 0.95rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.dot.g { background: var(--mint); } .dot.r { background: var(--red); } .dot.b { background: #2d6bff; } .dot.y { background: var(--gold); }
@media (max-width: 980px) { .run-grid { grid-template-columns: minmax(0, 1fr); } .run-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rules { grid-column: 1 / -1; } }
@media (max-width: 520px) { .run-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .run-pnl b { font-size: 2rem; } .run-spark { display: none; } .run-wrap { height: clamp(520px, 80vh, 640px); } }

/* live perps */
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(94, 242, 200, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(94, 242, 200, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 242, 200, 0); } }
.perp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.perp { padding: 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; min-width: 0; }
.perp span { font: 700 0.68rem var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.perp b { font: 400 clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem)/1.1 var(--f-display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.perp small { font: 700 0.82rem var(--f-mono); color: var(--muted); }
.perp small.up { color: var(--mint); } .perp small.down { color: var(--red); }
.perp-main { grid-column: 1 / -1; border-color: rgba(94, 242, 200, 0.35); }
.perp-main b { font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem); color: var(--mint); }
#pSpark { width: 100%; height: 160px; margin-top: 8px; }
.perp-src { margin-top: 14px; }
@media (max-width: 860px) { .perp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* story */
.story { background: linear-gradient(180deg, transparent, rgba(79, 143, 230, 0.08) 40%, transparent); }
.story-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.portrait { margin-top: 26px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45); max-width: 440px; }
.portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.story-text { display: grid; gap: 18px; font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.facts { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.facts li { display: grid; grid-template-columns: 12ch minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 1rem; }
.facts span { font: 700 0.72rem var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
@media (max-width: 820px) { .story-grid { grid-template-columns: minmax(0, 1fr); } }

.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.how { padding: 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.how > b { font: 700 0.85rem var(--f-mono); color: var(--pink); }
.how h3 { font: 400 1.5rem/1.1 var(--f-display); text-transform: uppercase; }
.how p { color: var(--muted); }
.formula { font: 700 0.95rem/1.5 var(--f-mono); color: var(--gold) !important; padding: 10px 12px; border-radius: 10px; background: rgba(255, 210, 63, 0.08); overflow-wrap: anywhere; }
@media (max-width: 860px) { .how-grid { grid-template-columns: minmax(0, 1fr); } }

.token-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 30px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.token-grid div { display: grid; gap: 6px; padding: 22px 16px 22px 0; }
.token-grid div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.token-grid span { font: 700 0.72rem var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.token-grid b { font: 400 clamp(1.4rem, 1rem + 1.4vw, 2.2rem)/1.1 var(--f-display); overflow-wrap: anywhere; }
@media (max-width: 760px) { .token-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .token-grid div:nth-child(3) { padding-left: 0; border-left: 0; } .token-grid div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 34px 0 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.steps li { counter-increment: s; padding: 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 50%; background: var(--pink); color: #fff; font: 700 1rem var(--f-mono); }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.foot { padding-block: 44px 64px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.foot .wrap { display: grid; gap: 14px; }
.foot p { max-width: 82ch; }
.domain { font-family: var(--f-mono); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 30; transform: translate(-50%, 20px); padding: 14px 20px; border-radius: 16px; background: var(--gold); color: var(--ink); font-weight: 600; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { animation: toast 3.2s ease-out forwards; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 20px); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 10px); } }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stage-wrap { order: -1; height: clamp(460px, 70vh, 620px); }
  h1 { font-size: clamp(3.6rem, 1.5rem + 10vw, 6rem); }
}
@media (max-width: 600px) { .quip { top: 74px; max-width: 86%; } }
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats .stat:first-child { grid-column: 1 / -1; } .sim-row { grid-template-columns: minmax(0, 1fr) 7ch; } .sim-row label { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .bar i, .quip { transition: none; } .toast.on { animation-duration: 0.01s; opacity: 1; } .newsbar-run { animation: none; } .hud-stars svg.on.blink, .live-dot { animation: none; } }
