/* Layout and components of the quality starter. Sizes are all calc(N * var(--px)) (HouseStyle.md §4); the look is in theme.css.
   Banned (HouseStyle.md §2): pills, badges, live dots, eyebrows, icon circles, UI glows/gradients, toasts, bordered cards. */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: var(--scheme, dark); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: calc(17 * var(--px)); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, .t-num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.up { color: var(--up); } .down { color: var(--down); }
.wrap { width: 100%; max-width: calc(1720 * var(--px)); margin: 0 auto; padding: 0 calc(72 * var(--px)); }

/* ---------- buttons (one radius) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: calc(10 * var(--px)); height: calc(56 * var(--px));
  padding: 0 calc(30 * var(--px)); border-radius: var(--r); font-size: calc(16 * var(--px)); font-weight: 600; letter-spacing: .005em;
  white-space: nowrap; transition: transform .2s var(--ease), background-color .2s var(--ease), filter .2s var(--ease); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); box-shadow: var(--btn-primary-shade); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { box-shadow: var(--btn-ghost-edge); }
.btn.ghost:hover { background: var(--raise-2); }
.btn.sm { height: calc(42 * var(--px)); padding: 0 calc(18 * var(--px)); font-size: calc(14 * var(--px)); }
.btn svg { width: calc(16 * var(--px)); height: calc(16 * var(--px)); }
.link { color: var(--soft); font-size: calc(16 * var(--px)); }
.link:hover { color: var(--fg); }
.copy { font-family: var(--f-mono); font-size: calc(12 * var(--px)); padding: calc(6 * var(--px)) calc(10 * var(--px)); border-radius: var(--r);
  background: var(--raise-2); color: var(--soft); transition: background-color .2s var(--ease); }
.copy:hover { background: var(--raise-2); color: var(--fg); filter: brightness(1.15); }

/* ---------- header (holds still while pages cross-fade) ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; height: calc(76 * var(--px)); view-transition-name: site-header;
  background: var(--header-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 -1px 0 var(--line); }
.top .wrap { height: 100%; display: flex; align-items: center; position: relative; }
.brand { display: inline-flex; align-items: center; gap: calc(12 * var(--px)); font-family: var(--f-display); font-weight: 700;
  font-size: calc(24 * var(--px)); letter-spacing: -0.035em; }
.brand .mk { width: calc(34 * var(--px)); height: calc(34 * var(--px)); display: block; transform-origin: 50% 60%; }
.brand .mk.hop { animation: mk-hop .62s var(--ease); }
.brand:hover .mk { animation: mk-hop .62s var(--ease); }
@keyframes mk-hop { 0% { transform: none; } 30% { transform: translateY(calc(-5 * var(--px))) rotate(-14deg) scale(1.08, .94); }
  62% { transform: translateY(0) rotate(6deg) scale(.96, 1.04); } 100% { transform: none; } }
.brand .tk { color: var(--accent); }
.nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: calc(34 * var(--px)); }
.nav a { font-size: calc(15 * var(--px)); color: var(--mute); letter-spacing: .01em; position: relative; padding: calc(6 * var(--px)) 0; transition: color .2s var(--ease); }
.nav a:hover, .nav a.on { color: var(--fg); }
.nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(-4 * var(--px)); height: 2px; background: var(--accent); border-radius: 2px; }
.acts { margin-left: auto; display: flex; align-items: center; gap: calc(10 * var(--px)); }
.ca-btn { font-family: var(--f-mono); font-size: calc(13 * var(--px)); height: calc(42 * var(--px)); padding: 0 calc(14 * var(--px)); border-radius: var(--r);
  box-shadow: var(--btn-ghost-edge); color: var(--soft); display: inline-flex; align-items: center; gap: calc(8 * var(--px)); }
.ca-btn b { color: var(--fg); font-weight: 500; }
.ca-btn:hover { background: var(--raise-2); }
.sound { font-family: var(--f-mono); font-size: calc(12 * var(--px)); color: var(--mute); padding: 0 calc(6 * var(--px)); }

/* ---------- page shell ---------- */
main { padding-top: calc(76 * var(--px)); min-height: 100vh; view-transition-name: page; }
::view-transition-old(page) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(page) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(calc(10 * var(--px))); } }
.sec { padding: calc(120 * var(--px)) 0 0; position: relative; }
.h2 { font-family: var(--f-display); font-weight: var(--f-display-weight); letter-spacing: -0.035em; line-height: 1.02; font-size: calc(60 * var(--px)); }
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: calc(32 * var(--px)); margin-bottom: calc(52 * var(--px)); }
.lede { color: var(--soft); font-size: calc(20 * var(--px)); max-width: calc(720 * var(--px)); margin-top: calc(14 * var(--px)); }
.rv { opacity: 0; transform: translateY(calc(26 * var(--px))); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- the 3D canvas: fixed behind the hero, scrolls away with it ---------- */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; transition: opacity .5s var(--ease); }
main, footer, #footer-slot { position: relative; z-index: 1; }
.top { position: fixed; z-index: 50; }

/* ---------- hero: the whole pitch on the first screen ---------- */
.hero { min-height: calc(100vh - 76 * var(--px)); display: flex; align-items: center; padding: calc(40 * var(--px)) 0 calc(56 * var(--px)); }
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: calc(40 * var(--px)); align-items: center; }
.hero h1 { font-family: var(--f-display); font-weight: var(--f-display-weight); letter-spacing: var(--f-display-track); line-height: .98;
  font-size: calc(84 * var(--px)); text-wrap: balance; }
