:root {
  --bg: #020812;
  --panel: rgba(6, 16, 32, 0.66);
  --panel-2: rgba(8, 20, 40, 0.86);
  --line: rgba(120, 190, 255, 0.14);
  --line-2: rgba(120, 190, 255, 0.26);
  --text: #eaf4ff;
  --text-2: rgba(234, 244, 255, 0.7);
  --text-3: rgba(234, 244, 255, 0.44);
  --orange: #ff8a1f;
  --amber: #ffb347;
  --blue: #2f7bff;
  --aqua: #3ec9ff;
  --pink: #ff8a1f;
  --cyan: #3ec9ff;
  --purple: #2f7bff;
  --gold: #ffd76a;
  --up: #3ec9ff;
  --down: #ff4f7b;
  --accent: var(--pink);
  --display: Unbounded, 'Inter', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ui: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.9, 0.25, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--ui); font-size: 14px; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.ic { flex: none; display: block; }
.muted { color: var(--text-2); }
.small { font-size: 12px; }
.up { color: var(--up) !important; }
.down { color: var(--down) !important; }
.mono { font-family: var(--mono); }
::selection { background: rgba(255, 138, 31, 0.35); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(120, 190, 255, 0.2); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
body.site #scene { cursor: grab; }
body.site #scene:active { cursor: grabbing; }
body.ready #scene { cursor: pointer; }

/* ─── Loader ─────────────────────────────────────── */
#loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; padding: 0 16px 9vh; background: radial-gradient(ellipse at 50% 120%, rgba(2, 8, 18, 0.2), rgba(2, 8, 18, 0.55) 60%); transition: opacity 1s var(--ease), visibility 1s; pointer-events: none; }
body.booting #loader { background: radial-gradient(ellipse at 50% 60%, #0a2240 0%, #020812 65%); place-items: center; padding-bottom: 0; }
#loader.gone { opacity: 0; visibility: hidden; }
.loader-card { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 34px 24px; border-radius: 26px; background: rgba(4, 14, 28, 0.42); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 30px 80px -30px #000, inset 0 1px 0 rgba(255, 255, 255, 0.06); animation: rise 0.9s var(--ease) both; }
body.booting .loader-card { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }
.loader-logo, .cine-brand, .brand-logo { font-family: var(--display); font-weight: 900; letter-spacing: 0.04em; color: #fff; }
.loader-logo { font-size: clamp(38px, 8vw, 68px); line-height: 1; text-shadow: 0 0 40px rgba(255, 138, 31, 0.35); }
.loader-logo b, .cine-brand b, .brand-logo b { background: linear-gradient(100deg, var(--orange), var(--amber) 45%, var(--aqua)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.loader-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--text-2); }
.load-bar { width: min(280px, 70vw); height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 8px; }
.load-bar i { display: block; width: 8%; height: 100%; background: linear-gradient(90deg, var(--orange), var(--aqua)); border-radius: 3px; transition: width 0.5s var(--ease); box-shadow: 0 0 12px var(--orange); }
.load-txt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.start-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 6px; animation: rise 0.7s var(--ease) both; }
.dive-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 220px; padding: 16px 34px 13px; border-radius: 18px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: 0.16em; text-transform: uppercase; color: #140800; background: linear-gradient(120deg, #ffb347, #ff8a1f 55%, #ff6a1a); box-shadow: 0 0 0 1px rgba(255, 200, 140, 0.4) inset, 0 18px 50px -12px rgba(255, 138, 31, 0.75), 0 0 80px -20px rgba(255, 138, 31, 0.9); transition: transform 0.25s var(--ease), box-shadow 0.25s; overflow: hidden; }
.dive-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 3.2s 1s infinite; }
.dive-btn small { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; opacity: 0.65; }
.dive-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 0 1px rgba(255, 220, 170, 0.6) inset, 0 24px 60px -12px rgba(255, 138, 31, 0.9), 0 0 100px -16px rgba(255, 138, 31, 1); }
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.link-btn { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-3); padding: 6px 10px; border-radius: 8px; transition: color 0.2s; }
.link-btn:hover, .link-btn.strong { color: var(--aqua); }
.link-btn.strong { border: 1px solid rgba(62, 201, 255, 0.35); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ─── Cinematic layer ────────────────────────────── */
.letterbox i { position: fixed; left: 0; right: 0; height: 9vh; background: #000; z-index: 30; transform: scaleY(0); transition: transform 1.2s var(--ease); pointer-events: none; }
.letterbox i:first-child { top: 0; transform-origin: top; }
.letterbox i:last-child { bottom: 0; transform-origin: bottom; }
body.cinematic .letterbox i { transform: scaleY(1); }
#cine-ui { position: fixed; inset: 0; z-index: 35; pointer-events: none; opacity: 0; transition: opacity 0.8s; }
body.cinematic #cine-ui { opacity: 1; }
.cine-brand { position: absolute; left: 22px; top: calc(4.5vh - 12px); font-size: 17px; }
#intro-ctrl { position: fixed; right: 18px; top: max(14px, calc(4.5vh - 18px)); z-index: 120; display: flex; gap: 8px; transition: opacity 0.5s; }
body.site #intro-ctrl { opacity: 0; pointer-events: none; }
.skip-btn { color: #fff; border-color: rgba(255, 138, 31, 0.45); background: rgba(10, 16, 28, 0.72); font-weight: 700; }
.skip-btn:hover { background: linear-gradient(120deg, var(--amber), var(--orange)); color: #1a0a00; border-color: transparent; }
.state-rail { position: absolute; left: 50%; bottom: calc(4.5vh - 1px); width: min(240px, 50vw); height: 2px; transform: translateX(-50%); border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.state-rail::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--k, 0)); background: linear-gradient(90deg, var(--orange), var(--aqua)); transition: transform 1.2s var(--ease); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; min-width: 36px; padding: 0 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(14px); font-family: var(--mono); font-size: 12px; color: var(--text-2); text-decoration: none; transition: 0.2s; }
.pill:hover { color: #fff; border-color: rgba(255, 138, 31, 0.5); }
.pill.off { color: var(--text-3); }
#caption { position: fixed; left: 50%; bottom: calc(9vh + 28px); z-index: 36; transform: translate(-50%, 10px); max-width: min(680px, 90vw); text-align: center; font-family: var(--display); font-weight: 500; font-size: clamp(15px, 2.1vw, 22px); letter-spacing: 0.02em; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9); opacity: 0; transition: opacity 0.9s, transform 0.9s var(--ease); pointer-events: none; }
#caption.show { opacity: 1; transform: translate(-50%, 0); }
#fade { position: fixed; inset: 0; z-index: 90; background: #01050c; opacity: 0; pointer-events: none; transition: opacity 0.6s; }
#fade.on { opacity: 1; }


/* ─── Toasts ─────────────────────────────────────── */
#toasts { position: fixed; top: 70px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 300; pointer-events: none; }
.toast { --c: var(--cyan); min-width: 220px; max-width: 340px; padding: 11px 14px; border-radius: 14px; background: rgba(5, 16, 32, 0.92); border: 1px solid var(--line-2); border-left: 3px solid var(--c); backdrop-filter: blur(14px); animation: slideIn 0.3s ease; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8); }
.toast b { display: block; font-size: 13px; }
.toast span { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; word-break: break-word; }
.toast.out { opacity: 0; transform: translateX(20px); transition: 0.4s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } }

/* ─── Arena shell ────────────────────────────────── */
#arena { position: fixed; inset: 0; z-index: 20; overflow-y: auto; overflow-x: hidden; opacity: 0; pointer-events: none; transition: opacity 0.9s 0.15s; scrollbar-gutter: stable; }
body.site #arena { opacity: 1; pointer-events: auto; }
body.site #scene { filter: saturate(1.05); }
#arena::before { content: ""; position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(2, 8, 18, 0.25), rgba(2, 8, 18, 0.72) 70%); pointer-events: none; z-index: -1; }
.glass { background: linear-gradient(160deg, rgba(8, 26, 52, 0.62), rgba(4, 12, 26, 0.72)); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.demo-banner { position: relative; z-index: 5; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 7px 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: #1a0620; background: linear-gradient(90deg, var(--pink), var(--purple)); }
.demo-banner button { font-weight: 800; text-decoration: underline; }

.a-top { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(14px, 3vw, 34px); background: rgba(3, 10, 22, 0.72); backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); }
.a-brand { display: flex; align-items: baseline; gap: 10px; }
.a-logo { font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: 0.03em; }
.a-logo b { background: linear-gradient(100deg, var(--pink), var(--purple) 50%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.a-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-3); }
.a-nav { display: flex; align-items: center; gap: 6px; }
.a-nav > button { height: 36px; padding: 0 14px; border-radius: 11px; font-weight: 600; color: var(--text-2); }
.a-nav > button:hover { color: #fff; background: rgba(47, 123, 255, 0.14); }
.a-me { display: flex; align-items: center; gap: 6px; }
.a-user { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px 0 6px; border-radius: 13px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); text-align: left; }
.a-user:hover { border-color: var(--pink); }
.a-user b { display: block; font-size: 13px; }
.a-user small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--cyan); }
.avatar { flex: none; display: block; border-radius: 30%; box-shadow: 0 0 18px -6px rgba(255, 138, 31, 0.6); }

