:root {
  /* design 15 · flat screen print: rose paper, yellow-lime blocks, ink, cobalt for action and gains */
  --bg: #f77fa6; --panel: #e4f36b; --panel2: #f77fa6; --ink: #1d1530; --muted: rgba(29,21,48,.62); --line: rgba(29,21,48,.16);
  --accent: #3557ff; --up: #3557ff; --down: #e8467c; --gold: #1d1530; --near: #1d1530; --usdc: #3557ff; --crab: #ff7a1a; --ex: #1d1530;
  --font: "Space Grotesk", "Inter Tight", system-ui, sans-serif; --mono: "Space Grotesk", "Inter Tight", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.app { max-width: 520px; margin: 0 auto; min-height: 100dvh; padding: max(10px, env(safe-area-inset-top)) 16px calc(92px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
main { display: flex; flex-direction: column; gap: 12px; }
.top { display: flex; align-items: center; gap: 10px; }
.logo { color: var(--ink); display: flex; align-items: center; }
.logo-svg { display: block; height: 39px; width: auto; }
.ob-logo { color: var(--ink); margin: 0 0 6px; } .ob-logo .logo-svg { height: 39px; }
.logo-svg.sm { height: 18px; }
@media (max-width: 390px) { .logo .logo-svg { height: 30px; } }
.mode { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.mode button { border: 0; background: transparent; border-radius: 99px; padding: 5px 12px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.mode button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.mode button[data-mode="live"][aria-selected="true"] { background: var(--up); color: #062014; }
.help-btn { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-weight: 700; cursor: pointer; flex: none; }
.help-btn:hover { color: inherit; }
.help-btn.sm { margin-left: 6px; width: 22px; height: 22px; font-size: 12px; vertical-align: middle; }
.wallet-btn { margin-left: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 11px; cursor: pointer; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.wallet-btn small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.wallet-btn b { font-family: var(--mono); font-size: 15px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
h2 { margin: 0; font-size: 18px; letter-spacing: -0.01em; } h3 { margin: 12px 0 6px; font-size: 14px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--up); } .neg { color: var(--down); }
.hint { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 6px 0; }
.err { color: var(--down); font-size: 13px; min-height: 1em; margin: 6px 0 0; }
.tag { font-size: 11px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.row-gap { display: flex; gap: 8px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; }
.price-big { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0 4px; }
#candles { width: 100%; height: 230px; display: block; }
#arena { width: 100%; height: 440px; display: block; margin-top: 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { border: 1px solid var(--line); background: var(--panel2); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.field { display: flex; align-items: center; gap: 8px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.field span { color: var(--muted); font-weight: 700; }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-family: var(--mono); font-size: 22px; font-weight: 600; }
.field.small input { font-size: 15px; font-family: var(--font); font-weight: 500; }
.field:focus-within { border-color: var(--accent); }
.select { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; flex: 1; margin-top: 10px; }
.btn { display: block; width: 100%; border: 0; border-radius: 14px; padding: 14px; font-weight: 800; font-size: 16px; cursor: pointer; background: var(--accent); color: #fff; margin-top: 12px; }
.btn.up { background: var(--up); color: #062014; } .btn.down { background: var(--down); color: #fff; } .btn.crab { background: var(--crab); color: #2a0e05; }
.btn.ghost { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); }
.btn.small { width: auto; display: inline-block; padding: 8px 12px; font-size: 13.5px; border-radius: 10px; margin-top: 8px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn:focus-visible, .chip:focus-visible, .mode button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.link { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 10px 0 0; display: block; margin: 0 auto; }
.rows { display: grid; gap: 6px; margin: 10px 0 0; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.kv span:first-child { color: var(--muted); } .kv span:last-child { font-family: var(--mono); }
.pwr { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.pwr span { color: var(--muted); font-weight: 600; }
.pwr b { font-size: 26px; color: var(--up); }
input[type=range] { width: 100%; accent-color: var(--up); margin: 6px 0 0; }
.ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-family: var(--mono); }
/* buy card + slim curve card side by side */
.buyrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(118px, 36%); gap: 10px; align-items: stretch; }
.buyrow .flip { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.buyrow .flip .face { min-width: 0; }
.buyrow .field input { min-width: 0; width: 100%; }
.buyrow .chips { flex-wrap: wrap; }
.curvecard { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; min-width: 0; }
.cc-k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; display: flex; justify-content: space-between; }
.cc-k b { color: var(--ink); font-size: 13px; }
.cc-plot { position: relative; flex: 1; min-height: 130px; }
#curveCv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cc-row { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.cc-row b { font-size: 13px; }
.cc-note { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
/* result card: market vs your curve on one chart */
.r-chart { position: relative; height: 170px; margin: 12px 0 4px; }
#rChart { position: absolute; inset: 0; width: 100%; height: 100%; }
.r-legend { display: flex; justify-content: center; gap: 16px; font-size: 12.5px; color: var(--muted); }
.r-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: 3px; margin-right: 6px; }
.r-legend b { color: var(--ink); font-weight: 600; }
.stake-plot { position: relative; height: 130px; margin: 6px 0 4px; }
#stakeCv { position: absolute; inset: 0; width: 100%; height: 100%; }
/* crab: the deposit button stays on screen above the tab bar */
#vBtn { position: sticky; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 4; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
#vBtn.soft { opacity: .7; }
.r-head { display: flex; justify-content: space-between; align-items: center; margin: -6px 0 2px; }
.r-logo { color: var(--ink); } .r-logo .logo-svg.rl { height: 30px; }
.r-asset { color: var(--ink); display: flex; align-items: center; gap: 8px; } .r-asset b { font-weight: 800; font-size: 20px; letter-spacing: .02em; } .near-svg { display: block; height: 26px; width: 26px; }
.r-hero { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 30px 0 2px; }
.r-emoji { font-size: 40px; line-height: 1; }
.r-pct { font-family: var(--font); font-weight: 900; font-size: clamp(44px, 14vw, 60px); letter-spacing: -.045em; line-height: 1; }
.r-pct.pos { color: var(--up); } .r-pct.neg { color: var(--down); }
.r-sub { color: var(--muted); font-size: 14px; font-weight: 600; }
#rChart { z-index: 1; }
.r-card.win { background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--up) 14%, var(--panel)), var(--panel) 65%); }
.r-card.lose { background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--down) 12%, var(--panel)), var(--panel) 65%); }
.r-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
#rShare { display: flex; align-items: center; justify-content: center; gap: 8px; }
#pLabel, #ccP, #posP { font-family: var(--font); font-weight: 800; }
.px-row { display: flex; align-items: center; gap: 12px; }
.fund { color: var(--down); font-weight: 700; font-size: 14px; white-space: nowrap; }
canvas.celebrate { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 70; }
.actcard { padding: 10px; } .actcard .btn { margin-top: 0; } .actcard .err:empty { display: none; }
#meltNote:empty { display: none; }
/* flip card */
.flip { display: grid; perspective: 1400px; }
.flip .face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.flip .back { transform: rotateY(180deg); }
.flip.flipped .front { transform: rotateY(-180deg); }
.flip.flipped .back { transform: rotateY(0); }
.flip:not(.flipped) .back, .flip.flipped .front { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .flip .face { transition: none; } }
.pos-value { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.melt { height: 8px; border-radius: 4px; background: var(--panel2); overflow: hidden; margin-top: 10px; }
.melt i { display: block; height: 100%; background: linear-gradient(90deg, var(--down), var(--gold), var(--up)); width: 100%; transition: width .2s linear; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.stat { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; }
.stat small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.stat b { font-family: var(--mono); font-size: 16px; white-space: nowrap; }
.stats .stat { padding: 8px 9px; min-width: 0; } .stat small { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--panel2); margin: 12px 0 4px; }
.bar i { display: block; height: 100%; transition: width .4s; }
/* analytics: what's moving */
.arena-live { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.flows { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.flows li { display: grid; grid-template-columns: 22px 64px 1fr; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); }
.flows li:first-child { border-top: 0; }
.flows .path { font-size: 15px; white-space: nowrap; } .flows .path b { color: var(--muted); font-size: 12px; margin: 0 2px; }
.flows .path u { text-decoration: none; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 4px; vertical-align: 2px; }
.flows li { grid-template-columns: 22px 92px 1fr; }
.flows li > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.flows li > span:last-child b { font-size: 14px; } .flows small { color: var(--muted); font-size: 12px; }
.tok { justify-self: center; display: block; }
.tok.coin { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
.tok.fund { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tok.yield { width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
.tok.bar { width: 16px; height: 9px; border-radius: 2px; background: var(--crab); }
.tok.ring { width: 16px; height: 16px; border-radius: 50%; border: 4px solid var(--usdc); border-top-color: var(--near); }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; vertical-align: 0; margin-right: 3px; } .sw.usdc { background: var(--usdc); } .sw.near { background: var(--near); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend em { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.segment { display: flex; background: var(--panel2); border-radius: 10px; padding: 3px; gap: 3px; margin-top: 12px; }
.segment button { flex: 1; border: 0; border-radius: 8px; padding: 7px; background: transparent; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--muted); }
.segment button[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; justify-content: center; gap: 6px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); z-index: 5; }
nav.tabs button { flex: 0 1 160px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; color: var(--muted); font-weight: 700; font-size: 12px; }
nav.tabs { align-items: flex-end; }
nav.tabs button.side { flex: 0 1 104px; font-size: 11px; }
nav.tabs button.side .ico { font-size: 20px; }
nav.tabs button.main { flex: 0 1 190px; font-size: 13.5px; padding: 8px 6px; }
nav.tabs button.main .ico { font-size: 30px; }
nav.tabs .ico { font-size: 25px; line-height: 1; filter: grayscale(1) opacity(.55); transition: filter .15s; }
nav.tabs button[aria-selected="true"] { color: var(--ink); background: var(--panel2); }
nav.tabs button[aria-selected="true"] .ico { filter: none; }
.ff { position: fixed; top: calc(max(10px, env(safe-area-inset-top)) + 46px); right: max(12px, calc(50% - 248px)); z-index: 30; background: color-mix(in srgb, var(--gold) 22%, transparent); border: 1.5px solid color-mix(in srgb, var(--gold) 70%, transparent); color: var(--gold); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-weight: 800; font-size: 20px; letter-spacing: .02em; padding: 10px 18px; border-radius: 99px; box-shadow: 0 6px 24px rgba(0,0,0,.3); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.hand { position: fixed; z-index: 25; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; animation: bob 1s ease-in-out infinite; }
.hand .finger { font-size: 30px; }
.hand span:last-child { background: var(--up); color: #062014; font-weight: 800; font-size: 13px; padding: 5px 10px; border-radius: 10px; white-space: nowrap; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.overlay { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; justify-content: center; }
.ob { width: 100%; max-width: 520px; padding: max(24px, env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.ob-cv { width: 100%; flex: 1 1 auto; min-height: 220px; max-height: 360px; }
.ob-kicker { color: var(--accent); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-top: 12px; }
.ob-title { font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; margin: 8px 0; }
.ob-text { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0; }
.ob-dots { display: flex; gap: 6px; margin: 18px 0 8px; }
.ob-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .2s; }
.ob-dots i.on { width: 22px; background: var(--accent); }
.ob-actions { display: flex; gap: 10px; align-items: center; }
.ob-actions .btn { margin: 0; }
.ob-actions .ghost { flex: 0 0 auto; }
.modal-bg { position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px 18px; text-align: center; max-height: 90dvh; overflow: auto; }
.sheet-bg { align-items: flex-end; padding: 0; }
.sheet { max-width: 520px; text-align: left; border-radius: 22px 22px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.big-ico { font-size: 46px; }
.thoughts { text-align: left; padding-left: 20px; line-height: 1.5; color: var(--muted); }
.thoughts li { margin: 8px 0; }
.ci-cv { display: block; width: 100%; height: 64px; margin: 6px 0 2px; background: var(--panel2); border-radius: 10px; }
.ci-cv.tall { height: 92px; } .thoughts b { color: var(--ink); }
.x { border: 0; background: var(--panel2); border-radius: 99px; width: 32px; height: 32px; cursor: pointer; }
.addr { font-family: var(--mono); font-size: 12px; word-break: break-all; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.addr-inline { font-size: 11.5px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 13.5px; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.toast.err { background: var(--down); color: #fff; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: s .7s linear infinite; vertical-align: -2px; }
@keyframes s { to { transform: rotate(360deg); } }

/* onboarding: play money flies into the balance */
.ob-fly { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.ob-fly > div { position: absolute; transform: translate(-50%, -50%); will-change: transform; }
.ob-fly-amt { font-family: var(--mono); font-weight: 800; color: var(--accent); white-space: nowrap; line-height: 1; }
.ob-fly-coin { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.wallet-btn.pop { animation: balpop .7s ease; }
@keyframes balpop { 0% { transform: scale(1); } 35% { transform: scale(1.18); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 35%, transparent); } 100% { transform: scale(1); } }

/* ── design 15 · flat screen print: no borders, no shadows, no gradients, pill shapes ── */
.card, .modal, .stat, .addr, .field, .chip, .tag, .wallet-btn, .help-btn, .mode, .btn.ghost, .select { border: 0 !important; box-shadow: none !important; }
.card { border-radius: 22px; } .modal { border-radius: 26px; }
header.top { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; } header.top .mode { justify-self: center; }
.logo { color: #fff; } .ob-logo { color: #fff; }
.mode { background: var(--ink); padding: 4px; } .mode button { color: var(--panel); }
.mode button[aria-selected="true"], .mode button[data-mode="live"][aria-selected="true"] { background: var(--panel); color: var(--ink); }
.help-btn { margin-left: 0; background: var(--ink); color: var(--panel); }
.wallet-btn { margin-left: 0; background: var(--panel); border-radius: 999px; padding: 5px 14px; min-width: 128px; } .wallet-btn b { font-variant-numeric: tabular-nums; } .wallet-btn small { color: var(--ink); opacity: .7; }
.tag { background: rgba(29,21,48,.08); color: var(--ink); }
.near-tag { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; letter-spacing: .02em; color: var(--ink); } .near-tag svg { width: 16px; height: 16px; display: block; }
.price-big { font-size: 36px; letter-spacing: -.04em; }
.px-row .fund { background: var(--panel2); color: var(--ink); padding: 3px 10px; border-radius: 999px; font-size: 13px; }
.chip { background: var(--ink); color: var(--panel); border-radius: 999px; } .chip[aria-pressed="true"] { background: var(--accent); color: #fff; }
.field { background: var(--panel2); border-radius: 999px; } .field span, .field input { color: var(--ink); } .field input::placeholder { color: rgba(29,21,48,.45); } .field:focus-within { box-shadow: 0 0 0 2px var(--ink) !important; }
.btn { border-radius: 999px; } .btn.up, .btn.crab { background: var(--accent); color: #fff; } .btn.down { background: var(--down); color: #fff; } .btn.ghost { background: rgba(29,21,48,.1); color: var(--ink); }
.pwr b { color: var(--down); } .pwr span { color: var(--ink); opacity: .75; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 8px; border-radius: 4px; margin: 12px 0 6px; background: linear-gradient(90deg, var(--ink) calc(11px + (100% - 22px) * var(--p, .44)), var(--panel2) 0); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 0; cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 0; cursor: pointer; }
.ticks, .cc-k { color: var(--ink); opacity: .75; } .cc-k b { color: var(--ink); }
.actcard { background: transparent; padding: 0; } .actcard .btn { padding: 16px; font-size: 18px; }
.melt { background: rgba(29,21,48,.12); } .melt i { background: var(--accent); }
.stat { background: rgba(29,21,48,.07); }
.segment { background: rgba(29,21,48,.08); } .segment button { color: var(--ink); opacity: .7; } .segment button[aria-selected="true"] { background: var(--ink); color: var(--panel); opacity: 1; box-shadow: none; }
.r-card.win, .r-card.lose { background: var(--panel); }
.ci-cv { background: rgba(29,21,48,.07); }
.x { background: rgba(29,21,48,.1); color: var(--ink); }
#vBtn { box-shadow: none; }
.ff { background: var(--ink); color: var(--panel); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.hand span:last-child { background: var(--accent); color: #fff; }
.toast { box-shadow: none; }
/* tab bar: a dark floating pill, active tab in cobalt, drawn icons */
nav.tabs { left: 50%; right: auto; transform: translateX(-50%); width: min(488px, calc(100% - 32px)); bottom: calc(12px + env(safe-area-inset-bottom)); background: var(--ink); border: 0; border-radius: 999px; padding: 6px; backdrop-filter: none; -webkit-backdrop-filter: none; align-items: center; justify-content: space-between; }
nav.tabs button { color: var(--panel); opacity: .7; border-radius: 999px; flex: 1 1 0; }
nav.tabs button.main { flex: 1 1 0; }
nav.tabs .ico { filter: none; display: block; line-height: 0; } nav.tabs .ico svg { width: 22px; height: 22px; display: block; } nav.tabs button.main .ico svg { width: 26px; height: 26px; }
nav.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; opacity: 1; } nav.tabs button[aria-selected="true"] .ico { filter: none; }
.app { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
/* onboarding: the animations sit on a lime card */
.ob-cv { background: var(--panel); border-radius: 26px; margin-top: 8px; }
.ob-kicker { color: var(--ink); opacity: .7; } .ob-text { color: var(--ink); opacity: .8; }
/* amount fields: numbers centered */
.field input { text-align: center; } .field { position: relative; } .field > span { position: absolute; left: 16px; }
/* tab bar: three equal buttons (same width, padding, label and icon size) */
nav.tabs button, nav.tabs button.side, nav.tabs button.main { flex: 1 1 0; min-width: 0; padding: 8px 6px; font-size: 12px; }
nav.tabs .ico svg, nav.tabs button.main .ico svg { width: 24px; height: 24px; }
/* Live without a wallet: only the start card, with room around it */
#tab-bull.start-only > :not(#liveStart) { display: none !important; }
#tab-bull.start-only #liveStart { margin: 28px 0; padding: 24px 18px; }
/* wallet sheet: dark tabs with a cobalt active tab */
#wSeg { background: var(--ink); } #wSeg button { color: var(--panel); opacity: .75; } #wSeg button[aria-selected="true"] { background: var(--accent); color: #fff; opacity: 1; }
.sheet { overflow: hidden; }
.send-row { display: flex; gap: 8px; align-items: center; } .send-row .field { flex: 1; margin-top: 10px; } .chip.max { margin-top: 10px; padding: 12px 16px; font-size: 14px; }
/* add-USDC window */
.tok-list { display: grid; gap: 6px; text-align: left; } .tok-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; background: rgba(29,21,48,.07); border-radius: 14px; padding: 8px 10px; }
.tok-row span { font-family: var(--mono); } .tok-row .chip:disabled { opacity: .4; cursor: default; }
.powered { margin-top: 14px; font-size: 11.5px; color: var(--ink); opacity: .7; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pw-logo { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; } .pw-logo svg { width: 13px; height: 13px; display: block; } .pw-logo b { letter-spacing: .02em; }
.sheet .kv span:first-child { flex: none; } .sheet .kv span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; } .sheet .addr-inline { max-width: 62%; }
.sheet .rows { grid-template-columns: minmax(0, 1fr); } .sheet .kv { min-width: 0; }
/* wallet: two deposit cards side by side (stacked on narrow screens) */
.dep2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.dep-card { background: rgba(29,21,48,.07); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dep-card h3 { margin: 0; } .dep-card .hint { margin: 0; font-size: 12px; } .dep-card .btn, .dep-card .field, .dep-card .select { margin-top: 4px; } .dep-card .addr { font-size: 11px; }
@media (max-width: 460px) { .dep2 { grid-template-columns: 1fr; } }
.dep-card { background: transparent; border: 1px solid var(--panel2); }
.tags-r { display: flex; align-items: center; gap: 8px; } .net-tag { background: var(--ink); color: var(--panel); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; }
