/* =============================================================================
   MEMEPOOL — TX Blaster's BSV-21 launchpad. ONE stylesheet for /memepool/*.
   Tokens: the canonical :root of web/style.css, verbatim, plus MEMEPOOL aliases
   derived from them (never new hues).
   Color jobs:  amber  = action · price · CTA · the BUY side
                cyan / blue = system · interactive · live · success
                lilac (--purple-depth) = the bonding curve (meter, curve card, KOTH) · the SELL side
                market green / red = ONLY numbers that move (changes, trade amounts) and the candles
                brand red = errors and halts
   Signature: the segmented curve meter (lilac → amber cells) + the live tape.
   ============================================================================= */

:root {
  /* — canonical TX Blaster tokens (web/style.css) — */
  --bg-void:      #05070B;
  --bg-panel:     #0B1118;
  --bg-panel-2:   #101620;
  --bg-elev:      #111827;
  --border:       #1e2636;
  --border-hot:   #2d3a50;
  --txt-dim:      #6B7280;
  --txt-mid:      #9CA3AF;
  --txt-bright:   #C7D1DB;
  --txt-white:    #E8EDF2;
  --neon-cyan:    #00CFEA;
  --neon-cyan-dim:#0a3040;
  --neon-mag:     #FF8A1A;
  --neon-mag-dim: #3d2008;
  --neon-amber:   #FF8A1A;
  --neon-lime:    #D7FF2F;
  --neon-red:     #ff3b4a;
  --neon-blue:    #008CFF;
  --purple-depth: #6A5CFF;
  --tier-custom:   #9ecaff;
  --tier-overload: #ff5a1a;
  --glow-mag:     0 0 12px rgba(255,138,26,0.45), 0 0 24px rgba(255,138,26,0.2);
  --glow-cyan:    0 0 12px rgba(0,207,234,0.45), 0 0 24px rgba(0,207,234,0.2);
  --glow-amber:   0 0 12px rgba(255,138,26,0.45);
  --font-mono:    'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  --font-hud:     'Orbitron', 'JetBrains Mono', sans-serif;
  --hud-corner: 8px;
  --hud-rail: 2px;
  --hud-inset: rgba(0,207,234,0.03);
  --clip-corner: polygon(var(--hud-corner) 0%, 100% 0%, 100% calc(100% - var(--hud-corner)), calc(100% - var(--hud-corner)) 100%, 0% 100%, 0% var(--hud-corner));

  /* — MEMEPOOL aliases, derived from the tokens above — */
  --lilac:      var(--purple-depth);
  --lilac-text: color-mix(in srgb, var(--purple-depth) 58%, var(--txt-white));
  --lilac-dim:  color-mix(in srgb, var(--purple-depth) 18%, var(--bg-void));
  --glow-lilac: 0 0 12px rgba(106,92,255,0.55), 0 0 28px rgba(106,92,255,0.25);
  --curve-grad: linear-gradient(90deg, var(--purple-depth), color-mix(in srgb, var(--purple-depth) 45%, var(--neon-amber)) 62%, var(--neon-amber));
  /* Market colors: the trading convention, used ONLY for numbers and the chart. */
  --mkt-up:   #0ECB81;
  --mkt-down: #F6465D;
  --up:   var(--mkt-up);
  --down: var(--mkt-down);
  /* Chrome colors: TX Blaster everywhere else. */
  --buy:  var(--neon-amber);
  --sell: var(--purple-depth);
  --live: var(--neon-cyan);
  --ok:   var(--neon-cyan);
  --clip-sm: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  --clip-xs: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  --hdr-h: 56px;
}

/* ── base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg-void); -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  font: 13px/1.45 var(--font-mono); color: var(--txt-bright);
  background: transparent; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Pixel grid + two cold glows, fixed behind everything. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 460px at 88% -160px, color-mix(in srgb, var(--purple-depth) 16%, transparent), transparent 70%),
    radial-gradient(700px 420px at -6% -120px, color-mix(in srgb, var(--neon-cyan) 7%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--neon-cyan) 3.5%, transparent) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, color-mix(in srgb, var(--neon-cyan) 3.5%, transparent) 1px, transparent 1px) 0 0 / 24px 24px;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
a { color: var(--neon-cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
code { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--neon-cyan) 35%, transparent); color: var(--txt-white); }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.14em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--neon-amber); color: var(--bg-void); font: 700 11px var(--font-hud); letter-spacing: .12em; text-transform: uppercase; }
.skip-link:focus { top: 10px; text-decoration: none; }
.dim { color: var(--txt-dim); }
.mid { color: var(--txt-mid); }
.up { color: var(--up); }
.down { color: var(--down); }
.label { display: block; font: 600 10px/1.3 var(--font-hud); letter-spacing: .18em; text-transform: uppercase; color: var(--txt-mid); }
.money:empty { display: none; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 680px) { .wrap { padding: 0 24px; } }

/* ── header ───────────────────────────────────────────────────────────────── */
.mp-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg-void) 86%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.mp-header-in { display: flex; align-items: center; gap: 12px; height: var(--hdr-h); }
.home-link { display: flex; align-items: center; flex: none; border-radius: 4px; }
.home-link:hover { text-decoration: none; }
.home-logo { display: none; height: 96px; width: auto; margin: -36px -14px -36px -16px; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--neon-cyan) 35%, transparent)); transition: filter .25s; user-select: none; }
.home-link:hover .home-logo { filter: drop-shadow(0 0 16px color-mix(in srgb, var(--neon-cyan) 55%, transparent)) drop-shadow(0 0 22px color-mix(in srgb, var(--neon-amber) 25%, transparent)); }
.home-icon { width: 30px; height: 30px; object-fit: contain; }
.wordmark {
  position: relative; flex: none; padding: 4px 0 4px 12px; border-left: 1px solid var(--border);
  font: 900 15px/1 var(--font-hud); letter-spacing: .16em; color: var(--txt-white);
}
.wordmark:hover { text-decoration: none; color: var(--txt-white); }
/* The inserted E: the meme in the mempool. */
.wm-e { position: relative; color: var(--lilac-text); text-shadow: var(--glow-lilac); }
.wm-e::after { content: ''; position: absolute; left: 0; right: .2em; bottom: -5px; height: 2px; background: var(--purple-depth); box-shadow: var(--glow-lilac); }
.nav { display: none; align-items: center; gap: 2px; margin-left: 10px; }
.nav a {
  position: relative; padding: 8px 12px; color: var(--txt-mid);
  font: 700 10.5px/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase;
}
.nav a:hover { color: var(--txt-white); text-decoration: none; }
.nav a[data-nav="launch"] { color: var(--neon-amber); }
.nav a[aria-current="page"] { color: var(--neon-cyan); }
.nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: calc((var(--hdr-h) - 26px) / -2);
  height: 2px; background: var(--neon-cyan); box-shadow: var(--glow-cyan);
}
.hdr-right { display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; }
.net-badge {
  font: 700 9px/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase;
  color: var(--neon-amber); border: 1px dashed color-mix(in srgb, var(--neon-amber) 60%, transparent); padding: 5px 7px;
}
.net-badge[hidden] { display: none; }
@media (max-width: 679px) { .net-badge { display: none; } }
@media (max-width: 479px) { .wc-x, .wc-bal { display: none; } .wallet-chip { padding: 0 10px; } .mp-header-in { gap: 10px; } }
.wallet-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; flex: none;
  background: var(--bg-panel); border: 1px solid var(--border-hot); color: var(--txt-white);
  font: 700 10.5px/1 var(--font-hud); letter-spacing: .14em; text-transform: uppercase;
  clip-path: var(--clip-sm); transition: border-color .15s, background .15s;
}
.wallet-chip:hover { border-color: var(--neon-cyan); background: var(--bg-elev); }
.wallet-chip:focus-visible { outline-offset: -4px; }
.wc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--txt-dim); }
.wallet-chip[data-state="on"] .wc-dot { background: var(--live); box-shadow: 0 0 8px var(--live); }
.wallet-chip[data-state="off"] { border-color: color-mix(in srgb, var(--neon-amber) 70%, transparent); color: var(--neon-amber); }
.wallet-chip[data-state="off"] .wc-dot { background: var(--neon-amber); }
.wc-bal { font: 600 11.5px/1 var(--font-mono); letter-spacing: 0; text-transform: none; color: var(--txt-bright); }
.wc-bal:empty { display: none; }
.nav-m { display: flex; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg-panel) 70%, transparent); }
.nav-m a {
  flex: 1; text-align: center; padding: 11px 0 10px; color: var(--txt-mid);
  font: 700 10px/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase;
}
.nav-m a:hover { text-decoration: none; color: var(--txt-white); }
.nav-m a[data-nav="launch"] { color: var(--neon-amber); }
.nav-m a[aria-current="page"] { color: var(--neon-cyan); box-shadow: inset 0 -2px 0 var(--neon-cyan); }

/* search */
.search { position: relative; display: flex; align-items: center; min-width: 0; }
.search .ico { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--txt-dim); pointer-events: none; }
.search input {
  width: 100%; height: 34px; padding: 0 34px 0 34px; min-width: 0;
  background: var(--bg-panel); border: 1px solid var(--border); color: var(--txt-white);
  font: 12px var(--font-mono); clip-path: var(--clip-sm); transition: border-color .15s, background .15s;
}
.search input::placeholder { color: var(--txt-dim); }
.search input:hover { border-color: var(--border-hot); }
.search input:focus { outline: none; border-color: var(--neon-cyan); background: var(--bg-elev); }
.search input::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.6); }
.search kbd {
  position: absolute; right: 9px; padding: 1px 6px; border: 1px solid var(--border-hot); color: var(--txt-dim);
  font: 600 10px/1.4 var(--font-mono); pointer-events: none;
}
.search input:focus + kbd { display: none; }
.search-hdr { display: none; width: 320px; }

@media (min-width: 680px) {
  .nav { display: flex; }
  .nav-m { display: none; }
}
@media (min-width: 900px) {
  .home-logo { display: block; }
  .home-icon { display: none; }
  .wordmark { font-size: 16px; padding-left: 14px; }
}
@media (min-width: 1100px) {
  .search-hdr { display: flex; }
}

/* ── live tape ────────────────────────────────────────────────────────────── */
.tape { position: relative; display: flex; height: 36px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-panel), color-mix(in srgb, var(--bg-panel) 40%, var(--bg-void))); overflow: hidden; }
.tape-label {
  position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 8px;
  padding: 0 24px 0 16px; background: var(--bg-elev); color: var(--live);
  font: 700 10px/1 var(--font-hud); letter-spacing: .2em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}