.hero h1 > span { display: block; }
.hero .pitch { margin-top: calc(28 * var(--px)); color: var(--soft); font-size: calc(21 * var(--px)); max-width: calc(700 * var(--px)); }
.steps3 { margin-top: calc(36 * var(--px)); display: grid; gap: calc(20 * var(--px)); max-width: calc(700 * var(--px)); }
.steps3 li { display: grid; grid-template-columns: calc(32 * var(--px)) 1fr; }
.steps3 .n { font-family: var(--f-mono); font-size: calc(14 * var(--px)); color: var(--accent); padding-top: calc(3 * var(--px)); }
.steps3 b { display: block; font-weight: 500; font-size: calc(18 * var(--px)); }
.steps3 span { color: var(--mute); font-size: calc(16 * var(--px)); }
.hero-acts { margin-top: calc(38 * var(--px)); display: flex; gap: calc(14 * var(--px)); flex-wrap: wrap; }
.ca-line { margin-top: calc(26 * var(--px)); font-family: var(--f-mono); font-size: calc(13 * var(--px)); color: var(--mute); display: flex; align-items: center; gap: calc(10 * var(--px)); }
.ca-line b { color: var(--fg); font-weight: 500; word-break: break-all; }
.cluster { position: relative; height: calc(720 * var(--px)); }
.cluster img { position: absolute; pointer-events: none; user-select: none; will-change: transform; }
.cluster .c1 { width: 44%; left: 0; top: 4%; filter: blur(calc(3 * var(--px))); opacity: .75; }
.cluster .c2 { width: 34%; right: 0; top: 56%; filter: blur(calc(5 * var(--px))); opacity: .6; }
.cluster .c3 { width: 26%; right: 8%; top: 0; filter: blur(calc(7 * var(--px))); opacity: .45; }
.cluster .front { width: 94%; left: 3%; top: 4%; filter: drop-shadow(0 calc(60 * var(--px)) calc(70 * var(--px)) rgba(0,0,0,.7)); transition: opacity .5s var(--ease); }
body.live3d #home .front { opacity: 0; }   /* the live 3D object sits exactly where this render is */

/* ---------- live strip ---------- */
.strip { margin-top: 0; position: relative; box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); overflow: hidden; display: flex; align-items: center; height: calc(88 * var(--px)); }
.strip .label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; padding: 0 calc(28 * var(--px)) 0 calc(72 * var(--px));
  background: linear-gradient(90deg, var(--bg) 70%, transparent); font-family: var(--f-mono); font-size: calc(12 * var(--px)); color: var(--mute); white-space: nowrap; }
.strip .track { display: flex; width: max-content; animation: marquee 70s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.strip a { display: flex; align-items: center; gap: calc(12 * var(--px)); padding: 0 calc(30 * var(--px)); height: calc(88 * var(--px)); transition: transform .25s var(--ease); }
.strip a:hover { transform: translateY(-2px); }
.strip img, .coin-img { width: calc(36 * var(--px)); height: calc(36 * var(--px)); border-radius: 50%; object-fit: cover; background: var(--raise-2); flex: none; }
.strip b { font-weight: 600; font-size: calc(16 * var(--px)); }
.strip .t-num { font-size: calc(14 * var(--px)); color: var(--soft); }
.strip .chg { font-size: calc(13 * var(--px)); }

/* ---------- the stage: parallax built from the renders (the signature moment) ---------- */
.stage { position: relative; height: 112vh; overflow: hidden; margin-top: calc(40 * var(--px)); }
.stage .layer { position: absolute; inset: 0; will-change: transform; }
.stage img { position: absolute; pointer-events: none; user-select: none; }
.stage .d1 img { filter: blur(calc(6 * var(--px))); opacity: .5; }
.stage .d2 img { filter: blur(calc(2 * var(--px))); }
.stage .d4 img { filter: drop-shadow(0 calc(60 * var(--px)) calc(80 * var(--px)) rgba(0,0,0,.75)); }
.stage .words { position: absolute; left: 0; right: 0; top: 13%; text-align: center; padding: 0 calc(24 * var(--px)); }
.stage .words h2 { font-family: var(--f-display); font-weight: var(--f-display-weight); letter-spacing: var(--f-display-track); line-height: .98; font-size: calc(132 * var(--px)); }
.stage .words h2 > span { display: block; }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, var(--bg) 92%); pointer-events: none; }

/* ---------- how it works: a live diagram per step ---------- */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(20 * var(--px)); }
.how-grid li { display: flex; flex-direction: column; }
.diag { height: calc(200 * var(--px)); border-radius: var(--r); background: var(--raise); position: relative; overflow: hidden; }
.diag canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.how-grid .n { font-family: var(--f-mono); font-size: calc(14 * var(--px)); color: var(--accent); margin-top: calc(22 * var(--px)); }
.how-grid h3 { font-size: calc(21 * var(--px)); font-weight: 600; letter-spacing: -0.01em; margin-top: calc(6 * var(--px)); }
.how-grid p { color: var(--mute); font-size: calc(16 * var(--px)); margin-top: calc(8 * var(--px)); }

/* ---------- the shelf: one render per variant ---------- */
.shelf { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: calc(48 * var(--px)) calc(24 * var(--px)); }
.shelf li { cursor: default; }
.shelf .pic { aspect-ratio: 1; display: grid; place-items: center; }
.shelf img { width: 86%; transition: transform .5s cubic-bezier(.2,.9,.3,1.2); }
.shelf li:hover img { transform: translateY(calc(-12 * var(--px))) scale(1.06) rotate(-4deg); }
.shelf b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: calc(15 * var(--px)); margin-top: calc(10 * var(--px)); }
.shelf span { color: var(--mute); font-size: calc(16 * var(--px)); }