.a-main { width: min(1320px, 100%); margin: 0 auto; padding: 6px clamp(12px, 2.6vw, 30px) 60px; display: flex; flex-direction: column; gap: 16px; }

/* hero: title + countdown */
.a-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(18px, 2.6vw, 30px) clamp(18px, 3vw, 36px); overflow: hidden; position: relative; }
.a-hero::after { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; height: 220%; background: radial-gradient(closest-side, rgba(255, 138, 31, 0.22), transparent); pointer-events: none; }
.a-kicker { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.26em; color: var(--cyan); }
.a-title { margin: 8px 0 12px; font-family: var(--display); font-weight: 900; font-size: clamp(26px, 4.2vw, 50px); line-height: 1.02; letter-spacing: -0.01em; background: linear-gradient(100deg, #fff 30%, #ffd9b0 60%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.a-hero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.pill-round { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; padding: 6px 12px; border-radius: 999px; color: #1a0a00; background: linear-gradient(120deg, var(--pink), var(--purple)); box-shadow: 0 0 24px -6px var(--pink); }
.a-hero-r { position: relative; z-index: 1; text-align: right; }
.a-count-label { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.24em; color: var(--text-2); }
.a-count { font-family: var(--mono); font-weight: 800; font-size: clamp(40px, 7vw, 84px); line-height: 1.05; letter-spacing: 0.02em; color: #fff; text-shadow: 0 0 30px rgba(62, 201, 255, 0.55); font-variant-numeric: tabular-nums; }
.a-count.hot { color: #ffd1f5; text-shadow: 0 0 34px var(--pink); animation: pulse 1s infinite; }
.a-progress { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 8px; }
.a-progress i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink)); transition: transform 0.25s linear; }
@keyframes pulse { 50% { opacity: 0.55; } }

.a-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.a-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--top-h, 63px) + 44px); }
.a-card { padding: 18px; }
.a-h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.1em; }
.a-h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 17px; }
.a-muted { color: var(--text-2); }
.small { font-size: 12px; }
.a-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin: 16px 0 8px; }
.a-disclaimer { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--text-3); }
.a-note { padding: 12px 14px; border-radius: 14px; background: rgba(47, 123, 255, 0.1); border: 1px solid rgba(47, 123, 255, 0.3); color: var(--text-2); font-size: 13px; }
.a-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.a-row.end { justify-content: flex-end; }
.a-row.center { justify-content: center; }
.a-row.full { grid-column: 1 / -1; }
.grow { flex: 1; min-width: 0; }
.up { color: var(--up) !important; }
.down { color: var(--down) !important; }