.tape-label[data-state="connecting"] { color: var(--neon-amber); }
.tape-label[data-state="down"] { color: var(--neon-red); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: blink 1.8s ease-in-out infinite; }
.tape-view { position: relative; flex: 1; min-width: 0; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, black 20px, black calc(100% - 48px), transparent); mask: linear-gradient(90deg, transparent, black 20px, black calc(100% - 48px), transparent); }
.tape-track { display: flex; align-items: stretch; height: 100%; width: max-content; will-change: transform; }
.tape.is-static .tape-view { overflow-x: auto; scrollbar-width: none; }
.tape.is-static .tape-view::-webkit-scrollbar { display: none; }
.ti {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; flex: none;
  color: var(--txt-bright); font-size: 11.5px; white-space: nowrap; border-right: 1px solid var(--border);
}
.ti:hover { background: var(--bg-elev); text-decoration: none; }
.ti-ico .coin-ico { --s: 20px; clip-path: var(--clip-xs); }
.ti-sym { color: var(--txt-white); font-weight: 600; }
.ti-act { color: var(--txt-mid); }
.ti-buy .ti-act { color: var(--buy); }
.ti-sell .ti-act { color: var(--lilac-text); }
.ti-buy .ti-amt { color: var(--up); }
.ti-sell .ti-amt { color: var(--down); }
.ti-launch .ti-act { color: var(--lilac-text); }
.ti-amt { font-weight: 600; }
.ti-who { display: inline-flex; align-items: center; gap: 5px; color: var(--txt-dim); }
.ti-new {
  padding: 3px 5px 2px; background: var(--purple-depth); color: var(--txt-white);
  font: 800 8.5px/1 var(--font-hud); letter-spacing: .14em;
}
.ti-empty { color: var(--txt-dim); border: 0; }
.ti.flash-up { animation: tiUp 1.6s ease-out; }
.ti.flash-down { animation: tiDown 1.6s ease-out; }
.ti.flash-new { animation: tiNew 2.2s ease-out; }
@keyframes tiUp { 0%, 20% { background: color-mix(in srgb, var(--buy) 20%, transparent); } 100% { background: transparent; } }
@keyframes tiDown { 0%, 20% { background: color-mix(in srgb, var(--sell) 26%, transparent); } 100% { background: transparent; } }
@keyframes tiNew { 0%, 30% { background: color-mix(in srgb, var(--purple-depth) 42%, transparent); } 100% { background: transparent; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ── buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; white-space: nowrap;
  background: var(--bg-elev); color: var(--txt-white); border: 1px solid var(--border-hot);
  font: 700 11px/1 var(--font-hud); letter-spacing: .14em; text-transform: uppercase;
  clip-path: var(--clip-sm); transition: background .15s, color .15s, border-color .15s, filter .15s;
}
.btn:hover { text-decoration: none; border-color: var(--neon-cyan); }
.btn:focus-visible { outline: 2px solid var(--txt-white); outline-offset: -5px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: saturate(.5); }
.btn-primary { background: var(--neon-amber); border-color: var(--neon-amber); color: var(--bg-void); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--neon-amber) 82%, var(--txt-white)); border-color: var(--neon-amber); }
.btn-primary:focus-visible { outline-color: var(--bg-void); }
.btn-primary:disabled { opacity: 1; filter: none; background: color-mix(in srgb, var(--neon-amber) 10%, var(--bg-elev)); border-color: color-mix(in srgb, var(--neon-amber) 35%, transparent); color: color-mix(in srgb, var(--neon-amber) 65%, var(--txt-dim)); }
.btn-sell { background: var(--sell); border-color: var(--sell); color: var(--txt-white); }
.btn-sell:hover:not(:disabled) { background: color-mix(in srgb, var(--sell) 82%, var(--txt-white)); border-color: var(--sell); }
.btn-sell:focus-visible { outline-color: var(--bg-void); }
.btn-sell:disabled { opacity: 1; filter: none; background: color-mix(in srgb, var(--sell) 12%, var(--bg-elev)); border-color: color-mix(in srgb, var(--sell) 40%, transparent); color: color-mix(in srgb, var(--lilac-text) 75%, var(--txt-dim)); }
.btn-ghost { background: transparent; }
.btn-cyan { background: color-mix(in srgb, var(--neon-cyan) 10%, transparent); border-color: color-mix(in srgb, var(--neon-cyan) 60%, transparent); color: var(--neon-cyan); }
.btn-cyan:hover { background: color-mix(in srgb, var(--neon-cyan) 18%, transparent); }
.btn-xl { height: 48px; padding: 0 22px; font-size: 12px; letter-spacing: .16em; }
.btn-block { width: 100%; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 9.5px; }
.btn .ico { width: 14px; height: 14px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; padding: 0;
  background: transparent; border: 1px solid var(--border); color: var(--txt-mid); clip-path: var(--clip-xs);
}
.icon-btn:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); }
.icon-btn .ico { width: 13px; height: 13px; }
.icon-btn.is-copied { color: var(--ok); border-color: var(--ok); }
.icon-btn:focus-visible { outline-offset: -4px; }

/* ── chips & badges ───────────────────────────────────────────────────────── */
.chg {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px; flex: none;
  font: 600 11px/1 var(--font-mono); border: 1px solid; clip-path: var(--clip-xs); white-space: nowrap;
}
.chg-up { color: var(--up); background: color-mix(in srgb, var(--up) 10%, transparent); border-color: color-mix(in srgb, var(--up) 34%, transparent); }
.chg-down { color: var(--down); background: color-mix(in srgb, var(--down) 10%, transparent); border-color: color-mix(in srgb, var(--down) 34%, transparent); }
.chg-flat { color: var(--txt-mid); background: var(--bg-elev); border-color: var(--border); }
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; flex: none; white-space: nowrap;
  font: 800 8.5px/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid currentColor; clip-path: var(--clip-xs);
}
.badge .ico { width: 11px; height: 11px; }
.badge .live-dot { width: 6px; height: 6px; }
.badge-live { color: var(--live); background: color-mix(in srgb, var(--live) 8%, transparent); }
.badge-syncing { color: var(--neon-amber); background: color-mix(in srgb, var(--neon-amber) 8%, transparent); }
.badge-halted { color: var(--neon-red); background: color-mix(in srgb, var(--neon-red) 8%, transparent); }
.badge-grad { color: var(--bg-void); background: var(--neon-amber); border-color: var(--neon-amber); }
.badge-koth { color: var(--lilac-text); background: var(--lilac-dim); border-color: color-mix(in srgb, var(--purple-depth) 80%, transparent); }
.badge-dev { color: var(--neon-cyan); background: color-mix(in srgb, var(--neon-cyan) 8%, transparent); }
.badge-curve { color: var(--lilac-text); background: var(--lilac-dim); border-color: color-mix(in srgb, var(--purple-depth) 70%, transparent); }
.badge-you { color: var(--neon-amber); background: color-mix(in srgb, var(--neon-amber) 8%, transparent); }

/* ── HUD panel ────────────────────────────────────────────────────────────── */
.card {
  position: relative; min-width: 0;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--border); clip-path: var(--clip-corner);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--txt-white) 3%, transparent);
}
.card::before {
  content: ''; position: absolute; top: 0; left: var(--hud-corner); right: var(--hud-corner); height: var(--hud-rail);
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent); opacity: .3; pointer-events: none; transition: opacity .3s;
}
/* the cut corners get their own hairline */
.card::after {
  content: ''; position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(135deg, transparent calc(50% - .8px), var(--border-hot) calc(50% - .8px) calc(50% + .8px), transparent calc(50% + .8px)) 0 0 / calc(var(--hud-corner) + 1px) calc(var(--hud-corner) + 1px) no-repeat,
    linear-gradient(135deg, transparent calc(50% - .8px), var(--border-hot) calc(50% - .8px) calc(50% + .8px), transparent calc(50% + .8px)) 100% 100% / calc(var(--hud-corner) + 1px) calc(var(--hud-corner) + 1px) no-repeat;
}
.card-header {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px 11px; border-bottom: 1px solid var(--border);
}
.card-header::after { content: '[ ]'; position: absolute; right: 10px; top: 3px; font: 8px var(--font-mono); letter-spacing: .1em; color: var(--border-hot); }
.card-title {
  font: 700 11px/1.2 var(--font-hud); letter-spacing: .12em; text-transform: uppercase;
  color: var(--neon-cyan); text-shadow: 0 0 8px color-mix(in srgb, var(--neon-cyan) 30%, transparent);
}
.card-title::before { content: '// '; color: var(--border-hot); font-weight: 400; text-shadow: none; }
.card-body { padding: 14px 16px 16px; }
.sec-title { display: flex; align-items: baseline; gap: 4px; margin: 0 0 12px; font: 700 11px/1.2 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--txt-white); }
.sec-title::before { content: '// '; color: var(--border-hot); font-weight: 400; }

/* ── the curve meter (signature) ──────────────────────────────────────────── */
.meter { position: relative; height: 10px; min-width: 0; --p: 0; --cell: 5px; --pitch: 7px; }
.meter::before, .meter::after {
  content: ''; position: absolute; inset: 0;
  -webkit-mask: repeating-linear-gradient(90deg, black 0 var(--cell), transparent var(--cell) var(--pitch));
  mask: repeating-linear-gradient(90deg, black 0 var(--cell), transparent var(--cell) var(--pitch));
}
.meter::before { background: color-mix(in srgb, var(--purple-depth) 14%, var(--bg-elev)); }
.meter::after { background: var(--curve-grad); clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); transition: clip-path .7s cubic-bezier(.2,.7,.2,1); }
.meter-head {
  position: absolute; top: -3px; bottom: -3px; left: calc(var(--p) * 100%); width: 2px; margin-left: -1px;
  background: var(--txt-white); box-shadow: 0 0 6px var(--purple-depth), 0 0 12px var(--neon-amber);
  transition: left .7s cubic-bezier(.2,.7,.2,1); opacity: .9;
}
.meter-sm .meter-head { display: none; }
.meter-md { height: 14px; --cell: 6px; --pitch: 8px; }
.meter-lg { height: 18px; --cell: 7px; --pitch: 9px; }
.meter.is-grad::after { background: var(--neon-amber); }
.meter.is-grad .meter-head { display: none; }

/* ── coin icon + identicon ───────────────────────────────────────────────── */
.coin-ico {
  position: relative; display: inline-block; flex: none; width: var(--s, 72px); height: var(--s, 72px);
  background: var(--bg-elev); clip-path: var(--clip-sm); overflow: hidden;
}
.coin-ico img { display: block; width: 100%; height: 100%; object-fit: cover; }
.coin-ico-fb {
  display: grid; place-items: center; width: 100%; height: 100%;
  font: 900 calc(var(--s, 72px) * .36)/1 var(--font-hud); color: var(--txt-white); letter-spacing: .02em;
  background: linear-gradient(135deg, var(--purple-depth), var(--neon-blue));
}
.coin-ico-fb.fb-1 { background: linear-gradient(135deg, var(--neon-amber), var(--purple-depth)); }
.coin-ico-fb.fb-2 { background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue)); color: var(--bg-void); }
.coin-ico-fb.fb-3 { background: linear-gradient(135deg, var(--neon-blue), var(--neon-amber)); }
.idn { display: inline-block; flex: none; vertical-align: middle; image-rendering: pixelated; }

