/* Molehill's own look, on top of base.css: flat print on paper. Ink lines, a hard soil shadow, no gradients, no glow.
   The field (the signature object), the strata of the home page, the Dig panel. Tokens only. */

/* ---------- type and small things ---------- */
body { background: var(--bg); }
h1, h2 { color: var(--ink); }
.beat { color: var(--accent-ink); }
.accent-ink { color: var(--accent-ink); }
.kicker { color: var(--ink-2); font-weight: 500; }
.kicker-dot { background: var(--accent); box-shadow: 0 0 0 1.5px var(--ink); }
.label { color: var(--muted); font-weight: 500; }
b, strong { font-weight: 700; }
code { font: 500 13.5px/1.5 var(--font-mono); background: var(--surface); border: var(--border); border-radius: 6px; padding: 1px 6px; }
.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; }
.problem { color: var(--bad); }
.table-empty { padding: 18px 0; }

/* ---------- buttons: printed, with a hard ink edge underneath ---------- */
.btn { border: var(--border-ink); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-ink); font-weight: 700; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.btn:hover { background: var(--bg); border-color: var(--ink); }
.btn:active:not([disabled]) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn.primary { background: var(--accent); color: var(--on-accent); border: var(--border-ink); }
.btn.primary:hover { filter: none; background: #F46A8B; }
.btn.sm { box-shadow: 0 2px 0 var(--ink); height: 32px; }
.btn.lg { height: 54px; font-size: 16.5px; padding: 0 26px; }
.btn[disabled] { opacity: 0.55; 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(--bg); 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(--ink); background: var(--accent); border-color: var(--ink); }
.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(--ink); color: var(--bg); }
.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); }
.input:focus, .prefix:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.live-dot { background: var(--good); }
.ca { border: 1.5px dashed var(--line-3); }
.ca-soon { color: var(--warn); font-weight: 700; }
.ca.small { border-style: dashed; background: var(--bg); }

/* ---------- header ---------- */
#top { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: var(--border-ink); backdrop-filter: blur(8px); }
.top-bar { gap: 22px; }
.brand { display: block; width: 158px; flex: none; }
.brand svg { width: 100%; height: auto; }
.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(--ink); color: var(--bg); }
.demo-strip { background: var(--ink); color: var(--bg); }
.demo-strip b { color: var(--accent); }
.wallet-btn.on .live-dot { flex: none; }
.menu { background: var(--bg); border: var(--border-ink); box-shadow: var(--shadow); }
.menu-item:hover { background: var(--surface); }
.wallet-row { border: var(--border-ink); background: var(--bg); }
.wallet-row:hover:not([disabled]) { background: var(--surface); }

/* ---------- modal, toasts ---------- */
.modal-veil { background: rgba(43, 30, 22, 0.45); backdrop-filter: none; }
.modal-panel { background: var(--bg); border: var(--border-ink); box-shadow: 6px 6px 0 var(--soil); }
.modal-head h2 { font-size: 26px; }
.toast { background: var(--ink); color: var(--bg); 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(--accent); background: var(--accent); color: var(--ink); animation: none; }
.flow-steps li.done .flow-mark { background: var(--ink); color: var(--bg); }

/* ---------- the field: the signature object ---------- */
.plot { --cell-gap: 7px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--cell-gap); padding: 10px; border: var(--border-ink); border-radius: var(--r-lg); box-shadow: var(--shadow);
  background-color: #E4D3B4; background-image: radial-gradient(rgba(148, 104, 63, 0.28) 1.1px, transparent 1.4px); background-size: 13px 13px; }
