/* GLEAN · ULTRAMARINE LEDGER, built on EMONEY's sitebuilder (2026-11-26): layout classic (floating pill nav, full-screen hero),
   hero contour (topographic height lines; the yellow band climbing the hills = price swinging up through the ladder above it),
   palette ultramarine (#06384c page, white type, #7ef0ff yellow = SOL gleaned, pale lavender #9fd3df = tokens waiting),
   type Zodiak (headlines + the big numbers) + Inria Sans (text, UI) + Iosevka Charon Mono (labels, tables, addresses), all self-hosted.
   The builder's tokens come first; the page code's older token names below are ALIASES of them, so every module re-themes with no
   rewrite. The product name never appears here: it comes from the brand (/api/brand, {{name}} in the HTML). */
@font-face { font-family: "Zodiak"; src: url("/fonts/zodiak/zodiak-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("/fonts/zodiak/zodiak-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("/fonts/zodiak/zodiak-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("/fonts/zodiak/zodiak-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inria Sans"; src: url("/fonts/inria-sans/inria-sans-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inria Sans"; src: url("/fonts/inria-sans/inria-sans-400.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inria Sans"; src: url("/fonts/inria-sans/inria-sans-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inria Sans"; src: url("/fonts/inria-sans/inria-sans-700.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Iosevka Charon Mono"; src: url("/fonts/iosevka-charon-mono/iosevka-charon-mono-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Iosevka Charon Mono"; src: url("/fonts/iosevka-charon-mono/iosevka-charon-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Iosevka Charon Mono"; src: url("/fonts/iosevka-charon-mono/iosevka-charon-mono-500.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Iosevka Charon Mono"; src: url("/fonts/iosevka-charon-mono/iosevka-charon-mono-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* the builder's tokens (classic · ultramarine · Zodiak / Inria Sans / Iosevka Charon Mono) */
  --bg: #06384c; --bg2: #0a4359; --bg3: #0f4f68; --ink: #e5fbff; --ink2: #9fd3df; --ink3: #6aa3b2; --line: rgba(229,251,255,.17); --line2: rgba(229,251,255,.38);
  --accent: #7ef0ff; --accent-ink: #022029; --accent2: #ffb37a;
  --f-display: "Zodiak", Georgia, "Times New Roman", serif; --f-body: "Inria Sans", ui-sans-serif, system-ui, sans-serif; --f-mono: "Iosevka Charon Mono", ui-monospace, monospace;
  --d-w: 800; --d-ls: -0.03em; --r2: 18px; --r-btn: 999px; --ease: cubic-bezier(.22, 1, .36, 1);
  --sb-thumb: rgba(255,255,255,.24); --sb-thumb-hover: rgba(255,255,255,.42);
  /* the site's own pieces: a deep plate (the pools field, the closing band), a sunk well (inputs) */
  --deep: #03283a; --deep-2: #052e41; --deep-line: rgba(229,251,255,.11); --well: rgba(1,18,28,.32);
  /* older token names = aliases of the builder's */
  --surface: var(--bg2); --sunk: rgba(229,251,255,.07); --sunk-2: rgba(229,251,255,.12);
  --line-2: rgba(229,251,255,.26); --line-3: var(--line2);
  --ink-2: #cdeef5; --muted: #a6d0da; --faint: #78aebb; --on-ink: var(--bg);
  --tok: var(--ink2); --tok-2: #d2f1f7; --tok-soft: rgba(159,211,223,.15); --tok-mid: rgba(159,211,223,.5);
  --sol: var(--accent); --sol-2: var(--accent); --sol-soft: rgba(126,240,255,.15); --sol-mid: rgba(126,240,255,.62);
  --up: #b9f59a; --down: var(--accent2); --warn: var(--accent2);
  --r-sm: 6px; --r: 10px; --r-lg: 14px; --r-xl: var(--r2);
  --sh-1: none; --sh-2: 0 24px 60px -34px rgba(1,14,22,.75); --sh-3: 0 34px 90px -40px rgba(1,14,22,.85);
  --sans: var(--f-body); --display: var(--f-display); --mono: var(--f-mono);
  --wrap: 1240px; --hdr: 88px;
}

/* NO STOCK SCROLLBARS: owner rule (10-22, 11-11, 11-17). Every scroller gets a thin bar, transparent track, no arrows.
   NEVER set the standard scrollbar-color / scrollbar-width: thin outside the @supports block (Chrome 121+ then ignores every
   ::-webkit-scrollbar rule below). */
:root { color-scheme: dark; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--sb-thumb, rgba(140, 140, 150, .35)); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover, rgba(160, 160, 170, .6)); }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-corner { background: transparent; }
@supports (-moz-appearance: none) {
  * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb, rgba(140, 140, 150, .35)) transparent; }
}
.no-sb { scrollbar-width: none; }
.no-sb::-webkit-scrollbar { display: none; }