/* ── hero ─────────────────────────────────────────────────────────────────── */
.hero { display: grid; gap: 22px; padding: 22px 0 6px; }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 600 9.5px/1.4 var(--font-hud); letter-spacing: .2em; color: var(--txt-mid); text-transform: uppercase; }
.eyebrow-chip { padding: 4px 7px 3px; border: 1px solid var(--neon-amber); color: var(--neon-amber); font-weight: 800; letter-spacing: .16em; }
.hero-title { margin: 14px 0 12px; font: 900 clamp(27px, 7.4vw, 50px)/1.02 var(--font-hud); letter-spacing: .01em; text-transform: uppercase; color: var(--txt-white); }
.hero-title span { display: block; width: fit-content; max-width: 100%; }
.hero-title .grad { background: var(--curve-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em; }
.hero-sub { max-width: 62ch; margin: 0 0 18px; color: var(--txt-mid); font-size: 13px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { flex: 1 1 auto; }
.readout {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px;
  background: color-mix(in srgb, var(--bg-panel) 80%, transparent); border: 1px solid var(--border); clip-path: var(--clip-corner);
}
.readout > div { padding: 11px 12px 12px; border-left: 1px solid var(--border); min-width: 0; }
.readout > div:first-child { border-left: 0; }
.readout dt { font: 600 8.5px/1.3 var(--font-hud); letter-spacing: .16em; color: var(--txt-mid); text-transform: uppercase; }
.ro-v { margin-top: 6px; font: 800 17px/1.1 var(--font-mono); color: var(--txt-white); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-s { margin-top: 3px; font-size: 10.5px; color: var(--txt-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 680px) {
  .hero-actions .btn { flex: 0 0 auto; }
  .readout > div { padding: 12px 16px 13px; }
  .readout dt { font-size: 9.5px; }
  .ro-v { font-size: 21px; }
}
@media (min-width: 1100px) {
  .hero { padding: 34px 0 10px; gap: 40px; align-items: center; }
  .hero.has-koth { grid-template-columns: minmax(0, 1fr) minmax(460px, 540px); }
  .hero-title { font-size: clamp(38px, 3.6vw, 52px); }
  .readout { max-width: 640px; }
}

/* ── King of the Hill (the hot element on the board) ─────────────────────── */
.koth-slot { min-width: 0; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--purple-depth) 42%, transparent)); }
.koth-slot[hidden] { display: none; }
.koth {
  position: relative; display: block; padding: 14px 16px 16px; overflow: hidden; color: inherit;
  background:
    radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--purple-depth) 24%, var(--bg-panel)), var(--bg-panel-2) 70%);
  border: 1px solid color-mix(in srgb, var(--purple-depth) 65%, var(--border)); clip-path: var(--clip-corner);
}
.koth:hover { text-decoration: none; border-color: var(--purple-depth); }
.koth:focus-visible { outline-offset: -5px; }
.koth::before {
  content: ''; position: absolute; top: 0; left: var(--hud-corner); right: var(--hud-corner); height: var(--hud-rail);
  background: linear-gradient(90deg, transparent, var(--lilac-text), transparent); opacity: .8;
}
/* slow scanline sweep */
.koth::after {
  content: ''; position: absolute; left: 0; right: 0; top: -40%; height: 40%; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--purple-depth) 16%, transparent) 60%, color-mix(in srgb, var(--lilac-text) 22%, transparent) 62%, transparent 64%);
  animation: scan 5.5s linear infinite;
}
@keyframes scan { to { transform: translateY(350%); } }
.koth-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.koth-crown { display: grid; place-items: center; width: 24px; height: 24px; color: var(--lilac-text); filter: drop-shadow(0 0 6px var(--purple-depth)); }
.koth-crown .ico { width: 20px; height: 20px; }
.koth-title { font: 800 11px/1 var(--font-hud); letter-spacing: .18em; text-transform: uppercase; color: var(--lilac-text); text-shadow: var(--glow-lilac); }
.koth-why { margin-left: auto; font-size: 10.5px; color: var(--txt-dim); text-align: right; }
@media (max-width: 479px) { .koth-why { display: none; } }
.koth-body { display: flex; gap: 14px; align-items: center; min-width: 0; }
.koth-ico { --s: 88px; box-shadow: none; }
.koth-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.koth-sym { font: 900 20px/1.05 var(--font-hud); letter-spacing: .05em; color: var(--txt-white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.koth-name { color: var(--txt-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.koth-mcap { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.koth-mcap .lbl { font: 600 9px var(--font-hud); letter-spacing: .16em; color: var(--txt-mid); text-transform: uppercase; }
.koth-mcap-v { font: 800 20px/1 var(--font-mono); color: var(--neon-amber); text-shadow: var(--glow-amber); }
.koth-mcap-s { color: var(--txt-dim); font-size: 11px; }
.koth-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.koth-by { display: inline-flex; align-items: center; gap: 6px; color: var(--txt-dim); font-size: 11px; }
.koth-curve { margin-top: 14px; }
.koth-curve-l { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; font-size: 10.5px; color: var(--txt-mid); }
.koth-curve-l b { color: var(--lilac-text); }
@media (min-width: 480px) { .koth-ico { --s: 104px; } .koth-sym { font-size: 22px; } }

/* ── board ────────────────────────────────────────────────────────────────── */
.board { padding: 22px 0 40px; scroll-margin-top: 64px; }
.board-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.board-title { width: 100%; font: 800 12px/1 var(--font-hud); letter-spacing: .18em; text-transform: uppercase; color: var(--txt-white); }
.board-title::before { content: '// '; color: var(--border-hot); font-weight: 400; }
.seg {
  display: flex; gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px;
  -webkit-mask: linear-gradient(90deg, black calc(100% - 24px), transparent); mask: linear-gradient(90deg, black calc(100% - 24px), transparent);
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: none; height: 32px; padding: 0 12px; background: var(--bg-panel); border: 1px solid var(--border); color: var(--txt-mid);
  font: 700 9.5px/1 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; clip-path: var(--clip-xs);
  transition: color .15s, border-color .15s, background .15s;
}
.seg button:hover { color: var(--txt-white); border-color: var(--border-hot); }
.seg button[aria-pressed="true"] { color: var(--neon-cyan); border-color: color-mix(in srgb, var(--neon-cyan) 70%, transparent); background: color-mix(in srgb, var(--neon-cyan) 9%, var(--bg-panel)); }
.seg button:focus-visible { outline-offset: -4px; }
.seg .seg-mine { margin-left: 8px; }
.seg .seg-mine[aria-pressed="true"] { color: var(--neon-amber); border-color: color-mix(in srgb, var(--neon-amber) 70%, transparent); background: color-mix(in srgb, var(--neon-amber) 8%, var(--bg-panel)); }
.search-board { flex: 1 1 100%; }
.board-count { margin-left: auto; font-size: 11px; color: var(--txt-dim); white-space: nowrap; }
.board-count:empty { display: none; }
@media (min-width: 680px) {
  .board-title { width: auto; margin-right: 6px; }
  .seg { -webkit-mask: none; mask: none; flex-wrap: wrap; overflow: visible; }
  .search-board { flex: 0 1 300px; }
}
@media (min-width: 1100px) { .search-board { display: none; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 312px), 1fr)); gap: 12px; }
.grid[hidden], .mine[hidden] { display: none; }
.board-more { display: flex; justify-content: center; margin-top: 20px; }
.board-more .btn[hidden] { display: none; }
.sentinel { height: 1px; }

/* ── coin card ────────────────────────────────────────────────────────────── */
.coin {
  position: relative; display: flex; flex-direction: column; gap: 11px; min-width: 0; padding: 13px 14px 14px; color: inherit;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--border); clip-path: var(--clip-corner);
  transition: border-color .2s, transform .2s, background .2s;
}
.coin::before {
  content: ''; position: absolute; top: 0; left: var(--hud-corner); right: var(--hud-corner); height: var(--hud-rail);
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent); opacity: .22; transition: opacity .2s;
}
a.coin:hover { text-decoration: none; border-color: var(--border-hot); transform: translateY(-2px); background: linear-gradient(180deg, color-mix(in srgb, var(--bg-panel) 70%, var(--bg-elev)), var(--bg-panel-2)); }
a.coin:hover::before { opacity: .7; }
.coin:focus-visible { outline-offset: -5px; }
.coin-top { display: flex; gap: 12px; min-width: 0; }
.coin-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
/* The ticker owns row 1: it never truncates; in the rare overflow the chip wraps. */
.coin-row1 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.coin-sym { flex: none; max-width: 100%; white-space: nowrap; font: 800 13.5px/1.2 var(--font-hud); letter-spacing: .04em; color: var(--txt-white); }
.coin-row1 .chg { margin-left: auto; }
.coin-ico-wrap { position: relative; flex: none; align-self: flex-start; display: flex; clip-path: var(--clip-sm); }
.coin-crown {
  position: absolute; left: -1px; top: -1px; display: grid; place-items: center; width: 24px; height: 22px;
  background: var(--purple-depth); color: var(--txt-white); clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}
.coin-crown .ico { width: 13px; height: 13px; margin: -3px -3px 0 0; }
.coin-strip {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 0 2px; text-align: center;
  font: 800 7.5px/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase;
  background: color-mix(in srgb, var(--bg-void) 82%, transparent); color: var(--txt-white);
}
.coin-strip.strip-grad { background: var(--neon-amber); color: var(--bg-void); }
.coin-strip.strip-halted { color: var(--neon-red); }
.coin-strip.strip-syncing, .coin-strip.strip-pending_deploy { color: var(--neon-amber); }
.coin-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--txt-bright); font-size: 12px; }
.coin-meta { display: flex; align-items: center; gap: 6px; color: var(--txt-dim); font-size: 11px; min-width: 0; white-space: nowrap; }
.coin-meta .sep { opacity: .6; }
.coin-desc { margin-top: 3px; color: var(--txt-mid); font-size: 11.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.coin-desc:empty { display: none; }
.coin-stats { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin-top: auto; }
.coin-mcap { display: flex; align-items: baseline; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; }
.coin-mcap .lbl { font: 600 8.5px/1 var(--font-hud); letter-spacing: .16em; color: var(--txt-mid); }
.coin-mcap-v { font: 800 15px/1 var(--font-mono); color: var(--txt-white); }
.coin-mcap-s { font-size: 11px; color: var(--txt-dim); overflow: hidden; text-overflow: ellipsis; }
.coin-social { display: flex; gap: 12px; margin-left: auto; color: var(--txt-dim); font-size: 11px; flex: none; }
.coin-social > span { display: inline-flex; align-items: center; gap: 4px; }
.coin-social b { font-weight: 600; color: var(--txt-mid); }
.coin-social .ico { width: 13px; height: 13px; }
.coin-curve { display: flex; align-items: center; gap: 10px; }
.coin-curve .meter { flex: 1; }
.coin-pct { min-width: 46px; text-align: right; font: 600 11px/1 var(--font-mono); color: var(--lilac-text); }
.coin-pct.is-grad { color: var(--neon-amber); font-family: var(--font-hud); font-size: 9px; letter-spacing: .14em; font-weight: 800; }
.coin.flash-up { animation: flashUp 1.1s ease-out; }
.coin.flash-down { animation: flashDown 1.1s ease-out; }
.coin.flash-new, .koth.flash-new { animation: flashNew 1.6s ease-out; }
@keyframes flashUp { from { box-shadow: inset 0 0 0 1px var(--buy), inset 0 0 44px color-mix(in srgb, var(--buy) 18%, transparent); } to { box-shadow: inset 0 0 0 1px transparent, inset 0 0 44px transparent; } }
@keyframes flashDown { from { box-shadow: inset 0 0 0 1px var(--sell), inset 0 0 44px color-mix(in srgb, var(--sell) 24%, transparent); } to { box-shadow: inset 0 0 0 1px transparent, inset 0 0 44px transparent; } }
@keyframes flashNew { from { box-shadow: inset 0 0 0 1px var(--purple-depth), inset 0 0 60px color-mix(in srgb, var(--purple-depth) 38%, transparent); } to { box-shadow: inset 0 0 0 1px transparent, inset 0 0 60px transparent; } }

/* skeletons & states */
.skel { display: block; background: linear-gradient(90deg, var(--bg-elev) 0%, color-mix(in srgb, var(--bg-elev) 55%, var(--border-hot)) 50%, var(--bg-elev) 100%) 0 0 / 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.coin-skel { pointer-events: none; }
.sk-ico { width: 76px; height: 76px; flex: none; clip-path: var(--clip-sm); }
.sk-l1 { width: 46%; height: 13px; }
.sk-l2 { width: 72%; height: 11px; margin-top: 4px; }
.sk-l3 { width: 40%; height: 10px; margin-top: 4px; }
.sk-l4 { width: 90%; height: 10px; margin-top: 8px; }
.sk-l5 { width: 55%; height: 14px; }
.sk-meter { width: 100%; height: 10px; }
.state {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 44px 18px; text-align: center;
  background: color-mix(in srgb, var(--bg-panel) 70%, transparent); border: 1px dashed var(--border-hot); clip-path: var(--clip-corner);
}
.state-ico { display: grid; place-items: center; width: 44px; height: 44px; color: var(--lilac-text); border: 1px solid color-mix(in srgb, var(--purple-depth) 60%, transparent); background: var(--lilac-dim); clip-path: var(--clip-sm); }
.state-ico .ico { width: 22px; height: 22px; }
.state-error .state-ico { color: var(--neon-red); border-color: color-mix(in srgb, var(--neon-red) 50%, transparent); background: color-mix(in srgb, var(--neon-red) 8%, transparent); }
.state-wallet .state-ico { color: var(--neon-amber); border-color: color-mix(in srgb, var(--neon-amber) 50%, transparent); background: color-mix(in srgb, var(--neon-amber) 8%, transparent); }
.state h3 { font: 800 12px/1.3 var(--font-hud); letter-spacing: .12em; text-transform: uppercase; color: var(--txt-white); }
.state p { max-width: 52ch; color: var(--txt-mid); line-height: 1.6; }
.state .btn { margin-top: 6px; }

/* ── My coins ─────────────────────────────────────────────────────────────── */
.mine { display: flex; flex-direction: column; gap: 14px; }
.mine-loading { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 312px), 1fr)); }
.mine-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 16px; }
.mine-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mine-who > div { min-width: 0; }
.mine-addr { display: block; margin-top: 5px; color: var(--txt-white); font-size: 12px; overflow-wrap: anywhere; }
.mine-kpis { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-left: auto; }
.mine-k { display: block; margin-top: 5px; font: 800 18px/1.1 var(--font-mono); color: var(--txt-white); }
.mine-ks { display: block; margin-top: 2px; font-size: 11px; color: var(--txt-dim); }
.mine-created { margin-top: 10px; }