/* ---------- board ---------- */
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: calc(24 * var(--px)); margin-bottom: calc(28 * var(--px)); }
.updated { font-family: var(--f-mono); font-size: calc(12 * var(--px)); color: var(--mute); white-space: nowrap; }
.table { width: 100%; border-collapse: collapse; font-size: calc(15 * var(--px)); }
.table th { text-align: left; font-weight: 400; color: var(--mute); font-size: calc(13 * var(--px)); padding: 0 calc(12 * var(--px)) calc(14 * var(--px)); white-space: nowrap; }
.table td { padding: calc(14 * var(--px)) calc(12 * var(--px)); box-shadow: inset 0 1px 0 var(--line); white-space: nowrap; }
.table tbody tr { transition: background-color .2s var(--ease); cursor: pointer; }
.table tbody tr:hover { background: var(--raise); }
.table .t-num { font-size: calc(14 * var(--px)); }
.coin { display: flex; align-items: center; gap: calc(12 * var(--px)); }
.coin b { font-weight: 600; }
.coin span { color: var(--mute); margin-left: calc(6 * var(--px)); }
.table .mono { font-size: calc(13 * var(--px)); color: var(--soft); }
.table td:last-child { text-align: right; }
.row-btn { font-size: calc(13 * var(--px)); padding: calc(8 * var(--px)) calc(14 * var(--px)); border-radius: var(--r); box-shadow: var(--btn-ghost-edge); color: var(--soft); }
.row-btn:hover { background: var(--raise-2); color: var(--fg); }
.skel td span { display: block; height: calc(14 * var(--px)); border-radius: var(--r); background: linear-gradient(90deg, var(--raise), var(--raise-2), var(--raise)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.more { margin-top: calc(28 * var(--px)); }

/* ---------- fees ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(40 * var(--px)); }
.stats b { display: block; font-family: var(--f-display); font-weight: var(--f-display-weight); letter-spacing: -0.04em; font-size: calc(96 * var(--px)); line-height: 1; }
.stats b.acc { color: var(--accent); }
.stats span { display: block; color: var(--soft); margin-top: calc(14 * var(--px)); max-width: calc(380 * var(--px)); }
.splitbar { display: flex; height: calc(10 * var(--px)); border-radius: var(--r); overflow: hidden; margin-top: calc(56 * var(--px)); gap: calc(3 * var(--px)); }
.splitbar i { display: block; height: 100%; }
.note { color: var(--mute); font-size: calc(15 * var(--px)); margin-top: calc(18 * var(--px)); }

/* ---------- faq + cta ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 calc(56 * var(--px)); }
.faq div { box-shadow: inset 0 1px 0 var(--line); padding: calc(26 * var(--px)) 0 calc(30 * var(--px)); }
.faq b { display: block; font-weight: 600; font-size: calc(19 * var(--px)); }
.faq p { color: var(--mute); margin-top: calc(8 * var(--px)); }
.cta { padding: calc(150 * var(--px)) 0 calc(130 * var(--px)); text-align: center; }
.cta .h2 { font-size: calc(84 * var(--px)); letter-spacing: var(--f-display-track); }
.cta .hero-acts { justify-content: center; }

/* ---------- coin page ---------- */
.coin-top { display: flex; align-items: center; gap: calc(24 * var(--px)); }
.coin-top .coin-img { width: calc(88 * var(--px)); height: calc(88 * var(--px)); }
.coin-top h1 { font-family: var(--f-display); font-weight: var(--f-display-weight); letter-spacing: -0.04em; font-size: calc(72 * var(--px)); line-height: 1; }
.coin-top .sym { color: var(--dim); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(20 * var(--px)); margin-top: calc(48 * var(--px)); }
.facts div { background: var(--raise); border-radius: var(--r); padding: calc(24 * var(--px)); }
.facts dt { color: var(--mute); font-size: calc(14 * var(--px)); }
.facts dd { font-family: var(--f-mono); font-size: calc(30 * var(--px)); margin-top: calc(6 * var(--px)); font-variant-numeric: tabular-nums; }
.coin-desc { color: var(--soft); max-width: calc(820 * var(--px)); margin-top: calc(28 * var(--px)); }
.coin-acts { display: flex; gap: calc(12 * var(--px)); margin-top: calc(32 * var(--px)); flex-wrap: wrap; }

/* ---------- launch ---------- */
.launch-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: calc(48 * var(--px)); align-items: start; }
.field { display: block; margin-bottom: calc(18 * var(--px)); }
.field span { display: block; color: var(--mute); font-size: calc(14 * var(--px)); margin-bottom: calc(8 * var(--px)); }
.field input, .field textarea, .field select { width: 100%; height: calc(56 * var(--px)); border-radius: var(--r); background: var(--raise); border: 0;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); padding: 0 calc(18 * var(--px)); font: inherit; font-size: calc(16 * var(--px)); }
.field textarea { height: calc(120 * var(--px)); padding-top: calc(14 * var(--px)); resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: calc(16 * var(--px)); }
.cuts { display: grid; grid-template-columns: repeat(5, 1fr); gap: calc(10 * var(--px)); margin-bottom: calc(18 * var(--px)); }
.cuts button { border-radius: var(--r); background: var(--raise); padding: calc(10 * var(--px)) calc(6 * var(--px)) calc(12 * var(--px)); text-align: center;
  font-family: var(--f-mono); font-size: calc(12 * var(--px)); color: var(--mute); transition: background-color .2s var(--ease), color .2s var(--ease); }
.cuts button img { width: 70%; margin: 0 auto calc(6 * var(--px)); }
.cuts button.on { background: var(--raise-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--accent); }
.preview { background: var(--raise); border-radius: var(--r); padding: calc(32 * var(--px)); position: sticky; top: calc(110 * var(--px)); }
.preview .pv-top { display: flex; align-items: center; gap: calc(18 * var(--px)); }
.preview .pv-top img { width: calc(84 * var(--px)); }
.preview h3 { font-family: var(--f-display); font-weight: var(--f-display-weight); font-size: calc(36 * var(--px)); letter-spacing: -0.03em; line-height: 1.05; }
.preview .sym { color: var(--mute); font-family: var(--f-mono); font-size: calc(14 * var(--px)); }
.preview dl { margin-top: calc(26 * var(--px)); }
.preview dl div { display: flex; justify-content: space-between; padding: calc(12 * var(--px)) 0; box-shadow: inset 0 1px 0 var(--line); }
.preview dt { color: var(--mute); }
.preview dd { font-family: var(--f-mono); }
.msg { min-height: calc(24 * var(--px)); margin-top: calc(12 * var(--px)); color: var(--mute); font-size: calc(15 * var(--px)); }
.msg.err { color: var(--down); }

