/* AURA · black ASCII look (GK 2026-10-22: "the frontend needs a lot of work, need to be hard" + the UNSUB ASCII effect).
   Her face is drawn in characters (js/ascii-avatar.js) and pinned on the left; the pot, the chat and her rules scroll
   on the right. One accent follows her mood (--mood-h, set by avatar.setMood); gold is only for SOL. */
:root {
  --bg: #060708;
  --panel: #0b0d10;
  --panel-2: #101317;
  --line: #1b2027;
  --line-2: #2a313b;
  --ink: #eceff3;
  --soft: #aab2bd;
  --muted: #6c7480;
  --gold: #f5c451;
  --gold-soft: rgb(245 196 81 / .16);
  --red: #ff5d5d;
  --green: #7df0b0;
  --mood-h: 190;
  --mood: hsl(var(--mood-h) 85% 66%);
  --mood-soft: hsl(var(--mood-h) 85% 66% / .14);
  --mood-line: hsl(var(--mood-h) 85% 66% / .35);
  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --font: Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 14px;
  --top: 64px;
  --tick: 41px; /* the ticker strip at the bottom of the one-screen layout */
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
b { font-weight: 700; }
/* the whole page sits inside one terminal: a sparse ASCII dust field behind everything */
#neural { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .6; }
.page, .ticker { position: relative; z-index: 1; }
.cur { font-style: normal; color: var(--mood); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.label { font: 700 11px var(--mono); letter-spacing: .16em; color: var(--muted); }

/* ---------- boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; gap: 18px; justify-items: center;
  background: var(--bg); transition: opacity .7s ease, visibility .7s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-art { margin: 0; font: 700 clamp(11px, 2.4vw, 18px)/1.1 var(--mono); color: var(--mood); text-shadow: 0 0 24px var(--mood-soft); }
.boot-text { font: 600 12px var(--mono); letter-spacing: .16em; color: var(--muted); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 30; height: var(--top);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  background: rgb(6 7 8 / .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid var(--mood-line); background: var(--panel); color: var(--mood); font: 800 17px var(--mono);
}
.logo-name { font: 800 22px var(--display); letter-spacing: .02em; }
.logo-name .cur { font: 700 18px var(--mono); margin-left: 1px; }
.logo-sub { font: 600 11px var(--mono); color: var(--muted); letter-spacing: .1em; padding-left: 10px; border-left: 1px solid var(--line-2); }
.links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.links a { font: 700 12px var(--mono); letter-spacing: .08em; color: var(--muted); padding: 8px 10px; border-radius: 8px; }
.links a:hover { color: var(--ink); background: var(--panel-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink);
  font: 700 12px var(--mono); letter-spacing: .08em; transition: border-color .15s, background .15s, color .15s;
}
.btn:hover { border-color: var(--mood); color: var(--mood); }
.btn-wallet { margin-left: 6px; }
.btn-wallet .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.btn-wallet.on .dot { background: var(--green); }
.btn-primary { background: var(--mood); border-color: var(--mood); color: #05080a; }
.btn-primary:hover { background: transparent; color: var(--mood); }
.btn-ghost { background: none; border: 0; cursor: pointer; color: var(--muted); font: 700 11px var(--mono); letter-spacing: .1em; padding: 6px 8px; border-radius: 6px; }
.btn-ghost:hover { color: var(--ink); background: var(--panel-2); }

/* ---------- page grid ---------- */
/* one-screen app layout (the INSIDER/COOKERS pattern): SHE fills the whole screen,
   everything else lives in one narrow rail on the right that scrolls by itself */
.page {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 460px); gap: 14px;
  height: calc(100vh - var(--top) - var(--tick)); height: calc(100svh - var(--top) - var(--tick));
  min-height: 520px; padding: 14px; overflow: hidden;
}

/* ---------- her stage: the whole left side ---------- */
.stage-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
/* full-bleed: no card, no border — she stands IN the page, characters dissolving at the edges */
.avatar-stage {
  position: relative; flex: 1; min-height: 0;
  overflow: hidden;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, var(--mood-soft), transparent 70%);
  transition: background .8s;
}
.avatar-stage::after { /* thin scanlines over the characters */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(0deg, rgb(255 255 255 / .018) 0 1px, transparent 1px 3px);
}
.avatar-media {
  position: absolute; inset: 0; z-index: 1;
  mask-image: radial-gradient(ellipse 88% 92% at 50% 48%, #000 55%, transparent 97%);
  -webkit-mask-image: radial-gradient(ellipse 88% 92% at 50% 48%, #000 55%, transparent 97%);
}
.avatar-stage.shake { animation: shake .5s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake {
  10% { transform: translate(-9px, 2px); } 30% { transform: translate(8px, -3px); }
  50% { transform: translate(-6px, 1px); } 70% { transform: translate(4px, -1px); } 90% { transform: translate(-2px, 0); }
}
.avatar-media .poster {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  opacity: .12; filter: blur(16px) grayscale(1); transition: opacity 1s ease;
}
.avatar-media.ascii-on .poster { opacity: 0; }
#av-3d { position: absolute; inset: 0; }
#av-3d canvas { width: 100% !important; height: 100% !important; display: block; }
/* ASCII mode: the 3D canvas keeps rendering (lip sync) but only its characters are shown */
.avatar-media .av-ascii { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.avatar-media.ascii-on #av-3d { opacity: 0; }
.avatar-media.ascii-on .avatar-glow, .avatar-media.ascii-on #av-fx { display: none; }
#av-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.avatar-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 55%, transparent 40%, hsl(var(--mood-h) 85% 65% / var(--glow, .12)) 75%, transparent 85%); }
.avatar-loading {
  position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; gap: 2px;
  font: 600 13px var(--mono); letter-spacing: .1em; color: var(--muted); transition: opacity .6s;
}
.avatar-media.ready .avatar-loading { opacity: 0; pointer-events: none; }
.avatar-stage.glitch .avatar-media { animation: glitch .45s steps(2, end) 1; }
@keyframes glitch {
  20% { transform: translate(-5px, 1px); }
  40% { transform: translate(5px, -1px); }
  60% { transform: translate(-2px, 0); }
  100% { transform: none; }
}
/* ?solo = only her face, full screen, for screen-recording clips */
.solo .avatar-media { position: fixed; inset: 0; z-index: 70; background: #040506; }
.solo .top, .solo .side-col, .solo .ticker { visibility: hidden; }

.corner { position: absolute; z-index: 4; display: flex; flex-direction: column; gap: 3px; font: 600 11px var(--mono); letter-spacing: .08em; color: var(--muted); pointer-events: none; }
.corner b { color: var(--mood); font-weight: 700; }
.corner.tl { top: 14px; left: 16px; }
.corner.tl > b { color: var(--ink); }
.corner.tl #av-state { color: var(--mood); }
.corner.tr { top: 14px; right: 16px; text-align: right; }
.corner.bl { bottom: 14px; left: 16px; }
.corner.br { bottom: 14px; right: 16px; color: var(--line-2); }
.wave { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.wave i { width: 3px; height: 3px; background: var(--mood); opacity: .8; } /* no transition: JS animates the height itself */
.avatar-stage.thinking .wave i { animation: think .9s ease-in-out infinite; }
.avatar-stage.thinking .wave i:nth-child(odd) { animation-delay: .2s; }
.avatar-stage.thinking .wave i:nth-child(3n) { animation-delay: .4s; }
@keyframes think { 50% { height: 16px; } }

/* the broadcast chyron: scene captions typed in her voice, lower-left of the stage */
.chyron {
  position: absolute; z-index: 4; left: 16px; bottom: 44px; max-width: 72%;
  display: flex; align-items: baseline; gap: 10px; padding: 8px 12px;
  font: 700 12px var(--mono); letter-spacing: .08em; color: var(--ink);
  background: rgb(6 7 8 / .72); border-left: 3px solid var(--mood);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.chyron.on { opacity: 1; }
.chyron b { color: var(--mood); }

.warmth { display: flex; align-items: center; gap: 12px; font: 700 11px var(--mono); letter-spacing: .12em; color: var(--muted); }
/* her heartbeat (js/ekg.js): beats faster as trust rises */
.warmth #ekg { flex: 1; min-width: 0; height: 36px; }
.warmth-hint { min-width: 74px; text-align: right; color: var(--mood); }
.toggles { display: flex; gap: 2px; }
.hud { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 600 11px var(--mono); letter-spacing: .06em; color: var(--muted); }
.hud b { color: var(--soft); font-weight: 700; }
.hud b.ok { color: var(--green); }
.hud b.warn { color: var(--gold); }
.hud b.bad { color: var(--red); }

/* ---------- the rail ---------- */
.side-col { display: grid; gap: 12px; align-content: start; min-width: 0; min-height: 0; overflow-y: auto; padding-right: 4px; }
.side-col::-webkit-scrollbar { width: 6px; }
.side-col::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.intro { padding: 2px 2px 0; }
.intro h1 { margin: 0; font: 800 clamp(24px, 2vw, 34px)/1.05 var(--display); letter-spacing: -.02em; }
.intro h1 em { font-style: normal; color: var(--mood); }
.intro p { margin: 8px 0 0; color: var(--soft); font-size: 14px; }

.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 18px; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 12px; }

/* the pot: the loudest thing on the page */
.pot-card { border-color: rgb(245 196 81 / .3); background: radial-gradient(ellipse 80% 90% at 100% 0%, var(--gold-soft), transparent 60%), var(--panel); }
.pot-card .label { color: var(--gold); }
.live { display: flex; align-items: center; gap: 6px; font: 700 11px var(--mono); letter-spacing: .12em; color: var(--green); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.pot-amount { display: flex; align-items: center; gap: 16px; }
/* the pot itself is drawn as big ASCII digits (js/ascii-digits.js) */
#pot-digits {
  margin: 0; flex: 1; min-width: 0; overflow: hidden; white-space: pre;
  font: 700 12px/1.12 var(--mono); /* the real size is fitted by fitDigits() in app.js */
  color: var(--gold); text-shadow: 0 0 20px rgb(245 196 81 / .4);
}
.pot-amount small { font: 800 18px var(--mono); color: var(--gold); letter-spacing: .1em; }
.pot-usd { margin-top: 6px; font: 600 14px var(--mono); color: var(--muted); }
.ascii-rule { margin: 16px 0 14px; height: 14px; overflow: hidden; white-space: nowrap; font: 700 13px/1 var(--mono); letter-spacing: .14em; color: rgb(245 196 81 / .55); }
.ascii-rule::before { content: "~-~~=~-~~~-=~~-~=~~-~~~=-~~-~=~~~-~-~~=~~-~~~-~=~-~~~=~-~~-~=~~~-~~=~-~~~-=~~-~=~~-~~~=-~~~-~~=~-~~~-"; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats div { display: grid; gap: 2px; }
.stats b { font: 800 26px var(--display); font-variant-numeric: tabular-nums; }
.stats span { font: 600 11px var(--mono); color: var(--muted); letter-spacing: .06em; }
.pot-address {
  margin-top: 16px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer;
  padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-2); background: #07080a; color: var(--muted);
  font: 600 12px var(--mono); text-align: left;
}
.pot-address span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pot-address i { font-style: normal; font-weight: 700; color: var(--gold); letter-spacing: .1em; }
.pot-address:hover { border-color: var(--gold); color: var(--ink); }

/* chat */
/* the chat hugs its content: no dead 500px void on a fresh session, grows as the fight gets longer */
.chat { display: flex; flex-direction: column; padding: 18px 18px 10px; }
.chat .card-head { margin-bottom: 6px; }
.chat-log { flex: 0 1 auto; min-height: 90px; max-height: min(46vh, 480px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 8px 4px 12px 0; scroll-behavior: smooth; }
.chat-log::-webkit-scrollbar { width: 6px; }
.chat-log::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.msg { max-width: 86%; line-height: 1.5; font-size: 15px; animation: pop .3s ease; overflow-wrap: anywhere; }
@keyframes pop { from { opacity: 0; transform: translateY(5px); } }
.msg.ai { align-self: flex-start; padding-left: 14px; border-left: 2px solid var(--mood); }
.msg.ai::before { content: "AURA >"; display: block; margin-bottom: 3px; font: 700 11px var(--mono); letter-spacing: .1em; color: var(--mood); }
.msg.user { align-self: flex-end; padding: 10px 14px; border-radius: 12px 12px 3px 12px; background: var(--panel-2); border: 1px solid var(--line-2); }
.msg.sys { align-self: stretch; max-width: none; text-align: center; padding: 8px 10px; border: 1px dashed var(--line-2); border-radius: 8px; font: 600 12px var(--mono); color: var(--muted); }
.msg.sys.gold { color: var(--gold); border-color: rgb(245 196 81 / .5); background: var(--gold-soft); }
.msg.sys.red { color: var(--red); border-color: rgb(255 93 93 / .45); }
.msg .caret { display: inline-block; width: 8px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--mood); animation: blink .8s steps(1) infinite; }
.chat-form { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #07080a; transition: border-color .15s; }
.chat-form:focus-within { border-color: var(--mood); }
.prompt-mark { font: 800 16px var(--mono); color: var(--mood); }
.chat-form input { flex: 1; min-width: 0; padding: 10px 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 16px; } /* 16px: below that iOS zooms the page on focus */
.chat-form input::placeholder { color: var(--muted); }
.btn-send { background: var(--mood); border-color: var(--mood); color: #05080a; }
.btn-send:hover { background: transparent; color: var(--mood); }
.btn-send:disabled { opacity: .45; cursor: wait; }
.chat-meta { display: flex; gap: 10px; padding: 8px 2px 0; font: 600 11px var(--mono); color: var(--muted); letter-spacing: .04em; }
.chat-meta .grow { flex: 1; }
#meta-mode { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* how to win */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; }
.steps li > b { font: 800 13px var(--mono); color: var(--mood); padding-top: 2px; }
.steps strong { display: block; font: 800 19px var(--display); }
.steps span { color: var(--soft); font-size: 14.5px; }

.two { display: grid; grid-template-columns: 1fr; gap: 12px; } /* the rail is narrow: rules and winners stack */
.rules ul, .winners ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--soft); }
.rules li { position: relative; padding-left: 18px; }
.rules li::before { content: ">"; position: absolute; left: 0; font: 800 13px var(--mono); color: var(--mood); }
.rules li b { color: var(--ink); }
.winners li { display: flex; justify-content: space-between; gap: 10px; font: 600 12px var(--mono); padding: 8px 10px; border-radius: 8px; background: #07080a; border: 1px solid var(--line); }
.winners li span { overflow: hidden; text-overflow: ellipsis; }
.winners li b { color: var(--gold); white-space: nowrap; }
.winners li.empty { justify-content: center; color: var(--muted); border-style: dashed; background: none; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--line); padding: 12px 0; white-space: nowrap; font: 600 12px var(--mono); letter-spacing: .06em; color: var(--muted); }
.ticker-track { display: inline-block; animation: tick 60s linear infinite; }
.ticker-track span { margin-right: 44px; }
.ticker-track span b { color: var(--mood); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / .75); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-card { width: min(440px, 100%); display: grid; gap: 12px; padding: 22px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--panel); }
.modal-card .label { color: var(--mood); }
.modal-card p { margin: 0; color: var(--soft); font-size: 14.5px; }
.modal-card input { padding: 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #07080a; color: var(--ink); font: 600 16px var(--mono); outline: 0; } /* 16px: iOS zoom threshold */
.modal-card input:focus { border-color: var(--mood); }
.or { text-align: center; font: 600 11px var(--mono); color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- payout overlay ---------- */
.release { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; padding: 16px; cursor: pointer; background: radial-gradient(circle, rgb(245 196 81 / .18), rgb(0 0 0 / .88) 70%); animation: fadein .4s; }
.release[hidden] { display: none; }
.release-inner { text-align: center; animation: pop .5s cubic-bezier(.2,.9,.2,1.2); }
.release-frame { margin: 0; font: 700 clamp(12px, 2.2vw, 18px)/1 var(--mono); color: rgb(245 196 81 / .6); }
.release-k { margin-top: 18px; font: 800 14px var(--mono); letter-spacing: .3em; color: var(--gold); }
.release-v { margin: 8px 0 14px; font: 800 clamp(56px, 11vw, 120px)/1 var(--display); color: var(--gold); letter-spacing: -.03em; }
.release-sig { display: inline-block; margin-bottom: 18px; font: 600 13px var(--mono); color: var(--ink); border-bottom: 1px dashed var(--gold); }
@keyframes fadein { from { opacity: 0; } }

/* the near-miss: she said yes (gold) — protocol denied (red) */
.release.denied { background: radial-gradient(circle, rgb(255 93 93 / .16), rgb(0 0 0 / .9) 70%); }
.release.denied .release-frame { color: rgb(255 93 93 / .7); }
.release.denied .release-k { color: var(--gold); }
.release.denied .release-v { font-size: clamp(30px, 7vw, 76px); color: var(--red); }
.release-sub { font: 600 13px var(--mono); color: var(--ink); margin-bottom: 6px; }
.release-hint { font: 700 12px var(--mono); letter-spacing: .08em; color: var(--gold); margin-bottom: 14px; min-height: 14px; }

/* resonance receipts under her replies */
.delta { display: block; margin-top: 6px; font: 800 11px var(--mono); letter-spacing: .14em; animation: pop .3s ease; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.msg.sys .txlink { color: var(--gold); border-bottom: 1px dashed var(--gold); }

/* payout cinema: everything but her and the rain goes dark for a few seconds */
.top, .side-col, .ticker, .stage-col .hud, .stage-col .warmth { transition: filter .5s; }
body.cinema .top, body.cinema .side-col, body.cinema .ticker, body.cinema .stage-col .hud, body.cinema .stage-col .warmth { filter: brightness(.15); }

/* ---------- THE PICK (2026-10-22): a holder every 2 minutes ---------- */
.countdown { font: 800 clamp(44px, 5vw, 72px)/1 var(--display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; margin: 2px 0 12px; }
.countdown.hot { color: var(--gold); text-shadow: 0 0 24px rgb(245 196 81 / .45); animation: hotpulse 1s steps(2) infinite; }
@keyframes hotpulse { 50% { opacity: .75; } }
.golden-banner {
  margin: 0 0 12px; padding: 8px 10px; border-radius: 8px; text-align: center;
  font: 800 12px var(--mono); letter-spacing: .1em; color: #120c00;
  background: linear-gradient(90deg, #b8862a, var(--gold), #fff1c4, var(--gold), #b8862a); background-size: 200% 100%;
  animation: goldslide 2.4s linear infinite;
}
@keyframes goldslide { to { background-position: -200% 0; } }

.odds-card .chance { font: 800 22px var(--display); color: var(--gold); }
.odds-empty { margin: 0 0 12px; color: var(--soft); font-size: 14px; }
.odds-note { margin: 8px 0 0; font: 700 12px var(--mono); color: var(--gold); }
.odd { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.odd span { font: 600 12px var(--mono); color: var(--muted); }
.odd b { font: 700 13px var(--mono); color: var(--ink); text-align: right; }
.odd i { grid-column: 1 / -1; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.odd i u { display: block; height: 100%; background: var(--mood); transition: width .8s; }
.odds-card .btn { margin-top: 12px; width: 100%; }

.chat-gate { display: flex; flex-direction: column; gap: 10px; align-items: stretch; margin: 0 0 10px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 10px; font-size: 14px; color: var(--soft); }
.chat-gate[hidden] { display: none; }
.chat-gate b { color: var(--gold); }
.chat-form input:disabled { opacity: .4; }

/* the pick on her stage */
.pickshow {
  position: absolute; z-index: 5; left: 50%; bottom: 52px; transform: translateX(-50%);
  min-width: min(440px, 86%); padding: 14px 18px; text-align: center; pointer-events: none;
  background: rgb(6 7 8 / .82); border: 1px solid var(--line-2); border-radius: 12px;
  animation: pop .3s ease;
}
.pickshow[hidden] { display: none; }
.ps-k { font: 800 11px var(--mono); letter-spacing: .18em; color: var(--muted); }
.ps-w { margin: 6px 0 2px; font: 800 clamp(24px, 3vw, 38px)/1.1 var(--mono); color: var(--ink); letter-spacing: .02em; }
.ps-v { font: 800 18px var(--mono); color: var(--gold); min-height: 22px; }
.ps-line { margin-top: 6px; font-size: 14px; color: var(--soft); min-height: 18px; }
.pickshow.rolling .ps-w { color: var(--mood); filter: blur(.4px); }
.pickshow.won { border-color: var(--gold); box-shadow: 0 0 40px rgb(245 196 81 / .25); }
.pickshow.won .ps-k { color: var(--gold); }
.pickshow.won.golden { background: linear-gradient(180deg, rgb(40 28 4 / .92), rgb(6 7 8 / .9)); }
.pickshow.won.golden .ps-v { font-size: 26px; }
.pickshow.roll { border-color: rgb(255 93 93 / .5); }
.pickshow.roll .ps-k { color: var(--red); }
.pickshow.roll .ps-w { font-size: 20px; color: var(--soft); }
.pickshow.hold { border-color: var(--gold); }
.pickshow.hold .ps-k { color: var(--gold); }

/* the feed of real picks */
.winners li { flex-direction: column; align-items: stretch; gap: 3px; }
.winners li > div { display: flex; justify-content: space-between; gap: 10px; }
.winners li > i { font: 500 11.5px var(--font); font-style: normal; color: var(--muted); }
.winners li > i a { color: var(--gold); border-bottom: 1px dashed var(--gold); }
.winners li.golden { border-color: var(--gold); background: rgb(245 196 81 / .06); }

/* ---------- the coin (live $AURA data) ---------- */
.coin-card .chg { font: 800 14px var(--mono); color: var(--muted); }
.chg.up, .coin-strip b.up { color: var(--green); }
.chg.down, .coin-strip b.down { color: var(--red); }
.ca {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer;
  padding: 12px 14px; margin-bottom: 14px; border-radius: 10px; border: 1px solid var(--mood-line); background: #07080a;
  font: 700 13px var(--mono); color: var(--ink); text-align: left;
}
.ca span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca i { font-style: normal; color: var(--mood); letter-spacing: .1em; flex: none; }
.ca:hover { border-color: var(--mood); }
.coin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.coin-grid div { display: grid; gap: 2px; min-width: 0; }
.coin-grid span { font: 600 11px var(--mono); color: var(--muted); }
.coin-grid b { font: 800 17px var(--display); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.curve { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.curve span { font: 600 11px var(--mono); color: var(--muted); }
.curve pre { margin: 0; font: 700 13px var(--mono); color: var(--mood); white-space: pre; }
.curve pre.bonded { color: var(--gold); }
.chart { margin-top: 14px; height: 300px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #07080a; }
.chart[hidden] { display: none; }
.chart iframe { width: 100%; height: 100%; border: 0; display: block; }

/* the live strip under her stage */
.coin-strip { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 600 11px var(--mono); letter-spacing: .06em; color: var(--muted); }
.coin-strip[hidden] { display: none; }
.coin-strip b { color: var(--ink); font-weight: 800; }

/* the leaderboard */
.board-tabs { display: flex; gap: 2px; }
.board-tabs button { background: none; border: 1px solid transparent; border-radius: 6px; cursor: pointer; padding: 5px 8px; font: 700 10.5px var(--mono); letter-spacing: .08em; color: var(--muted); }
.board-tabs button.on { color: var(--mood); border-color: var(--mood-line); }
.board-sub { margin: -4px 0 10px; font: 600 11.5px var(--mono); color: var(--muted); }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 26px 1fr auto; gap: 2px 8px; align-items: baseline; padding: 8px 10px; border-radius: 8px; background: #07080a; border: 1px solid var(--line); }
.board li > b { font: 800 12px var(--mono); color: var(--muted); }
.board li .w { font: 700 13px var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li .v { font: 800 14px var(--mono); color: var(--gold); }
.board li > i { grid-column: 2 / -1; font: 500 11px var(--font); font-style: normal; color: var(--muted); }
.board li:nth-child(1) > b { color: var(--gold); }
.board li.me { border-color: var(--mood); background: var(--mood-soft); }
.board li.empty { display: block; text-align: center; color: var(--muted); border-style: dashed; background: none; font: 600 12px var(--mono); }

/* the wallet picker */
.wallet-list { display: grid; gap: 8px; }
.wallet-btn { justify-content: flex-start; gap: 12px; width: 100%; padding: 12px 14px; font-size: 13px; text-decoration: none; }
.wallet-btn img { width: 24px; height: 24px; border-radius: 6px; }
.wallet-btn i { width: 24px; text-align: center; font-style: normal; color: var(--mood); }
.wallet-none { margin: 0; font-size: 13.5px; color: var(--soft); }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .page { grid-template-columns: minmax(0, 1fr) 340px; }
  .corner.br { display: none; }
}
@media (max-width: 820px), (max-height: 640px) { /* also short viewports: a landscape phone or tiny window can't fit the sticky desktop column */
  :root { --top: 56px; }
  .top { padding: 0 16px; gap: 10px; }
  .logo-sub { display: none; }
  .links a { display: none; }
  .btn-wallet { padding: 9px 12px; font-size: 11px; }
  /* minmax(0,…): never let a canvas/pre intrinsic width widen the track (the EKG once fed itself to 42,000px) */
  /* phones / short windows: back to one scrolling column */
  .page { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; overflow: visible; padding: 14px 16px 32px; gap: 16px; }
  .side-col { overflow: visible; padding-right: 0; }
  .avatar-stage { flex: none; height: 58vh; min-height: 320px; }
  .intro h1 { font-size: 38px; }
  .chat-log { max-height: 42vh; }
  .btn-ghost { font-size: 10px; padding: 6px 5px; }
  .hud { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .cur, .live i { animation: none; }
}