/* ── tables ───────────────────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th {
  position: sticky; top: 0; z-index: 1; padding: 9px 12px; text-align: left; white-space: nowrap;
  background: var(--bg-panel); border-bottom: 1px solid var(--border);
  font: 600 9px/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--txt-mid);
}
.tbl td { padding: 8px 12px; border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); white-space: nowrap; }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--bg-elev) 70%, transparent); }
.tbl .num { text-align: right; }
.tbl-coin { display: inline-flex; align-items: center; gap: 9px; color: var(--txt-white); }
.tbl-coin .coin-ico { clip-path: var(--clip-xs); }
.tbl-coin:hover { text-decoration: none; color: var(--neon-cyan); }
@media (max-width: 679px) { .hide-s { display: none; } }

/* ── footer ───────────────────────────────────────────────────────────────── */
.mp-footer { margin-top: 36px; padding: 22px 0 30px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg-void) 70%, transparent); }
.footer-in { display: grid; gap: 8px; font-size: 11.5px; color: var(--txt-dim); }
.risk { color: var(--txt-mid); line-height: 1.6; }
.risk strong { color: var(--neon-amber); font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-links span { color: var(--border-hot); }
.foot-meta a { color: var(--txt-mid); }

/* ── toasts ───────────────────────────────────────────────────────────────── */
.toasts { position: fixed; z-index: 120; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 10px 12px 14px;
  background: var(--bg-elev); border: 1px solid var(--border-hot); border-left: 3px solid var(--neon-cyan);
  clip-path: var(--clip-sm); box-shadow: 0 10px 30px color-mix(in srgb, var(--bg-void) 75%, transparent); animation: toastIn .22s ease-out;
}
.toast.is-out { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.toast-ok { border-left-color: var(--ok); }
.toast-err { border-left-color: var(--neon-red); }
.toast-ico { color: var(--neon-cyan); margin-top: 1px; }
.toast-ok .toast-ico { color: var(--ok); }
.toast-err .toast-ico { color: var(--neon-red); }
.toast-ico .ico { width: 16px; height: 16px; }
.toast-body { flex: 1; min-width: 0; color: var(--txt-white); line-height: 1.5; overflow-wrap: anywhere; }
.toast-body a { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; }
.toast-x { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; background: none; border: 0; color: var(--txt-dim); }
.toast-x:hover { color: var(--txt-white); }
.toast-x .ico { width: 14px; height: 14px; }
@media (min-width: 1100px) { .toasts { right: auto; left: 16px; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .koth::after { display: none; }
  .live-dot { animation: none; }
  .skel { animation: none; }
}

/* =============================================================================
   TOKEN PAGE
   ============================================================================= */
.tk { padding-top: 14px; }
.back { display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; color: var(--txt-mid); font: 700 10px/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; }
.back:hover { color: var(--neon-cyan); text-decoration: none; }
.back .ico { width: 14px; height: 14px; }
.spin { display: inline-block; flex: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tk-banner { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; border: 1px solid; clip-path: var(--clip-sm); font-size: 12.5px; line-height: 1.5; }
.tk-banner[hidden] { display: none; }
.tk-banner .ico { width: 16px; height: 16px; }
.tk-banner-pending { color: var(--neon-amber); border-color: color-mix(in srgb, var(--neon-amber) 50%, transparent); background: color-mix(in srgb, var(--neon-amber) 7%, transparent); }
.tk-banner-halted { color: var(--neon-red); border-color: color-mix(in srgb, var(--neon-red) 50%, transparent); background: color-mix(in srgb, var(--neon-red) 7%, transparent); }

/* head */
.tk-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; align-items: start; padding: 14px 0 16px; }
.tk-head.is-state { display: block; padding: 28px 0; }
.tk-sk-ico { width: 76px; height: 76px; clip-path: var(--clip-sm); }
.tk-sk-lines { display: grid; gap: 10px; padding-top: 4px; }
.tk-sk-1 { width: min(340px, 70%); height: 24px; }
.tk-sk-2 { width: min(460px, 90%); height: 12px; }
.tk-sk-3 { width: min(560px, 95%); height: 12px; }
.tk-ico { --s: 64px; }
.tk-id { min-width: 0; }
.tk-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.tk-name { font: 900 clamp(19px, 5vw, 28px)/1.1 var(--font-hud); letter-spacing: .03em; color: var(--txt-white); overflow-wrap: anywhere; }
.tk-sym { font: 800 15px/1 var(--font-mono); color: var(--neon-amber); }
.tk-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 9px; font-size: 12px; color: var(--txt-mid); }
.tk-m { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.tk-k { font: 600 8.5px/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--txt-dim); }
.tk-m code { color: var(--txt-bright); font-size: 12px; }
.tk-m a { display: inline-flex; align-items: center; gap: 6px; color: var(--txt-bright); }
.tk-m a:hover { color: var(--neon-cyan); }
.tk-desc { grid-column: 1 / -1; margin-top: 10px; max-width: 86ch; color: var(--txt-mid); line-height: 1.6; overflow-wrap: anywhere; }
.tk-socials { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.social {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; color: var(--txt-bright);
  background: var(--bg-panel); border: 1px solid var(--border-hot); clip-path: var(--clip-xs);
  font: 700 9.5px/1 var(--font-hud); letter-spacing: .14em; text-transform: uppercase;
}
.social:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); text-decoration: none; }
.social { width: 34px; padding: 0; justify-content: center; }
.social .ico { width: 15px; height: 15px; }
@media (min-width: 680px) {
  .tk-ico { --s: 76px; }
  .tk-desc { grid-column: auto; }
}
@media (min-width: 900px) {
  .tk-head { grid-template-columns: auto minmax(0, 1fr) auto; }
  .tk-socials { grid-column: auto; justify-content: flex-end; max-width: 300px; }
}

/* layout */
.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.tk-grid[hidden] { display: none; }
.tk-side-in { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1100px) {
  .tk-grid {
    grid-template-columns: minmax(0, 1fr) 388px; gap: 14px; align-items: start;
    grid-template-areas: "price side" "chart side" "stats side" "tabs side" "info side";
  }
  .tk-price { grid-area: price; }
  .tk-chart { grid-area: chart; }
  .tk-side { grid-area: side; align-self: stretch; }
  .tk-stats { grid-area: stats; }
  .tk-tabs { grid-area: tabs; }
  .tk-info { grid-area: info; }
  .tk-side-in {
    position: sticky; top: calc(var(--hdr-h) + 12px); gap: 14px;
    max-height: calc(100vh - var(--hdr-h) - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border-hot) transparent;
  }
}

/* price strip */
.tk-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tk-price-sk { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 16px; }
.tk-price-sk .skel { height: 46px; }
.px-main, .px-mcap { min-width: 0; padding: 14px 16px 13px; }
.px-main { border-right: 1px solid var(--border); }
.px-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 7px; }
.px-v { font: 800 24px/1 var(--font-mono); letter-spacing: -.01em; color: var(--neon-amber); text-shadow: var(--glow-amber); }
.px-v.tick-up { animation: tickUp 1s ease-out; }
.px-v.tick-down { animation: tickDown 1s ease-out; }
@keyframes tickUp { 0%, 25% { color: var(--up); text-shadow: 0 0 14px color-mix(in srgb, var(--up) 60%, transparent); } }
@keyframes tickDown { 0%, 25% { color: var(--down); text-shadow: 0 0 14px color-mix(in srgb, var(--down) 60%, transparent); } }
.px-u { font-size: 11px; color: var(--txt-dim); }
.px-s { display: block; margin-top: 6px; font-size: 11.5px; color: var(--txt-mid); }
.px-mcap-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kv-v { display: block; margin-top: 7px; font: 800 22px/1.05 var(--font-mono); color: var(--txt-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv-v.kv-sm { margin-top: 5px; font-size: 14px; font-weight: 700; }
.kv-s { display: block; margin-top: 4px; font-size: 11px; color: var(--txt-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-seg { display: inline-flex; border: 1px solid var(--border); }
.mini-seg button { height: 20px; padding: 0 7px; background: transparent; border: 0; color: var(--txt-dim); font: 700 8.5px/1 var(--font-hud); letter-spacing: .12em; }
.mini-seg button[aria-pressed="true"] { background: var(--bg-elev); color: var(--neon-cyan); }
.mini-seg button:disabled { opacity: .35; cursor: not-allowed; }
.mini-seg button:focus-visible { outline-offset: -2px; }
.px-chg { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.px-c { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 10px 4px; border-left: 1px solid var(--border); }
.px-c:first-child { border-left: 0; }
.px-c .label { font-size: 9px; }
.px-mini { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.px-mini-c { min-width: 0; padding: 10px 16px 11px; border-left: 1px solid var(--border); }
.px-mini-c:nth-child(odd) { border-left: 0; }
.px-mini-c:nth-child(n+3) { border-top: 1px solid var(--border); }
.px-mini-c .label { font-size: 8.5px; color: var(--txt-dim); }
@media (min-width: 680px) {
  .tk-price { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.45fr); }
  .px-mcap { border-right: 1px solid var(--border); }
  .px-chg { grid-column: auto; border-top: 0; }
  .px-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .px-mini-c:nth-child(odd) { border-left: 1px solid var(--border); }
  .px-mini-c:first-child { border-left: 0; }
  .px-mini-c:nth-child(n+3) { border-top: 0; }
  .px-v { font-size: 28px; }
}

/* chart */
.tk-chart .card-header { padding: 9px 12px 9px 16px; }
.chart-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.seg.seg-sm { -webkit-mask: none; mask: none; overflow: visible; flex-wrap: wrap; gap: 2px; padding: 0; }
.seg-sm button { height: 26px; padding: 0 9px; font-size: 9px; letter-spacing: .1em; }
.seg-sm button:disabled { opacity: .35; cursor: not-allowed; }
.chart-legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; min-height: 34px; padding: 8px 16px; font-size: 11.5px; border-bottom: 1px solid var(--border); }
.lg-k { margin-right: 2px; font: 600 9px/1.4 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--txt-mid); }
.lg-i { display: inline-flex; gap: 4px; }
.lg-l { color: var(--txt-dim); }
.lg-i b { font-weight: 600; color: var(--txt-white); }
.lg-i b.up, .lg-chg.up { color: var(--up); }
.lg-i b.down, .lg-chg.down { color: var(--down); }
.lg-chg { font-weight: 600; }
.lg-t { margin-left: auto; color: var(--txt-dim); }
.chart-box { position: relative; height: 320px; }
.chart-msg { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: var(--bg-panel); }
.chart-msg[hidden] { display: none; }
.chart-sk { width: calc(100% - 32px); height: calc(100% - 32px); }
.chart-note { padding: 18px; text-align: center; color: var(--txt-mid); }
.chart-note .btn { margin-left: 8px; }
@media (min-width: 680px) { .chart-box { height: 380px; } }
@media (min-width: 1100px) { .chart-box { height: 430px; } }

/* trade panel */
.trade-state { font: 800 8.5px/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; }
.trade-state.is-syncing { color: var(--neon-amber); }
.trade-state.is-halted { color: var(--neon-red); }
.trade-body { display: flex; flex-direction: column; gap: 11px; }
.trade-sk { height: 360px; }
.tt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tt {
  height: 40px; background: var(--bg-elev); border: 1px solid var(--border); color: var(--txt-mid); clip-path: var(--clip-sm);
  font: 800 11.5px/1 var(--font-hud); letter-spacing: .22em; text-transform: uppercase; transition: color .15s, border-color .15s, background .15s;
}
.tt:hover:not(:disabled) { color: var(--txt-white); }
.tt:focus-visible { outline-offset: -5px; }
.tt-buy[aria-pressed="true"] { color: var(--bg-void); border-color: var(--buy); background: var(--buy); box-shadow: var(--glow-amber); }
.tt-sell[aria-pressed="true"] { color: var(--txt-white); border-color: var(--sell); background: var(--sell); box-shadow: var(--glow-lilac); }
.tr-balrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 18px; font-size: 12px; }
.tr-bal { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; min-width: 0; }
.tr-bal .label { display: inline; font-size: 8.5px; color: var(--txt-dim); margin-right: 2px; }
.tr-bal b { font-weight: 600; color: var(--txt-mid); }
.tr-bal b.hot { color: var(--txt-white); }
.linkish { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 2px 0; background: none; border: 0; color: var(--neon-cyan); font: 600 11px var(--font-mono); }
.linkish:hover { text-decoration: underline; }
.linkish[hidden] { display: none; }
.amt { position: relative; display: flex; align-items: center; height: 54px; background: var(--bg-void); border: 1px solid var(--border-hot); clip-path: var(--clip-sm); cursor: text; transition: border-color .15s; }
.amt:focus-within { border-color: var(--neon-cyan); }
.amt-in { flex: 1; min-width: 0; height: 100%; padding: 0 12px; background: transparent; border: 0; outline: none; color: var(--txt-white); font: 700 21px/1 var(--font-mono); }
.amt-in::placeholder { color: var(--border-hot); }
.amt-in:disabled { color: var(--txt-mid); }
.amt-in[aria-invalid="true"] { color: var(--neon-amber); }
.amt-echo { padding-right: 10px; font-size: 11px; color: var(--txt-dim); white-space: nowrap; }
.amt-echo:empty { display: none; }
.amt-unit { display: flex; align-items: center; align-self: stretch; max-width: 42%; padding: 0 12px; border-left: 1px solid var(--border); color: var(--txt-mid); font: 800 10.5px/1 var(--font-hud); letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amt-hint { margin-top: -6px; font-size: 11.5px; line-height: 1.5; color: var(--txt-dim); }
.amt-hint:empty { display: none; }
.amt-hint.is-err { color: var(--neon-amber); }
.presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
[data-side="sell"] .presets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pre {
  height: 30px; padding: 0 4px; background: var(--bg-panel); border: 1px solid var(--border); color: var(--txt-bright); clip-path: var(--clip-xs);
  font: 600 11.5px/1 var(--font-mono); transition: border-color .15s, color .15s;
}
.pre:hover:not(:disabled) { border-color: var(--neon-cyan); color: var(--txt-white); }
.pre:focus-visible { outline-offset: -4px; }
.pre-max { color: var(--neon-amber); font: 800 9px/1 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; }
.slip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; }
.slip .label { font-size: 9px; }
.slip-opts { display: flex; align-items: center; gap: 4px; }
.slip-b { height: 26px; padding: 0 8px; background: var(--bg-panel); border: 1px solid var(--border); color: var(--txt-mid); clip-path: var(--clip-xs); font: 600 11px/1 var(--font-mono); }
.slip-b:hover { color: var(--txt-white); }
.slip-b[aria-pressed="true"] { color: var(--neon-cyan); border-color: color-mix(in srgb, var(--neon-cyan) 60%, transparent); }
.slip-b:focus-visible { outline-offset: -4px; }
.slip-custom { display: inline-flex; align-items: center; gap: 3px; color: var(--txt-dim); font-size: 11px; }
.slip-in { width: 62px; height: 26px; padding: 0 6px; background: var(--bg-void); border: 1px solid var(--border); color: var(--txt-white); font: 11px var(--font-mono); }
.slip-in:focus { outline: none; border-color: var(--neon-cyan); }
.quote { min-height: 64px; padding: 11px 12px; background: color-mix(in srgb, var(--bg-void) 65%, transparent); border: 1px solid var(--border); transition: opacity .2s; }
.quote.is-loading { opacity: .5; }
.q-rows { display: grid; gap: 7px; }
.q-r { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; }
.q-r dt { color: var(--txt-mid); }
.q-r dd { min-width: 0; text-align: right; color: var(--txt-bright); }
.q-sub { display: block; margin-top: 1px; font-size: 10.5px; color: var(--txt-dim); }
.q-big dd { font-size: 14px; font-weight: 800; color: var(--txt-white); }
.q-total { padding-top: 7px; border-top: 1px dashed var(--border-hot); }
.q-total dd { font-weight: 700; color: var(--txt-white); }
.q-warn dd { color: var(--neon-amber); font-weight: 700; }
.q-danger dd { color: var(--neon-red); font-weight: 800; }
.q-note { display: flex; gap: 7px; margin-top: 10px; padding: 9px 10px; color: var(--lilac-text); background: var(--lilac-dim); border: 1px solid color-mix(in srgb, var(--purple-depth) 55%, transparent); font-size: 12px; line-height: 1.5; }
.q-note .ico { margin-top: 2px; }
.q-note-err { color: var(--neon-red); background: color-mix(in srgb, var(--neon-red) 7%, transparent); border-color: color-mix(in srgb, var(--neon-red) 45%, transparent); }
.q-err { color: var(--neon-red); font-size: 12px; line-height: 1.5; }
.q-empty { color: var(--txt-dim); font-size: 12px; line-height: 1.6; }
.trade-go { height: 52px; font-size: 13px; letter-spacing: .2em; }
.trade-go.btn-cyan { font-size: 10.5px; letter-spacing: .08em; white-space: normal; line-height: 1.25; text-align: center; }
.trade-go.btn-primary:not(:disabled) { box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--bg-void) 25%, transparent); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.steps[hidden] { display: none; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--txt-dim); font: 700 7.5px/1 var(--font-hud); letter-spacing: .12em; text-transform: uppercase; }
.steps i { width: 100%; height: 4px; background: var(--bg-elev); }
.steps li.is-done { color: var(--ok); }
.steps li.is-done i { background: var(--ok); }
.steps li.is-on { color: var(--neon-cyan); }
.steps li.is-on i { background: var(--neon-cyan); animation: blink 1s ease-in-out infinite; }
.steps li.is-fail { color: var(--neon-red); }
.steps li.is-fail i { background: var(--neon-red); }
.step-note { font-size: 11.5px; color: var(--neon-amber); }
.step-note[hidden] { display: none; }
.trade-err { display: flex; align-items: flex-start; gap: 6px; padding: 9px 11px; color: var(--neon-red); background: color-mix(in srgb, var(--neon-red) 7%, transparent); border: 1px solid color-mix(in srgb, var(--neon-red) 45%, transparent); font-size: 12px; line-height: 1.5; }
.trade-err[hidden] { display: none; }
.trade-err .ico { margin-top: 2px; }
.fine { display: flex; gap: 7px; font-size: 11px; line-height: 1.5; color: var(--txt-dim); }
.fine .ico { margin-top: 2px; color: var(--ok); }