.hill { position: relative; aspect-ratio: 1 / 1; min-width: 0; padding: 0; border: 1.5px solid transparent; border-radius: 11px; background: color-mix(in srgb, var(--bg) 82%, transparent); 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); }
button.hill { cursor: pointer; }
button.hill:hover { background: var(--bg); border-color: var(--line-3); }
button.hill:active { transform: translateY(1px); }
.hill .mound { position: absolute; left: 3%; right: 3%; bottom: 20%; width: 94%; height: auto; }
.m-shadow { fill: var(--soil-dark); opacity: 0.22; }
.m-soil { fill: var(--soil); }
.m-line { fill: none; stroke: var(--soil-dark); stroke-width: 1.8; stroke-linecap: round; opacity: 0.5; }
.m-clod { fill: var(--soil-dark); opacity: 0.55; }
.m-hole { fill: var(--loam); }
.m-rim { fill: none; stroke: var(--soil); stroke-width: 3.2; stroke-linecap: round; }
.mo-coat { fill: var(--loam); }
.mo-eye { fill: var(--bg); }
.mo-nose, .mo-paws { fill: var(--accent); }
.mo-claw { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.hill .mole { transform: translateY(42px); transition: transform 460ms var(--ease-pop); }
.hill.popped .mole { transform: none; }
.hill-no { position: absolute; left: 7px; top: 5px; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); }
.hill-flag { color: var(--ink); line-height: 0; }
.hill-sol { position: absolute; right: 7px; top: 5px; font-size: 10.5px; color: var(--ink-2); font-weight: 700; }
.stake { position: absolute; left: 5px; right: 5px; bottom: 5px; display: flex; align-items: center; gap: 4px; padding: 2px 6px 2px 2px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--bg); font: 700 11px/1.2 var(--font-mono); min-width: 0; }
.stake-sym { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stake .coin-icon, .hill-held .coin-icon { border-radius: 50%; flex: none; object-fit: cover; }
.hill-held { position: absolute; left: 50%; top: 31%; transform: translate(-50%, 34px); opacity: 0; line-height: 0; transition: transform 460ms var(--ease-pop), opacity 200ms var(--ease); }
.hill-held .coin-icon { box-shadow: 0 0 0 1.5px var(--ink); background: var(--bg); }
.hill.popped .hill-held { transform: translate(-50%, 0); opacity: 1; transition-delay: 120ms; }
.hill.mine { box-shadow: inset 0 0 0 2px var(--ink); }
.hill.picked { background: var(--bg); box-shadow: inset 0 0 0 2.5px var(--ink); }
.hill.picked .stake { background: var(--ink); color: var(--bg); }
.hill.popped { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent), inset 0 0 0 1.5px var(--ink); background: var(--bg); z-index: 1; }
.hill.popped .hill-no { color: var(--accent-ink); font-weight: 700; }
.plot[data-status="closed"] .hill { opacity: 0.72; }
.plot[data-status="settled"] .hill.missed { opacity: 0.5; }
.plot[data-status="loading"] .hill { opacity: 0.4; }
.plot-mini { --cell-gap: 5px; padding: 8px; }
.plot-mini .hill-no { font-size: 9.5px; }
.plot-mini .stake { font-size: 9.5px; padding: 1px 4px 1px 1px; gap: 3px; left: 4px; right: 4px; bottom: 4px; }
.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(--ink); }
.lg-pop { width: 14px; height: 14px; border-radius: 4px; box-shadow: 0 0 0 2.5px var(--accent), inset 0 0 0 1.5px var(--ink); }