/* ── layout (the base kept from the copied site; the look block below sets palette, type and surfaces) ── */
:root { --wrap: 1240px; --hdr: 64px; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.is-hidden { display: none !important; }
.num, .mono { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: -.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── header ─────────────────────────────────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--hdr); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 28px; max-width: 1600px; margin: 0 auto; padding: 0 40px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -.015em; font-stretch: 96%; flex: none; }
.mark { width: 26px; height: 26px; flex: none; }
.brand-name { min-width: 76px; opacity: 0; transition: opacity .18s; }
.brand-name.is-set { opacity: 1; }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a { padding: 7px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; transition: background .15s, color .15s; white-space: nowrap; }
.nav a:hover { background: var(--sunk); color: var(--ink); }
.nav a.is-on { color: var(--ink); background: var(--sunk-2); }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.net-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px; background: var(--sunk); border: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 550; white-space: nowrap; }
.net-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.ca-pill { display: inline-flex; align-items: center; gap: 0; height: 34px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); overflow: hidden; font-size: 13px; }
.ca-pill .ca-lab { padding: 0 10px; color: var(--muted); font-weight: 600; border-right: 1px solid var(--line); height: 100%; display: flex; align-items: center; }
.ca-pill .ca-addr { border: 0; background: none; height: 100%; padding: 0 10px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; max-width: 220px; }
.ca-pill .ca-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-pill .ca-copy { font-style: normal; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--sol); }
.ca-pill .ca-link { padding: 0 10px; height: 100%; display: flex; align-items: center; border-left: 1px solid var(--line); color: var(--ink-2); font-weight: 550; }
.ca-pill .ca-link:hover, .ca-pill .ca-addr:hover { background: var(--sunk); }
.x-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; transition: background .15s; }
.x-btn:hover { background: var(--sunk); }
.x-btn svg { width: 14px; height: 14px; }
.burger { display: none; width: 38px; height: 38px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; cursor: pointer; place-items: center; }
.burger i, .burger i::before, .burger i::after { display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.burger i::before { position: absolute; top: -5px; } .burger i::after { position: absolute; top: 5px; }
.mnav { display: none; }

/* ── buttons, chips, cards ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15.5px; letter-spacing: -.005em; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; white-space: nowrap; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-ink { background: var(--ink); color: var(--on-ink); }

.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--line-3); background: var(--surface); box-shadow: var(--sh-1); }
.btn-sol { background: var(--sol); color: var(--on-ink); }
.btn-sol:hover { background: var(--sol-2); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(2px); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 550; color: var(--ink-2); cursor: pointer; transition: all .15s; white-space: nowrap; }
.chip:hover { border-color: var(--line-3); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip .b { font-family: var(--mono); font-size: 12px; opacity: .75; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }

.tag-tok { background: var(--tok-soft); color: var(--tok-2); }
.tag-sol { background: var(--sol-soft); color: var(--sol-2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .005em; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tok); box-shadow: 0 0 0 4px var(--tok-soft); }
.kicker { font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--sol); }
.sec-h { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.06; letter-spacing: -.028em; font-weight: 620; font-stretch: 88%; margin: 12px 0 0; max-width: 26ch; }
.sec-p { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 16px 0 0; line-height: 1.55; }
.legend { display: inline-flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.legend .lt i { background: var(--tok); } .legend .ls i { background: var(--sol); }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: calc(100vh - var(--hdr)); min-height: calc(100svh - var(--hdr)); display: flex; align-items: center; padding: 28px 0 40px; }
.hero::before { content: ""; position: absolute; inset: 0;  pointer-events: none; }
.hero-in { position: relative; width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: minmax(0, 37fr) minmax(0, 63fr); grid-template-areas: "copy stage" "stats stage"; grid-template-rows: auto auto; column-gap: 64px; row-gap: 0; align-items: center; align-content: center; }
.hero-copy { grid-area: copy; align-self: end; } .hero-stats { grid-area: stats; align-self: start; max-width: 580px; } .stage { grid-area: stage; }
.hero-copy { max-width: 580px; }
.hero h1 { font-size: clamp(42px, 4.3vw, 70px); line-height: 1.02; letter-spacing: -.034em; font-weight: 640; font-stretch: 86%; margin: 22px 0 0; }
.hero h1 .soft { color: var(--faint); }
.hero-sub { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 22px 0 0; max-width: 48ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.strip { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 18px; gap: 18px; }
.strip .k { font-size: 12.5px; color: var(--muted); font-weight: 550; white-space: nowrap; }
.strip .v { font-family: var(--mono); font-size: 21px; font-weight: 520; letter-spacing: -.02em; margin-top: 4px; white-space: nowrap; }
.strip-note { margin-top: 12px; font-size: 12.5px; color: var(--faint); display: flex; gap: 8px; align-items: center; }

.stage { position: relative; }
.panel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); overflow: hidden; }
.panel-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.coin-av { width: 34px; height: 34px; border-radius: 50%; background: var(--sunk-2); flex: none; object-fit: cover; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); overflow: hidden; }
.coin-av img { width: 100%; height: 100%; object-fit: cover; }
.panel-top .t1 { font-weight: 650; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-top .t2 { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-top .grow { min-width: 0; flex: 1; }
.clock { text-align: right; flex: none; }
.clock .k { font-size: 11.5px; color: var(--faint); font-weight: 550; }
.clock .v { font-family: var(--mono); font-size: 15px; font-weight: 520; }
.chart-box { position: relative; height: clamp(320px, 46vh, 470px); }
.chart-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.panel-foot { display: flex; align-items: center; gap: 18px; padding: 13px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.panel-foot .grow { flex: 1; }

.pos { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pos-meter { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--tok); display: flex; }
.pos-meter b { display: block; height: 100%; background: var(--sol); width: 0; }
.pos-c { padding: 15px 18px 14px; border-left: 1px solid var(--line); min-width: 0; }
.pos-c:first-of-type { border-left: 0; }
.pos-stake { border-left: 0; }
.pos-h { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pos-h .coin-av { width: 24px; height: 24px; font-size: 10px; }
.pos-h .amt { font-weight: 650; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos .rule { font-size: 12.5px; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos .k { font-size: 12px; color: var(--muted); font-weight: 550; white-space: nowrap; }
.pos .v { font-family: var(--mono); font-size: 16px; font-weight: 530; margin-top: 4px; white-space: nowrap; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; }
.pos .s { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 1px; white-space: nowrap; }
.pos-fee .v { color: var(--sol-2); font-size: 22px; font-weight: 600; margin-top: 1px; letter-spacing: -.03em; }
.pos-end .v { color: var(--faint); transition: color .3s; }
.pos-end.is-done .v { color: var(--tok-2); }
.foot-r { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── sections ──────────────────────────────────────────────────────────── */
section.sec { padding: 120px 0; }
section.sec.tight { padding: 88px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.step { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
section.alt .step { background: var(--bg); }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.step h3 { font-size: 21px; letter-spacing: -.018em; font-weight: 620; margin: 14px 0 8px; font-stretch: 94%; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
.step svg { width: 100%; height: 112px; margin-top: 22px; display: block; }
.outs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.out { padding: 26px 26px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
section.alt .out { background: var(--bg); }
.out svg { width: 100%; height: 96px; display: block; margin-bottom: 18px; }
.out h4 { font-size: 17.5px; letter-spacing: -.012em; margin: 0 0 6px; font-weight: 620; }
.out p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.out .big { font-family: var(--mono); font-size: 34px; font-weight: 520; letter-spacing: -.03em; margin-top: 18px; }
.out .big small { font-family: var(--sans); font-size: 13px; color: var(--muted); letter-spacing: 0; font-weight: 500; margin-left: 6px; }
.out.warn .big { color: var(--ink); }

.mtable-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ctrls { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 36px; }
.ctrls .lab { font-size: 13px; color: var(--muted); font-weight: 550; margin-right: 2px; }
.seg { display: inline-flex; background: var(--sunk); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; font-weight: 550; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.tbl-wrap { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: right; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 14px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg); }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td { text-align: right; padding: 18px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 15px; white-space: nowrap; }
.tbl td:first-child { font-family: var(--sans); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .pname { font-weight: 620; font-size: 15.5px; }
.tbl .psub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tbl .hl { color: var(--tok-2); }
.tbl .sl { color: var(--sol-2); }
.tbl-note { font-size: 13px; color: var(--faint); margin-top: 14px; line-height: 1.55; max-width: 92ch; }

.rw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 52px; }
.rw { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
section.alt .rw { background: var(--bg); }
.rw .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sunk); margin-bottom: 18px; }
.rw .ic svg { width: 18px; height: 18px; }
.rw h4 { font-size: 16.5px; margin: 0 0 6px; font-weight: 620; letter-spacing: -.01em; }
.rw p { margin: 0; font-size: 14.5px; color: var(--muted); }
.tiers { margin-top: 40px; padding: 26px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
section.alt .tiers { background: var(--bg); }
.tiers-h { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.tiers-h b { font-size: 16.5px; font-weight: 620; }
.tiers-h span { font-size: 13.5px; color: var(--muted); }
.tier-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 22px; align-items: end; }
.tier { display: flex; flex-direction: column; gap: 8px; }
.tier .bar { border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--sol-mid), var(--sol-soft)); min-height: 8px; }
.tier:first-child .bar { background: var(--sunk-2); }
.tier .b { font-family: var(--mono); font-size: 15px; font-weight: 560; }
.tier .l { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.devband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.lockprev { padding: 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.lockprev .lp-h { display: flex; align-items: center; gap: 10px; }
.lockprev .lp-h b { font-size: 16px; font-weight: 640; }
.lockprev .lp-line { font-size: 15px; color: var(--ink-2); margin: 16px 0 18px; line-height: 1.5; }
.lockprev .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.lockprev .kv div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.lockprev .kv .k { font-size: 12.5px; color: var(--muted); }
.lockprev .kv .v { font-family: var(--mono); font-size: 15px; margin-top: 2px; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; font-size: 16px; color: var(--ink-2); }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--tok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.6' fill='none' stroke='%230a7353' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

.ledger { margin-top: 36px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.lg-row { display: grid; grid-template-columns: 92px 104px minmax(0, 1fr) 150px; gap: 16px; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.lg-row:last-child { border-bottom: 0; }
.lg-row .t { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.lg-row .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.lg-row .lk { text-align: right; font-size: 13px; white-space: nowrap; }
.lg-row .lk a { color: var(--sol-2); font-weight: 550; }
.lg-row .lk a:hover { text-decoration: underline; }
.lg-kind { font-size: 12px; font-weight: 600; height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 6px; background: var(--sunk); color: var(--ink-2); text-transform: capitalize; }
.lg-kind.k-stake, .lg-kind.k-place, .lg-kind.k-escrow, .lg-kind.k-devlock, .lg-kind.k-lock { background: var(--tok-soft); color: var(--tok-2); }
.lg-kind.k-collect, .lg-kind.k-distribute, .lg-kind.k-deposit, .lg-kind.k-sync, .lg-kind.k-claim, .lg-kind.k-cut, .lg-kind.k-burn { background: var(--sol-soft); color: var(--sol-2); }
.lg-empty { padding: 34px 20px; color: var(--muted); font-size: 14.5px; text-align: center; }

.fee-tbl td:nth-child(2), .fee-tbl th:nth-child(2) { color: var(--ink); font-weight: 600; }
.fee-tbl td { font-family: var(--sans); font-size: 14.5px; }
.fee-tbl tr td:first-child { color: var(--muted); }

.cta-band { padding: 96px 0; text-align: center; }
.cta-band h2 { font-size: clamp(34px, 3.6vw, 54px); letter-spacing: -.03em; font-weight: 630; font-stretch: 86%; margin: 0; line-height: 1.04; }
.cta-band p { color: var(--muted); font-size: 18px; margin: 16px auto 0; max-width: 52ch; }
.cta-band .hero-cta { justify-content: center; }

/* ── footer ────────────────────────────────────────────────────────────── */
.ftr { border-top: 1px solid var(--line); background: var(--surface); padding: 56px 0 40px; font-size: 14px; color: var(--muted); }
.ftr-in { max-width: 1440px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.ftr h5 { margin: 0 0 12px; font-size: 13px; color: var(--ink); font-weight: 620; }
.ftr a { display: block; padding: 4px 0; color: var(--muted); }
.ftr a:hover { color: var(--ink); }
.ftr .fbrand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: 16px; }
.ftr .fline { margin-top: 12px; max-width: 34ch; line-height: 1.5; }
.ftr-base { max-width: 1440px; margin: 40px auto 0; padding: 22px 32px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.ftr-base .prog { font-family: var(--mono); font-size: 12.5px; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; }
  .hero-in { padding: 0 32px; } .hdr-in { padding: 0 32px; }
  .nav a { padding: 7px 9px; }
}
@media (max-width: 1080px) {
  .nav, .hdr-r .ca-pill, .net-pill { display: none !important; }
  .burger { display: grid; }
  .mnav.is-open { display: block; position: fixed; top: var(--hdr); left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 49; padding: 18px 24px; overflow-y: auto; }
  .mnav a { display: block; padding: 16px 4px; font-size: 20px; font-weight: 580; border-bottom: 1px solid var(--line); }
  .mnav .ca-m { margin-top: 18px; }
  .hero { min-height: 0; padding: 36px 0 56px; }
  .hero { overflow: hidden; }
  .hero-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage" "stats"; row-gap: 36px; }
  .hero-stats .strip { margin-top: 0; }
  .hero-copy { max-width: 640px; }
  .steps, .outs { grid-template-columns: 1fr; }
  .rw-grid { grid-template-columns: 1fr 1fr; }
  .devband { grid-template-columns: 1fr; gap: 40px; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap, .hero-in, .hdr-in, .ftr-in { padding-left: 18px; padding-right: 18px; }
  .hdr-in { gap: 12px; }
  .hdr-r .btn-sm { padding: 0 12px; }
  .hero { padding: 26px 0 44px; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 17px; }
  .hero-cta .btn { flex: 1; }
  .strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 16px; margin-top: 32px; }
  .hero-cta { flex-wrap: nowrap; } .hero-cta .btn { padding: 0 14px; min-width: 0; }
  .strip .v { font-size: 19px; }
  .panel { border-radius: 18px; }
  .panel-top { padding: 12px 14px; }
  .chart-box { height: 340px; }
  .panel-foot { padding: 11px 14px; font-size: 12px; gap: 12px; }
  .pos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pos-stake { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .pos-c { padding: 12px 14px; }
  .pos-c:nth-child(3), .pos-c:nth-child(5) { border-left: 0; }
  .pos-c:nth-child(3), .pos-c:nth-child(4) { border-bottom: 1px solid var(--line); }
  .pos-fee .v { font-size: 19px; }
  .foot-r { display: none; }
  section.sec { padding: 72px 0; } section.sec.tight { padding: 56px 0; }
  .sec-p { font-size: 16.5px; }
  .rw-grid { grid-template-columns: 1fr; }
  .lg-row { grid-template-columns: 70px minmax(0, 1fr); row-gap: 4px; }
  .lg-row .lk { grid-column: 2; text-align: left; }
  .lg-row .lg-k { display: none; }
  .tier .l { font-size: 11px; } .tier .b { font-size: 13px; }
  .ftr-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── hero fx layer, end row ───────────────────────────────────────────── */
.stage > .fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }

/* ── toast ────────────────────────────────────────────────────────────── */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); opacity: 0; background: var(--ink); color: var(--on-ink); padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 550; box-shadow: var(--sh-3); z-index: 120; transition: opacity .2s, transform .2s; pointer-events: none; }
#toast.is-on { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--down); }

/* ── wallet (wp-* only) ───────────────────────────────────────────────── */
#wallet-btn.is-conn { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); gap: 8px; }
#wallet-btn img { width: 18px; height: 18px; border-radius: 5px; }
.wp-scrim { position: fixed; inset: 0; background: rgba(1,16,25,.55); backdrop-filter: blur(3px); z-index: 110; display: none; align-items: center; justify-content: center; padding: 20px; }
.wp-scrim.is-on { display: flex; }
.wp-box { width: 100%; max-width: 400px; background: var(--surface); border-radius: 20px; box-shadow: var(--sh-3); padding: 20px; }
.wp-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.wp-h b { font-size: 17px; font-weight: 640; }
.wp-x { width: 32px; height: 32px; border-radius: 9px; border: 0; background: var(--sunk); font-size: 20px; line-height: 1; cursor: pointer; }
.wp-list { display: grid; gap: 8px; }
.wp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; text-align: left; font-weight: 600; font-size: 15px; }
.wp-row:hover { border-color: var(--line-3); background: var(--surface); }
.wp-row img, .wp-row .wp-ph { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.wp-row .wp-ph { display: grid; place-items: center; background: var(--sunk-2); font-size: 13px; }
.wp-row i { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--muted); font-weight: 550; }
.wp-foot { margin: 14px 2px 0; font-size: 12.5px; color: var(--muted); }
.wp-menu { position: fixed; top: calc(var(--hdr) - 4px); right: 24px; width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); padding: 6px; z-index: 105; }
.wp-menu .wp-me { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 14px; }
.wp-menu .wp-me img { width: 22px; height: 22px; border-radius: 6px; }
.wp-menu a, .wp-menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 9px; border: 0; background: none; font-size: 14px; cursor: pointer; }
.wp-menu a:hover, .wp-menu button:hover { background: var(--sunk); }

/* ── app pages (stake, coin, lock, portfolio, dev) ─────────────────────── */
.page { padding: 40px 0 96px; }
.pg-h h1 { font-size: 40px; letter-spacing: -.03em; font-weight: 640; font-stretch: 88%; margin: 0; line-height: 1.05; }
.pg-h p { margin: 10px 0 0; color: var(--muted); font-size: 16px; max-width: 54ch; }
.stk-in { max-width: 1600px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: minmax(380px, 470px) minmax(0, 1fr); gap: 40px; align-items: start; }
.stk-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: 28px; position: sticky; top: calc(var(--hdr) + 20px); }
.stk-side { display: grid; gap: 20px; min-width: 0; }
.fld { margin-top: 24px; }
.fl-l { display: block; font-size: 13px; font-weight: 620; color: var(--ink-2); margin-bottom: 8px; }
.fl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fl-row .fl-l { margin-bottom: 8px; }
.fl-r { font-size: 12.5px; color: var(--muted); font-family: var(--mono); white-space: nowrap; }
.fl-sub { margin-top: 8px; font-size: 13px; color: var(--muted); font-family: var(--mono); }
.fl-help { font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.coin-pick { position: relative; }
.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 13px; background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--ink); background: var(--surface);  }
.search svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 500 15.5px var(--sans); color: var(--ink); }
.search input::placeholder { color: var(--faint); }
.coin-sel { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 12px 0 10px; border: 1px solid var(--line-2); border-radius: 13px; background: var(--surface); cursor: pointer; }
.coin-sel:hover { border-color: var(--line-3); }
.coin-sel .coin-av { width: 36px; height: 36px; }
.coin-sel b { font-size: 16px; font-weight: 650; display: block; }
.coin-sel small { font-size: 12.5px; color: var(--muted); }
.coin-sel .chg { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 550; }
.coin-res { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); z-index: 20; max-height: 420px; overflow-y: auto; padding: 6px; }
.cr { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.cr:hover, .cr.is-act { background: var(--sunk); }
.cr .coin-av { width: 32px; height: 32px; }
.cr .n { min-width: 0; } .cr .n b { font-weight: 640; font-size: 14.5px; } .cr .n span { color: var(--muted); font-size: 13px; margin-left: 6px; }
.cr .n div { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); }
.cr .m { text-align: right; font-family: var(--mono); font-size: 13px; } .cr .m div { font-size: 11.5px; color: var(--faint); }
.cr.no { opacity: .55; cursor: not-allowed; }
.cr-h { font-size: 11.5px; font-weight: 650; color: var(--faint); letter-spacing: .05em; text-transform: uppercase; padding: 8px 10px 4px; }
.cr-empty { padding: 18px 12px; color: var(--muted); font-size: 14px; }
.amt-box { display: flex; align-items: center; height: 58px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 13px; background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.amt-box:focus-within { border-color: var(--ink); background: var(--surface);  }
.amt-box input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 520 24px var(--mono); letter-spacing: -.02em; color: var(--ink); }
.amt-sym { font-weight: 620; color: var(--ink-2); font-size: 15px; }
.pcts { display: flex; gap: 6px; }
.pcts button { height: 26px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); font: 600 12px var(--sans); color: var(--ink-2); cursor: pointer; }
.pcts button:hover { border-color: var(--line-3); color: var(--ink); }
.lock-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lock-chips .chip { height: 36px; }
.lock-chips .chip.flex-chip.is-on { background: var(--ink); }
.pre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pre { text-align: left; padding: 14px 14px 13px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pre:hover { border-color: var(--line-3); }
.pre.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pre b { display: block; font-size: 14.5px; font-weight: 650; }
.pre .x { font-family: var(--mono); font-size: 13px; color: var(--tok-2); margin-top: 3px; }
.pre p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.custom { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.custom label { display: flex; align-items: center; gap: 8px; }
.xin { display: inline-flex; align-items: center; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; background: var(--surface); }
.xin input { width: 52px; border: 0; outline: none; font: 520 15px var(--mono); background: none; }
.xin i { font-style: normal; color: var(--muted); }
.sum { margin-top: 24px; border-top: 1px solid var(--line); }
.sum .r { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sum .r .k { color: var(--muted); white-space: nowrap; }
.sum .r .v { text-align: right; font-family: var(--mono); font-size: 13px; color: var(--ink); }
.btn-big { width: 100%; height: 54px; margin-top: 20px; font-size: 16px; border-radius: 14px; }
.go-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 10px 0 0; min-height: 18px; }
.go-note.bad { color: var(--down); }
.cpanel .chart-box { height: clamp(320px, 44vh, 460px); }
.cpanel .seg button { height: 26px; padding: 0 10px; font-size: 12.5px; }
.meas { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px 26px; }
.meas-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.meas-cell { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.meas-line { font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin: 12px 0 0; line-height: 1.35; }
.meas-line2 { font-size: 15px; color: var(--ink-2); margin: 6px 0 0; }
.meas-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.meas-grid > div { padding: 14px 16px; border-left: 1px solid var(--line); }
.meas-grid > div:first-child { border-left: 0; }
.meas-grid .k { font-size: 12px; color: var(--muted); }
.meas-grid .v { font-family: var(--mono); font-size: 20px; font-weight: 530; margin-top: 4px; letter-spacing: -.02em; }
.meas-own { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.meas-own b { color: var(--ink); font-weight: 620; }
.done-box { margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--tok-soft); color: var(--tok-2); font-size: 14px; }
.done-box a { font-weight: 650; text-decoration: underline; }
@media (max-width: 1080px) {
  .stk-in { grid-template-columns: minmax(0, 1fr); padding: 0 24px; }
  .stk-form { position: static; }
  .stk-side { order: -1; }
}
@media (max-width: 640px) {
  .page { padding: 20px 0 64px; }
  .stk-in { padding: 0 14px; gap: 18px; }
  .stk-form { padding: 20px 16px; border-radius: 18px; }
  .pg-h h1 { font-size: 32px; }
  .meas { padding: 18px; }
  .meas-grid { grid-template-columns: 1fr 1fr; }
  .meas-grid > div:nth-child(3) { border-left: 0; }
  .meas-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cpanel .chart-box { height: 280px; }
  .cpanel .panel-top .seg { display: none; }
}
.fl-r { font-family: var(--sans); }
.lock-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lock-chips .chip { justify-content: center; padding: 0 8px; }
.meas-h { flex-wrap: wrap; } .meas-cell { font-family: var(--sans); }
@media (max-width: 1080px) {
  .stk-side { display: contents; }
  .stk-in { display: flex; flex-direction: column; }
  .cpanel { order: -1; width: 100%; } .stk-form { width: 100%; } .meas { order: 1; width: 100%; }
}
@media (max-width: 640px) { .lock-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── list pages ───────────────────────────────────────────────────────── */
.wrap.wide { max-width: 1440px; padding: 0 40px; }
.pg-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.kpis > div { padding: 20px 22px; border-left: 1px solid var(--line); min-width: 0; }
.kpis > div:first-child { border-left: 0; }
.kpis .k { font-size: 12.5px; color: var(--muted); font-weight: 550; white-space: nowrap; }
.kpis .v { font-family: var(--mono); font-size: 26px; font-weight: 520; letter-spacing: -.025em; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis .s { font-size: 12.5px; color: var(--faint); margin-top: 4px; font-family: var(--mono); min-height: 22px; }
.tb-bar { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.tb-note { font-size: 12.5px; color: var(--faint); }
.tbl .sm { font-size: 12px; color: var(--faint); }
.tbl td.up { color: var(--up); } .tbl td.dn { color: var(--down); }
.tbl td .btn-sm { font-family: var(--sans); }
.cc { display: inline-flex; align-items: center; gap: 12px; }
.cc .coin-av { width: 32px; height: 32px; }
.cc b { display: block; font-weight: 640; font-size: 15px; }
.cc small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.cc:hover b { text-decoration: underline; }
.mk td { padding: 14px 20px; }
.empty-card { margin-top: 28px; padding: 28px; border-radius: var(--r-lg); border: 1px dashed var(--line-3); background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.empty-card b { font-size: 17px; font-weight: 640; } .empty-card span { color: var(--muted); font-size: 15px; max-width: 70ch; }
.sub-h { font-size: 18px; font-weight: 640; letter-spacing: -.01em; margin: 40px 0 0; }
.coin-av { position: relative; }
.coin-av > img { position: absolute; inset: 0; }
@media (max-width: 1080px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis > div:nth-child(3) { border-left: 0; } .kpis > div:nth-child(n+3) { border-top: 1px solid var(--line); } .wrap.wide { padding: 0 24px; } }
@media (max-width: 640px) { .wrap.wide { padding: 0 14px; } .kpis .v { font-size: 20px; } .kpis > div { padding: 14px 16px; } }

/* ── coin page ────────────────────────────────────────────────────────── */
.coin-hd { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.coin-av.big { width: 64px; height: 64px; font-size: 18px; }
.coin-hd .grow { flex: 1; min-width: 220px; }
.coin-hd h1 { font-size: 40px; letter-spacing: -.03em; font-weight: 640; font-stretch: 88%; margin: 0; line-height: 1.05; }
.c-sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.c-act { display: flex; gap: 10px; }
.kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; margin-top: 20px; align-items: start; }
.side-cards { display: grid; gap: 20px; }
.card.pad { padding: 22px 24px; border-radius: var(--r-xl); }
.rc-state { margin-top: 12px; }
.rc-p { font-size: 14px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.card .btn-sm { margin-top: 14px; }
.own { margin-top: 12px; display: grid; }
.own-r { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.own-r .num { font-size: 13px; color: var(--muted); } .own-r b { color: var(--sol-2); font-weight: 600; font-size: 14px; min-width: 64px; text-align: right; }
.own .sm, .card .sm { font-size: 13px; color: var(--faint); }
td.emp { text-align: left !important; font-family: var(--sans) !important; color: var(--muted); font-size: 14.5px !important; padding: 22px 20px !important; }
td.emp a { color: var(--ink); font-weight: 620; text-decoration: underline; }
@media (max-width: 1280px) { .kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpis-6 > div:nth-child(4) { border-left: 0; } .kpis-6 > div:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 1080px) { .coin-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .kpis-6 { grid-template-columns: 1fr 1fr; } .kpis-6 > div { border-left: 1px solid var(--line) !important; border-top: 1px solid var(--line); } .kpis-6 > div:nth-child(odd) { border-left: 0 !important; } .kpis-6 > div:nth-child(-n+2) { border-top: 0; } .coin-hd h1 { font-size: 30px; } .coin-av.big { width: 48px; height: 48px; } .c-act { width: 100%; } .c-act .btn { flex: 1; } }

/* ── portfolio ────────────────────────────────────────────────────────── */
.pf-off { margin-top: 32px; padding: 48px 32px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pf-off b { font-size: 20px; font-weight: 640; letter-spacing: -.01em; } .pf-off span { color: var(--muted); } .pf-off .btn { margin-top: 12px; }
.kpis .v.sol, .st .v.sol { color: var(--sol-2); }
.stakes { display: grid; gap: 16px; margin-top: 24px; }
.st { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; scroll-margin-top: 90px; }
.st-h { display: flex; align-items: center; gap: 14px; padding: 18px 22px; flex-wrap: wrap; }
.st-h .coin-av { width: 40px; height: 40px; }
.st-h .grow { flex: 1; min-width: 200px; }
.st-h b { font-size: 17px; font-weight: 650; display: block; letter-spacing: -.01em; }
.st-h small { color: var(--muted); font-size: 13px; } .st-h small a { text-decoration: underline; }
.st-meter { height: 3px; background: var(--tok); display: flex; } .st-meter b { display: block; background: var(--sol); height: 100%; }
.st-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-grid > div { padding: 16px 22px; border-left: 1px solid var(--line); min-width: 0; }
.st-grid > div:first-child { border-left: 0; }
.st-grid .k { font-size: 12px; color: var(--muted); font-weight: 550; }
.st-grid .v { font-family: var(--mono); font-size: 18px; font-weight: 530; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.015em; }
.st-grid .s { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-act { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--bg); }
.st-wd { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-wd .lab { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-right: 4px; }
.st-wd .chip { height: 30px; padding: 0 10px; font-size: 13px; }
.chip[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) { .st-grid { grid-template-columns: 1fr 1fr; } .st-grid > div:nth-child(3) { border-left: 0; } .st-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); } .st-grid > div { padding: 12px 14px; } .st-h, .st-act { padding-left: 14px; padding-right: 14px; } }

/* ── lock + dev ───────────────────────────────────────────────────────── */
.lk-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.back { color: var(--muted); font-size: 14px; font-weight: 550; } .back:hover { color: var(--ink); }
.lk-share { display: flex; gap: 8px; }
.lk-hero { margin-top: 20px; }
.lk-coin { display: flex; align-items: center; gap: 18px; }
.lk-coin h1 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -.03em; font-weight: 640; font-stretch: 88%; margin: 4px 0 0; line-height: 1.05; }
.lk-coin .eyebrow a { text-decoration: underline; }
.lk-line { font-size: 20px; color: var(--ink-2); margin: 18px 0 0; max-width: 60ch; line-height: 1.45; }
.vest { margin-top: 18px; }
.vest:empty { display: none; }
.vest-h { display: flex; justify-content: space-between; font-size: 14px; } .vest-h span { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.vest-bar { position: relative; height: 8px; border-radius: 6px; background: var(--sunk-2); margin-top: 10px; overflow: visible; }
.vest-bar b { display: block; height: 100%; border-radius: 6px; background: var(--tok); }
.vest-bar i { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--ink); }
.vest-l { position: relative; display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-top: 6px; font-family: var(--mono); height: 16px; }
.vest-l span[style] { position: absolute; transform: translateX(-50%); }
.facts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.facts li { font-size: 14px; color: var(--ink-2); line-height: 1.5; padding-left: 16px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--tok); }
.chain { margin-top: 10px; } .ch-r { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); } .ch-r a, .ch-r .num { color: var(--ink); font-size: 13px; } .ch-r a:hover { color: var(--sol-2); }
.dev-tabs { margin-top: 28px; }
.dev-grid { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 32px; margin-top: 20px; align-items: start; }
.dev-form { position: static; }
.dev-side { display: grid; gap: 20px; }
.f-h { font-size: 24px; letter-spacing: -.02em; font-weight: 640; margin: 0; }
.f-p { color: var(--muted); font-size: 15px; margin: 8px 0 0; line-height: 1.5; }
.dur { display: inline-flex; align-items: center; height: 50px; border: 1px solid var(--line-2); border-radius: 13px; background: var(--bg); overflow: hidden; }
.dur.sm { height: 38px; border-radius: 10px; }
.dur input { width: 90px; border: 0; background: none; outline: none; font: 520 18px var(--mono); padding: 0 14px; }
.dur.sm input { width: 56px; font-size: 15px; padding: 0 10px; }
.dur select { height: 100%; border: 0; border-left: 1px solid var(--line); background: var(--surface); font: 550 14.5px var(--sans); padding: 0 12px; outline: none; }
.tick { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 550; color: var(--ink-2); cursor: pointer; margin-top: 16px; }
.tick input { width: 18px; height: 18px; accent-color: var(--ink); }
.vest-f { margin-top: 12px; } .vest-f label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.radio { display: grid; gap: 8px; }
.radio label { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 13px; cursor: pointer; background: var(--surface); }
.radio label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.radio input { margin-top: 3px; accent-color: var(--ink); }
.radio b { display: block; font-size: 14.5px; } .radio small { color: var(--muted); font-size: 13px; }
.range { width: 100%; accent-color: var(--sol); height: 28px; }
.perm { margin-top: 22px; padding: 16px 18px; border-radius: 14px;  font-size: 14px; line-height: 1.5; }

@media (max-width: 1080px) { .dev-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .lk-line { font-size: 17px; } .lk-share .btn { padding: 0 10px; } }

/* ── stats + docs + 404 ───────────────────────────────────────────────── */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.lb { margin-top: 10px; }
.docs-in { max-width: 1240px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
.toc { position: sticky; top: calc(var(--hdr) + 28px); align-self: start; display: grid; gap: 2px; padding-top: 8px; }
.toc a { font-size: 14px; color: var(--muted); padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); background: var(--sunk); }
.toc a.is-on { color: var(--ink); font-weight: 600; border-left-color: var(--sol); border-radius: 0 8px 8px 0; }
.doc { max-width: 780px; min-width: 0; }
.doc h1 { font-size: 48px; letter-spacing: -.035em; font-weight: 640; font-stretch: 86%; margin: 0; line-height: 1.04; }
.doc .lead { font-size: 20px; color: var(--ink-2); line-height: 1.5; margin: 18px 0 0; }
.doc h2 { font-size: 26px; letter-spacing: -.022em; font-weight: 630; margin: 64px 0 0; scroll-margin-top: 90px; font-stretch: 92%; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.doc p { margin: 14px 0 0; }
.doc b { color: var(--ink); font-weight: 620; }
.doc-ol, .doc-ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.doc .ctrls { margin-top: 22px; }
.doc .tbl td, .doc .tbl th { padding: 13px 16px; }
.doc-chain { margin-top: 16px; padding: 4px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.doc-chain .ch-r:first-child { border-top: 0; }
.nf { text-align: center; padding: 140px 20px; }
.nf h1 { font-size: 56px; letter-spacing: -.035em; margin: 0; font-weight: 640; font-stretch: 86%; }
.nf p { color: var(--muted); font-size: 18px; margin: 12px 0 28px; }
@media (max-width: 1080px) { .two { grid-template-columns: 1fr; } .docs-in { grid-template-columns: minmax(0, 1fr); padding: 0 24px; } .toc { display: none; } }
@media (max-width: 640px) { .docs-in { padding: 0 16px; } .doc h1 { font-size: 36px; } .doc h2 { font-size: 22px; margin-top: 48px; } .doc .lead { font-size: 18px; } }
.wp-row .wp-wc { background: var(--sunk); }
.pcts { visibility: hidden; }

/* ── capture mode (launch clip) ───────────────────────────────────────── */
html.capture { scrollbar-width: none; } html.capture ::-webkit-scrollbar { display: none; }
html.capture, html.capture * { cursor: none !important; }
.cap-cur { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; transition: opacity .3s; will-change: transform; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.cap-cur svg { transition: transform .1s; transform-origin: 5px 3px; }
.cap-cur.is-down svg { transform: scale(.82); }
.cap-end { position: fixed; inset: 0; z-index: 190; background: var(--bg); display: grid; place-items: center; opacity: 0; transition: opacity .6s ease; }
.cap-end.is-on { opacity: 1; }
.cap-end-in { text-align: center; display: grid; justify-items: center; gap: 18px; }
.cap-end-in b { font-size: 64px; letter-spacing: -.035em; font-weight: 650; font-stretch: 86%; line-height: 1; }
.cap-end-in p { margin: 0; font-size: 24px; color: var(--ink-2); }
.cap-end-in span { font-family: var(--mono); font-size: 18px; color: var(--muted); }
@media (max-width: 640px) { .dev-tabs { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; } .dev-tabs::-webkit-scrollbar { display: none; } .dev-tabs button { flex: none; } }
.doc .tbl td, .doc .tbl th { padding: 12px 12px; } .doc .tbl td { font-size: 13.5px; } .doc .tbl th { font-size: 12px; }

.fund-btn { border: 0; background: none; padding: 0; font: 600 12.5px var(--sans); color: var(--sol-2); cursor: pointer; text-decoration: underline; }
.vest-bar { overflow: hidden; } .vest-bar s { position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--sunk-2), var(--sunk-2) 4px, rgba(229,251,255,.05) 4px, rgba(229,251,255,.05) 8px); border-radius: 6px 0 0 6px; }
.vest-bar b { position: absolute; top: 0; bottom: 0; border-radius: 0; }
.vest-bar i { position: absolute; top: 0; width: 2px; height: 100%; } .vest-bar i.cl { background: var(--ink); } .vest-bar i.nw { background: var(--sol); width: 3px; }
.vest-l .m { position: absolute; transform: translateX(-50%); color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.vest-h { flex-wrap: wrap; gap: 6px 16px; }
.cpanel .panel-top .t2 { white-space: normal; }
@media (max-width: 640px) { .kpis-6 .v { white-space: normal; } .kpis .s { white-space: normal; } }
.vest-h span { font-family: var(--sans) !important; font-size: 14px !important; color: var(--ink-2) !important; }
@media (max-width: 640px) { .vest-l span:first-child { visibility: hidden; } .vest-bar { height: 10px; } }


/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   ULTRAMARINE LEDGER (2026-11-26): the look. Everything above is layout; this block sets palette, type and surfaces.
   Yellow = SOL gleaned (the big number, SOL amounts, sold rows); pale lavender = tokens waiting; white = ink; pink = warnings.
   ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16.5px; line-height: 1.55; font-stretch: normal; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.num, .mono { font-family: var(--f-mono); font-feature-settings: "tnum" 1, "zero" 1; letter-spacing: 0; }
b, strong { font-weight: 700; }

/* headlines: Zodiak, heavy, tight (caps 0.70 em: line-height >= 1 keeps descenders clear) */
.hero h1, .sec-h, .pg-h h1, .coin-hd h1, .lk-coin h1, .doc h1, .doc h2, .cta-band h2, .nf h1, .cap-end-in b, .step h3, .sub-h,
.pf-off b, .empty-card b, .meas-line, .lk-line, .out h4, .rw h4, .tiers-h b, .lockprev .lp-h b {
  font-family: var(--f-display); font-weight: var(--d-w); font-stretch: normal; letter-spacing: var(--d-ls); }
.sec-h { font-size: clamp(34px, 4.3vw, 66px); line-height: 1.02; max-width: 20ch; margin-top: 18px; }
.pg-h h1, .coin-hd h1 { font-size: clamp(36px, 3.6vw, 56px); line-height: 1.02; }
.lk-coin h1 { line-height: 1.04; }
.doc h1 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.02; } .doc h2 { font-size: 30px; line-height: 1.08; }
.step h3 { font-size: 24px; line-height: 1.1; letter-spacing: -.02em; }
.out h4, .rw h4 { font-size: 20px; line-height: 1.15; letter-spacing: -.015em; }
.sub-h { font-size: 26px; line-height: 1.1; } .meas-line { font-size: 22px; font-weight: 700; } .lk-line { font-size: 22px; font-weight: 400; color: var(--ink-2); letter-spacing: -.01em; }
.tiers-h b, .lockprev .lp-h b { font-size: 20px; letter-spacing: -.015em; }
.sec-p { color: var(--muted); font-size: 18.5px; }

/* every figure in the mono, tabular, slashed zero */
.strip .v, .kpis .v, .out .big, .meas-grid .v, .pos .v, .st-grid .v, .tier .b, .clock .v, .amt-box input, .dur input, .xin input, .tbl td, .lockprev .kv .v,
.fl-r, .fl-sub, .cr .m, .cr .n div, .lg-row .t, .ca-pill .ca-addr, .ftr-base .prog, .cc small, .meas-cell, .vest-l, .chip .b, .pre .x, .own-r .num, .ch-r .num, .step .n {
  font-family: var(--f-mono); font-feature-settings: "tnum" 1, "zero" 1; letter-spacing: 0; }
.kpis .v { font-size: 27px; font-weight: 500; } .kpis .v.sol, .st .v.sol { color: var(--accent); }
.out .big { font-family: var(--f-display); font-weight: var(--d-w); font-size: clamp(44px, 4.2vw, 64px); letter-spacing: -.03em; line-height: 1; }
.out .big small { font-family: var(--f-body); font-weight: 400; }
.meas-grid .v { font-size: 21px; font-weight: 500; } .st-grid .v { font-size: 19px; font-weight: 500; }
.amt-box input { font-size: 26px; font-weight: 500; }
.tbl td { font-size: 15px; } .tbl td:first-child { font-family: var(--f-body); }
.tbl th { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); background: transparent; }

/* section labels: the builder's mono kickers, numbered on the landing */
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
main { counter-reset: sec; }
main > section.sec { counter-increment: sec; }
main > section.sec .kicker::before { content: counter(sec, decimal-leading-zero); width: auto; height: auto; background: none; opacity: 1; color: var(--accent); letter-spacing: .04em; }
.eyebrow { font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.eyebrow .dot { background: var(--accent); box-shadow: 0 0 0 0 rgba(126,240,255,.6); animation: acPulse 2s infinite; }
.eyebrow .eb-sep { margin: 0 4px; color: var(--faint); } .eyebrow .eb-tick { color: var(--accent); }
@keyframes acPulse { 0% { box-shadow: 0 0 0 0 rgba(126,240,255,.55); } 70% { box-shadow: 0 0 0 8px rgba(126,240,255,0); } 100% { box-shadow: 0 0 0 0 rgba(126,240,255,0); } }

/* header: the builder's classic floating pill (opaque enough to read over the hero; no blur over WebGL) */
.hdr { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: min(1520px, calc(100% - 28px)); height: 60px; border-radius: 999px;
  background: rgba(7,60,80,.94); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -26px rgba(1,14,22,.8); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hdr.is-scrolled { background: rgba(6,52,70,.97); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -22px rgba(1,14,22,.9); }
.hdr-in { max-width: none; padding: 0 8px 0 22px; gap: 20px; }
.brand { font-family: var(--f-display); font-weight: var(--d-w); font-size: 23px; letter-spacing: -.03em; gap: 10px; }
.mark { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.brand-name { min-width: 0; }
.brand-tick { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2);
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; color: var(--accent); }
.nav { margin-left: 4px; }
.nav a { padding: 8px 13px; border-radius: 999px; color: var(--ink2); font-size: 14.5px; font-weight: 400; }
.nav a:hover { background: rgba(229,251,255,.08); color: var(--ink); }
.nav a.is-on { background: rgba(229,251,255,.13); color: var(--ink); box-shadow: none; }
.hdr-r { gap: 8px; }
.net-pill { height: 30px; border-radius: 999px; background: transparent; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink2); font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.net-pill::before { background: var(--accent2); }
.ca-pill { height: 40px; border: 0; border-radius: 999px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.ca-pill .ca-lab { color: var(--faint); border-right-color: var(--line); font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; padding-left: 16px; }
.ca-pill .ca-addr { color: var(--ink); } .ca-pill .ca-copy { color: var(--accent); font-family: var(--f-body); }
.ca-pill .ca-link { border-left-color: var(--line); color: var(--ink2); } .ca-pill .ca-link:last-child { padding-right: 16px; }
.ca-pill .ca-link:hover, .ca-pill .ca-addr:hover { background: rgba(229,251,255,.07); }
.x-btn, .burger { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line2); color: var(--ink); }
.x-btn:hover { background: rgba(229,251,255,.08); }
.burger i, .burger i::before, .burger i::after { background: var(--ink); }
#wallet-btn { height: 44px; padding: 0 20px; }
@media (max-width: 1560px) { .ca-pill .ca-link { display: none; } .nav a { padding: 8px 10px; } }
@media (max-width: 1360px) { .net-pill { display: none; } .hdr .brand-tick { display: none; } }
@media (max-width: 1080px) {
  .hdr-in { padding: 0 8px 0 18px; }
  .mnav.is-open { top: 0; padding: calc(var(--hdr) + 6px) 26px 30px; background: var(--bg); }
  .mnav a { font-family: var(--f-display); font-weight: var(--d-w); font-size: 30px; letter-spacing: -.025em; border-bottom-color: var(--line); padding: 14px 4px; }
}
@media (max-width: 640px) { :root { --hdr: 76px; } .hdr { top: 10px; height: 54px; width: calc(100% - 20px); } .hdr-in { padding: 0 6px 0 16px; gap: 10px; } #wallet-btn { height: 40px; padding: 0 14px; font-size: 13.5px; } .brand { font-size: 21px; } }
.hdr-r .btn-sm { height: 44px; }

/* buttons: the builder's yellow pill + an outline pill */
.btn { height: 50px; padding: 0 24px; border-radius: 999px; font-family: var(--f-body); font-weight: 700; font-size: 15.5px; letter-spacing: 0; border: 0; transition: transform .5s var(--ease), background .3s, color .3s, box-shadow .3s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 999px; }
.btn-ink { background: var(--accent); color: var(--accent-ink); box-shadow: 0 14px 30px -18px rgba(126,240,255,.75); }
.btn-ink:hover { background: #a6f5ff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.btn-ghost:hover { background: rgba(229,251,255,.07); box-shadow: inset 0 0 0 1px var(--ink2); }
.btn-sol { background: var(--accent); color: var(--accent-ink); } .btn-sol:hover { background: #a6f5ff; }
.btn .arr { transition: transform .5s var(--ease); } .btn:hover .arr { transform: translateX(4px); }
.btn[disabled]:hover { transform: none; }
.chip { height: 36px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink2); font-weight: 400; }
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.chip.is-on, .lock-chips .chip.flex-chip.is-on { background: var(--ink); color: var(--bg); box-shadow: none; font-weight: 700; }
.tag { height: 22px; border-radius: 999px; padding: 0 9px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .03em; background: rgba(229,251,255,.1); color: var(--ink2); }
.tag-sim { background: rgba(255,179,122,.16); color: #ffd3b0; }
.tag-tok { background: var(--tok-soft); color: var(--tok-2); }
.tag-sol { background: var(--sol-soft); color: var(--accent); }
.seg { background: var(--well); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 3px; }
.seg button { border-radius: 999px; color: var(--ink2); font-weight: 400; padding: 0 13px; }
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: var(--ink); color: var(--bg); box-shadow: none; font-weight: 700; }
.legend { color: var(--muted); } .legend .lt i { background: var(--tok); } .legend .ls i { background: var(--accent); }

/* surfaces: lighter-blue sheets with a soft inner line, no hard borders */
.panel, .card, .step, .out, .rw, .tiers, .tbl-wrap, .kpis, .st, .stk-form, .meas, .ledger, .empty-card, .pf-off, .lockprev, .doc-chain, .coin-res, .wp-box, .wp-menu {
  background: var(--bg2); border: 0; box-shadow: inset 0 0 0 1px rgba(229,251,255,.09); }
.panel, .stk-form, .lockprev, .coin-res, .wp-box, .wp-menu { box-shadow: inset 0 0 0 1px rgba(229,251,255,.1), var(--sh-2); }
.empty-card { box-shadow: inset 0 0 0 1px var(--line-2); background: transparent; }
.panel-top, .panel-foot { border-color: var(--line); }
.kpis > div, .st-grid > div, .meas-grid > div, .pos-c { border-color: var(--line); }
section.alt { background: #053244; border: 0; }
section.alt .step, section.alt .out, section.alt .rw, section.alt .tiers, section.alt .tbl-wrap, section.alt .ledger, section.alt .lockprev { background: var(--bg); }
section.sec { padding: clamp(96px, 11vw, 160px) 0; } section.sec.tight { padding: clamp(72px, 8vw, 110px) 0; }
.step { padding: 30px; border-radius: var(--r2); } .step .n { font-size: 13px; color: var(--accent); }
.out, .rw, .tiers { border-radius: var(--r2); }
.rw .ic { background: var(--sol-soft); border-radius: 50%; }
.tier .bar { border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), rgba(126,240,255,.18)); }
.tier:first-child .bar { background: rgba(229,251,255,.16); }
.tier .l { color: var(--muted); }
.ticks li { color: var(--ink-2); }
.ticks li::before { background: var(--sol-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.6' fill='none' stroke='%237ef0ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.lockprev .kv { border-top-color: var(--line); } .lockprev .kv div { border-bottom-color: var(--line); }
.coin-av { background: rgba(229,251,255,.12); color: var(--ink2); }

/* tables */
.tbl th { border-bottom-color: var(--line); }
.tbl td { border-bottom-color: var(--line); }
.tbl .psub, .tbl .sm { color: var(--faint); }
.tbl .hl { color: var(--tok-2); } .tbl .sl { color: var(--accent); }
.tbl td.up { color: var(--up); } .tbl td.dn { color: var(--down); }
.tbl-note, .tb-note { color: var(--faint); }
.fee-tbl td:nth-child(2), .fee-tbl th:nth-child(2) { color: var(--accent); }
.fee-tbl tr td:first-child { color: var(--muted); }
td.emp { color: var(--muted); } td.emp a { color: var(--ink); }

/* forms: sunk wells, a yellow ring on focus */
.search, .amt-box, .xin, .coin-sel, .pre, .pcts button, .wp-row, .wp-x, .dur { border: 0; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; color: var(--ink); }
.search:focus-within, .amt-box:focus-within { background: var(--well); box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px rgba(126,240,255,.14); }
.search input, .amt-box input, .xin input { color: var(--ink); }
.search input::placeholder { color: var(--faint); }
.search svg { color: var(--faint); }
.coin-sel:hover, .pre:hover, .wp-row:hover { box-shadow: inset 0 0 0 1px var(--line2); background: var(--well); }
.pre.is-on { box-shadow: inset 0 0 0 1.5px var(--accent); }
.pre .x { color: var(--tok-2); } .pre p, .coin-sel small, .coin-sel .chg { color: var(--muted); }
.pcts button { color: var(--ink2); height: 28px; border-radius: 999px; }
.fl-l { color: var(--ink-2); font-weight: 700; } .fl-r, .fl-sub, .fl-help, .go-note { color: var(--muted); }
.go-note.bad { color: var(--accent2); }
.sum { border-top-color: var(--line); } .sum .r { border-bottom-color: var(--line); } .sum .r .k { color: var(--muted); }
.sum .r.warn .k { color: #ffd3b0; }
.cr:hover, .cr.is-act { background: rgba(229,251,255,.08); }
.cr .n span, .cr-empty { color: var(--muted); } .cr .n div, .cr .m div, .cr-h { color: var(--faint); }
.btn-big { height: 56px; border-radius: 999px; font-size: 16.5px; }
.meas-cell, .meas-own, .meas-grid .k, .kpis .k, .st-grid .k, .pos .k, .strip .k { color: var(--muted); }
.kpis .s, .st-grid .s, .pos .s, .meas-grid .s { color: var(--faint); }
.done-box { background: var(--sol-soft); color: var(--ink); border: 0; box-shadow: inset 0 0 0 1px rgba(126,240,255,.4); border-radius: 14px; }
.perm { background: rgba(255,179,122,.12); color: var(--ink); border: 0; box-shadow: inset 0 0 0 1px rgba(255,179,122,.36); border-radius: 14px; }
.perm b { color: #ffd3b0; }
.fund-btn { color: var(--accent); }
.vest-bar { background: rgba(229,251,255,.12); }
.vest-bar b { background: var(--tok); }
.vest-bar s { background: repeating-linear-gradient(135deg, rgba(229,251,255,.14), rgba(229,251,255,.14) 4px, rgba(229,251,255,.05) 4px, rgba(229,251,255,.05) 8px); }
.vest-bar i.cl { background: var(--ink); } .vest-bar i.nw { background: var(--accent); }
.vest-h span, .vest-l .m { color: var(--ink-2) !important; }
.back { color: var(--muted); } .back:hover { color: var(--ink); }
.c-sub, .rc-p, .own .sm, .card .sm, .pg-h p, .st-h small { color: var(--muted); }
.own-r { border-top-color: var(--line); } .own-r b { color: var(--accent); } .own-r .num { color: var(--muted); }
.st-meter { background: var(--tok); } .st-meter b { background: var(--accent); }
.st-act { background: rgba(1,18,28,.18); border-top-color: var(--line); }
.st-wd .lab { color: var(--muted); }
.pf-off span, .empty-card span { color: var(--muted); }
.pos-meter { background: var(--tok); } .pos-meter b { background: var(--accent); }
.pos-fee .v { color: var(--accent); } .pos-end.is-done .v { color: var(--tok-2); }

/* ledger rows */
.ledger { border-radius: var(--r2); }
.lg-row { border-bottom-color: var(--line); }
.lg-row .t { color: var(--faint); } .lg-row .txt { color: var(--ink-2); } .lg-row .txt b { color: var(--ink); }
.lg-row .lk a { color: var(--accent); }
.lg-kind { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .03em; border-radius: 999px; background: rgba(229,251,255,.1); color: var(--ink2); text-transform: none; }
.lg-kind.k-stake, .lg-kind.k-place, .lg-kind.k-escrow, .lg-kind.k-devlock, .lg-kind.k-lock { background: var(--tok-soft); color: var(--tok-2); }
.lg-kind.k-collect, .lg-kind.k-distribute, .lg-kind.k-deposit, .lg-kind.k-sync, .lg-kind.k-claim, .lg-kind.k-cut, .lg-kind.k-burn { background: var(--sol-soft); color: var(--accent); }
.lg-empty { color: var(--muted); }

/* docs */
.toc a { color: var(--muted); border-radius: 999px; border-left: 0; }
.toc a:hover { background: rgba(229,251,255,.07); color: var(--ink); }
.toc a.is-on { color: var(--ink); background: rgba(229,251,255,.12); border-radius: 999px; font-weight: 700; }
.toc a.is-on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.doc .lead { color: var(--ink-2); } .doc p, .doc li { color: var(--ink-2); } .doc b { color: var(--ink); }
.toc { top: calc(var(--hdr) + 28px); }

/* app pages sit below the floating header */
.page { padding-top: calc(var(--hdr) + 36px); }
@media (max-width: 640px) { .page { padding-top: calc(var(--hdr) + 18px); } }
.nf { padding-top: calc(var(--hdr) + 120px); }
.nf h1 { font-family: var(--f-display); font-weight: var(--d-w); font-size: clamp(56px, 9vw, 140px); line-height: 1; letter-spacing: -.035em; }
.nf p { color: var(--muted); }

/* the closing band: the builder's big centred line */
.cta-band { position: relative; padding: clamp(110px, 13vw, 190px) 0; text-align: center; background: var(--bg); color: var(--ink); overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 110%, rgba(126,240,255,.16), transparent 70%); }
.cta-band h2 { font-size: clamp(48px, 8vw, 136px); line-height: .98; max-width: 13ch; margin: 0 auto; color: var(--ink); }
.cta-band p { color: var(--muted); font-size: 18.5px; margin-top: 22px; }
.cta-band .hero-cta { margin-top: 40px; }

/* footer: columns + the name huge across the width (the builder's classic foot) */
.ftr { background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); padding: 64px 0 34px; }
.ftr-in { max-width: 1520px; }
.ftr h5 { color: var(--ink); font-family: var(--f-mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; }
.ftr a { color: var(--muted); } .ftr a:hover { color: var(--ink); }
.ftr .fbrand { color: var(--ink); font-family: var(--f-display); font-weight: var(--d-w); font-size: 24px; letter-spacing: -.03em; }
.ftr .fbrand .mark { width: 30px; height: 30px; }
.ftr .brand-tick { margin-left: 8px; }
.ftr .fline { color: var(--muted); }
.ftr-big { max-width: 1520px; margin: 56px auto 0; padding: 0 32px; font-family: var(--f-display); font-weight: var(--d-w); letter-spacing: -.045em;
  font-size: clamp(40px, 10vw, 170px); line-height: 1.05; color: var(--ink); white-space: nowrap; overflow: hidden; padding-bottom: .06em; }
.ftr-base { max-width: 1520px; border-top-color: var(--line); color: var(--faint); margin-top: 26px; }
.ftr-base .prog { color: var(--faint); }
@media (max-width: 640px) { .ftr-big { padding: 0 18px; margin-top: 40px; } }

/* overlays */
#toast { background: var(--ink); color: var(--bg); border-radius: 999px; font-weight: 700; padding: 12px 18px; }
#toast.bad { background: var(--accent2); color: #2a1404; }
.wp-scrim { background: rgba(1,16,25,.55); }
.wp-box { border-radius: 22px; } .wp-x { color: var(--ink); }
.wp-row i, .wp-foot { color: var(--muted); }
#wallet-btn.is-conn { background: transparent; color: var(--ink); border: 0; box-shadow: inset 0 0 0 1px var(--line2); }
.wp-menu .wp-me { border-bottom-color: var(--line); }
.wp-menu a:hover, .wp-menu button:hover { background: rgba(229,251,255,.08); }
.wp-row .wp-ph, .wp-row .wp-wc { background: rgba(229,251,255,.12); }
.cap-end { background: var(--bg); }
.cap-end-in b { font-family: var(--f-display); font-weight: var(--d-w); }
.cap-end-in span { color: var(--muted); }
.hero::before { display: none; }
.mark.is-hidden { display: none !important; }


/* ── THE FIRST SCREEN: gleaned today (SPEC §0; js/today.js) over the contour hero ─────────────────────────────────────── */
.today { position: relative; display: block; min-height: 100svh; padding: calc(var(--hdr) + clamp(28px, 6vh, 72px)) 0 clamp(70px, 9vw, 120px); overflow: hidden; isolation: isolate; }
.today .hero-visual { position: absolute; left: 0; right: 0; top: 0; height: max(100svh, 680px); z-index: -2; }
.today .hero-visual canvas { width: 100% !important; height: 100% !important; }
.today .hero-visual::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(to bottom, rgba(6,56,76,0), var(--bg)); pointer-events: none; }
.today .hero-visual.no-gl { background: radial-gradient(60% 60% at 50% 40%, rgba(126,240,255,.14), transparent 70%), var(--bg); }
.td-veil { position: absolute; left: 0; right: 0; top: 0; height: max(100svh, 680px); z-index: -1; pointer-events: none;
  background: radial-gradient(46% 40% at 50% 44%, rgba(5,50,68,.82), rgba(5,50,68,.4) 60%, rgba(5,50,68,0) 100%); }
.today-in { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.today h1 { font-family: var(--f-display); font-weight: var(--d-w); font-size: clamp(30px, 3.1vw, 50px); line-height: 1.08; letter-spacing: -.03em; margin: 20px auto 0; max-width: 24ch; }
.today h1 .soft { color: var(--ink2); }
.td-num { margin-top: clamp(26px, 4.4vh, 48px); width: 100%; display: flex; flex-direction: column; align-items: center; }
.td-k { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.td-kl { font: 500 12.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.td-day { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; color: var(--ink2); white-space: nowrap; }
.td-kind { height: 22px; }
.td-big { display: flex; align-items: baseline; justify-content: center; gap: .14em; margin-top: 8px; white-space: nowrap; max-width: 100%;
  font-size: min(clamp(74px, 11.6vw, 212px), calc((100vw - 48px) / (var(--len, 7) * .66 + .9))); }   /* --len = characters shown (js/today.js): a longer number shrinks to fit */
.td-v { font-family: var(--f-display); font-weight: var(--d-w); font-size: 1em; line-height: 1.1; letter-spacing: -.02em; color: var(--accent); }
.td-v .dr { height: 1.1em; }
.td-u { font-family: var(--f-display); font-weight: 700; font-size: .25em; letter-spacing: -.01em; color: var(--ink); }
.td-split { margin-top: 6px; min-height: 1.5em; font-size: 16px; color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-split b { color: var(--accent); font-weight: 500; }
.td-sub { margin-top: 4px; font-size: 15.5px; color: var(--ink-2); max-width: 100%; }
.td-src { margin: 18px auto 0; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 62ch; min-height: 1.5em; }
.td-model { margin: 4px auto 0; font-size: 13px; color: var(--faint); max-width: 70ch; min-height: 1.5em; text-wrap: balance; }
.td-src, .td-sub { text-wrap: balance; }
.today .hero-cta { margin-top: 30px; justify-content: center; }

/* the pools field: a deep plate under the number, the busiest pool on top, one row per pool */
.field-wrap { position: relative; z-index: 1; width: 100%; max-width: 1300px; margin: clamp(44px, 7vh, 80px) auto 0; padding: 0 32px; }
.field { --fd-cols: minmax(0, 1.25fr) 156px 82px minmax(0, 1.55fr) 108px; --fd-a: rgba(229,251,255,.62);
  background: rgba(3,40,58,.94); color: var(--ink); border-radius: var(--r2); overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(229,251,255,.12), 0 40px 90px -40px rgba(1,14,22,.9); }
.fd-best { padding: 20px 24px 6px; }
.fb-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fb-top .grow { flex: 1; min-width: 0; }
.field .coin-av { background: rgba(229,251,255,.1); color: var(--ink2); }
.fb-av { width: 36px; height: 36px; }
.fb-k { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fd-a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-k b { color: var(--ink); letter-spacing: -.01em; text-transform: none; font-family: var(--f-display); font-size: 18px; font-weight: var(--d-w); }
.fb-r { font-size: 13.5px; color: var(--fd-a); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-h { font-family: var(--f-mono); font-size: 14px; color: var(--accent); white-space: nowrap; flex: none; }
.fd-chart { position: relative; height: clamp(170px, 24vh, 250px); margin-top: 8px; }
.fd-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fd-best.is-empty .fb-top, .fd-best.is-empty .fd-chart { visibility: hidden; }
.fd-head, .fd-row { display: grid; grid-template-columns: var(--fd-cols); gap: 16px; align-items: center; padding: 0 24px; }
.fd-head { padding-top: 11px; padding-bottom: 9px; border-top: 1px solid var(--deep-line); font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(229,251,255,.5); white-space: nowrap; text-align: left; }
.fd-head .fd-ruler { display: flex; justify-content: space-between; height: auto; } .fd-ruler b { font-weight: 500; }
.fd-head .fd-size, .fd-head .fd-sol { text-align: right; }
.fd-row { height: 48px; border-top: 1px solid var(--deep-line); color: var(--ink); text-align: left; transition: background .2s; }
a.fd-row:hover { background: rgba(229,251,255,.05); }
.fd-coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fd-coin .coin-av { width: 26px; height: 26px; font-size: 10px; }
.fd-coin > span:last-child { min-width: 0; display: flex; flex-direction: column; line-height: 1.18; }
.fd-coin b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-coin small { font-size: 12px; color: rgba(229,251,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-pre { min-width: 0; overflow: hidden; }
.field .tag-tok { background: rgba(159,211,223,.14); color: var(--tok-2); } .field .tag-sol { background: rgba(126,240,255,.18); color: var(--accent); }
.fd-size { text-align: right; font-size: 14px; color: rgba(229,251,255,.72); white-space: nowrap; }
.fd-strip { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; height: 26px; align-items: end; }
.fd-strip i { display: block; height: var(--h, 0); background: linear-gradient(180deg, #c2f8ff, var(--accent)); border-radius: 1px 1px 0 0; }
.fd-strip i.z { height: 2px; background: rgba(229,251,255,.18); }
.fd-strip i.f { height: 2px; background: repeating-linear-gradient(90deg, rgba(229,251,255,.16) 0 2px, transparent 2px 4px); }
.fd-row.is-empty .fd-strip i { height: 2px; background: rgba(229,251,255,.08); }
.fd-sol { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.12; white-space: nowrap; }
.fd-sol b { font-weight: 500; font-size: 16.5px; color: var(--accent); } .fd-sol small { font-size: 11.5px; color: rgba(229,251,255,.58); }
.fd-foot { display: flex; align-items: center; gap: 16px; padding: 13px 24px; border-top: 1px solid var(--deep-line); font-size: 13px; }
.fd-foot .legend { color: var(--fd-a); } .fd-foot .grow { flex: 1; }
.fd-foot a { color: var(--accent); font-weight: 700; white-space: nowrap; } .fd-foot a:hover { color: #c2f8ff; }
.fd-row.is-live { background: rgba(126,240,255,.07); box-shadow: inset 2px 0 0 var(--accent); }
a.fd-row.is-live:hover { background: rgba(126,240,255,.11); }
/* shown once, complete: live pieces stay hidden until the first answer (js adds .hv-ready; 3 s CSS fallback) */
@keyframes hvShow { to { visibility: visible; } }
html:not(.hv-ready) .today .td-v, html:not(.hv-ready) .today .td-u, html:not(.hv-ready) #td-day, html:not(.hv-ready) #td-sub, html:not(.hv-ready) #td-src,
html:not(.hv-ready) #td-model, html:not(.hv-ready) .fd-rows, html:not(.hv-ready) .fd-best, html:not(.hv-ready) #td-kind, html:not(.hv-ready) #td-split { visibility: hidden; animation: hvShow 0s 3s forwards; }
@media (max-width: 1440px) { .field { --fd-cols: minmax(0, 1.2fr) 140px 74px minmax(0, 1.45fr) 100px; } }
@media (max-width: 1180px) { .field { --fd-cols: minmax(0, 1.15fr) 0 0 minmax(0, 1.4fr) 96px; } .fd-pre, .fd-size { visibility: hidden; } .field .fd-head, .field .fd-row { column-gap: 14px; } }
@media (max-width: 760px) { .field { --fd-cols: minmax(0, 1fr) 0 0 minmax(0, 1.05fr) 84px; } .field .fd-head, .field .fd-row { column-gap: 10px; } }
@media (max-width: 640px) {
  .today { padding-top: calc(var(--hdr) + 22px); }
  .today-in, .field-wrap { padding: 0 14px; }
  .today h1 { font-size: 29px; }
  .td-big { font-size: min(clamp(54px, 15.5vw, 74px), calc((100vw - 32px) / (var(--len, 7) * .66 + .9))); }
  .td-split, .td-sub { white-space: normal; font-size: 14.5px; }
  .td-src { font-size: 13.5px; }
  .today .hero-cta .btn { flex: 1; padding: 0 14px; min-width: 0; }
  .fd-head, .fd-row, .fd-best, .fd-foot { padding-left: 14px; padding-right: 14px; }
  .fd-coin small { display: none; } .fd-sol b { font-size: 15px; } .fb-h { display: none; } .fd-foot .legend { display: none; }
}


/* ── inner pages: seasons, pools today, portfolio, live vs paper, coin card ── */
/* seasons */
.tbl.se td.se-rk { text-align: left; width: 72px; color: var(--sol-2); font-size: 17px; }
.tbl.se th:nth-child(2), .tbl.se td:nth-child(2) { text-align: left; }
.tbl.se .se-w { font-family: var(--mono); font-feature-settings: "tnum" 1; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.tbl.se .se-pools { font-family: var(--sans); font-size: 13.5px; color: var(--muted); max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.tbl.se tbody tr:nth-child(-n+3) td.se-rk { font-weight: 600; }
/* pools: today's pools as a table (the hourly strip on the page colour) */
.pl-today { margin-top: 40px; }
.pl-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pl-h .sub-h { margin: 0; }
.tbl.pl td { padding: 12px 18px; } .tbl.pl th { padding: 13px 18px; }
.tbl.pl td.pl-strip { width: 220px; min-width: 160px; }
.fd-strip.lt { width: 100%; height: 24px; } .fd-strip.lt i.z { background: var(--line-2); } .fd-strip.lt i.f { background: repeating-linear-gradient(90deg, var(--line-2) 0 2px, transparent 2px 4px); }
.tbl.pl th.pl-strip-h { text-align: left; }
/* portfolio: gleaned so far (a 5th cell on every stake + a 5th kpi) */
.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.st-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1080px) { .kpis-5 { grid-template-columns: 1fr 1fr; } .kpis-5 > div:nth-child(odd) { border-left: 0; } .kpis-5 > div:nth-child(n+3) { border-top: 1px solid var(--line); } .kpis-5 > div:nth-child(even) { border-left: 1px solid var(--line); } }
@media (max-width: 760px) { .st-grid > div:nth-child(odd) { border-left: 0; } .st-grid > div:nth-child(even) { border-left: 1px solid var(--line); } .st-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.my-hv:empty { display: none; } .my-hv a { text-decoration: underline; } .my-hv .num { color: var(--sol-2); }
/* today: live vs paper (lead 10:37): the kind tag by the date, the split under the number, live rows marked */
.td-kr { display: inline-flex; align-items: center; gap: 12px; }
.td-kind { height: 21px; font-size: 11.5px; }
.td-split { margin-top: 12px; min-height: 1.5em; font-size: 15px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-split b { color: var(--sol-2); font-weight: 600; }
.td-split + .td-sub { margin-top: 4px; }
html:not(.hv-ready) #td-kind, html:not(.hv-ready) #td-split { visibility: hidden; animation: hvShow 0s 3s forwards; }
.fd-row.is-live { background: rgba(126,240,255,.07); box-shadow: inset 2px 0 0 var(--sol); }
a.fd-row.is-live:hover { background: rgba(126,240,255,.11); }
.tbl.pl tr.is-live td { background: rgba(126,240,255,.06); } .tbl.pl tr.is-live td:first-child { box-shadow: inset 2px 0 0 var(--sol); }
/* coin page: the gleaned-today card */
.tc-v { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.tc-v b { font-family: var(--f-display); font-weight: 800; font-size: 44px; letter-spacing: -.02em; line-height: 1; }
.tc-v > span:not(.tag) { font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.tc-v .tag { margin-left: auto; align-self: center; }
.tc-strip { display: grid; height: 34px; margin-top: 14px; }
.tc-ruler { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--faint); }
.tc-ruler b { font-weight: 700; }

/* pill groups with many options swipe sideways on a phone (a swipe strip: no bar) */
@media (max-width: 640px) { .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .seg::-webkit-scrollbar { display: none; } .seg button { flex: none; } .ctrls { gap: 10px; } .ctrls .lab { width: 100%; } }

/* ── motion (the builder's parts: reveal, split, progress, lenis; drums style themselves) ─────────────────────────────── */
.sb-reveal [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.sb-reveal [data-reveal].in { opacity: 1; transform: none; }
.sb-split [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.sb-split [data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.sb-split [data-split].in .w > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .sb-reveal [data-reveal], .sb-split [data-split] .w > span { opacity: 1 !important; transform: none !important; transition: none !important; } }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 9991; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
