/* SOLZAM · Stage · Shazam-blue + the Solana accent (DESIGN.md). The only place colours live. */
@font-face { font-family: 'Gabarito'; src: url(/fonts/gabarito-400-900.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Reddit Sans'; src: url(/fonts/reddit-400-900.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Ubuntu Sans Mono'; src: url(/fonts/ubuntumono-400-700.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  /* SOLZAM (10-30): Shazam-like blue screen, white type, glass; ONE accent = Solana purple -> green */
  --sea: #0B5CFF; --sea-hi: #0A8CFF; --sea-lo: #1A3AF2; --navy: #0A1446;
  --panel: #0B1A5C; --panel-2: #16267A; --panel-3: #1E3190;
  --glass: rgba(255, 255, 255, .14); --glass-2: rgba(255, 255, 255, .22);
  --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .22);
  --ink: #ffffff; --ink-2: #dce7ff; --ink-3: #a9bff5;
  --acc: #14F195; --acc-hi: #8dffd0; --acc-2: #9945FF; --acc-ink: #06123a;
  --sol: linear-gradient(100deg, #9945FF 0%, #6E6CFF 45%, #14F195 100%);
  --up: #14F195; --down: #ff6b8a; --rug: #ff3d55;
  --disp: 'Gabarito', 'Reddit Sans', system-ui, sans-serif;
  --ui: 'Reddit Sans', 'Gabarito', system-ui, sans-serif;
  --mono: 'Ubuntu Sans Mono', ui-monospace, monospace;
  --top: calc(env(safe-area-inset-top, 0px) + 60px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --orb: min(52vw, 232px, 30vh); --oy: 44%;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 30px 70px -24px rgba(4, 10, 60, .75);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--sea); color: var(--ink); overflow: hidden; overscroll-behavior: none; }
body { font: 500 15px/1.35 var(--ui); -webkit-font-smoothing: antialiased; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden], .hidden { display: none !important; }

/* ---------------------------------------------------------------- the sea (static, painted once) */
.bg { position: fixed; inset: 0; background: linear-gradient(180deg, var(--sea-hi) 0%, var(--sea) 46%, var(--sea-lo) 100%); z-index: 0; }
.bg-glow { position: absolute; left: 50%; top: 44%; width: 130vmin; height: 130vmin; margin: -65vmin 0 0 -65vmin; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(153, 69, 255, .34), rgba(110, 108, 255, .16) 42%, rgba(20, 241, 149, .07) 62%, rgba(20, 241, 149, 0) 74%); transition: opacity .6s var(--ease); }
.bg-glow::after { content: ''; position: absolute; inset: 0; border-radius: 50%; opacity: 0; transition: opacity .8s var(--ease); background: radial-gradient(closest-side, rgba(255, 255, 255, .18), rgba(20, 241, 149, 0) 62%); }
body.is-listen .bg-glow::after { opacity: 1; }
body.is-result .bg-glow, body.is-land .bg-glow { opacity: 0; }
.flood { position: fixed; inset: 0; z-index: 1; opacity: 0; pointer-events: none; background: linear-gradient(180deg, var(--flood, #0B5CFF) 0%, var(--flood-2, #0A2A9A) 46%, var(--navy) 100%); }
.flood .wash { position: absolute; left: -12%; top: -12%; width: 124%; height: 70%; opacity: .5; }
/* ---------------------------------------------------------------- top bar */
.top { position: fixed; z-index: 30; left: 0; right: 0; top: 0; height: var(--top); padding: env(safe-area-inset-top, 0px) 12px 0;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.rb { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  background: rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 6px 18px -8px rgba(0, 0, 0, .6); position: relative; }
.rb svg { width: 21px; height: 21px; }
.rb:hover { background: rgba(255, 255, 255, .28); }
.rb.lead { background: none; box-shadow: none; }
.rb.lead .i-mark { width: 34px; height: 34px; }
.rb.lead .i-x { display: none; }
body.is-result .rb.lead, body.is-lib .rb.lead, body.is-land .rb.lead { background: rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
body.is-result .rb.lead .i-mark, body.is-lib .rb.lead .i-mark, body.is-land .rb.lead .i-mark { display: none; }
body.is-result .rb.lead .i-x, body.is-lib .rb.lead .i-x, body.is-land .rb.lead .i-x { display: block; }
.wm { display: flex; align-items: center; gap: 8px; min-width: 0; justify-self: start; }
.wm b { font: 800 17px/1 var(--disp); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-r { display: flex; align-items: center; gap: 8px; }
#mute .m-off { display: none; } body.muted #mute .m-on { display: none; } body.muted #mute .m-off { display: block; }
#mute { color: var(--ink-2); }
.wallet .w-dot { position: absolute; right: 9px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 2px var(--panel); display: none; }
body.signed .wallet .w-dot { display: block; }
#t-x[href=""] { display: none; }
/* the coin's CA (kit ids; hidden until the CA exists) */
.ca { display: flex; align-items: center; gap: 4px; }
.ca-btn { height: 36px; border-radius: 999px; padding: 0 5px 0 12px; display: flex; align-items: center; gap: 7px; background: rgba(20, 241, 149, .14);
  box-shadow: inset 0 0 0 1px rgba(20, 241, 149, .32); color: var(--ink); white-space: nowrap; }
.ca-lab { font: 800 12px/1 var(--disp); color: var(--acc); }
#t-ca-text { font: 400 12px/1 var(--mono); color: var(--ink-2); }
.ca-copy { font: 700 11px/1 var(--ui); font-style: normal; background: var(--acc); color: var(--acc-ink); border-radius: 999px; padding: 7px 9px; }
.ca-link { display: none; }

/* a phone with the CA in the header: the mark stays, the wordmark and the ticker label give it the room (nothing runs off the screen) */
@media (max-width: 560px) {
  .top:has(.ca:not(.hidden)) .wm { display: none; }
  .top:has(.ca:not(.hidden)) { grid-template-columns: 44px minmax(0, 1fr); }
  .top:has(.ca:not(.hidden)) .top-r { justify-self: end; min-width: 0; }
  .top .ca-lab { display: none; }
  .top-r { gap: 6px; }
  .top .ca-btn { padding-left: 11px; }
}
@media (max-width: 372px) { .top:has(.ca:not(.hidden)) #mute { display: none; } }

/* ---------------------------------------------------------------- home: one big round button (Shazam) */
.app { position: fixed; inset: 0; z-index: 2; }
.home { position: absolute; inset: 0; transition: opacity .35s var(--ease); }
.title { position: absolute; left: 16px; right: 16px; bottom: calc(100% - var(--oy) + var(--orb) / 2 + clamp(22px, 5vh, 44px)); margin: 0; font: 850 clamp(26px, 7.6vw, 34px)/1.04 var(--disp); letter-spacing: -.025em; text-align: center; min-height: 1.1em;
  transition: opacity .3s var(--ease), transform .45s var(--ease); }
.orb-wrap { position: absolute; left: 50%; top: var(--oy); width: var(--orb); height: var(--orb); margin: calc(var(--orb) / -2) 0 0 calc(var(--orb) / -2); }
.orb { position: absolute; inset: 0; border-radius: 50%; z-index: 2; touch-action: manipulation; }
.orb-body { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 36% 26%, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .20) 38%, rgba(255, 255, 255, .12) 70%, rgba(255, 255, 255, .16) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .38), inset 0 -14px 30px rgba(10, 30, 140, .25), 0 26px 60px -18px rgba(20, 20, 120, .55);
  animation: breathe 3.2s ease-in-out infinite; color: #fff; }
.orb-shine { position: absolute; left: 14%; top: 7%; width: 50%; height: 30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0)); transform: rotate(-18deg); }
.orb-mark { width: 54%; height: 54%; opacity: 1; transition: opacity .25s var(--ease), transform .45s var(--ease); }
.slot { position: absolute; inset: 22%; border-radius: 50%; overflow: hidden; opacity: 0; transition: opacity .25s var(--ease); }
.slot .sl { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: #0A1446; will-change: transform; }
.slot .sl img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.slot .sl b { font: 900 22px/1 var(--disp); color: #fff; }
.rim { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); transform: rotate(-90deg); pointer-events: none; overflow: visible; }
.rim circle { fill: none; stroke-width: 2.6; }
.rim-track { stroke: url(#solg); opacity: .6; transition: opacity .4s var(--ease); }
.rim-fill { opacity: 0; stroke: url(#solg); stroke-linecap: round; stroke-dasharray: 0 100; stroke-width: 4 !important; }
body.is-listen .rim-track, body.is-land .rim-track { opacity: .2; }
.conf { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); font: 850 22px/1 var(--disp); color: #fff; opacity: 0; white-space: nowrap; transition: opacity .3s var(--ease); }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }

/* rings: transform + opacity only */
.halo { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(closest-side, rgba(255, 255, 255, .26), rgba(20, 241, 149, .14) 72%, rgba(20, 241, 149, 0)); }
.halo.h2 { background: radial-gradient(closest-side, rgba(255, 255, 255, .16), rgba(20, 241, 149, .08) 70%, rgba(20, 241, 149, 0)); }
body.is-listen .halo { opacity: 1; animation: halo 1.1s ease-in-out infinite alternate; }
body.is-listen .halo.h2 { animation-duration: 1.45s; animation-delay: -.4s; }
@keyframes halo { from { transform: scale(1.04); } to { transform: scale(1.62); } }
body.is-listen .halo.h2 { animation-name: halo2; } @keyframes halo2 { from { transform: scale(1.2); } to { transform: scale(1.95); } }
.ring { position: absolute; left: 50%; top: 50%; width: 260%; height: 260%; margin: -130% 0 0 -130%; border-radius: 50%; pointer-events: none; opacity: 0; border: 1.6px solid rgba(255, 255, 255, .5); }
.r-idle { animation: idle 3.2s ease-out infinite; }
@keyframes idle { 0% { transform: scale(.385); opacity: .4; } 100% { transform: scale(.6); opacity: 0; } }
body.is-listen .r-idle, body.is-land .r-idle, body.is-result .r-idle { animation: none; opacity: 0; }
body.is-listen .ring:not(.r-idle) { animation: wave 3s linear infinite; }
body.is-listen .ring.r2 { animation-delay: .6s; } body.is-listen .ring.r3 { animation-delay: 1.2s; } body.is-listen .ring.r4 { animation-delay: 1.8s; } body.is-listen .ring.r5 { animation-delay: 2.4s; }
@keyframes wave { 0% { transform: scale(.385); opacity: .7; } 70% { opacity: .22; } 100% { transform: scale(1.55); opacity: 0; } }
body.is-listen .orb-body { animation: thump .6s ease-in-out infinite; }
@keyframes thump { 0%, 100% { transform: scale(1); } 18% { transform: scale(1.045); } 46% { transform: scale(.995); } }
.burst { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0; border: 3px solid var(--acc-hi); }

/* status + ask */
.status { position: absolute; left: 16px; right: 16px; top: calc(var(--oy) + var(--orb) / 2 + 26px); margin: 0; min-height: 22px; font: 500 14.5px/1.3 var(--ui); color: var(--ink-2); text-align: center; transition: opacity .25s var(--ease); }
.status b { color: var(--ink); font-weight: 700; }
.ask { position: fixed; z-index: 21; left: 16px; right: 16px; bottom: calc(var(--safe-b) + 92px); max-width: 520px; margin: 0 auto; height: 56px; border-radius: 999px; display: flex; align-items: center; padding: 0 6px 0 20px;
  background: rgba(6, 14, 58, .97); box-shadow: inset 0 0 0 1.5px rgba(20, 241, 149, .55), 0 20px 50px -14px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(14px) scale(.97); pointer-events: none;
  transition: opacity .22s var(--ease), transform .4s cubic-bezier(.3, 1.3, .5, 1); }
body.asking .ask { opacity: 1; transform: none; pointer-events: auto; }
.ask input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 500 16px/1 var(--ui); color: var(--ink); user-select: text; -webkit-user-select: text; }
.ask input::placeholder { color: var(--ink-3); }
.ask-go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); flex: none; }
.ask-go svg { width: 21px; height: 21px; }
.left { position: absolute; left: 16px; right: 16px; top: calc(var(--oy) + var(--orb) / 2 + 54px); margin: 0; min-height: 18px; font: 500 12.5px/1.3 var(--ui); color: var(--ink-3); text-align: center; }

.install { position: absolute; left: 50%; top: calc(var(--oy) + var(--orb) / 2 + 80px); transform: translateX(-50%); height: 36px; padding: 0 14px 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(20, 241, 149, .14); box-shadow: inset 0 0 0 1px rgba(20, 241, 149, .35); color: var(--acc-hi); font: 700 13px/1 var(--ui); white-space: nowrap; }
.install svg { width: 17px; height: 17px; }
body:not(.is-rest) .install { opacity: 0; pointer-events: none; }
/* listening: the orb takes the lower half, the picture floats above */
body.is-listen .title, body.is-land .title { opacity: 0; transform: translateY(-8px); }
body.is-listen .ask, body.is-land .ask, body.is-result .ask, body.is-listen .left, body.is-land .left { opacity: 0; pointer-events: none; transform: translateY(10px); }
.orb-wrap, .status { transition: transform .62s cubic-bezier(.3, 1.25, .5, 1), opacity .35s var(--ease); }
body.is-listen .orb-wrap, body.is-land .orb-wrap { transform: translateY(var(--orb-dy, 0px)) scale(var(--orb-s, .62)); }
body.is-listen .status, body.is-land .status { transform: translateY(var(--st-dy, 0px)); }
body.is-listen .orb-mark, body.is-land .orb-mark { opacity: 0; transform: scale(.6); }
body.is-listen .slot, body.is-land .slot { opacity: 1; }
body.is-listen .conf, body.is-land .conf { opacity: 1; }
body.is-result .home { opacity: 0; pointer-events: none; }
body.is-land .orb-wrap { opacity: 0; transition-delay: .25s; }
body.is-land .status { opacity: 0; }

/* ---------------------------------------------------------------- the picture card */
.pic { position: fixed; left: 0; top: 0; z-index: 6; transform-origin: 0 0; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.pic-full { position: absolute; inset: 0; border-radius: var(--pic-r, 18px); overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .08); background: #0b1020; }
.pic-full img, .pic-crop img { display: block; width: 100%; height: 100%; }
.pic-crop { position: absolute; overflow: hidden; opacity: 0; }
.pic-crop img { position: absolute; }
.scan { position: absolute; left: -10%; right: -10%; top: 0; height: 26%; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .14) 70%, rgba(255, 255, 255, .85) 99%, rgba(255, 255, 255, 0) 100%); }
body.is-listen .scan { animation: scan 1.7s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes scan { 0% { transform: translateY(-100%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(385%); opacity: 0; } }
.marks { position: absolute; inset: 0; pointer-events: none; }
.mk { position: absolute; border-radius: 7px; box-shadow: 0 0 0 2px var(--acc), 0 0 18px rgba(20, 241, 149, .55); background: rgba(20, 241, 149, .12); opacity: 0; }
.mk.is-chart { border-radius: 10px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .75); background: rgba(20, 241, 149, .05); }
.chips { position: fixed; inset: 0; z-index: 7; pointer-events: none; }
.chip { position: absolute; left: 0; top: 0; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--acc); color: var(--acc-ink);
  font: 800 12.5px/26px var(--disp); white-space: nowrap; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .55); opacity: 0; transform-origin: 50% 100%; }
.chip i { font-style: normal; font-weight: 600; opacity: .7; margin-right: 5px; font-family: var(--ui); font-size: 11px; }
.ex-tag { position: fixed; z-index: 8; left: 0; top: 0; padding: 4px 9px; border-radius: 999px; background: rgba(6, 14, 58, .78); color: var(--ink-2);
  font: 700 11px/1 var(--ui); letter-spacing: .02em; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); box-shadow: inset 0 0 0 1px var(--line-2); }
body.demo .ex-tag.on { opacity: 1; }

/* ---------------------------------------------------------------- chart stage (our live chart, the picture lands on it) */
.cstage { position: fixed; z-index: 4; left: 12px; right: 12px; top: calc(var(--top) + 4px); height: var(--cs-h, 34vh); border-radius: 24px;
  background: rgba(6, 14, 58, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 24px 60px -24px rgba(0, 0, 0, .7);
  opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; }
body.is-land .cstage, body.is-result .cstage { opacity: 1; }
.cstage canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 24px; }
.ctag { position: absolute; left: 0; top: 0; display: flex; align-items: baseline; gap: 5px; padding: 5px 9px 5px 8px; border-radius: 999px; white-space: nowrap;
  background: rgba(6, 14, 58, .9); box-shadow: inset 0 0 0 1px var(--line-2); opacity: 0; transition: opacity .3s var(--ease); z-index: 3; }
.ctag i { font: 700 10.5px/1 var(--ui); font-style: normal; color: var(--ink-3); text-transform: lowercase; }
.ctag b { font: 800 13px/1 var(--disp); color: var(--ink); }
.ctag-now { background: var(--acc); box-shadow: 0 6px 18px -6px rgba(120, 90, 255, .7); }
.ctag-now i { color: rgba(58, 29, 2, .7); } .ctag-now b { color: var(--acc-ink); }
.ctag.on { opacity: 1; }
.head-dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--acc-hi); opacity: 0; z-index: 2;
  box-shadow: 0 0 0 4px rgba(20, 241, 149, .25), 0 0 16px rgba(20, 241, 149, .9); }
.head-dot.on { opacity: 1; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(20, 241, 149, .28), 0 0 14px rgba(20, 241, 149, .8); } 50% { box-shadow: 0 0 0 9px rgba(20, 241, 149, 0), 0 0 22px rgba(20, 241, 149, 1); } }
.caxis, .taxis { position: absolute; inset: 0; pointer-events: none; }
.caxis b, .taxis b { position: absolute; font: 600 10.5px/1 var(--ui); color: var(--ink-3); white-space: nowrap; }
.caxis b { right: 10px; transform: translateY(-50%); }
.taxis b { bottom: 9px; transform: translateX(-50%); }

/* ---------------------------------------------------------------- the result sheet (slides up over the blurred backdrop) */
.sheet { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; top: var(--sheet-top, 52%); visibility: hidden; touch-action: none; }
body.is-result .sheet { visibility: visible; }
.sheet .grab { display: none; }
.grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); margin: 9px auto 0; }
.sh-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px calc(var(--safe-b) + 24px); touch-action: pan-y; scrollbar-width: none; }
.sh-scroll::-webkit-scrollbar { display: none; }
.sheet > * , .sh-scroll > * { opacity: 1; }
.tvn { display: grid; grid-template-columns: auto 22px auto 1fr; align-items: end; gap: 8px; margin-top: 10px; padding: 14px 16px; border-radius: 20px; background: rgba(6, 14, 58, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.tvn span { display: flex; flex-direction: column; gap: 4px; }
.tvn i { font: 700 11px/1 var(--ui); font-style: normal; color: var(--ink-3); }
.tvn b { font: 850 21px/1 var(--disp); letter-spacing: -.02em; }
.tvn-arr { width: 20px; height: 20px; color: var(--ink-3); margin-bottom: 1px; }
.tvn-x { justify-self: end; font: 900 30px/1 var(--disp); letter-spacing: -.03em; color: var(--up); }
.tvn-x.dn { color: var(--down); }
.tvn.only-now .tvn-then, .tvn.only-now .tvn-arr, .tvn.only-now .tvn-x { display: none; }
.coin { display: grid; grid-template-columns: 56px minmax(0, 1fr) 64px; align-items: center; gap: 12px; padding: 2px 0 4px; }
.logo { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--panel-2); box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
.logo { display: grid; place-items: center; }
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lgi { font: 900 17px/1 var(--disp); color: var(--ink-2); letter-spacing: -.02em; }
.cstage.empty canvas, .cstage.empty .caxis, .cstage.empty .taxis { opacity: 0; }
.cand { cursor: pointer; transition: box-shadow .2s var(--ease); }
.cand.on { box-shadow: inset 0 0 0 2px var(--acc); }
.c-names { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.c-name { font: 850 26px/1.05 var(--disp); letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-sym { font: 700 14px/1 var(--ui); color: var(--acc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-conf { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.c-conf svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.c-conf circle { fill: none; stroke-width: 3.6; }
.cc-track { stroke: rgba(255, 255, 255, .14); }
.cc-fill { stroke: var(--acc); stroke-linecap: round; stroke-dasharray: 0 100; }
.c-conf b { font: 850 17px/1 var(--disp); margin-top: -6px; }
.c-conf i { position: absolute; bottom: 14px; font: 700 9px/1 var(--ui); font-style: normal; color: var(--ink-3); }
.cab { margin-top: 10px; width: 100%; height: 60px; border-radius: 999px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 0 7px 0 20px; background: var(--sol); color: var(--acc-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 16px 34px -14px rgba(120, 90, 255, .75); }
.cab-l { font: 900 13px/1 var(--disp); opacity: .62; }
.cab-v { font: 400 15px/1 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.cab-go { height: 46px; padding: 0 20px; border-radius: 999px; display: grid; place-items: center; background: var(--acc-ink); color: #fff; font: 800 15px/1 var(--disp); }
.cab.copied .cab-go { background: #0f3a22; color: var(--up); }
.tiles { margin-top: 10px; display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 8px; }
.tile { min-width: 0; padding: 12px 12px 11px; border-radius: 18px; background: rgba(6, 14, 58, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); display: flex; flex-direction: column; gap: 5px; }
.tile i { font: 700 11px/1 var(--ui); font-style: normal; color: var(--ink-3); }
.tile b { font: 850 18px/1.05 var(--disp); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile span { font: 500 11.5px/1.2 var(--ui); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile b.good { color: var(--up); } .tile b.bad { color: var(--down); }
.alts { margin-top: 10px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.alts:empty { display: none; }
.alt { flex: none; height: 44px; border-radius: 999px; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 5px; background: rgba(6, 14, 58, .42); box-shadow: inset 0 0 0 1px var(--line); font: 700 13px/1 var(--ui); color: var(--ink-2); white-space: nowrap; }
.alt .al { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--panel-3); display: grid; place-items: center; font: 900 12px/1 var(--disp); color: var(--ink-2); }
.alt .al img { width: 100%; height: 100%; object-fit: cover; }
.alt b { color: var(--ink); font-family: var(--disp); font-weight: 800; }
.alt .ap { color: var(--ink-3); font-family: var(--disp); font-weight: 800; }
.alt .ar { color: var(--rug); font: 900 11px/1 var(--disp); }
.alts-lab { flex: none; align-self: center; font: 700 12px/1 var(--ui); color: var(--ink-3); padding: 0 2px 0 4px; }
.acts { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.act { height: 44px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; background: var(--panel-2); color: var(--ink); font: 700 14px/1 var(--ui); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.act svg { width: 18px; height: 18px; }
.act-share { margin-left: auto; }
.readout { margin-top: 14px; padding: 14px 16px 12px; border-radius: 20px; background: rgba(6, 14, 58, .32); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.readout h4 { margin: 0 0 10px; font: 700 12px/1 var(--ui); color: var(--ink-3); }
.rd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rd { height: 30px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; background: rgba(20, 241, 149, .12); box-shadow: inset 0 0 0 1px rgba(20, 241, 149, .3); font: 800 13px/1 var(--disp); color: var(--acc-hi); white-space: nowrap; }
.rd i { font: 600 11px/1 var(--ui); font-style: normal; color: var(--ink-3); }
.why-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.why-list:empty { display: none; }
.why-list li { position: relative; padding-left: 22px; font: 500 13.5px/1.35 var(--ui); color: var(--ink-2); }
.why-list li::before { content: ''; position: absolute; left: 2px; top: 4px; width: 11px; height: 6px; border-left: 2px solid var(--up); border-bottom: 2px solid var(--up); transform: rotate(-45deg); }
.why { margin: 10px 0 0; font: 500 12px/1.4 var(--ui); color: var(--ink-3); }
.rug { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 12px 16px; border-radius: 18px; background: repeating-linear-gradient(-45deg, rgba(255, 61, 85, .22) 0 10px, rgba(255, 61, 85, .12) 10px 20px); box-shadow: inset 0 0 0 1.5px var(--rug); }
.rug b { font: 900 22px/1 var(--disp); color: var(--rug); letter-spacing: .02em; }
.rug span { font: 700 13.5px/1.3 var(--ui); color: var(--ink); }
body.rugged .cab, body.rugged #a-axiom, body.rugged #a-dex { display: none; }
.unsure { display: flex; align-items: baseline; gap: 10px; margin: 0 4px 10px; }
.unsure b { font: 850 21px/1 var(--disp); color: var(--acc-hi); }
.unsure span { font: 500 13px/1 var(--ui); color: var(--ink-2); }
body.notsure .coin, body.notsure .cab, body.notsure .tiles, body.notsure .alts, body.notsure #a-axiom, body.notsure #a-dex, body.notsure .tvn { display: none; }
.cands { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.cand { min-width: 0; padding: 14px 10px 10px; border-radius: 20px; background: rgba(6, 14, 58, .42); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cand .logo { width: 48px; height: 48px; }
.cand b { font: 850 15px/1.1 var(--disp); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cand .cp { font: 900 20px/1 var(--disp); color: var(--acc-hi); }
.cand span { font: 500 11.5px/1.25 var(--ui); color: var(--ink-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cand button { margin-top: 4px; height: 36px; width: 100%; border-radius: 999px; background: var(--panel-2); font: 700 13px/1 var(--ui); }
.cand.is-rug { box-shadow: inset 0 0 0 1.5px var(--rug); }
.cand.is-rug .cp { color: var(--rug); }

/* ---------------------------------------------------------------- library (Your IDs, a swipe up from home) */
.lib { position: fixed; z-index: 12; left: 0; right: 0; bottom: 0; top: calc(var(--top) + 6px); border-radius: 32px 32px 0 0; background: linear-gradient(180deg, var(--panel), var(--navy));
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .6); transform: translateY(105%); transition: transform .55s cubic-bezier(.3, 1.1, .4, 1); touch-action: pan-y; }
body.is-lib .lib { transform: none; }
.lib h2 { margin: 14px 20px 8px; font: 850 24px/1 var(--disp); letter-spacing: -.02em; }
.lib-list { position: absolute; inset: 66px 0 0; overflow-y: auto; padding: 0 12px calc(var(--safe-b) + 20px); }
.lrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; }
.lrow:hover { background: rgba(255, 255, 255, .03); }
.lrow .logo { width: 48px; height: 48px; }
.lrow b { display: block; font: 800 16px/1.1 var(--disp); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow span { display: block; margin-top: 3px; font: 500 12.5px/1.2 var(--ui); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow em { font: 800 14px/1 var(--disp); font-style: normal; color: var(--up); text-align: right; }
.lrow em.dn { color: var(--down); }
.lib-empty { padding: 40px 20px; text-align: center; color: var(--ink-3); font: 500 14px/1.4 var(--ui); }

/* ---------------------------------------------------------------- Just found (Shazam's Recently Found) + the floating tab bar */
.found { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(var(--safe-b) + 98px); transition: opacity .3s var(--ease); }
.found h3 { margin: 0 20px 9px; font: 700 14px/1 var(--ui); color: var(--ink-2); }
.found-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.found-row::-webkit-scrollbar { display: none; }
.fcard { flex: none; width: min(84vw, 360px); height: 84px; border-radius: 22px; scroll-snap-align: start; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0 16px 0 14px;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); text-align: left; }
.fcard .logo { width: 56px; height: 56px; border-radius: 14px; }
.fcard i { display: block; font: 600 11.5px/1 var(--ui); font-style: normal; color: var(--ink-3); }
.fcard b { display: block; margin-top: 5px; font: 800 16px/1.1 var(--disp); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard span { display: block; margin-top: 3px; font: 500 12.5px/1.2 var(--ui); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard em { font: 900 17px/1 var(--disp); font-style: normal; color: var(--up); }
.fcard em.dn { color: var(--down); }
body:not(.is-rest) .found { opacity: 0; pointer-events: none; }
.dock { position: absolute; z-index: 20; left: 16px; right: 16px; bottom: calc(var(--safe-b) + 16px); display: flex; gap: 10px; max-width: 520px; margin: 0 auto; transition: opacity .3s var(--ease), transform .45s var(--ease); --tab-ink: #0B5CFF; }
.tabs { flex: 1; height: 62px; border-radius: 999px; display: flex; padding: 5px; background: rgba(255, 255, 255, .92); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .65); }
.tab { flex: 1; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #41557f; font: 700 11px/1 var(--ui); }
.tab svg { width: 22px; height: 22px; }
.tab.on { background: rgba(11, 92, 255, .13); color: #0B5CFF; }
.tab { --tab-ink: #fff; }
.dock-go { width: 62px; height: 62px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #0B5CFF; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .65); }
.dock-go svg { width: 24px; height: 24px; }
body.asking .dock-go { background: var(--sol); color: var(--acc-ink); }
body:not(.is-rest):not(.is-lib) .dock { opacity: 0; transform: translateY(20px); pointer-events: none; }
@media (max-height: 700px) { .found { display: none; } }

/* ---------------------------------------------------------------- wallet sheet (wp-*: unique names) */
.wp-wrap { position: fixed; inset: 0; z-index: 60; }
.wp-bg { position: absolute; inset: 0; background: rgba(6, 14, 58, .6); opacity: 0; transition: opacity .3s var(--ease); }
.wp-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; padding: 10px 18px calc(var(--safe-b) + 22px); border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .6); transform: translateY(105%); transition: transform .45s cubic-bezier(.3, 1.15, .4, 1); display: flex; flex-direction: column; gap: 10px; }
.wp-wrap.is-on .wp-bg { opacity: 1; } .wp-wrap.is-on .wp-sheet { transform: none; }
.wp-grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); margin: 0 auto 6px; }
.wp-h { font: 850 22px/1.1 var(--disp); letter-spacing: -.02em; }
.wp-p { margin: 0; font: 500 14px/1.45 var(--ui); color: var(--ink-2); }
.wp-code { font: 400 16px/1 var(--mono); color: var(--acc); }
.wp-opt { height: 58px; border-radius: 999px; display: flex; align-items: center; gap: 12px; padding: 0 10px; background: rgba(6, 14, 58, .5); box-shadow: inset 0 0 0 1px var(--line); font: 700 15px/1 var(--ui); color: var(--ink); text-align: left; }
.wp-ic { width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--panel-3); }
.wp-ph { background: #ab9ff2; } .wp-sf { background: #fc7227; } .wp-wc { background: #3b99fc; } .wp-xx { background: #000; }
.wp-out { justify-content: center; color: var(--down); }

/* ---------------------------------------------------------------- drop zone (the whole window) + toast */
.drop { position: fixed; inset: 10px; z-index: 40; border-radius: 34px; border: 2.5px dashed rgba(255, 255, 255, .8); background: rgba(6, 14, 58, .55);
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
.drop b { font: 900 30px/1 var(--disp); color: var(--acc-hi); }
body.dragging .drop { opacity: 1; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(var(--safe-b) + 24px); transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--sea); font: 700 14px/1 var(--ui); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .4s cubic-bezier(.3, 1.3, .5, 1); white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- desktop: the same column centred; result = chart left, card right */
@media (min-width: 900px) {
  :root { --orb: min(250px, 30vh); }
  .top { padding: 0 24px; }
  .title { font-size: 40px; }
  .cstage { left: 32px; right: calc(32px + 420px + 20px); top: calc(var(--top) + 16px); bottom: 32px; height: auto; }
  .sheet { left: auto; right: 32px; width: 420px; top: calc(var(--top) + 16px); bottom: 32px; }
  .fcard { width: 340px; }
  .sheet .c-name { font-size: 30px; } .sheet .logo { width: 64px; height: 64px; } .coin { grid-template-columns: 64px minmax(0, 1fr) 70px; }
  .tvn b { font-size: 26px; } .tvn-x { font-size: 34px; } .tile b { font-size: 21px; } .tile { padding: 14px 14px 13px; }
  .cab { height: 64px; } .cab-v { font-size: 15.5px; } .why { font-size: 13px; }
  .found-row { justify-content: center; }
  .found h3 { text-align: center; }
  .lib { left: 50%; right: auto; width: 520px; margin-left: -260px; }
}
@media (prefers-reduced-motion: reduce) {
  .orb-body, .r-idle, body.is-listen .ring, body.is-listen .orb-body, body.is-listen .scan { animation: none !important; }
}