/* bonding curve card */
.curve { border-color: color-mix(in srgb, var(--purple-depth) 42%, var(--border)); }
.curve::before { background: linear-gradient(90deg, transparent, var(--purple-depth), transparent); opacity: .8; }
.curve .card-title { color: var(--lilac-text); text-shadow: 0 0 8px color-mix(in srgb, var(--purple-depth) 45%, transparent); }
.curve-pct { font: 800 16px/1 var(--font-mono); color: var(--lilac-text); }
.curve-pct.is-grad { color: var(--neon-amber); font: 800 10px/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; }
.curve-sk { height: 220px; }
.cv-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 13px; }
.cv-kv .label { font-size: 8.5px; }
.cv-v { display: block; margin-top: 5px; font: 700 15px/1.1 var(--font-mono); color: var(--txt-white); }
.cv-s { display: block; margin-top: 3px; font-size: 11px; color: var(--txt-dim); }
.cv-fig { margin: 12px 0 0; padding-top: 6px; border-top: 1px dashed var(--border); }
.cv-svg { display: block; width: 100%; height: auto; overflow: visible; }
.cv-svg text { font: 8.5px var(--font-mono); fill: var(--txt-dim); }
.cv-svg .cv-t-grad { fill: var(--neon-amber); font: 700 6.5px var(--font-hud); letter-spacing: .14em; }
.cv-svg .cv-t-p { fill: var(--lilac-text); }
.cv-axis { stroke: var(--border-hot); stroke-width: 1; }
.cv-rest { fill: none; stroke: var(--border-hot); stroke-width: 1.5; stroke-dasharray: 3 3; }
.cv-done { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cv-stop-a { stop-color: var(--purple-depth); stop-opacity: .5; }
.cv-stop-b { stop-color: var(--purple-depth); stop-opacity: 0; }
.cv-stop-l1 { stop-color: var(--purple-depth); }
.cv-stop-l2 { stop-color: var(--neon-amber); }
.cv-grad { stroke: var(--neon-amber); stroke-width: 1; stroke-dasharray: 2 3; opacity: .85; }
.cv-drop { stroke: var(--lilac-text); stroke-width: 1; stroke-dasharray: 2 2; opacity: .55; }
.cv-halo { fill: color-mix(in srgb, var(--purple-depth) 40%, transparent); transform-box: fill-box; transform-origin: center; animation: halo 2.2s ease-in-out infinite; }
@keyframes halo { 0%, 100% { transform: scale(.8); opacity: .9; } 50% { transform: scale(1.5); opacity: .25; } }
.cv-dot { fill: var(--txt-white); stroke: var(--purple-depth); stroke-width: 1.6; }
.cv-dot.is-grad { stroke: var(--neon-amber); }
.cv-note { margin-top: 10px; font-size: 11.5px; line-height: 1.55; color: var(--txt-mid); }

/* activity */
.stats-body { display: grid; gap: 14px; }
.st-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; min-width: 0; }
.st-kv .label { font-size: 9px; }
.st-v { display: block; margin-top: 4px; font: 800 16px/1.1 var(--font-mono); color: var(--txt-white); white-space: nowrap; }
.ratio { min-width: 0; }
.ratio-l { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; font-size: 11.5px; white-space: nowrap; }
.ratio-l b { font-weight: 700; }
.ratio-bar { display: flex; gap: 2px; height: 6px; background: var(--bg-elev); }
.rb-up { background: var(--buy); }
.rb-down { flex: 1; background: var(--sell); }
.st-chg { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-chg .label { font-size: 9px; }
@media (min-width: 680px) {
  .stats-body { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .st-row { grid-template-columns: 1fr; gap: 9px; }
}

/* tabs */
.tabs-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 10px; padding-right: 12px; border-bottom: 1px solid var(--border); }
.tabs { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs [role="tab"] {
  position: relative; flex: none; height: 46px; padding: 0 15px; background: none; border: 0; color: var(--txt-mid);
  font: 800 10.5px/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase;
}
.tabs [role="tab"]:hover { color: var(--txt-white); }
.tabs [role="tab"][aria-selected="true"] { color: var(--txt-white); }
.tabs [role="tab"][aria-selected="true"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--neon-cyan); box-shadow: var(--glow-cyan); }
.tabs [role="tab"]:focus-visible { outline-offset: -4px; }
.tab-n { margin-left: 3px; font: 600 10.5px/1 var(--font-mono); letter-spacing: 0; color: var(--txt-dim); }
.tabs-bar .seg-sm[hidden] { display: none; }
.tab-panel[hidden] { display: none; }
.tab-panel > .state { margin: 14px; }
.rows-sk { display: grid; gap: 8px; padding: 14px 16px; }
.rows-sk .skel { height: 22px; }
.tbl-scroll { max-height: 560px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border-hot) transparent; }
.tbl-trades td, .tbl-holders td { padding-top: 7px; padding-bottom: 7px; }
.side { font: 800 8.5px/1 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; }
.tr-buy .side { color: var(--buy); }
.tr-sell .side { color: var(--lilac-text); }
.tr-buy .c-bsv, .tr-buy .c-tok { color: var(--up); }
.tr-sell .c-bsv, .tr-sell .c-tok { color: var(--down); }
.c-age a { color: var(--txt-mid); }
.c-age a:hover { color: var(--neon-cyan); }
.pend { display: inline-block; margin-left: 6px; padding: 2px 4px; color: var(--neon-amber); border: 1px dashed color-mix(in srgb, var(--neon-amber) 60%, transparent); font-size: 9.5px; }
.c-usd, .c-px { color: var(--txt-mid); }
.c-who a, .c-tx a { display: inline-flex; align-items: center; gap: 6px; color: var(--txt-bright); }
.c-tx a { color: var(--txt-mid); gap: 4px; }
.c-who a:hover, .c-tx a:hover { color: var(--neon-cyan); text-decoration: none; }
.c-who .badge { margin-left: 6px; vertical-align: middle; }
.tbl .is-mine td { background: color-mix(in srgb, var(--neon-amber) 5%, transparent); }
.row-new td, .cmt.row-new { animation: rowIn 1.4s ease-out; }
@keyframes rowIn { 0% { opacity: 0; background: color-mix(in srgb, var(--neon-cyan) 18%, transparent); } 30% { opacity: 1; } 100% { background: transparent; } }
.more-btn { display: flex; margin: 12px auto 14px; }
.tbl-empty { padding: 18px; text-align: center; color: var(--txt-dim); }
@media (max-width: 899px) { .hide-m { display: none; } }
@media (max-width: 679px) {
  .tbl-trades th, .tbl-trades td { padding-left: 7px; padding-right: 7px; }
  .tbl-trades .c-tx, .tbl-trades th:last-child { display: none; }
}

