/* Paper Pop (/v3): phone first (one column), big numbers and icons, colour themes as tokens. */
:root {
  --bg-0: #120f1d; --bg-1: #1d1930; --bg-2: #2a2542; --line: #3a3458;
  --ink: #fbf8ff; --mute: #a49cc4;
  --up: #2fd18b; --down: #ff8a3d; --gold: #ffc83d;
  --accent: #2fe0c0; --accent-2: #7c6cff;
  --radius: 18px;
  --tab-h: 64px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg-0: #fff8fb; --bg-1: #ffffff; --bg-2: #f3ecf7; --line: #e6dcef;
    --ink: #241b33; --mute: #7a6f8f;
    --up: #10b46c; --down: #f06a12; --gold: #f2aa00;
    color-scheme: light;
  }
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg-0); color: var(--ink);
  font: 600 16px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  min-height: 100dvh; overflow-x: hidden;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.i { width: 1.2em; height: 1.2em; flex: none; vertical-align: middle; }
.sprite { position: absolute; }
[hidden] { display: none !important; }

/* ---------- background layers (STYLE → background) ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg i { position: absolute; display: block; opacity: 0; }
body[data-bg="stars"] .bg i { width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .7; animation: twinkle 3s ease-in-out infinite; }
body[data-bg="stars"] .bg i:nth-child(odd) { animation-delay: -1.4s; }
.bg i:nth-child(1) { left: 8%; top: 12%; } .bg i:nth-child(2) { left: 78%; top: 8%; } .bg i:nth-child(3) { left: 52%; top: 26%; }
.bg i:nth-child(4) { left: 20%; top: 48%; } .bg i:nth-child(5) { left: 88%; top: 40%; } .bg i:nth-child(6) { left: 64%; top: 66%; }
.bg i:nth-child(7) { left: 12%; top: 82%; } .bg i:nth-child(8) { left: 40%; top: 92%; }
body[data-bg="bubbles"] .bg i { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--accent-2); opacity: .25; animation: rise 12s linear infinite; }
body[data-bg="bubbles"] .bg i:nth-child(even) { width: 24px; height: 24px; animation-duration: 9s; animation-delay: -4s; }
body[data-bg="neon"] .bg { background: radial-gradient(60% 40% at 15% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent), radial-gradient(50% 40% at 90% 85%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent); animation: neon 4s ease-in-out infinite; }
body[data-bg="city"] .bg { background: linear-gradient(to top, color-mix(in srgb, var(--accent-2) 18%, transparent) 0, transparent 40%); }
body[data-bg="city"] .bg i { bottom: 0; top: auto !important; width: 11%; background: color-mix(in srgb, var(--bg-2) 90%, var(--accent-2)); opacity: .8; height: 18%; }
body[data-bg="city"] .bg i:nth-child(even) { height: 28%; } body[data-bg="city"] .bg i:nth-child(3n) { height: 12%; }
body.fever .bg { animation: fever 1.2s ease-in-out infinite alternate; }
@keyframes twinkle { 50% { opacity: .1; transform: scale(.5); } }
@keyframes rise { from { transform: translateY(110vh); } to { transform: translateY(-20vh); } }
@keyframes neon { 50% { filter: hue-rotate(40deg) brightness(1.2); } }
@keyframes fever { from { background-color: color-mix(in srgb, var(--accent) 10%, transparent); } to { background-color: color-mix(in srgb, var(--accent-2) 18%, transparent); } }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px; max-width: 560px; margin: 0 auto;
  background: linear-gradient(var(--bg-0) 70%, transparent);
}
.logo { display: flex; align-items: center; gap: 4px; }
.logo .word { height: 34px; width: auto; display: block; }
.cn { display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--gold); color: #3a2a00; font-size: .8em; font-weight: 900; flex: none; }
@media (max-width: 420px) { .logo .word { height: 28px; } #autobtn span { display: none; } .pts { padding: 6px 10px; font-size: 16px; } }
.top-r { display: flex; align-items: center; gap: 6px; }
.pts { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--bg-1); color: var(--gold); font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pts.bump { animation: bump .5s cubic-bezier(.3, 1.8, .5, 1); }
.ibtn { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; min-width: 40px; justify-content: center; padding: 0 10px; border-radius: 999px; background: var(--bg-1); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
#snd[aria-pressed="true"] { color: var(--accent); }
@keyframes bump { 40% { transform: scale(1.25); } }

main { max-width: 560px; margin: 0 auto; padding: 0 16px 16px; }
.view { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* ---------- PLAY ---------- */
.syms { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.sym { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--bg-1); border: 2px solid transparent; font-weight: 900; white-space: nowrap; }
.sym .i { color: var(--gold); width: 1.4em; height: 1.4em; }
.sym[aria-selected="true"] { border-color: var(--accent); background: var(--bg-2); }
.price-row { display: flex; align-items: baseline; gap: 10px; }
.price { font-size: clamp(30px, 9.5vw, 46px); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.02em; transition: color .4s; }
.price.tick-up { color: var(--up); } .price.tick-down { color: var(--down); }
@keyframes pulse { 50% { transform: scale(1.15); filter: brightness(1.3); } }
@keyframes drift { to { opacity: 0; transform: translateY(-14px) scale(.8); } }

.chart-wrap { position: relative; height: clamp(140px, 24vh, 260px); margin: 6px -4px 8px; border-radius: var(--radius); background: var(--bg-1); overflow: hidden; }
.chart { width: 100%; height: 100%; display: block; }