/* ---------- Dig 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-ink); 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(--ink); }
.round-status[data-s="open"] { background: var(--good); color: var(--bg); border-color: var(--good); }
.round-status[data-s="closed"] { background: var(--ink); color: var(--bg); }
.round-status[data-s="settled"] { background: var(--accent); color: var(--ink); }
.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-ink); }
.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-ink); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.packet-top { padding: 16px 18px; background: var(--ink); color: var(--bg); display: grid; gap: 6px; }
.packet-top .label { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.packet-top .muted { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.packet-bal { display: grid; gap: 10px; }
.packet-balance { font: 700 28px/1 var(--font-mono); }
.packet-top .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); box-shadow: none; }
.packet-top .btn:hover { background: var(--surface); }
.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-3); }
.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-3); font-size: 13.5px; }
.auto.on { border-style: solid; border-color: var(--ink); background: var(--bg); }
.packet .notes { padding: 12px 18px 18px; gap: 7px; font-size: 13px; }
.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-ink); }
.feed-row { grid-template-columns: 100px 1fr auto 64px; border-bottom: 1.5px dashed var(--line-2); 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-ink); border-radius: var(--r-sm); background: var(--surface); font-size: 13.5px; }
.last:hover { background: var(--bg); }
.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 strata ---------- */
.stratum { position: relative; padding: clamp(64px, 8vw, 110px) 0 clamp(70px, 8vw, 110px); }
.stratum .edge { position: absolute; left: 0; right: 0; top: -39px; height: 40px; line-height: 0; pointer-events: none; }
.stratum .edge svg { width: 100%; height: 100%; display: block; }
.stratum .edge path { fill: var(--s-bg); }
.stratum { background: var(--s-bg); color: var(--s-ink, var(--ink)); }
.s-surface { --s-bg: var(--bg); padding-top: clamp(36px, 5vw, 72px); }
.s-topsoil { --s-bg: #EADCC2; }
.s-subsoil { --s-bg: #E0CBA8; }
.s-clay { --s-bg: #D2B48A; --muted: #4F4034; }
.s-loam { --s-bg: #6B4A30; --s-ink: var(--bg); }
.s-bedrock { --s-bg: #3A2A20; --s-ink: var(--bg); }
.s-burrow { --s-bg: #2B1E16; --s-ink: var(--bg); }
.s-loam, .s-bedrock, .s-burrow { --muted: #D9C7AC; --ink-2: #E6D8C2; }
.s-loam h2, .s-bedrock h2, .s-burrow h2, .s-loam h3, .s-bedrock h3, .s-burrow h3 { color: var(--bg); }
.s-loam .beat, .s-bedrock .beat, .s-burrow .beat { color: var(--accent); }
.s-loam .kicker, .s-bedrock .kicker, .s-burrow .kicker { color: #E6D8C2; }
.stratum::before { content: ''; position: absolute; top: 0; bottom: 0; left: max(10px, calc((100vw - var(--wrap)) / 2 - 30px)); border-left: 2px dashed currentColor; opacity: 0.2; }
.s-surface::before { top: 50%; }
.section-head-block { display: grid; gap: 14px; justify-items: start; max-width: 680px; margin-bottom: 30px; }
.section-head-block .lede { color: var(--ink-2); }

.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; }
.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-clock { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 6px 12px; border: var(--border-ink); border-radius: var(--r-pill); background: var(--surface); font: 600 13px var(--font-mono); }
.hero-timer { font-weight: 700; }
.hero-result { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); min-height: 1.5em; }

.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(--soil-dark); opacity: 0.6; }
.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(--soil); border: var(--border-ink); position: relative; z-index: 1; margin: 2px 0 8px; }
.tl-step:nth-child(3) .tl-dot { background: 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-ink); border-radius: var(--r-lg); background: var(--bg); 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(--soil); }
.b-fee { background: var(--ink); color: var(--bg); border-left: var(--border-ink); }
.b-ops { background: var(--surface-2); 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: 1.5px dashed var(--line-2); font-size: 15.5px; }
.fs-pct { font: 800 30px/1 var(--font-display); letter-spacing: -0.03em; }

.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-ink); border-radius: var(--r); background: var(--bg); min-height: 72px; }
.stake-card.sk { background: color-mix(in srgb, var(--bg) 60%, transparent); border-style: dashed; }
.stake-card.house { background: var(--surface); border-style: dashed; }
.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; }
.s-clay .fine { margin-top: 14px; color: var(--ink-2); }

