/* Kaboom's own look, on top of base.css: chalk on a dark crate. Flat fills, chalk lines, one hard black shadow, no
   gradients, no glow. The crate (the signature object), the fuse line down the home page, the Play panel. Tokens only.
   Red is the blast and the fuse. Spark yellow is $KABOOM. */

/* ---------- type and small things ---------- */
body { background: var(--bg); color: var(--ink); }
h1, h2, h3 { color: var(--ink); }
.beat { color: var(--accent); }
.accent-ink { color: var(--accent-ink); }
.spark { color: var(--spark); }
.kicker { color: var(--ink-2); font-weight: 500; }
.kicker-dot { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.label { color: var(--muted); font-weight: 500; }
b, strong { font-weight: 700; color: var(--ink); }
code { font: 500 13.5px/1.5 var(--font-mono); background: var(--surface-2); border: var(--border); border-radius: 6px; padding: 1px 6px; color: var(--ink); }
.break { overflow-wrap: anywhere; word-break: break-all; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: var(--r-pill); }
.skip:focus { left: 8px; }
.fine { font-size: 13.5px; color: var(--ink-2); }
.problem { color: var(--bad); }
.table-empty { padding: 18px 0; }
::selection { background: var(--chalk); color: var(--coal); }

/* ---------- buttons: chalk pills; only the main action is filled ---------- */
.btn { border: var(--border-ink); background: transparent; color: var(--ink); box-shadow: none; font-weight: 700; transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.btn:hover { background: var(--surface-2); border-color: var(--ink); }
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn.primary { background: var(--chalk); color: var(--coal); border: 1.5px solid var(--chalk); box-shadow: var(--shadow-ink); }
.btn.primary:hover { background: #FFFFFF; border-color: #FFFFFF; filter: none; }
.btn.primary:active:not([disabled]) { box-shadow: 0 1px 0 #000; transform: translateY(2px); }
.btn.sm { height: 32px; }
.btn.lg { height: 54px; font-size: 16.5px; padding: 0 26px; }
.btn[disabled] { opacity: 0.5; box-shadow: none; transform: none; }
.icon-btn { border: var(--border-ink); background: var(--surface); color: var(--ink); font: 700 18px/1 var(--font-mono); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.link { color: var(--ink); }
.link-arrow { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.chip { border: var(--border); background: var(--surface); color: var(--ink-2); }
.chip.demo { color: var(--warn); border-color: currentColor; }
.chip.burrow { color: var(--coal); background: var(--spark); border-color: var(--spark); }
.seg { border: var(--border-ink); background: var(--surface); padding: 3px; }
.seg button { color: var(--ink-2); font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--chalk); color: var(--coal); }
.seg.wide { display: flex; width: 100%; }
.seg.wide button { flex: 1; height: 38px; }
.chips button { border: var(--border); background: var(--bg); color: var(--ink); font: 600 13px var(--font-mono); height: 30px; padding: 0 11px; }
.chips button:hover { border-color: var(--ink); }
.input, .prefix { border: var(--border-ink); background: var(--bg); color: var(--ink); }
.input:focus, .prefix:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--chalk) 22%, transparent); }
.live-dot { background: var(--good); }
.ca { border: 1.5px dashed var(--line-3); background: var(--surface); }
.ca-soon { color: var(--warn); font-weight: 700; }
.ca-addr { color: var(--spark); }
.ca.small { border-style: dashed; background: transparent; }

/* ---------- header ---------- */
#top { background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: var(--border); backdrop-filter: blur(8px); }
.top-bar { gap: 22px; }
.brand { display: block; width: 150px; flex: none; }
.brand svg { width: 100%; height: auto; display: block; }
.nav a { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
@media (max-width: 1180px) { .top-actions > .ca { display: none; } }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a[aria-current] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.demo-strip { background: var(--spark); color: var(--coal); }
.demo-strip b { color: var(--coal); }
.demo-strip.pause { background: var(--chalk); }
.wallet-btn.on .live-dot { flex: none; }
.menu { background: var(--surface); border: var(--border-ink); box-shadow: var(--shadow); }
.menu-item:hover { background: var(--surface-2); }
.wallet-row { border: var(--border-ink); background: var(--bg); }
.wallet-row:hover:not([disabled]) { background: var(--surface-2); }

/* ---------- modal, toasts ---------- */
.modal-veil { background: rgba(0, 0, 0, 0.66); backdrop-filter: none; }
.modal-panel { background: var(--surface); border: var(--border-ink); box-shadow: 6px 6px 0 #000; }
.modal-head h2 { font-size: 26px; }
.toast { background: var(--chalk); color: var(--coal); border-radius: var(--r); box-shadow: var(--shadow); max-width: min(92vw, 520px); text-align: center; }
.costs { margin-top: 14px; }
.costs dd { font-family: var(--font-mono); }
.big-line { font-size: 18px; }
.flow-steps li.now .flow-mark { border-color: var(--chalk); background: var(--chalk); color: var(--coal); animation: none; }
.flow-steps li.done .flow-mark { background: var(--good); border-color: var(--good); color: var(--coal); }

/* ---------- the crate: the signature object ---------- */
.plot { --cell-gap: 6px; --left: 1; display: grid; gap: 10px; padding: 12px; border: var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.crate { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--cell-gap); }

/* the fuse: what is left of the round, burning right to left; the spark sits on its end */
.fuse { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 2px 4px 0; }
.fuse-track { position: relative; height: 14px; }
.fuse-track::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; border-top: 2px dashed var(--line-2); }
.fuse-line { position: absolute; left: 0; top: 5px; height: 4px; width: calc(var(--left) * 100%); border-radius: 2px; background: var(--ink-2); transition: width 250ms linear; }
.fuse-spark { position: absolute; top: -1px; left: calc(var(--left) * 100% - 8px); width: 16px; height: 16px; transition: left 250ms linear;
  background: var(--accent); clip-path: polygon(50% 0, 61% 33%, 96% 25%, 70% 52%, 92% 84%, 56% 70%, 40% 100%, 34% 66%, 2% 72%, 26% 46%, 6% 16%, 40% 30%); }
.fuse-label { font-size: 13px; font-weight: 700; color: var(--ink); min-width: 52px; text-align: right; }
.fuse[data-state="low"] .fuse-line { background: var(--accent); }
.fuse[data-state="low"] .fuse-label { color: var(--accent); }
.fuse[data-state="closed"] .fuse-spark, .fuse[data-state="settled"] .fuse-spark { opacity: 0; }
.fuse[data-state="settled"] .fuse-label { color: var(--accent); }

.hill { position: relative; aspect-ratio: 1 / 1; min-width: 0; padding: 0; border: 1.5px solid transparent; border-radius: 12px; background: var(--bg-2); color: var(--ink); font: inherit; text-align: left; overflow: hidden; transition: opacity var(--t) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
button.hill { cursor: pointer; }
button.hill:hover { border-color: var(--line-3); background: var(--surface-2); }
button.hill:active { transform: translateY(1px); }
.hill .bomb { position: absolute; left: 6%; top: 4%; width: 88%; height: auto; overflow: visible; }
.b-shadow { fill: #000; opacity: 0.45; }
.b-ball { fill: #0A080A; }
.b-fuse { fill: none; stroke: var(--muted); stroke-width: 4; stroke-linecap: round; }
.b-shine { fill: none; stroke: rgba(244, 237, 225, 0.32); stroke-width: 6; stroke-linecap: round; }
.b-spark { display: none; }
.b-blast { fill: var(--accent); transform-box: fill-box; transform-origin: center; transform: scale(0); }
.b-body { transform-box: fill-box; transform-origin: center; transition: transform 120ms var(--ease), opacity 120ms var(--ease); }
.hill.house .b-ball { fill: var(--spark); }
.hill.house .b-shine { stroke: rgba(255, 255, 255, 0.55); }
.hill.house .stake { color: var(--spark); }
.hill-held { position: absolute; left: 48.3%; top: 59%; transform: translate(-50%, -50%); line-height: 0; transition: transform 420ms var(--ease-pop); }
.hill-held .coin-icon { border-radius: 50%; box-shadow: 0 0 0 2px #0A080A; background: var(--surface-2); }
.hill.house .hill-held { display: none; }
.hill.house.popped .hill-held { display: block; }
.hill.house .bomb ellipse { fill: var(--coal); }
.hill.house .bomb ellipse + circle { fill: var(--chalk); }
.hill-no { position: absolute; left: 7px; top: 5px; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); z-index: 1; }
.hill-flag { color: var(--ink); line-height: 0; }
.hill-sol { position: absolute; right: 7px; top: 5px; font-size: 10.5px; color: var(--ink); font-weight: 700; z-index: 1; }
.stake { position: absolute; left: 0; right: 0; bottom: 5px; display: block; text-align: center; font: 700 11px/1.2 var(--font-mono); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; z-index: 1; }
.stake-sym { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hill.mine { border-color: var(--chalk); }
.hill.mine .hill-sol { color: var(--chalk); }
.hill.picked { background: color-mix(in srgb, var(--chalk) 14%, var(--bg-2)); border-color: var(--chalk); }
.hill.picked .stake { color: var(--ink); }
/* the blast: the one motion moment */
.hill.popped { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg-2)); z-index: 1; }
.hill.popped .b-body { transform: scale(0); opacity: 0; }
.hill.popped .b-blast { transform: scale(1); transition: transform 420ms var(--ease-pop) 100ms; }
.hill.popped .hill-held { transform: translate(-50%, -54%) scale(1.15); }
.hill.popped .hill-no, .hill.popped .stake { color: var(--ink); font-weight: 700; }
.plot[data-status="closed"] .hill { opacity: 0.7; }
.plot[data-status="settled"] .hill.missed { opacity: 0.38; }
.plot[data-status="loading"] .hill { opacity: 0.4; }
:root[data-motion="off"] .b-body, :root[data-motion="off"] .b-blast, :root[data-motion="off"] .hill-held, :root[data-motion="off"] .fuse-line, :root[data-motion="off"] .fuse-spark { transition: none !important; }
.plot-mini { --cell-gap: 5px; padding: 10px; }
.plot-mini .hill-no { font-size: 9.5px; }
.plot-mini .stake { font-size: 9.5px; bottom: 3px; }
.plot-mini .hill-sol { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.legend > span { display: inline-flex; align-items: center; gap: 7px; }
.lg-flag { display: inline-flex; line-height: 0; color: var(--ink); }
.lg-ring { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--chalk); }
.lg-pop { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }

/* ---------- Play page ---------- */
.dig-page { padding-top: 22px; }
.dig-grid { display: grid; grid-template-columns: minmax(0, 1fr) 368px; gap: 24px; align-items: start; }
.round-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 12px 16px; margin-bottom: 12px; border: var(--border); border-radius: var(--r); background: var(--surface); }
.rs-main { display: flex; align-items: baseline; gap: 10px; }
.rs-main .num { font: 700 20px var(--font-mono); }
.round-status { font: 700 12px var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: var(--r-pill); border: 1.5px solid var(--line-3); }
.round-status[data-s="open"] { background: var(--good); color: var(--coal); border-color: var(--good); }
.round-status[data-s="closed"] { background: var(--chalk); color: var(--coal); border-color: var(--chalk); }
.round-status[data-s="settled"] { background: var(--accent); color: var(--coal); border-color: var(--accent); }
.rs-timer { text-align: center; }
.round-timer { font: 700 30px/1 var(--font-mono); letter-spacing: -0.02em; white-space: nowrap; }
.round-timer.wordy { font-size: 20px; }
.round-timer[data-low="true"] { color: var(--accent); }
.rs-cells { display: flex; gap: 20px; }
.rs-cells > div { display: grid; gap: 1px; text-align: right; }
.rs-cells .num { font-size: 15px; font-weight: 700; }
.pop-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 26px; margin-top: 14px; font-size: 15px; }
.pop-line:empty { display: none; }
.pop-line .link-arrow { margin-left: auto; }
.pop-coin { line-height: 0; }
.packet { position: sticky; top: calc(var(--top-h) + 16px); border: var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.packet-top { padding: 16px 18px; background: var(--surface-2); border-bottom: var(--border); display: grid; gap: 6px; }
.packet-bal { display: grid; gap: 10px; }
.packet-balance { font: 700 28px/1 var(--font-mono); }
.packet-body { padding: 16px 18px 6px; display: grid; gap: 4px; }
.packet .help { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; }
.pick-box:empty { display: none; }
.pick-line { font-size: 14px; margin-top: 6px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper.small { margin-top: 8px; gap: 10px; }
.stepper.small .num { min-width: 22px; text-align: center; font-weight: 700; }
.stepper .icon-btn { width: 40px; height: 40px; border-radius: var(--r-sm); }
.stepper.small .icon-btn { width: 32px; height: 32px; }
.rounds-in { text-align: center; width: 90px; }
.field.rounds { display: grid; }
.field .chips { margin-top: 8px; }
.packet .costs { padding-top: 12px; margin-top: 14px; border-top: 1.5px dashed var(--line-2); }
.packet .costs dt { color: var(--ink-2); }
.packet .costs .total { color: var(--ink); font-weight: 700; border-top: 0; padding-top: 4px; font-size: 16px; }
.dig-btn { margin-top: 14px; }
.todo { margin-top: 8px; color: var(--ink-2); }
.auto { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); border: 1.5px dashed var(--line-2); font-size: 13.5px; }
.auto.on { border-style: solid; border-color: var(--good); background: color-mix(in srgb, var(--good) 8%, transparent); }
.packet .notes { padding: 12px 18px 18px; gap: 7px; font-size: 13px; color: var(--ink-2); }
.notes .icon { color: var(--good); }
.dig-below { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.mini-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: var(--border); }
.feed-row { grid-template-columns: 100px 1fr auto 64px; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed-text { display: inline-flex; gap: 8px; align-items: center; min-width: 0; }
.addr { font-size: 13px; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.last-rounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; padding-top: 12px; }
.last { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: var(--border); border-radius: var(--r-sm); background: var(--surface); font-size: 13.5px; }
.last:hover { background: var(--surface-2); }
.coin-icon { border-radius: 50%; display: inline-block; flex: none; line-height: 0; }
img.coin-icon { object-fit: cover; background: var(--surface-2); }

/* ---------- home: the hero and the fuse line ---------- */
.hero-band { padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); border-bottom: var(--border); }
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero-copy { display: grid; justify-items: start; }
.hero-copy .lede { margin-top: 20px; color: var(--ink-2); }
.hero-copy .ctas { margin-top: 28px; }
.hero-stats { margin-top: 28px; gap: 10px 32px; }
.hero-stats .num { font: 700 20px var(--font-mono); }
.hero-art { position: relative; }
.hero-result { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); min-height: 1.5em; }

.parts { position: relative; }
.part { position: relative; padding: clamp(64px, 8vw, 104px) 0; }
.part:nth-child(even) { background: var(--bg-2); }
.part-in { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: clamp(12px, 3vw, 32px); }
/* the fuse line: one dashed line down the numbers; a number lights (red spark dot) once its section is read */
.parts::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(max(var(--gut), (100vw - var(--wrap)) / 2 + var(--gut)) + 27px); border-left: 2px dashed var(--line-2); pointer-events: none; }
.part-no { position: relative; z-index: 1; justify-self: center; align-self: start; margin-top: 2px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: var(--border); font-size: 13px; font-weight: 700; color: var(--muted); transition: color var(--t) var(--ease), border-color var(--t) var(--ease); }
.part:nth-child(even) .part-no { background: var(--bg-2); }
.part-no::after { content: ''; position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 300ms var(--ease-pop); }
.part.lit .part-no { color: var(--ink); border-color: var(--ink); }
.part.lit .part-no::after { transform: scale(1); }
.part-body { min-width: 0; }
.section-head-block { display: grid; gap: 14px; justify-items: start; max-width: 680px; margin-bottom: 30px; }
.section-head-block .lede { color: var(--ink-2); }

.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 6px; right: 6px; top: 41px; border-top: 3px dashed var(--line-2); }
.tl-step { position: relative; display: grid; gap: 8px; align-content: start; }
.tl-time { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: var(--border-ink); position: relative; z-index: 1; margin: 2px 0 8px; }
.tl-step:nth-child(3) .tl-dot { background: var(--accent); border-color: var(--accent); }
.tl-step p { color: var(--ink-2); font-size: 15px; }

.money { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; }
.split-card, .fee-split { padding: 22px; border: var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; }
.bar3 { display: flex; height: 42px; border: var(--border-ink); border-radius: var(--r-sm); overflow: hidden; margin-bottom: 8px; }
.bar3 span { display: flex; align-items: center; padding: 0 12px; font: 700 13px var(--font-mono); white-space: nowrap; min-width: 0; }
.b-back { background: var(--chalk); color: var(--coal); }
.b-fee { background: var(--coal); color: var(--ink); border-left: var(--border-ink); }
.b-ops { background: var(--rock-3); border-left: var(--border-ink); padding: 0 !important; }
.fs-row { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.fs-pct { font: 700 30px/1 var(--font-display); letter-spacing: -0.01em; }

.stakes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.stake-card { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: 'no icon sym' 'no icon name' 'no icon mcap'; column-gap: 10px; align-items: center; padding: 10px 12px; border: var(--border); border-radius: var(--r); background: var(--surface); min-height: 72px; }
.stake-card.sk { background: transparent; border-style: dashed; }
.stake-card.house { border: 1.5px solid var(--spark); }
.stake-card.house .sc-sym { color: var(--spark); }
.house-icon { width: 28px; height: 28px; background: var(--spark); border-radius: 50%; padding: 2px; }
.house-icon svg { width: 100%; height: 100%; display: block; }
.sc-no { grid-area: no; font-size: 11px; color: var(--muted); align-self: start; }
.stake-card .coin-icon { grid-area: icon; }
.sc-sym { grid-area: sym; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-name { grid-area: name; font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-mcap { grid-area: mcap; font-size: 12.5px; }
.p-coins .fine { margin-top: 14px; }

.token-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.token-stats { gap: 16px 30px; }
.token-stats .stat-value { font: 700 22px var(--font-mono); color: var(--spark); }
.halvings { display: grid; gap: 10px; padding: 22px; border: var(--border); border-radius: var(--r-lg); background: var(--surface); }
.hv { display: grid; gap: 4px; }
.hv-bar { display: block; height: 20px; background: var(--rock-3); border-radius: 4px; }
.hv:first-of-type .hv-bar { background: var(--spark); }
.hv-label { font-size: 12px; color: var(--ink-2); }

.draw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.commit { display: grid; gap: 14px; }
.commit li { display: grid; gap: 6px; justify-items: start; }
.draw-card { padding: 22px; border: var(--border); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: 14px; }
.dc-head { display: flex; justify-content: space-between; align-items: baseline; }
.dc-head a { color: var(--ink); text-decoration: underline; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 16px; font-size: 13.5px; }
.facts dt { color: var(--muted); font: 500 12px var(--font-mono); }
.facts dd a { text-decoration: underline; }
.verify-out { font-size: 14px; min-height: 1.4em; }
.verify-out[data-ok="true"] { color: var(--good); }
.verify-out[data-ok="false"] { color: var(--bad); }

.keg-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.keg-art { --fill: 0; max-width: 260px; justify-self: center; width: 100%; }
.keg-art svg { width: 100%; height: auto; display: block; }
.k-shadow { fill: #000; opacity: 0.5; }
.k-body { fill: var(--surface-2); }
.k-fill { fill: var(--spark); transition: transform 600ms var(--ease); }
.k-line { fill: none; stroke: var(--ink); stroke-width: 3; }
.k-hoop { stroke: var(--ink); stroke-width: 5; fill: none; }
.k-fuse { fill: none; stroke: var(--muted); stroke-width: 3; stroke-linecap: round; }
.k-spark { fill: var(--accent); }
.keg-now { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.keg-big { font: 700 clamp(40px, 6vw, 76px)/1 var(--font-display); letter-spacing: -0.01em; color: var(--spark); }
.keg-note { margin-top: 12px; color: var(--ink-2); font-size: 14.5px; }

.close-band { padding: clamp(70px, 9vw, 120px) 0; background: var(--spark); color: var(--coal); }
.close-in { display: grid; justify-items: center; gap: 22px; text-align: center; }
.close-band h2 { font-size: clamp(34px, 5vw, 64px); color: var(--coal); }
.close-band .beat { color: var(--coal); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 6px; text-underline-offset: 8px; }
.close-mark { width: 96px; line-height: 0; }
.close-mark svg { width: 100%; height: auto; }
.close-band .btn.primary { background: var(--coal); color: var(--chalk); border-color: var(--coal); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.close-band .btn.primary:hover { background: #000; }
body[data-page="home"] main { padding-bottom: 0; }

/* ---------- pages with tables ---------- */
.page-head h1 { font-size: clamp(36px, 5vw, 64px); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tile-group { padding: 18px; border: var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 12px; align-content: start; }
.tile-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); color: var(--ink-2); }
.tile-group .stat { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 8px; }
.tile-group .stat-value { font-size: 15px; font-weight: 700; text-align: right; }
.block { margin-top: 44px; }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.block-head h2 { font-size: clamp(26px, 3vw, 38px); }
.table-wrap { overflow-x: auto; border: var(--border); border-radius: var(--r); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 500 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.table a { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.coin-cell { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-weight: 700; }
.tx { color: var(--ink); }

/* ---------- rewards ---------- */
.rw-grid { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
.bal-card { padding: 20px; border: var(--border); border-radius: var(--r-lg); background: var(--surface-2); color: var(--ink); display: grid; gap: 10px; box-shadow: var(--shadow); }
.bal-card .big { font: 700 34px/1 var(--font-mono); }
.reward-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.reward-row:last-child { border-bottom: 0; }
.rr-amount { font: 700 16px var(--font-mono); text-align: right; }
.card { border: var(--border); background: var(--surface); box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }

/* ---------- round page ---------- */
.round-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }
.round-facts { padding: 20px; display: grid; gap: 14px; }
.round-facts .facts dd { font-size: 13px; }
details.digs summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- how ---------- */
.how-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { position: sticky; top: calc(var(--top-h) + 20px); display: grid; gap: 2px; font-size: 14px; }
.toc a { padding: 6px 10px; border-radius: var(--r-sm); color: var(--ink-2); }
.toc a:hover { background: var(--surface); color: var(--ink); }
.doc { display: grid; gap: 56px; max-width: 760px; }
.doc section { display: grid; gap: 14px; scroll-margin-top: calc(var(--top-h) + 20px); }
.doc h2 { font-size: clamp(26px, 3vw, 36px); }
.doc p, .doc li { color: var(--ink-2); font-size: 16.5px; }
.doc ul.bul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.doc ol.num-list { display: grid; gap: 8px; padding-left: 22px; list-style: decimal; }
.doc .table-wrap { margin-top: 6px; }
.doc .callout { padding: 16px 18px; border: var(--border); border-radius: var(--r); background: var(--surface); }
.faq details { background: var(--surface); border: var(--border); }
.faq summary { font-size: 16px; }

/* ---------- empty, 404 ---------- */
.empty-art { line-height: 0; margin-bottom: 4px; }
.notfound { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 70px 16px 40px; }

/* ---------- footer ---------- */
#foot { background: #0E0C0E; color: var(--ink); border-top: var(--border); }
body:not([data-page="home"]) #foot { margin-top: 40px; }
.foot { grid-template-columns: 1.2fr 1fr; }
.foot-word { display: block; width: 170px; line-height: 0; }
.foot-word svg { width: 100%; height: auto; }
.foot-brand p { color: var(--ink-2); margin-top: 12px; max-width: 34em; }
.foot-mine { font-size: 13.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.foot-mine a { text-decoration: underline; }
.foot-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; justify-content: end; }
.foot-cols > div { display: grid; gap: 8px; align-content: start; font-size: 14.5px; }
.foot-cols a:hover { text-decoration: underline; }
.foot-base { border-top: 1px solid var(--line); color: var(--muted); }
.foot-base .link { color: var(--ink); }

/* ---------- phones ---------- */
@media (max-width: 1140px) {
  .dig-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; }
  .rs-cells { gap: 14px; }
}
@media (max-width: 900px) {
  .dig-grid { grid-template-columns: 1fr; max-width: 660px; margin-inline: auto; }
  .packet { position: static; }
  .round-grid, .rw-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .hero, .money, .token-grid, .draw-grid, .keg-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .timeline::before { display: none; }
  .how-grid { grid-template-columns: 1fr; }
  .toc { position: static; grid-auto-flow: column; overflow-x: auto; }
  .foot { grid-template-columns: 1fr; }
  .foot-cols { justify-content: start; }
}
@media (max-width: 860px) {
  .brand { width: 124px; }
  .dig-below { grid-template-columns: 1fr; }
  .round-strip { grid-template-columns: 1fr auto; }
  .rs-cells { grid-column: 1 / -1; justify-content: space-between; }
  .rs-cells > div { text-align: left; }
  body { padding-bottom: 76px; }
  .tabbar { background: var(--surface); border: var(--border-ink); box-shadow: var(--shadow); }
  .tabbar a { font-weight: 600; }
  .tabbar a[aria-current] { background: var(--chalk); color: var(--coal); }
}
@media (max-width: 640px) {
  .part-in { grid-template-columns: 1fr; }
  .parts::before { display: none; }
  .part-no { justify-self: start; width: 38px; height: 38px; margin-bottom: 12px; }
}
@media (max-width: 560px) {
  .plot { --cell-gap: 4px; padding: 8px; border-radius: 14px; }
  .hill { border-radius: 8px; }
  .hill-no { font-size: 9px; left: 4px; top: 3px; gap: 2px; }
  .hill-flag svg { width: 9px; height: 9px; }
  .hill-sol { display: none; }
  .stake { font-size: 9px; bottom: 2px; }
  .hill-held .coin-icon { width: 18px; height: 18px; }
  .timeline { grid-template-columns: 1fr; }
  .stakes { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stake-card { grid-template-columns: auto 1fr; grid-template-areas: 'icon sym' 'icon name' 'icon mcap'; padding: 8px 10px; min-height: 64px; }
  .stake-card .sc-no { display: none; }
  .hero-copy .lede { font-size: 16.5px; }
  h1.display { font-size: clamp(40px, 11.5vw, 56px); }
  .feed-row { grid-template-columns: 92px 1fr auto; }
  .feed-row .feed-time { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .reward-row { grid-template-columns: auto 1fr auto; }
  .reward-row .btn { grid-column: 1 / -1; }
  .table td, .table th { padding: 8px 9px; }
  .rs-timer { text-align: right; }
  .round-timer { font-size: 24px; }
  .hero-stats { gap: 10px 22px; }
}