.positions { display: grid; gap: 8px; margin-bottom: 8px; }
.pos { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-1); border: 2px solid var(--line); }
.pos.long { border-color: color-mix(in srgb, var(--up) 55%, transparent); }
.pos.short { border-color: color-mix(in srgb, var(--down) 55%, transparent); }
.pos .dir { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.pos.long .dir { background: var(--up); } .pos.short .dir { background: var(--down); }
.pos .dir .i { width: 26px; height: 26px; }
.pos .mid { display: grid; gap: 4px; min-width: 0; }
.pos .pnl { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pos .pnl.up { color: var(--up); } .pos .pnl.down { color: var(--down); }
.pos .meta { display: flex; gap: 8px; color: var(--mute); font-size: 13px; align-items: center; flex-wrap: wrap; }
.pos .meta .i { width: 14px; height: 14px; }
.bar { position: relative; height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--c, var(--accent)); border-radius: 4px; transition: width .4s; }
.pos .x { width: 52px; height: 52px; border-radius: 16px; background: var(--bg-2); display: grid; place-items: center; }
.pos .x .i { width: 22px; height: 22px; }
.pos .x small { display: block; font-size: 10px; letter-spacing: .05em; }

.ticket { display: grid; gap: 8px; }
#lev { height: 24px; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip { padding: 10px 0; border-radius: 14px; background: var(--bg-1); font-size: 18px; font-weight: 900; border: 2px solid transparent; font-variant-numeric: tabular-nums; }
.chip[aria-checked="true"] { border-color: var(--gold); color: var(--gold); background: var(--bg-2); }
.amt { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.amt .lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 900; letter-spacing: .12em; color: var(--mute); }
.amt .lbl .i { width: 22px; height: 22px; }
.amt b { margin-left: auto; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.amt .flames { margin-left: 4px; min-width: 0; }
.amt .levx { margin-left: 2px; font-size: 16px; color: var(--down); }
.amt .levx + b { margin-left: auto; }
.amt .opt { min-height: 34px; min-width: 34px; padding: 0 8px; color: var(--mute); }
.optrow { width: 100%; display: grid; gap: 8px; }
.optrow .lbl { display: flex; align-items: center; gap: 6px; font-weight: 900; letter-spacing: .12em; color: var(--mute); }
.optrow .lbl .ibtn { margin-left: auto; min-height: 32px; }
.optrow .lbl .ibtn.on { background: var(--accent); color: #10101a; }
.opt-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.money { display: flex; align-items: center; gap: 2px; padding: 0 8px; border-radius: 12px; background: var(--bg-2); font-weight: 900; color: var(--mute); }
.money input { width: 100%; min-width: 0; padding: 12px 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; }
.money input:focus { outline: none; }
.money:focus-within { outline: 3px solid var(--accent); }
.chip.buy[aria-checked="true"] { border-color: var(--accent); color: var(--accent); }
.row { display: grid; align-items: center; gap: 10px; }
.power { grid-template-columns: auto 1fr 64px; }
.flames { display: inline-flex; color: var(--down); min-width: 74px; }
.flames .i { width: 15px; height: 15px; margin-right: -1px; }
.flames .off { opacity: .2; }
.row b { font-size: 17px; font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; }
.exits { grid-template-columns: auto 1fr 56px auto 1fr 56px; gap: 6px; }
.ex { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-1); display: grid; place-items: center; opacity: .45; }
.ex.on { opacity: 1; }
.ex.tp { color: var(--up); } .ex.sl { color: var(--accent-2); }
.exits b { font-size: 14px; }
.exits input:disabled + b, .exits input:disabled { opacity: .35; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 30px; }

.go-row { position: sticky; z-index: 6; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.gobtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 84px; border-radius: 24px; color: #fff; font-size: 22px; font-weight: 900; letter-spacing: .06em; box-shadow: 0 6px 0 rgba(0,0,0,.25); transition: transform .08s; }
.gobtn .i { width: 36px; height: 36px; }
.gobtn .cutp { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; letter-spacing: 0; opacity: .9; font-variant-numeric: tabular-nums; }
.gobtn .cutp .i { width: 14px; height: 14px; }
.pos .meta.cut { color: #ff4d6d; font-weight: 800; }
.pos .meta.cut b { color: var(--mute); font-weight: 800; }
.gobtn.up { background: linear-gradient(180deg, color-mix(in srgb, var(--up) 85%, #fff), var(--up)); }
.gobtn.down { background: linear-gradient(180deg, color-mix(in srgb, var(--down) 85%, #fff), var(--down)); }
.gobtn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.gobtn:disabled { filter: grayscale(.6) opacity(.6); }
.gobtn.nope, .nope { animation: nope .4s ease; }
@keyframes nope { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.why { min-height: 1.2em; margin: 0; color: var(--down); font-size: 12px; text-align: center; }
.locked { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--bg-1); color: var(--mute); }
.locked > .i { width: 36px; height: 36px; }

.big-play { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 72px; border-radius: 24px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #10101a; font-size: 26px; font-weight: 900; letter-spacing: .08em; box-shadow: 0 6px 0 rgba(0,0,0,.25); flex-wrap: wrap; }
.big-play .i { width: 30px; height: 30px; }
.big-play small { flex-basis: 100%; text-align: center; font-size: 12px; margin-top: -10px; opacity: .8; }
.big-play:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.25); }

.acct { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 8px; }
.eq { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.eq .i { color: var(--up); }
.pbag { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--bg-1); color: var(--gold); font-weight: 900; font-variant-numeric: tabular-nums; }
/* ---------- trophy badges (a locked STYLE shows its trophy) ---------- */
.h { display: flex; align-items: center; gap: 4px; margin: 4px 0 8px; font-size: 16px; letter-spacing: .1em; color: var(--mute); }
.badge { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--mute); }
.badge .i { width: 28px; height: 28px; }
.badge .ul { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-0); display: grid; place-items: center; color: var(--accent); }
.badge .ul .i { width: 14px; height: 14px; }
.badge .ul .swatch, .kv .swatch, .float .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.kv .swatch { width: 22px; height: 22px; }
.won .badge.bronze { background: linear-gradient(135deg, #e3a06b, #a8643a); color: #fff; }
.won .badge.silver { background: linear-gradient(135deg, #f1f4f8, #9aa6b5); color: #334; }
.won .badge.gold { background: linear-gradient(135deg, #ffe17a, #e3a400); color: #5a3a00; }
.won .badge { --bg-0: #fff8; }

/* the landing page's little loop */
@keyframes draw { 0% { stroke-dashoffset: 260; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes res { 0%, 60% { opacity: 0; transform: translateY(10px) scale(.6); } 70% { opacity: 1; transform: translateY(0) scale(1.2); } 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

/* ---------- WALLET (2026-10-20) ---------- */
.wallet { display: grid; gap: 12px; padding-bottom: 16px; }
.wl-card { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--bg-1); border: 1px solid var(--line); }
.wl-k { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 900; letter-spacing: .14em; color: var(--mute); }
.wl-k .i { width: 16px; height: 16px; }
.wl-big { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.wl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wl-split > span { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); }
.wl-split small { font-size: 10px; font-weight: 900; letter-spacing: .12em; color: var(--mute); }
.wl-split b { font-size: 17px; font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.wl-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wl-btns .btn, .wl-claim { min-height: 52px; font-size: 15px; letter-spacing: .04em; color: inherit; text-decoration: none; }
.wl-claim { color: #10101a; font-size: 18px; }
.wallet .btn:disabled, .wallet .btn.off { opacity: .4; cursor: default; }
.wl-note { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--mute); text-align: center; }
.wl-note:empty { display: none; }
.wallet .up { color: var(--up); } .wallet .down { color: var(--down); }
.wl-rows { display: grid; }
.wl-row { display: grid; grid-template-columns: 20px 1fr auto 70px 20px; align-items: center; gap: 8px; padding: 10px 2px; border-top: 1px solid var(--line); text-align: left; font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; }
.wl-row:first-child { border-top: 0; }
.wl-row small { font-size: 10px; color: var(--down); }
.wl-p { text-align: right; color: var(--gold); font-size: 12px; }
.wl-re .i { width: 16px; height: 16px; color: var(--mute); }

/* ---------- tabs ---------- */
.tabs { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(2, 1fr); height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--bg-1) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.tabs button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; letter-spacing: .06em; color: var(--mute); }
.tabs button .i { width: 26px; height: 26px; }
.tabs button[aria-current="page"] { color: var(--accent); }
.tabs .dot { position: absolute; top: 8px; right: calc(50% - 20px); width: 10px; height: 10px; border-radius: 50%; background: var(--down); }
@media (min-width: 900px) { .tabs { left: 50%; right: auto; width: 560px; translate: -50% 0; border-radius: 20px 20px 0 0; border: 1px solid var(--line); } }

/* ---------- effects layers ---------- */
.fx { position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: 40; pointer-events: none; }
.floats { position: fixed; inset: 0; z-index: 41; pointer-events: none; overflow: hidden; }
.float { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); translate: var(--x) var(--y); font-size: 34px; font-weight: 900; white-space: nowrap; animation: floatup 2.2s cubic-bezier(.2, .8, .3, 1) forwards; text-shadow: 0 3px 0 rgba(0,0,0,.25); display: flex; align-items: center; gap: 6px; }
.float .i { width: 1em; height: 1em; }
.float.win { color: var(--up); } .float.paper { color: var(--gold); } .float.pts { color: var(--gold); font-size: 20px; }
.float.big { font-size: clamp(56px, 18vw, 96px); animation-name: floatbig; }
.float.combo { color: var(--accent); }
.float.liqskull { color: #ff4d6d; animation-name: floatbig, wobble; animation-duration: 2.2s, .5s; }
@keyframes wobble { 30% { rotate: -14deg; } 70% { rotate: 14deg; } }
.float.small { font-size: 16px; color: var(--mute); }
.float.badge-pop { flex-direction: column; font-size: 18px; color: var(--ink); animation-name: floatbig; animation-duration: 2.4s; }
.float.badge-pop .badge { width: 110px; height: 110px; }
.float.badge-pop .badge .i { width: 60px; height: 60px; }
@keyframes floatup { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.5); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 30% { transform: translate(-50%, -60%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -220%) scale(1); } }
@keyframes floatbig { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(-12deg); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.25) rotate(4deg); } 30% { transform: translate(-50%, -50%) scale(1) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1.05); } }
.glow { position: fixed; inset: 0; z-index: 39; pointer-events: none; opacity: 0; transition: opacity .6s; box-shadow: inset 0 0 40px 10px var(--accent); }
body.glow-on .glow { opacity: .55; animation: glowpulse 1.6s ease-in-out infinite; }
body.rainbow .glow { box-shadow: inset 0 0 0 6px #ff4d6d, inset 0 0 0 12px #ffd23f, inset 0 0 0 18px #2fd18b, inset 0 0 0 24px #3a86ff, inset 0 0 50px 24px #8338ec; animation: hue 2s linear infinite; }
body.shake main { animation: shake .45s ease; }
@keyframes glowpulse { 50% { opacity: .9; } }
@keyframes hue { to { filter: hue-rotate(360deg); } }
@keyframes shake { 20% { transform: translate(-6px, 3px) rotate(-1deg); } 40% { transform: translate(6px, -3px) rotate(1deg); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(4px, -2px); } }
.autobar { position: fixed; z-index: 45; top: calc(64px + env(safe-area-inset-top)); left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: #10101a; font-weight: 900; letter-spacing: .1em; box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.autobar .i:first-child { animation: pulse 1s ease-in-out infinite; }
body.auto-on { cursor: pointer; }

/* ---------- sheet (modal) ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; background: rgba(5, 3, 15, .6); animation: fade .2s ease; }
.sheet-card { position: relative; width: 100%; max-width: 560px; margin: 0 auto; max-height: 88dvh; overflow: auto; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--bg-1); animation: up .3s cubic-bezier(.2, .9, .3, 1); }
.sheet-x { position: absolute; top: 12px; right: 12px; }
@keyframes up { from { transform: translateY(40%); } }
.sbig { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 30px; font-weight: 900; margin: 10px 0; font-variant-numeric: tabular-nums; }
.sbig .i { width: 40px; height: 40px; }
.srow2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 12px 0; }
.kv { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: var(--bg-2); font-weight: 900; font-variant-numeric: tabular-nums; }
.kv .i { width: 22px; height: 22px; color: var(--mute); }
.kv.up { color: var(--up); } .kv.down { color: var(--down); } .kv.gold { color: var(--gold); }
.rv-chart { width: 100%; height: 190px; display: block; border-radius: 14px; background: var(--bg-2); }
.stamp { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 12px; border: 3px solid var(--up); color: var(--up); font-weight: 900; font-size: 22px; letter-spacing: .1em; rotate: -8deg; animation: stamp .4s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes stamp { from { transform: scale(2.2); opacity: 0; } }
.btns.one { grid-template-columns: 1fr; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.btn { min-height: 56px; border-radius: 16px; background: var(--bg-2); font-size: 18px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn.pri { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #10101a; }
.center { display: grid; justify-items: center; gap: 10px; }
.center > .srow2, .center > .demo, .center > .rv-chart, .center > .btns { width: 100%; }
.nexts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.toasts { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tab-h) + 112px + env(safe-area-inset-bottom)); translate: -50% 0; display: grid; gap: 6px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--bg-2); box-shadow: 0 6px 24px rgba(0,0,0,.3); font-size: 15px; font-weight: 800; animation: up .25s ease; }
.toast .i { width: 22px; height: 22px; }

/* ---------- buttons pressed by AUTO ---------- */
.gobtn.press { animation: press-b .35s ease; }
@keyframes press-b { 40% { transform: scale(.88); filter: brightness(1.3); } }

/* the bunny (the team's drawings, app/public/v3-bunny.svg) */
.mascot { width: 36px; height: 40px; color: var(--mascot, var(--ink)); flex: none; overflow: visible; }
.mascot.big { width: 110px; height: 120px; }
.mascot.hop { animation: hop .55s cubic-bezier(.3, 1.8, .5, 1); }
.mascot[data-mood="liq"] { animation: wobble .5s ease 2; }
.mascot[data-mood="auto"] { animation: bob 1s steps(2) infinite; }
@keyframes hop { 40% { transform: translateY(-8px) scale(1.08); } }
@keyframes bob { 50% { transform: translateY(-3px); } }

/* ---------- PATTERN: Sea Glass (the default) (frosted, softly tumbled pebbles, a little light beneath) ---------- */
body[data-skin="glass"] {
  --bg-0: #f2eee6; --bg-1: #fbfaf6; --bg-2: #ebe5d8; --line: #dcd3c2; --ink: #1d3433; --mute: #6f817d;
  --up: #1fa58b; --down: #dc7444; --gold: #d29d22; --accent: #3fbcac; --accent-2: #7aa7e0;
  --mascot: #2a8f82; --cell-ink: #163130; --radius: 24px; --cell-r: 12;
  --font-num: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  color-scheme: light; color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}
body[data-skin="glass"] :is(.sym, .chip, .ibtn, .pts, .pbag, .btn, .big-play, .x, .ex) {
  --glass: #cfe9e4;
  background: radial-gradient(120% 90% at 30% 12%, rgba(255,255,255,.9), rgba(255,255,255,0) 46%), linear-gradient(165deg, color-mix(in srgb, var(--glass) 55%, #fff), var(--glass));
  box-shadow: inset 0 2px 3px rgba(255,255,255,.95), inset 0 -10px 18px color-mix(in srgb, var(--glass) 75%, #000 10%), 0 12px 22px -12px color-mix(in srgb, var(--glass) 75%, #000 25%);
  border: 1px solid rgba(255,255,255,.75); color: var(--ink);
}
body[data-skin="glass"] :is(.chip[aria-checked="true"], .sym[aria-selected="true"]) { --glass: #f2d27c; border-color: rgba(255,255,255,.8); }
body[data-skin="glass"] .chip.buy[aria-checked="true"] { --glass: #8fdccf; }
body[data-skin="glass"] .big-play { --glass: #6fd3c5; }
body[data-skin="glass"] .pts { --glass: #f6e3a8; }
body[data-skin="glass"] :is(.pos, .chart-wrap, .tabs, .toast, .kv, .locked, .demo-badge) { background: rgba(255,255,255,.55); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.85); box-shadow: 0 18px 40px -26px rgba(31,59,58,.45); }
body[data-skin="glass"] .sheet-card { background: rgba(251,250,246,.92); backdrop-filter: blur(16px); }
body[data-skin="glass"] :is(.price, .sbig, .h) { font-family: ui-serif, "New York", Georgia, serif; font-weight: 600; letter-spacing: -.01em; }
body[data-skin="glass"] .bg { background: radial-gradient(60% 40% at 15% 0%, #dff3ee, transparent 70%), radial-gradient(50% 40% at 100% 100%, #f6e8c8, transparent 70%); }

/* ---------- PATTERN: Money Printer (the easter egg) (green terminal, scanlines, banknotes) ---------- */
body[data-skin="printer"] {
  --bg-0: #03140a; --bg-1: #062512; --bg-2: #0a3a1c; --line: #1f6b3a; --ink: #8dffb4; --mute: #3fae68;
  --up: #7dffa8; --down: #ffd166; --gold: #d4ff5c; --accent: #53f28a; --accent-2: #b8ffcf;
  --mascot: #53f28a; --cell-ink: #c8ffd9; --radius: 4px; --cell-r: 2;
  --font-num: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark; color: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
body[data-skin="printer"]::after { content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); }
body[data-skin="printer"] .bg { background-image: linear-gradient(rgba(83,242,138,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(83,242,138,.07) 1px, transparent 1px); background-size: 24px 24px; }
body[data-skin="printer"] :is(.sym, .chip, .ibtn, .pts, .pbag, .btn, .big-play, .x, .pos, .kv, .chart-wrap, .toast, .money, .locked, .sheet-card, .demo-badge, .demo-safe, .badge) { border-radius: 4px; border: 1px solid var(--line); }
body[data-skin="printer"] :is(.price, .pts, .amt b, .heat, .combo, .float, .big-play) { text-shadow: 0 0 8px rgba(83,242,138,.55); }
body[data-skin="printer"] .big-play { background: var(--accent); color: #03140a; text-shadow: none; }
body[data-skin="printer"] :is(.chip[aria-checked="true"], .sym[aria-selected="true"]) { background: var(--accent); color: #03140a; }
body[data-skin="printer"] .float small { font-size: .5em; letter-spacing: .1em; }

/* colour unlocks (STYLE → colour) recolour the accent of any pattern; mint keeps the pattern's own */
body[data-color="pink"] { --accent: #ff5fa2; --accent-2: #ffb3d1; }
body[data-color="neon"] { --accent: #39ff14; --accent-2: #00e5ff; }
body[data-color="gold"] { --accent: #ffc83d; --accent-2: #ff9f1c; }
body[data-color="night"] { --accent: #8fa8ff; --accent-2: #c7b8ff; }


/* ---------- PLAY: the chart fills the screen, the controls float on it (2026-10-19: "90% chart") ---------- */
body.play-on main { max-width: none; padding: 0; }
body.play-on .top { position: fixed; left: 0; right: 0; max-width: 560px; margin: 0 auto; z-index: 20; background: linear-gradient(color-mix(in srgb, var(--bg-1) 92%, transparent) 55%, transparent); }
#v-play { position: fixed; top: 0; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; animation: none; color: var(--ink); }
#v-play .chart-wrap { position: absolute; inset: 0; height: auto; margin: 0; border-radius: 0; }
.ov-top { position: absolute; z-index: 5; top: calc(58px + env(safe-area-inset-top)); left: 14px; right: 14px; display: grid; gap: 6px; pointer-events: none; }
.ov-top > *, .ov-top .price-row > * { pointer-events: auto; }
.ov-top .price-row { pointer-events: none; gap: 6px; flex-wrap: wrap; align-items: center; }
.ov-top .price { font-size: clamp(28px, 8.5vw, 40px); text-shadow: 0 2px 12px color-mix(in srgb, var(--bg-1) 80%, transparent); }
.ov-top .syms { padding: 0; }
.ov-top .sym { padding: 5px 12px; font-size: 14px; }
.ov-top .positions { gap: 6px; margin: 0; }
.ov-top .pos { padding: 6px 10px; gap: 8px; background: color-mix(in srgb, var(--bg-0) 82%, transparent); backdrop-filter: blur(10px); }
.ov-top .pos .dir { width: 32px; height: 32px; } .ov-top .pos .dir .i { width: 18px; height: 18px; }
.ov-top .pos .pnl { font-size: 18px; }
.ov-top .pos .meta { font-size: 11px; }
.ov-top .pos .x { width: 42px; height: 42px; }
.ov-top .strip { padding: 0; }
.ov-bottom { position: absolute; z-index: 5; left: 12px; right: 12px; bottom: 10px; display: grid; gap: 8px; }
.ov-bottom .ticket { padding: 12px; border-radius: 22px; background: color-mix(in srgb, var(--bg-0) 90%, transparent); backdrop-filter: blur(14px); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.amt-row { display: flex; align-items: center; gap: 8px; }
.amt-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--bg-0) 82%, transparent); backdrop-filter: blur(10px); font-weight: 900; font-variant-numeric: tabular-nums; color: var(--ink); }
.amt-pill > span { color: var(--mute); }
.amt-pill .i { width: 16px; height: 16px; }
.amt-pill .chev { transition: rotate .2s; rotate: -90deg; }
.amt-pill[aria-expanded="true"] .chev { rotate: 90deg; }
.amt-pill .levx { color: var(--down); }
.ov-bottom { grid-template-columns: minmax(0, 1fr); }
.amt-pill { min-width: 0; overflow: hidden; white-space: nowrap; }
.amt-row .pbag { margin-left: auto; padding: 6px 12px; flex: none; }
.sym-row { display: flex; align-items: center; gap: 8px; }
.sym-row .syms { flex: 1; min-width: 0; }
.sym-row .eq { flex: none; font-size: 13px; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--bg-0) 70%, transparent); }
.sym-row .eq .i { width: 16px; height: 16px; }
.ov-bottom .go-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ov-bottom .why:empty { display: none; }
.ov-bottom .gobtn { min-height: 74px; }
.ov-bottom .go-row { position: static; margin: 0; }
.explain { margin: 4px 0 0; color: var(--mute); font-size: 14px; text-align: center; }
.sbig .sub { display: block; font-size: 12px; letter-spacing: .12em; color: var(--mute); }
.sbig:has(.sub) { flex-wrap: wrap; }

/* on PLAY the little notices show at the top, over the price row, not over the chart */
body.play-on .toasts { top: calc(60px + env(safe-area-inset-top)); bottom: auto; }


/* ---------- PLAY like bloxwap.app (2026-10-20) ---------- */
:root { --chart-bg: #000; }
body[data-skin="glass"] { --chart-bg: #fbfaf6; }
body[data-skin="printer"] { --chart-bg: #021008; }
body.play-on .top { display: none; }
#v-play .chart-wrap { background: var(--chart-bg); }
#v-play .chart-wrap .wm { position: absolute; left: 50%; top: 50%; width: 120px; height: 130px; translate: -50% -50%; color: var(--ink); opacity: .035; pointer-events: none; }
.ov-top { top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; gap: 8px; }
.bx-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bx-top .bx-pill { min-width: 0; flex: 0 1 auto; }
.bx-top .bx-pill b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 9%, var(--chart-bg)); color: var(--ink); font-family: var(--font-num, ui-monospace, Menlo, monospace); }
.bx-pill .price { font-size: 20px; font-weight: 800; letter-spacing: 0; text-shadow: none; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.bx-pill b#equity { font-size: 20px; font-weight: 800; padding-left: 8px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.bx-coin { width: 32px !important; height: 32px !important; font-size: 15px !important; }
.bx-round { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--mute); }
.bx-round .i { width: 14px; height: 14px; rotate: 90deg; }
/* PAPER beside the balance (2026-10-20 user); tapping it opens WALLET */
.bx-paper { display: inline-flex; align-items: center; gap: 3px; padding-left: 8px; margin-left: 2px; border-left: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); color: var(--gold); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; font-weight: 800; }
.bx-paper .i { width: 16px; height: 16px; }
/* coin marks: BTC and ETH in their own colours */
.cn-logo { width: 1.35em; height: 1.35em; flex: none; }
#coinicon { display: inline-flex; align-items: center; gap: 5px; }
#coinicon .cn-logo { width: 22px; height: 22px; }
.bx-ava { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.bx-ava .mascot { width: 26px; height: 28px; color: var(--ink); }
.bx-ava.big { width: 84px; height: 84px; } .bx-ava.big .mascot { width: 60px; height: 64px; }
.bx-live { position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--chart-bg); }
.ov-top .syms { padding: 0; }
.bx-card { position: absolute; z-index: 5; left: 10px; top: var(--card-top, 40%); display: grid; gap: 10px; padding: 12px 12px 10px; min-width: 112px; border-radius: 18px; background: color-mix(in srgb, var(--ink) 7%, var(--chart-bg)); color: var(--ink); text-align: left; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.bx-card > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.bx-card > span .i { width: 16px; height: 16px; color: var(--mute); }
.bx-card b { font-weight: 800; }
.bx-card .levx { color: var(--ink); }
.bx-tag { justify-self: start; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--mute); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.ov-bottom { bottom: 10px; left: 10px; right: 10px; }
.ov-bottom .go-row { gap: 10px; }
.ov-bottom .gobtn { min-height: 64px; border-radius: 999px; box-shadow: none; font-size: 24px; letter-spacing: .04em; }
.ov-bottom .gobtn.up { background: color-mix(in srgb, var(--up) 22%, var(--chart-bg)); color: var(--up); }
.ov-bottom .gobtn.down { background: color-mix(in srgb, var(--down) 22%, var(--chart-bg)); color: var(--down); }
.ov-bottom .gobtn .cutp { opacity: .75; }
.bx-sheet { position: absolute; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; gap: 10px; padding: 26px 16px 16px; border-radius: 28px 28px 0 0; background: color-mix(in srgb, var(--ink) 6%, var(--chart-bg)); box-shadow: 0 -20px 50px rgba(0,0,0,.5); color: var(--ink); animation: up .25s cubic-bezier(.2, .9, .3, 1); }
.bx-handle { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 72px; height: 6px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.bx-x { position: absolute; top: 14px; right: 14px; }
.ov-bottom .ticket { display: none; }

/* the amount card as one row above DOWN | UP, so the chart runs from the left edge (2026-10-20) */
.bx-card.bx-row { position: static; translate: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; min-width: 0; border-radius: 999px; }
.bx-card.bx-row > span { gap: 6px; font-size: 14px; }
.bx-card.bx-row .bx-tag { justify-self: auto; }

/* Opening something never moves the layout (2026-10-20 user): it floats over it. */
.ov-top .syms { position: absolute; z-index: 25; top: 58px; left: 0; display: grid; gap: 6px; padding: 8px; border-radius: 18px; background: color-mix(in srgb, var(--ink) 8%, var(--chart-bg)); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.ov-top .syms .sym { justify-content: flex-start; }
.ov-bottom .why { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); margin: 0 auto; width: fit-content; max-width: 100%; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, var(--chart-bg)); pointer-events: none; }
.ov-bottom .go-row, .ov-bottom .big-play, .ov-bottom .locked { min-height: 64px; height: 64px; }
.ov-bottom .big-play { font-size: 22px; }
.ov-bottom .big-play small { margin-top: -6px; }

/* Plain PLAY (2026-10-20 user: "too many icons", "less of an AI-demo look"): flat boxes with a thin border, small
   corners, no glow or shadow, words and numbers instead of icons. */
#v-play :is(.bx-pill, .bx-card, .syms) { border-radius: 8px; box-shadow: none; backdrop-filter: none; background: var(--chart-bg); border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); color: var(--ink); }
#v-play .bx-pill { padding: 6px 10px; gap: 8px; }
#v-play .bx-pill .price, #v-play .bx-pill b#equity { font-size: 17px; }
.bx-sym { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--mute); }
.bx-caret { font-size: 11px; color: var(--mute); }
#v-play .bx-ava { width: 26px; height: 26px; background: none; }
#v-play .bx-ava .mascot { width: 22px; height: 24px; }
#v-play .heat.hot { animation: none; }
#v-play .bx-card.bx-row { padding: 6px 12px; }
#v-play .bx-card.bx-row > span { flex-direction: column; align-items: flex-start; gap: 0; font-size: 14px; }
#v-play .bx-card.bx-row small { font-size: 9px; letter-spacing: .1em; color: var(--mute); }
#v-play .ov-bottom .gobtn { border-radius: 12px; box-shadow: none; font-size: 20px; letter-spacing: .08em; min-height: 60px; height: 60px; }
#v-play .ov-bottom .gobtn .cutp { font-size: 10px; letter-spacing: .04em; }
#v-play .bx-sheet { border-radius: 16px 16px 0 0; box-shadow: 0 -1px 0 color-mix(in srgb, var(--ink) 14%, transparent); }
#v-play .bx-handle { background: color-mix(in srgb, var(--ink) 30%, transparent); box-shadow: none; width: 44px; height: 4px; }
body.play-on .toast { border-radius: 8px; box-shadow: none; background: var(--chart-bg); border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); padding: 6px 12px; font-size: 13px; }
body.play-on .toast .i { width: 16px; height: 16px; }

/* ✕ beside an ENTRY badge on the chart (closes that position) */
.chartx { position: absolute; inset: 0; pointer-events: none; }
.chartx .cx { position: absolute; left: 0; top: 0; transform: translate(var(--x), calc(var(--y) - 50%)); width: 22px; height: 18px; display: grid; place-items: center; border-radius: 3px; pointer-events: auto; font-size: 11px; font-weight: 900; color: var(--ink); background: color-mix(in srgb, var(--ink) 14%, var(--chart-bg)); }
/* the price at the top: the same monospace figures as the balance, whatever the look */
#v-play .bx-pill .price { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 800; letter-spacing: 0; background: none; -webkit-background-clip: border-box; background-clip: border-box; }
#v-play .bx-pill .price:not(.tick-up):not(.tick-down) { color: var(--ink); }
#v-play .bx-pill .price.tick-up { color: var(--up); }
#v-play .bx-pill .price.tick-down { color: var(--down); }

/* zoom: the chart takes the gestures (no page zoom / scroll there); the time it shows, bottom left */
#v-play .chart-wrap { touch-action: none; }
.zoomlbl { position: absolute; left: 12px; bottom: var(--zb, 200px); font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--mute); font-family: ui-monospace, "SF Mono", Menlo, monospace; pointer-events: none; }

/* tap a merged badge: its list floats left of it */
.chartx .cg { position: absolute; left: var(--l); top: var(--t); width: var(--w); height: var(--h); pointer-events: auto; background: transparent; border-radius: 4px; }
.chartx .cg:active { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.grppop { position: absolute; z-index: 8; top: var(--gp-top); right: var(--gp-right); min-width: 190px; max-width: calc(100% - 24px); display: grid; gap: 2px; padding: 6px 6px 6px 10px; border-radius: 8px; background: var(--chart-bg); border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); box-shadow: 0 10px 28px rgba(0,0,0,.45); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--ink); }
.gp-head { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--mute); padding: 2px 0 4px; }
.gp-row { display: grid; grid-template-columns: 14px auto 1fr auto auto; align-items: center; gap: 8px; min-height: 26px; white-space: nowrap; }
.gp-row .up { color: var(--up); } .gp-row .down { color: var(--down); } .gp-row .liq { color: var(--liq, #ff4d6d); }
.gp-mute { color: var(--mute); font-size: 11px; }
.gp-x { width: 24px; height: 22px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 14%, var(--chart-bg)); color: var(--ink); font-weight: 900; font-size: 11px; }
.gp-cols { min-height: 16px; font-size: 9px; font-weight: 800; letter-spacing: .08em; color: var(--mute); }

/* ---------- PLAY header and amount without boxes (2026-10-20 user: "everything is a panel, it looks AI-made") ----------
   Type straight on the chart, as the official screen does: the coin and its price on the left, the money on the right,
   the amount as one line of arithmetic above the buttons. Numbers in the system sans with tabular figures. */
#v-play .bx-top { align-items: flex-start; }
#v-play .hd-l { display: grid; justify-items: start; gap: 0; min-width: 0; }
#v-play .hd-coin { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; font: 600 15px/1.2 -apple-system, "SF Pro Text", system-ui, sans-serif; color: var(--ink); }
#v-play #coinicon { display: inline-flex; align-items: center; gap: 6px; }
#v-play #coinicon .cn-logo { width: 20px; height: 20px; }
#v-play .hd-chev { width: 12px; height: 12px; color: var(--mute); rotate: 90deg; transition: rotate .2s cubic-bezier(.45, 0, .15, 1); }
#v-play .hd-coin[aria-expanded="true"] .hd-chev { rotate: -90deg; }
#v-play .hd-l .price { font: 600 30px/1.1 -apple-system, "SF Pro Display", system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--ink); text-shadow: none; transition: color .4s; }
/* a tick tints the price for a moment, then it is ink again */
#v-play .hd-l .price.tick-up, #v-play .hd-l .price.tick-down { color: var(--ink); }
#v-play .hd-l .price.tick-up { animation: tick-up .9s cubic-bezier(.45, 0, .15, 1); }
#v-play .hd-l .price.tick-down { animation: tick-down .9s cubic-bezier(.45, 0, .15, 1); }
@keyframes tick-up { from { color: var(--up); } }
@keyframes tick-down { from { color: var(--down); } }
#v-play .zoomlbl { font: 500 11px/1 -apple-system, system-ui, sans-serif; letter-spacing: 0; }
#v-play .hd-bal { display: inline-flex; align-items: center; gap: 10px; padding: 2px 0; color: var(--ink); }
#v-play .hd-money { display: grid; justify-items: end; gap: 1px; font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
#v-play .hd-money #equity { font-size: 17px; font-weight: 600; padding: 0; }
#v-play .hd-money .bx-paper { padding: 0; margin: 0; border: 0; font: 500 13px/1.2 -apple-system, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
#v-play .hd-money .bx-paper .i { width: 13px; height: 13px; }
/* the bunny keeps its ears: room above the circle, nothing clipped */
#v-play .hd-bal .bx-ava { width: 36px; height: 36px; overflow: visible; background: color-mix(in srgb, var(--ink) 7%, transparent); }
#v-play .hd-bal .bx-ava .mascot { width: 26px; height: 29px; margin-top: -6px; overflow: visible; }
/* the coin list: drops from the coin, anchored to it */
#v-play .ov-top .syms { position: absolute; z-index: 25; top: 34px; left: 0; display: grid; gap: 2px; width: 170px; padding: 6px; border-radius: 14px; background: var(--chart-bg); border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); box-shadow: 0 18px 40px -12px rgba(20, 40, 38, .28); transform-origin: 16px 0; animation: drop .2s cubic-bezier(.45, 0, .15, 1); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
#v-play .coin-row { display: grid; grid-template-columns: 22px 1fr 16px; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; font: 600 15px/1 -apple-system, "SF Pro Text", system-ui, sans-serif; color: var(--ink); text-align: left; }
#v-play .coin-row .cn-logo { width: 22px; height: 22px; }
#v-play .coin-row .sp { font-weight: 500; color: var(--mute); font-variant-numeric: tabular-nums; }
#v-play .coin-row .ck { width: 16px; height: 16px; color: var(--accent); }
#v-play .coin-row[aria-selected="true"] { background: color-mix(in srgb, var(--ink) 5%, transparent); }
#v-play .coin-row:active { background: color-mix(in srgb, var(--ink) 9%, transparent); }
/* the amount: "$10 ×1000 = $10K", one line, tap to change */
#v-play .amt-line { justify-self: center; display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 10px; font: 600 17px/1.2 -apple-system, "SF Pro Text", system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--ink); }
#v-play .amt-line .op { font-weight: 500; color: var(--mute); }
#v-play .amt-line .hd-chev { align-self: center; }
#v-play .amt-line:active { background: color-mix(in srgb, var(--ink) 6%, transparent); }
#v-play .ov-bottom .gobtn { min-height: 56px; height: 56px; border-radius: 14px; font: 700 19px/1 -apple-system, "SF Pro Text", system-ui, sans-serif; letter-spacing: .06em; }
body[data-skin="printer"] #v-play :is(.hd-coin, .hd-l .price, .hd-money, .hd-money .bx-paper, .coin-row, .amt-line, .ov-bottom .gobtn) { font-family: var(--font-num); }

/* ---------- PLAY scrolls: the chart, then POSITIONS / HISTORY (2026-10-20 user) ----------
   The chart stage is the screen less the list's header, which peeks at the bottom to say there is more. A vertical
   swipe on the chart scrolls the page (pan-y); two fingers still zoom it. */
/* no scroll snapping: it pulled the page to the list when the rows changed (2026-10-20 user: "CLOSE ALL scrolls the screen down") */
#v-play { overflow-y: auto; overscroll-behavior: contain; background: var(--chart-bg); }
#v-play .stage { position: relative; height: calc(100% - 46px); }
#v-play .chart-wrap { touch-action: pan-y; }
#v-play .book { position: relative; min-height: calc(100% - 46px); padding: 0 14px 24px; background: var(--chart-bg); border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; color: var(--ink); }
#v-play .book-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 46px; background: var(--chart-bg); }
#v-play .book-tabs { display: flex; gap: 18px; height: 100%; }
#v-play .book-tab { height: 100%; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--mute); border-bottom: 2px solid transparent; }
#v-play .book-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
#v-play .book-tab span { font-variant-numeric: tabular-nums; color: var(--accent); }
#v-play .book-closeall { padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--down); background: color-mix(in srgb, var(--down) 10%, transparent); }
#v-play .book-closeall:disabled { opacity: .35; }
#v-play .book-list { display: grid; }
#v-play .bk-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto auto 66px 30px; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); font-size: 14px; font-variant-numeric: tabular-nums; }
#v-play .bk-row:first-child { border-top: 0; }
#v-play .bk-main { display: grid; gap: 2px; min-width: 0; } #v-play .bk-main b { font-weight: 600; }
#v-play .bk-row small { display: block; font-size: 11px; color: var(--mute); font-weight: 500; }
#v-play .bk-px { display: grid; gap: 2px; text-align: right; font-size: 13px; }
#v-play .bk-px.liq { color: var(--liq, #e5484d); }
#v-play .bk-pnl { text-align: right; font-weight: 600; }
#v-play .bk-x { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
#v-play .bk-x .i { width: 14px; height: 14px; }
#v-play .book .wl-row { font-family: inherit; }
#v-play .book .wl-note { padding: 28px 0; }
/* the amount sheet stays at the bottom of the screen while the page scrolls */
#v-play .bx-sheet { position: fixed; z-index: 30; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
#v-play .book .up { color: var(--up); } #v-play .book .down { color: var(--down); }
#v-play .book .wl-dir.up { color: var(--up); } #v-play .book .wl-dir.down { color: var(--down); }
.wl-btns.one { grid-template-columns: 1fr; }
/* the amount in plain words: BET $10 · LEV 100x · BUY $1K (2026-10-20 user: the "=" sum read as a puzzle) */
#v-play .amt-line { align-items: center; gap: 18px; }
#v-play .amt-line .kv-i { display: inline-flex; align-items: baseline; gap: 5px; }
#v-play .amt-line .kv-i small { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--mute); }
#v-play .amt-line .kv-i b { font-weight: 600; }
/* the buttons sit at the bottom of the first screen; the list starts below it */
#v-play .stage { height: 100%; }
#v-play .book { min-height: 100%; }

/* ---------- WALLET in PLAY's language (2026-10-20 user: "make WALLET's UI match PLAY") ----------
   The same flat page as PLAY: the chart's background, no header, no glass cards, the system sans with tabular
   figures, sections split by a hairline, buttons tinted like UP / DOWN. */
body.wallet-on { background: var(--chart-bg); }
body.wallet-on .top, body.wallet-on .bg { display: none; }
body.wallet-on main { padding-top: calc(8px + env(safe-area-inset-top)); }
body.wallet-on #v-wallet { gap: 0; font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--ink); }
body.wallet-on #v-wallet .wl-card { gap: 12px; padding: 20px 2px; border: 0; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); }
body.wallet-on #v-wallet .wl-card:first-child { border-top: 0; }
body.wallet-on #v-wallet .wl-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--mute); }
body.wallet-on #v-wallet .wl-k .i { display: none; }
body.wallet-on #v-wallet .wl-big { font: 600 34px/1.1 -apple-system, "SF Pro Display", system-ui, sans-serif; letter-spacing: -.01em; }
body.wallet-on #v-wallet .wl-split { display: flex; gap: 32px; }
body.wallet-on #v-wallet .wl-split > span { padding: 0; background: none; border-radius: 0; }
body.wallet-on #v-wallet .wl-split small { font-size: 11px; font-weight: 600; letter-spacing: .06em; }
body.wallet-on #v-wallet .wl-split b { font: 600 17px/1.3 -apple-system, system-ui, sans-serif; }
body.wallet-on #v-wallet .btn { min-height: 50px; border-radius: 14px; border: 0; box-shadow: none; background: color-mix(in srgb, var(--ink) 6%, var(--chart-bg)); color: var(--ink); font: 600 15px/1 -apple-system, "SF Pro Text", system-ui, sans-serif; letter-spacing: .04em; }
body.wallet-on #v-wallet .btn .i { display: none; }
body.wallet-on #v-wallet .btn.pri { background: color-mix(in srgb, var(--up) 22%, var(--chart-bg)); color: var(--up); }
body.wallet-on #v-wallet .wl-note { font: 500 11px/1.4 -apple-system, system-ui, sans-serif; letter-spacing: .04em; text-align: left; }
body.wallet-on #v-wallet .wl-row { font-family: inherit; border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); padding: 12px 2px; }
body.wallet-on #v-wallet .wl-row:first-child { border-top: 0; }
body.wallet-on #v-wallet .wl-dir.up { color: var(--up); } body.wallet-on #v-wallet .wl-dir.down { color: var(--down); }
body.wallet-on .tabs { background: var(--chart-bg); }
/* BET and LEV are what the person picks; the buy follows from them, so it is small (2026-10-20 user) */
#v-play .amt-line .kv-buy b { font-size: 13px; font-weight: 500; color: var(--mute); }
#v-play .amt-line .kv-buy small { font-size: 10px; }

/* the size a tap buys, under UP / DOWN */
#v-play .ov-bottom .gobtn { flex-direction: column; gap: 3px; }
#v-play .ov-bottom .gobtn .go-amt { font: 600 13px/1 -apple-system, "SF Pro Text", system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: 0; opacity: .8; }

/* the amount row: BET (tap for its chips) and LEV on a slider (2026-10-20 user) */
#v-play .amt-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 0 4px; }
#v-play .amt-row .amt-line { justify-self: start; padding: 6px 4px; }
#v-play .lev-slide { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; min-width: 0; }
#v-play .lev-slide .kv-i { display: inline-flex; align-items: baseline; gap: 5px; font: 600 17px/1.2 -apple-system, "SF Pro Text", system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 92px; }
#v-play .lev-slide .kv-i small { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--mute); }
#v-play #levMain { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; touch-action: pan-x; }
#v-play #levMain::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--down) var(--p, 0%), color-mix(in srgb, var(--ink) 12%, transparent) var(--p, 0%)); }
#v-play #levMain::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--chart-bg); border: 2px solid var(--down); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
#v-play #levMain::-moz-range-track { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
#v-play #levMain::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--down); }
#v-play #levMain::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--chart-bg); border: 2px solid var(--down); }
/* the amount sheet now sets the bet only */
#v-play #ticket :is(.amt-buy, #buys, #lev) { display: none; }
/* the "i" next to POINT */
.wl-info { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; border-radius: 50%; border: 1px solid currentColor; font: italic 700 11px/1 Georgia, serif; color: var(--mute); }
.sheet .info .explain { max-width: 320px; text-align: left; font: 15px/1.5 -apple-system, system-ui, sans-serif; color: var(--ink); }

/* UP left, DOWN right (Papertrade's order); the menu's ⇄ puts DOWN on the left */
#v-play .go-row #goUp { order: 0; } #v-play .go-row #goDown { order: 1; }
body[data-down-left] #v-play .go-row #goDown { order: 0; } body[data-down-left] #v-play .go-row #goUp { order: 1; }
.btn.swap { letter-spacing: .04em; } .btn.swap .up { color: var(--up); } .btn.swap .dn { color: var(--down); }
/* Money Printer as the "money printer" video (2026-10-21): the video behind the chart, dark enough for the line and
   the badges; one colour over the whole screen cycling yellow → blue → green → pink as the video does (the scanlines
   stay on top at z 70). Reduced motion: the colour holds still. */
#v-play .chart-wrap .mpvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; pointer-events: none; }
body[data-skin="printer"] #v-play .chart-wrap { background: #000; }
#v-play .chart-wrap .mpvid ~ .chart { position: relative; } /* the canvas over the video (the others are positioned already) */
body[data-skin="printer"]::before { content: ""; position: fixed; inset: 0; z-index: 69; pointer-events: none; mix-blend-mode: color; opacity: .38; background: #e8ff3a; animation: mp-tint 16s steps(1) infinite; }
@keyframes mp-tint { 0% { background: #e8ff3a; } 25% { background: #6b5bff; } 50% { background: #39ff88; } 75% { background: #ff5fa2; } }
@media (prefers-reduced-motion: reduce) { body[data-skin="printer"]::before { animation: none; } }
.float.loss { color: var(--down); }
/* DISPLAY in the menu (2026-10-21): the button order, and switches for the chart's parts */
.dopt { width: 100%; margin-top: 18px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); text-align: left; }
.dopt h3 { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--mute); }
.dopt h4 { margin: 14px 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--mute); }
.dopt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.dopt-row > span, .dopt-sw > span { font-size: 15px; font-weight: 650; color: var(--ink); }
.dopt-row .btn.swap { width: auto; min-width: 150px; margin: 0; }
.dopt-sw { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 48px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.dopt-sw i { position: relative; width: 46px; height: 28px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 18%, transparent); transition: background .2s; flex: none; }
.dopt-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: translate .2s cubic-bezier(.3, .9, .3, 1); }
.dopt-sw[aria-checked="true"] i { background: var(--up); }
.dopt-sw[aria-checked="true"] i::after { translate: 18px 0; }
.dopt-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .dopt-sw i, .dopt-sw i::after { transition: none; } }