/* holders */
.h-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.h-sum .label { font-size: 8.5px; }
.h-sum b { display: inline-block; margin-top: 5px; font: 800 15px/1 var(--font-mono); color: var(--txt-white); }
.h-sum .dim { font-size: 10.5px; }
@media (min-width: 680px) { .h-sum { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.c-rank { width: 44px; color: var(--txt-dim); }
.share { display: inline-block; width: 120px; height: 6px; margin-right: 9px; vertical-align: middle; background: var(--bg-elev); }
.share i { display: block; height: 100%; background: var(--neon-cyan); }
.is-curve .share i { background: var(--curve-grad); }
.share-v { font-weight: 600; color: var(--txt-white); }
@media (max-width: 679px) { .share { width: 56px; } }

/* thread */
.compose { display: grid; gap: 9px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cmt-ta {
  width: 100%; min-height: 78px; resize: vertical; padding: 10px 12px; background: var(--bg-void); border: 1px solid var(--border-hot);
  color: var(--txt-white); font: 13px/1.5 var(--font-mono); clip-path: var(--clip-sm);
}
.cmt-ta:focus { outline: none; border-color: var(--neon-cyan); }
.cmt-ta::placeholder { color: var(--txt-dim); }
.compose-bar { display: flex; align-items: center; gap: 12px; }
.compose-hint { flex: 1; min-width: 0; font-size: 11px; }
.cmt-cnt { font-size: 11px; color: var(--txt-dim); white-space: nowrap; }
.cmt-cnt.is-full { color: var(--neon-amber); }
.cmt-reply { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--neon-cyan); }
.cmt-reply[hidden] { display: none; }
.cmt-reply .icon-btn { margin-left: 4px; width: 22px; height: 22px; }
.cmts { display: flex; flex-direction: column; }
.cmt { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); scroll-margin-top: 80px; }
.cmt.is-dev { background: linear-gradient(90deg, color-mix(in srgb, var(--neon-cyan) 6%, transparent), transparent 60%); box-shadow: inset 2px 0 0 var(--neon-cyan); }
.cmt:target { background: var(--lilac-dim); box-shadow: inset 2px 0 0 var(--purple-depth); }
.cmt-main { min-width: 0; }
.cmt-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--txt-dim); }
.cmt-who { font-weight: 600; color: var(--txt-bright); }
.cmt-id { color: var(--border-hot); }
.cmt-act { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; padding: 2px 4px; background: none; border: 0; color: var(--txt-dim); font: 11px var(--font-mono); }
.cmt-act:hover { color: var(--neon-cyan); }
.cmt-re { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px; color: var(--lilac-text); }
.cmt-body { margin-top: 5px; color: var(--txt-bright); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

/* info & audit */
.info-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ok); }
.inf { display: grid; }
.inf-r { display: grid; grid-template-columns: minmax(118px, 36%) minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.inf-r dt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--txt-mid); }
.inf-r dd { min-width: 0; font-size: 12px; color: var(--txt-white); }
.inf-r dd b { font-weight: 700; }
.inf-note { display: block; margin-top: 2px; font-size: 11px; color: var(--txt-dim); }
.inf-ok { display: inline-flex; color: var(--ok); }
.inf-warn { display: inline-flex; color: var(--neon-amber); }
.inf-addr { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.inf-addr a { display: inline-flex; align-items: center; gap: 6px; color: var(--txt-bright); }
.inf-addr a:hover { color: var(--neon-cyan); text-decoration: none; }
.inf-r .icon-btn { width: 22px; height: 22px; }
.por-wrap { margin-top: 18px; }
.por-sk { height: 132px; }
.por-status { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 8px; padding: 9px 11px; border: 1px solid; font-size: 12px; line-height: 1.5; }
.por-status .ico { margin-top: 2px; }
.por-status.is-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 38%, transparent); background: color-mix(in srgb, var(--ok) 6%, transparent); }
.por-status.is-warn { color: var(--neon-amber); border-color: color-mix(in srgb, var(--neon-amber) 45%, transparent); background: color-mix(in srgb, var(--neon-amber) 6%, transparent); }
.tbl-por th { position: static; }
.tbl-por th[scope="row"] { padding: 8px 12px 8px 0; text-align: left; font: 600 9px/1 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--txt-mid); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); background: none; }
.tbl-por td { font-size: 11.5px; }
.settle { display: flex; gap: 8px; margin-top: 16px; padding: 12px 14px; color: var(--txt-bright); background: color-mix(in srgb, var(--neon-cyan) 5%, transparent); border: 1px solid color-mix(in srgb, var(--neon-cyan) 25%, transparent); font-size: 12px; line-height: 1.55; }
.settle .ico { margin-top: 2px; color: var(--neon-cyan); }
@media (min-width: 900px) {
  .tk-info .card-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
  .por-wrap { margin-top: 0; }
  .settle { grid-column: 1 / -1; }
}

