/* GTA VI Coin Watch — Birdeye Data web design language, copied unchanged from ANTx Allocation Watch
   (safu-watch / kimchi-watch lineage: 01_brand-assets/tokens and the Figma-built homepage section).
   ANTx additions follow the shared base; GTA additions sit at the end. */

@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/geist-mono/GeistMono-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #090B0C;
  --panel: #15181A;
  --widget: #1E2225;
  --widget-raised: #262B2E;
  --widget-line: #363D41;
  --line: #252C30;
  --line-strong: #404B51;
  --text: #FFFFFF;
  --text-2: #BBC5CA;
  --text-3: #8696A0;
  --text-4: #57656E;
  --green: #00FFA3;
  --green-2: #00C076;
  --green-soft: #61D38A;
  --green-dark: #06754E;
  --amber: #F5B445;
  --r-panel: 20px;
  --r-card: 16px;
  --r-widget: 10px;
  --r-btn: 8px;
  --r-chip: 4px;
  --font: "Geist", system-ui, sans-serif;
  --font-body: "Inter", "Geist", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
code, .mono { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: var(--r-chip); }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 10px 14px; background: var(--green); color: #090B0C; border-radius: var(--r-btn); font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: 1312px; margin: 0 auto; padding: 0 24px; }
.na { color: var(--text-4); }

/* ── nav ── */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(9, 11, 12, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 16px; max-width: 1312px; height: 68px; margin: 0 auto; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; min-height: 40px; flex-shrink: 0; }
.brand img { display: block; width: 136px; height: auto; }
.nav-divider { width: 1px; height: 24px; background: var(--line-strong); }
.nav-product { font-size: 14px; font-weight: 600; white-space: nowrap; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 6px 12px; color: var(--text-2); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-4); flex-shrink: 0; }
.dot.live { background: var(--green); }
.dot.loading { background: var(--text-3); animation: pulse 1.4s ease-in-out infinite; }
.dot.warning { background: var(--amber); }
@keyframes pulse { 50% { opacity: .3; } }

