/* Secret Santa: "the wrapping-paper studio". Wine wrapping paper for the header and the hero, kraft-paper cream for the pages, pine-green
   ink for text, cranberry for action, foil gold for highlights. Flat cut-paper shapes: no glows, no blur; depth is a darker paper layer
   underneath (hard offset shadows). UI language: gift tags (notched labels with a punched hole), ribbons (dividers, splits), stitched
   "cut here" dashes. Colours follow shared/brand.ts COLORS.
   Type: Young Serif (display), Hanken Grotesk (body), DM Mono (hashes, tickets, addresses).
   Served first; story.css, shell.css, home.css and the page sheets are appended after it (server/index.ts). */
@font-face { font-family: "Young Serif"; src: url("/fonts/young-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/dm-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --bar-h: 60px; --rbar-h: 30px; --sec: 64px;
  /* wrapping paper (shared/brand.ts) */
  --wine: #3f0b1a; --wine-2: #5a1226; --wine-3: #741a31; --cranberry: #b3233d; --berry: #e04a5f; --cran-hi: #c9304b;
  --pine: #26704f; --pine-2: #19523a; --pine-ink: #0d2a20;
  --kraft: #f1e3c6; --kraft-2: #dcc297; --kraft-3: #b89666; --paper: #fbf4e6; --paper-2: #f6ebd5;
  --foil: #e8b64c; --foil-hi: #f8dc8f; --foil-deep: #a8782a; --gold-ink: #7d560f;
  /* ink on kraft */
  --ink: #0d2a20; --ink-2: #33493f; --ink-3: #4f6157;
  --line: rgba(13, 42, 32, .14); --line-2: rgba(13, 42, 32, .26); --stitch: rgba(13, 42, 32, .32);
  --under: rgba(63, 11, 26, .2); --under-2: rgba(63, 11, 26, .32);
  --ok: #1f6b49; --bad: #a3192f; --warn: #8a5f14;
  /* fee lanes */
  --lane-gifts: var(--foil); --lane-holders: var(--pine); --lane-buyback: var(--cranberry); --lane-house: var(--kraft-3);
  /* older names some page code still passes as colours */
  --gold: var(--foil); --candle: var(--cranberry); --frost: var(--pine); --amber: var(--foil); --violet: var(--wine-3); --unalloc: var(--kraft-2);
  --r: 6px; --r-lg: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  /* paper fibre, drawn once (img-src data: is allowed by the CSP) */
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  --wrap-stripes: repeating-linear-gradient(135deg, transparent 0 26px, rgba(255, 255, 255, .035) 26px 29px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 12px); }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--kraft) var(--fibre); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { flex: 1 0 auto; view-transition-name: page; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -.005em; color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(32px, 6.4vw, 54px); }
h2 { font-size: clamp(22px, 3.6vw, 30px); }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p { margin: 0 0 1em; }
a { color: var(--cranberry); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--wine-3); }
code, .mono { font-family: var(--mono); font-size: .92em; }
code { overflow-wrap: anywhere; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--foil-hi); color: var(--pine-ink); }
:focus-visible { outline: 3px solid var(--foil); outline-offset: 2px; border-radius: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--foil); color: var(--pine-ink); border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.page { padding-bottom: 24px; }
.mute { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 14px; }
.err { color: var(--bad); font-weight: 600; }
.okmsg { color: var(--ok); font-weight: 600; }
.up { color: var(--ok); } .down { color: var(--bad); } .flat { color: var(--ink-3); }
.row { display: flex; align-items: center; gap: 10px; }
.row.end { justify-content: flex-end; }
.wrapx { flex-wrap: wrap; }
.spacer { flex: 1 1 auto; }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- buttons: cut paper on a darker layer; pressing pushes the paper down ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border: 0; border-radius: var(--r);
  background: var(--cranberry); color: #fff8ec; font: 700 15.5px/1.1 var(--body); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 3px 0 var(--wine-2); transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .2s; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--cran-hi); color: #fff8ec; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--wine-2); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 0 3px 0 var(--wine-2); }
.btn.sm { min-height: 44px; padding: 8px 14px; font-size: 14.5px; }
.btn.ghost { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink) inset, 0 3px 0 var(--under-2); }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.ghost:active { box-shadow: 0 0 0 1.5px var(--ink) inset, 0 1px 0 var(--under-2); }
.btn.light { background: var(--foil); color: var(--pine-ink); box-shadow: 0 3px 0 var(--foil-deep); }
.btn.light:hover { background: var(--foil-hi); color: var(--pine-ink); }
.btn.ghost.light { background: transparent; color: var(--kraft); box-shadow: 0 0 0 1.5px rgba(241, 227, 198, .7) inset; }
.btn.ghost.light:hover { background: rgba(241, 227, 198, .1); }
.btn.danger { background: var(--wine-3); }
.btn .ic { width: 18px; height: 18px; }
.more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--cranberry); font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; }
.ic-go { width: 16px; height: 16px; }

/* ---------- gift tag label: a notched tag with a punched hole ---------- */
.gtag { display: inline-flex; align-items: center; gap: 8px; min-height: 26px; padding: 3px 12px 3px 20px; position: relative; background: var(--kraft-2); color: var(--pine-ink);
  font: 700 12px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase;
  clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); }
.gtag-hole { position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--kraft); box-shadow: 0 0 0 1.5px rgba(13, 42, 32, .25) inset; }

/* ---------- forms ---------- */
label, .lbl { display: block; margin: 14px 0 6px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fffaf0; color: var(--ink); font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(38, 112, 79, .2); }
input[aria-invalid=true] { border-color: var(--bad); }
textarea { resize: vertical; }
.hint { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }
.fielderr { margin: 6px 0 0; font-size: 14px; color: var(--bad); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 14px 0 0; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--cranberry); }
details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }

