/* Dream Hub - "ledger" system.
   Ink-black page, bone-paper slips, one stamp-orange accent. Rows instead of cards.
   Type: Archivo (display + body), JetBrains Mono (data), Instrument Serif italic (margin notes). */
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

:root {
  --bg: #0b0b0c; --bg-2: #121214; --bg-3: #19191c;
  --fg: #ece8df; --fg-2: #bdb8ad; --dim: #948f86; --faint: #6c6861;
  --line: #242327; --line-2: #36343a; --line-3: #55525a;
  --paper: #ebe5d6; --paper-2: #ddd5c1; --ink: #131211; --ink-2: #4b473f; --ink-3: #8a8474;
  --acc: #ff4a1c; --acc-soft: rgba(255, 74, 28, .14);
  --ok: #ece8df;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --rail: 248px; --bar: 58px; --pad: clamp(18px, 4vw, 56px);
  --out: cubic-bezier(.16, .84, .24, 1);
  --hard: 4px 4px 0 var(--fg);
}
* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-top: var(--bar);
  background: var(--bg); color: var(--fg); font: 450 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; font-optical-sizing: auto;
}
body > main { flex: 1 0 auto; }
body.no-scroll { overflow: hidden; }
/* fixed grain: a tiny noise tile so flat black does not look like a screen */
body::before { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: var(--fg); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
img { max-width: 100%; }
::selection { background: var(--acc); color: #000; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 2px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.muted { color: var(--fg-2); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.break { overflow-wrap: anywhere; }
b, strong { font-weight: 700; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- type ---------- */
.display, h1, h2 { font-family: var(--font); font-weight: 850; font-stretch: 68%; letter-spacing: -.012em; line-height: .94; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: clamp(46px, 6.1vw, 88px); }
h2 { font-size: clamp(40px, 5.6vw, 84px); }
h1 em, h2 em, .display em { font: italic 400 1.04em/.9 var(--serif); text-transform: none; letter-spacing: -.01em; color: var(--fg-2); }
h3 { font-family: var(--font); font-weight: 750; font-stretch: 78%; font-size: 24px; line-height: 1.1; letter-spacing: -.005em; text-transform: uppercase; }
.kicker { font: 600 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.kicker b { color: var(--acc); font-weight: 700; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--fg-2); max-width: 52ch; line-height: 1.55; }
.hand { font: italic 400 24px/1 var(--serif); color: var(--fg-2); }

/* ---------- shell: rail on desktop, top bar on phones ---------- */
.rail { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: var(--bar); display: flex; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); view-transition-name: rail; }
.rail-top { display: flex; align-items: center; justify-content: space-between; height: var(--bar); padding: 0 var(--pad) 0 14px; flex: none; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--fg); }
.brand img { width: 38px; height: 38px; border-radius: 9px; display: block; background: #000; }
.brand span { font: 850 15px/1 var(--font); font-stretch: 68%; letter-spacing: .09em; text-transform: uppercase; }
.menu-btn { width: 46px; height: 46px; border: 0; background: none; color: var(--fg); cursor: pointer; display: grid; place-items: center; border-radius: 4px; }
.menu-btn span, .menu-btn span::before { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .3s var(--out); }
.menu-btn span { position: relative; }
.menu-btn span::before { content: ""; position: absolute; top: -7px; left: 0; box-shadow: 0 14px 0 currentColor; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; box-shadow: none; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { content: ""; position: absolute; top: 0; left: 0; width: 22px; height: 2px; background: currentColor; transform: rotate(-45deg); }
.rail-body { display: none; flex-direction: column; gap: 22px; flex: 1; overflow-y: auto; padding: 8px var(--pad) 28px; background: var(--bg); }
.rail.open { bottom: 0; height: auto; }
.rail.open .rail-body { display: flex; }
.rail-status { font: 500 11.5px/1.5 var(--mono); color: var(--dim); display: flex; gap: 9px; align-items: center; min-height: 18px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 0 rgba(236, 232, 223, .45); }
.live-dot.off { background: var(--faint); }
.rail-nav { display: flex; flex-direction: column; }
.rail-nav h6 { margin: 18px 0 4px; font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.rail-nav h6:first-child { margin-top: 0; }
.rail-nav a { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); font: 500 13px/1.3 var(--mono); letter-spacing: .03em; color: var(--dim); text-decoration: none; transition: color .2s, padding .3s var(--out); }
.rail-nav a .n { color: var(--faint); font-size: 11px; min-width: 18px; transition: color .2s; }
.rail-nav a:hover { color: var(--fg); padding-left: 6px; }
.rail-nav a.active { color: var(--fg); }
.rail-nav a.active .n { color: var(--acc); }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.rail-foot .btn { justify-content: center; }

@media (min-width: 1024px) {
  body { padding-top: 0; padding-left: var(--rail); }
  .rail { top: 0; bottom: 0; right: auto; width: var(--rail); height: auto; border-bottom: 0; border-right: 1px solid var(--line); padding: 22px 22px 22px; gap: 26px; }
  .rail-top { height: auto; padding: 0; }
  .brand img { width: 46px; height: 46px; border-radius: 11px; }
  .brand span { font-size: 17px; }
  .menu-btn { display: none; }
  .rail-body { display: flex; padding: 0; overflow: visible; gap: 24px; background: none; }
  .rail.open { bottom: 0; }
  html { scroll-padding-top: 28px; }
}

.page { flex: 1 0 auto; width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 var(--pad); overflow-x: clip; }
.wrap { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 var(--pad); }

/* phone-only section strip under the top bar (home) */
.jump { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 0 var(--pad); border-top: 1px solid var(--line); flex: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; padding: 11px 14px 10px 0; margin-right: 14px; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); text-decoration: none; border-bottom: 2px solid transparent; }
.jump a .n { color: var(--faint); margin-right: 6px; }
.jump a.active { color: var(--fg); border-bottom-color: var(--acc); }
.rail.open .jump { display: none; }
html.has-jump { scroll-padding-top: calc(var(--bar) + 52px); }
body.has-jump { padding-top: calc(var(--bar) + 38px); }
.rail.has-jump { height: calc(var(--bar) + 38px); }
.rail.has-jump.open { height: auto; }
@media (min-width: 1024px) { .jump { display: none; } body.has-jump { padding-top: 0; } .rail.has-jump { height: auto; } html.has-jump { scroll-padding-top: 28px; } }

/* ---------- buttons ---------- */
.btn { --bc: var(--acc); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; min-height: 48px; border: 1.5px solid var(--bc); border-radius: 2px; background: var(--bc); color: #0b0b0c; font: 700 13px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .25s var(--out), box-shadow .25s var(--out), background .2s, color .2s; position: relative; }
.btn.ghost { background: transparent; color: var(--fg); --bc: var(--line-3); }
.btn.danger { background: transparent; color: var(--acc); --bc: var(--acc); }
.btn.paper { --bc: var(--fg); background: var(--fg); color: #0b0b0c; }
.btn.big { padding: 18px 28px; min-height: 58px; font-size: 14px; }
.btn.sm { padding: 9px 14px; min-height: 38px; font-size: 11.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (hover: hover) {
  .btn:hover { color: #0b0b0c; transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--fg); }
  .btn.ghost:hover { color: var(--fg); --bc: var(--fg); box-shadow: 4px 4px 0 var(--line-3); }
  .btn.danger:hover { color: var(--acc); box-shadow: 4px 4px 0 var(--acc-soft); }
  .btn.paper:hover { box-shadow: 4px 4px 0 var(--acc); }
  .receipt .btn:hover { color: var(--paper); box-shadow: 4px 4px 0 var(--acc); }
  .slip .btn:hover { color: var(--paper); box-shadow: 4px 4px 0 var(--acc); }
  .slip .btn.ghost:hover { color: var(--ink); box-shadow: 4px 4px 0 var(--acc); }
}
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--fg); }

/* ---------- stamps, tags ---------- */
.stamp { display: inline-block; padding: 5px 8px 4px; border: 1.5px solid currentColor; border-radius: 2px; font: 800 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
.stamp.free { color: var(--dim); }
.stamp.vip { color: var(--fg); }
.stamp.plus { background: var(--fg); border-color: var(--fg); color: #0b0b0c; }
.stamp.warn { color: var(--acc); transform: rotate(-3deg); }
.stamp.big { font-size: 15px; padding: 8px 12px 7px; border-width: 2.5px; }
.tier { display: inline-block; margin-left: 8px; padding: 2px 5px 1px; border: 1px solid currentColor; border-radius: 2px; font: 800 9px/1.2 var(--mono); letter-spacing: .12em; vertical-align: 1px; color: var(--fg); }
.tier.plus { background: var(--fg); border-color: var(--fg); color: #0b0b0c; }

/* ---------- forms ---------- */
.field { margin: 0 0 18px; }
.field label { display: block; margin: 0 0 7px; font: 600 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.field label .dim { text-transform: none; letter-spacing: 0; }
input, select, textarea { width: 100%; padding: 13px 14px; min-height: 48px; background: var(--bg-2); color: var(--fg); border: 1px solid var(--line-2); border-radius: 2px; font: 500 16px/1.3 var(--font); transition: border-color .2s, background .2s; }
input:hover, select:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--acc); background: #141416; box-shadow: 0 0 0 3px var(--acc-soft); }
input::placeholder { color: var(--faint); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23ece8df' stroke-width='1.8'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; cursor: pointer; }
input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; min-height: 0; padding: 0; border: 1.5px solid var(--line-3); border-radius: 2px; background: transparent; display: inline-grid; place-content: center; cursor: pointer; }
input[type="checkbox"]::after { content: ""; width: 10px; height: 6px; border: solid #0b0b0c; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
input[type="checkbox"]:checked { background: var(--acc); border-color: var(--acc); }
input[type="checkbox"]:checked::after { opacity: 1; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 14px var(--font); letter-spacing: 0; text-transform: none; color: var(--fg-2); }

.alert { margin: 0 0 18px; padding: 0; font-size: 14.5px; line-height: 1.5; }
.alert:empty { display: none; }
.alert.error, .alert.ok { padding: 12px 14px; border-left: 3px solid var(--acc); background: var(--acc-soft); color: var(--fg); }
.alert.ok { border-left-color: var(--ok); background: rgba(236, 232, 223, .07); }
.alert.banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; background: var(--paper); color: var(--ink); border-radius: 2px; font: 600 13px/1.4 var(--mono); box-shadow: 4px 4px 0 var(--acc); animation: toast-in .35s var(--out) both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 14px); } }

.skeleton { height: 18px; margin: 10px 0; border-radius: 2px; background: linear-gradient(90deg, var(--bg-3) 30%, #222226 50%, var(--bg-3) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton.short { width: 55%; }
@keyframes shimmer { to { background-position: -150% 0; } }

table { width: 100%; border-collapse: collapse; }
th { padding: 10px 14px 10px 0; text-align: left; font: 600 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line-2); }
td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tablewrap { overflow-x: auto; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 22px; margin: 0 0 18px; }
.kv dt { font: 600 10.5px/1.7 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-top: 2px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* ---------- section scaffold: big outlined number on the left, content on the right ---------- */
.sec { display: grid; grid-template-columns: clamp(84px, 12vw, 190px) minmax(0, 1fr); gap: clamp(18px, 3.6vw, 60px); padding: 64px 0 76px; border-top: 1px solid var(--line-2); }
.sec-label { position: sticky; top: 28px; align-self: start; font: 600 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.sec-label b { display: block; margin: 0 0 8px -2px; font: 850 clamp(64px, 8vw, 118px)/.8 var(--font); font-stretch: 62%; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px var(--line-3); }
.sec-head { margin: 0 0 40px; max-width: 760px; }
.sec-head h2 { margin-bottom: 18px; }
.sec-head p { color: var(--fg-2); max-width: 54ch; }

/* ---------- home: hero ---------- */
.hero { position: relative; padding: 0 0 80px; overflow-x: clip; }
.hero-meta { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line-2); font: 500 11.5px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.hero-meta b { color: var(--fg); font-weight: 600; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 24px 48px; align-items: center; padding-top: clamp(36px, 7vw, 84px); }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-h { margin-bottom: 30px; }
.hero-h .w { display: inline-block; animation: word-up .8s var(--out) both; }
.hero-h .w:nth-child(2) { animation-delay: .06s; } .hero-h .w:nth-child(3) { animation-delay: .12s; } .hero-h .w:nth-child(4) { animation-delay: .18s; }
.hero-h .w:nth-child(5) { animation-delay: .24s; } .hero-h .w:nth-child(6) { animation-delay: .3s; }
@keyframes word-up { from { opacity: 0; transform: translateY(.45em) rotate(1.5deg); } }
.hero-art { position: relative; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; mix-blend-mode: screen; transform: rotate(-4deg); animation: float 9s ease-in-out infinite alternate; }
@keyframes float { to { transform: rotate(-1.5deg) translateY(-8px); } }
.picker { display: flex; flex-wrap: wrap; margin: 0 0 -1px; }
.chip { margin: 0 -1px -1px 0; padding: 10px 15px; min-height: 42px; background: transparent; border: 1px solid var(--line-2); color: var(--dim); font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.chip:hover { color: var(--fg); border-color: var(--line-3); }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: #0b0b0c; position: relative; z-index: 1; }
.code { position: relative; padding: 22px 22px 24px; border: 1px solid var(--line-2); background: var(--bg-2); font: 500 clamp(13px, 1.7vw, 21px)/1.5 var(--mono); overflow-wrap: anywhere; min-height: 5.6em; }
.code::before, .code::after { content: ""; position: absolute; width: 9px; height: 9px; border: 1.5px solid var(--acc); }
.code::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.code::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.code-tag { position: absolute; top: 8px; right: 12px; font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.code-tag b { color: var(--acc); font-weight: 700; }
.code .k { color: var(--dim); }
.code .s { color: var(--fg); }
.code .ln { display: block; }
.caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; background: var(--acc); vertical-align: -.17em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-top: 22px; }
.hero-note { flex: 1 1 100%; display: flex; align-items: flex-start; gap: 6px; margin: -2px 0 0 46px; transform: rotate(-2deg); transform-origin: 0 0; }
.hero-note svg { width: 48px; height: 36px; color: var(--fg-2); flex: none; }
.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s .8s var(--out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-sub { margin-top: 26px; max-width: 54ch; color: var(--fg-2); }

/* ---------- home: games ledger ---------- */
.ledger { border-top: 2px solid var(--fg); }
.g-row { position: relative; border-bottom: 1px solid var(--line-2); --gc: var(--acc); --ga: var(--fg); }
.g-row[data-game="jjs"] { --ga: #ffb524; }
.g-row[data-game="prior-extinction"] { --ga: #a574ff; }
.g-row[data-game="the-button"] { --ga: #6d8cff; }
.g-row[data-game="ability-arena"] { --ga: #ff7a2a; }
.g-row::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .055), transparent 62%); transition: opacity .3s; }
.g-row:hover::before, .g-row[data-open="true"]::before { opacity: 1; }
.g-head { all: unset; box-sizing: border-box; position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto 34px; gap: 6px 24px; align-items: center; width: 100%; padding: 18px 0; cursor: pointer; }
.g-head:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.g-art { position: relative; width: 92px; height: 92px; overflow: hidden; border-radius: 4px; background: #000; }
.g-art img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.3) contrast(1.06) brightness(.88); transition: filter .5s var(--out), transform .6s var(--out); }
.g-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ga); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--out); }
.g-row:hover .g-art img, .g-row[data-open="true"] .g-art img { filter: none; transform: scale(1.06); }
.g-row:hover .g-art::after, .g-row[data-open="true"] .g-art::after { transform: scaleX(1); }
.g-title { min-width: 0; }
.g-name { display: block; font: 850 clamp(30px, 4.3vw, 56px)/.95 var(--font); font-stretch: 68%; letter-spacing: -.012em; text-transform: uppercase; transition: transform .4s var(--out), color .3s; }
.g-row:hover .g-name { transform: translateX(8px); }
.g-row[data-open="true"] .g-name { transform: none; }
.g-blurb { display: block; margin-top: 8px; color: var(--fg-2); font-size: 15px; line-height: 1.4; max-width: 54ch; }
.g-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; text-align: right; font: 500 12px/1.3 var(--mono); color: var(--dim); }
.g-stamps { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.g-count { font-variant-numeric: tabular-nums; }
.g-count b { color: var(--fg); font-weight: 600; }
.g-plus { position: relative; width: 34px; height: 34px; border: 1.5px solid var(--line-3); border-radius: 50%; transition: transform .4s var(--out), background .2s, border-color .2s; }
.g-plus::before, .g-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--fg); }
.g-plus::after { transform: rotate(90deg); transition: transform .4s var(--out); }
.g-row:hover .g-plus { border-color: var(--fg); }
.g-row[data-open="true"] .g-plus { transform: rotate(180deg); background: var(--fg); border-color: var(--fg); }
.g-row[data-open="true"] .g-plus::before, .g-row[data-open="true"] .g-plus::after { background: #0b0b0c; }
.g-row[data-open="true"] .g-plus::after { transform: rotate(0); }
.g-sheet { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--out); }
.g-row[data-open="true"] .g-sheet { grid-template-rows: 1fr; }
.g-inner { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s .55s; }
.g-row[data-open="true"] .g-inner { visibility: visible; transition-delay: 0s; }
.g-body { position: relative; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding: 10px 0 44px; }
.g-side { display: flex; flex-direction: column; gap: 16px; }
.g-big { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: #000; }
.g-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-big .stamp { position: absolute; right: 10px; bottom: 12px; background: rgba(11, 11, 12, .82); backdrop-filter: blur(2px); transform: rotate(-5deg); }
.g-big.open-in img { animation: wipe .8s var(--out) both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } }
.g-loader { display: flex; align-items: stretch; margin: 0 0 24px; border: 1px solid var(--line-2); background: var(--bg-2); }
.g-loader code { flex: 1; min-width: 0; padding: 12px 14px; font: 500 12.5px/1.5 var(--mono); color: var(--fg-2); overflow-wrap: anywhere; }
.g-loader .btn { border-radius: 0; transform: none !important; box-shadow: none !important; }
.g-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 0 0 22px; }
.seg { display: inline-flex; }
.seg button { margin: 0 -1px 0 0; padding: 9px 14px; min-height: 40px; background: transparent; border: 1px solid var(--line-3); color: var(--dim); font: 700 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.seg button:hover:not([disabled]) { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--gc); border-color: var(--gc); color: #0b0b0c; position: relative; z-index: 1; }
.seg button[disabled] { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.g-total { font: 500 13px/1.4 var(--mono); color: var(--fg-2); }
.g-total b { color: var(--gc); font-weight: 700; }
.feat-groups { columns: 2 220px; column-gap: 36px; }
.fg { margin: 0 0 26px; break-inside: avoid; }
.fg h4 { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 8px; padding: 0 0 7px; border-bottom: 1px solid var(--line-2); font: 700 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gc); }
.fg h4 span { color: var(--dim); }
.fg ul { margin: 0; padding: 0; list-style: none; }
.fg li { padding: 3.5px 0; font-size: 14.5px; line-height: 1.35; color: var(--fg-2); }
.fg li small { display: block; color: var(--dim); font-size: 12.5px; }
.fg.more { display: none; }
.feat-groups.all .fg.more { display: block; }
.g-more { margin-top: 4px; }
.g-foot { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-2); color: var(--dim); font-size: 14px; max-width: 60ch; }
.ledger-note { margin-top: 28px; padding-left: 18px; border-left: 2px solid var(--acc); color: var(--fg-2); max-width: 62ch; }
.ledger-note b { color: var(--fg); }

/* ---------- home: plans receipt (bone paper) ---------- */
.receipt { position: relative; max-width: 880px; padding: 34px clamp(18px, 3.2vw, 44px) 62px; background: var(--paper); color: var(--ink); font: 500 14px/1.45 var(--mono); box-shadow: 0 40px 70px -40px #000; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 22px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 22px 100%; }
.receipt-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px dashed var(--ink-3); margin-bottom: 4px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.receipt-top b { font-weight: 800; }
.receipt table { font-size: 13.5px; }
.receipt th { padding: 14px 8px 12px 0; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 11px; }
.receipt th:not(:first-child), .receipt td:not(:first-child) { text-align: right; padding-right: 0; padding-left: 10px; }
.receipt td { padding: 12px 8px 12px 0; border-bottom: 1px dotted var(--ink-3); color: var(--ink); vertical-align: top; }
.receipt td:first-child { font-weight: 700; }
.receipt td small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ink-2); }
.receipt .no { color: var(--ink-3); }
.receipt .yes { font-weight: 800; }
.receipt-adds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-top: 22px; font-size: 12.5px; color: var(--ink-2); }
.receipt-adds b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.receipt-foot { margin-top: 22px; padding-top: 18px; border-top: 2px dashed var(--ink-3); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; }
.receipt-foot p { max-width: 50ch; font-size: 12.5px; color: var(--ink-2); }
.receipt .btn { --bc: var(--ink); background: var(--ink); color: var(--paper); }
.receipt .stamp-paid { flex: none; transform: rotate(5deg); color: var(--acc); border-color: var(--acc); font-size: 12px; padding: 7px 10px 6px; border-width: 2.5px; letter-spacing: .12em; }

/* ---------- home: patch notes ---------- */
.notes { border-top: 2px solid var(--fg); }
.notes .note { display: grid; grid-template-columns: 96px 170px minmax(0, 1fr); gap: 8px 28px; padding: 28px 0; border-bottom: 1px solid var(--line-2); }
.notes .note time { font: 600 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding-top: 4px; }
.notes .note .tag { align-self: start; justify-self: start; font: 700 11.5px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg); padding-top: 4px; }
.notes .note .tag small { display: block; margin-top: 3px; color: var(--dim); font-weight: 500; letter-spacing: .04em; text-transform: none; }
.notes .note h3 { margin-bottom: 10px; font-size: 26px; text-transform: none; font-stretch: 75%; }
.notes .note ul { margin: 0; padding: 0 0 0 18px; color: var(--fg-2); }
.notes .note li { padding: 2px 0; font-size: 15px; }
.notes .note li::marker { color: var(--acc); }

/* ---------- home: how it runs ---------- */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 2px solid var(--fg); }
.flow li { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) minmax(0, 270px); gap: 6px 28px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line-2); counter-increment: s; }
.flow li::before { content: counter(s); font: 850 46px/.9 var(--font); font-stretch: 62%; color: var(--fg); }
.flow h3 { margin-bottom: 8px; }
.flow p { color: var(--fg-2); max-width: 52ch; }
.flow .margin { align-self: center; display: flex; align-items: center; gap: 10px; color: var(--fg-2); }
.flow .margin svg { width: 46px; height: 30px; flex: none; color: var(--dim); }
.clock { display: inline-flex; align-items: baseline; gap: 8px; font: 700 clamp(46px, 6vw, 74px)/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--fg); }
.clock small { font-size: 13px; letter-spacing: .1em; color: var(--dim); font-weight: 600; text-transform: uppercase; }
.clock.done { color: var(--ok); }

