:root {
  --bg: #0e0f13;
  --panel: #171922;
  --line: #262a37;
  --text: #e8eaf0;
  --dim: #8b91a3;
  --accent: #e85d9c;   /* gelato pink */
  --hex: #f7c948;      /* flavour colours: one per reward token, used everywhere that token appears */
  --solidx: #7fb2ff;
  --waffle-line: #2c2417;
  /* Waffle texture: two hatches at ±45°, low contrast, for section rules. */
  --waffle: repeating-linear-gradient(45deg, var(--waffle-line) 0 1px, transparent 1px 5px),
            repeating-linear-gradient(-45deg, var(--waffle-line) 0 1px, transparent 1px 5px), #d9a06622;
}

* { box-sizing: border-box; }

/* Instant tooltip — native title has an uncontrollable ~1s delay. */
[data-tip] { position: relative; }
[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
  margin-bottom: 6px; padding: 5px 8px; white-space: nowrap;
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 6px; font-size: 0.72rem; font-weight: 400; z-index: 30; pointer-events: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

main { max-width: 1080px; margin: 0 auto; padding: 32px 20px 64px; }

.hero { text-align: center; margin: 12px 0 28px; }
.hero h1 { font-size: 2rem; margin: 0 0 6px; }
.tagline { color: var(--dim); margin: 0 0 20px; }
.mono, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.stats { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stats.wide .stat { min-width: 180px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 20px; min-width: 140px; text-align: center;
}
.stat .num { display: block; font-size: 1.4rem; font-weight: 700; }
.stat .lbl { display: block; color: var(--dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.stat .lbl .hint { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.reflection { color: var(--accent); font-size: 0.85rem; white-space: nowrap; }

.board { width: 100%; border-collapse: collapse; margin-top: 24px; }
.board th, .board td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.board th { color: var(--dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; text-align: left; }
.board th.num, .board td.num { text-align: right; font-variant-numeric: tabular-nums; }
.board td.rank, .board th.rank { color: var(--dim); width: 40px; }
.board tbody tr:hover { background: #1b1e28; }
.board td.dim { color: var(--dim); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a.addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.sort { color: var(--dim); }
.sort.sorted { color: var(--text); }
.sort.sorted::after { content: " ↓"; color: var(--accent); }

.back { margin: 0 0 12px; }
.foot { color: var(--dim); font-size: 0.85rem; margin-top: 28px; text-align: center; }

/* Strategy panel */
.strategy { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 8px 0 20px; }
.strat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.strat-head h2 { font-size: 1.05rem; margin: 0; }
.strat-head .tax { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.split { display: flex; height: 44px; border-radius: 8px; overflow: hidden; margin: 14px 0 12px; gap: 2px; }
.seg { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; color: #0e0f13; }
.seg-pct { font-weight: 700; font-size: 0.95rem; }
.seg-lbl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em; opacity: 0.85; white-space: nowrap; }
.seg-hex { background: #f7c948; }
.seg-burn { background: #ef6f53; }
.seg-liq { background: #59c1a8; }
.seg-gen { background: #9b8cff; }
.strat-note { margin: 6px 0; font-size: 0.92rem; }
.strat-note .off { color: var(--dim); }
.strat-foot { margin: 6px 0 0; font-size: 0.8rem; color: var(--dim); }

/* Top bar + search */
.topbar { max-width: 1080px; margin: 0 auto; padding: 16px 20px 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar .brand { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.topbar .brand:hover { text-decoration: none; color: var(--accent); }
.search { display: flex; gap: 8px; margin-left: auto; flex: 1; max-width: 440px; }
.search input[type=text] {
  flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 8px 12px; font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem;
}
.search input[type=text]:focus { outline: none; border-color: var(--accent); }
.search input[type=submit] {
  background: var(--accent); color: #0e0f13; border: 0; border-radius: 8px; padding: 8px 16px;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.search input[type=submit]:hover { filter: brightness(1.08); }
.flash { max-width: 1080px; margin: 12px auto 0; padding: 10px 16px; background: #3a2330; border: 1px solid #6b3550; color: #f3c3d5; border-radius: 8px; font-size: 0.9rem; }

/* Tier badges + pending + sections */
.tier { margin-left: 6px; font-size: 0.95rem; cursor: default; }
.tier.big { font-size: 0.95rem; color: var(--dim); font-weight: 400; margin-left: 10px; }
.num.pending { color: #59c1a8; }
h2.section { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dim); margin: 26px 0 10px; padding-bottom: 10px; position: relative; }
h2.section::after, .strat-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--waffle); border-radius: 2px; }
.strat-head { position: relative; padding-bottom: 10px; }

.board-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Keep address + tier icon on one line */
.board td:nth-child(2) { white-space: nowrap; }

/* Dual-ranking toggle */
.ranking-toggle { display: flex; align-items: center; gap: 8px; margin: 4px 0 4px; }
.ranking-toggle .lbl { color: var(--dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.toggle { padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--dim); font-size: 0.9rem; }
.toggle:hover { text-decoration: none; border-color: var(--accent); }
.toggle.active { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); font-weight: 600; }

.addr-line { display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap; }
.copy-btn { background: transparent; border: 1px solid var(--line); color: var(--dim);
  border-radius: 6px; padding: 3px 10px; font-size: 0.8rem; cursor: pointer; }
.copy-btn:hover, .copy-btn.copied { border-color: var(--accent); color: var(--accent); }

.pager { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: 16px; }
.pager-link { padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--dim); font-size: 0.9rem; }
.pager-link:hover { border-color: var(--accent); text-decoration: none; }
.pager-link.disabled { opacity: 0.35; pointer-events: none; }
.pager-at { color: var(--dim); font-size: 0.85rem; }

.sync-wrap { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.sync-wrap form { margin: 0; }
.sync-btn { cursor: pointer; background: transparent; font-family: inherit; }
.sync-btn:hover { border-color: var(--accent); color: var(--accent); }
.synced { color: var(--dim); font-size: 0.8rem; }

/* Transfer history */
h2.section .count { color: var(--dim); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.8rem; }
.flow { font-size: 0.72rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.flow.in { background: #163a2e; color: #59c1a8; }
.flow.out { background: #3a2330; color: #e88; }

/* Cohort panel */
.cohorts { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 0 0 20px; }
.cohort-row { display: grid; grid-template-columns: 1fr 3fr auto; align-items: center; gap: 12px; margin: 8px 0; }
.cohort-label { font-size: 0.9rem; }
.cohort-bar { background: var(--bg); border-radius: 6px; height: 20px; overflow: hidden; }
.cohort-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #f7c948); border-radius: 6px; }
.cohort-pct { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 3.2em; text-align: right; }

.label-badge { margin-left: 5px; font-size: 0.85rem; cursor: default; }

/* Turbo marks a frame [busy] while it fetches — dim what's about to be replaced so a
   slow tab switch (the GEL tab's live tail is an RPC round-trip) reads as loading. */
turbo-frame[busy] .board-wrap, turbo-frame[busy] .pager { opacity: 0.35; transition: opacity 0.15s ease 0.1s; }
turbo-frame[busy] .toggle { pointer-events: none; }

/* Loading cone — a gelato cone spun on its vertical axis while the History frame fetches.
   Cone and scoop are two stacked SVGs animated as HTML elements (3D transforms on SVG
   children are unreliable); the scoop trails the cone a few degrees for a little life.
   Space is always reserved so the cone appearing never moves the layout. */
.cone-loader { position: relative; width: 26px; height: 32px; margin-left: 4px; visibility: hidden; perspective: 110px; }
turbo-frame[busy] .cone-loader { visibility: visible; opacity: 0; animation: cone-appear 0.15s ease 0.15s forwards; }
.cone-loader svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: cone-spin 1.1s linear infinite; }
.cone-loader .scoop { animation-delay: -0.07s; }
.cone-loader .cone polygon { fill: #d9a066; stroke: #9c6a33; stroke-width: 1; stroke-linejoin: round; }
.cone-loader .cone path { fill: none; stroke: #9c6a33; stroke-width: 0.9; stroke-linecap: round; }
.cone-loader .scoop circle, .cone-loader .scoop ellipse { fill: var(--accent); }
@keyframes cone-spin { from { transform: rotate(-8deg) rotateY(0deg); } to { transform: rotate(-8deg) rotateY(360deg); } }
@keyframes cone-appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .cone-loader svg { animation: cone-pulse 1.4s ease-in-out infinite; transform: rotate(-8deg); }
  @keyframes cone-pulse { 50% { opacity: 0.35; } }
}

/* Live tail — lazy frame above the cached GEL table. Placeholder and result keep one
   row height so nothing below moves when the chain answers. */
.live-tail { display: block; }
.live-note { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 12px;
  color: var(--dim); font-size: 0.85rem; border-bottom: 1px solid var(--line); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ad39a; box-shadow: 0 0 0 3px rgba(90, 211, 154, 0.18); flex: none; }
.live-tail .board { margin-top: 0; }
.live-tail + .board-wrap .board { margin-top: 0; }
.cone-loader.on { visibility: visible; opacity: 1; }    /* placeholder cone spins from the first paint */
/* Fixed columns so the live rows and the cached rows line up exactly. */
.board.history.gel { table-layout: fixed; }
.board.history.gel .c-date { width: 24%; } .board.history.gel .c-flow { width: 8%; }
.board.history.gel .c-amt { width: 17%; } .board.history.gel .c-cp { width: 33%; } .board.history.gel .c-block { width: 18%; }

/* --- Gelato theme pieces --- */
/* Flavour colours */
.num.hex, .board th.hex .sort { color: var(--hex); }
.num.solidx, .board th.solidx .sort { color: var(--solidx); }
.board th.hex .sort, .board th.solidx .sort { opacity: 0.75; }
.board th .sort.sorted { opacity: 1; }
.tok { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: #0e0f13; }
.tok.hex { background: var(--hex); }
.tok.solidx { background: var(--solidx); }

/* Shared cone parts */
.glyph { vertical-align: middle; overflow: visible; }
.cone-waffle { fill: #d9a066; stroke: #9c6a33; stroke-width: 1; stroke-linejoin: round; }
.cone-hatch { fill: none; stroke: #9c6a33; stroke-width: 0.9; stroke-linecap: round; }
.split-cone .cone-waffle { stroke-width: 1.6; } .split-cone .cone-hatch { stroke-width: 1.4; }

/* Fee split cone: scoops take the segment colours */
.strat-body { display: flex; gap: 22px; align-items: flex-start; }
.strat-main { flex: 1; min-width: 0; }
.split-cone-wrap { flex: none; padding-top: 6px; }
.scoop-hex { fill: #f7c948; } .scoop-burn { fill: #ef6f53; } .scoop-liq { fill: #59c1a8; } .scoop-gen { fill: #9b8cff; }
.split-cone circle { stroke: #0e0f13; stroke-width: 1.5; }
@media (max-width: 560px) { .split-cone-wrap { display: none; } }

/* Burn as melt: a puddle the width of the burned share of total supply */
.melt-meter { display: block; position: relative; height: 8px; margin: 8px 6px 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.melt-fill { display: block; height: 100%; min-width: 3px; background: var(--accent); border-radius: 999px; box-shadow: 0 0 6px var(--accent); }

/* Freshness as a melting scoop: stage classes come from melt_stage */
.melt .melt-scoop { fill: var(--accent); transition: ry 0.3s; }
.melt .melt-drip { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; visibility: hidden; }
.melt .melt-puddle { fill: var(--accent); opacity: 0.85; }
.melt-1 .melt-drip { visibility: visible; }
.melt-2 .melt-drip { visibility: visible; stroke-width: 2.6; }
.melt-2 .melt-puddle { rx: 5; }
.melt-3 .melt-scoop { ry: 6.5; cy: 14; }
.melt-3 .melt-drip { visibility: visible; stroke-width: 3; d: path("M22 17c0 0 -1 8 0 16c0.6 4 2.4 6 2.4 8"); }
.melt-3 .melt-puddle { rx: 11; }
.synced { display: inline-flex; align-items: center; gap: 5px; }

/* Empty states: a cone with nothing on it */
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 0 22px; color: var(--dim); }
.empty p { margin: 0; font-size: 0.9rem; }
.empty.tight { padding: 0 0 8px; }
.ghost-scoop { fill: none; stroke: var(--dim); stroke-width: 0.9; stroke-dasharray: 2 2.2; opacity: 0.7; }

/* --- Backdrop --- */
/* Sits in the root stacking context with a negative z-index: above the body colour,
   below every piece of content, never catching a click. */
.bg-cone { position: fixed; right: -60px; bottom: -70px; width: 440px; z-index: -1; pointer-events: none;
  transform: rotate(14deg); opacity: 0.07; }
.bg-cone-svg { width: 100%; height: auto; display: block; overflow: visible; }
.bg-cone .cone-waffle { fill: #d9a066; stroke: #d9a066; }
.bg-cone .cone-hatch { stroke: #9c6a33; stroke-width: 0.5; }
.bg-scoop-b { fill: var(--accent); }
.bg-scoop-a { fill: #f7e3ea; }
@media (max-width: 800px) { .bg-cone { display: none; } }

/* Board pager: compact form lives in the toggle row */
.pager.compact { margin: 0 0 0 8px; gap: 8px; }
.pager.compact .pager-link { padding: 4px 10px; font-size: 0.85rem; }
.pager.compact .pager-at { font-size: 0.8rem; }

/* Melted rewards: the hint under a hero stat, and the note on a burn address's page */
.hint.melted { color: var(--accent); opacity: 0.9; }
.melted-note { margin-top: 10px; }

/* --- Activity: the "right now" strip and the two feeds --- */
.activity { display: block; margin: 0 0 20px; }
.now-strip { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: center;
  padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-size: 0.9rem; color: var(--dim); }
.now-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.now-item b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.now-item b.hex { color: var(--hex); }
.feeds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
@media (max-width: 760px) { .feeds { grid-template-columns: 1fr; } }
.feed { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; overflow-x: auto; }
.feed h3 { margin: 0 0 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dim); }
.board.mini { margin-top: 0; font-size: 0.85rem; }
.board.mini td { padding: 6px 8px; white-space: nowrap; }
.board.mini td:first-child { width: 7.5em; }
.activity-foot { margin-top: 8px; font-size: 0.78rem; }

/* Contracts footer */
.contracts { max-width: 1080px; margin: 0 auto; padding: 8px 20px 40px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; color: var(--dim); font-size: 0.8rem; }
.contract { display: inline-flex; align-items: center; gap: 8px; }
.contract .lbl { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.72rem; }
.contract .mono { color: var(--text); font-size: 0.78rem; }

/* --- Deltas, sparkline, movers --- */
.hint.delta { color: #5ad39a; }
.spark { display: block; margin: 8px auto 0; overflow: visible; }
.spark .spark-line { fill: none; stroke: var(--hex); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .spark-area { fill: var(--hex); opacity: 0.12; }
.spark .spark-end { fill: var(--hex); stroke: var(--panel); stroke-width: 1.5; }
.move { display: inline-block; margin-left: 5px; font-size: 0.7rem; font-weight: 700; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.move.up { color: #5ad39a; }
.move.down { color: #ef6f53; }
.movers { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 0 0 20px; }
.climbers { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.climbers li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.climbers .move { font-size: 0.85rem; min-width: 3em; margin: 0; }

/* Official mark: the DexScreener logo, circle-cropped, beside the wordmark */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-logo { border-radius: 50%; }
.hero h1 { display: flex; align-items: center; justify-content: center; gap: 14px; }
.hero-logo { border-radius: 50%; box-shadow: 0 0 0 2px var(--line), 0 0 24px rgba(232, 93, 156, 0.25); }

/* Payout kind: scheduled sweep vs flush-on-transfer */
.kind { display: inline-block; padding: 0 7px; border-radius: 6px; font-size: 0.7rem; letter-spacing: 0.03em; text-transform: uppercase; border: 1px solid var(--line); color: var(--dim); cursor: default; }
.kind.sweep { color: #5ad39a; border-color: #2f5a47; }
.kind.flush { color: var(--dim); }

/* Contracts under the hero: chips with the short form; the footer keeps the full address */
.contracts .short { display: none; }
.hero-contracts { padding: 0 0 22px; margin-top: -8px; gap: 8px 12px; }
.hero-contracts .contract { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; gap: 8px; }
.hero-contracts .full { display: none; }
.hero-contracts .short { display: inline; color: var(--text); font-size: 0.8rem; cursor: default; }
.hero-contracts .copy-btn { border-radius: 999px; padding: 2px 9px; font-size: 0.72rem; }

/* Trades and pools in the feeds */
.trade { display: inline-block; padding: 0 7px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; margin-right: 4px; }
.trade.buy { background: #1f4d3a; color: #7fe0b1; }
.trade.sell { background: #4d2a24; color: #ffa494; }
.trade.swap { background: #2a2f44; color: #aeb8e6; }
.pool { color: var(--dim); white-space: nowrap; cursor: default; }

/* Next scheduled payout meter (holder page) */
.next-payout { max-width: 560px; margin: 14px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 10px; }
.next-payout.ready { border-color: #2f5a47; box-shadow: 0 0 0 1px #2f5a47; }
.np-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.np-head .lbl { color: var(--dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.np-status { font-size: 0.9rem; }
.np-status b { color: var(--text); }
.ready .np-status { color: #5ad39a; font-weight: 600; }
.np-meter { position: relative; height: 10px; margin: 10px 0 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.np-fill { display: block; height: 100%; min-width: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--hex)); transition: width 0.4s ease; }
.ready .np-fill { background: #5ad39a; }
.np-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.82rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.np-foot b { color: var(--text); }
.np-note { margin-top: 8px; font-size: 0.78rem; }
.contract-logo { border-radius: 50%; vertical-align: middle; }
.contract-glyph { font-size: 0.95rem; line-height: 1; }
.hero-contracts .contract { padding-left: 8px; }

/* Liquidity donut tile */
.stat-pools { min-width: 220px; }
.pools-frame { display: block; }
.donut-wrap { position: relative; width: 96px; height: 96px; margin: 0 auto 4px; }
.donut-hole { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.donut-hole .num { font-size: 1.05rem; }
.donut { display: block; }
.donut circle { transition: stroke-dasharray 0.6s ease; }
.donut-legend { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; text-align: left; font-size: 0.74rem; color: var(--dim); }
.donut-legend li { display: grid; grid-template-columns: 10px 1fr auto; gap: 7px; align-items: center; }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.donut-legend .dl-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.donut-legend .dl-pct { font-variant-numeric: tabular-nums; }

/* Hero layout: the four metrics in a 2×2 grid, the liquidity donut full height beside them */
.hero .stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 260px; grid-auto-rows: 1fr; gap: 10px; }
.hero .stat { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.hero .stat-pools { grid-column: 3; grid-row: 1 / span 2; }
.hero .spark { width: 200px; }
@media (max-width: 820px) {
  .hero .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero .stat-pools { grid-column: 1 / -1; grid-row: auto; }
}
.num .zero, td .zero { color: var(--dim); opacity: 0.6; }
/* Donut placeholder: the cone spins at donut size until the pools frame loads */
.donut-loading { display: flex; align-items: center; justify-content: center; }
.cone-loader.big { width: 46px; height: 56px; margin: 0; }