/* ---------- cards and panels: paper sheets on a darker layer ---------- */
.card { background: var(--paper); border-radius: var(--r-lg); padding: 16px; box-shadow: 0 0 0 1px var(--line), 0 4px 0 var(--under); }
.pnl { background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), 0 4px 0 var(--under); min-width: 0; }
.pnl + .pnl { margin-top: 16px; }
.pnl-h { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; border-bottom: 1.5px dashed var(--stitch); font: 700 13px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--pine-2); }
.pnl-h a { letter-spacing: 0; text-transform: none; font-size: 14px; }
.pnl-h .dot, .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--cranberry)); flex: none; display: inline-block; }
.pnl-b { padding: 16px; }
.pnl > details > summary.pnl-h { border-bottom: 0; }
.pnl > details[open] > summary.pnl-h { border-bottom: 1.5px dashed var(--stitch); }
.cgrid { display: grid; gap: 16px; align-items: start; grid-template-columns: minmax(0, 1fr); margin: 8px 0 24px; }
.cgrid > * + * { margin-top: 0; }
@media (min-width: 1000px) { .cgrid { grid-template-columns: minmax(0, 1fr) 340px; } }
.insp { display: grid; gap: 16px; align-content: start; min-width: 0; }
.insp > .pnl + .pnl { margin-top: 0; }
.notice { margin: 12px 0; padding: 12px 14px 12px 16px; border-radius: var(--r); background: var(--paper-2); border-left: 4px solid var(--foil-deep); color: var(--ink); }
.notice.info { border-left-color: var(--pine); }
.notice.bad { border-left-color: var(--bad); background: #fbe7e4; }
.pill, .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 10px; border-radius: 999px; font: 700 12.5px/1.2 var(--body); background: var(--kraft-2); color: var(--pine-ink); white-space: nowrap; }
.pill.ok, .chip.ok { background: #d6ead9; color: #0f4b31; }
.pill.warn, .chip.gold { background: var(--foil-hi); color: var(--gold-ink); }
.chip.wait { background: #efd9d2; color: #6d1428; }
.src { display: inline-block; margin-top: 4px; font: 400 11px/1.2 var(--mono); letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.ro-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
@media (min-width: 760px) { .ro-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ro { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), 0 3px 0 var(--under); min-width: 0; }
.ro-k { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.ro-v { font: 400 22px/1.2 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat b { display: block; font: 400 24px/1.2 var(--display); }
.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 4px 14px; padding: 10px 0; border-top: 1px dashed var(--line-2); }
.kv > div:first-child { border-top: 0; padding-top: 0; }
.kv dt { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv dd small { color: var(--ink-3); }
@media (max-width: 559px) { .kv > div { grid-template-columns: minmax(0, 1fr); } }
.hx { display: block; font: 400 13px/1.5 var(--mono); padding: 6px 10px; margin: 4px 0; background: var(--paper-2); border-radius: 4px; border: 1px dashed var(--line-2); color: var(--pine-ink); overflow-wrap: anywhere; word-break: break-all; }

/* split bars: ribbons laid side by side, with a legend that carries the numbers */
.split { display: flex; height: 18px; border-radius: 3px; overflow: hidden; gap: 2px; background: var(--paper-2); }
.split i { display: block; min-width: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c); flex: none; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--c); flex: none; }

/* tables */
.tablewrap { overflow-x: auto; margin: 10px 0 0; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 10px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--ink-2); border-top: 0; background: var(--paper-2); white-space: nowrap; }
td.num, th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
td code { font-size: 12.5px; }
tr.win td { background: #fbefc9; }
pre.summary { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 12.5px/1.55 var(--mono); background: var(--paper-2); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 12px; margin: 12px 0; }

/* empty states */
.empty { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 26px 18px; }
.empty p { max-width: 46ch; margin: 6px 0 12px; color: var(--ink-2); }
.empty .ic { width: 28px; height: 28px; color: var(--cranberry); }
.empty-art { width: 150px; height: auto; }
.ea-floor { fill: rgba(63, 11, 26, .1); }
.ea-cut { fill: none; stroke: var(--cranberry); stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; }
.ea-tagb { fill: var(--paper); stroke: var(--pine); stroke-width: 1.6; }
.ea-hole { fill: var(--pine); }
.ea-string { fill: none; stroke: var(--pine); stroke-width: 1.4; }
.empty-line { color: var(--ink-2); font-style: italic; }

/* skeleton while a page loads */
.sk { background: linear-gradient(90deg, var(--paper-2), #fff8ea, var(--paper-2)); background-size: 200% 100%; border-radius: var(--r); margin: 12px 0; }
@media (prefers-reduced-motion: no-preference) { .sk { animation: shimmer 1.4s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-h1 { height: 46px; width: min(520px, 80%); margin-top: 36px; }
.sk-line { height: 16px; width: min(680px, 95%); }
.sk-line.short { width: min(380px, 60%); }
.sk-stat { height: 80px; }
.sk-card { height: 120px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* toasts */
.toasts { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: var(--r); background: var(--pine-ink); color: var(--kraft); box-shadow: 0 4px 0 rgba(0, 0, 0, .25); font-weight: 600; pointer-events: auto; }
.toast.ok { background: var(--pine-2); }
.toast.err { background: var(--wine-3); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: toastIn .3s var(--ease) both; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* wallet dialog */
dialog { border: 0; border-radius: var(--r-lg); padding: 20px; width: min(420px, calc(100% - 24px)); background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 6px 0 var(--under-2); }
dialog::backdrop { background: rgba(40, 6, 16, .6); }
.wlist { display: grid; gap: 8px; margin: 14px 0; }
.wlist button, .wlist a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fffaf0; color: var(--ink); text-decoration: none; font-weight: 700; cursor: pointer; text-align: left; }
.wlist button:hover, .wlist a:hover { border-color: var(--pine); }
.wlist img { width: 28px; height: 28px; border-radius: 6px; }

/* verification marks */
.vk { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 6px; border-radius: 50%; font: 700 13px/1 var(--body); vertical-align: middle; flex: none; }
.vk.ok { background: var(--pine); color: #fff; }
.vk.bad { background: var(--bad); color: #fff; }

/* scroll reveals (app.ts): only blocks below the screen on first scroll, opacity and transform only */
.rv-hide { opacity: 0; transform: translateY(18px); }
.rv-on { transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.acq { animation: acq .35s var(--ease) both; }
@keyframes acq { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .rv-hide { opacity: 1; transform: none; } .acq { animation: none; } *, *::before, *::after { scroll-behavior: auto !important; } }
::view-transition-old(page) { animation: none; opacity: 0; }

/* 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: .12em; 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: 40px; margin: 0; padding: 0; background: transparent; border: 0; cursor: pointer; }
.ep-ctl input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line-2); }
.ep-ctl input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; 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: 2px; }
.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: auto 1fr; align-items: baseline; gap: 2px 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ep-fk { grid-column: 1 / -1; font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.ep-big b { font: 400 clamp(36px, 10vw, 48px)/1 var(--mono); color: var(--blue-hi); letter-spacing: -.04em; }
.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: .12em; 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(--gold); } .ep-split .tre, .ep-leg .tre { --c: var(--candle); }
.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: 650 19px/1.15 var(--display); font-stretch: 108%; 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: 2px; 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: 2px; 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: 2px; background: linear-gradient(180deg, #0a1a12, #0e2219); border: 1px solid var(--line); }
.lr-house .ha-win, .lr-house .ha-spill { transition: opacity .25s; }

/* The shell: the status ribbon, the wine-paper header with its nav, the phone menu sheet, the footer and the page header. */

/* ---------- status ribbon (#mkt): a cranberry ribbon across the top with real state only ---------- */
.rbar { display: flex; align-items: center; justify-content: center; gap: 0; height: var(--rbar-h); overflow: hidden; background: var(--cranberry); color: #fff4e2; font-size: 13px; position: relative; z-index: 31;
  box-shadow: 0 -2px 0 rgba(0, 0, 0, .12) inset; }
.rbar::before, .rbar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 14px; background: var(--wine-2); }
.rbar::before { left: 0; clip-path: polygon(0 0, 100% 0, 40% 50%, 100% 100%, 0 100%); }
.rbar::after { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 60% 50%); }
.rbar-c { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; white-space: nowrap; }
.rbar-c + .rbar-c { border-left: 1.5px dashed rgba(255, 244, 226, .45); }
.rbar-c i { font-style: normal; font-weight: 700; letter-spacing: .04em; }
.rbar-c b { font-weight: 500; font-family: var(--mono); font-size: 12.5px; }
.rbar-c.go b::before, .rbar-c.no b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #9ee6b8; vertical-align: 1px; }
.rbar-c.no b::before { background: var(--foil-hi); }
@media (max-width: 479px) { .rbar-c.wide { display: none; } .rbar-c { padding: 0 9px; } }

/* ---------- header ---------- */
.sbar { position: sticky; top: 0; z-index: 30; background: var(--wine); color: var(--kraft); box-shadow: 0 3px 0 rgba(30, 4, 11, .35); }
.sbar-in { display: flex; align-items: center; gap: 10px; max-width: 1240px; height: var(--bar-h); margin: 0 auto; padding: 0 10px 0 14px; }
@media (min-width: 700px) { .sbar-in { padding: 0 20px 0 24px; } }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--kraft); text-decoration: none; flex: none; }
.logo:hover { color: #fff; }
.logo .mark svg { width: 36px; height: 36px; display: block; }
.logo-t { font: 400 22px/1 var(--display); letter-spacing: 0; white-space: nowrap; }
.logo-t b { font-weight: 400; color: var(--foil); }
.topnav { display: none; }
@media (min-width: 1180px) {
  .topnav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
  .topnav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; color: #f3dcc9; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: var(--r); }
  .topnav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
  .topnav a[aria-current=page] { color: var(--foil-hi); }
  .topnav a[aria-current=page]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--foil); }
}
.head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
@media (min-width: 1180px) { .head-actions { margin-left: 0; } }
.head-actions .btn { min-height: 44px; }
.head-x { width: 44px; padding: 0; }
.head-x svg { width: 17px; height: 17px; }
#wallet { background: var(--foil); color: var(--pine-ink); box-shadow: 0 3px 0 var(--foil-deep); padding: 8px 13px; }
#wallet:hover { background: var(--foil-hi); }
#wallet .ic { width: 18px; height: 18px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: rgba(255, 255, 255, .08); color: var(--kraft); cursor: pointer; }
.menu-btn:hover { background: rgba(255, 255, 255, .14); }
.menu-btn i { position: relative; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 1px; transition: background-color .2s; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .25s var(--ease); }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-btn[aria-expanded=true] i { background: transparent; }
.menu-btn[aria-expanded=true] i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded=true] i::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1180px) { .menu-btn { display: none; } }
@media (max-width: 439px) { .head-actions .head-x { display: none; } .logo-t { font-size: 18px; } .logo .mark svg { width: 30px; height: 30px; } .logo { gap: 7px; } #wallet { padding: 8px 8px; font-size: 13px; } .head-actions { gap: 4px; } }
@media (max-width: 339px) { .logo-t { font-size: 16.5px; } }

/* ---------- phone menu: a kraft sheet that drops from under the header ---------- */
.sheet { position: fixed; left: 0; right: 0; z-index: 29; overflow-y: auto; background: var(--kraft) var(--fibre); padding: 8px 12px 18px; box-shadow: 0 6px 0 var(--under-2); display: grid; grid-template-columns: 1fr; gap: 6px; }
.sheet[hidden] { display: none; }
@media (min-width: 560px) { .sheet { grid-template-columns: 1fr 1fr; } }
.sheet a { display: grid; gap: 1px; min-height: 56px; padding: 9px 14px 9px 26px; position: relative; border-radius: var(--r); background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 0 0 1px var(--line), 0 3px 0 var(--under); }
.sheet a::before { content: ""; position: absolute; left: 11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--kraft); box-shadow: 0 0 0 1.5px var(--line-2) inset; }
.sheet a span { font: 400 18px/1.2 var(--display); }
.sheet a small { font-size: 13px; color: var(--ink-2); }
.sheet a[aria-current=page] { background: var(--cranberry); color: #fff4e2; }
.sheet a[aria-current=page] small { color: #f8d9d1; }
@media (prefers-reduced-motion: no-preference) { .sheet:not([hidden]) { animation: drop .28s var(--ease) both; } .sheet:not([hidden]) a { animation: acq .35s var(--ease) both; } }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }
.scrim { display: none; }
.sheet:not([hidden]) + .scrim { display: block; position: fixed; inset: 0; z-index: 28; background: rgba(40, 6, 16, .45); }

/* ---------- footer: a wine paper strip with a ribbon edge ---------- */
.foot { margin-top: 40px; background: var(--wine) var(--wrap-stripes); color: #ecd3c4; position: relative; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; background: var(--cranberry); clip-path: polygon(0 100%, 2% 0, 4% 100%, 6% 0, 8% 100%, 10% 0, 12% 100%, 14% 0, 16% 100%, 18% 0, 20% 100%, 22% 0, 24% 100%, 26% 0, 28% 100%, 30% 0, 32% 100%, 34% 0, 36% 100%, 38% 0, 40% 100%, 42% 0, 44% 100%, 46% 0, 48% 100%, 50% 0, 52% 100%, 54% 0, 56% 100%, 58% 0, 60% 100%, 62% 0, 64% 100%, 66% 0, 68% 100%, 70% 0, 72% 100%, 74% 0, 76% 100%, 78% 0, 80% 100%, 82% 0, 84% 100%, 86% 0, 88% 100%, 90% 0, 92% 100%, 94% 0, 96% 100%, 98% 0, 100% 100%); }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 26px 16px calc(26px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
@media (min-width: 700px) { .foot-in { padding-left: 28px; padding-right: 28px; grid-template-columns: auto 1fr; align-items: center; } .foot-links { grid-column: 1 / -1; } }
.foot-copy { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 18px/1.2 var(--display); color: var(--kraft); }
.foot-mark svg { width: 30px; height: 30px; display: block; }
.foot-note { margin: 0; font-size: 14px; }
.foot a { color: var(--foil-hi); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0; }
.foot-links a, .foot-links #foot-ext a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
.foot-links #foot-ext { display: contents; }
.foot-x svg { width: 15px; height: 15px; }

/* ---------- page header ---------- */
.phead { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 28px 0 22px; margin-bottom: 8px; }
.ph-text { position: relative; z-index: 1; min-width: 0; max-width: 820px; }
.ph-path { margin: 0 0 12px; }
.phead h1 { margin: 0 0 10px; }
.phead .lead { max-width: 68ch; font-size: 17px; color: var(--ink-2); margin: 0; }
.ph-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ph-art { display: none; }
@media (min-width: 860px) {
  .phead { grid-template-columns: minmax(0, 1fr) 220px; align-items: end; padding-top: 36px; }
  .ph-art { display: block; grid-column: 2; grid-row: 1 / span 2; width: 220px; height: auto; align-self: end; }
}
.ph-string { fill: none; stroke: var(--pine-2); stroke-width: 1.4; }
.ph-flag.f0 { fill: var(--cranberry); } .ph-flag.f1 { fill: var(--foil); } .ph-flag.f2 { fill: var(--pine); }
.ph-crumb { display: flex; gap: 8px; margin: 0 0 14px; font-weight: 700; font-size: 14px; }
.ph-crumb a { color: var(--cranberry); }
.ph-crumb span::before { content: "/"; margin-right: 8px; color: var(--ink-3); }

/* ribbon divider with a bow */
.ribbon-rule { position: relative; height: 34px; margin: 8px 0; display: flex; align-items: center; justify-content: center; }
.ribbon-rule::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; background: var(--cranberry); border-radius: 2px; box-shadow: 0 2px 0 var(--wine-2); }
.rr-bow { position: relative; width: 80px; height: 34px; }
.rr-loop { fill: var(--cranberry); stroke: var(--wine-2); stroke-width: 1.2; }
.rr-tail { fill: var(--wine-3); }
.rr-knot { fill: var(--wine-3); }

/* Home: the hero (the tree and its presents on wine wrapping paper, the draw desk as a kraft gift tag), the reveal, and the sections below. */
.hero { position: relative; background: var(--wine) var(--wrap-stripes); color: var(--kraft); padding: 22px 0 0; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--kraft) var(--fibre); clip-path: polygon(0 100%, 0 40%, 3% 70%, 6% 30%, 9% 65%, 12% 35%, 15% 70%, 18% 25%, 21% 60%, 24% 40%, 27% 75%, 30% 30%, 33% 60%, 36% 35%, 39% 70%, 42% 30%, 45% 65%, 48% 40%, 51% 75%, 54% 30%, 57% 60%, 60% 35%, 63% 70%, 66% 25%, 69% 60%, 72% 40%, 75% 70%, 78% 30%, 81% 65%, 84% 35%, 87% 70%, 90% 30%, 93% 60%, 96% 40%, 100% 70%, 100% 100%); }
.hero-in { max-width: 1240px; margin: 0 auto; padding: 0 16px 34px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage" "desk"; }
@media (min-width: 700px) { .hero-in { padding: 0 28px 40px; } }
@media (min-width: 1000px) {
  .hero { padding-top: 36px; }
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "copy stage" "desk stage"; column-gap: 40px; align-items: start; }
}
.hero-copy { grid-area: copy; min-width: 0; }
.hero-stage { grid-area: stage; min-width: 0; }
.hero-desk { grid-area: desk; min-width: 0; }
.hero-kick { background: var(--foil); color: var(--pine-ink); }
.hero-kick .gtag-hole { background: var(--wine); box-shadow: none; }
.hero-title { margin: 14px 0 12px; color: #fff4e2; font-size: clamp(34px, 8.6vw, 60px); line-height: 1.04; }
.hero-title em { font-style: normal; color: var(--foil); }
.hero-line { max-width: 54ch; margin: 0 0 18px; color: #edd3c6; font-size: 16.5px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 999px) { .hero-line { font-size: 15.5px; } .hero-cta .btn { flex: 1 1 auto; } }

/* ---------- the scene ---------- */
.scene { position: relative; margin: 0 -6px; }
@media (min-width: 1000px) { .scene { margin: 0; } }
.scene-svg { display: block; width: 100%; height: auto; max-height: 72vh; overflow: visible; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.scene-cap { margin: 4px 0 0; text-align: center; color: #edd3c6; font-size: 14.5px; min-height: 22px; }
.scene-cap p { margin: 0; }
.scene.is-empty .scene-cap p { display: inline-block; max-width: 40ch; padding: 8px 14px; background: rgba(0, 0, 0, .18); border-radius: var(--r); color: #fff4e2; font-weight: 600; }
.cap-h { color: var(--foil-hi); }
/* tree (pine paper, left half lit), skirt, star */
.tr-shadow { fill: rgba(20, 2, 8, .35); }
.tr-dark { fill: var(--pine-2); }
.tr-light { fill: var(--pine); }
.tr-garland { fill: none; stroke: var(--kraft); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .1 9; opacity: .9; }
.tr-trunk { fill: #7a5232; }
.ts-under { fill: rgba(20, 2, 8, .35); }
.ts-skirt { fill: var(--kraft); }
.ts-band { fill: none; stroke: var(--cranberry); stroke-width: 5; stroke-dasharray: 10 6; }
.bb { stroke: rgba(0, 0, 0, .12); stroke-width: 1; }
.bb.b1 { fill: var(--foil); } .bb.b2 { fill: var(--berry); } .bb.b3 { fill: var(--kraft); }
.bb-under { fill: rgba(5, 25, 15, .45); }
.bb-shine { fill: #fff; opacity: .55; }
.st-under { fill: rgba(20, 2, 8, .4); }
.st-foil { fill: var(--foil); stroke: var(--kraft); stroke-width: 2.5; stroke-linejoin: round; }
.st-shine { fill: var(--foil-hi); }
.tr-star { transform-box: fill-box; transform-origin: 50% 50%; }
.fl { fill: var(--kraft); opacity: .5; transform-box: fill-box; transform-origin: 50% 50%; }
.fl1 { fill: var(--foil-hi); } .fl2 { fill: var(--berry); opacity: .6; }
@media (prefers-reduced-motion: no-preference) {
  .tr-star { animation: twinkle 5s ease-in-out infinite; }
  .fl { animation: flake 9s linear infinite; animation-delay: calc(var(--d) * -1); }
  .fl1 { animation-duration: 11s; } .fl2 { animation-duration: 13s; } .fl3 { animation-duration: 8s; }
}
@keyframes twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(8deg) scale(1.06); } }
@keyframes flake { from { transform: translate(0, -60px) rotate(0); } to { transform: translate(-24px, 420px) rotate(540deg); } }

/* presents: kraft sticker edge, darker paper underneath, fold shade; hover/focus lifts; selection rings the box */
.pr { cursor: pointer; outline: none; }
.pr-in { transition: transform .25s var(--spring); }
.pr:hover .pr-in, .pr:focus-visible .pr-in, .pr.sel .pr-in { transform: translateY(-5px); }
.pr:focus-visible .pr-edge, .pr.sel .pr-edge { fill: var(--foil-hi); }
.pr-shadow { fill: rgba(20, 2, 8, .38); }
.pr-under { fill: rgba(20, 2, 8, .42); }
.pr-edge { fill: var(--kraft); }
.pr-fold { fill: #000; opacity: .14; }
.pr-loop-in { fill: rgba(0, 0, 0, .22); }
.pr-shine { fill: #fff; opacity: .55; }
.pr-tails { opacity: .92; }
.pr-burst { opacity: 0; }
.pr-rays { fill: var(--foil-hi); opacity: .85; }
.pr-bit { fill: var(--foil); }
.pr-bit.b1 { fill: var(--kraft); } .pr-bit.b2 { fill: var(--berry); } .pr-bit.b3 { fill: #9ee6b8; }
.pr-lid { transform-box: fill-box; transform-origin: 0% 100%; }
.pr-bit { transform-box: fill-box; transform-origin: 50% 50%; }
.sk-body { fill: #b89666; stroke: var(--kraft); stroke-width: 1.6; }
.sk-under { fill: rgba(20, 2, 8, .42); }
.sk-top { fill: #a5835a; stroke: var(--kraft); stroke-width: 1.6; }
.sk-cord { fill: none; stroke: var(--cranberry); stroke-width: 2.4; stroke-linecap: round; }
.sk-n { fill: var(--pine-ink); font: 700 13px/1 var(--body); pointer-events: none; }
.pr-ghost .gh-cut { fill: none; stroke: rgba(241, 227, 198, .7); stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .pr { animation: settle .5s var(--spring) both; animation-delay: calc(min(var(--i, 0), 30) * 30ms); }
  .pr-ghost { animation: ghost 2.6s ease-in-out infinite; }
}
@keyframes settle { from { opacity: 0; } }
@keyframes ghost { 50% { opacity: .45; } }
/* the reveal: the others dim, the winner shakes, the lid pops, the ribbon falls, paper bursts */
.scene.revealing .pr:not(.winner) { opacity: .4; transition: opacity .5s; }
.pr.shake .pr-in { animation: shake .7s ease-in-out; }
@keyframes shake { 0%, 100% { transform: translateY(-4px) rotate(0); } 20% { transform: translateY(-6px) rotate(-5deg); } 40% { transform: translateY(-6px) rotate(5deg); } 60% { transform: translateY(-6px) rotate(-4deg); } 80% { transform: translateY(-5px) rotate(3deg); } }
.pr-in { transform-box: fill-box; transform-origin: 50% 100%; }
.pr-lid { transition: transform .7s var(--spring), opacity .7s; }
.pr-rib { transition: transform .8s cubic-bezier(.5, 0, .8, .6), opacity .8s; }
.pr-burst { transition: opacity .3s; }
.pr.open .pr-lid { transform: translate(calc(var(--w) * -.45px), calc(var(--h) * -1.05px)) rotate(-24deg); }
.pr.open .pr-rib { transform: translateY(calc(var(--h) * .35px)); opacity: 0; }
.pr.open .pr-burst { opacity: 1; }
.pr.open .pr-bit { animation: bit 1.1s var(--ease) both; }
.pr.open .pr-edge { fill: var(--foil-hi); }
@keyframes bit { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(calc(var(--dx) * 1px), calc(var(--dy) * 1px)) rotate(var(--r)); opacity: 0; } }
.is-sack.open .pr-lid { transform: translateY(calc(var(--h) * -.4px)) rotate(-12deg); }
@media (prefers-reduced-motion: reduce) { .pr-lid, .pr-rib, .pr-in { transition: none; } .pr.open .pr-bit { animation: none; opacity: 0; } }

/* the gift tag popover */
.gtip { position: absolute; z-index: 5; width: 240px; padding: 12px 14px 12px 26px; background: var(--kraft); color: var(--ink); border-radius: 4px;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); filter: drop-shadow(0 3px 0 rgba(20, 2, 8, .45)); }
.gtip::before { content: ""; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--wine); }
@media (max-width: 559px) { .gtip { left: 10px !important; right: 10px; bottom: 34px; top: auto !important; width: auto; } }
@media (prefers-reduced-motion: no-preference) { .gtip:not([hidden]) { animation: tagIn .3s var(--spring) both; } }
@keyframes tagIn { from { opacity: 0; transform: translateY(6px) rotate(-2deg); } }
.gtip-k { margin: 0 0 2px; font: 700 11.5px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--cranberry); }
.gtip-to { margin: 0 0 8px; font: 400 21px/1.2 var(--display); overflow-wrap: anywhere; }
.gtip-to span { color: var(--ink-3); font-size: 16px; }
.gtip-to b { font-weight: 400; font-family: var(--mono); font-size: 17px; }
.gtip-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 8px; }
.gtip-dl dt { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.gtip-dl dd { margin: 0; font: 400 17px/1.2 var(--mono); }
.gtip-t { margin: 0; font-size: 13px; color: var(--ink-2); }
.gtip-x { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-2); }

/* ---------- the draw desk: a big kraft gift tag ---------- */
.desk { position: relative; background: var(--kraft) var(--fibre); color: var(--ink); border-radius: 6px; padding: 16px 16px 16px 34px;
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px), 0 22px); filter: drop-shadow(0 4px 0 rgba(20, 2, 8, .5)); }
.desk::before { content: ""; position: absolute; left: 12px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 3px var(--kraft-2); }
.desk::after { content: ""; position: absolute; left: 30px; top: 10px; bottom: 10px; border-left: 1.5px dashed var(--stitch); }
.dk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dk-tag { background: var(--cranberry); color: #fff4e2; }
.dk-tag .gtag-hole { background: var(--kraft); box-shadow: none; }
.cd { margin: 10px 0 6px; }
.cd-clock { display: block; font: 400 clamp(40px, 12vw, 58px)/1 var(--display); letter-spacing: .01em; color: var(--pine-ink); font-variant-numeric: tabular-nums; }
.cd-when { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.dk-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 12px 0 6px; border-top: 1.5px dashed var(--stitch); border-bottom: 1.5px dashed var(--stitch); }
.dk-facts > div { padding: 10px 8px 10px 0; min-width: 0; }
.dk-facts > div + div { padding-left: 10px; border-left: 1px solid var(--line); }
.dk-facts dt { font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: .04em; }
.dk-facts dd { margin: 2px 0 0; font: 400 17px/1.25 var(--display); overflow-wrap: anywhere; }
@media (max-width: 379px) { .dk-facts dd { font-size: 15px; } }
.dk-note { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); }
.dk-note:empty { display: none; }
.dk-wait { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.dk-wait li { position: relative; padding-left: 22px; font-size: 14px; font-weight: 600; color: var(--wine-3); }
.dk-wait li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; }
.dk-pend { margin: 12px 0 0; padding: 10px 12px; background: var(--foil-hi); border-radius: var(--r); font-size: 14px; }
.dk-pend p { margin: 0; }
.dk-pend code { font-size: 12.5px; }
.dk-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.dk-act .btn { flex: 1 1 auto; }

/* ---------- the reveal (below the hero, on the wine paper) ---------- */
.reveal-wrap { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 16px 40px; }
@media (min-width: 700px) { .reveal-wrap { padding: 0 28px 48px; } }
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.rv-title { margin: 0; display: grid; gap: 6px; color: #fff4e2; font: 400 19px/1.25 var(--display); }
.rv-flag { justify-self: start; display: inline-block; padding: 6px 12px; background: var(--foil); color: var(--pine-ink); border-radius: 4px; font: 800 13px/1.3 var(--body); letter-spacing: .03em; }
.rv-close { flex: none; }
.reveal-wrap .reveal { background: var(--kraft) var(--fibre); color: var(--ink); border-radius: var(--r-lg); padding: 16px; box-shadow: 0 5px 0 rgba(20, 2, 8, .5); }
.reveal-wrap.practice .reveal { box-shadow: 0 0 0 3px var(--foil) inset, 0 5px 0 rgba(20, 2, 8, .5); }
.rv-foot { margin: 14px 0 0; font-size: 14.5px; }
.proof { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pf-line { grid-column: 1 / -1; } .proof > li:nth-last-child(-n+2) { grid-column: span 1; } }
.pf-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px; background: var(--paper); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line), 0 3px 0 var(--under); min-width: 0; }
.pf-n { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--cranberry); color: #fff4e2; font: 400 17px/1 var(--display); }
.pf-b { min-width: 0; }
.pf-b h4 { margin: 4px 0 6px; font-size: 17px; }
.pf-t { margin: 0 0 4px; font-size: 14px; color: var(--ink-2); }
.pf-mod { margin: 4px 0 0; font-size: 15px; }
.pf-to { margin: 4px 0 4px; font: 400 22px/1.2 var(--display); }
.pf-to span { color: var(--ink-3); font-size: 16px; }
.pf-to b { font: 400 18px/1.2 var(--mono); }
.pf-wait { opacity: .35; }
.pf-on { opacity: 1; transition: opacity .35s var(--ease); }
@media (prefers-reduced-motion: no-preference) { .pf-on { animation: acq .4s var(--ease) both; } }
.pf-line { padding: 8px 0; }
/* the ticket line: every entrant's range as alternating ribbon segments; a tag walks to the winning ticket */
.tl { position: relative; }
.tl-track { position: relative; height: 40px; }
.tl-svg { display: block; width: 100%; height: 40px; }
.tl-base { fill: var(--kraft-2); }
.tl-s.s0 { fill: var(--cranberry); } .tl-s.s1 { fill: var(--pine); }
.tl-hit { fill: none; stroke: var(--foil); stroke-width: 6; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .4s; }
.tl.hit .tl-hit { opacity: 1; }
.tl-pin { position: absolute; left: 0; top: -10px; width: 0; height: 52px; pointer-events: none; will-change: transform; }
.tl-pin i { position: absolute; left: -8px; top: 0; width: 16px; height: 52px; }
.tl-pin i::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 0; width: 2px; background: var(--pine-ink); }
.tl-pin i::after { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 12px; background: var(--foil); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
.tl-ax { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; font: 400 12px/1.2 var(--mono); color: var(--ink-3); }
.tl-n { font: 400 16px/1.2 var(--mono); color: var(--pine-ink); }

/* ---------- sections below the hero ---------- */
.home .wrap { padding-top: 14px; }
.home-sec { padding: var(--sec) 0 calc(var(--sec) - 20px); }
.sec-kick { margin-bottom: 14px; }
.sec-title { font-size: clamp(28px, 5.4vw, 44px); margin: 0 0 14px; max-width: 22ch; }
.sec-lede { max-width: 66ch; font-size: 17px; color: var(--ink-2); }
.sec-more { margin: 18px 0 0; }
.hsteps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .hsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hsteps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hsteps li { position: relative; padding: 16px; background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), 0 4px 0 var(--under); }
.hsteps h3 { margin: 4px 0 8px; font-size: 21px; }
.hsteps p { margin: 0; font-size: 15px; color: var(--ink-2); }
.hsteps .hs-n { position: absolute; right: 14px; top: 12px; margin: 0; font: 400 28px/1 var(--display); color: var(--kraft-3); }
.vg { display: block; width: 120px; height: 96px; margin: 0 0 6px; overflow: visible; }
.vg-under { fill: var(--under); }
.vg-ticket.c0 { fill: var(--foil); } .vg-ticket.c1 { fill: var(--berry); } .vg-ticket.c2 { fill: var(--pine); }
.vg-line { stroke: var(--paper); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.vg-env { fill: var(--kraft-2); } .vg-flap { fill: none; stroke: var(--kraft-3); stroke-width: 2.5; stroke-linejoin: round; }
.vg-seal { fill: var(--cranberry); } .vg-sealm { stroke: var(--foil-hi); stroke-width: 2.5; stroke-linecap: round; }
.vg-chain { stroke: var(--ink-3); stroke-width: 2; }
.vg-blk { fill: var(--pine-2); } .vg-blk.new { fill: var(--foil); }
.vg-ring { fill: none; stroke: var(--cranberry); stroke-width: 2; stroke-dasharray: 3 3; }
.vg-shadow { fill: var(--under); }
.vg-box { fill: var(--cranberry); } .vg-rib { fill: var(--foil); }
.vg-ray { fill: var(--foil-hi); stroke: var(--foil-hi); stroke-width: 3; stroke-linecap: round; }
.vg-tk, .vg-wax, .vg-drop, .vg-lid, .vg-rays { transform-box: fill-box; }
.vg-lid { transform-origin: 0 100%; transform: translate(-6px, -14px) rotate(-18deg); }
@media (prefers-reduced-motion: no-preference) {
  .vg.play .vg-tk { animation: fan .8s var(--spring) both; } .vg.play .t1 { animation-delay: .1s; } .vg.play .t2 { animation-delay: .2s; }
  .vg.play .vg-wax { animation: stamp .6s var(--spring) .3s both; transform-origin: 50% 50%; }
  .vg.play .vg-drop { animation: dropIn .8s cubic-bezier(.5, 0, .7, 1.4) .2s both; }
  .vg.play .vg-lid { animation: lidPop .9s var(--spring) .3s both; }
  .vg.play .vg-rays { animation: fadeIn .5s ease-out .7s both; }
}
@keyframes fan { from { opacity: 0; transform: translateY(20px) rotate(0); } }
@keyframes stamp { from { opacity: 0; transform: scale(2.2); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-60px); } }
@keyframes lidPop { from { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }

/* where fees go: four ribbons side by side */
.ribbons { display: flex; gap: 4px; height: 52px; margin: 22px 0 14px; }
.ribbons i { position: relative; display: flex; align-items: center; justify-content: center; min-width: 46px; background: var(--c); border-radius: 3px; box-shadow: 0 3px 0 var(--under-2); font-style: normal; }
.ribbons i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-top: 2px dashed rgba(255, 255, 255, .35); }
.ribbons span { position: relative; z-index: 1; padding: 2px 7px; border-radius: 3px; background: var(--paper); color: var(--ink); font: 700 14px/1.2 var(--body); }
.fparts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .fparts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fparts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fparts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: baseline; padding: 12px 14px; background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), inset 6px 0 0 var(--c), 0 3px 0 var(--under); }
.fparts b { font: 400 26px/1 var(--display); grid-row: span 2; }
.fp-l { font-weight: 700; }
.fp-t { grid-column: 2; font-size: 14px; color: var(--ink-2); }
.ca-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 16px 0 0; font-size: 14px; }
.ca-line span { font-weight: 700; }
.note-paper { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r); background: var(--paper-2); border-left: 4px solid var(--cranberry); max-width: 70ch; }

/* draw history list (also /draws) */
.dlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dlist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "when prize" "who st"; gap: 6px 12px; align-items: center; padding: 12px 14px 12px 26px; position: relative;
  background: var(--paper); border-radius: var(--r); color: var(--ink); text-decoration: none; box-shadow: 0 0 0 1px var(--line), 0 3px 0 var(--under); transition: transform .2s var(--ease); }