/* ---------- home: questions (no accordion) ---------- */
.qa { margin: 0; border-top: 2px solid var(--fg); }
.qa > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.qa dt { text-wrap: balance; font: 800 clamp(20px, 2.1vw, 27px)/1.1 var(--font); font-stretch: 76%; text-transform: uppercase; letter-spacing: -.005em; }
.qa dd { margin: 0; color: var(--fg-2); max-width: 60ch; }
.qa dd b { color: var(--fg); }

/* ---------- home: end band + footer ---------- */
.end { position: relative; display: grid; gap: 30px; padding: 80px 0 90px; border-top: 2px solid var(--fg); }
.end h2 { font-size: clamp(54px, 9vw, 140px); }
.end p { margin-top: 20px; color: var(--fg-2); max-width: 46ch; }
.foot { margin-top: 20px; border-top: 1px solid var(--line-2); background: var(--bg); position: relative; overflow: hidden; }
.foot-in { max-width: 1260px; margin: 0 auto; padding: 44px var(--pad) 30px; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; position: relative; z-index: 1; }
.foot .brand { margin-bottom: 16px; }
.foot p.small { color: var(--dim); max-width: 38ch; }
.foot h4 { margin: 0 0 12px; font: 600 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li { padding: 4px 0; }
.foot li a { color: var(--fg-2); text-decoration: none; font-size: 14.5px; }
.foot li a:hover { color: var(--fg); text-decoration: underline; }
.foot .legal { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); font: 500 11.5px/1.6 var(--mono); color: var(--dim); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }

/* ---------- app pages: shared head ---------- */
.page-head { padding: clamp(34px, 6vw, 72px) 0 34px; border-bottom: 2px solid var(--fg); margin-bottom: 8px; }
.page-head h1 { font-size: clamp(48px, 7vw, 96px); margin: 14px 0 16px; }
.page-head p:not(.kicker) { color: var(--fg-2); max-width: 56ch; }
.dash-sec { display: grid; grid-template-columns: clamp(84px, 12vw, 190px) minmax(0, 1fr); gap: clamp(18px, 3.6vw, 60px); padding: 40px 0 46px; border-bottom: 1px solid var(--line-2); }
.dash-sec > .sec-label { top: 24px; }
.dash-sec .sec-label b { display: inline; margin: 0 10px 0 0; font: 700 12px/1 var(--mono); letter-spacing: .1em; color: var(--acc); -webkit-text-stroke: 0; animation: none; }
.dash-sec h2 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 12px; }
.dash-sec .sub { color: var(--fg-2); margin: 0 0 24px; max-width: 54ch; }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-2); }
.stat-card { padding: 22px 24px 24px; border-right: 1px solid var(--line-2); }
.stat-card:last-child { border-right: 0; }
.stat-card .label { font: 600 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.stat { font: 850 clamp(40px, 5vw, 64px)/.95 var(--font); font-stretch: 66%; text-transform: uppercase; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat-card .note { margin-top: 12px; color: var(--fg-2); font-size: 14px; line-height: 1.45; }
.ls-row { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.ls-row:first-child { border-top: 2px solid var(--fg); }
.ls-name { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.ls-name b { font: 800 22px/1 var(--font); font-stretch: 74%; text-transform: uppercase; letter-spacing: .005em; }
.code-line { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line-2); background: var(--bg-2); }
.code-line code { flex: 1; min-width: 0; padding: 12px 14px; font: 500 13px/1.5 var(--mono); color: var(--fg-2); overflow-wrap: anywhere; }
.code-line .btn { border-radius: 0; box-shadow: none !important; transform: none !important; align-self: stretch; }
.status-pill { display: inline-block; padding: 4px 8px 3px; border: 1.5px solid var(--line-3); border-radius: 2px; font: 700 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.status-pill.on { background: var(--fg); color: #0b0b0c; border-color: var(--fg); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-2); }
.two > div { padding: 24px 26px 28px; }
.two > div + div { border-left: 1px solid var(--line-2); }
.two h3 { margin-bottom: 18px; }
.admin-card { padding: 26px 0 30px; border-bottom: 1px solid var(--line-2); }
.admin-card:first-of-type { border-top: 2px solid var(--fg); }
.admin-card h3 { margin-bottom: 18px; font-size: 28px; }
#ed-title { text-transform: none; overflow-wrap: anywhere; }
.search-row { display: flex; gap: 10px; margin-bottom: 18px; }
.search-row input { flex: 1; }
.results-wrap { max-height: 420px; overflow: auto; }

/* ---------- auth: aside + bone-paper slip ---------- */
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px clamp(32px, 6vw, 96px); align-items: center; min-height: calc(100dvh - 120px); padding: 40px 0 70px; }
.auth-aside { position: relative; }
.auth-aside h1 { margin: 16px 0 20px; }
.auth-aside .lead { max-width: 42ch; }
.auth-aside img { position: absolute; z-index: -1; right: -10%; top: -30%; width: min(70%, 340px); mix-blend-mode: screen; opacity: .55; transform: rotate(-6deg); pointer-events: none; }
.slip { position: relative; background: var(--paper); color: var(--ink); color-scheme: light; padding: 34px clamp(20px, 3.5vw, 40px) 42px; box-shadow: 0 40px 70px -40px #000; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 22px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 22px 100%; padding-bottom: 56px; }
.slip::before { content: attr(data-slip); display: block; margin: 0 0 22px; padding-bottom: 12px; border-bottom: 2px dashed var(--ink-3); font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.slip h1, .slip h2 { color: var(--ink); }
.slip .muted, .slip p { color: var(--ink-2); }
.slip a { color: var(--ink); text-decoration-color: var(--acc); text-decoration-thickness: 2px; }
.slip a:hover { color: var(--acc); }
.slip .field label { color: var(--ink-2); }
.slip input { background: transparent; color: var(--ink); border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 10px 2px; font-size: 17px; font-weight: 600; }
.slip input:hover { border-color: var(--ink); }
.slip input:focus { background: rgba(255, 74, 28, .08); border-color: var(--acc); box-shadow: none; }
.slip .btn { --bc: var(--ink); background: var(--ink); color: var(--paper); }
.slip .btn.ghost { background: transparent; color: var(--ink); --bc: var(--ink); }
.slip .alert.error { background: rgba(255, 74, 28, .12); color: var(--ink); }
.slip .alert.ok { background: rgba(19, 18, 17, .08); color: var(--ink); border-left-color: var(--ink); }
.slip .dim { color: var(--ink-3); }
.slip .status-pill { color: var(--ink-2); border-color: var(--ink-3); }
.auth-box h2 { font-size: clamp(36px, 4.4vw, 52px); margin-bottom: 8px; }
.auth-box p.muted { margin-bottom: 22px; }
.auth-alt { margin: 22px 0 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; }
.notfound { display: grid; place-items: start; align-content: center; min-height: calc(100dvh - 160px); padding-block: 60px; gap: 18px; }
.notfound .big404 { color: transparent; }
.big404 { font: 850 clamp(130px, 26vw, 360px)/.74 var(--font); font-stretch: 62%; color: transparent; -webkit-text-stroke: 2px var(--line-3); letter-spacing: -.03em; }
.notfound h1 { font-size: clamp(40px, 6vw, 80px); }
.notfound p { color: var(--fg-2); max-width: 46ch; }

/* ---------- unlock ---------- */
.unlock-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 40px clamp(32px, 6vw, 96px); align-items: center; min-height: calc(100dvh - 100px); padding: 40px 0 70px; }
.unlock-aside h1 { font-size: clamp(46px, 6.4vw, 96px); margin: 16px 0 18px; }
.unlock-aside .lead { max-width: 40ch; }
.unlock { position: relative; }
.unlock .progress { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--ink); counter-reset: p; }
.unlock .progress li { padding: 10px 8px 9px; text-align: center; font: 700 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border-right: 1.5px solid var(--ink); counter-increment: p; }
.unlock .progress li::before { content: counter(p) " / "; opacity: .6; }
.unlock .progress li:last-child { border-right: 0; }
.unlock .progress li.on { color: var(--ink); }
.unlock .progress li.now { background: var(--ink); color: var(--paper); }
.lead-sm { margin: 0 0 20px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.unlock .free-pitch { display: flex; gap: 14px; align-items: baseline; margin: 0 0 18px; padding: 14px 16px; border: 1.5px dashed var(--ink); font-size: 16px; }
.unlock .free-pitch .free-ico { font: 800 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
.unlock .btn-row { margin-top: 6px; }
.unlock .small.dim { margin-top: 14px; }
.done-mark { width: 74px; height: 74px; margin: 0 0 18px; display: grid; place-items: center; border: 3px solid var(--acc); color: var(--acc); font: 800 40px/1 var(--font); transform: rotate(-8deg); animation: slam .5s var(--out) both; }
@keyframes slam { from { opacity: 0; transform: scale(2.2) rotate(-18deg); } }
.badge.test { display: inline-block; margin: 0 0 14px; padding: 4px 8px 3px; border: 1.5px solid var(--acc); color: var(--acc); font: 800 10px/1.2 var(--mono); letter-spacing: .12em; }
.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(8, 8, 9, .94); backdrop-filter: blur(6px); animation: fade-in .3s ease both; }
@keyframes fade-in { from { opacity: 0; } }
.ad-box { width: min(980px, 100%); max-height: calc(100dvh - 36px); overflow: auto; padding: clamp(20px, 3.5vw, 40px); border: 1px solid var(--line-3); background: var(--bg); position: relative; }
.ad-box::before { content: "WAIT SLIP"; position: absolute; top: 0; left: clamp(20px, 3.5vw, 40px); padding: 4px 10px 3px; background: var(--acc); color: #0b0b0c; font: 800 10.5px/1.3 var(--mono); letter-spacing: .16em; }
.wait-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.wait-head h2 { font-size: clamp(34px, 4.6vw, 60px); margin-top: 8px; }
.wait-ring { display: flex; align-items: baseline; gap: 10px; color: var(--fg); }
.wait-ring span { font: 700 clamp(90px, 16vw, 190px)/.8 var(--mono); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.wait-ring small { font: 700 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.ad-screen { display: grid; gap: 10px; margin: 6px 0 18px; }
.fun-stage { position: relative; min-height: 150px; }
.meter { height: 8px; background: var(--bg-3); border: 1px solid var(--line-2); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--acc); transition: width .9s linear; }
.fun-dots { display: flex; gap: 6px; margin: 0 0 12px; }
.fun-dots i { width: 22px; height: 3px; background: var(--line-2); transition: background .3s; }
.fun-dots i.on { background: var(--fg); }
.wait-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.ad-sub { color: var(--fg-2); }
.fun-card { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 20px; align-items: start; padding: 20px 22px; background: var(--paper); color: var(--ink); animation: slip-in .55s var(--out) both; }
.fun-card.out { position: absolute; inset: 0; animation: slip-out .38s ease both; }
@keyframes slip-in { from { opacity: 0; transform: translateY(18px) rotate(1.2deg); } }
@keyframes slip-out { to { opacity: 0; transform: translateY(-14px) rotate(-1deg); } }
.fun-art { grid-row: 1 / span 2; width: 72px; height: 72px; display: grid; place-items: center; position: relative; }
.fun-art span { display: none; }
.fun-art::before { content: ""; width: 56px; height: 56px; background: var(--ink); -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.scene-bubbles { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'%3E%3Ccircle cx='32' cy='32' r='22'/%3E%3C/svg%3E"); }
.scene-rays { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M12 12l40 40M52 12L12 52'/%3E%3C/svg%3E"); }
.scene-orbit { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 38c8-24 14 18 22-6s14 14 26-12'/%3E%3C/svg%3E"); }
.scene-grid { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M32 10v44M10 32h44'/%3E%3C/svg%3E"); }
.scene-stars { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='4' stroke-linejoin='round'%3E%3Crect x='10' y='10' width='44' height='44'/%3E%3C/svg%3E"); }
.fun-kicker { font: 700 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); align-self: end; }
.fun-text { font: 600 18px/1.35 var(--font); color: var(--ink); }
.meme-card { grid-template-columns: 1fr; }
.meme-frame { display: flex; justify-content: center; max-height: 200px; overflow: hidden; background: transparent; }
.meme-img { display: block; width: auto; max-width: 100%; max-height: 200px; object-fit: contain; }
.meme-title { font-size: 14px; }

/* ---------- motion: scroll-driven, with safe fallbacks ---------- */
@view-transition { navigation: auto; }
::view-transition-group(rail) { animation-duration: 0s; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .38s var(--out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: no-preference) {
  .live-dot:not(.off) { animation: pulse 2.4s ease-out infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(236, 232, 223, .5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(236, 232, 223, 0); } }
  @supports (animation-timeline: view()) {
    .rv { animation: rv-in linear both; animation-timeline: view(); animation-range: entry 0% entry 42%; }
    @keyframes rv-in { from { opacity: 0; transform: translateY(34px); } }
    .sec-label b { animation: num-in linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    @keyframes num-in { from { -webkit-text-stroke-color: transparent; transform: translateX(-12px); } }
    .receipt .stamp-paid { animation: stamp-in linear both; animation-timeline: view(); animation-range: entry 40% entry 90%; }
    @keyframes stamp-in { from { opacity: 0; transform: scale(2.4) rotate(-16deg); } }
  }
  @supports (animation-timeline: scroll()) {
    html::before { content: ""; position: fixed; z-index: 90; top: 0; left: 0; right: 0; height: 2px; background: var(--acc); transform-origin: 0 50%; transform: scaleX(0); animation: grow linear both; animation-timeline: scroll(root); pointer-events: none; }
    @keyframes grow { to { transform: scaleX(1); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .draw path { stroke-dashoffset: 0; }
  .caret { animation: none; }
}

/* ---------- responsive ---------- */
/* Section content adapts to the width it is actually given (the rail eats 248px on desktop), not to the window. */
.sec > :last-child { container: sec / inline-size; min-width: 0; }
@container sec (max-width: 860px) {
  .g-body { grid-template-columns: 210px minmax(0, 1fr); gap: 28px; }
  .flow li { grid-template-columns: 70px minmax(0, 1fr); }
  .flow .margin { grid-column: 2; }
}
@container sec (max-width: 760px) {
  .g-head { grid-template-columns: 64px minmax(0, 1fr) 34px; gap: 4px 16px; padding: 16px 0; }
  .g-art { width: 64px; height: 64px; }
  .g-name { font-size: clamp(28px, 7vw, 44px); }
  .g-meta { grid-column: 2 / 3; grid-row: 2; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; text-align: left; gap: 6px 12px; margin-top: 6px; }
  .g-meta span { white-space: nowrap; }
  .g-stamps { justify-content: flex-start; }
  .g-plus { grid-column: 3; grid-row: 1; width: 30px; height: 30px; }
  .g-body { grid-template-columns: 1fr; gap: 22px; padding-bottom: 34px; }
  .g-side { display: none; }
  .notes .note { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .notes .note .tag small { display: inline; margin-left: 8px; }
  .qa > div { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .receipt-adds { grid-template-columns: 1fr; }
}
@container sec (max-width: 560px) {
  .g-loader { flex-direction: column; }
  .flow li { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .flow li::before { content: counter(s); font: 850 46px/.9 var(--font); font-stretch: 62%; color: var(--fg); }
  .flow .margin { grid-column: 1; }
  .receipt { font-size: 12.5px; padding-bottom: 54px; }
  .receipt table { font-size: 12px; }
  .receipt th, .receipt td { padding-right: 4px; }
  .receipt th:not(:first-child), .receipt td:not(:first-child) { padding-left: 4px; }
}
@media (max-width: 1100px) {
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sec, .dash-sec { grid-template-columns: 1fr; gap: 22px; padding: 48px 0 56px; }
  .dash-sec { padding: 34px 0 38px; }
  .sec-label { position: static; display: flex; align-items: baseline; gap: 14px; }
  .sec-label b { margin: 0; font-size: 54px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: 190px; margin: 6px 0 0 auto; pointer-events: none; }
  .end { padding: 56px 0 64px; }
  .auth-grid, .unlock-wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; }
  .stats3 { grid-template-columns: 1fr; }
  .stat-card { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .stat-card:last-child { border-bottom: 0; }
  .two { grid-template-columns: 1fr; }
  .two > div + div { border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .hide-sm { display: none; }
  .picker { display: grid; grid-template-columns: 1fr 1fr; }
  .chip { margin: 0 -1px -1px 0; width: calc(100% + 1px); text-align: center; }
  .hero-meta span:last-child { display: none; }
  .code { padding: 18px 16px 20px; }
  .hero-actions .btn.big { flex: 1 1 100%; }
  .hero-note { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-in > div:first-child { grid-column: 1 / -1; }
  .code-line { flex-direction: column; }
  .search-row { flex-direction: column; }
  .fun-card { grid-template-columns: 1fr; }
  .fun-art { display: none; }
  .wait-foot .btn { width: 100%; }
}