/* ---------- hero: the live product (terminal preset) ---------- */
.hero-product .wrap { grid-template-columns: .95fr 1.05fr; align-items: start; }
.hero-product h1 { font-size: calc(72 * var(--px)); }
.panel { border-radius: var(--r); background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: calc(14 * var(--px)) calc(18 * var(--px)); box-shadow: inset 0 -1px 0 var(--line); }
.tabs { display: flex; gap: calc(4 * var(--px)); }
.tabs button { font-size: calc(14 * var(--px)); padding: calc(7 * var(--px)) calc(14 * var(--px)); border-radius: var(--r); color: var(--mute); transition: background-color .2s var(--ease), color .2s var(--ease); }
.tabs button.on { background: var(--raise-2); color: var(--fg); }
.panel-cols, .panel-rows li { display: grid; grid-template-columns: 1.7fr 1fr 1fr .8fr .6fr; align-items: center; gap: calc(10 * var(--px)); padding: 0 calc(18 * var(--px)); }
.panel-cols { height: calc(36 * var(--px)); font-size: calc(12 * var(--px)); color: var(--mute); }
.panel-rows li { height: calc(56 * var(--px)); box-shadow: inset 0 1px 0 var(--line); cursor: pointer; transition: background-color .25s var(--ease); font-size: calc(14 * var(--px)); }
.panel-rows li:hover { background: var(--raise-2); }
.panel-rows .coin-img { width: calc(30 * var(--px)); height: calc(30 * var(--px)); }
.panel-rows .coin b { display: inline-block; max-width: calc(170 * var(--px)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.panel-rows li.skel span { display: block; height: calc(14 * var(--px)); width: 100%; grid-column: 1 / -1; border-radius: var(--r); background: linear-gradient(90deg, var(--raise), var(--raise-2), var(--raise)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.panel-rows li.tick.up-t { animation: tick-up 1.2s var(--ease); }
.panel-rows li.tick.down-t { animation: tick-down 1.2s var(--ease); }
@keyframes tick-up { from { background: color-mix(in srgb, var(--up) 18%, transparent); } }
@keyframes tick-down { from { background: color-mix(in srgb, var(--down) 18%, transparent); } }

/* ---------- hero: a scene (story preset) ---------- */
.hero-scene { padding-top: calc(70 * var(--px)); }
.hero-scene .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-scene h1 { font-size: calc(92 * var(--px)); }
.hero-scene h1 > span { display: block; }
.scene-space { position: relative; width: calc(400 * var(--px)); height: calc(330 * var(--px)); margin: calc(8 * var(--px)) 0 calc(14 * var(--px)); }
.scene-space .front { position: absolute; left: 0; top: calc(-35 * var(--px)); width: 100%; filter: drop-shadow(0 calc(50 * var(--px)) calc(60 * var(--px)) rgba(0,0,0,.6)); transition: opacity .5s var(--ease); }
.hero-scene .pitch { margin: 0 auto; max-width: calc(760 * var(--px)); }
.hero-scene .hero-acts { justify-content: center; margin-top: calc(28 * var(--px)); }
.steps-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(28 * var(--px)); margin-top: calc(40 * var(--px)); text-align: left; max-width: calc(1180 * var(--px)); }
.steps-inline li { display: grid; grid-template-columns: calc(28 * var(--px)) 1fr; }
.steps-inline .n { font-family: var(--f-mono); font-size: calc(14 * var(--px)); color: var(--accent); padding-top: calc(3 * var(--px)); }
.steps-inline b { display: block; font-weight: 500; font-size: calc(17 * var(--px)); }
.steps-inline span { color: var(--mute); font-size: calc(15 * var(--px)); }
.hero-scene .ca-line { justify-content: center; }

/* ---------- hero: type and one live number (editorial preset) ---------- */
.hero-type .wrap { display: block; }
.hero-type h1 { font-size: calc(150 * var(--px)); line-height: .94; max-width: calc(1600 * var(--px)); text-wrap: balance; }
.type-row { display: grid; grid-template-columns: 1fr 1fr; gap: calc(64 * var(--px)); margin-top: calc(48 * var(--px)); align-items: start; }
.type-row .steps3 { margin-top: calc(6 * var(--px)); }
.liveline { margin-top: calc(56 * var(--px)); padding-top: calc(22 * var(--px)); box-shadow: inset 0 1px 0 var(--line); display: flex; align-items: center; gap: calc(14 * var(--px)); flex-wrap: wrap; font-size: calc(17 * var(--px)); }
.liveline a { display: inline-flex; align-items: center; gap: calc(10 * var(--px)); }
.liveline .big { font-family: var(--f-display); font-size: calc(40 * var(--px)); letter-spacing: -0.03em; }

/* ---------- signature: the scroll-driven walk (story preset) ---------- */
.scrub { height: calc(var(--steps, 4) * 85vh + 100vh); position: relative; margin-top: calc(80 * var(--px)); }
.scrub-pin { position: sticky; top: calc(76 * var(--px)); height: calc(100vh - 76 * var(--px)); display: flex; align-items: center; }
.scrub-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: calc(64 * var(--px)); align-items: center; }
.scrub-steps { margin-top: calc(36 * var(--px)); }
.scrub-steps li { display: grid; grid-template-columns: calc(40 * var(--px)) 1fr; padding: calc(16 * var(--px)) 0; box-shadow: inset 0 1px 0 var(--line); opacity: .38; transition: opacity .5s var(--ease); }
.scrub-steps li.on { opacity: 1; }
.scrub-steps .n { font-family: var(--f-mono); font-size: calc(14 * var(--px)); color: var(--accent); padding-top: calc(4 * var(--px)); }
.scrub-steps h3 { font-size: calc(22 * var(--px)); font-weight: 600; }
.scrub-steps p { color: var(--mute); max-height: 0; overflow: hidden; transition: max-height .6s var(--ease), margin .6s var(--ease); }
.scrub-steps li.on p { max-height: calc(120 * var(--px)); margin-top: calc(6 * var(--px)); }
.scrub-bar { height: 2px; background: var(--line); margin-top: calc(18 * var(--px)); border-radius: 2px; overflow: hidden; }
.scrub-bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.scrub-vis { position: relative; height: calc(520 * var(--px)); }
.scrub-vis .diag.big { position: absolute; inset: 0; height: auto; opacity: 0; transform: scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.scrub-vis .diag.big.on { opacity: 1; transform: none; }

/* ---------- signature: a tool on the landing (editorial preset) ---------- */
.play-grid > *, .type-row > *, .scrub-grid > *, .hero .wrap > * { min-width: 0; }
.play-grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(40 * var(--px)); align-items: start; }
.play-input { display: flex; gap: calc(10 * var(--px)); }
.play-input input { flex: 1; min-width: 0; height: calc(56 * var(--px)); border-radius: var(--r); border: 0; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg); padding: 0 calc(18 * var(--px)); font-family: var(--f-mono); font-size: calc(15 * var(--px)); }
.play-input input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent); }
.play-try { color: var(--mute); font-size: calc(15 * var(--px)); margin-top: calc(6 * var(--px)); }
.play-try button { color: var(--fg); margin-left: calc(12 * var(--px)); font-family: var(--f-mono); font-size: calc(14 * var(--px)); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.play-try button:hover { color: var(--accent); }
.play-out { border-radius: var(--r); background: var(--raise); padding: calc(28 * var(--px)); min-height: calc(220 * var(--px)); }
.play-coin .coin-img { width: calc(48 * var(--px)); height: calc(48 * var(--px)); }
.play-coin b { font-size: calc(22 * var(--px)); }
.play-coin span { display: block; margin: 0; }
.play-dl { margin-top: calc(18 * var(--px)); }
.play-dl div { display: flex; justify-content: space-between; gap: calc(16 * var(--px)); padding: calc(12 * var(--px)) 0; box-shadow: inset 0 1px 0 var(--line); }
.play-dl dt { color: var(--mute); }
.play-dl dd { font-family: var(--f-mono); }

/* ---------- intro (HouseStyle.md §6a, Enter from Rules.md) ---------- */
.intro { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
body.is-intro .intro { pointer-events: auto; }
body.is-intro main, body.is-intro footer, body.is-intro .top, body.is-intro .tabbar { opacity: 0; }
main, footer, .top, .tabbar { transition: opacity .6s var(--ease); }
.intro .hud { position: absolute; left: calc(48 * var(--px)); right: calc(48 * var(--px)); bottom: calc(40 * var(--px)); display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: calc(12 * var(--px)); color: var(--mute); opacity: 0; transition: opacity .6s var(--ease); }
.intro .hud b { color: var(--fg); font-weight: 500; }
.intro .flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.intro .disc { position: absolute; inset: 0; background: #fff; clip-path: circle(0 at 50% 46%); }
.intro .mark { position: absolute; left: 50%; top: 46%; width: calc(132 * var(--px)); height: calc(132 * var(--px)); margin: calc(-66 * var(--px)) 0 0 calc(-66 * var(--px));
  opacity: 0; transform: scale(.4); }
.intro .mark svg { width: 100%; height: 100%; display: block; }
.intro .word { position: absolute; left: 0; right: 0; top: calc(46% + 96 * var(--px)); text-align: center; font-family: var(--f-display);
  font-weight: var(--f-display-weight); letter-spacing: -0.04em; font-size: calc(88 * var(--px)); line-height: 1; }
.intro .word span { display: inline-block; opacity: 0; transform: translateY(calc(-40 * var(--px))) rotate(var(--tilt, 0deg)); }
.intro .line { position: absolute; left: 0; right: 0; top: calc(46% + 204 * var(--px)); text-align: center; color: var(--soft); font-size: calc(19 * var(--px)); opacity: 0;
  padding: 0 calc(24 * var(--px)); }
.intro .enter { position: absolute; left: 50%; top: calc(46% + 262 * var(--px)); transform: translateX(-50%); opacity: 0; pointer-events: none; }
.intro.ready .enter { opacity: 1; pointer-events: auto; transition: opacity .5s var(--ease); }
.intro.gone { opacity: 0; transition: opacity .5s var(--ease); }
.intro.gone * { pointer-events: none !important; }

/* ---------- cursor (above the intro) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor i { position: absolute; width: calc(10 * var(--px)); height: calc(10 * var(--px)); margin: calc(-5 * var(--px)) 0 0 calc(-5 * var(--px)); border-radius: 50%;
  background: var(--fg); mix-blend-mode: difference; transition: transform .25s var(--ease); }
.cursor.on { opacity: 1; }
.cursor.big i { transform: scale(3.2); }

/* ---------- footer (Hitch style, HouseStyle.md §5) ---------- */
.foot { box-shadow: inset 0 1px 0 var(--line-2); margin-top: calc(40 * var(--px)); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: calc(34 * var(--px)); padding: calc(44 * var(--px)) calc(24 * var(--px)) calc(46 * var(--px));
  max-width: calc(1180 * var(--px)); margin: 0 auto; }
.foot-brand { display: flex; align-items: center; gap: calc(10 * var(--px)); font-weight: 700; font-size: calc(18 * var(--px)); letter-spacing: -0.02em; }
.foot-brand svg { width: calc(30 * var(--px)); height: calc(30 * var(--px)); }
.foot-lead p { color: var(--soft); margin-top: calc(10 * var(--px)); font-size: calc(15 * var(--px)); max-width: calc(380 * var(--px)); }
.foot-ca { font-family: var(--f-mono); font-size: calc(12 * var(--px)); color: var(--mute); margin-top: calc(12 * var(--px)); word-break: break-all; }
.foot h4 { margin: 0 0 calc(12 * var(--px)); font-family: var(--f-mono); font-weight: 400; font-size: calc(11 * var(--px)); text-transform: uppercase; letter-spacing: .16em; opacity: .6; }
.foot li { margin-bottom: calc(8 * var(--px)); }
.foot a { color: var(--soft); font-size: calc(15 * var(--px)); }
.foot a:hover { color: var(--fg); }
.fine { grid-column: 1 / -1; font-size: calc(12.5 * var(--px)); opacity: .6; max-width: calc(800 * var(--px)); margin-top: calc(10 * var(--px)); }

/* ---------- docs ---------- */
.docs { padding: calc(80 * var(--px)) 0 calc(60 * var(--px)); display: grid; grid-template-columns: calc(220 * var(--px)) minmax(0, calc(860 * var(--px))); gap: calc(72 * var(--px)); align-items: start; }
.docs h1 { font-family: var(--f-display); font-weight: var(--f-display-weight); letter-spacing: var(--f-display-track); font-size: calc(80 * var(--px)); line-height: 1; }
.docs h2 { font-size: calc(30 * var(--px)); letter-spacing: -0.02em; margin: calc(56 * var(--px)) 0 calc(12 * var(--px)); }
.docs p { color: var(--soft); margin-bottom: calc(12 * var(--px)); }
.docs .toc { display: flex; gap: calc(20 * var(--px)); flex-wrap: wrap; margin-top: calc(28 * var(--px)); }
.docs .toc a { color: var(--mute); } .docs .toc a:hover { color: var(--fg); }

/* ---------- phone ---------- */
.tabbar { display: none; }
@media (max-width: 980px) {
  .wrap { padding: 0 20px; }
  .nav, .ca-btn, .sound { display: none; }
  .acts .xbtn span { display: none; }
  .top { height: 64px; } main { padding-top: 64px; padding-bottom: 72px; }
  .hero { min-height: auto; padding-top: 28px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 46px; }
  .cluster { height: 340px; order: -1; margin: 0 -20px; }
  .sec { padding-top: 80px; }
  .h2 { font-size: 38px; }
  .title-row, .board-head { flex-direction: column; align-items: flex-start; }
  .stage { height: 86vh; }
  .stage .words h2 { font-size: 52px; }
  .stage .d4 img { top: 34% !important; }
  .strip .label { display: none; }
  .how-grid { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .stats b { font-size: 64px; }
  .faq { grid-template-columns: 1fr; }
  .cta .h2 { font-size: 44px; }
  .table .hide-s { display: none; }
  .table { font-size: 14px; }
  .coin b { display: inline-block; max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
  .coin span { display: none; }
  .cluster { overflow: hidden; }
  .table td, .table th { padding-left: 6px; padding-right: 6px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts dd { font-size: 20px; }
  .coin-top h1 { font-size: 40px; }
  .launch-grid { grid-template-columns: 1fr; }
  .preview { position: static; }
  .cuts { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-lead { grid-column: 1 / -1; }
  .intro .word { font-size: 56px; top: calc(46% + 80px); }
  .intro .line { top: calc(46% + 150px); font-size: 16px; }
  .intro .enter { top: calc(46% + 200px); }
  .hero-product .wrap, .type-row, .play-grid, .scrub-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-product h1 { font-size: 40px; }
  .panel-cols, .panel-rows li { grid-template-columns: 1.6fr 1fr .8fr; }
  .panel-cols .hide-s, .panel-rows .hide-s { display: none; }
  .hero-scene h1 { font-size: 44px; }
  .scene-space { width: 300px; height: 240px; }
  .steps-inline { grid-template-columns: 1fr; gap: 14px; }
  .hero-type h1 { font-size: 54px; }
  .liveline .big { font-size: 26px; }
  .scrub { height: auto; }
  .scrub-pin { position: static; height: auto; }
  .scrub-steps li { opacity: 1; }
  .scrub-steps p { max-height: none; margin-top: 6px; }
  .scrub-vis { height: 220px; margin-top: 20px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 64px; background: var(--header-bg); backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { flex: 1; display: grid; place-items: center; font-size: 13px; color: var(--mute); }
  .tabbar a.on { color: var(--fg); }
}

/* ---------- ADVENT: drafting hairlines behind the hero, and the calendar ---------- */
.hero-scene { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc(96 * var(--px)) calc(96 * var(--px)); background-position: center top; }
.hero-scene h1 { font-size: calc(96 * var(--px)); line-height: .95; }
.hero-scene { padding-top: calc(40 * var(--px)); padding-bottom: calc(30 * var(--px)); }
.hero-scene .scene-space { width: calc(400 * var(--px)); height: calc(290 * var(--px)); margin: calc(10 * var(--px)) 0 calc(6 * var(--px)); }
.hero-scene .steps-inline { margin-top: calc(30 * var(--px)); }
.hero-scene .ca-line { margin-top: calc(18 * var(--px)); }
.brand { font-weight: 400; font-size: calc(28 * var(--px)); letter-spacing: -0.02em; }
.hero-scene h1 .dim { color: var(--accent); }
.cal-next { font-size: calc(17 * var(--px)); color: var(--soft); white-space: nowrap; }
.cal-next b { font-family: var(--f-display); font-size: calc(40 * var(--px)); color: var(--fg); font-weight: 400; margin: 0 calc(8 * var(--px)); letter-spacing: -0.01em; }
.cal { display: grid; grid-template-columns: repeat(9, 1fr); gap: calc(14 * var(--px)); grid-auto-flow: dense; }
.cal .cell { aspect-ratio: .86; perspective: calc(900 * var(--px)); position: relative; }
.cal .big { grid-column: 8 / 10; grid-row: 2 / 4; aspect-ratio: auto; }
.cal .cell.open { z-index: 2; }
.door { position: relative; display: block; width: 100%; height: 100%; border-radius: var(--r); text-align: left; cursor: pointer; }
.door .inside { position: absolute; inset: 0; border-radius: var(--r); background: var(--inside); color: var(--fg); padding: calc(14 * var(--px));
  display: flex; flex-direction: column; justify-content: flex-end; gap: calc(4 * var(--px)); font-size: calc(13 * var(--px)); line-height: 1.35;
  box-shadow: inset 0 calc(10 * var(--px)) calc(18 * var(--px)) rgba(120,50,10,.25); }
.door .inside b { font-family: var(--f-display); font-weight: 400; font-size: calc(24 * var(--px)); line-height: 1; }
.door .inside em { font-style: normal; font-family: var(--f-mono); font-size: calc(11 * var(--px)); color: rgba(14,15,18,.62); }
.door .leaf { position: absolute; inset: 0; border-radius: var(--r); background: var(--accent); transform-origin: left center; transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.3,1.25,.5,1), background-color .3s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), inset 0 calc(1.5 * var(--px)) 0 rgba(255,255,255,.28); padding: calc(12 * var(--px)) calc(14 * var(--px)); }
.door .num { display: block; font-family: var(--f-display); color: #fff8f2; font-size: calc(46 * var(--px)); line-height: 1; backface-visibility: hidden; }
.door:hover .leaf { transform: rotateY(-16deg); }
.door[aria-expanded="true"] .leaf { transform: rotateY(-96deg); background: #b81e2e; }   /* nearly edge-on: at -112 the open leaf covered the neighbour's words */
.cal .big .door .leaf { background: #9e1626; }
.cal .big .door .num { color: var(--gold); font-size: calc(150 * var(--px)); }
.cal .big .door .inside { font-size: calc(17 * var(--px)); padding: calc(24 * var(--px)); }
.cal .big .door .inside b { font-size: calc(44 * var(--px)); }
.cal-hint { font-weight: 500; color: var(--accent); margin-left: calc(6 * var(--px)); }
@media (max-width: 980px) {
  .hero-scene h1 { font-size: 46px; }
  .cal { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cal .big { grid-column: 1 / 5; grid-row: auto; aspect-ratio: 2.2; }
  .door .num { font-size: 30px; }
  .cal .big .door .num { font-size: 72px; }
  .door .inside { font-size: 11px; padding: 8px; } .door .inside b { font-size: 18px; } .door .inside em { display: none; }
  .cal-next { white-space: normal; } .cal-next b { font-size: 28px; }
}

/* round 2 (critic): tighter CTA; small doors on phones show only their day */
.cta { padding: calc(110 * var(--px)) 0 calc(96 * var(--px)); }
.hero-scene .ca-line { margin-top: calc(16 * var(--px)); }
@media (max-width: 980px) { .cal .cell:not(.big) .door .inside span { display: none; } }
@media (max-width: 980px) { .hero-scene .scene-space { width: 300px; height: 230px; } }

/* text-fit (the user, 2026-11-30: text never leaves the element it was designed for). Every door sizes its text from its own
   width (container units), keeps it inside its padding, and js/app.js fitDoors() drops the small print, then the sentence,
   if a cell is still too small. */
.cal .cell { container-type: inline-size; }
.door .inside { overflow: hidden; justify-content: flex-start; padding: 9cqi; gap: 3cqi; font-size: clamp(9px, 8cqi, 14px); line-height: 1.3; }
.door .inside b { font-size: clamp(13px, 15cqi, 26px); line-height: 1.05; }
.door .inside em { font-size: clamp(8px, 6.4cqi, 11px); }
.door .num { font-size: clamp(20px, 30cqi, 54px); }
.cal .big .door .num { font-size: clamp(56px, 46cqi, 170px); }
.cal .big .door .inside { font-size: clamp(11px, 5.4cqi, 18px); padding: 7cqi; justify-content: flex-end; }
.cal .big .door .inside b { font-size: clamp(22px, 13cqi, 46px); }
.door .inside.fit-1 em, .door .inside.fit-2 em, .door .inside.fit-2 span { display: none; }
@media (max-width: 980px) { .door .num { font-size: clamp(18px, 30cqi, 40px); } .cal .big .door .num { font-size: clamp(48px, 30cqi, 90px); } }

/* X button: the X logo only, no "X" text (the user, 2026-11-30). Square, same height as the other header buttons. */
/* the X button: the X logo alone, square, centred; .btn.sm's side padding used to squeeze the logo to 5 px wide */
.btn.xbtn { aspect-ratio: 1; width: auto; padding: 0; gap: 0; justify-content: center; }
.btn.xbtn svg { flex: none; width: max(16px, calc(20 * var(--px))); height: max(16px, calc(20 * var(--px))); }
@media (max-width: 980px) { .btn.xbtn { width: 42px; } .btn.xbtn svg { width: 19px; height: 19px; } }

/* Native controls are never shown in the browser's default look (the user, 2026-11-30: padding, safe zones and centring).
   File picker: the button sits centred in a field as tall as every other input, with the same padding on all four sides. */
.field input[type=file] { height: calc(56 * var(--px)); padding: calc(8 * var(--px)); line-height: calc(40 * var(--px)); color: var(--mute); font-size: calc(15 * var(--px)); cursor: pointer; }
.field input[type=file]::file-selector-button { height: calc(40 * var(--px)); margin: 0 calc(16 * var(--px)) 0 0; padding: 0 calc(18 * var(--px)); border: 0; border-radius: calc(var(--r) * .7);
  background: var(--raise-2); color: var(--fg); font: inherit; font-size: calc(14 * var(--px)); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; vertical-align: top; }
.field input[type=file]:hover::file-selector-button { background: var(--accent); color: var(--btn-primary-fg); box-shadow: none; }
/* slider: a thin track centred in the field, the accent fill and a round thumb; no box around it */
.field input[type=range] { -webkit-appearance: none; appearance: none; height: calc(56 * var(--px)); padding: 0 calc(10 * var(--px)); background: transparent; box-shadow: none; cursor: pointer; }
.field input[type=range]::-webkit-slider-runnable-track { height: calc(6 * var(--px)); border-radius: 99px; background: var(--line-2); }
.field input[type=range]::-moz-range-track { height: calc(6 * var(--px)); border-radius: 99px; background: var(--line-2); }
.field input[type=range]::-moz-range-progress { height: calc(6 * var(--px)); border-radius: 99px; background: var(--accent); }
.field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: calc(22 * var(--px)); height: calc(22 * var(--px)); margin-top: calc(-8 * var(--px)); border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 calc(4 * var(--px)) var(--accent); }
.field input[type=range]::-moz-range-thumb { width: calc(22 * var(--px)); height: calc(22 * var(--px)); border: 0; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 calc(4 * var(--px)) var(--accent); }
.field input[type=range]:focus { box-shadow: none; }
.field input[type=range]:focus-visible::-webkit-slider-thumb { outline: calc(2 * var(--px)) solid var(--fg); outline-offset: calc(3 * var(--px)); }

/* header safe zone: between tablet and wide desktop the centred nav and the right-hand buttons collided ("Docs" under "Sound off");
   the sound toggle is the least needed, so it steps out there */
@media (min-width: 981px) and (max-width: 1280px) { .sound { display: none; } }

/* door kinds: each opens onto its own colour, from the same warm palette (paper gold, ice, pine, ember, berry, frost) */
.door .inside .tag { display: block; font-style: normal; font-family: var(--f-mono); font-size: calc(10.5 * var(--px)); letter-spacing: .02em; text-transform: uppercase; color: rgba(14,15,18,.55); margin-bottom: calc(6 * var(--px)); }
.door .inside[data-kind="lucky"]    { background: #cfe6d3; }
.door .inside[data-kind="streak"]   { background: #f3d9a0; }
.door .inside[data-kind="double"]   { background: #dfe9f2; }
.door .inside[data-kind="paid2"]    { background: #f6c66a; }
.door .inside[data-kind="burn"]     { background: #f2b39a; }
.door .inside[data-kind="newcomer"] { background: #f4d7dc; }
.door .inside[data-kind="top"]      { background: #e6dcc8; }
.door .inside[data-kind="even"]     { background: #e9efe3; }
.door .inside[data-kind="diamond"]  { background: #d9e4f5; }
.door .inside.fit-1 .tag, .door .inside.fit-2 .tag { margin-bottom: calc(3 * var(--px)); }

/* the docs: sticky contents with a scroll spy, readable tables, callouts, a collapsible FAQ */
.dtoc { position: sticky; top: calc(110 * var(--px)); display: flex; flex-direction: column; gap: calc(10 * var(--px)); font-size: calc(14.5 * var(--px)); }
.dtoc-h { font-family: var(--f-mono); font-size: calc(11 * var(--px)); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin-bottom: calc(6 * var(--px)); }
.dtoc a { color: var(--mute); padding-left: calc(12 * var(--px)); box-shadow: inset 2px 0 0 transparent; transition: color .2s var(--ease), box-shadow .2s var(--ease); }
.dtoc a:hover { color: var(--fg); } .dtoc a.on { color: var(--fg); box-shadow: inset 2px 0 0 var(--accent); }
.dbody section { scroll-margin-top: calc(100 * var(--px)); }
.docs h3 { font-size: calc(19 * var(--px)); font-weight: 600; margin: calc(26 * var(--px)) 0 calc(8 * var(--px)); }
.docs ul { margin: 0 0 calc(14 * var(--px)); padding-left: calc(20 * var(--px)); color: var(--soft); }
.docs li { margin-bottom: calc(7 * var(--px)); }
.docs .callout { background: var(--raise); border-radius: var(--r); padding: calc(16 * var(--px)) calc(20 * var(--px)); box-shadow: inset 3px 0 0 var(--accent); color: var(--fg); }
.dtable { overflow-x: auto; margin: calc(8 * var(--px)) 0 calc(18 * var(--px)); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-2); }
.dtable table { width: 100%; border-collapse: collapse; font-size: calc(15 * var(--px)); }
.dtable th { text-align: left; font-weight: 500; color: var(--mute); font-size: calc(13 * var(--px)); padding: calc(12 * var(--px)) calc(16 * var(--px)); background: var(--raise); }
.dtable td { padding: calc(12 * var(--px)) calc(16 * var(--px)); box-shadow: inset 0 1px 0 var(--line); color: var(--soft); vertical-align: top; }
.dtable td b { display: block; color: var(--fg); font-weight: 600; margin-top: calc(4 * var(--px)); }
.dtable .mono, .docs .mono { font-family: var(--f-mono); font-size: calc(13.5 * var(--px)); color: var(--fg); white-space: nowrap; }
.ktag { display: inline-block; font-family: var(--f-mono); font-size: calc(10.5 * var(--px)); text-transform: uppercase; letter-spacing: .03em; padding: calc(3 * var(--px)) calc(8 * var(--px)); border-radius: 99px; background: var(--inside, #f6c66a); color: #0e0f12; }
.ktag[data-kind="lucky"] { background: #cfe6d3; } .ktag[data-kind="streak"] { background: #f3d9a0; } .ktag[data-kind="double"] { background: #dfe9f2; }
.ktag[data-kind="paid2"] { background: #f6c66a; } .ktag[data-kind="burn"] { background: #f2b39a; } .ktag[data-kind="newcomer"] { background: #f4d7dc; }
.ktag[data-kind="top"] { background: #e6dcc8; } .ktag[data-kind="even"] { background: #e9efe3; } .ktag[data-kind="diamond"] { background: #d9e4f5; } .ktag[data-kind="holders"] { background: var(--inside, #f6c66a); }
.ktag.big { background: #9e1626; color: var(--gold, #f6c66a); }
.docs details { box-shadow: inset 0 -1px 0 var(--line); padding: calc(14 * var(--px)) 0; }
.docs summary { cursor: pointer; font-weight: 600; color: var(--fg); list-style: none; display: flex; justify-content: space-between; gap: calc(16 * var(--px)); }
.docs summary::-webkit-details-marker { display: none; }
.docs summary::after { content: "+"; color: var(--accent); font-weight: 400; transition: transform .25s var(--ease); }
.docs details[open] summary::after { transform: rotate(45deg); }
.docs details p { margin: calc(10 * var(--px)) 0 0; }
@media (max-width: 980px) { .docs { grid-template-columns: 1fr; gap: 0; } .dtoc { display: none; } .dtable table { font-size: 14px; } }

/* the night (theme.css): the doors still open onto light colours, so their words stay ink; the snow canvas sits between the 3D
   scene and the page (js/snow.js) */
.door .inside { color: #0e0f12; }
.cal .big .door .inside { color: #0e0f12; }
#snow { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }

/* the night has no drafting grid (that was the paper calendar); the snow is the texture now */
.hero-scene { background-image: none; }