.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 13px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); color: var(--text); text-decoration: none; transition: 0.18s; white-space: nowrap; }
.a-btn:hover { border-color: var(--pink); }
.a-btn.pri { border: 0; color: #1a0a00; background: linear-gradient(120deg, #ffb347, var(--pink) 45%, var(--purple)); box-shadow: 0 10px 30px -10px rgba(255, 138, 31, 0.8); }
.a-btn.pri:hover { filter: brightness(1.08); transform: translateY(-1px); }
.a-btn.ghost { background: transparent; }
.a-btn.sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 10px; }
.a-btn.lg { height: 50px; padding: 0 22px; font-family: var(--display); font-weight: 800; letter-spacing: 0.08em; font-size: 14px; border-radius: 15px; }
.a-btn.full { width: 100%; }
.a-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; filter: none; }
.a-input { height: 44px; padding: 0 14px; border-radius: 13px; background: rgba(4, 3, 16, 0.6); border: 1px solid var(--line-2); color: #fff; outline: 0; font-size: 14px; min-width: 0; }
.a-input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.2); }
select.a-input { padding-right: 8px; }
.a-form { display: flex; flex-direction: column; gap: 12px; }
.a-error { color: var(--down); font-size: 12.5px; }
.link { color: var(--cyan); font-weight: 600; }
.link:hover { text-decoration: underline; }
.tag { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); color: var(--text-2); vertical-align: middle; }
.tag.live { color: #06212a; background: var(--cyan); }
.chip-chain { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 6px; font-family: var(--mono); font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--purple); background: rgba(47, 123, 255, 0.16); margin-left: 6px; vertical-align: middle; }
.chip-chain[data-chain="solana"] { color: #c79bff; }
.chip-chain[data-chain="base"], .chip-chain[data-chain="ethereum"] { color: #8fb4ff; background: rgba(90, 140, 255, 0.16); }
.chip-chain[data-chain="robinhood"] { color: #ccff00; background: rgba(204, 255, 0, 0.12); }
.chip-chain[data-chain="bsc"] { color: #ffd76a; background: rgba(255, 215, 106, 0.14); }
.tlogo { flex: none; border-radius: 50%; object-fit: cover; background: #0c1a30; display: inline-grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--cyan); vertical-align: middle; }
.a-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 12px; text-align: center; color: var(--text-3); font-size: 13px; }
.a-empty.err { color: var(--down); }
.a-spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--pink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* submit */
.ca-field { display: flex; gap: 8px; }
.ca-field .ca { flex: 1; font-family: var(--mono); font-size: 13px; }
.ca-field .chain { width: 84px; flex: none; }
.call-btn { position: relative; overflow: hidden; }
.call-btn:not(:disabled)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 2.8s infinite; }
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.pv { border-radius: 16px; padding: 12px; background: rgba(4, 3, 16, 0.45); border: 1px solid var(--line); animation: rise 0.3s var(--ease); }
.pv.ok { border-color: rgba(62, 201, 255, 0.4); box-shadow: 0 0 30px -18px var(--cyan); }
.pv.bad { border-color: rgba(255, 79, 123, 0.4); }
.pv-head { display: flex; align-items: center; gap: 11px; }
.pv-head b { display: block; font-size: 15px; }
.pv-head span { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.pv-head em { font-style: normal; color: var(--text-3); margin-left: 4px; }
.pv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pv-grid span, .my-call-grid span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pv-grid small, .my-call-grid small { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.pv-grid b, .my-call-grid b { font-family: var(--mono); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-reasons { margin: 10px 0 0; padding-left: 18px; color: #ffc2b3; font-size: 12.5px; display: grid; gap: 4px; }
.pv-okline { margin-top: 10px; font-size: 12.5px; color: var(--cyan); }
.my-call { border-radius: 18px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line-2); background: radial-gradient(ellipse at 0% 0%, rgba(62, 201, 255, 0.12), transparent 60%), rgba(4, 3, 16, 0.4); }
.my-call.down { background: radial-gradient(ellipse at 0% 0%, rgba(255, 79, 123, 0.14), transparent 60%), rgba(4, 3, 16, 0.4); }
.my-call-top { display: flex; justify-content: space-between; align-items: center; }
.my-call-top .a-label { margin: 0; }
.my-rank { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--pink); }
.my-call-token { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.my-call-token b { font-size: 17px; }
.my-call-token small { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.my-mult { margin-left: auto; text-align: right; }
.my-mult b { display: block; font-family: var(--mono); font-size: 26px; }
.my-call.up .my-mult b, .my-call.up .my-mult small { color: var(--up); }
.my-call.down .my-mult b, .my-call.down .my-mult small { color: var(--down); }
.my-call-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rules { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.rules b { color: #fff; }
.rule-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.rule-chips span { font-size: 11.5px; padding: 5px 9px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text-2); }
.rule-chips b { color: #fff; font-family: var(--mono); font-weight: 700; }

/* ─── Leaderboard ────────────────────────────────── */
.a-board { padding: 18px 14px 12px; min-height: 420px; }
.a-board-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 8px; }
.a-board-head .a-h2 { margin: 0; }
.a-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }
.a-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 12px var(--up); animation: pulse 1.6s infinite; }
#arena.offline .a-live i { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.lb-cols, .lb-main { display: grid; grid-template-columns: 52px minmax(150px, 1.25fr) minmax(130px, 1fr) minmax(170px, 1.2fr) 124px 118px 18px; align-items: center; gap: 10px; }
.lb-cols { padding: 6px 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.lb { display: flex; flex-direction: column; gap: 6px; }
.lb-row { position: relative; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid transparent; transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1), background 0.2s, border-color 0.2s; will-change: transform; }
.lb-row:hover { background: rgba(47, 123, 255, 0.09); }
.lb-row.open { background: rgba(47, 123, 255, 0.1); border-color: rgba(47, 123, 255, 0.35); }
.lb-row.top1 { background: linear-gradient(90deg, rgba(255, 215, 106, 0.12), rgba(255, 138, 31, 0.06) 60%, transparent); border-color: rgba(255, 215, 106, 0.3); box-shadow: 0 0 40px -24px #ffd76a; }
.lb-row.mine { border-color: rgba(62, 201, 255, 0.5); }
.lb-row.mine::before { content: "YOU"; position: absolute; left: -1px; top: -9px; font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: 0.12em; padding: 2px 6px; border-radius: 6px; color: #04161c; background: var(--cyan); }
.lb-row.dq { opacity: 0.55; }
.lb-row.stale .lb-mult b::after { content: " •"; color: var(--gold); }
.lb-row.enter { animation: rowIn 0.6s var(--ease); }
.lb-row.moved-up { animation: flashUp 1.2s ease; }
.lb-row.moved-down { animation: flashDown 1.2s ease; }
@keyframes rowIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes flashUp { 0% { box-shadow: 0 0 0 1px var(--cyan), 0 0 40px -10px var(--cyan); } }
@keyframes flashDown { 0% { box-shadow: 0 0 0 1px var(--down), 0 0 30px -12px var(--down); } }
.lb-main { width: 100%; padding: 10px 14px; text-align: left; border-radius: 16px; }
.lb-rank { font-family: var(--display); font-weight: 900; font-size: 18px; text-align: center; color: var(--text-2); }
.top3 .lb-rank { font-size: 24px; }
.lb-user, .lb-token { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-user-t, .lb-token-t { min-width: 0; }
.lb-name { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.lb-name:hover { color: var(--pink); }
.lb-user small { display: block; font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.lb-token b { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.lb-mc { display: flex; align-items: center; gap: 8px; font-family: var(--mono); }
.lb-mc span { display: flex; flex-direction: column; }
.lb-mc small { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-family: var(--ui); }
.lb-mc b { font-size: 13px; font-weight: 600; }
.lb-mc i { font-style: normal; color: var(--text-3); }
.spark path { stroke: var(--cyan); }
.spark.down path { stroke: var(--pink); }
.spark-base { stroke: rgba(255, 255, 255, 0.15); stroke-dasharray: 3 3; }
.spark-call { fill: #fff; }
.lb-mult { text-align: right; border-radius: 10px; padding: 2px 4px; }
.lb-mult b { display: block; font-family: var(--mono); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lb-mult small { display: block; font-family: var(--mono); font-size: 11.5px; }
.lb-mult.up { color: var(--up); }
.lb-mult.up b { text-shadow: 0 0 18px rgba(62, 201, 255, 0.45); }
.lb-mult.down { color: var(--down); }
.lb-mult.flat { color: var(--text-2); }
.lb-mult.tick-up { animation: tickUp 0.9s ease; }
.lb-mult.tick-down { animation: tickDown 0.9s ease; }
@keyframes tickUp { 0% { background: rgba(62, 201, 255, 0.28); } }
@keyframes tickDown { 0% { background: rgba(255, 79, 123, 0.28); } }
.lb-caret { width: 8px; height: 8px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform 0.2s; }
.lb-row.open .lb-caret { transform: rotate(-135deg); }
.lb-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 60px 16px; text-align: center; color: var(--text-2); }
.lb-empty-fish { font-size: 42px; animation: bob 3s ease-in-out infinite; }
.lb-empty span { color: var(--text-3); font-size: 13px; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-6deg); } }

.lb-detail { padding: 4px 14px 16px; animation: rise 0.3s var(--ease); }
.d-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: 14px; }
.d-chart { border-radius: 16px; background: rgba(4, 3, 16, 0.55); border: 1px solid var(--line); padding: 10px 8px 8px; }
.perf-chart { width: 100%; height: 220px; display: block; }
.perf-chart .grid { stroke: rgba(255, 255, 255, 0.07); }
.perf-chart .grid.base { stroke: rgba(255, 255, 255, 0.28); stroke-dasharray: 5 5; }
.perf-chart .axis { fill: var(--text-3); font: 600 10px var(--mono); }
.perf-chart .pre { fill: none; stroke: rgba(47, 123, 255, 0.75); stroke-width: 1.8; stroke-dasharray: 4 3; }
.perf-chart .callline { stroke: rgba(255, 255, 255, 0.35); stroke-dasharray: 2 4; }
.perf-chart .endline { stroke: rgba(255, 138, 31, 0.5); stroke-dasharray: 6 4; }
.perf-chart .calldot { fill: #fff; stroke: var(--pink); stroke-width: 3; filter: drop-shadow(0 0 6px var(--pink)); }
.perf-chart .calllabel { fill: #fff; font: 800 11px var(--mono); letter-spacing: 0.08em; }
.perf-chart .lastlabel { font: 800 12px var(--mono); }
.chart-empty { display: grid; place-items: center; height: 200px; color: var(--text-3); font-size: 13px; }
.d-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 6px 8px 0; font-size: 11px; color: var(--text-2); }
.d-legend i { display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; }
.lg-pre { background: var(--purple); }
.lg-post { background: var(--cyan); }
.d-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.d-stat { padding: 10px 12px; border-radius: 13px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); min-width: 0; }
.d-stat small { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.d-stat b { display: block; font-family: var(--mono); font-size: 14px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-stat em { font-style: normal; font-size: 11px; opacity: 0.8; }
.d-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.d-ca { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 8px 12px; border-radius: 12px; background: rgba(4, 3, 16, 0.5); border: 1px dashed var(--line-2); font-family: var(--mono); font-size: 12px; }
.d-ca small { color: #1a0a00; background: var(--pink); border-radius: 5px; padding: 1px 5px; font-weight: 800; }
.d-ca span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.d-ca:hover { border-color: var(--pink); }

/* ─── Modals ─────────────────────────────────────── */
.a-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(4, 3, 14, 0.62); backdrop-filter: blur(6px); animation: fadeIn 0.2s ease; }
.a-modal.out { opacity: 0; transition: opacity 0.2s; }
@keyframes fadeIn { from { opacity: 0; } }
.a-modal-card { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px; animation: rise 0.3s var(--ease); }
.a-modal.wide .a-modal-card { width: min(1040px, 100%); }
.a-modal.small .a-modal-card { width: min(440px, 100%); }
.a-x { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border-radius: 10px; font-size: 22px; color: var(--text-2); z-index: 2; }
.a-x:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.a-modal-head { margin-bottom: 14px; padding-right: 36px; }
.demo-note { font-family: var(--mono); font-size: 11.5px; padding: 6px 10px; border-radius: 9px; background: rgba(255, 138, 31, 0.14); color: #ffd9b0; margin-bottom: 12px; }
.w-list { display: grid; gap: 8px; margin: 14px 0; }
.w-btn { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 15px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); text-decoration: none; }
.w-btn:hover { border-color: var(--pink); background: rgba(255, 138, 31, 0.08); }
.w-btn.busy { opacity: 0.6; pointer-events: none; }
.w-btn b { grid-column: 2; }
.w-btn small { grid-column: 2; color: var(--text-3); font-size: 12px; }
.w-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--purple), var(--pink)); }
.w-ic.evm { background: linear-gradient(135deg, #5a8cff, var(--cyan)); }
.a-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.a-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.a-table th { position: sticky; top: 0; text-align: left; padding: 10px 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); background: rgba(5, 16, 32, 0.98); white-space: nowrap; }
.a-table td { padding: 10px 12px; border-top: 1px solid rgba(47, 123, 255, 0.08); font-family: var(--mono); white-space: nowrap; }
.a-table tr[data-call] { cursor: pointer; }
.a-table tr[data-call]:hover { background: rgba(47, 123, 255, 0.07); }
.a-table td small { opacity: 0.75; }
.a-table tr.exp td { white-space: normal; padding: 0; }
.cell-token { display: inline-flex; align-items: center; gap: 6px; }
.hist { display: grid; gap: 8px; }
.hist-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 15px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); text-align: left; }
.hist-row:hover { border-color: var(--pink); }
.hist-id b { display: block; font-family: var(--display); font-size: 17px; }
.hist-id small { color: var(--text-3); font-size: 11.5px; }
.hist-pod { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; }
.hist-pod em { font-style: normal; font-family: var(--mono); font-weight: 700; }
.hist-n { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.p-head { display: flex; align-items: center; gap: 16px; padding-right: 30px; flex-wrap: wrap; }
.p-name { margin: 0; font-family: var(--display); font-weight: 900; font-size: 26px; }
.p-points { margin-left: auto; text-align: right; }
.p-points small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); }
.p-points b { font-family: var(--mono); font-size: 26px; color: var(--cyan); }
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 16px; }
.p-stat { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.p-stat small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.p-stat b { display: block; margin-top: 4px; font-family: var(--mono); font-size: 18px; }
.p-stat em { font-style: normal; font-size: 12px; opacity: 0.8; }
.p-stat.up b { color: var(--up); }
.p-stat.down b { color: var(--down); }
.p-ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ach { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 13px; border: 1px dashed var(--line-2); opacity: 0.4; filter: grayscale(1); font-size: 12px; }
.ach span { font-size: 22px; }
.ach.on { opacity: 1; filter: none; border-style: solid; border-color: rgba(255, 138, 31, 0.45); background: rgba(255, 138, 31, 0.08); }
.adm { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.adm section { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.adm h4 { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pink); }
.adm-bans { margin-top: 14px; }
.f { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--text-2); }
.f small { color: var(--text-3); font-size: 11px; }
.f.check { flex-direction: row; align-items: center; gap: 9px; color: var(--text); }
.f.check input, .chipbox input { accent-color: var(--pink); width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipbox { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.ban-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ban { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border-radius: 9px; background: rgba(255, 79, 123, 0.12); font-family: var(--mono); font-size: 12px; }
.ban button { width: 22px; height: 22px; border-radius: 6px; color: var(--text-2); }
.ban button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ─── Round results ──────────────────────────────── */
.results { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at 50% 40%, rgba(10, 40, 80, 0.75), rgba(4, 3, 14, 0.94) 70%); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.5s; overflow-y: auto; }
.results.in { opacity: 1; }
.results.out { opacity: 0; }
.results-bubbles i { position: absolute; left: var(--x); bottom: -30px; width: var(--s); height: var(--s); border-radius: 50%; border: 1.5px solid rgba(62, 201, 255, 0.5); animation: rise-bubble var(--d) var(--delay) linear infinite; }
@keyframes rise-bubble { to { transform: translate(20px, -110vh); opacity: 0; } }
.results-card { position: relative; width: min(760px, 100%); text-align: center; }
.results.in .results-card { animation: pop 0.8s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(0.9) translateY(20px); } }
.results-kicker { font-family: var(--mono); font-weight: 700; letter-spacing: 0.3em; font-size: 12px; color: var(--cyan); }
.results-title { margin: 10px 0 4px; font-family: var(--display); font-weight: 900; font-size: clamp(30px, 6vw, 60px); line-height: 1; }
.results-title span { background: linear-gradient(100deg, var(--pink), var(--purple), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.results-sub { color: var(--text-2); font-size: 13px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 12px; margin: 34px 0 20px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; animation: podIn 0.7s var(--ease) forwards; }
.pod.p1 { animation-delay: 1.1s; }
.pod.p2 { animation-delay: 0.6s; }
.pod.p3 { animation-delay: 0.3s; }
@keyframes podIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.pod-medal { font-size: 40px; filter: drop-shadow(0 0 16px rgba(255, 215, 106, 0.6)); }
.pod.p1 .pod-medal { font-size: 56px; }
.pod-name { font-weight: 800; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pod-token { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.pod-mult { font-family: var(--mono); font-weight: 900; font-size: 26px; }
.pod.p1 .pod-mult { font-size: 34px; text-shadow: 0 0 24px currentColor; }
.pod-mult.up { color: var(--up); }
.pod-mult.down { color: var(--down); }
.pod-block { width: 100%; display: grid; place-items: start center; padding-top: 10px; border-radius: 16px 16px 6px 6px; font-family: var(--display); font-weight: 900; font-size: 30px; color: rgba(255, 255, 255, 0.25); background: linear-gradient(180deg, rgba(47, 123, 255, 0.35), rgba(47, 123, 255, 0.05)); border: 1px solid rgba(47, 123, 255, 0.35); }
.pod.p1 .pod-block { height: 130px; background: linear-gradient(180deg, rgba(255, 138, 31, 0.45), rgba(255, 138, 31, 0.05)); border-color: rgba(255, 138, 31, 0.5); }
.pod.p2 .pod-block { height: 94px; }
.pod.p3 .pod-block { height: 70px; }
.pod.empty { opacity: 0.35; }
.best-call { display: inline-flex; flex-direction: column; gap: 3px; padding: 12px 22px; border-radius: 16px; margin-bottom: 22px; background: rgba(62, 201, 255, 0.08); border: 1px solid rgba(62, 201, 255, 0.35); }
.best-call small { font-family: var(--mono); letter-spacing: 0.2em; font-size: 10.5px; color: var(--cyan); }
.best-call b { font-family: var(--display); font-size: 20px; }
.best-call span { font-size: 12px; color: var(--text-2); }
.results .a-disclaimer { margin-top: 18px; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1080px) {
  .lb-cols { display: none; }
  .lb-main { grid-template-columns: 40px minmax(0, 1fr) auto 14px; grid-template-areas: "rank user mult caret" "rank token mult caret" "rank mc spark caret"; row-gap: 4px; }
  .lb-rank { grid-area: rank; }
  .lb-user { grid-area: user; }
  .lb-token { grid-area: token; }
  .lb-mc { grid-area: mc; }
  .lb-spark { grid-area: spark; justify-self: end; }
  .lb-mult { grid-area: mult; }
  .lb-caret { grid-area: caret; }
}
@media (max-width: 860px) {
  .a-grid { grid-template-columns: 1fr; }
  .a-side { position: static; }
  .a-hero { flex-direction: column; align-items: stretch; text-align: left; }
  .a-hero-r { text-align: left; }
  .d-grid { grid-template-columns: 1fr; }
  .hist-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  .a-sub, .a-user small { display: none; }
  .a-nav > button { padding: 0 9px; }
  .pv-grid { grid-template-columns: repeat(2, 1fr); }
  .podium { gap: 6px; }
  .pod-mult { font-size: 18px; }
  .pod.p1 .pod-mult { font-size: 22px; }
  .pod-name { font-size: 12px; }
  .lb-user .avatar { display: none; }
}

@media (max-width: 760px) {
  .letterbox i { height: 7vh; }
  .cine-brand { top: calc(3.5vh - 10px); left: 14px; font-size: 14px; }
  #intro-ctrl { right: 10px; top: max(10px, calc(3.5vh - 18px)); }
  #caption { bottom: calc(7vh + 22px); }
  .state-rail { bottom: calc(3.5vh - 1px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ─── Arena on demand: the room stays visible until you open it ─────── */
#arena.collapsed { overflow: hidden; pointer-events: none !important; }
#arena.collapsed::before { opacity: 0; }
#arena::before { transition: opacity 0.6s; }
#arena.collapsed .a-main, #arena.collapsed .nav-room { display: none; }
#arena.collapsed .a-top { pointer-events: auto; background: linear-gradient(180deg, rgba(3, 10, 22, 0.75), rgba(3, 10, 22, 0)); border-bottom-color: transparent; backdrop-filter: none; }
#arena:not(.collapsed) .arena-fab { display: none; }
#arena .a-main { animation: arenaIn 0.5s var(--ease); }
@keyframes arenaIn { from { opacity: 0; transform: translateY(18px) scale(0.99); } }
.arena-fab { position: fixed; left: 50%; bottom: clamp(18px, 6vh, 48px); transform: translateX(-50%); z-index: 6; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 34px 12px; border-radius: 20px; color: #1a0a00; background: linear-gradient(120deg, #ffb347, var(--pink) 55%, #ff6a1a); box-shadow: 0 0 0 1px rgba(255, 210, 160, 0.45) inset, 0 20px 50px -14px rgba(255, 138, 31, 0.8), 0 0 90px -20px rgba(255, 138, 31, 0.9); animation: fabIn 0.8s var(--ease) both, fabFloat 3.2s 0.8s ease-in-out infinite; }
.arena-fab:hover { filter: brightness(1.08); }
.fab-kick { font-family: var(--mono); font-size: 10.5px; font-weight: 800; letter-spacing: 0.22em; opacity: 0.75; }
.fab-main { font-family: var(--display); font-weight: 900; font-size: clamp(17px, 2.4vw, 22px); letter-spacing: 0.06em; text-transform: uppercase; }
.fab-sub { font-family: var(--mono); font-size: 11.5px; font-weight: 700; opacity: 0.8; }
@keyframes fabIn { from { opacity: 0; transform: translate(-50%, 30px); } }
@keyframes fabFloat { 50% { transform: translate(-50%, -5px); } }
.nav-room { color: var(--cyan) !important; white-space: nowrap; }

/* ─── Migrated coins rail (Robinhood Chain) ─────────────────────────── */
.a-shell { display: grid; grid-template-columns: minmax(0, 1320px); justify-content: center; gap: 16px; padding: 6px clamp(12px, 2.6vw, 30px) 60px; }
.a-shell > .a-main { width: 100%; padding: 0; margin: 0; }
.a-shell > .mig { order: 2; }
#arena.collapsed .mig { display: none; }
.mig { display: flex; flex-direction: column; min-height: 0; max-height: 640px; padding: 16px 14px 10px; animation: arenaIn 0.5s var(--ease); position: relative; overflow: hidden; }
.mig::before { content: ""; position: absolute; left: -30%; top: -20%; width: 90%; height: 45%; background: radial-gradient(closest-side, rgba(62, 201, 255, 0.16), transparent); pointer-events: none; }
@media (min-width: 1360px) {
  .a-shell { grid-template-columns: 340px minmax(0, 1320px); }
  .a-shell > .mig { order: 0; position: sticky; top: calc(var(--top-h, 63px) + 44px); align-self: start; height: calc(100vh - var(--top-h, 63px) - 64px); max-height: 980px; }
}
.mg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 0 4px; }
.mg-kicker { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; color: var(--text-3); }
.mg-kicker .chip-chain { margin: 0; }
.mg-title { margin: 6px 0 2px; font-size: 17px; background: linear-gradient(100deg, #fff 20%, #ffd9b0 55%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mg-sub { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.mg-tabs { display: flex; gap: 4px; margin: 12px 0 10px; padding: 3px; border-radius: 12px; background: rgba(2, 8, 18, 0.5); border: 1px solid var(--line); }
.mg-tabs button { flex: 1; height: 28px; border-radius: 9px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-2); transition: 0.2s; }
.mg-tabs button:hover { color: #fff; }
.mg-tabs button.on { color: #1a0a00; background: linear-gradient(120deg, #ffb347, var(--pink)); box-shadow: 0 6px 18px -8px rgba(255, 138, 31, 0.9); }
.mg-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 6px; margin: 0 -4px; scrollbar-width: thin; scrollbar-color: rgba(120, 190, 255, 0.25) transparent; }
.mg-empty { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 18px; text-align: center; font-size: 13px; color: var(--text-3); }
.mg-row { position: relative; padding: 11px 11px 10px; border-radius: 16px; background: linear-gradient(160deg, rgba(12, 34, 64, 0.55), rgba(4, 12, 26, 0.55)); border: 1px solid var(--line); transition: border-color 0.25s, transform 0.25s var(--ease); }
.mg-row:hover { border-color: var(--line-2); transform: translateY(-1px); }
.mg-row.flash-up { animation: mgUp 1.4s ease; }
.mg-row.flash-down { animation: mgDown 1.4s ease; }
@keyframes mgUp { 0% { box-shadow: 0 0 0 1px var(--up) inset, 0 0 26px -6px var(--up); } 100% { box-shadow: none; } }
@keyframes mgDown { 0% { box-shadow: 0 0 0 1px var(--down) inset, 0 0 26px -6px var(--down); } 100% { box-shadow: none; } }
.mg-top { display: flex; align-items: center; gap: 10px; }
.mg-logo { flex: none; width: 36px; height: 36px; border-radius: 11px; object-fit: cover; background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.mg-logo.ph { display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 15px; color: #1a0a00; background: linear-gradient(135deg, #ffb347, var(--pink)); }
.mg-id { min-width: 0; flex: 1; }
.mg-id b { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 800; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-id small { display: block; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-new { font-style: normal; font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: 0.1em; padding: 2px 5px; border-radius: 5px; color: #1a0a00; background: var(--cyan); box-shadow: 0 0 12px -2px var(--cyan); }
.mg-mc { text-align: right; }
.mg-mc b { display: block; font-family: var(--mono); font-weight: 800; font-size: 14px; }
.mg-mc small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.mg-stats { display: grid; grid-template-columns: 1.25fr 1fr 0.9fr 0.9fr 0.9fr; gap: 4px; margin: 9px 0 8px; font-family: var(--mono); font-size: 11px; }
.mg-stats span { min-width: 0; white-space: nowrap; }
.mg-stats small { display: block; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.mg-chg.flat { color: var(--text-2); }
.mg-actions { display: flex; gap: 6px; }
.mg-copy { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 32px; padding: 0 5px 0 10px; border-radius: 10px; background: rgba(2, 8, 18, 0.55); border: 1px solid var(--line-2); transition: 0.2s; }
.mg-copy .mg-ca { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }
.mg-copy b { font-family: var(--mono); font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; padding: 5px 9px; border-radius: 7px; color: #1a0a00; background: linear-gradient(120deg, #ffb347, var(--pink)); }
.mg-copy:hover { border-color: var(--pink); }
.mg-copy.done b { background: var(--cyan); }
.mg-link { display: grid; place-items: center; height: 32px; padding: 0 11px; border-radius: 10px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--cyan); text-decoration: none; border: 1px solid var(--line-2); background: rgba(62, 201, 255, 0.06); transition: 0.2s; }
.mg-link:hover { background: rgba(62, 201, 255, 0.16); }
.mg-foot { padding: 8px 4px 0; font-family: var(--mono); font-size: 10px; color: var(--text-3); text-align: center; border-top: 1px solid var(--line); }

/* ─── NEMOCALLS brand ───────────────────────────────────────────────── */
.a-logo, .loader-logo, .cine-brand span { background: linear-gradient(100deg, #ffb347 0%, var(--orange) 38%, #8fe3ff 70%, var(--aqua) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader-logo { text-shadow: none; filter: drop-shadow(0 0 28px rgba(255, 138, 31, 0.35)); }
.cine-brand { display: flex; align-items: center; gap: 9px; }
.cine-brand img { border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 179, 71, 0.6), 0 0 18px rgba(255, 138, 31, 0.5); }
.loader-mascot { position: relative; width: 96px; height: 96px; margin-bottom: -2px; animation: mascotBob 3.4s ease-in-out infinite; }
.loader-mascot img { position: relative; z-index: 1; display: block; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 179, 71, 0.75), 0 14px 40px -8px rgba(0, 0, 0, 0.9); }
.loader-mascot i { position: absolute; inset: -14px; border-radius: 50%; background: conic-gradient(from 0deg, var(--orange), transparent 30%, var(--aqua) 55%, transparent 80%, var(--orange)); filter: blur(10px); opacity: 0.7; animation: spin 6s linear infinite; }
@keyframes mascotBob { 50% { transform: translateY(-6px) rotate(-2deg); } }

.a-brand { align-items: center; }
.a-mascot { flex: none; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 179, 71, 0.7), 0 0 22px -2px rgba(255, 138, 31, 0.55); transition: transform 0.4s var(--ease); }
.a-brand:hover .a-mascot { transform: rotate(-8deg) scale(1.06); }
.a-logo { font-size: 21px; letter-spacing: 0.02em; }
.nav-x { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--text-2); transition: 0.2s; }
.nav-x:hover { color: #fff; background: rgba(47, 123, 255, 0.14); }
.fab-kick { display: inline-flex; align-items: center; gap: 7px; }
.fab-kick img { border-radius: 50%; }

/* live ticker */
.a-ticker { position: sticky; top: var(--top-h, 63px); z-index: 3; overflow: hidden; height: 30px; border-bottom: 1px solid var(--line); background: rgba(2, 8, 18, 0.62); backdrop-filter: blur(12px); -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.a-ticker-track { display: flex; width: max-content; height: 100%; align-items: center; animation: tickerMove 60s linear infinite; }
.a-ticker:hover .a-ticker-track { animation-play-state: paused; }
.tk { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; font-size: 12px; white-space: nowrap; border-right: 1px solid var(--line); }
.tk b { font-family: var(--display); font-size: 11.5px; letter-spacing: 0.06em; }
.tk .mono { color: var(--text-2); }
.tk em { font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 700; }
@keyframes tickerMove { to { transform: translateX(-50%); } }
#arena.collapsed .a-ticker { display: none; }

/* hero */
.a-lede { max-width: 560px; margin: -4px 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.a-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.a-stats span { display: flex; flex-direction: column; gap: 2px; min-width: 120px; padding: 9px 13px; border-radius: 14px; background: rgba(2, 8, 18, 0.45); border: 1px solid var(--line); }
.a-stats small { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.a-stats b { font-family: var(--mono); font-size: 14px; font-weight: 800; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-hero::before { content: ""; position: absolute; left: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(62, 201, 255, 0.14), transparent); pointer-events: none; }

/* auth */
.auth-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.auth-head img { flex: none; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 179, 71, 0.6), 0 0 26px -4px rgba(255, 138, 31, 0.6); }
.auth-head .a-h3 { margin: 0 0 4px; }
.auth-head p { margin: 0; }
.auth-tabs { display: flex; gap: 4px; padding: 3px; margin-bottom: 14px; border-radius: 12px; background: rgba(2, 8, 18, 0.5); border: 1px solid var(--line); }
.auth-tabs button { flex: 1; height: 34px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--text-2); transition: 0.2s; }
.auth-tabs button.on { color: #1a0a00; background: linear-gradient(120deg, #ffb347, var(--orange)); }
.a-field { display: flex; flex-direction: column; gap: 6px; }
.a-field > span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.pw-wrap { position: relative; }
.pw-wrap .a-input { width: 100%; padding-right: 44px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 9px; opacity: 0.6; }
.pw-eye:hover { opacity: 1; background: rgba(255, 255, 255, 0.06); }
.auth-alt { display: block; margin: 14px auto 0; }
.center { text-align: center; }
.share-btn { margin-top: 10px; }

/* migrated rail: call button */
.mg-call { height: 32px; padding: 0 12px; border-radius: 10px; font-family: var(--mono); font-size: 11px; font-weight: 800; color: #04121f; background: linear-gradient(120deg, #8fe3ff, var(--aqua)); box-shadow: 0 6px 18px -8px rgba(62, 201, 255, 0.9); transition: 0.2s; }
.mg-call:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* hall of fame */
.hof-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; margin: 6px 0 18px; }
.hof-top { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 14px; border-radius: 18px; background: linear-gradient(170deg, rgba(12, 34, 64, 0.7), rgba(4, 12, 26, 0.7)); border: 1px solid var(--line); text-align: center; transition: transform 0.25s var(--ease), border-color 0.25s; }
.hof-top:hover { transform: translateY(-3px); border-color: var(--line-2); }
.hof-top.r1 { padding-top: 24px; border-color: rgba(255, 179, 71, 0.5); box-shadow: 0 0 40px -14px rgba(255, 138, 31, 0.7); }
.hof-top b { font-family: var(--display); font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hof-medal { font-size: 24px; }
.hof-pts { font-family: var(--mono); font-weight: 800; color: var(--orange); }
.hof-top small { font-size: 11px; color: var(--text-3); }
.hof-cols, .hof-row { display: grid; grid-template-columns: 44px minmax(0, 1.8fr) 1fr 0.7fr 0.7fr 0.8fr 0.8fr; gap: 8px; align-items: center; }
.hof-cols { padding: 0 12px 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.hof-row { width: 100%; padding: 9px 12px; border-radius: 12px; text-align: left; font-size: 13px; transition: background 0.2s; }
.hof-row:nth-child(odd) { background: rgba(2, 8, 18, 0.35); }
.hof-row:hover { background: rgba(47, 123, 255, 0.14); }
.hof-rank { font-family: var(--mono); font-weight: 800; text-align: center; }
.hof-user { display: flex; align-items: center; gap: 9px; min-width: 0; }
.hof-user b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 860px) {
  .a-sub { display: none; }
  .a-nav [data-nav="history"], .a-nav [data-nav="fame"] { padding: 0 10px; font-size: 13px; }
  .hof-cols { display: none; }
  .hof-row { grid-template-columns: 36px minmax(0, 1fr) auto auto; }
  .hof-row > :nth-child(4), .hof-row > :nth-child(5), .hof-row > :nth-child(6) { display: none; }
}
@media (max-width: 620px) {
  .a-top { padding: 10px 12px; }
  .a-logo { font-size: 16px; }
  .a-mascot { width: 30px; height: 30px; }
  .a-nav { gap: 2px; }
  .a-nav .nav-room, .nav-x { display: none; }
  .a-nav [data-nav="fame"] { font-size: 0; width: 36px; padding: 0; }
  .a-nav [data-nav="fame"]::before { content: "🏆"; font-size: 16px; }

  .a-stats span { min-width: 0; flex: 1 1 40%; }
  .hof-podium { gap: 6px; }
  .hof-top { padding: 12px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .a-ticker-track, .loader-mascot, .loader-mascot i { animation: none; }
}

/* ─── Cinematic HUD: depth gauge, title card, slow-motion, hover tips ── */
#depth-hud { position: absolute; right: clamp(16px, 4vw, 48px); top: 50%; transform: translate(12px, -50%); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; opacity: 0; transition: opacity 0.5s, transform 0.6s var(--ease); font-family: var(--mono); color: #eaf4ff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9); }
body[data-state="underwater_follow"] #depth-hud, body[data-state="deep_dive"] #depth-hud, body[data-state="room_reveal"] #depth-hud { opacity: 1; transform: translate(0, -50%); }
.dh-label { font-size: 10px; letter-spacing: 0.34em; color: var(--aqua); }
.dh-value { font-family: var(--display); font-size: clamp(22px, 3.4vw, 38px); font-weight: 800; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.dh-gauge { position: relative; width: 3px; height: min(26vh, 200px); border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin: 4px 0; }
.dh-gauge::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(255, 255, 255, 0.25) 9px 10px); }
.dh-gauge i { position: absolute; inset: 0; transform-origin: top; transform: scaleY(0); background: linear-gradient(180deg, var(--aqua), var(--orange)); box-shadow: 0 0 12px var(--aqua); }
.dh-note { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); }

#title-card { position: fixed; z-index: 37; left: 50%; top: 46%; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translate(-50%, -50%) scale(0.92); opacity: 0; pointer-events: none; }
#title-card img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 179, 71, 0.8), 0 0 60px rgba(255, 138, 31, 0.55), 0 0 120px rgba(62, 201, 255, 0.35); }
.tc-name { font-family: var(--display); font-weight: 900; font-size: clamp(38px, 8vw, 96px); line-height: 1; letter-spacing: 0.3em; background: linear-gradient(100deg, #ffb347, var(--orange) 38%, #8fe3ff 70%, var(--aqua)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255, 138, 31, 0.45)); }
.tc-tag { font-family: var(--mono); font-size: clamp(10px, 1.4vw, 13px); letter-spacing: 0.5em; color: #eaf4ff; opacity: 0.8; }
#title-card.show { animation: titleCard 2.3s var(--ease) forwards; }
#title-card.show .tc-name { animation: titleTrack 2.3s var(--ease) forwards; }
#title-card.show img { animation: titleMascot 2.3s var(--ease) forwards; }
@keyframes titleCard { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.92); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 72% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -54%) scale(1.03); } }
@keyframes titleTrack { from { letter-spacing: 0.3em; } to { letter-spacing: 0.04em; } }
@keyframes titleMascot { 0% { transform: scale(0.4) rotate(-20deg); } 22% { transform: scale(1.06) rotate(4deg); } 32%, 100% { transform: scale(1) rotate(0); } }

body.titling #depth-hud { opacity: 0 !important; }
body.slowmo .letterbox i { transform: scaleY(1.45); transition-duration: 0.35s; }

#hover-tip { position: fixed; left: 0; top: 0; z-index: 40; padding: 7px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: #eaf4ff; background: rgba(4, 14, 28, 0.88); border: 1px solid var(--line-2); backdrop-filter: blur(10px); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.9); pointer-events: none; opacity: 0; transition: opacity 0.15s; }
#hover-tip.show { opacity: 1; }

@media (max-width: 760px) {
  #depth-hud { right: 12px; }
  .dh-gauge { height: 18vh; }
}
@media (prefers-reduced-motion: reduce) {
  #title-card.show, #title-card.show .tc-name, #title-card.show img { animation-duration: 0.01s; }
}

/* zoomed on a desk computer */
#desk-back { position: fixed; left: 50%; bottom: clamp(18px, 6vh, 48px); z-index: 7; transform: translate(-50%, 20px); display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 14px; font-weight: 700; font-size: 14px; color: #eaf4ff; background: rgba(4, 14, 28, 0.82); border: 1px solid var(--line-2); backdrop-filter: blur(12px); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.9); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--ease); }
#desk-back kbd { font-family: var(--mono); font-size: 10.5px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-2); }
#desk-back:hover { border-color: var(--aqua); }
body.desk-focus #desk-back { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
body.desk-focus .arena-fab { opacity: 0; pointer-events: none !important; transform: translate(-50%, 30px); animation: none; transition: opacity 0.3s, transform 0.4s var(--ease); }

.a-nav > .nav-icon { width: 36px; padding: 0; display: grid; place-items: center; font-size: 17px; }
.a-nav > .nav-icon svg { width: 16px; height: 16px; }
.a-nav > .nav-icon.off { color: var(--text-3); }
@media (max-width: 620px) { .a-nav > [data-nav="replay"] { display: none; } }