.dlist a::before { content: ""; position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--kraft-2); box-shadow: 0 0 0 1.5px var(--line-2) inset; }
.dlist a:hover { transform: translateY(-2px); }
.dl-when { grid-area: when; display: grid; min-width: 0; }
.dl-when b { font: 400 18px/1.2 var(--display); font-weight: 400; }
.dl-when small { color: var(--ink-2); font-size: 13px; }
.dl-prize { grid-area: prize; font: 400 15px/1.2 var(--mono); text-align: right; }
.dl-who { grid-area: who; font-size: 14px; min-width: 0; }
.dl-who b { font-family: var(--mono); font-weight: 400; }
.dlist .chip { grid-area: st; justify-self: end; }
@media (min-width: 760px) { .dlist a { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "when prize who st"; } .dl-prize { text-align: left; } }
.hist-empty { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), 0 4px 0 var(--under); }
.hist-empty p { margin: 0; color: var(--ink-2); }
.hist-empty .present-art { width: 72px; flex: none; }
.present-art { display: block; width: 100%; height: auto; overflow: visible; }
.present-art .pr-shadow { fill: var(--under); }
.present-art .pr-under { fill: var(--under-2); }

/* the launchpad numbers and newest coins */
.live { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .live { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.lv-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.lv { padding: 12px; background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), 0 3px 0 var(--under); min-width: 0; }
.lv b { display: block; font: 400 clamp(20px, 5vw, 28px)/1.1 var(--display); overflow-wrap: anywhere; }
.lv span { font-size: 13px; color: var(--ink-2); }
.live-new h3 { margin: 4px 0 12px; }
.newest { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.newest a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 56px; padding: 8px 12px; background: var(--paper); border-radius: var(--r); color: var(--ink); text-decoration: none; box-shadow: 0 0 0 1px var(--line), 0 3px 0 var(--under); }
.newest img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.nw-n { display: grid; min-width: 0; } .nw-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-n > span { font-size: 13px; color: var(--ink-2); }
.nw-tk { font-family: var(--mono); }
.nw-m { font-family: var(--mono); font-size: 14px; }
.newest-empty { padding: 16px; background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), 0 4px 0 var(--under); }
.newest-empty p { color: var(--ink-2); }

