/* Snowball: "fresh powder" (docs/LOOK.md). Snow-white page with a blue cast, deep night-blue ink, ice blue for shade and depth, one
   action colour (glacier blue, token --mitten) and a frost-cyan marker (token --wool) for the 5 snowballs that pay holders. Round shapes: pill buttons, 20px
   panels, soft snow-drift shadows. Palette constants live in shared/brand.ts (COLORS); keep both in step. The token NAMES below are the
   ones the page sheets already use (--green is the action colour, --gold the wool text colour, ...); only their values are Snowball's.
   Type: Fredoka (display), Onest (body), Martian Mono (numbers, labels).
   Served first; story.css, shell.css (the shell and panels), home.css, the page sheets and hill.css are appended after it (server/index.ts). */
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("/fonts/martian-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: light;
  --sec: 56px; --sec-in: 28px; --head-h: 56px; --bar-h: 56px; --mkt-h: 30px; --rail-w: 92px;
  /* surfaces: snow-white page, raised snow, white cards, wells */
  --deck: #F5F9FD; --deck-2: #E7F0F8; --panel: #E7F0F8; --card: #ffffff; --card-solid: #ffffff; --well: #ECF3FA; --track: #D3E0EC;
  --ink: #0F2338; --ink-2: #33475C; --ink-3: #4F6377;
  /* brand colours (shared/brand.ts): shade #BFDDF3, shade-2 #5E9FD3, dusk #12355B, mitten #1668C0, wool #4DB8E8, pine #2E6B52 */
  --shade: #BFDDF3; --shade-2: #5E9FD3; --dusk: #12355B; --mitten: #1668C0; --wool: #4DB8E8; --pine: #2E6B52;
  --ice: var(--shade); --glacier: var(--shade-2); --thaw: var(--mitten); --thaw-light: var(--wool); --lilac: var(--shade-2);
  /* action = glacier blue (token name "mitten" kept; white text AA); the frost (wool) text variant is for text on light; red only for errors */
  --green: #1668C0; --green-hi: #0F519A; --green-deep: #0B3F7A; --green-soft: rgba(22, 104, 192, .10); --on-green: #ffffff;
  --red: #B42335; --red-hi: #8E1A29; --red-soft: rgba(180, 35, 53, .08);
  --gold: #0A6489; --gold-hi: #084F6C; --gold-soft: rgba(77, 184, 232, .18);
  --cream: #0F2338; --snow: #F5F9FD;
  --rule: #D3E0EC; --rule-2: #B3C6D8;
  /* older names used by the page sheets, mapped onto the Snowball palette */
  --candle: var(--gold); --candle-hi: var(--gold-hi); --candle-deep: #084F6C; --candle-soft: var(--gold-soft); --on-candle: #ffffff;
  --ember: var(--red); --ember-soft: var(--red-soft); --amber: var(--gold);
  --frost: var(--shade-2); --frost-hi: #1D4F82; --frost-soft: rgba(121, 173, 216, .14);
  --blue: #2E73B8; --blue-hi: #1D4F82; --blue-deep: var(--dusk); --blue-soft: rgba(121, 173, 216, .14); --on-blue: #ffffff;
  --pink: var(--red); --cyan: var(--shade-2); --violet: #2E73B8; --meteora: var(--venue); --flare: var(--wool); --sun: var(--wool); --trace: var(--mitten);
  --line: var(--rule); --line-2: var(--rule-2);
  --edge: linear-gradient(90deg, var(--shade), var(--shade-2) 60%, var(--dusk));
  --ok: #2E6B52; --warn: #0A6489; --bad: #B42335; --focus: #12355B;
  /* fee lanes: house slate, holders frost cyan, buyback glacier blue */
  --lane-house: #4F6377; --lane-holders: #4DB8E8; --lane-buyback: #1668C0; --unalloc: #D3E0EC; --venue: #5E9FD3;
  --r: 20px; --r-s: 12px;
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 12px 30px -18px rgba(18, 53, 91, .35);
  --shadow-s: 0 6px 16px -10px rgba(18, 53, 91, .3);
  --t1: 11px; --t2: 13px; --t3: 15px;
}
* { box-sizing: border-box; }
@media (min-width: 880px) { :root { --sec: 88px; --sec-in: 40px; } }
html, body, button, input, textarea, select { font-synthesis: none; }
[hidden] { display: none !important; }
html { background: var(--deck); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; position: relative; min-height: 100vh; color: var(--ink); font: 15.5px/1.6 var(--sans); background: var(--deck);
  display: flex; flex-direction: column; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* behind everything: fresh snow white with a very faint ice-blue snow-shadow drift along the bottom of the whole page (static, never animated) */
body::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(90vmax 22vmax at 18% 108%, rgba(195, 220, 240, .38), transparent 70%),
    radial-gradient(80vmax 18vmax at 86% 112%, rgba(195, 220, 240, .30), transparent 70%),
    linear-gradient(180deg, #F5F9FD 0%, #F5F9FD 70%, #F1F5F9 100%); }
header, main, footer { position: relative; z-index: 1; }
.skip { position: absolute; left: -999px; top: 0; background: var(--dusk); color: #fff; padding: 13px 16px; z-index: 80; font-weight: 600; border-radius: 0 0 var(--r-s) 0; }
.skip:focus { left: 0; }
a { color: var(--blue-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
a:hover { color: var(--green-hi); }
::selection { background: rgba(195, 220, 240, .8); color: var(--ink); }
img { max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1000px) { .wrap { padding: 0 24px; } }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

/* ---------- type ---------- */
main { flex: 1; padding: 18px 0 48px; view-transition-name: page; overflow-x: clip; }
main > * { animation: enter .34s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
@keyframes fade { from { opacity: 0; } }
::view-transition-old(page), ::view-transition-new(page) { animation: none; mix-blend-mode: normal; }
h1, h2, .display { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; overflow-wrap: break-word; text-wrap: balance; }
h1 { font-size: clamp(25px, 7vw, 46px); line-height: 1.12; margin: 4px 0 12px; }
h2 { font-size: clamp(18px, 4.6vw, 26px); line-height: 1.2; margin: 32px 0 12px; }
h1 em, h2 em { font-style: normal; color: var(--green); }
h3 { font-family: var(--display); font-size: 16px; margin: 0 0 4px; font-weight: 500; letter-spacing: 0; }
.lead { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin: 0 0 18px; max-width: 64ch; }
.mute { color: var(--ink-2); } .faint { color: var(--ink-3); }
.small { font-size: 13.5px; }
.num { font-variant-numeric: tabular-nums; }
.mono, code { font-family: var(--mono); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- buttons: one action colour (lake blue); ghost buttons are outlined pills ---------- */
.btn { position: relative; background: var(--green); color: var(--on-green); border: 1px solid var(--green); border-radius: 999px; padding: 10px 20px; font: 600 14.5px/1.2 var(--sans); letter-spacing: .005em; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  box-shadow: 0 8px 18px -10px rgba(22, 104, 192, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .18s var(--ease), background-color .2s, border-color .2s, box-shadow .25s, color .2s; touch-action: manipulation; }
.btn:hover { color: var(--on-green); background: var(--green-hi); border-color: var(--green-hi); transform: translateY(-1px); box-shadow: 0 14px 24px -12px rgba(22, 104, 192, .8), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn:active { transform: translateY(0) scale(.97); background: var(--green-deep); border-color: var(--green-deep); box-shadow: 0 3px 8px -4px rgba(22, 104, 192, .7); transition-duration: .08s; }
.btn:focus-visible { outline-offset: 3px; border-radius: 999px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic-go { transform: translateX(3px); }
.btn.sm { padding: 6px 16px; font-size: 13.5px; min-height: 44px; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--rule-2); box-shadow: var(--shadow-s); }
.btn.ghost:hover { background: var(--card); color: var(--green-hi); border-color: var(--green); box-shadow: 0 10px 20px -12px rgba(18, 53, 91, .4); }
.btn.ghost:active { background: var(--green-soft); box-shadow: none; }
.btn.danger { background: transparent; color: var(--bad); border-color: rgba(180, 35, 53, .5); box-shadow: none; }
.btn.danger:hover { background: var(--red-soft); color: var(--red-hi); border-color: var(--bad); }
.btn svg, .ic { width: 18px; height: 18px; flex: none; }
.linkbtn { background: none; border: 0; color: var(--blue-hi); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.actions > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
@media (min-width: 640px) { .actions { display: flex; flex-wrap: wrap; } }
.more { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font: 500 11.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.more .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.more:hover .ic { transform: translateX(4px); }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); transition: border-color .25s, box-shadow .25s; }
.card:hover { border-color: var(--line-2); }
.card + .card, .card + .tablewrap { margin-top: 12px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrapx { flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

/* figures in one strip of ruled cells */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 18px 0; background: var(--line); border: 1px solid var(--line); overflow: hidden; border-radius: var(--r); box-shadow: var(--shadow); }
.stats > * { background: var(--card); border: 0; border-radius: 0; box-shadow: none; margin: 0 !important; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 16px; min-width: 0; }
.stat b { display: block; font: 500 clamp(17px, 4.6vw, 22px)/1.15 var(--mono); letter-spacing: -.04em; overflow-wrap: anywhere; color: var(--ink); }
.stat span { color: var(--ink-2); font-size: 13.5px; display: block; margin-top: 6px; line-height: 1.35; }
/* where a number comes from: a small square and a mono label */
.src { display: inline-flex !important; align-items: center; gap: 7px; font: 500 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3) !important; margin-top: 8px !important; max-width: 100%; white-space: normal; }
.src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); flex: none; }
.src.chain::before { background: var(--ok); animation: beat 2.4s ease-in-out infinite; }
.src.market::before { background: var(--wool); }
.src.ledger::before { background: var(--shade); box-shadow: 0 0 0 1px var(--rule-2) inset; }
.src.hill::before, .src.pond::before { background: var(--shade-2); }
@keyframes beat { 50% { opacity: .35; } }

/* ---------- coin rows ---------- */
.coin { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; text-decoration: none; color: inherit; padding: 14px 16px; position: relative; transition: background-color .2s; }
.coin:hover { background: var(--frost-soft); color: inherit; }
.coin img, .art { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--track); display: block; box-shadow: 0 0 0 1px var(--line); }
.coin .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin .tk { color: var(--ink-3); font-size: 11px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin .mc { text-align: right; white-space: nowrap; font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 500 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .03em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; background: var(--well); }
.pill .ic { width: 14px; height: 14px; }
.pill.ok { color: var(--ok); border-color: rgba(46, 107, 82, .4); background: rgba(46, 107, 82, .09); }
.pill.warn { color: var(--warn); border-color: rgba(77, 184, 232, .55); background: var(--gold-soft); }
.up { color: var(--ok); } .down { color: var(--bad); } .flat { color: var(--ink-3); }
/* a coin colour: a small round dot */
.sw { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--c, var(--ink-3)); box-shadow: 0 0 0 1px rgba(18, 53, 91, .2) inset; }
.addr { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
code { background: var(--well); border: 1px solid var(--line); padding: 1px 6px; border-radius: 8px; word-break: break-all; font-size: .78em; }

/* ---------- forms ---------- */
form label, .lbl, .card > label { display: block; margin: 18px 0 6px; font: 500 10.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.hint { color: var(--ink-3); font-size: 12.5px; margin: 6px 0 0; }
input, textarea, select { width: 100%; background: var(--card); border: 1px solid var(--line-2); color: var(--ink); border-radius: var(--r-s); padding: 12px 14px; font: inherit; font-size: 16px; min-height: 48px; transition: border-color .15s, box-shadow .15s, background-color .15s; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: var(--shade-2); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--dusk); box-shadow: 0 0 0 4px rgba(121, 173, 216, .28); }
input[aria-invalid="true"] { border-color: var(--bad); }
input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; accent-color: var(--green); flex: none; margin: 1px 0 0; }
input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="range"] { accent-color: var(--green); padding: 0; border: 0; background: none; min-height: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font: 400 14px/1.5 var(--sans) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--ink-2); margin: 12px 0 !important; }
.drop { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; border: 1px dashed var(--rule-2); border-radius: var(--r); padding: 12px; cursor: pointer; background: var(--well); position: relative; transition: border-color .2s, background-color .2s; margin: 0 !important; font: 400 14px/1.4 var(--sans) !important; text-transform: none !important; letter-spacing: 0 !important; }
.drop:hover { border-color: var(--shade-2); background: var(--frost-soft); }
.drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.drop img, .drop .art { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop p { margin: 2px 0 0; }
.err { color: var(--bad); } .okmsg { color: var(--ok); }
.fielderr { color: var(--bad); font-size: 13px; margin: 5px 0 0; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
option { background: var(--card); color: var(--ink); }

/* ---------- review, splits, progress ---------- */
.review h2 { font-size: 28px; }
.split { display: flex; height: 14px; overflow: hidden; gap: 3px; border-radius: 999px; margin: 10px 0 10px; transform-origin: left; animation: wipe .9s var(--ease) both; }
.split i { display: block; height: 100%; border-radius: 999px; }
@keyframes wipe { from { transform: scaleX(0); } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 400 11px/1.5 var(--mono); color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.progress { display: grid; gap: 10px; margin: 14px 0; padding: 0; list-style: none; }
.progress li { display: flex; gap: 10px; align-items: center; color: var(--ink-3); font-size: 15px; }
.progress li.on { color: var(--ink); } .progress li.done { color: var(--ok); } .progress li.fail { color: var(--bad); }
.progress li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.progress li.on::before { border-color: var(--green); border-top-color: transparent; animation: spin .8s linear infinite; }
.progress li.done::before { background: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }
.summary { white-space: pre-wrap; font: 400 10.5px/1.7 var(--mono); background: var(--well); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- notices, empty states ---------- */
.notice { border: 1px solid rgba(77, 184, 232, .55); background: var(--gold-soft); color: #084F6C; border-radius: var(--r); padding: 12px 16px; margin: 14px 0; }
.notice.info { border-color: rgba(121, 173, 216, .55); background: rgba(195, 220, 240, .28); color: #12355B; }
.notice.bad { border-color: rgba(180, 35, 53, .45); background: var(--red-soft); color: #6E1420; }
.empty { text-align: center; padding: 16px 14px 18px; color: var(--ink-2); background: transparent; border: 1px dashed var(--line-2); border-radius: var(--r); box-shadow: none; }
.empty > svg:not(.empty-art) { width: 40px; height: 40px; margin: 0 auto 10px; display: block; color: var(--shade-2); }
.empty .empty-art { width: 110px; height: auto; margin: 0 auto 4px; display: block; overflow: visible; }
.empty p { max-width: 44ch; margin: 0 auto 12px; }
.empty-line { color: var(--ink-2); margin: 10px 0 0; }
.eb-shade { fill: var(--shade); opacity: .7; } .eb-ball { fill: #fff; stroke: var(--shade); stroke-width: 2; } .eb-hi { fill: none; stroke: var(--shade); stroke-width: 2.5; stroke-linecap: round; }

/* ---------- tables, details, segmented control ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); background: var(--card); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
th { color: var(--ink-3); font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; background: var(--well); }
tbody tr { transition: background-color .15s; } tbody tr:hover { background: var(--frost-soft); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); }
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0 18px; margin: 10px 0; box-shadow: var(--shadow-s); transition: border-color .2s; }
details[open] { border-color: var(--line-2); padding-bottom: 4px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--green); font: 400 14px/1 var(--mono); transition: transform .3s var(--ease), background-color .2s; }
summary:hover::after { background: var(--green-soft); }
details[open] > summary::after { transform: rotate(45deg); }
.seg { display: inline-flex; background: var(--well); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 3px; border-radius: 999px; justify-self: start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { background: none; border: 0; color: var(--ink-2); font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 8px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; min-height: 44px; }
.seg button:hover { color: var(--ink); background: rgba(195, 220, 240, .35); }
.seg button:active { transform: scale(.97); }
.seg button[aria-pressed="true"] { background: var(--green); color: var(--on-green); box-shadow: 0 6px 12px -8px rgba(22, 104, 192, .8); }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .plot { fill: var(--well); stroke: var(--line); }
.chart .grid-l { stroke: var(--line-2); stroke-dasharray: 2 5; }
.chart .axis { fill: var(--ink-3); font: 400 9.5px var(--mono); }
.chart .line { fill: none; stroke: var(--green); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#ledgerfill); }
.chart .dot { fill: var(--c, var(--green)); stroke: var(--card-solid); stroke-width: 2; }
.chart .hair { stroke: var(--line-2); stroke-dasharray: 3 4; }
.chartbox { position: relative; }
.tip { position: absolute; pointer-events: none; background: var(--card-solid); border: 1px solid var(--line-2); border-radius: var(--r-s); box-shadow: var(--shadow-s); color: var(--ink); padding: 6px 10px; font: 400 11.5px/1.4 var(--mono); white-space: nowrap; transform: translate(-50%, -115%); z-index: 2; }

/* ---------- skeletons: a soft pulse (opacity only) ---------- */
.sk { background: rgba(195, 220, 240, .35); border-radius: var(--r-s); animation: pulse 1.4s ease-in-out infinite; }
.sk-h1 { height: 46px; width: min(420px, 80%); margin: 10px 0 16px; }
.sk-line { height: 16px; width: min(640px, 95%); margin: 8px 0; }
.sk-line.short { width: min(360px, 60%); }
.sk-card { height: 80px; }
.sk-stat { height: 86px; }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- dialogs, toasts ---------- */
dialog { background: var(--card-solid); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 30px 70px -20px rgba(18, 53, 91, .55); }
dialog[open] { animation: pop .25s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
dialog::backdrop { background: rgba(18, 53, 91, .5); }
dialog h2 { margin: 0 0 6px; font-size: 24px; }
.wlist { display: grid; gap: 8px; margin: 14px 0; }
.wlist button, .wlist a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line-2); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 52px; transition: border-color .2s, background-color .2s, transform .15s var(--ease); }
.wlist button:hover, .wlist a:hover { border-color: var(--shade-2); background: var(--frost-soft); color: var(--ink); transform: translateY(-1px); }
.wlist button:active, .wlist a:active { transform: scale(.98); }
.wlist img { width: 28px; height: 28px; border-radius: 8px; }
.toasts { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; width: min(440px, calc(100vw - 28px)); pointer-events: none; }
.toast { background: var(--card-solid); border: 1px solid var(--line-2); color: var(--ink); border-radius: 999px; padding: 12px 20px; font-size: 14px; box-shadow: 0 16px 36px -14px rgba(18, 53, 91, .55); animation: rise .3s var(--ease) both; pointer-events: auto; display: flex; gap: 12px; align-items: center; }
.toast::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--shade-2); flex: none; }
.toast.err::before { border-color: var(--bad); background: var(--bad); }
.toast.ok::before { border-color: var(--ok); background: var(--ok); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }


/* ---------- reveals: content is hidden only once the user scrolls and only while it is still below the screen (app.ts reveal()) ---------- */
.rv-hide { opacity: 0; transform: translateY(14px); }
.rv-on { transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(min(var(--i, 0), 8) * 60ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .sk, .progress li.on::before, .src.chain::before { animation: none !important; }
  .rv-hide { opacity: 1; transform: none; }
}

/* Story drawings (client/story.ts): the fee-split explorer and the burn orbits, laid out as console panels (see docs.css for the page).
   Tokens come from style.css. The base state of every drawing is its finished state; motion is added on top, only under no-preference. */
.ep-dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c, currentColor); }

/* shared drawing parts */
.pm-r { fill: var(--ink); } .pm-p { fill: var(--blue); } .pm-s { fill: var(--flare); }
.sat-b { fill: var(--blue); } .sat-p { fill: var(--ink); opacity: .85; } .sat-w { stroke: var(--ink); stroke-width: 1; fill: none; }
.ep-orbits text, .ep-curve text { font-family: var(--mono); }

/* ---------- follow one trade ---------- */
.ep-tf { display: grid; gap: 14px; align-items: start; }
.ep-tf > .pnl + .pnl { margin-top: 0; }
@media (min-width: 880px) { .ep-tf { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.ep-intro { margin: 0 0 14px; }
.ep-ctl { display: block; margin: 0 0 14px; }
.ep-ctl > span { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 6px; font: 400 11px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.ep-ctl output { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 13px; }
.ep-ctl input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; padding: 0; background: transparent; border: 0; cursor: pointer; }
.ep-ctl input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 8px; background: var(--line-2); }
.ep-ctl input[type=range]::-moz-range-track { height: 4px; border-radius: 8px; background: var(--line-2); }
.ep-ctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; border: 5px solid var(--blue); background: var(--panel); }
.ep-ctl input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; border: 5px solid var(--blue); background: var(--panel); }
.ep-ctl input[type=range]:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 8px; }
.ep-curve { display: block; width: 100%; max-width: 440px; height: auto; margin-top: 4px; }
.ep-curve .ax { stroke: var(--line-2); fill: none; }
.ep-curve .ln { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ep-curve .ar { fill: var(--blue); opacity: .1; stroke: none; }
.ep-curve .dot { transition: transform .25s var(--ease); }
.ep-curve .dot-halo { fill: var(--flare); opacity: .2; } .ep-curve .dot-c { fill: var(--flare); }
.ep-curve .tk { font-size: 12px; fill: var(--ink-2); }
.ep-fee { display: grid; grid-template-columns: minmax(0, 1fr); align-items: baseline; gap: 4px; margin-top: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ep-fk { font: 400 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.ep-big, .ep-big b { font: 400 30px/1.1 var(--mono); color: var(--blue-hi); letter-spacing: -.04em; }
/* the hill's rules: hand-numbered badges, no browser numbers */
.tr-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tr-rules > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.tr-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--shade); color: var(--dusk); font: 500 13px/1 var(--mono); }
.tr-rules h3 { margin: 3px 0 4px; font: 600 16px/1.3 var(--display); color: var(--ink); }
.tr-rules p { margin: 0; color: var(--ink-2); }
.ep-fs { font-size: 14px; color: var(--ink-2); line-height: 1.4; } .ep-fs b { color: var(--ink); font-weight: 400; font-family: var(--mono); font-size: 13px; }
.ep-h { margin: 16px 0 6px; font: 400 11px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.ep-split { display: block; width: 100%; height: auto; max-height: 84px; }
.ep-split .trunk { fill: none; stroke: var(--ink-2); stroke-width: 6; stroke-linecap: round; opacity: .35; }
.ep-split .br { fill: none; stroke: var(--c); stroke-linecap: round; opacity: .85; }
.ep-split .end { fill: var(--c); }
.ep-split .src { fill: var(--ink); }
.ep-split .flow { fill: none; stroke: var(--deck); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1 11; opacity: .9; }
.ep-split .cre, .ep-leg .cre { --c: var(--ink-3); } .ep-split .tre, .ep-leg .tre { --c: var(--shade-2); }
.ep-split .hol, .ep-leg .hol { --c: var(--lane-holders); } .ep-split .buy, .ep-leg .buy { --c: var(--lane-buyback); } .ep-split .hou, .ep-leg .hou { --c: var(--lane-house); }
.ep-leg { list-style: none; margin: 4px 0 0; padding: 0; }
.ep-leg li { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.ep-leg li:last-child { border-bottom: 0; }
.ep-leg b { font: 400 13px var(--mono); color: var(--ink); text-align: right; }
.ep-note { margin: 14px 0 0; color: var(--ink-2); font-size: 13.5px; }
@media (prefers-reduced-motion: no-preference) {
  .ep-split .flow { animation: ep-flow 2.4s linear infinite; animation-delay: var(--d, 0s); }
  @keyframes ep-flow { to { stroke-dashoffset: -24; } }
}

/* ---------- where a burn goes: three orbits ---------- */
.ep-lanes { display: grid; gap: 14px; align-items: start; }
.ep-lanes > .pnl + .pnl { margin-top: 0; }
@media (min-width: 880px) { .ep-lanes { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.ep-orbits-w { margin: 4px auto 0; max-width: 440px; }
.ep-orbits { display: block; width: 100%; height: auto; overflow: visible; }
.ep-orbits .lane-orb { fill: none; stroke: var(--c); opacity: .75; }
.ep-lane.core, .ep-orbits .core { --c: var(--lane-core); } .ep-lane.summit, .ep-orbits .summit { --c: var(--lane-summit); } .ep-lane.rising, .ep-orbits .rising { --c: var(--lane-rising); }
.ep-orbits .lane-sat .sat-b { fill: var(--c); } .ep-orbits .lane-sat .sat-p { fill: var(--ink); opacity: .8; }
.ep-orbits .trail { fill: none; stroke: var(--flare); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 6; opacity: .85; }
.ep-orbits .lane-tag rect { fill: var(--panel); stroke: var(--c); stroke-width: 1.2; }
.ep-orbits .lane-tag text { font-size: 13px; fill: var(--ink); }
.ep-lane-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ep-lane { padding: 14px; border-left: 3px solid var(--c); margin: 0; }
.ep-lane + .ep-lane { margin-top: 0; }
.ep-lane h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; font: 600 19px/1.15 var(--display); color: var(--ink); }
.ep-lane h3 .ep-dot { background: var(--c); }
.ep-lane h3 b { margin-left: auto; font: 400 13px var(--mono); color: var(--ink); padding: 3px 9px; border-radius: 8px; border: 1px solid var(--c); background: var(--panel); }
.ep-lane p { margin: 0; max-width: 54ch; color: var(--ink-2); }
.ep-ranks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ep-ranks li { display: flex; gap: 8px; align-items: baseline; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); font: 400 12.5px var(--mono); color: var(--ink-2); }
.ep-ranks b { color: var(--ink); font-weight: 400; }
@media (prefers-reduced-motion: no-preference) {
  .ep-orbits .trail { animation: ep-dash 2s linear infinite; }
  @keyframes ep-dash { to { stroke-dashoffset: -14; } }
  .ep-orbits .lane-sat { transform-box: fill-box; transform-origin: center; animation: ep-bob 6s ease-in-out infinite; }
  .ep-orbits .lane-sat.summit { animation-delay: -2s; } .ep-orbits .lane-sat.rising { animation-delay: -4s; }
  @keyframes ep-bob { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, -2px); } }
}

/* the light dial: one house that grows and brightens with the share the reader dials in */
.lr-house { max-width: 220px; margin: 6px auto 4px; padding: 10px 10px 2px; border-radius: 8px; background: linear-gradient(180deg, #E7F0F8, #E7F0F8); border: 1px solid var(--line); }
.lr-house .ha-win, .lr-house .ha-spill { transition: opacity .25s; }

/* The shell: a slim status strip on top (mono readouts of the real state), a snow-white header bar, a soft rail of channels on the left
   (desktop) and a deck where every page is laid out as round white panels with small mono heads. Phones: the rail folds into the menu
   sheet; pages stack their panels. Served after style.css and story.css; it overrides their primitives so every page shares one vocabulary. */
:root { --t1: 11px; --t2: 13px; --t3: 15px; --t4: 19px; --t5: 26px; --t6: clamp(30px, 3.6vw, 48px); }
body { font-size: 15px; line-height: 1.55; }

/* ---------- market status strip ---------- */
.mkt { position: relative; z-index: 31; display: flex; align-items: center; height: var(--mkt-h); overflow: hidden; background: var(--deck-2); border-bottom: 1px solid var(--rule); font: 400 10px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; padding: 0 6px; }
.mkt-c { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; height: 100%; border-right: 1px solid var(--rule); flex: none; }
.mkt-c:last-child { border-right: 0; }
.mkt-c i { font-style: normal; color: var(--ink-3); }
.mkt-c b { font-weight: 500; color: var(--ink); }
.mkt-c.hold b { color: var(--gold); } .mkt-c.go b { color: var(--ok); } .mkt-c.no b { color: var(--red-hi); }
.mkt-c.go::before, .mkt-c.hold::before, .mkt-c.no::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.mkt-c.go::before { color: var(--ok); } .mkt-c.hold::before { color: var(--gold); } .mkt-c.no::before { color: var(--red); }
@media (prefers-reduced-motion: no-preference) { .mkt-c.go::before { animation: beat 2.4s ease-in-out infinite; } }
@media (max-width: 519px) { .mkt-c.wide { display: none; } }

/* ---------- header bar: logo, actions ---------- */
.sbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); color: var(--ink); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(1px)) { .sbar { background: rgba(255, 255, 255, .8); backdrop-filter: blur(12px); } }
.sbar-in { display: flex; align-items: center; gap: 8px; height: calc(var(--bar-h) - 1px); padding: 0 10px 0 12px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 600 20px/1 var(--display); letter-spacing: -.01em; flex: none; margin-right: auto; }
.logo b { color: var(--green); font-weight: 600; }
.logo:hover { color: var(--ink); }
.logo { min-height: 44px; }
.logo .mark svg { display: block; width: 32px; height: 32px; transition: transform .6s var(--ease); }
.logo:hover .mark svg { transform: rotate(-12deg) scale(1.05); }
.readouts { display: none; }
.head-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.head-actions .btn, .menu-btn { height: 44px; min-height: 0; position: relative; }
.head-actions .btn::after, .menu-btn::after { content: ""; position: absolute; inset: -3px; }
.head-actions .head-x { width: 44px; padding: 0; background: transparent; color: var(--ink); border-color: var(--rule-2); box-shadow: none; }
.head-actions .head-x:hover { background: var(--card); color: var(--ink); border-color: var(--shade-2); box-shadow: var(--shadow-s); }
.head-x svg { width: 15px; height: 15px; }
#wallet { max-width: 150px; overflow: hidden; white-space: nowrap; padding: 0 14px; font-size: 13px; }
.menu-btn { transition: background-color .2s, transform .15s var(--ease); display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 1px solid var(--rule-2); border-radius: 50%; color: var(--ink); cursor: pointer; touch-action: manipulation; width: 44px; }
.menu-btn:hover { background: var(--card); border-color: var(--shade-2); box-shadow: var(--shadow-s); }
.menu-btn:active, .head-actions .head-x:active { transform: scale(.94); }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn i { position: relative; background: transparent; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; top: 0; }
.menu-btn i::before { transform: translateY(-3.5px); } .menu-btn i::after { transform: translateY(3.5px); }
.menu-btn[aria-expanded="true"] { background: var(--dusk); border-color: var(--dusk); color: #fff; }
.menu-btn[aria-expanded="true"] i::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: rotate(-45deg); }
@media (max-width: 379px) { .head-actions .head-x { display: none; } .logo { font-size: 17px; gap: 7px; } .logo .mark svg { width: 26px; height: 26px; } #wallet { max-width: 116px; } #wallet .ic { display: none; } }
@media (max-width: 419px) { #wallet:not([title^="Connect"]) .ic { display: none; } }

/* ---------- phone menu: a channel grid that drops from the bar ---------- */
.scrim { display: none; position: fixed; inset: 0; z-index: 24; background: rgba(18, 53, 91, .45); animation: fade .25s var(--ease) both; }
.sheet { position: fixed; left: 0; right: 0; top: calc(var(--bar-h) + var(--mkt-h)); z-index: 26; border-bottom: 1px solid var(--rule-2); padding: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background-color: var(--deck); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow); max-height: calc(100dvh - var(--bar-h) - var(--mkt-h)); overflow-y: auto; animation: drop .25s var(--ease) both; }
.sheet:not([hidden]) + .scrim { display: block; }
.sheet a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); color: var(--ink); text-decoration: none; font: 500 15px/1.2 var(--display); transition: transform .15s var(--ease), border-color .2s, background-color .2s; }
.sheet a:active { transform: scale(.97); }
.sheet a i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--deck-2); color: var(--ink-3); flex: none; transition: background-color .2s, color .2s; }
.sheet a i svg, .rail a i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.sheet a[aria-current="page"] { background: var(--card); border-color: var(--green); }
.sheet a[aria-current="page"] i { color: var(--on-green); background: var(--green); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- frame: rail + deck ---------- */
.frame { flex: 1; display: flex; min-height: 0; position: relative; z-index: 1; }
.rail { display: none; }
.deck { flex: 1; min-width: 0; display: flex; flex-direction: column; background: none; }
@media (min-width: 1000px) {
  .frame::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--rail-w); background: rgba(255, 255, 255, .6); border-right: 1px solid var(--rule); pointer-events: none; }
  .menu-btn, .sheet, .scrim { display: none !important; }
  .logo { margin-right: auto; }
  .rail { display: flex; flex-direction: column; flex: none; width: var(--rail-w); position: sticky; align-self: flex-start; top: var(--bar-h); height: calc(100dvh - var(--bar-h)); padding: 10px 8px; gap: 2px; overflow-y: auto; }
  .rail a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border-radius: var(--r-s); color: var(--ink-2); text-decoration: none; text-align: center; font: 500 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; transition: color .2s, background-color .2s, transform .15s var(--ease); }
  .rail a:active { transform: scale(.96); }
  .rail a i { color: var(--ink-3); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--deck-2); transition: color .2s, background-color .2s, transform .25s var(--ease); }
  .rail a:hover { color: var(--ink); background: var(--card); }
  .rail a:hover i { color: var(--green); transform: translateY(-2px); }
  .rail a[aria-current="page"] { color: var(--ink); background: var(--card); box-shadow: var(--shadow-s); }
  .rail a[aria-current="page"] i { background: var(--green); color: var(--on-green); }
}

/* ---------- main + slim footer ---------- */
main { flex: 1; padding: 18px 0 40px; view-transition-name: page; overflow-x: clip; }
.wrap { max-width: 1240px; padding: 0 16px; }
@media (min-width: 1000px) { main { padding: 22px 8px 40px; } .wrap { padding: 0 22px; } }
.foot { position: relative; z-index: 1; border-top: 1px solid var(--rule); background: rgba(255, 255, 255, .7); color: var(--ink-2); font-size: 13px; }
.foot::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--shade), var(--shade-2) 60%, var(--shade)); opacity: .55; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 10px 16px; max-width: 1240px; }
@media (min-width: 1000px) { .foot-in { padding: 8px 30px; } }
.foot-copy { margin: 0; font: 400 10px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.foot-mark svg { display: block; width: 22px; height: 22px; }
.foot-note { margin: 0; flex: 1 1 260px; }
.foot-note a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.foot-links a, #foot-ext a { color: var(--ink); text-decoration: none; min-height: 44px; min-width: 44px; padding: 0 6px; justify-content: center; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; border-radius: 999px; transition: color .2s, background-color .2s; }
.foot-links a:hover { background: var(--deck-2); }
.foot-links a:hover { color: var(--green); }
#foot-ext { display: inline-flex; gap: 14px; }
.foot-x svg { width: 13px; height: 13px; }
.foot-note a { color: var(--blue-hi); font-weight: 600; }

/* ---------- panel primitives: rounded, quietly ruled, mono-labelled ---------- */
h1 { font-size: clamp(28px, 8vw, 46px); line-height: 1.08; margin: 4px 0 10px; }
h2 { font-size: clamp(20px, 5vw, 26px); line-height: 1.2; margin: 28px 0 10px; }
h3 { font-size: var(--t3); }
.lead { font-size: 15.5px; line-height: 1.55; }
.card, .panel, .coins, .stats, div.ledger, .empty, .notice, .tablewrap, .drop, details, .vault, dialog { border-radius: var(--r); }
.toast, input, textarea, select { border-radius: var(--r-s); }
.seg, .seg button { border-radius: 999px; }

/* page head: a soft snow band across the top of the deck, the horizon drawn faintly on the right */
.phead { position: relative; display: grid; gap: 12px 24px; align-items: end; margin: -18px -16px 18px; padding: 18px 16px 18px; color: var(--ink); border-bottom: 1px solid var(--rule); overflow: hidden;
  background: linear-gradient(180deg, #fff, rgba(246, 248, 250, .0)); }
.phead > * { position: relative; z-index: 1; }
.phead > .ph-art { position: absolute; z-index: 0; right: -40px; top: 50%; width: 360px; height: auto; transform: translateY(-50%); opacity: .8; pointer-events: none; }
@media (max-width: 759px) { .phead > .ph-art { width: 220px; right: -70px; top: -30px; transform: none; opacity: .35; } }
.tk-head::after { display: none; }
@media (min-width: 760px) { .phead { grid-template-columns: minmax(0, 1fr) auto; } }
@media (min-width: 1000px) { .phead { margin: -22px -30px 22px; padding: 24px 30px 22px; } }
.ph-path { display: flex; flex-wrap: wrap; gap: 0; margin: 0; font: 400 10px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.ph-path span + span::before { content: "/"; margin: 0 9px; color: var(--rule-2); }
.ph-path span:last-child { color: var(--green-hi); }
.phead h1 { margin: 10px 0 6px; color: var(--ink); }
.phead h1 em { color: var(--green); }
.phead .lead { margin: 0; max-width: 68ch; font-size: 15px; color: var(--ink-2); }
.phead a:not(.btn) { color: var(--blue-hi); }
.ph-act { display: flex; gap: 8px; flex-wrap: wrap; }

/* panel: a ruled box with a mono header row */
.pnl { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: clip; box-shadow: var(--shadow); min-width: 0; transition: border-color .25s, box-shadow .25s; }
.pnl:hover { border-color: var(--line-2); }
.pnl + .pnl { margin-top: 14px; }
.pnl-h { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--deck); font: 500 10.5px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.pnl-h > .spacer { flex: 1; }
.pnl-h a { display: inline-flex; align-items: center; min-height: 44px; text-transform: uppercase; letter-spacing: .06em; font: 500 10.5px/1 var(--mono); text-decoration: none; }
.pnl-h .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--green)); flex: none; }
.pnl-b { padding: 18px; }
.pnl-b > :first-child { margin-top: 0; }
.pnl-b > :last-child { margin-bottom: 0; }

/* layout: a work area and a sticky inspector on the right (wide screens) */
.cgrid { display: grid; gap: 14px; align-items: start; }
@media (min-width: 1100px) { .cgrid { grid-template-columns: minmax(0, 1fr) 360px; } .cgrid > .insp { position: sticky; top: calc(var(--bar-h) + 16px); } }

/* readouts: mono label, big figure, source */
.ro-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); overflow: hidden; border-radius: var(--r); }
@media (min-width: 760px) { .ro-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ro { background: var(--card); padding: 14px 16px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ro-k { font: 400 10px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.ro-v { font: 500 clamp(17px, 2.2vw, 22px)/1.1 var(--mono); letter-spacing: -.05em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro .src { margin-top: 2px; }

/* tabs: one ruled segmented strip */
.tabbar { display: flex; gap: 2px; border: 1px solid var(--line-2); background: var(--card); padding: 4px; border-radius: 999px; box-shadow: var(--shadow-s); }
.tabbar [role="tab"] { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 6px 8px; background: transparent; border: 0; border-radius: 999px; color: var(--ink-2); font: 500 11px/1.1 var(--mono); text-transform: uppercase; letter-spacing: .03em; cursor: pointer; white-space: nowrap; transition: color .2s, background-color .2s, transform .15s var(--ease); }
.tabbar [role="tab"]:hover { color: var(--ink); background: var(--deck-2); }
.tabbar [role="tab"]:active { transform: scale(.97); }
.tabbar [role="tab"][aria-selected="true"] { background: var(--green); color: var(--on-green); box-shadow: 0 6px 12px -8px rgba(22, 104, 192, .8); }

/* event log: time, body, value */
.log { list-style: none; margin: 0; padding: 0; }
.log > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 12px 16px; border-top: 1px solid var(--line); }
.log > li:first-child { border-top: 0; }
.log .t { font: 400 10px/1.4 var(--mono); color: var(--ink-3); letter-spacing: .06em; white-space: nowrap; }
.log .v { font: 400 12.5px/1.4 var(--mono); white-space: nowrap; text-align: right; }

/* the acquire motion: content swapped into a panel wipes in */
.acq { animation: acquire .28s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes acquire { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* empty states: compact, the drawing small, so an empty table does not become a poster */
.empty { padding: 14px 14px 16px; }
.empty .empty-art { width: 92px; }
.empty p { margin-bottom: 10px; }

@media (prefers-reduced-motion: reduce) {
  main > *, .acq, .sheet { animation: none !important; }
  .mkt-c.go::before { animation: none; }
}

/* Home: the hero (title, copy and calls to action beside the hill stage; the hill itself is styled in hill.css), the status bar, the
   scrolling listings tape and the sections below. Phones: status row, hill, then the copy, so the hill fits above the fold at 360x640.
   Wide screens: copy on the left, hill on the right. */
.home { overflow-x: clip; margin-top: -18px; }
@media (min-width: 1000px) { .home { margin: -22px -8px 0; } }

/* ---------- hero layout ---------- */
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "tree" "tape" "copy"; border-bottom: 1px solid var(--rule); }
.hero-grid { display: contents; }
.hero-bar { grid-area: bar; display: flex; align-items: center; gap: 0; height: 30px; overflow: hidden; white-space: nowrap; border-bottom: 1px solid var(--rule); background: rgba(246, 248, 250, .45); font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.hb-t { padding: 0 12px; height: 100%; display: inline-flex; align-items: center; font: 600 12px/1 var(--display); letter-spacing: .04em; color: var(--green); border-right: 1px solid var(--rule); flex: none; }
.hb-c { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 100%; border-right: 1px solid var(--rule); flex: none; }
.hb-c i { font-style: normal; color: var(--ink-3); } .hb-c b { font-weight: 500; color: var(--ink); }
@media (max-width: 359px) { .hb-c:last-child { display: none; } }
.hero-tree { grid-area: tree; position: relative; min-width: 0; }
.hero-copy { grid-area: copy; position: relative; z-index: 2; padding: 22px 16px 26px; min-width: 0; }
.hero-title { margin: 0; font: 600 clamp(1.55rem, 7.2vw, 2.6rem)/1.12 var(--display); letter-spacing: -.01em; color: var(--ink); }
.hero-title em { font-style: normal; color: var(--gold); }
.hero-line { margin: 14px 0 0; color: var(--ink-2); font-size: .98rem; line-height: 1.55; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 599px) { .hero-cta .btn { flex: 1 1 auto; padding-inline: 12px; } }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "bar bar" "copy tree" "tape tape"; }
  .hero-copy { align-self: center; padding: 40px 28px 40px max(24px, calc((100vw - 1240px) / 2)); }
  .hero-title { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
  .hero-line { font-size: 1.04rem; }
  .hero-tree { border-left: 1px solid var(--rule); }
}

/* ---------- legacy stage + quote card (kept so older markup still lays out) ---------- */
.bt { position: relative; }
.bt-stage { position: relative; height: clamp(380px, calc(100svh - 160px), 560px); overflow: hidden;
  background:
    radial-gradient(60% 45% at 50% 52%, rgba(195, 220, 240, .28), transparent 70%),
    radial-gradient(30% 16% at 50% 5%, rgba(77, 184, 232, .1), transparent 70%); }
@media (min-width: 900px) { .bt-stage { height: clamp(500px, calc(100vh - 170px), 660px); } }
.bt-hint { position: absolute; z-index: 2; left: 10px; top: 10px; margin: 0; max-width: min(34%, 150px); font: 400 8.5px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); pointer-events: none; }
@media (min-width: 900px) { .bt-hint { font-size: 9.5px; max-width: 190px; left: 16px; top: 14px; } }
.bt-tabs { display: flex; gap: 1px; background: var(--rule); border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.bt-tabs button { flex: 1 0 auto; min-height: 44px; padding: 4px 12px; border: 0; background: var(--deck); color: var(--ink-2); font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.bt-tabs button b { font-weight: 600; color: var(--ink); }
.bt-tabs button[aria-selected="true"] { background: var(--panel); box-shadow: inset 0 -2px 0 var(--green); }
.bt-tabs button[aria-selected="true"] b { color: var(--green); }

/* the open-slot button: a real button over the stage with its label pill to the right */
.bt-star { position: absolute; z-index: 3; left: calc(var(--sx, 50%) - 22px); top: calc(var(--sy, 30px) - 22px); display: flex; align-items: center; gap: 4px; padding: 0; margin: 0; border: 0; background: none; color: var(--gold); cursor: pointer; font: inherit; touch-action: manipulation; }
.bt-star-hit { width: 44px; height: 44px; flex: none; }
.bt-star-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 9px; border: 1px solid rgba(77, 184, 232, .7); background: rgba(246, 248, 250, .88); font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; box-shadow: 0 0 18px -6px rgba(77, 184, 232, .8); transition: background-color .2s, color .2s, box-shadow .2s; }
.bt-star-pill b { font-weight: 600; }
.bt-star-pill i { font-style: normal; transition: transform .2s var(--ease); }
.bt-star:hover .bt-star-pill, .bt-star:focus-visible .bt-star-pill { background: var(--gold); color: #fff; box-shadow: 0 0 26px -4px rgba(77, 184, 232, 1); }
.bt-star:hover .bt-star-pill i { transform: translateX(3px); }
.bt-star:focus-visible { outline: none; }
.bt-star:focus-visible .bt-star-hit { outline: 2px solid var(--focus); outline-offset: -4px; }
@media (prefers-reduced-motion: no-preference) { .bt-star-pill { animation: starpill 2.4s ease-in-out infinite; } }
@keyframes starpill { 50% { box-shadow: 0 0 26px -2px rgba(77, 184, 232, .95); } }

/* the quote card: docked along the bottom of the stage on phones, floating beside the snowball on wide stages */
.qcard { position: absolute; z-index: 4; left: 8px; right: 8px; bottom: 8px; padding: 10px 12px 10px; background: rgba(246, 248, 250, .96); border: 1px solid var(--rule-2); border-top: 2px solid var(--c, var(--green)); box-shadow: 0 18px 40px -16px rgba(18, 53, 91, .3); animation: qin .2s var(--ease) both; }
@keyframes qin { from { opacity: 0; transform: translateY(6px); } }
.qcard.qc-free { --c: var(--gold); } .qcard.qc-shut { --c: #B3C6D8; }
.qcard.qc-pool { box-shadow: 0 18px 40px -16px rgba(18, 53, 91, .3), 0 0 0 1px rgba(77, 184, 232, .5); }
@media (pointer: coarse) { .qcard:not(:has(.qc-x)) { display: none; } }
@media (min-width: 620px) { .qcard { right: auto; bottom: auto; width: 270px; } }
.qc-x { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-3); cursor: pointer; }
.qc-x:hover { color: var(--ink); background: var(--green-soft); }
.qc-kick { margin: 0 38px 6px 0; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.qc-kick span:first-child { color: var(--c, var(--green)); }
.qc-tag { color: var(--gold) !important; border: 1px solid rgba(77, 184, 232, .55); padding: 1px 5px; }
.qc-title { margin: 0 0 2px; font: 600 1.15rem/1.05 var(--display); color: var(--ink); }
.qc-text { margin: 4px 0 10px; font-size: .86rem; line-height: 1.45; color: var(--ink-2); }
.qc-coin-h { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.qc-img { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; box-shadow: 0 0 0 2px var(--c), 0 0 14px -2px var(--c); }
.qc-names { display: grid; min-width: 0; }
.qc-names b { font: 600 15px/1.15 var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-names span { font-size: .8rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 10px 0 6px; background: var(--rule); border: 1px solid var(--rule); }
.qc-row { min-width: 0; background: var(--deck); padding: 5px 7px; }
.qc-row:last-child { grid-column: 1 / -1; }
.qc-row dt { font: 400 8.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.qc-row dd { margin: 1px 0 0; font: 500 12px/1.3 var(--mono); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-open { display: inline-flex; align-items: center; min-height: 44px; font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--green); text-decoration: none; }
.qc-open:hover { color: var(--green-hi); text-decoration: underline; }

/* ---------- the listings tape: the real listings crawling ---------- */
.tape { grid-area: tape; position: relative; background: #E7F0F8; padding: 5px 0; overflow: hidden; }
.tape::before, .tape::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--shade), var(--shade-2) 60%, var(--shade)); opacity: .75; }
.tape::before { top: 0; } .tape::after { bottom: 0; }
.tape-win { overflow: hidden; }
.tape-track { display: flex; width: max-content; }
.tape-run { display: flex; flex: none; }
.tp-i { display: inline-flex; align-items: baseline; gap: 8px; padding: 0 16px; height: 30px; line-height: 30px; border-right: 1px solid var(--rule); font: 400 11px/30px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.tp-i b { font-weight: 600; color: var(--ink); }
.tp-i .tp-sh { color: var(--ink-3); }
.tp-note { color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .tape-track { animation: crawl var(--dur, 30s) linear infinite; }
  .tape:hover .tape-track, .tape:focus-within .tape-track { animation-play-state: paused; }
}
@keyframes crawl { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tape-win { overflow-x: auto; scrollbar-width: none; }
  .tape-run[aria-hidden="true"] { display: none; }
}

/* ---------- below the hero ---------- */
.home > .wrap { padding-top: var(--sec, 56px); padding-bottom: var(--sec, 56px); display: grid; gap: var(--sec, 56px); }
.home-sec { min-width: 0; }
.sec-kick { margin: 0 0 10px; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--green); display: flex; align-items: center; gap: 10px; }
.sec-kick::before { content: ""; width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
.sec-title { margin: 0 0 16px; font: 600 clamp(1.35rem, 5.6vw, 2.2rem)/1.15 var(--display); letter-spacing: -.01em; color: var(--ink); }
.sec-lede { margin: 0 0 20px; max-width: 62ch; color: var(--ink-2); line-height: 1.6; }
.sec-more { margin: 20px 0 0; }
.sec-more a { color: var(--green); font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.sec-more a:hover { color: var(--green-hi); text-decoration: underline; text-underline-offset: 4px; }

/* how a listing works: four steps */
.hsteps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; background: none; border: 0; }
.hsteps li { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); }
.hs-n { margin: 0; grid-column: 2; font: 500 11px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--green) !important; }
.hsteps h3 { margin: 6px 0 0; grid-column: 2; font: 600 1.08rem/1.1 var(--display); color: var(--ink); }
.hsteps li > p:last-child { margin: 6px 0 0; grid-column: 2; color: var(--ink-2); line-height: 1.5; font-size: .93rem; }
.vg { grid-row: span 3; width: 92px; height: auto; background: var(--well); border: 1px solid var(--rule); }
.vg-rail { fill: #E7F0F8; stroke: var(--rule-2); }
.vg-card { fill: #E7F0F8; stroke: var(--rule-2); } .vg-band { fill: var(--green); }
.vg-num { font: 700 11px var(--mono); fill: var(--ink); letter-spacing: .05em; } .vg-dash { stroke: var(--rule-2); stroke-dasharray: 3 3; }
.vg-string { stroke: rgba(18, 53, 91, .55); stroke-width: 1.2; }
.vg-cap { fill: var(--gold); }
.vg-ball { fill: var(--shade-2); } .vg-big { fill: var(--green); }
.vg-ring { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 3 3; opacity: .45; }
.vg-halo { fill: rgba(22, 104, 192, .22); }
.vg-wick { stroke: var(--green); stroke-width: 1.5; } .vg-candle { fill: var(--green); }
.vg-track { fill: var(--well); stroke: var(--rule-2); }
.vg-s1 { fill: var(--lane-house); } .vg-s2 { fill: var(--lane-holders); } .vg-s3 { fill: var(--lane-buyback); }
.vg-lbl { font: 600 11px var(--mono); fill: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .vg.play .vg-ticket { animation: vg-ticket .7s var(--ease) both; }
  .vg.play .vg-drop { animation: vg-drop .9s cubic-bezier(.3, 1.4, .5, 1) both; transform-origin: 60px 12px; }
  .vg.play .vg-halo { animation: vg-halo 1.6s var(--ease) both; transform-origin: 44px 46px; transform-box: view-box; }
  .vg.play .vg-big { animation: vg-grow 1.6s var(--ease) both; transform-origin: 44px 46px; transform-box: view-box; }
  .vg.play .vg-candle { animation: vg-candle 1.4s var(--ease) both; transform-origin: 92px 76px; transform-box: view-box; }
  .vg.play .vg-s { animation: vg-fill .5s var(--ease) both; transform-box: fill-box; transform-origin: left; }
  .vg.play .vg-s2 { animation-delay: .25s; } .vg.play .vg-s3 { animation-delay: .5s; }
  .hsteps li:hover .vg-drop { animation: vg-swing 1.4s ease-in-out; transform-origin: 60px 12px; transform-box: view-box; }
}
@keyframes vg-ticket { from { transform: translateY(26px); opacity: 0; } }
@keyframes vg-drop { from { transform: translateY(-40px); opacity: 0; } }
@keyframes vg-halo { from { transform: scale(.4); opacity: 0; } }
@keyframes vg-grow { from { transform: scale(.6); } }
@keyframes vg-candle { from { transform: scaleY(.15); } }
@keyframes vg-fill { from { transform: scaleX(0); } }
@keyframes vg-swing { 20% { transform: rotate(14deg); } 45% { transform: rotate(-9deg); } 70% { transform: rotate(4deg); } }
@media (min-width: 760px) { .hsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .hsteps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hsteps li { grid-template-columns: minmax(0, 1fr); row-gap: 4px; padding: 18px; }
  .hs-n, .hsteps h3, .hsteps li > p:last-child { grid-column: 1; }
  .vg { grid-row: auto; width: 100%; max-width: 160px; margin-bottom: 10px; }
}

/* fees */
.fsplit { display: flex; gap: 2px; height: 26px; margin: 4px 0 20px; max-width: 760px; }
.fsplit i { display: flex; align-items: center; justify-content: center; height: 100%; background: var(--c); overflow: hidden; }
.fsplit i span { font: 700 11px/1 var(--mono); color: #fff; }
.c-house { --c: var(--lane-house); } .c-holders { --c: var(--lane-holders); } .c-burn { --c: var(--lane-buyback); }
.fparts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; max-width: 760px; background: var(--rule); border: 1px solid var(--rule); }
.fparts li { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); column-gap: 14px; padding: 12px 14px; background: var(--deck); box-shadow: inset 3px 0 0 var(--c); }
.fparts b { grid-row: span 2; font: 600 1.35rem/1.1 var(--mono); letter-spacing: -.04em; color: var(--c); }
.fp-l { font-weight: 700; color: var(--ink); }
.fp-t { color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
@media (min-width: 900px) {
  .fparts { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .fparts li { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .fparts b { grid-row: auto; font-size: 2rem; }
  .fsplit { max-width: none; }
}
.deal { list-style: none; margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.deal li { display: grid; grid-template-columns: 7.4em minmax(0, 1fr); gap: 12px; align-items: baseline; }
.deal b { font: 600 .78rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.deal span { color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
@media (min-width: 900px) { .deal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .deal li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.note-glow { margin: 20px 0 0; padding: 12px 14px; border: 1px dashed rgba(22, 104, 192, .55); color: var(--ink-2); font-size: .9rem; line-height: 1.45; max-width: 62ch; background: var(--green-soft); }
.ca-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 20px 0 0; font-size: .85rem; color: var(--ink-3); }
.ca-line code { font-size: .76rem; overflow-wrap: anywhere; color: var(--ink-2); }

/* the biggest coins by share: a dense quote list */
.qboard { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); background: var(--deck); }
.qboard li { border-top: 1px solid var(--rule); }
.qboard li:first-child { border-top: 0; }
.qboard a, .qb-h { display: grid; grid-template-columns: 2em minmax(0, 1fr) 6em 5.6em 4.2em; gap: 10px; align-items: center; padding: 10px 12px; color: inherit; text-decoration: none; font: 400 12.5px/1.3 var(--mono); }
.qboard a:hover { background: var(--green-soft); }
.qb-h { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); background: rgba(246, 248, 250, .6); }
.qb-r { color: var(--gold); }
.qb-n { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.qb-n b { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qb-n small { color: var(--ink-3); font-size: 10px; white-space: nowrap; }
.qb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; align-self: center; }
.qb-m, .qb-s, .qb-ch { text-align: right; white-space: nowrap; }
@media (max-width: 419px) { .qboard a, .qb-h { grid-template-columns: 1.6em minmax(0, 1fr) 5.4em 3.8em; } .qb-ch { display: none; } .qb-n small { display: none; } }
.qboard-empty { padding: 16px; border: 1px dashed var(--rule-2); }
.qboard-empty p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.45; }

/* the board today and the newest listings */
.live { display: grid; gap: 32px; }
@media (min-width: 900px) { .live { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.lv-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.lv { min-width: 0; padding: 12px; background: var(--deck); }
.lv b { display: block; font: 500 clamp(1.05rem, 5vw, 1.7rem)/1.1 var(--mono); letter-spacing: -.04em; color: var(--ink); overflow-wrap: anywhere; }
.lv span { display: block; margin-top: 4px; font: 400 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.live-new h3 { margin: 0 0 10px; font: 600 1.1rem/1.1 var(--display); color: var(--ink); }
.newest { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--rule); }
.newest li + li { border-top: 1px solid var(--rule); }
.newest a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; min-height: 54px; color: inherit; text-decoration: none; }
.newest a:hover { background: var(--green-soft); }
.newest img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.nw-n { display: grid; min-width: 0; }
.nw-n b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-n > span { display: flex; gap: 10px; font-size: .8rem; color: var(--ink-3); }
.nw-tk { color: var(--green); font-family: var(--mono); font-size: .75rem; }
.nw-m { font: 400 .82rem/1 var(--mono); color: var(--ink-2); }
.newest-empty { padding: 16px; border: 1px dashed var(--rule-2); }
.newest-empty p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.45; }

@media (max-width: 359px) {
  .hero-copy { padding: 18px 12px 20px; }
  .lv-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .deal li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hsteps li { grid-template-columns: 72px minmax(0, 1fr); }
  .vg { width: 72px; }
}
@media (prefers-reduced-motion: reduce) { .qcard, .bt-star-pill { animation: none; } }

/* Explore, leaderboard, coin page: console data grid, lane tracks, instrument layout (docs/DESIGN-CONSOLE.md). */

/* ---------- shared coin rows ---------- */
.xr-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--well); }
.xr-n { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.xr-n b { font: 650 15px/1.25 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xr-n small { font: 400 11.5px/1.3 var(--mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chg { font: 400 13px/1.2 var(--mono); }
.pnl-b .empty { border: 0; margin: 0; background: none; box-shadow: none; backdrop-filter: none; }

/* ---------- explore ---------- */
.xmain { display: grid; gap: 14px; min-width: 0; }
.xmain .pnl + .pnl { margin: 0; }
.xbar-b { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; }
.xbar-b input { width: 100%; min-height: 44px; margin: 0; }
.xbar-b .seg { display: flex; width: 100%; }
.xbar-b .seg button { flex: 1 1 auto; min-height: 44px; padding: 0 8px; font-size: 10.5px; letter-spacing: .02em; }
.xcount { font: 400 var(--t1)/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 760px) {
  .xbar-b { grid-template-columns: minmax(200px, 1fr) auto auto; }
  .xbar-b .seg { width: auto; }
  .xbar-b .seg button { padding: 0 14px; font-size: 11px; }
  .xcount { min-width: 80px; text-align: right; }
}
.xtable { overflow: hidden; }
.xr { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "img n m" "img n c"; align-items: center; column-gap: 12px; row-gap: 0; padding: 9px 14px; min-height: 60px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; position: relative; }
.xr:first-child { border-top: 0; }
a.xr:hover { background: rgba(195, 220, 240, .28); }
a.xr .xr-img, .tr-row .xr-img { transition: transform .3s var(--ease); }
a.xr:hover .xr-img, .tr-row:hover .xr-img { transform: scale(1.06); }
a.xr:focus-visible { outline-offset: -3px; }
.xr-i, .xr-v { display: none; }
.xr-img { grid-area: img; }
.xr-n { grid-area: n; }
.xr-m { grid-area: m; font: 400 14px/1.2 var(--mono); text-align: right; white-space: nowrap; }
.xr-c { grid-area: c; text-align: right; }
.xr-i, .xr-v { font: 400 12.5px/1.2 var(--mono); }
.xr-i { color: var(--ink-3); }
.xr-h { display: none; }
.xr-sk { height: 60px; margin: 0; border-radius: 0; }
@media (min-width: 640px) {
  .xr { grid-template-columns: 28px 40px minmax(0, 1fr) 96px 72px 96px; grid-template-areas: "i img n m c v"; }
  .xr-i, .xr-v { display: block; }
  .xr-v { text-align: right; grid-area: v; }
  .xr-i { grid-area: i; }
  .xr-h { display: grid; min-height: 44px; background: var(--well); font: 400 var(--t1)/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
  .xr-h span { font: inherit; }
  .xr-h .xr-img { background: none; height: auto; }
}
@media (min-width: 1100px) {
  .xr { grid-template-columns: 28px 40px minmax(0, 1fr) 90px 66px 90px; column-gap: 10px; }
}
@media (min-width: 1240px) { .xr { grid-template-columns: 30px 40px minmax(0, 1fr) 110px 80px 110px; column-gap: 14px; } }
a.xr[aria-current="true"] { background: rgba(195, 220, 240, .4); box-shadow: inset 3px 0 0 var(--blue); }
.xinsp { display: none; }
@media (min-width: 1100px) { .xinsp { display: block; } }
.xi-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.xi-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.xi-name { margin: 0; font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
.xi-sub { margin: 4px 0 0; font: 400 12px/1.3 var(--mono); }
.xi-ro { grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.xi-ro .ro-v { font-size: 20px; }
.xi-ch { margin: 0 0 14px; }
.xinsp .btn { width: 100%; justify-content: center; }

/* ---------- leaderboard tracks ---------- */
.lbmain { display: grid; gap: 14px; min-width: 0; align-content: start; }
.lbmain .pnl + .pnl, .tk > .pnl { margin: 0; }
.track .pnl-h { border-left: 3px solid var(--c); }
.tr-share { font: 400 var(--t1)/1 var(--mono); letter-spacing: .05em; color: var(--ink-2); }
.tr-text { margin: 0; padding: 10px 14px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.tr-list { list-style: none; margin: 0; padding: 0; }
.tr-list li + li { border-top: 1px solid var(--line); }
.tr-row { display: grid; grid-template-columns: 34px 40px minmax(0, 1fr) auto; grid-template-areas: "r img n mc" "r img n sh"; align-items: center; column-gap: 10px; padding: 9px 14px; min-height: 60px; color: var(--ink); text-decoration: none; }
.tr-row:hover { background: rgba(195, 220, 240, .28); }
.tr-row { transition: background-color .2s; }
.tr-row:focus-visible { outline-offset: -3px; }
.tr-rank { grid-area: r; font: 400 15px/1 var(--mono); color: var(--c); }
.tr-row .xr-img { grid-area: img; } .tr-row .xr-n { grid-area: n; }
.tr-mc { grid-area: mc; font: 400 14px/1.2 var(--mono); text-align: right; white-space: nowrap; }
.tr-sh { grid-area: sh; font: 400 11.5px/1.3 var(--mono); color: var(--ink-3); text-align: right; white-space: nowrap; }
@media (min-width: 640px) { .tr-row { grid-template-columns: 44px 40px minmax(0, 1fr) 110px 150px; grid-template-areas: "r img n mc sh"; column-gap: 14px; } }
.rules p { margin: 0 0 10px; font-size: 14.5px; }
.rules .btn { margin-top: 4px; }
.insp .pnl + .pnl { margin-top: 14px; }

/* ---------- coin page ---------- */
.tk { grid-template-columns: minmax(0, 1fr); }
.tk > * { min-width: 0; }
.tk-id { display: flex; align-items: center; gap: 14px; }
.tk-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.tk-head .tk-id { margin-top: 12px; }
.tk-id h1 { margin: 0 0 6px; overflow-wrap: anywhere; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; font: 400 12.5px/1.5 var(--mono); color: var(--scope-ink-2); }
.tk-meta span { display: inline-flex; align-items: center; gap: 5px; }
.tk-meta { gap: 2px 14px; }
.tk-meta span { white-space: nowrap; }
.tk-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--scope-ink-3); margin-right: 2px; }
.tk-meta .ok { color: var(--ok); } .tk-meta .ic { width: 13px; height: 13px; }
.tk-head .tk-img { box-shadow: 0 0 0 2px var(--scope), 0 0 0 3px var(--core-hi); }
.tk-head p.row .mute { color: var(--scope-ink-3); }
.tk-desc { margin: 14px 0 0; font-size: 15.5px; max-width: 70ch; overflow-wrap: anywhere; }
.gauge { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; height: 26px; }
.gauge i { background: var(--well); border: 1px solid var(--line-2); border-radius: 8px; transform-origin: bottom; }
.gauge i.on { background: var(--blue); border-color: var(--blue); }
.gz-pc { font: 400 15px/1 var(--mono); color: var(--ink); letter-spacing: 0; }
.tk-actions { display: grid; gap: 8px; }
.tk-actions .btn { width: 100%; justify-content: center; min-height: 44px; }
.tk-addr { display: grid; gap: 12px; }
.tk-addr .addr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
.tk-addr .addr .ro-k { flex: 0 0 100%; }
.tk-addr .addr code { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; font: 400 12.5px/1.4 var(--mono); }
.tk-report details { margin: 0; border: 0; background: none; padding: 0; }
.tk-report summary.pnl-h { text-transform: none; letter-spacing: .02em; font-size: 13.5px; cursor: pointer; border-bottom: 0; min-height: 44px; }
.tk-report details[open] summary.pnl-h { border-bottom: 1px solid var(--line); }
.tk-report .btn { min-height: 44px; }
.tk-report select, .tk-report textarea { width: 100%; }
@media (min-width: 1100px) {
  .tk { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: repeat(var(--m, 1), min-content) 1fr; }
  .tk > * { grid-column: 1; }
  .tk > .tk-insp { grid-column: 2; grid-row: 1 / span var(--n); }
  .tk-insp .pnl + .pnl { margin-top: 14px; }
}
@media (max-width: 400px) { .tk-img { width: 56px; height: 56px; } }

@media (prefers-reduced-motion: reduce) { .gauge i { transition: none; } }

/* empty lanes: one compact row, no drawing */
.lbmain .empty { border: 0; padding: 6px 0; text-align: left; background: none; box-shadow: none; backdrop-filter: none; }
.lbmain .empty .empty-art { display: none; }
.lbmain .empty p { margin: 0; max-width: none; }

/* ---------- brightest houses: one row per lit house, a warm bar for its share ---------- */
.tb-list { list-style: none; margin: 0; padding: 0; }
.tb-list > li { position: relative; border-top: 1px solid var(--line); }
.tb-list > li:first-child { border-top: 0; }
.tb-row { display: grid; grid-template-columns: 2em 40px minmax(0, 1fr) auto; grid-template-areas: "r i n s" "r i p p"; gap: 2px 12px; align-items: center; padding: 12px 14px 14px; min-height: 64px; color: inherit; text-decoration: none; transition: background-color .2s; }
a.tb-row:hover { background: rgba(77, 184, 232, .05); color: inherit; }
.tb-row .tb-rank { grid-area: r; font: 500 .85rem/1 var(--mono); color: var(--ink-3); }
.tb-row.pool .tb-rank { color: var(--gold-hi); }
.tb-row .tb-img { grid-area: i; }
.tb-row .tb-img img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(77, 184, 232, var(--l, .4)), 0 0 16px -4px rgba(77, 184, 232, var(--l, .4)); }
.tb-row .xr-n { grid-area: n; }
.tb-blocks { grid-area: s; text-align: right; display: grid; }
.tb-blocks b { font: 600 1.05rem/1.1 var(--display); color: var(--ink); }
.tb-blocks small { font-size: .72rem; color: var(--ink-3); }
.tb-mc { display: none; font: 400 .85rem/1 var(--mono); color: var(--ink-2); text-align: right; }
.tb-pool { grid-area: p; font-size: .8rem; color: var(--ink-3); }
.tb-pool.in { color: var(--gold-hi); }
.tb-pool.in::before { content: "★ "; }
.tb-bar { position: absolute; left: 14px; bottom: 6px; height: 2px; width: calc((100% - 28px) * var(--w, 0)); border-radius: 1px; background: linear-gradient(90deg, var(--candle-deep), var(--candle)); box-shadow: 0 0 8px rgba(77, 184, 232, .6); pointer-events: none; }
.tb-h { display: none !important; }
@media (min-width: 760px) {
  .tb-row { grid-template-columns: 2em 40px minmax(0, 1.4fr) 7em 7em minmax(0, 1fr); grid-template-areas: "r i n s m p"; }
  .tb-mc { display: block; grid-area: m; }
  .tb-pool { text-align: right; }
  .tb-h { display: grid !important; min-height: 0; padding-block: 8px; font: 500 .68rem/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
  .tb-h .tb-blocks, .tb-h .tb-mc { text-align: right; }
}

/* the lane from above: one square per plot */
.lanestrip { display: block; width: 100%; height: auto; }
.ls-off { fill: #E7F0F8; stroke: rgba(22, 104, 192, .18); stroke-width: .03; }
.ls-lit { fill: var(--candle); }
.ls-shut { fill: #D3E0EC; }
.ls-next { fill: rgba(77, 184, 232, .12); stroke: var(--candle); stroke-width: .07; }

/* the coin page: its house */
.tt-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tt-map { border-radius: 8px; background: linear-gradient(180deg, #E7F0F8, #E7F0F8); border: 1px solid var(--line); padding: 8px 6px 4px; }
.tt-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.tt-facts div:last-child { grid-column: 1 / -1; }
.tt-facts div { min-width: 0; }
.tt-facts dt { font: 500 .68rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.tt-facts dd { margin: 2px 0 0; font-weight: 650; color: var(--ink); }
.tt-facts dd.in { color: var(--gold-hi); }


/* Treasury and Launch consoles (docs/DESIGN-CONSOLE.md). Panels, readouts and event logs from shell.css; this file only adds the
   treasury dashboard grid, the burn log, and the launch pre-flight layout (step rail, review checklist, launch sequence, pad). */

/* ---------- treasury ---------- */
.tr-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 10px 0 14px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); font-size: 13.5px; color: var(--ink-2); min-height: 44px; }
.tr-addr .ro-k { margin-right: 4px; }
.ro-row + .tr-addr { margin-top: 10px; }
.tr-grid { display: grid; gap: 14px; margin: 14px 0; align-items: start; }
.tr-grid > .pnl + .pnl, .tr-grid > .pnl { margin-top: 0; }
@media (min-width: 1000px) { .tr-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.tr-h { font-size: 20px; margin: 0 0 12px; }
.tr-grid .chartbox { min-width: 0; }
.tr-grid .small { margin: 8px 0 0; }
.tr-plan { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.tr-plan li { display: grid; grid-template-columns: minmax(78px, auto) minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 9px 0 9px 12px; border-bottom: 1px solid var(--line); position: relative; }
.tr-plan li::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: var(--c); border-radius: 8px; }
.tr-plan .ln { font: 400 10px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.tr-plan .cn { font-weight: 600; overflow-wrap: anywhere; }
.tr-plan .am { font: 400 13px/1.4 var(--mono); white-space: nowrap; }
.tr-log > li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "bd v" "t tx"; padding: 11px 14px 11px 17px; position: relative; }
.tr-log > li::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: var(--c); border-radius: 8px; }
.tr-log .bd { grid-area: bd; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tr-log .bd .ln { font: 400 10px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.tr-log .t { grid-area: t; }
.tr-log .v { grid-area: v; }
.tr-log .tx { grid-area: tx; text-align: right; font: 400 12.5px/1.4 var(--mono); min-width: 0; }
.tr-log .tx a { display: inline-flex; align-items: center; min-height: 44px; }
.tr-note { margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); }
@media (min-width: 700px) {
  .tr-log > li { grid-template-columns: 96px minmax(0, 1fr) auto 150px; grid-template-areas: "t bd v tx"; align-items: center; }
}

/* ---------- launch: pre-flight ---------- */
.lc { display: grid; gap: 14px; align-items: start; grid-template-columns: minmax(0, 1fr); grid-template-areas: "rail" "insp" "stage"; }
.lc-rail { grid-area: rail; }
.lc-stage { grid-area: stage; min-width: 0; }
.lc-insp { grid-area: insp; min-width: 0; }
.lc-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); overflow: hidden; }
.lc-rail li { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 8px; color: var(--ink-3); font: 600 13.5px/1.1 var(--sans); position: relative; }
.lc-rail li + li { border-left: 1px solid var(--line); }
.lc-rail i { font: 400 11px/1 var(--mono); font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; flex: none; }
.lc-rail li.on { color: var(--ink); background: var(--blue-soft); box-shadow: inset 0 -3px 0 var(--blue); }
.lc-rail li.on i { background: var(--blue); border-color: var(--blue); color: var(--on-blue); box-shadow: 0 6px 10px -6px rgba(18, 53, 91, .5); }
.lc-rail li.done { color: var(--ink-2); }
.lc-rail li.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
@media (min-width: 1000px) {
  .lc { grid-template-columns: 168px minmax(0, 1fr) 340px; grid-template-areas: "rail stage insp"; }
  .lc-rail { grid-template-columns: 1fr; position: sticky; top: calc(var(--bar-h) + 16px); }
  .lc-rail li { justify-content: flex-start; padding: 12px 14px; min-height: 52px; }
  .lc-rail li + li { border-left: 0; border-top: 1px solid var(--line); }
  .lc-rail li.on { box-shadow: inset 3px 0 0 var(--blue); }
  .lc-insp { position: sticky; top: calc(var(--bar-h) + 16px); }
}
.lc .pnl + .pnl { margin-top: 12px; }
.lform .pnl-b > label:first-child { margin-top: 0; }
.lform input, .lform textarea { border-radius: var(--r) !important; }
.lform .btn[type=submit] { min-height: 48px; }
.lform summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }

/* the coin as a snowball: the ticker's image set on a shaded snowball, ready to roll (the sun is upper left, as on the hill) */
.pad { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px; border-radius: 0 0 var(--r) var(--r);
  background: linear-gradient(180deg, var(--deck), #fff); }
.pad .ring { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.pad .ring::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 10px; border-radius: 50%; background: rgba(121, 173, 216, .35); filter: blur(2px); }
.pad .ball { position: relative; z-index: 1; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0, #F5F9FD 55%, #BFDDF3 100%); box-shadow: 0 10px 20px -10px rgba(18, 53, 91, .45), inset 0 -6px 12px -6px rgba(121, 173, 216, .5); }
.pad .ball img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 3px #fff; background: var(--track); }
.pad-t { min-width: 0; }
.pad .nm { font: 600 20px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.pad .tk { font: 400 12px/1.4 var(--mono); color: var(--blue-hi); letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; }
.pad dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 10px 0 0; font: 400 11.5px/1.4 var(--mono); }
.pad dt { color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.pad dd { margin: 0; color: var(--ink); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 999px) { .pad { grid-template-columns: 84px minmax(0, 1fr); padding: 12px 14px; } .pad .ring { width: 84px; height: 84px; } .pad .ball { width: 74px; height: 74px; } .pad .ball img { width: 44px; height: 44px; } }
.lc-insp .pnl-h { border-bottom-color: var(--line); }
.perks > summary { cursor: pointer; list-style: none; }
.perks > summary::-webkit-details-marker { display: none; }
.perks > summary::after { content: "+"; margin-left: auto; font-size: 16px; }
.perks[open] > summary::after { content: "\2212"; }
@media (min-width: 1000px) { .perks > summary { cursor: default; } .perks > summary::after { content: none !important; } }
.perks .facts.mini { margin: 0; padding-top: 4px; padding-bottom: 4px; }

/* review: a pre-flight checklist */
.pf-list { list-style: none; margin: 14px 0; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.pf { display: grid; grid-template-columns: 10px 92px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.pf:first-child { border-top: 0; }
.pf .lt, .lc-check .lt { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); align-self: center; box-shadow: 0 0 0 3px rgba(46, 107, 82, .18); }
.pf .k { color: var(--ink-3); font-size: 13px; }
.pf .v { min-width: 0; overflow-wrap: anywhere; }
.pf .err { color: var(--bad); font-weight: 700; }
@media (max-width: 519px) { .pf { grid-template-columns: 10px minmax(0, 1fr); } .pf .v { grid-column: 2; } }
.pf-h { margin: 18px 0 2px; }
.review details { margin-top: 12px; }
.review summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }

/* sign: the launch sequence */
.progress.seq { gap: 0; margin: 14px 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.progress.seq li { gap: 12px; padding: 14px; border-top: 1px solid var(--line); }
.progress.seq li:first-child { border-top: 0; }
.progress.seq li i { font: 400 11.5px/1 var(--mono); font-style: normal; letter-spacing: .05em; color: var(--ink-3); width: 26px; flex: none; }
.progress.seq li.on { background: var(--blue-soft); }
.progress.seq li.fail { background: rgba(22, 104, 192, .12); }

/* closed: standby */
.lc-check { list-style: none; margin: 0; padding: 0; }
.lc-check li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border-top: 1px solid var(--line); color: var(--ink-2); }
.lc-check li:first-child { border-top: 0; }
.lc-check li.ok { color: var(--ink); }
.lc-check .lt { background: var(--trace); box-shadow: 0 0 0 3px rgba(77, 184, 232, .16); }
.lc-check li.ok .lt { background: var(--ok); box-shadow: 0 0 0 3px rgba(46, 107, 82, .18); }
.lc-check .st { font: 400 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.lc-check li.ok .st { color: var(--ok); }
.lc-news { display: grid; gap: 12px; justify-items: start; }
.lc-news .mark svg { width: 56px; height: 56px; display: block; }
.lc-news p { margin: 0; }

.perks:not([open]) > summary { border-bottom: 0; }
.perks { overflow: hidden; }

/* what every launch gets: icon + text rows, no browser bullets */
.perks ul { list-style: none; margin: 0; padding: 0 14px 12px; }
.perks li { display: flex; align-items: center; gap: 9px; padding: 5px 0; }
.perks li .ic { width: 17px; height: 17px; flex: none; color: var(--blue); }

/* ---------- charts, tooltips, micro-interactions ---------- */
.chartbox { position: relative; }
.chartbox .chart .plot { fill: var(--well); stroke: var(--line); }
.chartbox .chart .grid-l { stroke: var(--line-2); stroke-dasharray: 2 5; }
.chartbox .chart .axis { fill: var(--ink-3); }
.chartbox .chart .line { stroke: var(--green); stroke-width: 2.5; }
.chartbox .chart .dot { fill: var(--c, var(--green)); stroke: #fff; stroke-width: 2; }
.chartbox .chart .hair { stroke: var(--line-2); stroke-dasharray: 3 4; }
.chartbox .tip { background: var(--card-solid); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 14px 30px -10px rgba(18, 53, 91, .3); z-index: 2; }
.tr-plan li, .tr-log > li { transition: background-color .2s; }
.tr-plan li:hover, .tr-log > li:hover { background: rgba(195, 220, 240, .25); }
.tr-addr .btn, .tr-addr button { border-color: var(--line-2); }
.lc-rail li { transition: color .25s, background-color .25s, box-shadow .25s; }
.lc-rail i { transition: background-color .25s, border-color .25s, box-shadow .25s, transform .3s var(--ease); }
.lc-rail li.on i { transform: scale(1.1); }
.lform .drop { transition: border-color .2s, background-color .2s; }
.lform .drop:hover { border-color: var(--blue); background: var(--blue-soft); }
.pf { transition: background-color .2s; }
.pf:hover { background: rgba(195, 220, 240, .22); }
.progress.seq li.on i { color: var(--blue-hi); }
.pf-list, .progress.seq { background: var(--well); }
.perks li .ic { color: var(--blue-hi); }
.lc-news .mark { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #D3E0EC 0, #E7F0F8 70%); box-shadow: 0 0 0 1px var(--line-2), 0 10px 22px -10px rgba(18, 53, 91, .45); }
.lc-news .mark svg { width: 44px; height: 44px; }
@media (max-width: 380px) { .tr-plan li { grid-template-columns: minmax(0, 1fr) auto; } .tr-plan .ln { grid-column: 1 / -1; } }

/* the split's three lanes, each with its colour bar */
.tr-lanes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.tr-lanes li { display: grid; gap: 3px; padding: 12px 14px; background: var(--deck); border-radius: var(--r-s); box-shadow: inset 4px 0 0 var(--c); }
.tr-lanes b { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.tr-lanes span { color: var(--ink-2); font-size: 14px; line-height: 1.45; }

/* Docs pages (client/pages/docs.ts): How it works (tabbed manual), FAQ (master-detail / accordion), Rules (manual with a sticky index).
   Served after style.css, story.css and shell.css; uses the console primitives (.phead, .pnl, .tabbar, .acq). */

/* ---------- shared ---------- */
.doc-h h2 { text-transform: none; margin: 0; font: 600 17px/1.2 var(--display); letter-spacing: 0; color: var(--ink); }
.doc.pnl + .doc.pnl { margin-top: 0; }
.spec { margin: 0; display: grid; }
.spec-r { display: grid; gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.spec-r:first-child { border-top: 0; padding-top: 0; }
.spec-r:last-child { padding-bottom: 0; }
.spec dt { font: 400 11px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { margin: 0; display: grid; gap: 4px; }
.spec dd b { font: 400 15px/1.35 var(--mono); color: var(--ink); letter-spacing: -.02em; }
.spec dd span { color: var(--ink-2); font-size: 14.5px; max-width: 70ch; }
@media (min-width: 760px) { .spec-r { grid-template-columns: 200px minmax(0, 1fr); } .spec dt { padding-top: 4px; } }

/* ---------- how it works ---------- */
.how-page > .tabbar { margin-bottom: 14px; }
@media (min-width: 760px) { .how-page > .tabbar { max-width: 560px; } }
.how-panel { min-width: 0; }
.how-panel:focus { outline: none; }
.how-2, .how-1 { display: grid; gap: 14px; align-items: start; }
@media (min-width: 1000px) { .how-2 { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.fw-wrap { max-width: 460px; margin: 0 auto; }
.fw { display: block; width: 100%; height: auto; overflow: visible; }
.fw-orbit { fill: none; stroke: var(--line-2); stroke-width: 1.4; stroke-dasharray: 3 6; }
.fw-lane { fill: none; stroke-width: 1.4; opacity: .55; }
.fw-road { fill: var(--well); stroke: var(--line-2); stroke-width: 1.4; }
.fw-glow { fill: var(--blue-soft); }
.fw-arrow { stroke: var(--blue); }
.fw-node circle { fill: var(--panel); stroke: var(--blue); stroke-width: 1.6; }
.fw-node { color: var(--blue-deep); }
.fw-node .ic { stroke: var(--blue-deep); color: var(--blue-deep); }
.fw-node text { font: 600 13px var(--sans); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.fw-node text.sub { font: 400 11px var(--mono); fill: var(--ink-2); }
.fw-core path { stroke: none; }
@media (prefers-reduced-motion: no-preference) {
  .fw-spin { transform-origin: 200px 200px; animation: fw-turn 60s linear infinite; }
  .fw-spin-1 { animation-duration: 90s; animation-direction: reverse; }
  .fw-spin-2 { animation-duration: 120s; }
  @keyframes fw-turn { to { transform: rotate(360deg); } }
}
.proc { counter-reset: p; list-style: none; margin: 0; padding: 0; }
.proc li { counter-increment: p; position: relative; padding: 14px 0 14px 46px; border-top: 1px solid var(--line); }
.proc li:first-child { border-top: 0; padding-top: 0; }
.proc li:last-child { padding-bottom: 0; }
.proc li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 14px; width: 34px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--well); font: 400 12px/1 var(--mono); color: var(--blue-deep); }
.proc li:first-child::before { top: 0; }
.proc h3 { margin: 0 0 4px; font: 600 17px/1.25 var(--display); }
.proc p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- FAQ: accordion on phones, master-detail on desktop ---------- */
.faq-md { display: none; }
.faq-acc details { background: var(--card); border: 1px solid var(--line-2); margin: 0 0 8px; padding: 0 14px; }
.faq-acc summary { font: 600 15.5px/1.35 var(--sans); min-height: 48px; padding: 10px 0; }
.faq-acc details p { margin: 0 0 14px; color: var(--ink-2); }
@media (min-width: 1000px) {
  .faq-acc { display: none; }
  .faq-md { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 14px; align-items: start; }
  .faq-md > .pnl + .pnl { margin-top: 0; }
  .faq-list { position: sticky; top: calc(var(--bar-h) + 16px); }
  .faq-list .tabbar { flex-direction: column; border: 0; background: none; padding: 6px; gap: 2px; border-radius: 0; }
  .faq-list [role="tab"] { flex: none; text-align: left; white-space: normal; min-height: 44px; padding: 9px 12px; font: 500 14px/1.3 var(--sans); border-radius: 8px; white-space: pre-wrap; }
  .faq-list [role="tab"][aria-selected="true"] { box-shadow: inset 3px 0 0 var(--core-hi); }
  .faq-a { padding: 22px 24px 22px; }
  .faq-a:focus { outline: none; }
  .faq-n { margin: 0 0 10px; font: 400 11px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
  .faq-a h2 { margin: 0 0 12px; font-size: clamp(22px, 2.4vw, 28px); }
  .faq-t { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
}

/* ---------- rules: a manual ---------- */
.rl-grid { display: grid; gap: 14px; align-items: start; }
.rl-body { display: grid; gap: 14px; min-width: 0; }
.rl-body > .pnl { scroll-margin-top: calc(var(--bar-h) + 14px); }
.rl-index { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px 12px; }
.rl-k { margin: 0 0 6px; font: 400 11px/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.rl-index ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rl-index a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--well); color: var(--ink); text-decoration: none; font: 600 13.5px/1 var(--sans); }
.rl-index a i { font: 400 11px/1 var(--mono); font-style: normal; color: var(--blue-deep); }
.rl-index a:hover { border-color: var(--blue); color: var(--blue-deep); }
@media (min-width: 1000px) {
  .rl-grid { grid-template-columns: 220px minmax(0, 1fr); }
  .rl-index { position: sticky; top: calc(var(--bar-h) + 16px); padding: 12px 8px; }
  .rl-k { padding: 0 8px; }
  .rl-index ol { flex-direction: column; gap: 2px; }
  .rl-index a { border: 0; background: none; min-height: 44px; border-radius: 8px; padding: 0 8px; }
  .rl-index a:hover { background: var(--well); }
}
.rl-list { list-style: none; margin: 0; padding: 0; }
.rl-list li { position: relative; margin: 0; padding: 9px 0 9px 24px; border-top: 1px solid var(--line); color: var(--ink-2); }
.rl-list li:first-child { border-top: 0; padding-top: 2px; }
.rl-list li::before { content: ""; position: absolute; left: 3px; top: 1.05em; width: 8px; height: 8px; border: 1.5px solid var(--blue); border-radius: 50%; }
.rl-list li:first-child::before { top: .6em; }
.rl-body .doc .pnl-b > p { margin: 10px 0 0; max-width: 72ch; }
.rl-body .doc .pnl-b > p:first-child { margin-top: 0; }
.rl-body .doc .rl-list { margin: 10px 0 0; }
.rl-body .doc .pnl-b > .rl-list:first-child { margin-top: 0; }
.rl-body .doc .pnl-b > p.mute + .rl-list { margin-top: 8px; }

/* loop labels get a halo in the panel colour so ring strokes never cut through them */
.fw-node text { paint-order: stroke; stroke: var(--card); stroke-width: 5px; stroke-linejoin: round; }

.faq-next { margin-top: 16px; background: none; border: 0; padding: 8px 0; cursor: pointer; font: 700 14px/1 var(--sans); color: var(--blue); min-height: 44px; }

/* ---------- deep-space: lit spheres, tabs, accordions ---------- */
.fw-orbit { stroke: var(--line-2); }
.fw-node .fw-disc { fill: var(--card); stroke: var(--blue); stroke-width: 1.4; }
.fw-node .fw-lit { stroke: var(--sun); stroke-width: 1.6; stroke-linecap: round; opacity: .55; }
.fw-node circle { fill: none; }
.fw-node circle.fw-disc { fill: var(--card); }
.fw-node text { fill: var(--ink); stroke: var(--card-solid); }
.fw-node text.sub { fill: var(--ink-2); }
.fw-node .ic { stroke: var(--blue-hi); color: var(--blue-hi); }
.fw-st { transition: transform .35s var(--ease); transform-box: fill-box; transform-origin: center; }
.fw-node:hover .fw-st { transform: scale(1.12); }
.fw-node:hover .fw-disc { stroke: var(--blue-hi); }
.fw-lane { opacity: .7; }
.proc li::before { color: var(--blue-hi); background: var(--well); border-radius: 8px; transition: border-color .2s, color .2s; }
.proc li:hover::before { border-color: var(--blue); }
.tabbar [role="tab"] { transition: color .2s, background-color .2s, box-shadow .2s, transform .15s var(--ease); }
.tabbar [role="tab"]:active { transform: scale(.97); }
.how-page .tabbar, .faq-list .tabbar { background: var(--well); }
.faq-acc details { border-radius: var(--r); transition: border-color .2s, background-color .2s; }
.faq-acc details[open] { border-color: var(--blue); background: rgba(22, 104, 192, .05); }
.faq-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc summary::after { content: ""; flex: none; width: 8px; height: 8px; border: 0; border-radius: 0; background: none; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease), border-color .2s; }
.faq-acc details[open] summary::after { transform: rotate(-135deg) translateY(-2px); border-color: var(--blue-hi); }
.faq-acc details[open] > p { animation: fade .3s var(--ease) both; }
.faq-list [role="tab"] { border-radius: 8px; }
.faq-list [role="tab"][aria-selected="true"] { box-shadow: inset 3px 0 0 var(--blue); }
.rl-index a { border-radius: 8px; transition: border-color .2s, color .2s, background-color .2s; }
.rl-index a i { color: var(--blue-hi); }
.rl-index a:hover { color: var(--ink); background: var(--blue-soft); }
.rl-list li::before { border-color: var(--blue-hi); background: radial-gradient(circle at 35% 30%, #fff, var(--blue) 60%, transparent 62%); }
.spec dd b { color: var(--ink); }
.faq-next { color: var(--blue-hi); }

/* ---------- Snowball: rounder, quieter selection in the long lists ---------- */
.faq-list [role="tab"][aria-selected="true"] { background: var(--deck-2); color: var(--ink); box-shadow: inset 4px 0 0 var(--green); }
.faq-list [role="tab"]:hover { background: var(--deck); }
.faq-acc details[open] { background: var(--card); border-color: var(--shade-2); }
.faq-acc summary { padding-right: 2px; }
.rl-index a { border-radius: 999px; }
.proc li::before { border-radius: 999px; width: 36px; }
.rl-list li::before { background: var(--shade); border-color: var(--shade-2); }

/* The Hill: the hero stage (client/hill.ts). Snow white, ice-blue shade, frost-cyan pennants for the 5 biggest balls, glacier blue for
   actions. Tokens come from style.css with the palette value as a fallback (docs/LOOK.md). Motion is transform and opacity only. */
.hill { position: relative; min-width: 0; }
.hl-stage { position: relative; width: 100%; height: clamp(310px, 92vw, 460px); overflow: hidden; background: #EEF5FB; isolation: isolate; border-radius: var(--hl-r, 0); touch-action: pan-y; -webkit-user-select: none; user-select: none; }
@media (min-width: 640px) { .hl-stage { height: clamp(460px, 56vw, 600px); } }
.hl-art, .hl-tracks { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hl-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: multiply; }
.hl-tr-faint { opacity: .25; }
.hl-groove { fill: #E1EDF6; stroke: #BFDDF3; stroke-width: 1; stroke-linejoin: round; transition: fill .2s; }
.hl-groove.on { fill: #CDE1F2; stroke: #5E9FD3; }
.hl-balls { position: absolute; inset: 0; pointer-events: none; }

/* ---------- a coin's snowball ---------- */
.hl-ball { position: absolute; left: 0; top: 0; width: var(--hit); height: var(--hit); margin: 0; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; font: inherit; color: inherit; touch-action: manipulation; border-radius: 50%; }
.hl-ball:focus-visible { outline: 2px solid var(--focus, #12355B); outline-offset: -2px; }
.hl-b, .hl-tball { position: absolute; left: 50%; top: 50%; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 64% 30%, #fff 0, #F6F9FB 12%, #EEF5FA 38%, #CFE2F2 72%, #A2CBEC 100%);
  box-shadow: 0 calc(var(--d) * .1) calc(var(--d) * .16) calc(var(--d) * -.06) rgba(18, 53, 91, .45); transition: transform .18s var(--ease, ease); }
.hl-ball:hover .hl-b, .hl-ball.on .hl-b { transform: scale(1.06); }
.hl-ball.on .hl-b { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mitten, #1668C0), 0 calc(var(--d) * .1) calc(var(--d) * .16) calc(var(--d) * -.06) rgba(18, 53, 91, .45); }
.hl-ball.flake .hl-b { background: #fff; box-shadow: 0 0 0 1px #BFDDF3; }
.hl-face { position: absolute; left: 44%; top: 40%; width: var(--f); height: var(--f); margin: calc(var(--f) / -2) 0 0 calc(var(--f) / -2); border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px #fff, 0 1px 3px 1px rgba(18, 53, 91, .35); }
.hl-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hl-flag { position: absolute; left: 50%; bottom: 50%; height: var(--hh); width: calc(var(--hh) * .47); margin-bottom: calc(var(--d) * .38); pointer-events: none; }
.hl-flag svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hl-pole { stroke: #34404D; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.hl-pen { fill: var(--wool, #4DB8E8); stroke: #0A6489; stroke-width: .7; stroke-linejoin: round; }
.hl-tag { position: absolute; left: 50%; top: calc(50% + var(--d) / 2 + 2px); transform: translateX(-50%); padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px #D3E0EC; color: var(--ink, #0F2338); font: 500 11.5px/1.5 var(--mono, "Martian Mono", monospace); white-space: nowrap; pointer-events: none; }
.hl-tag[data-pos="above"] { top: auto; bottom: calc(50% + var(--d) / 2 + 2px); }
.hl-tag[data-pos="right"] { left: calc(50% + var(--d) / 2 + 3px); top: 50%; transform: translateY(-50%); }
.hl-tag[data-pos="left"] { left: auto; right: calc(50% + var(--d) / 2 + 3px); top: 50%; transform: translateY(-50%); }

/* ---------- the visitor's snowball (a toy, not a coin) ---------- */
.hl-toy { position: absolute; left: 0; top: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; cursor: grab; touch-action: none; transform-origin: 0 0; will-change: transform; transition: opacity .18s linear; }
.hl-toy:active { cursor: grabbing; }
.hl-toy.fade { opacity: 0; }
.hl-toy:focus-visible { outline: 2px dashed var(--dusk, #12355B); outline-offset: 2px; }
.hl-tball { inset: 0; left: 0; top: 0; margin: 0; width: 100%; height: 100%; transform-origin: 50% 100%; border-radius: 51% 49% 52% 48% / 49% 52% 48% 51%; box-shadow: 0 0 0 1px rgba(153, 193, 226, .55), 0 calc(var(--d, 40px) * .06) 8px -4px rgba(18, 53, 91, .4); transition: none; }
.hl-tex { position: absolute; inset: 0; border-radius: 50%; will-change: transform;
  background:
    radial-gradient(circle at 30% 34%, rgba(255, 255, 255, .95) 0 7%, transparent 15%),
    radial-gradient(circle at 66% 58%, rgba(255, 255, 255, .8) 0 6%, transparent 13%),
    radial-gradient(circle at 44% 78%, rgba(226, 240, 252, .9) 0 8%, transparent 17%),
    radial-gradient(circle at 78% 30%, rgba(236, 246, 255, .9) 0 5%, transparent 12%),
    radial-gradient(circle at 18% 62%, rgba(206, 228, 246, .55) 0 7%, transparent 16%); }
/* the wobble animates the separate `rotate` property so the ball's inline scale (its size) is left alone */
.hl-toy:hover .hl-tball { animation: hl-wobble .7s ease-in-out 1; }
@keyframes hl-wobble { 0%, 100% { rotate: 0deg; } 25% { rotate: -9deg; } 60% { rotate: 7deg; } }
.hl-hint { position: absolute; left: 0; top: 0; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 0 0 1px #BFDDF3, 0 6px 14px -8px rgba(18, 53, 91, .5); color: var(--dusk, #12355B); font: 500 12px/1.4 var(--sans, Onest, sans-serif); white-space: nowrap; pointer-events: none; transition: opacity .2s; z-index: 0; }
.hl-hint.off { opacity: 0; }
.hl-crumb { position: absolute; left: 0; top: 0; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #BFDDF3; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.hl-back { position: absolute; right: 10px; top: 10px; z-index: 2000; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--dusk, #12355B); box-shadow: 0 0 0 1px #BFDDF3, 0 8px 18px -10px rgba(18, 53, 91, .5); font: 600 13px/1 var(--sans, Onest, sans-serif); cursor: pointer; }
.hl-back:hover { background: #F5F9FD; }
.hl-back:focus-visible { outline: 2px solid var(--focus, #12355B); outline-offset: 2px; }

/* ---------- empty state (no coins on the hill yet) ---------- */
.hl-empty { position: absolute; left: 10px; bottom: 10px; z-index: 1500; max-width: min(300px, 58%); padding: 12px 14px; border-radius: 20px; background: rgba(255, 255, 255, .94); box-shadow: 0 0 0 1px #D3E0EC, 0 12px 30px -18px rgba(18, 53, 91, .35); }
.hl-empty p { margin: 0 0 10px; color: var(--ink-2, #33475C); font-size: 14px; line-height: 1.45; }

/* ---------- a ball's card ---------- */
.hl-card { position: absolute; z-index: 3000; left: 8px; right: 8px; bottom: 8px; padding: 14px 14px 12px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px #D3E0EC, 0 18px 40px -18px rgba(18, 53, 91, .5); color: var(--ink, #0F2338); }
.hl-wide .hl-card { right: auto; bottom: auto; width: 290px; }
.hl-x { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink-3, #4F6377); font-size: 24px; line-height: 1; cursor: pointer; }
.hl-x:hover { background: #ECF3FA; }
.hc-kick { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 40px 6px 0; color: var(--ink-3, #4F6377); font: 400 11px/1.4 var(--mono, "Martian Mono", monospace); letter-spacing: .04em; text-transform: uppercase; }
.hc-head { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-height: 44px; }
.hc-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: #ECF3FA; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--c, #BFDDF3); }
.hc-names { display: grid; min-width: 0; }
.hc-names b { font: 600 17px/1.2 var(--display, Fredoka, sans-serif); }
.hc-names span { color: var(--ink-2, #33475C); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-pool { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 6px 10px; border-radius: 12px; background: rgba(77, 184, 232, .16); color: #084F6C; font-size: 13px; font-weight: 600; line-height: 1.3; }
.hc-pool i { flex: none; width: 10px; height: 10px; background: var(--wool, #4DB8E8); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 10px 0 0; }
.hc-row { min-width: 0; }
.hc-row dt { color: var(--ink-3, #4F6377); font: 400 10.5px/1.3 var(--mono, "Martian Mono", monospace); letter-spacing: .04em; text-transform: uppercase; }
.hc-row dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.hc-row:nth-child(3) { grid-column: 1 / -1; }
.hc-row .up { color: var(--pine, #2E6B52); } .hc-row .down { color: var(--mitten, #1668C0); }
.hc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- drawings used on other pages ---------- */
.ball-art { display: block; width: 100%; height: auto; }
.bd-stage { border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px #D3E0EC; background: #EEF5FB; }
.bd-stage .ball-art { max-width: none; }

@media (prefers-reduced-motion: reduce) {
  .hl-toy:hover .hl-tball { animation: none; }
  .hl-ball .hl-b, .hl-toy, .hl-hint, .hl-groove { transition: none; }
  .hl-toy.fade { transition: opacity .18s linear; }
}