/* mobile action bar */
.mbar {
  position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) 96px 96px; align-items: center; gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg-void) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-hot); transition: transform .25s ease;
}
.mbar[hidden] { display: none; }
.mbar.is-off { transform: translateY(110%); }
.mbar-px { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mbar-sym { font: 800 12px/1.1 var(--font-hud); letter-spacing: .06em; color: var(--txt-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbar-v { font: 700 12px/1.1 var(--font-mono); color: var(--neon-amber); white-space: nowrap; }
.mbar .btn { height: 42px; }
.page-token .mp-footer { padding-bottom: 96px; }
.page-token .toasts { bottom: calc(78px + env(safe-area-inset-bottom)); }
@media (min-width: 1100px) {
  .mbar { display: none !important; }
  .page-token .mp-footer { padding-bottom: 30px; }
  .page-token .toasts { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cv-halo { animation: none; }
  .mbar { transition: none; }
}

/* =============================================================================
   LAUNCH PAGE
   ============================================================================= */
.cr { padding-top: 14px; }
.cr-head { padding: 14px 0 18px; }
.cr-title { margin: 12px 0 8px; font: 900 clamp(26px, 6vw, 40px)/1.05 var(--font-hud); letter-spacing: .02em; text-transform: uppercase; color: var(--txt-white); }
.cr-sub { max-width: 70ch; color: var(--txt-mid); line-height: 1.6; }
.cr-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.cr-req { font-size: 11px; }
.cr-fields { display: grid; gap: 20px; padding: 16px; }
.cr-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cr-names { display: grid; gap: 14px; align-content: start; min-width: 0; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-l { display: block; font: 700 9.5px/1.3 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--txt-bright); }
.field-l b { color: var(--neon-amber); font-weight: 700; }
.field-l .dim { font: 400 11px var(--font-mono); letter-spacing: 0; text-transform: none; }
.field-set { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 9px; }
.field-set > legend { padding: 0; margin-bottom: 9px; }
.hint { font-size: 11.5px; line-height: 1.5; color: var(--txt-dim); }
.field-err { font-size: 11.5px; line-height: 1.5; color: var(--neon-red); }
.field-err[hidden] { display: none; }
.inp {
  position: relative; display: flex; align-items: center; min-width: 0; height: 44px;
  background: var(--bg-void); border: 1px solid var(--border-hot); clip-path: var(--clip-sm); transition: border-color .15s;
}
.inp:focus-within { border-color: var(--neon-cyan); }
.inp:has([aria-invalid="true"]) { border-color: color-mix(in srgb, var(--neon-red) 70%, transparent); }
.inp input, .inp textarea { flex: 1; min-width: 0; height: 100%; padding: 0 12px; background: transparent; border: 0; outline: none; color: var(--txt-white); font: 14px var(--font-mono); }
.inp input::placeholder, .inp textarea::placeholder { color: var(--txt-dim); opacity: .7; }
.inp .cnt { padding: 0 10px; font-size: 10.5px; color: var(--txt-dim); white-space: nowrap; }
.inp-pre { padding-left: 12px; font: 800 15px var(--font-mono); color: var(--neon-amber); }
.inp-sym input { padding-left: 4px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.inp-ta { height: auto; align-items: flex-end; }
.inp-ta textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.inp-ta .cnt { padding-bottom: 8px; }
.inp-ico .ico { margin-left: 12px; width: 15px; height: 15px; color: var(--txt-dim); }
.inp-ico input { padding-left: 10px; font-size: 13px; }
.inp-amt { width: 100%; }
.inp-amt input { font-weight: 700; font-size: 16px; }
.inp-unit { align-self: stretch; display: flex; align-items: center; padding: 0 12px; border-left: 1px solid var(--border); font: 800 10px var(--font-hud); letter-spacing: .12em; color: var(--txt-mid); }
.links { display: grid; gap: 10px; }
.devbuy { padding: 14px; background: color-mix(in srgb, var(--purple-depth) 6%, transparent); border: 1px solid color-mix(in srgb, var(--purple-depth) 30%, var(--border)); }
.devbuy .hint { margin-top: -3px; }
.devbuy-row { display: grid; gap: 8px; }
.presets-dev { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dev-out { color: var(--lilac-text); }
.dev-out:empty { display: none; }

/* image drop zone */
.drop {
  position: relative; display: grid; place-items: center; width: 148px; aspect-ratio: 1; overflow: hidden; cursor: pointer;
  color: var(--lilac-text); clip-path: var(--clip-corner);
  background:
    linear-gradient(color-mix(in srgb, var(--purple-depth) 12%, transparent) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(90deg, color-mix(in srgb, var(--purple-depth) 12%, transparent) 1px, transparent 1px) 0 0 / 12px 12px,
    color-mix(in srgb, var(--purple-depth) 6%, var(--bg-void));
  border: 1px dashed color-mix(in srgb, var(--purple-depth) 75%, transparent);
  transition: border-color .15s, background-color .15s;
}
.drop:hover, .drop.is-drag { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.drop.is-drag { border-style: solid; }
.drop:focus-visible { outline-offset: -5px; }
.drop[aria-invalid="true"] { border-color: var(--neon-red); }
.drop-empty { display: grid; justify-items: center; gap: 8px; padding: 10px; text-align: center; }
.drop-empty[hidden] { display: none; }
.drop-empty .ico { width: 26px; height: 26px; }
.drop-t { font: 700 9px/1.5 var(--font-hud); letter-spacing: .12em; text-transform: uppercase; }
.drop-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop-img[hidden] { display: none; }
.drop.has-img { border-style: solid; border-color: color-mix(in srgb, var(--purple-depth) 60%, transparent); }
.drop.has-img::after {
  content: 'Replace'; position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 0 4px; text-align: center; opacity: 0; transition: opacity .15s;
  background: color-mix(in srgb, var(--bg-void) 82%, transparent); color: var(--txt-white); font: 700 8.5px var(--font-hud); letter-spacing: .14em; text-transform: uppercase;
}
.drop.has-img:hover::after, .drop.has-img:focus-visible::after { opacity: 1; }
.drop.is-busy::before { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--purple-depth) 30%, transparent), transparent) 0 0 / 200% 100%; animation: shimmer 1s linear infinite; }
.field-icon { justify-items: start; }

/* side: preview, cost, rules, button */
.cr-side-in { display: grid; gap: 14px; }
.cr-preview .sec-title { margin-bottom: 10px; }
.pv-frame { position: relative; padding: 12px; background: color-mix(in srgb, var(--bg-void) 60%, transparent); border: 1px dashed var(--border-hot); }
.pv-frame::before { content: 'PREVIEW'; position: absolute; top: -8px; right: 10px; padding: 0 6px; background: var(--bg-void); color: var(--txt-dim); font: 700 8px/16px var(--font-hud); letter-spacing: .18em; }
.pv-frame .coin { pointer-events: none; overflow: hidden; border-color: color-mix(in srgb, var(--purple-depth) 45%, var(--border)); }
/* the hot element on this page: the coin coming alive */
.pv-frame .coin::after { content: ''; position: absolute; left: 0; right: 0; top: -40%; height: 40%; pointer-events: none; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--purple-depth) 14%, transparent) 60%, color-mix(in srgb, var(--lilac-text) 20%, transparent) 62%, transparent 64%); animation: scan 5.5s linear infinite; }
@media (prefers-reduced-motion: reduce) { .pv-frame .coin::after { display: none; } }
.cost { display: grid; gap: 9px; }
.cost-r { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 12px; }
.cost-r dt { color: var(--txt-bright); }
.cost-r dd { text-align: right; white-space: nowrap; }
.cost-r dd b { font-weight: 700; color: var(--txt-white); }
.cost-sub { display: block; margin-top: 2px; font-size: 10.5px; color: var(--txt-dim); }
.cost-total { margin-top: 3px; padding-top: 10px; border-top: 1px dashed var(--border-hot); }
.cost-total dt { font: 800 10px var(--font-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--txt-white); }
.cost-total dd b { font-size: 18px; color: var(--neon-amber); text-shadow: var(--glow-amber); }
.cost-note { display: flex; gap: 7px; margin-top: 12px; font-size: 11.5px; line-height: 1.5; color: var(--lilac-text); }
.cost-note .ico { margin-top: 2px; }
.cr-rules ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cr-rules li { position: relative; padding-left: 16px; font-size: 12px; line-height: 1.55; color: var(--txt-mid); }
.cr-rules li::before { content: ''; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; background: var(--purple-depth); box-shadow: 0 0 6px var(--purple-depth); }
.cr-rules b { color: var(--txt-white); font-weight: 600; }
.launch-go { height: 56px; font-size: 13px; letter-spacing: .2em; }
.launch-go.btn-cyan { font-size: 10.5px; letter-spacing: .08em; white-space: normal; line-height: 1.25; }
.launch-err { padding: 9px 11px; color: var(--neon-red); background: color-mix(in srgb, var(--neon-red) 7%, transparent); border: 1px solid color-mix(in srgb, var(--neon-red) 45%, transparent); font-size: 12px; line-height: 1.5; }
.launch-err[hidden] { display: none; }
.launch-wallet { font-size: 11.5px; line-height: 1.55; color: var(--txt-mid); }
.launch-wallet .ico { margin-right: 2px; }
.launch-wallet .linkish { display: inline-flex; vertical-align: baseline; }
.launch-wallet .warn { color: var(--neon-amber); }
.launch-wallet:empty { display: none; }

@media (min-width: 560px) {
  .cr-top { grid-template-columns: 168px minmax(0, 1fr); gap: 18px; }
  .drop { width: 168px; }
  .devbuy-row { grid-template-columns: 180px minmax(0, 1fr); align-items: center; }
}
@media (min-width: 680px) {
  .cr-fields { padding: 18px 20px 22px; }
  .links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .cr-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; }
  .cr-side { align-self: stretch; }
  .cr-side-in { position: sticky; top: calc(var(--hdr-h) + 12px); }
}

/* launch overlay */
.ov { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg-void) 82%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ov[hidden] { display: none; }
.ov-card { width: min(460px, 100%); padding: 20px 20px 18px; display: grid; gap: 16px; }
.ov-card:focus { outline: none; }
.ov-top { display: flex; align-items: center; gap: 14px; }
.ov-title { margin-top: 6px; font: 900 19px/1.15 var(--font-hud); letter-spacing: .04em; color: var(--txt-white); overflow-wrap: anywhere; }
.ov-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: ov; }
.ov-steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 0; color: var(--txt-dim); font: 700 10px/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; }
.ov-steps li i { position: relative; flex: none; width: 14px; height: 14px; border: 1px solid var(--border-hot); background: var(--bg-elev); clip-path: var(--clip-xs); }
.ov-steps li:not(:last-child)::after { content: ''; position: absolute; left: 6.5px; top: 22px; width: 1px; height: 14px; background: var(--border); }
.ov-steps li.is-done { color: var(--txt-bright); }
.ov-steps li.is-done i { background: var(--ok); border-color: var(--ok); }
.ov-steps li.is-on { color: var(--neon-cyan); }
.ov-steps li.is-on i { background: var(--neon-cyan); border-color: var(--neon-cyan); animation: blink 1s ease-in-out infinite; }
.ov-steps li.is-fail { color: var(--neon-red); }
.ov-steps li.is-fail i { background: var(--neon-red); border-color: var(--neon-red); }
.ov-msg { min-height: 2.9em; font-size: 12.5px; line-height: 1.55; color: var(--txt-bright); }
.ov-msg.is-err { color: var(--neon-red); }
.ov-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ov-actions:empty { display: none; }
body.ov-open { overflow: hidden; }

/* =============================================================================
   SHELL — DexScreener-style side rails on wide screens.
   Left: trending coins + a TX Blaster game. Right: sponsored slot, more games,
   new coins. The live tape sits in the main column, aligned with the content.
   Below 1380px the rails fold into the "More on TX Blaster" band at the bottom.
   ============================================================================= */
.shell { flex: 1 0 auto; width: 100%; max-width: 1920px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 680px) { .shell { padding: 0 24px; } }
.shell-main { min-width: 0; display: flex; flex-direction: column; }
.shell-main > .wrap { max-width: none; padding-left: 0; padding-right: 0; }
.shell-main > .tape { margin-top: 12px; border: 1px solid var(--border); clip-path: var(--clip-sm); }
.rail { display: none; min-width: 0; }
.rail-in {
  position: sticky; top: calc(var(--hdr-h) + 12px); display: flex; flex-direction: column; gap: 12px; padding: 12px 0 24px;
  max-height: calc(100vh - var(--hdr-h) - 4px); overflow-y: auto; scrollbar-width: none;
}
.rail-in::-webkit-scrollbar { display: none; }
/* Never shrink a card to fit the viewport: a rail taller than the screen scrolls instead. */
.rail-in > * { flex: none; }
@media (min-width: 1380px) {
  .shell { grid-template-columns: 236px minmax(0, 1fr); gap: 20px; }
  .rail-l { display: block; }
  .more-band { display: none; }
}
@media (min-width: 1780px) {
  .shell { grid-template-columns: 236px minmax(0, 1fr) 236px; }
  .rail-r { display: block; }
  .rail-l .narrow-only { display: none; }
}

/* rail cards */
.rail-card { background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2)); border: 1px solid var(--border); clip-path: var(--clip-sm); }
.rail-h {
  display: flex; align-items: center; gap: 8px; padding: 11px 12px 10px; border-bottom: 1px solid var(--border);
  font: 800 9.5px/1 var(--font-hud); letter-spacing: .18em; text-transform: uppercase; color: var(--txt-white);
}
.rail-h .ico { width: 13px; height: 13px; color: var(--neon-amber); }
.rail-h .rail-more { margin-left: auto; font: 700 8.5px/1 var(--font-hud); letter-spacing: .14em; color: var(--neon-cyan); }
.rail-list { list-style: none; margin: 0; padding: 4px 0; }
.rail-row {
  display: grid; grid-template-columns: 16px 26px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 7px 12px; color: var(--txt-bright); font-size: 11px;
}
.rail-row:hover { background: var(--bg-elev); text-decoration: none; }
.rail-row:hover .rail-sym { color: var(--neon-amber); }
.rail-rank { font: 800 9.5px/1 var(--font-hud); color: var(--txt-dim); text-align: right; }
.rail-row .coin-ico { --s: 26px; clip-path: var(--clip-xs); }
.rail-mid { min-width: 0; display: grid; gap: 3px; }
.rail-sym { font: 800 11px/1.1 var(--font-hud); letter-spacing: .03em; color: var(--txt-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-mc { color: var(--txt-dim); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-chg { font-size: 10.5px; font-weight: 700; }
.rail-chg.up { color: var(--up); }
.rail-chg.down { color: var(--down); }
.rail-chg.flat { color: var(--txt-dim); }
.rail-empty { padding: 14px 12px; color: var(--txt-dim); font-size: 11px; line-height: 1.5; }

/* TX Blaster game promos (the shelf covers) */
.promo { position: relative; display: block; overflow: hidden; border: 1px solid var(--border-hot); clip-path: var(--clip-sm); aspect-ratio: 5 / 6; background: var(--bg-panel); color: inherit; }
.promo:hover { text-decoration: none; border-color: var(--neon-amber); }
.promo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .45s cubic-bezier(.2,.7,.3,1); }
.promo:hover img { transform: scale(1.045); }
.promo-cap { position: absolute; inset: auto 0 0 0; padding: 34px 12px 11px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-void) 94%, transparent) 58%); }
.promo-k, .promo-t { display: block; }
.promo-k { font: 700 8.5px/1 var(--font-hud); letter-spacing: .18em; text-transform: uppercase; color: var(--neon-amber); }
.promo-t { margin-top: 5px; font: 900 13px/1.15 var(--font-hud); letter-spacing: .03em; color: var(--txt-white); }
.promo-go { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--neon-cyan) 55%, transparent); background: color-mix(in srgb, var(--bg-void) 70%, transparent); font: 800 8.5px/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--neon-cyan); clip-path: var(--clip-xs); }
.promo:hover .promo-go { color: var(--bg-void); background: var(--neon-cyan); }
.promo-tag { position: absolute; top: 8px; left: 8px; padding: 3px 6px 2px; background: color-mix(in srgb, var(--bg-void) 82%, transparent); border: 1px solid var(--border-hot); font: 700 7.5px/1 var(--font-hud); letter-spacing: .18em; text-transform: uppercase; color: var(--txt-mid); }