/* trust */
.trust { padding-top: 24px; }
.trust-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .trust-2 { grid-template-columns: 1fr 1fr; } }
.trust-2 ul { list-style: none; margin: 0; padding: 16px; display: grid; gap: 10px; border-radius: var(--r-lg); }
.trust-2 li { position: relative; padding-left: 30px; }
.tl-ok { background: #e2efe3; } .tl-trust { background: #f6e4d9; }
.tl-ok li::before, .tl-trust li::before { position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--body); color: #fff; }
.tl-ok li::before { content: "✓"; background: var(--pine); }
.tl-trust li::before { content: "!"; background: var(--wine-3); }

/* Explore (list + inspector), top coins, the coin page. Rows are paper strips; the coin's wrapping colour is a thin edge only. */
.xmain { display: grid; gap: 16px; min-width: 0; }
.xmain > .pnl + .pnl { margin-top: 0; }
.xbar-b { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; padding: 12px; }
@media (min-width: 760px) { .xbar-b { grid-template-columns: minmax(200px, 1fr) auto auto; } }
.seg { display: inline-flex; padding: 3px; gap: 3px; background: var(--paper-2); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line) inset; }
.seg button { min-height: 40px; padding: 6px 12px; border: 0; border-radius: 4px; background: none; font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; flex: 1 1 auto; }
.seg button[aria-pressed=true] { background: var(--pine); color: #fff; box-shadow: 0 2px 0 var(--pine-ink); }
@media (max-width: 759px) { .seg { display: flex; } .seg button { min-height: 44px; } }
.xcount { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.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: 2px; min-height: 64px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: inset 4px 0 0 var(--c, transparent); transition: background-color .15s; }
.xr:first-child { border-top: 0; }
a.xr:hover, a.xr[aria-current=true] { background: #fff9ee; }
.xr-img { grid-area: img; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.xr-n { grid-area: n; display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.xr-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xr-n small { color: var(--ink-2); font-size: 13px; }
.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-v, .xr-i { display: none; }
.xr-i { color: var(--ink-3); font-family: var(--mono); font-size: 13px; }
.xr-h { display: none; }
.xr-sk { height: 64px; margin: 0; border-radius: 0; }
.chg { font: 400 13px/1.2 var(--mono); }
.chg.up { color: var(--ok); } .chg.down { color: var(--bad); } .chg.flat { color: var(--ink-3); }
@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-i { grid-area: i; } .xr-v { grid-area: v; font: 400 14px/1.2 var(--mono); text-align: right; }
  .xr-h { display: grid; min-height: 40px; background: var(--paper-2); font-size: 12.5px; font-weight: 700; color: var(--ink-2); box-shadow: none; }
  .xr-h .xr-m, .xr-h .xr-c, .xr-h .xr-v { font-family: var(--body); }
}
.xinsp { display: none; }
@media (min-width: 1100px) { .xinsp { display: grid; } .xgrid { grid-template-columns: minmax(0, 1fr) 320px; } }
.xi-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.xi-head img { border-radius: 10px; }
.xi-name { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.xi-sub { margin: 4px 0 0; font-size: 13px; }
.xi-ro { grid-template-columns: 1fr 1fr; }
.xi-ro .ro-v { font-size: 18px; }
.xi-ch { margin: 0 0 14px; }

/* top coins */
.lbmain { display: grid; gap: 16px; min-width: 0; align-content: start; }
.lbmain > .pnl + .pnl { margin-top: 0; }
.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; min-height: 68px; padding: 10px 14px 14px; color: var(--ink); text-decoration: none; }
a.tb-row:hover { background: #fff9ee; }
.tb-rank { grid-area: r; font: 400 20px/1 var(--display); color: var(--cranberry); }
.tb-img { grid-area: i; display: block; }
.tb-row .xr-n { grid-area: n; }
.tb-blocks { grid-area: s; display: grid; text-align: right; }
.tb-blocks b { font: 400 17px/1.1 var(--mono); }
.tb-blocks small { font-size: 12px; color: var(--ink-3); }
.tb-mc { display: none; font: 400 14px/1 var(--mono); color: var(--ink-2); text-align: right; }
.tb-pool { grid-area: p; font-size: 13px; color: var(--ink-3); }
.tb-pool.in { color: var(--ok); font-weight: 700; }
.tb-row.pool .tb-rank::after { content: " ★"; color: var(--foil-deep); font-size: 13px; }
.tb-bar { position: absolute; left: 14px; bottom: 6px; height: 3px; width: calc((100% - 28px) * var(--w, 0)); border-radius: 2px; background: var(--c); opacity: .7; }
.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-h { display: grid !important; min-height: 40px; padding-bottom: 10px; background: var(--paper-2); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
  .tb-h .tb-rank { font: 700 12.5px/1 var(--body); color: var(--ink-2); }
}
.rules p { margin: 0 0 10px; font-size: 14.5px; }
.rules .present-art { width: 90px; margin: 0 0 8px; }

/* coin page */
.tk { grid-template-columns: minmax(0, 1fr); }
.tk > .ro-row { margin: 0; }
.tk-id { display: flex; align-items: center; gap: 14px; }
.tk-img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--paper), 0 4px 0 var(--under); }
.tk-head h1 { margin: 0 0 6px; overflow-wrap: anywhere; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 14px; color: var(--ink-2); }
.tk-meta .ok { color: var(--ok); display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.tk-meta .ok .ic { width: 15px; height: 15px; }
.tk-desc { margin: 14px 0 0; max-width: 70ch; overflow-wrap: anywhere; }
.tt-grid { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr); gap: 16px; align-items: center; }
.tt-map { padding: 8px; background: var(--paper-2); border-radius: var(--r); }
.tt-facts { display: grid; gap: 10px; margin: 0; }
.tt-facts dt { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tt-facts dd { margin: 0; font: 400 16px/1.2 var(--mono); }
.tt-facts dd.in { color: var(--ok); }
@media (max-width: 379px) { .tt-grid { grid-template-columns: minmax(0, 1fr); } .tt-map { max-width: 150px; } }
.gauge { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; height: 26px; }
.gauge i { background: var(--paper-2); border-radius: 2px; box-shadow: 0 0 0 1px var(--line) inset; }
.gauge i.on { background: var(--pine); box-shadow: none; }
.gz-pc { font: 400 15px/1 var(--mono); color: var(--ink); letter-spacing: 0; }
.tk-actions { display: grid; gap: 10px; }
.tk-actions .btn .ic { width: 15px; height: 15px; }
.tk-addr { display: grid; gap: 12px; }
.addr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.addr code { font-size: 12.5px; flex: 1 1 100%; }
.tk-report summary { list-style: none; }
.tk-report summary::-webkit-details-marker { display: none; }
@media (min-width: 1100px) {
  .tk { grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: repeat(var(--m, 1), min-content) 1fr; }
  .tk > .ro-row, .tk > .pnl:not(.tk-report) { grid-column: 1; }
  .tk > .tk-insp { grid-column: 2; grid-row: 1 / span var(--n, 3); }
  .tk > .tk-report { grid-column: 1; }
}
@media (max-width: 400px) { .tk-img { width: 56px; height: 56px; } }
.card.coin { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; }
.card.coin img { border-radius: 10px; }
.card.coin .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.coin .tk { font-size: 13px; color: var(--ink-2); display: block; }
.card.coin .mc { text-align: right; font-family: var(--mono); }

/* Treasury (balances, split, plan, ledger), launch (closed checklist, form, review, sequence) and admin. */
.tr-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 10px 0 12px; padding: 8px 14px; background: var(--paper); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line), 0 3px 0 var(--under); }
.tr-addr .more { margin-left: auto; }
.tr-grid { display: grid; gap: 16px; margin: 16px 0; align-items: start; }
.tr-grid > .pnl + .pnl { margin-top: 0; }
.tr-grid .chartbox { min-width: 0; }
@media (min-width: 1000px) { .tr-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.tr-h { font-size: 21px; margin: 0 0 12px; }
.tr-lanes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.tr-lanes li { display: grid; gap: 2px; padding: 10px 12px 10px 16px; border-radius: var(--r); background: var(--paper-2); box-shadow: inset 5px 0 0 var(--c); }
.tr-lanes b { font-size: 15px; }
.tr-lanes span { font-size: 14px; color: var(--ink-2); }
.tr-plan { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1.5px dashed var(--stitch); }
.tr-plan li { display: grid; grid-template-columns: minmax(70px, auto) minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 10px 0 10px 12px; border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--c); }
.tr-plan .ln { font: 400 12.5px/1.2 var(--mono); color: var(--ink-3); text-transform: uppercase; }
.tr-plan .am { font: 400 13.5px/1.2 var(--mono); text-align: right; }
@media (max-width: 380px) { .tr-plan li { grid-template-columns: minmax(0, 1fr) auto; } .tr-plan .ln { grid-column: 1 / -1; } }
.log { list-style: none; margin: 0; padding: 0; }
.tr-log > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "bd v" "t tx"; gap: 4px 12px; padding: 12px 14px 12px 18px; border-top: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--c); }
.tr-log > li:first-child { border-top: 0; }
.tr-log .t { grid-area: t; font-size: 13px; color: var(--ink-3); }
.tr-log .bd { grid-area: bd; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.tr-log .v { grid-area: v; font: 400 14px/1.2 var(--mono); text-align: right; }
.tr-log .tx { grid-area: tx; text-align: right; font-size: 13px; }
.tr-log .nt { flex-basis: 100%; font-size: 13px; color: var(--ink-2); }
@media (min-width: 700px) { .tr-log > li { grid-template-columns: 96px minmax(0, 1fr) auto 140px; grid-template-areas: "t bd v tx"; align-items: center; } }
.tr-note { margin: 0; padding: 10px 14px; border-top: 1.5px dashed var(--stitch); }
.chartbox { position: relative; }
.chart { display: block; width: 100%; height: auto; }
.chart .plot { fill: var(--paper-2); stroke: var(--line); }
.chart .grid-l { stroke: var(--line-2); stroke-dasharray: 2 5; }
.chart .axis { fill: var(--ink-3); font: 400 11px var(--mono); }
.chart .area { fill: rgba(232, 182, 76, .35); }
.chart .line { fill: none; stroke: var(--cranberry); stroke-width: 2.5; }
.chart .dot { fill: var(--c, var(--foil)); stroke: var(--paper); stroke-width: 2; }
.chart .hair { stroke: var(--ink-3); stroke-dasharray: 3 4; }
.chartbox .tip { position: absolute; transform: translate(-50%, -120%); padding: 6px 10px; background: var(--pine-ink); color: var(--kraft); border-radius: 4px; font-size: 12.5px; white-space: nowrap; pointer-events: none; z-index: 2; }

/* launch: closed */
.lc-check { list-style: none; margin: 0; padding: 0; }
.lc-check li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 56px; padding: 12px 16px; border-top: 1px solid var(--line); }
.lc-check li:first-child { border-top: 0; }
.lc-check .lt { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--kraft-3); }
.lc-check li.ok .lt { background: var(--pine); border-color: var(--pine); }
.lc-check .st { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wine-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; }