.mole-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.mole-stats { gap: 16px 30px; }
.mole-stats .stat-value { font: 700 22px var(--font-mono); color: var(--bg); }
.mole-stats .stat-hint { color: #D9C7AC; }
.halvings { display: grid; gap: 10px; padding: 22px; border: 1.5px solid var(--bg); border-radius: var(--r-lg); }
.halvings .label { color: #E6D8C2; }
.hv { display: grid; gap: 4px; }
.hv-bar { display: block; height: 20px; background: var(--soil); border: 1.5px solid var(--bg); border-radius: 4px; }
.hv:first-of-type .hv-bar { background: var(--accent); }
.hv-label { font-size: 12px; color: #E6D8C2; }

.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; }
.commit code, .s-bedrock code { background: rgba(243, 234, 217, 0.08); border-color: rgba(243, 234, 217, 0.25); color: var(--bg); }
.draw-card { padding: 22px; border: 1.5px solid var(--bg); border-radius: var(--r-lg); background: rgba(243, 234, 217, 0.04); display: grid; gap: 14px; }
.dc-head { display: flex; justify-content: space-between; align-items: baseline; }
.dc-head a { color: var(--bg); 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; }
.s-bedrock .btn { background: var(--bg); box-shadow: 0 3px 0 var(--soil); }
.verify-out { font-size: 14px; min-height: 1.4em; }
.verify-out[data-ok="true"] { color: #A9D8A2; }
.verify-out[data-ok="false"] { color: #FFB4A8; }

.burrow-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.burrow-art svg { width: 100%; height: auto; }
.chamber { fill: #1E140E; stroke: #4B3628; stroke-width: 2; stroke-dasharray: 6 6; }
.chamber-floor { fill: #3A2A20; }
.stash { fill: var(--accent); stroke: var(--ink); stroke-width: 1.5; }
.burrow-now { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.burrow-big { font: 800 clamp(40px, 6vw, 76px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--accent); }
.burrow-note { margin-top: 12px; color: #D9C7AC; font-size: 14.5px; }
.close-band { display: grid; justify-items: center; gap: 24px; text-align: center; margin-top: clamp(70px, 9vw, 120px); padding-top: clamp(50px, 6vw, 80px); border-top: 1.5px dashed rgba(243, 234, 217, 0.25); }
.close-band h2 { font-size: clamp(34px, 5vw, 64px); }
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-ink); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 12px; align-content: start; }
.tile-group h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); }
.tile-group .stat { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-top: 1.5px dashed var(--line-2); 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-ink); border-radius: var(--r); background: var(--bg); }
.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-ink); background: var(--surface); 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-ink); border-radius: var(--r-lg); background: var(--ink); color: var(--bg); display: grid; gap: 10px; }
.bal-card .label { color: #D9C7AC; }
.bal-card .big { font: 700 34px/1 var(--font-mono); }
.bal-card .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); box-shadow: none; }
.bal-card .muted { color: #D9C7AC; }
.reward-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1.5px dashed var(--line-2); }
.reward-row:last-child { border-bottom: 0; }
.rr-amount { font: 700 16px var(--font-mono); text-align: right; }
.card { border: var(--border-ink); background: var(--bg); 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-ink); border-radius: var(--r); background: var(--surface); }
.faq details { background: var(--bg); border: var(--border-ink); }
.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: the deepest stratum ---------- */
#foot { background: #2B1E16; color: var(--bg); border-top: 0; }
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: #D9C7AC; 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 .label { color: #B9A68B; }
.foot-cols a:hover { text-decoration: underline; }
.foot-cols .ca.small { background: transparent; border-color: rgba(243, 234, 217, 0.35); color: var(--bg); }
.foot-cols .ca.small .label { color: #B9A68B; }
.foot-base { border-top: 1.5px dashed rgba(243, 234, 217, 0.22); color: #D9C7AC; }
.foot-base .link { color: var(--bg); }

/* ---------- 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, .mole-grid, .draw-grid, .burrow-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: 132px; }
  .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; }
  .stratum::before { display: none; }
  body { padding-bottom: 76px; }
  .tabbar { background: var(--bg); border: var(--border-ink); box-shadow: var(--shadow); }
  .tabbar a { font-weight: 600; }
}
@media (max-width: 560px) {
  .plot { --cell-gap: 4px; padding: 6px; 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 { font-size: 9px; right: 4px; top: 3px; }
  .hill.solo .hill-sol { display: none; }
  .stake { font-size: 9px; left: 3px; right: 3px; bottom: 3px; padding: 1px 3px; border-width: 1px; border-radius: 4px; }
  .stake .coin-icon { display: none; }
  .hill .mound { bottom: 22%; }
  .timeline { grid-template-columns: 1fr; }
  .s-surface { padding-top: 22px; }
  .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; }
}