/* sponsored slot — open to other BSV apps */
.ad-slot {
  position: relative; display: grid; gap: 9px; justify-items: center; padding: 18px 14px 16px; text-align: center;
  border: 1px dashed color-mix(in srgb, var(--purple-depth) 60%, transparent); clip-path: var(--clip-sm);
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--purple-depth) 18%, transparent), transparent 70%),
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--purple-depth) 6%, transparent) 0 8px, transparent 8px 16px),
    var(--bg-panel);
}
.ad-slot.ad-tall { min-height: 280px; align-content: center; }
.ad-tag { font: 700 7.5px/1 var(--font-hud); letter-spacing: .22em; text-transform: uppercase; color: var(--txt-dim); }
.ad-ico { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid color-mix(in srgb, var(--purple-depth) 60%, transparent); color: var(--lilac-text); clip-path: var(--clip-xs); }
.ad-ico .ico { width: 18px; height: 18px; }
.ad-t { font: 900 14px/1.2 var(--font-hud); letter-spacing: .03em; color: var(--txt-white); }
.ad-c { max-width: 26ch; font-size: 11px; line-height: 1.55; color: var(--txt-mid); }
.ad-go { margin-top: 2px; }

/* the bottom band (narrow screens) */
.more-band { width: 100%; max-width: 1920px; margin: 26px auto 0; padding: 0 16px; }
@media (min-width: 680px) { .more-band { padding: 0 24px; } }
.more-band[hidden] { display: none; }
.more-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 800 11px/1 var(--font-hud); letter-spacing: .18em; text-transform: uppercase; color: var(--txt-white); }
.more-h::before { content: '//'; color: var(--neon-amber); }
.more-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--border-hot) transparent; scroll-snap-type: x proximity; }
.more-row > * { scroll-snap-align: start; }
.more-row .ad-slot { align-content: center; }

/* advertise dialog */
.adv-ov { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg-void) 82%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.adv-ov[hidden] { display: none; }
.adv { width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2)); border: 1px solid var(--border-hot); clip-path: var(--clip-corner); }
.adv-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); font: 900 13px/1 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--txt-white); }
.adv-h .x { margin-left: auto; }
.adv-b { display: grid; gap: 12px; padding: 16px; }
.adv-b p { color: var(--txt-mid); font-size: 12px; line-height: 1.6; }
.adv-perks { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 11.5px; color: var(--txt-bright); }
.adv-perks li { display: flex; gap: 8px; }
.adv-perks li::before { content: '▸'; color: var(--neon-amber); }
.adv-f { display: grid; gap: 5px; }
.adv-f span { font: 700 9px/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--txt-mid); }
.adv-f input, .adv-f textarea { width: 100%; padding: 10px 12px; background: var(--bg-void); border: 1px solid var(--border-hot); color: var(--txt-white); font: 12.5px/1.45 var(--font-mono); }
.adv-f input:focus, .adv-f textarea:focus { outline: none; border-color: var(--neon-cyan); }
.adv-f textarea { min-height: 84px; resize: vertical; }
.adv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.adv-msg { font-size: 12px; line-height: 1.5; }
.adv-msg.is-err { color: var(--neon-red); }
.adv-msg.is-ok { color: var(--ok); }

/* token head: the "at a glance" block right of the description */
.tk-glance { grid-column: 1 / -1; display: grid; gap: 10px; align-content: start; }
.glance-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gchip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px;
  border: 1px solid var(--border-hot); background: var(--bg-panel); clip-path: var(--clip-xs);
  font: 700 8.5px/1 var(--font-hud); letter-spacing: .12em; text-transform: uppercase; color: var(--txt-mid); white-space: nowrap;
}
.gchip .ico { width: 12px; height: 12px; color: var(--ok); }
.gchip b { font: 800 11px/1 var(--font-mono); letter-spacing: 0; color: var(--txt-white); text-transform: none; }
.gchip.is-warn b { color: var(--neon-amber); }
.glance-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.gact {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; color: var(--txt-bright);
  background: var(--bg-panel); border: 1px solid var(--border-hot); clip-path: var(--clip-xs);
  font: 700 9px/1 var(--font-hud); letter-spacing: .14em; text-transform: uppercase;
}
.gact:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); text-decoration: none; }
.gact .ico { width: 13px; height: 13px; }
.gact-l { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: .04em; }
.gact.is-x:hover { color: var(--neon-amber); border-color: var(--neon-amber); }
@media (min-width: 900px) {
  .tk-head { grid-template-columns: auto minmax(0, 1fr) minmax(260px, 360px); }
  .tk-glance { grid-column: 3; grid-row: 1 / span 2; justify-items: end; }
  .glance-chips, .glance-actions { justify-content: flex-end; }
}

/* Waiting for a block (0-conf chain paused): why, a timer to the ~10-min average, both sides closed. */
.q-pause {
  display: grid; gap: 7px; padding: 12px 14px; clip-path: var(--clip-xs);
  border: 1px solid color-mix(in srgb, var(--neon-cyan) 45%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--neon-cyan) 7%, var(--bg-panel)), var(--bg-panel));
}
.q-pause-h { display: flex; align-items: center; gap: 8px; font: 800 10px/1.2 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--neon-cyan); }
.q-pause-h .ico { width: 15px; height: 15px; }
.q-pause-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.q-pause-k { font: 700 9px/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--txt-mid); }
.q-pause-t { font: 800 22px/1 var(--font-mono); color: var(--txt-white); font-variant-numeric: tabular-nums; }
.q-pause-sub, .q-pause-why { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--txt-mid); }
.q-pause-why { color: var(--txt-dim); }

/* Graduation prestige: a graduate keeps its crown — rank badge, amber frame, tape moment. */
.badge-rank { color: var(--neon-amber); background: color-mix(in srgb, var(--neon-amber) 10%, transparent); border-color: color-mix(in srgb, var(--neon-amber) 60%, transparent); }
.badge-rank .ico { width: 11px; height: 11px; }
.coin.is-grad { border-color: color-mix(in srgb, var(--neon-amber) 55%, var(--border)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neon-amber) 18%, transparent), 0 0 24px -12px color-mix(in srgb, var(--neon-amber) 70%, transparent); }
a.coin.is-grad:hover { border-color: var(--neon-amber); }
.ti-grad { color: var(--txt-bright); }
.ti-grad .ti-crown { display: inline-grid; place-items: center; color: var(--neon-amber); }
.ti-grad .ti-crown .ico { width: 13px; height: 13px; }
.ti-grad .ti-act { color: var(--neon-amber); font-weight: 700; }
.ti.flash-grad { animation: tiGrad 2.6s ease-out; }
@keyframes tiGrad { 0%, 25% { background: color-mix(in srgb, var(--neon-amber) 24%, transparent); } 100% { background: transparent; } }
.cv-svg .cv-t-crown { fill: var(--neon-amber); font: 700 11px var(--font-hud); }

/* Header ticker: BSV and 1 sat in USD with the 24 h change (market colors on numbers only). */
.px-tick { display: grid; gap: 2px; margin-left: auto; padding: 5px 10px; border: 1px solid var(--border); background: color-mix(in srgb, var(--bg-panel) 80%, transparent); clip-path: var(--clip-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
.px-row { display: flex; align-items: baseline; gap: 6px; }
.px-k { min-width: 30px; font: 800 8px/1 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--txt-dim); }
.px-v { font: 800 11.5px/1.1 var(--font-mono); color: var(--txt-white); }
.px-sat { font-size: 10.5px; color: var(--neon-amber); }
.px-c { font: 700 10px/1 var(--font-mono); color: var(--txt-dim); }
.px-c.up { color: var(--up); }
.px-c.down { color: var(--down); }
.px-tick.flash-up { animation: tickUp 1.2s ease-out; }
.px-tick.flash-down { animation: tickDown 1.2s ease-out; }
.mp-header-in .px-tick + .hdr-right { margin-left: 12px; }
@media (max-width: 560px) { .px-tick { padding: 4px 7px; } .px-k { min-width: 24px; } .px-v { font-size: 10.5px; } .px-sat { font-size: 9.5px; } }
.px-tick.is-m { display: flex; justify-content: center; gap: 18px; margin: 0; padding: 6px 12px; border-width: 0 0 1px; clip-path: none; background: color-mix(in srgb, var(--bg-panel) 55%, transparent); }
/* The shared radio + support bubbles sit fixed at the bottom-left, over the left rail:
   leave them a lane so the rail's last card scrolls clear of them. */
@media (min-width: 1380px) { .rail-l .rail-in { padding-bottom: 184px; } }

/* The house market maker: labelled wherever it shows, and visually quieter than real trades. */
.badge-mm { color: var(--txt-mid); background: color-mix(in srgb, var(--txt-mid) 10%, transparent); border-color: var(--border-hot); cursor: help; }
.tbl-trades tr.is-mm td { opacity: .62; }
.tbl-trades tr.is-mm .c-who .badge-mm { opacity: 1; }
.mm-note { margin: 10px 2px 0; font-size: 11px; line-height: 1.5; color: var(--txt-dim); }

/* Coin image: click to enlarge (token page head) + the lightbox. */
.tk-ico-btn { position: relative; display: block; padding: 0; border: 0; background: none; line-height: 0; cursor: zoom-in; }
.tk-ico-btn:disabled { cursor: default; }
.tk-ico-btn .coin-ico img { transition: filter .15s, transform .25s cubic-bezier(.2,.7,.3,1); }
.tk-ico-btn:not(:disabled):hover .coin-ico img { filter: brightness(1.12); transform: scale(1.05); }
.tk-ico-zoom {
  position: absolute; right: 3px; bottom: 3px; display: grid; place-items: center; width: 20px; height: 20px;
  background: color-mix(in srgb, var(--bg-void) 80%, transparent); color: var(--neon-cyan); clip-path: var(--clip-xs);
  opacity: 0; transition: opacity .15s; pointer-events: none;
}
.tk-ico-zoom .ico { width: 12px; height: 12px; }
.tk-ico-btn:not(:disabled):hover .tk-ico-zoom, .tk-ico-btn:focus-visible .tk-ico-zoom { opacity: 1; }
@media (hover: none) { .tk-ico-btn:not(:disabled) .tk-ico-zoom { opacity: .9; } }   /* touch: no hover, so always hint */
.tk-ico-btn:disabled .tk-ico-zoom { display: none; }
.lb-ov {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; cursor: zoom-out;
  background: color-mix(in srgb, var(--bg-void) 90%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: lbIn .16s ease-out;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: 100%; }
.lb-frame { position: relative; line-height: 0; animation: lbPop .2s cubic-bezier(.2,.7,.3,1); }
@keyframes lbPop { from { transform: scale(.94); } to { transform: scale(1); } }
.lb-img {
  display: block; width: min(88vw, 72vh, 560px); height: auto; aspect-ratio: 1; object-fit: contain; cursor: zoom-out;
  background: var(--bg-panel); border: 1px solid var(--border-hot); clip-path: var(--clip-corner);
}
.lb-img.is-pixel { image-rendering: pixelated; }
.lb-x {
  position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; cursor: pointer;
  color: var(--txt-white); background: color-mix(in srgb, var(--bg-void) 78%, transparent); border: 1px solid var(--border-hot); clip-path: var(--clip-xs);
}
.lb-x:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); }
.lb-x .ico { width: 16px; height: 16px; }
.lb-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; cursor: default; }
.lb-name { font: 900 15px/1.2 var(--font-hud); letter-spacing: .04em; color: var(--txt-white); overflow-wrap: anywhere; text-align: center; }
.lb-name b { font: 800 13px/1 var(--font-mono); color: var(--neon-amber); }
@media (prefers-reduced-motion: reduce) { .lb-ov, .lb-frame { animation: none; } .tk-ico-btn .coin-ico img { transition: none; } }