/* launch: the form and its preview */
.lc { display: grid; gap: 16px; align-items: start; grid-template-columns: minmax(0, 1fr); grid-template-areas: "rail" "insp" "stage"; margin: 8px 0 24px; }
.lc-rail { grid-area: rail; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.lc-rail li { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 10px; background: var(--paper); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); font-weight: 700; font-size: 14px; color: var(--ink-3); }
.lc-rail li i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); font: 400 14px/1 var(--display); font-style: normal; flex: none; }
.lc-rail li.on { color: var(--ink); box-shadow: 0 0 0 2px var(--cranberry); }
.lc-rail li.on i { background: var(--cranberry); color: #fff; }
.lc-rail li.done i { background: var(--pine); color: #fff; }
.lc-stage { grid-area: stage; min-width: 0; }
.lc-insp { grid-area: insp; min-width: 0; }
@media (min-width: 1000px) {
  .lc { grid-template-columns: 168px minmax(0, 1fr) 320px; grid-template-areas: "rail stage insp"; }
  .lc-rail { grid-template-columns: 1fr; position: sticky; top: calc(var(--bar-h) + 16px); }
}
.lform .pnl-b > label:first-child { margin-top: 0; }
.lform .btn[type=submit] { min-height: 50px; }
.drop { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; margin: 0; padding: 12px; border: 2px dashed var(--line-2); border-radius: var(--r); background: #fffaf0; cursor: pointer; font-weight: 400; transition: border-color .2s, background-color .2s; }
.drop:hover { border-color: var(--pine); }
.drop img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; display: block; }
.drop input[type=file] { grid-column: 1 / -1; font-size: 14px; }
.drop b { display: block; }
.pad { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; }
.lot { position: relative; }
.lot .present-art { width: 110px; }
.lot-home { position: absolute; right: -4px; bottom: -2px; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 2px var(--paper), 0 3px 0 var(--under); }
.lot-home img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pad-t { min-width: 0; }
.pad .nm { font: 400 20px/1.2 var(--display); overflow-wrap: anywhere; }
.pad .tk { font-family: var(--mono); color: var(--ink-2); }
.pad dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 10px 0 0; font-size: 13.5px; }
.pad dt { color: var(--ink-3); font-weight: 700; }
.pad dd { margin: 0; font-family: var(--mono); }
@media (max-width: 999px) { .pad { grid-template-columns: 84px minmax(0, 1fr); } .lot .present-art { width: 84px; } }
.perks > summary { list-style: none; }
.perks > summary::-webkit-details-marker { display: none; }
.perks > summary::after { content: "+"; margin-left: auto; font-size: 18px; }
.perks[open] > summary::after { content: "\2212"; }
.perks:not([open]) > summary { border-bottom: 0; }
.perks ul { list-style: none; margin: 0; padding: 10px 16px 14px; }
.perks li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; }
.perks li .ic { color: var(--pine); }
@media (min-width: 1000px) { .perks > summary { cursor: default; } .perks > summary::after { content: none; } }