/* ── buttons, chips, pills ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 18px; border-radius: var(--r-btn); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { color: #090B0C; background: var(--green); border: 1px solid var(--green); }
.btn-primary:hover { background: var(--green-2); border-color: var(--green-2); }
.btn-secondary { color: var(--text); background: var(--widget); border: 1px solid var(--line-strong); font-weight: 500; }
.btn-secondary:hover { background: var(--widget-raised); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; color: var(--text-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.chip-sm { padding: 2px 8px; font-size: 11px; }
.chip-btn { transition: border-color .15s, color .15s; }
.chip-btn:hover { color: var(--text); border-color: var(--line-strong); }
.copy-hint { color: var(--green-soft); font-family: var(--font); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; color: #D9E0EB; background: rgba(255, 255, 255, .08); border-radius: var(--r-chip); font-size: 11px; white-space: nowrap; }
.tag.real { color: #252C30; background: var(--green); font-weight: 600; }
.tag.separate { color: #090B0C; background: var(--amber); font-weight: 600; }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.sw-green { background: var(--green); } .sw-light { background: var(--text-2); } .sw-grey { background: var(--text-3); }
.kicker-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; color: var(--green); border: 1px solid rgba(0, 255, 163, .3); border-radius: 999px; font-size: 13px; }
.kicker-pill i, .kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.link-pill { display: inline-flex; align-items: center; padding: 5px 12px; color: var(--text-2); border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; transition: background .15s, color .15s; }
.link-pill:hover { color: var(--text); background: var(--widget); }

/* ── banner ── */
.banner { display: none; margin-top: 16px; padding: 12px 16px; color: #FFD6CC; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .4); border-radius: var(--r-widget); font-family: var(--font-body); font-size: 13px; }
.banner.show { display: block; }

/* ── hero ── */
.hero { position: relative; display: grid; justify-items: center; gap: 16px; padding: 72px 0 40px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0 -24px; z-index: -1; background: radial-gradient(900px 380px at 50% 0%, rgba(4, 62, 69, .55), transparent 72%); pointer-events: none; }
.hero h1 { max-width: 860px; font-size: 48px; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
.lede b { color: var(--green); font-weight: 600; }
.lede { max-width: 720px; color: var(--text-3); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }

/* ── KPI widgets ── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { min-width: 0; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); }
.kpi span { display: block; color: var(--text-3); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.kpi strong { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kpi strong.accent { color: var(--green); }
.kpi strong.na { color: var(--text-4); }
.kpi small { display: block; margin-top: 4px; color: var(--text-3); font-family: var(--font-body); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── sections & panels ── */
.section { padding-top: 72px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-head > div:first-child { min-width: 0; max-width: 760px; }
.section-head h2 { margin-top: 10px; font-size: 32px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.section-head p { margin-top: 8px; color: var(--text-3); font-family: var(--font-body); font-size: 15px; line-height: 1.55; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.section.two-col { align-items: start; }
.panel { position: relative; min-width: 0; padding: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); }
.panel-flush { padding: 0; }
.panel-glow { background: radial-gradient(120% 90% at 0% 100%, rgba(4, 62, 69, .55), transparent 60%), linear-gradient(160deg, #161A1C, #101415); }
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-bar h3, .panel-title { font-size: 16px; font-weight: 500; }
.panel-title { margin-bottom: 16px; }
.note { margin-top: 16px; color: var(--text-3); font-family: var(--font-body); font-size: 12px; line-height: 1.6; }
.note b { color: var(--text-2); font-weight: 500; }
.note a { color: var(--green-soft); }
.note-pad { margin: 0; padding: 14px 20px 18px; border-top: 1px solid var(--line); }

/* ── tables ── */
.table-wrap { max-height: 560px; overflow: auto; }
table { width: 100%; min-width: 1040px; border-collapse: collapse; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 13px; }
th { position: sticky; top: 0; z-index: 1; color: var(--text-3); background: var(--panel); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
td { color: var(--text-2); font-variant-numeric: tabular-nums; }
td b { color: var(--text); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tr.is-real td { background: rgba(0, 255, 163, .05); }
.right { text-align: right; }
.when b { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.when small { display: block; color: var(--text-3); font-size: 11px; }
.platform-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 460px; }
.platform-chips b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-cell { color: var(--text-3); font-family: var(--font-mono); font-size: 12px; }
.coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.coin small { display: block; max-width: 220px; overflow: hidden; color: var(--text-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
td.ca { white-space: nowrap; }
.ca-btn { white-space: nowrap; padding: 2px 6px; color: var(--text-2); background: transparent; border: 1px solid var(--line); border-radius: var(--r-chip); font-family: var(--font-mono); font-size: 12px; }
.ca-btn:hover { color: var(--text); border-color: var(--line-strong); }
.logo { width: 28px; height: 28px; flex-shrink: 0; object-fit: cover; background: var(--widget); border: 1px solid var(--widget-line); border-radius: 50%; }
.logo.ph { display: grid; place-items: center; color: var(--text-2); font-family: var(--font-mono); font-size: 10px; }

/* ── sources ── */
.cta-panel { display: grid; align-content: start; gap: 12px; padding: 28px; }
.cta-panel h2 { font-size: 28px; font-weight: 600; line-height: 1.2; }
.cta-panel p { color: var(--text-3); font-family: var(--font-body); font-size: 15px; line-height: 1.6; }
.code-line { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-widget); }
.code-line span { color: var(--text-3); font-size: 13px; }
.code-line code { color: var(--green); font-size: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.source-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; }
.source-grid dt, .source-grid dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.source-grid dt { color: var(--text-3); font-family: var(--font-body); }
.source-grid dd { color: var(--text-2); text-align: right; }

.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; padding-top: 28px; padding-bottom: 48px; color: var(--text-3); border-top: 1px solid var(--line); font-family: var(--font-body); font-size: 13px; }
.footer span { max-width: 760px; line-height: 1.55; }
.footer a { color: var(--green-soft); }
.footer a:hover { text-decoration: underline; }

/* ── shared chart + table pieces (from SAFU Watch) ── */
/* Chart series colours, checked with the dataviz validate_palette script on #15181A and #090B0C
   (dark mode): lightness band, chroma floor, CVD and normal-vision separation, 3:1 contrast all pass.
   The brand green #00FFA3 sits outside the chart lightness band, so it stays the UI accent. */
:root { --series-bsc: #1baf7a; --series-sol: #3987e5; --series-a: #1baf7a; --series-b: #3987e5; }

.legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-2); font-size: 12px; }
.legend span, .chain { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.key-bsc { background: var(--series-bsc); }
.key-sol { background: var(--series-sol); }
.chain { color: var(--text-2); font-size: 12px; }

.chart-panel { padding: 20px 20px 12px; }
.chart { position: relative; width: 100%; min-height: 220px; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.chart-svg .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart-svg .tick { fill: var(--text-3); font-family: var(--font-mono); font-size: 10px; }
.chart-svg .bar-bsc { fill: var(--series-bsc); }
.chart-svg .bar-solana { fill: var(--series-sol); }
.chart-svg .marker { stroke: var(--text-2); stroke-width: 1; }
.chart-svg .marker-label { fill: var(--text); font-size: 11px; font-weight: 500; }
.chart-svg .value-label { fill: var(--text-2); font-family: var(--font-mono); font-size: 10px; }
.chart-svg .hit { fill: transparent; }
.chart-svg .hit.on { fill: rgba(255, 255, 255, .06); }
.tooltip { position: absolute; top: 20px; z-index: 5; display: none; width: 188px; padding: 10px 12px; color: var(--text-2); background: var(--widget); border: 1px solid var(--widget-line); border-radius: var(--r-widget); font-size: 12px; pointer-events: none; }
.tooltip.show { display: block; }
.tip-head { margin-bottom: 6px; color: var(--text-3); font-size: 11px; }
.tip-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.tip-row b { min-width: 28px; color: var(--text); font-family: var(--font-mono); font-weight: 600; text-align: right; }
.tip-row .key { width: 10px; height: 2px; border-radius: 1px; }
.tip-total { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--widget-line); color: var(--text-3); }

.table-view { margin-top: 12px; border-top: 1px solid var(--line); }
.table-view summary { padding: 12px 0 4px; color: var(--text-3); font-size: 12px; cursor: pointer; }
.table-view summary:hover { color: var(--text); }
.table-wrap-short { max-height: 280px; margin-top: 8px; }
.table-wrap-auto { max-height: none; }
table.table-compact { min-width: 520px; }
.table-compact th, .table-compact td { padding: 9px 16px; }
.theme-panel { margin-top: 12px; }
.theme-panel table { min-width: 760px; }
.theme-panel th { white-space: normal; vertical-align: bottom; line-height: 1.35; }
.theme-panel th.right { max-width: 120px; }
td.rule { color: var(--text-3); font-size: 11px; max-width: 320px; white-space: normal; word-break: break-word; }

.revived-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.revived-card { display: grid; gap: 12px; min-width: 0; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .15s; }
.revived-card:hover { border-color: var(--line-strong); }
.revived-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.revived-head .coin > div { min-width: 0; }
.revived-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.revived-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.revived-metrics span { display: block; color: var(--text-3); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.revived-metrics b { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--text); font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.mult { padding: 1px 6px; color: #090B0C; background: var(--green); border-radius: var(--r-chip); font-family: var(--font); font-size: 11px; font-style: normal; font-weight: 600; }
.revived-foot { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 11px; }
.empty { color: var(--text-3); font-size: 13px; }
/* "How it is counted": values here are sentences, so the label column is fixed and values wrap
   left-aligned beside it instead of pushing the labels into one word per line */
#sources .source-grid { grid-template-columns: minmax(120px, 168px) minmax(0, 1fr); column-gap: 20px; }
#sources .source-grid dd { text-align: left; overflow-wrap: anywhere; line-height: 1.5; }
@media (max-width: 680px) {
  #sources .source-grid { grid-template-columns: minmax(0, 1fr); }
  #sources .source-grid dt { padding-bottom: 2px; border-bottom: 0; }
  #sources .source-grid dd { padding-top: 0; }
}

/* ── ANTx additions ── */
/* Series pair reused from SAFU Watch, validated there with the dataviz script on #15181A / #090B0C.
   PnL is the only number coloured by sign; it always carries a +/− sign as well. */
:root { --gain: #61D38A; --loss: #FF8A80; }
.key-dep, .key-wallets { background: var(--series-a); }
.key-ref, .key-usdc { background: var(--series-b); }
.pad { padding: 16px 20px 0; margin-bottom: 8px; }
.gain { color: var(--gain); }
.loss { color: var(--loss); }
.tag.est { color: var(--text-2); }
.tag.warn { color: #090B0C; background: var(--amber); font-weight: 600; }

.fillbar { position: relative; height: 6px; margin-top: 10px; background: var(--widget); border-radius: 3px; overflow: hidden; }
.fillbar i { position: absolute; inset: 0 auto 0 0; background: var(--green); border-radius: 3px; }

.est-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
.controls { display: grid; gap: 18px; align-content: start; }
.ctl { margin: 0; padding: 0; border: 0; min-width: 0; }
.ctl legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 0; margin-bottom: 10px; color: var(--text); font-size: 13px; font-weight: 500; }
.ctl legend small { color: var(--text-3); font-family: var(--font-body); font-size: 12px; font-weight: 400; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 36px; padding: 6px 12px; color: var(--text-2); background: var(--widget); border: 1px solid var(--line); border-radius: var(--r-btn); font-size: 13px; font-variant-numeric: tabular-nums; transition: background .15s, border-color .15s, color .15s; }
.seg button small { margin-left: 6px; color: var(--text-3); font-size: 11px; }
.seg button:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); }
.seg button[aria-pressed="true"] { color: #090B0C; background: var(--green); border-color: var(--green); font-weight: 600; }
.seg button[aria-pressed="true"] small { color: #06402B; }
.seg button:disabled { color: var(--text-4); cursor: not-allowed; }
.custom { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--text-3); font-size: 12px; }
.custom input { width: 110px; min-height: 34px; padding: 6px 10px; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-btn); font-family: var(--font-mono); font-size: 13px; }
.custom input:focus { border-color: var(--green); outline: none; }
.custom em { font-style: normal; }

.lookup { display: grid; gap: 14px; align-content: start; }
.lookup .panel-title { margin-bottom: 0; }
.lookup-form { display: flex; gap: 8px; }
.lookup-form input { flex: 1; min-width: 0; min-height: 40px; padding: 8px 12px; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-btn); font-size: 13px; }
.lookup-form input:focus { border-color: var(--green); outline: none; }
.lookup-form .btn:disabled { opacity: .5; cursor: not-allowed; }
.wallet-card { display: grid; gap: 12px; }
.wallet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wallet-head b { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.wallet-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.wallet-metrics span { display: block; color: var(--text-3); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.wallet-metrics b { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--text); font-family: var(--font-mono); font-size: 15px; font-weight: 500; }
.wallet-metrics .big b { font-size: 20px; }
.wallet-empty { color: var(--text-3); font-family: var(--font-body); font-size: 13px; line-height: 1.55; }
.wallet-empty b { color: var(--text-2); font-weight: 500; }
.btn-sm { min-height: 30px; padding: 4px 12px; font-size: 12px; }

.scenario-panel, .dist-panel { margin-top: 16px; }
.section-tight { padding-top: 48px; }

/* (i) info: explanations live behind a toggle; the popover is fixed so panels never clip it */
.info-wrap { display: inline-flex; vertical-align: middle; margin-left: 8px; }
.info { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; color: var(--text-3); background: transparent; border: 1px solid var(--line-strong); border-radius: 50%; font-family: var(--font-mono); font-size: 11px; font-weight: 600; font-style: italic; line-height: 1; transition: color .15s, border-color .15s, background .15s; }
.info::after { content: ""; position: absolute; inset: -9px; } /* 36px hit target around an 18px mark */
.info:hover, .info[aria-expanded="true"] { color: #090B0C; background: var(--green); border-color: var(--green); }
h2 .info { width: 20px; height: 20px; font-size: 12px; transform: translateY(-3px); }
.info-pop { position: fixed; top: 0; left: 0; z-index: 60; display: block; width: min(360px, calc(100vw - 32px)); padding: 12px 14px; color: var(--text-2); background: var(--widget); border: 1px solid var(--widget-line); border-radius: var(--r-widget); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); font-family: var(--font-body); font-size: 13px; font-weight: 400; font-style: normal; line-height: 1.55; letter-spacing: 0; text-align: left; text-transform: none; white-space: normal; }
.info-pop[hidden] { display: none; }
.info-pop b { color: var(--text); font-weight: 500; }
.info-pop a { color: var(--green-soft); }
.ctl-head { margin-bottom: 0; }
.holders { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.holders .chip b { color: var(--text); font-family: var(--font-mono); font-weight: 500; }
#trailTable { min-width: 760px; }
.who { display: block; color: var(--text-3); font-size: 11px; }
#scenarioTable { min-width: 640px; }
#scenarioTable td.sel { background: rgba(0, 255, 163, .06); }
#scenarioTable td b { display: block; }
#scenarioTable td small { color: var(--text-3); font-size: 11px; }

#lbTable { min-width: 1120px; }
#lbTable tbody tr { cursor: pointer; }
#lbTable tbody tr:hover td { background: rgba(255, 255, 255, .03); }
#lbTable tbody tr.on td { background: rgba(0, 255, 163, .05); }
#lbTable[aria-busy="true"] tbody { opacity: .55; transition: opacity .15s; }
#lbTable tbody tr.fresh td { animation: fresh 2.4s ease-out; }
@keyframes fresh { from { background: rgba(0, 255, 163, .14); } to { background: transparent; } }
.tag.new { color: #090B0C; background: var(--green); font-weight: 600; }
.lb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lb-bar-foot { border-top: 1px solid var(--line); border-bottom: 0; }
.lb-status { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.pager { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.pager button { min-width: 34px; min-height: 30px; padding: 4px 10px; color: var(--text-2); background: var(--widget); border: 1px solid var(--line); border-radius: var(--r-btn); font-size: 13px; }
.pager button:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); }
.pager button:disabled { color: var(--text-4); cursor: not-allowed; }
.addr { display: inline-flex; align-items: center; gap: 6px; }
td.when small { display: block; color: var(--text-3); font-size: 11px; }

.chart-svg .line-a { fill: none; stroke: var(--series-a); stroke-width: 2; stroke-linejoin: round; }
.chart-svg .line-b { fill: none; stroke: var(--series-b); stroke-width: 2; stroke-linejoin: round; }
.chart-svg .area-a { fill: var(--series-a); opacity: .12; }
.chart-svg .cap { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 4 4; }
.chart-svg .cross { stroke: var(--text-3); stroke-width: 1; }
.chart-svg .dot-a { fill: var(--series-a); stroke: var(--panel); stroke-width: 2; }
.chart-svg .dot-b { fill: var(--series-b); stroke: var(--panel); stroke-width: 2; }
.tooltip { width: 220px; }
.tip-row b { min-width: 64px; }

.bar-cell { min-width: 180px; }
.hbar { display: flex; align-items: center; gap: 8px; }
.hbar i { display: block; height: 8px; border-radius: 0 4px 4px 0; }
.hbar .bw { background: var(--series-a); }
.hbar .bu { background: var(--series-b); }
.hbar span { color: var(--text-2); font-family: var(--font-mono); font-size: 12px; }

/* ── responsive (1120 / 900 / 680) ── */
@media (max-width: 1120px) {
  .est-grid { grid-template-columns: minmax(0, 1fr); }
  .kpi-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-chips { justify-content: flex-start; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .section.two-col { gap: 56px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
  .kpi-grid, .kpi-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid-5 .kpi:last-child { grid-column: 1 / -1; }
  .hero h1 { font-size: 38px; }
  .nav-product, .nav-divider { display: none; }
}
@media (max-width: 680px) {
  .wrap, .nav-inner { padding: 0 16px; }
  .nav-inner { gap: 10px; }
  .nav .btn { display: none; }
  .brand img { width: 128px; }
  .hero { padding: 48px 0 28px; }
  .hero::before { inset: 0 -16px; } /* match the 16px gutter so the glow never widens the page */
  .hero h1 { font-size: 30px; }
  .lede { font-size: 15px; }
  .kpi-grid { gap: 8px; }
  .kpi { padding: 14px; }
  .kpi strong { font-size: 19px; }
  .kpi small { white-space: normal; }
  .section { padding-top: 56px; }
  .section-head h2 { font-size: 26px; }
  .panel { padding: 16px; }
  .panel-flush { padding: 0; }
  .pad { padding: 14px 16px 0; }
  .lookup-form { flex-direction: column; }
  .wallet-metrics b { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── GTA additions ── */
/* Bars reuse --series-a, validated with the dataviz script on #15181A / #090B0C. Categories are
   labelled pills, never colour alone. */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cat-card { display: grid; gap: 14px; align-content: start; min-width: 0; padding: 18px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .15s, background .15s; }
.cat-card:hover { border-color: var(--line-strong); background: #181B1D; }
.cat-card[aria-pressed="true"] { border-color: rgba(0, 255, 163, .45); }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cat-head h3 { font-size: 16px; font-weight: 600; }
.cat-head span { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cat-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cat-stats span { display: block; color: var(--text-3); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.cat-stats b { display: block; margin-top: 2px; color: var(--text); font-family: var(--font-mono); font-size: 15px; font-weight: 500; }
.cat-top { display: grid; gap: 8px; }
.cat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.cat-row .coin { min-width: 0; }
.cat-row .coin b { display: block; overflow: hidden; color: var(--text); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.cat-row .num { flex-shrink: 0; color: var(--text-2); font-family: var(--font-mono); font-size: 12px; }
.cat-row .logo { width: 24px; height: 24px; }
.cat-foot { color: var(--green-soft); font-size: 12px; }

.clone-vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.clone-side { display: grid; gap: 6px; min-width: 0; padding: 10px 12px; background: var(--widget); border: 1px solid var(--widget-line); border-radius: var(--r-widget); }
.clone-label { color: var(--text-3); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.clone-side .coin b { display: block; overflow: hidden; color: var(--text); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.clone-side .logo { width: 24px; height: 24px; }
.clone-side em { color: var(--text-2); font-family: var(--font-mono); font-size: 12px; font-style: normal; }
.copies { padding: 1px 7px; color: #090B0C; background: var(--green); border-radius: var(--r-chip); font-size: 11px; font-weight: 600; white-space: nowrap; }
button.revived-card { color: inherit; text-align: left; cursor: pointer; }

.lb-tabs { display: flex; gap: 4px; padding: 10px 12px 0; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.lb-tabs button { flex-shrink: 0; padding: 8px 12px 10px; color: var(--text-3); background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 500; white-space: nowrap; }
.lb-tabs button small { margin-left: 6px; color: var(--text-4); font-family: var(--font-mono); font-size: 11px; }
.lb-tabs button:hover { color: var(--text); }
.lb-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--green); }
.lb-tabs button[aria-selected="true"] small { color: var(--text-2); }
.lb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.lb-search { display: flex; gap: 6px; }
.lb-search input { width: 240px; min-height: 34px; padding: 6px 10px; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-btn); font-size: 13px; }
.lb-search input:focus { border-color: var(--green); outline: none; }
.lb-search .btn:disabled { opacity: .5; cursor: not-allowed; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; color: var(--text); background: rgba(0, 255, 163, .08); border: 1px solid rgba(0, 255, 163, .3); border-radius: 999px; font-size: 12px; }
.filter-chip button { padding: 0 6px; color: var(--text-2); background: transparent; border: 0; font-size: 14px; line-height: 1; }
.filter-chip button:hover { color: var(--text); }
.filter-chip[hidden] { display: none; }
#lbTable { min-width: 1160px; }
#lbTable .coin b { display: block; color: var(--text); font-weight: 600; }
#lbTable .coin .sym-row { display: flex; align-items: center; gap: 6px; }
.tag.cat-coin { color: #090B0C; background: var(--green); font-weight: 600; }
.tag.first { color: #090B0C; background: var(--amber); font-weight: 600; }
.status-cell { white-space: nowrap; }
.links { display: inline-flex; gap: 6px; margin-left: 6px; }
.chart-svg .bar { fill: var(--series-a); }
.chart-svg .bar.on { fill: var(--green-soft); }
.chart-svg .event { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-svg .event-label { fill: var(--text-2); font-size: 10px; font-weight: 500; }
.kpi .kpi-coin { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kpi .kpi-coin .logo { width: 24px; height: 24px; }

@media (max-width: 1120px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .clone-vs { grid-template-columns: minmax(0, 1fr); }
  .lb-search { width: 100%; }
  .lb-search input { flex: 1; width: auto; min-width: 0; }
}

/* soundtrack: a nav mute toggle (kept on mobile, unlike .btn); pressed = sound on */
.music-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; color: var(--text-2); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; white-space: nowrap; transition: color .15s, border-color .15s, background .15s; }
.music-btn[hidden] { display: none; }
.music-btn:hover { color: var(--text); border-color: var(--text-3); }
.music-btn[aria-pressed="true"] { color: #090B0C; background: var(--green); border-color: var(--green); font-weight: 600; }
.music-btn svg { flex: none; }
.music-btn .ico-off, .music-btn[aria-pressed="true"] .ico-on { display: block; }
.music-btn .ico-on, .music-btn[aria-pressed="true"] .ico-off { display: none; }
@media (max-width: 680px) {
  .music-label { display: none; }
  .music-btn { padding: 6px 10px; }
}