/* launch: review and sequence */
.pf-list { list-style: none; margin: 14px 0; padding: 0; border-radius: var(--r); background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.pf { display: grid; grid-template-columns: 10px 96px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 11px 14px; border-top: 1px solid var(--line); }
.pf:first-child { border-top: 0; }
.pf .lt { width: 8px; height: 8px; border-radius: 50%; background: var(--pine); }
.pf .k { font-weight: 700; font-size: 14px; }
.pf .v { font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 519px) { .pf { grid-template-columns: 10px minmax(0, 1fr); } .pf .v { grid-column: 2; } }
.pf-h { margin: 18px 0 8px; font-size: 18px; }
.review details { margin-top: 12px; }
.progress { list-style: none; margin: 14px 0; padding: 0; }
.progress.seq { border-radius: var(--r); overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.progress.seq li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; border-top: 1px solid var(--line); }
.progress.seq li:first-child { border-top: 0; }
.progress.seq li i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); font: 400 14px/1 var(--display); font-style: normal; flex: none; box-shadow: 0 0 0 1px var(--line-2); }
.progress.seq li.on { background: #fbefc9; }
.progress.seq li.on i { background: var(--foil); box-shadow: none; }
.progress.seq li.done i { background: var(--pine); color: #fff; box-shadow: none; }
.progress.seq li.fail { background: #fbe0dc; }
.progress.seq li.fail i { background: var(--bad); color: #fff; }
@media (prefers-reduced-motion: no-preference) { .progress.seq li.on i { animation: pulse 1.2s ease-in-out infinite; } }
@keyframes pulse { 50% { transform: scale(1.12); } }
.facts { list-style: none; margin: 0; padding: 0; }

/* admin */
.admin { padding-top: 24px; padding-bottom: 24px; }
.admin .card { margin-top: 12px; }
.admin h2 { margin-top: 24px; }
.hp-out { margin-top: 12px; }

/* 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: 650 17px/1.2 var(--display); font-stretch: 108%; 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: .12em; 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; }
.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-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: 2px; 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: 650 17px/1.25 var(--display); font-stretch: 106%; }
.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: 2px; 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: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 2px; 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: 40px; border-radius: 2px; 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: 40px; }

/* ---------- deep-space: lit spheres, tabs, accordions ---------- */
.fw-orbit { stroke: var(--line-2); }
.fw-node .fw-disc { fill: url(#fw-st); 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: url(#fw-st); }
.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: 2px; 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(43, 255, 136, .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-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: 2px; }
.faq-list [role="tab"][aria-selected="true"] { box-shadow: inset 3px 0 0 var(--blue); }
.rl-index a { border-radius: 2px; 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); }
