/* RECEIPT — thermal-receipt design system. paper #efe8d8 · ink #1b1a18 · void #12100e · one accent #e8425a */
:root {
  --paper: #efe8d8; --paper-2: #e4dbc7; --ink: #1b1a18; --void: #12100e; --accent: #e8425a;
  --dim: rgba(239, 232, 216, .66); --line: rgba(239, 232, 216, .26); --ink-dim: rgba(27, 26, 24, .66);
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --disp: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Impact, sans-serif;
  --pad-x: clamp(24px, 4.6vw, 68px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { background: var(--void); color: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14px/1.55 var(--mono); background: var(--void); min-height: 100%; -webkit-font-smoothing: antialiased; }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; touch-action: none; pointer-events: none; }
#scroll { height: 1000vh; height: 1000svh; pointer-events: none; }
#app { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.no-ui #app, .no-ui .loader { display: none !important; }
.noscript { position: fixed; inset: auto 0 20px; text-align: center; z-index: 5; }
::selection { background: var(--accent); color: var(--ink); }
[hidden] { display: none !important; }

/* legibility veils: keep the tape's centre clean, text sits on the dark sides */
#app::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 8, 6, .55) 0, rgba(10, 8, 6, 0) 32%, rgba(10, 8, 6, 0) 70%, rgba(10, 8, 6, .45) 100%); }
/* hero: only the text side is veiled, the printer stays at full contrast */
[data-sec=hero] #app::before { background: linear-gradient(90deg, rgba(10, 8, 6, .6) 0, rgba(10, 8, 6, .25) 30%, rgba(10, 8, 6, 0) 46%); }

/* ---------- type ---------- */
.h1, .h2, .year, .thanks { font-family: var(--disp); font-weight: 700; text-transform: uppercase; margin: 0; letter-spacing: .005em; }
.h1 { font-size: clamp(40px, min(4.4vw, 8vh), 86px); line-height: .9; }
.h1 em { font-style: normal; color: var(--accent); }
.h2 { font-size: clamp(34px, 3.8vw, 58px); line-height: .94; margin: 6px 0 18px; }
.h2 .num { color: var(--accent); }
.year { font-size: clamp(96px, 12vw, 190px); line-height: .85; letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin: 6px 0 4px; }
.lede { margin: 16px 0 0; max-width: 36ch; color: var(--dim); font-size: 14px; }
.mono-s { margin: 10px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.fine { margin: 12px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-dim); }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.kicker > span:first-child { color: var(--paper); }
.dots { flex: 1; min-width: 12px; height: 1px; align-self: end; margin-bottom: .32em; border-bottom: 1.5px dotted currentColor; opacity: .45; }
.row { display: flex; align-items: flex-end; gap: 8px; }
.row b { font-weight: 600; }
.mono-s, .kicker, .row { font-variant-numeric: tabular-nums; }

/* ---------- stamp ---------- */
.stamp { display: inline-block; font: 700 15px/1 var(--disp); letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  border: 2px solid var(--accent); padding: 5px 9px 4px; transform: rotate(-2.5deg); border-radius: 3px; white-space: nowrap;
  -webkit-mask: radial-gradient(circle at 20% 30%, #0000 0 1px, #000 1.5px) 0 0 / 7px 7px; mask: radial-gradient(circle at 20% 30%, #0000 0 .6px, #000 1.2px) 0 0 / 9px 9px; }
.stamp-sm { font-size: 12px; padding: 3px 7px 2px; border-width: 1.5px; }
.tag { font: 600 10px/1 var(--mono); letter-spacing: .12em; padding: 3px 6px; border: 1px solid currentColor; border-radius: 2px; vertical-align: 2px; margin-left: 6px; opacity: .8; }

/* ---------- buttons ---------- */
.btn { appearance: none; cursor: pointer; font: 600 13px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--paper);
  background: transparent; border: 1.5px solid var(--paper); border-radius: 2px; min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, color .18s, opacity .2s; -webkit-tap-highlight-color: transparent; text-decoration: none; }
.btn:hover { box-shadow: 4px 4px 0 var(--accent); transform: translate(-2px, -2px); }
.btn:active { box-shadow: 1px 1px 0 var(--accent); transform: translate(1px, 1px); }
.btn-p { background: var(--paper); color: var(--ink); }
.btn-ink { color: var(--ink); border-color: var(--ink); }
.btn-ink.btn-p { background: var(--ink); color: var(--paper); }
.btn-quiet { border-style: dashed; }
.btn[disabled], .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-big { min-height: 64px; padding: 0 28px; font-size: 15px; border-style: dashed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.slip :focus-visible { outline-color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cta-sm { margin-top: 14px; gap: 10px; }
.cta-sm .btn { padding: 0 14px; font-size: 12px; }

/* ---------- paper slips ---------- */
.slip { position: relative; background: var(--paper); color: var(--ink); padding: 18px 20px 26px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 2px 0 rgba(255, 255, 255, .06) inset;
  background-image: linear-gradient(rgba(27, 26, 24, .035) 1px, transparent 1px); background-size: 100% 4px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%; }
.slip-h { margin: 0 0 10px; font: 600 11.5px/1.3 var(--mono); letter-spacing: .16em; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slip-h2 { margin-top: 18px; padding-top: 12px; border-top: 1.5px dashed rgba(27, 26, 24, .45); }
.slip .dots { opacity: .5; }

/* ---------- hud / rail ---------- */
.hud { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: max(16px, env(safe-area-inset-top)) var(--pad-x) 0; z-index: 3; }
.brand { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--paper); text-decoration: none; }
.ico { width: 22px; height: 22px; }
.brand-n { font: 700 24px/1 var(--disp); letter-spacing: .1em; }
.brand-t { font-size: 11px; letter-spacing: .12em; color: var(--dim); }
.rail { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; pointer-events: auto; z-index: 3; }
.rail-line { position: absolute; left: 50%; top: 22px; bottom: 22px; border-left: 1.5px dotted var(--line); }
.rail-b { position: relative; appearance: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; display: grid; place-items: center; color: var(--paper); font: inherit; }
.rail-d { width: 9px; height: 9px; border-radius: 50%; background: var(--void); border: 1.5px solid var(--dim); transition: transform .3s var(--ease), background-color .3s, border-color .3s; }
.rail-b.on .rail-d { background: var(--accent); border-color: var(--accent); transform: scale(1.35); }
.rail-b:hover .rail-d { border-color: var(--paper); }
.rail-l { position: absolute; right: 38px; top: 50%; transform: translate(6px, -50%); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); background: var(--void); padding: 3px 6px; }
.rail-b:hover .rail-l, .rail-b:focus-visible .rail-l { opacity: 1; transform: translate(0, -50%); }
.prog { display: none; }

/* ---------- sections (desktop: side columns, centre left to the tape) ---------- */
.sec { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr) minmax(280px, 380px); align-items: center;
  padding: 84px calc(var(--pad-x) + 40px) 64px var(--pad-x); pointer-events: none; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.sec .col { pointer-events: auto; min-width: 0; }
.col-l { grid-column: 1; } .col-r { grid-column: 3; }
.col-b { align-self: end; }
.sec[data-id=hero] { grid-template-columns: minmax(300px, 40vw) minmax(0, 1fr); }
.sec[data-id=hero] .col-l { max-width: 600px; }
.h1 { text-wrap: balance; }
.sec[data-id=hero] .col-b { padding-bottom: 2vh; }
.sec[data-id=hero] .lede { max-width: 44ch; }
.kicker-rules { margin: 26px 0 10px; }
.rules-dark { color: var(--dim); max-width: 40ch; }
.rules-dark li { padding-left: 2px; }
.hint { position: absolute; left: var(--pad-x); bottom: 22px; margin: 0; display: flex; align-items: center; gap: 12px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); transition: opacity .6s; }
.hint i { width: 1px; height: 22px; background: repeating-linear-gradient(var(--paper) 0 3px, transparent 3px 7px); animation: feed 1.4s linear infinite; }
@keyframes feed { to { background-position-y: 14px; } }
.is-scrolled .hint { opacity: 0; }
.meta { margin: 0; text-align: left; font-size: 12px; letter-spacing: .12em; display: grid; gap: 8px; color: var(--paper); }
.meta .dots { opacity: .35; }
.years { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 11.5px; letter-spacing: .1em; color: var(--dim); }
.years li { display: flex; gap: 8px; align-items: flex-end; transition: color .3s, transform .4s var(--ease); }
.years li.on { color: var(--paper); transform: translateX(-8px); }
.years li.on b { color: var(--accent); }
.years b { font-weight: 500; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 6px; color: var(--dim); }
.steps b { font: 700 22px/1 var(--disp); color: var(--accent); letter-spacing: .06em; }
.steps strong { color: var(--paper); font-weight: 600; }
.bar { display: flex; height: 12px; margin: 4px 0 14px; gap: 2px; }
.bar i { background: var(--ink); } .bar i.b0 { background: var(--accent); } .bar i.b2 { opacity: .5; }
.part { margin-bottom: 10px; } .part p { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-dim); line-height: 1.4; }
.part .row { font-size: 13px; }
.rules { margin: 0; padding: 0 0 0 16px; font-size: 11.5px; line-height: 1.45; display: grid; gap: 4px; }
.rules li::marker { content: '▸  '; color: var(--accent); }

/* yours */
.form { margin-top: 4px; padding-bottom: 28px; }
.lbl { display: block; font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.inp { width: 100%; font: 500 15px/1.2 var(--mono); color: var(--ink); background: rgba(27, 26, 24, .06); border: 0; border-bottom: 2px dotted var(--ink); padding: 14px 10px; min-height: 48px; border-radius: 2px 2px 0 0; outline: 0; letter-spacing: .01em; transition: background-color .2s, border-color .2s; }
.inp::placeholder { color: rgba(27, 26, 24, .4); }
.inp:focus { background: rgba(232, 66, 90, .1); border-bottom: 2px solid var(--accent); }
.inp[aria-invalid=true] { border-bottom: 2px solid var(--accent); }
.msg { min-height: 1.5em; margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink); }
.msg.err { color: #b3112c; font-weight: 600; } .msg.warn { color: #7a4a00; }
.form .cta { margin-top: 10px; }
.result { padding-bottom: 28px; }
/* the 3D tape shows the receipt itself; the card keeps the numbers and actions */
.thumb { display: none; max-height: 38vh; overflow: auto; background: #d8cfba; padding: 10px; border: 1px solid rgba(27, 26, 24, .2); }
.thumb canvas { display: block; width: 100%; height: auto; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.sum { margin-top: 10px; display: grid; gap: 3px; font-size: 12px; }
.sum .row b { font-weight: 600; }

/* points */
.tile { margin-top: 22px; padding-bottom: 26px; }
.tile + .tile { margin-top: 26px; }
.big { margin: 0; font: 700 40px/1 var(--disp); letter-spacing: .02em; }
.note { margin: 4px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--ink-dim); }
.trials { list-style: none; margin: 4px 0 0; padding: 0; }
.trials li a { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 13px; border-bottom: 1.5px dotted rgba(27, 26, 24, .4); transition: background-color .2s, padding .25s var(--ease); }
.trials li a:hover { background: rgba(232, 66, 90, .12); padding-left: 6px; }
.trials li a b { font-weight: 600; margin-left: auto; font-size: 12px; }
.trials li a span.n { font: 700 16px/1 var(--disp); color: var(--accent); width: 20px; }
.trials li a:focus-visible { outline-offset: -2px; }
.season { margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.season p { margin: 0; font-size: 12px; color: var(--dim); } .season b { color: var(--paper); font-size: 15px; }
.disclaimer { position: sticky; bottom: 0; margin: 16px 0 0; padding: 10px 12px; font-size: 11.5px; line-height: 1.5; border: 1.5px dashed var(--line); color: var(--paper); background: rgba(18, 16, 14, .85); }

/* end */
.links { display: flex; gap: 22px; margin: 22px 0 0; }
.lnk { color: var(--paper); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 12px 0; border-bottom: 1.5px dotted var(--paper); min-height: 44px; }
.lnk:hover { color: var(--accent); border-bottom-style: solid; }
.lnk.off { color: var(--dim); border-bottom-color: var(--line); cursor: default; }
.thanks { font-size: clamp(54px, 7vw, 110px); line-height: .88; text-align: right; }
.thanks em { font-style: normal; color: var(--accent); }
.foot { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 0 var(--pad-x); }

/* ---------- loader: the printer warms up and prints a self-test slip ---------- */
.loader { position: fixed; inset: 0; z-index: 10; pointer-events: auto; overflow: hidden; contain: strict; --k: 1; }
.ld-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 46%, #221c17 0, #14110e 55%, #0b0907 100%); }
.ld-beam { position: absolute; inset: -20% -10% 0 -30%; filter: blur(18px);
  background: conic-gradient(from 127deg at 16% -8%, transparent 0deg, rgba(255, 214, 160, .13) 9deg, rgba(255, 214, 160, .07) 19deg, transparent 30deg);
  animation: ld-breathe 5s ease-in-out infinite alternate; }
.ld-pool { position: absolute; left: 50%; top: calc(50% + 214px * var(--k)); width: calc(620px * var(--k)); height: calc(120px * var(--k)); transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 210, 160, .07), transparent 70%); }
.ld-dust { position: absolute; inset: -10% 0 0; opacity: .7;
  background-image: radial-gradient(1.2px 1.2px at 22% 18%, #ffe6c8, transparent), radial-gradient(1px 1px at 31% 34%, #ffe6c8, transparent),
    radial-gradient(1.4px 1.4px at 38% 22%, #ffe6c8, transparent), radial-gradient(1px 1px at 27% 47%, #ffe6c8, transparent),
    radial-gradient(1px 1px at 44% 41%, #ffe6c8, transparent), radial-gradient(1.2px 1.2px at 35% 58%, #ffe6c8, transparent),
    radial-gradient(1px 1px at 48% 30%, #ffe6c8, transparent), radial-gradient(1px 1px at 19% 31%, #ffe6c8, transparent);
  background-size: 100% 50%;
  -webkit-mask: conic-gradient(from 127deg at 16% -8%, transparent 0deg, #000 8deg 22deg, transparent 30deg);
  mask: conic-gradient(from 127deg at 16% -8%, transparent 0deg, #000 8deg 22deg, transparent 30deg);
  animation: ld-dust 18s linear infinite; }
@keyframes ld-dust { to { background-position: 0 100%; } }
@keyframes ld-breathe { from { opacity: .8; } to { opacity: 1; } }
.ld-fly { position: absolute; inset: 0; will-change: transform, opacity; }
.ld-stage { position: absolute; left: 50%; top: 50%; width: 340px; height: 500px; margin: -270px 0 0 -170px; transform: scale(var(--k)); transform-origin: 50% 50%; }
.ld-pr { position: absolute; left: 0; bottom: 0; width: 340px; height: 204px; overflow: visible; }
.ld-emb { font: 700 21px/1 var(--disp); letter-spacing: .2em; }
.ld-emb2 { font: 500 5.6px/1 var(--mono); letter-spacing: .2em; }
.ld-lamp { animation: ld-blink 1.05s steps(1, end) infinite; }
.ld-halo { animation: ld-halo 1.05s steps(1, end) infinite; }
@keyframes ld-blink { 0% { opacity: 1; } 50% { opacity: .22; } }
@keyframes ld-halo { 0% { opacity: 1; } 50% { opacity: .1; } }
.ld-glow { animation: ld-glow 2.4s ease-in-out infinite alternate; transform-origin: 150px 34px; }
@keyframes ld-glow { from { opacity: .55; } to { opacity: .95; } }
.ready .ld-lamp, .ready .ld-halo { animation: none; opacity: 1; }
.ready .ld-glow { animation: none; opacity: 1; }
/* the slip: exits the slot (SVG y=33.5) upward, torn edge on top, thermal banding, warm near the head */
.ld-paper { position: absolute; z-index: 1; left: 26.67%; width: 46.67%; bottom: 166px; height: 9px; overflow: hidden; color: var(--ink); transform-origin: 50% 100%;
  transition: height .15s cubic-bezier(.3, .05, .2, 1);
  background:
    linear-gradient(to top, rgba(40, 20, 10, .32), rgba(255, 170, 110, .10) 7px, transparent 26px),
    repeating-linear-gradient(to bottom, rgba(27, 26, 24, .04) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(to bottom, transparent 0 23px, rgba(27, 26, 24, .035) 23px 26px, transparent 26px 61px),
    linear-gradient(90deg, #d9d0bd, #efe8d8 18%, #f3ecdd 55%, #e6ddca 88%, #d2c8b4);
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / 9px 100%;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / 9px 100%; }
.ld-paper.jolt { animation: ld-jolt .16s cubic-bezier(.3, .6, .3, 1); }
@keyframes ld-jolt { 0% { translate: 0 1.2px; } 100% { translate: 0 0; } }
.ld-tape { padding: 12px 11px 0; font: 600 8.6px/1.35 var(--mono); letter-spacing: .04em; }
.ld-tape > * { opacity: 0; filter: blur(.7px); transition: opacity .28s ease-out, filter .4s ease-out; }
.ld-tape > .on { opacity: .86; filter: none; }
.ld-big { font: 700 30px/1 var(--disp); letter-spacing: .16em; text-align: center; padding-left: .16em; margin-bottom: 3px; }
.ld-c { text-align: center; font-size: 7.6px; letter-spacing: .18em; }
.ld-rule { height: 0; border-top: 1.2px dashed currentColor; margin: 7px 0 6px; }
.ld-tape > .ld-rule.on { opacity: .55; }
.ld-row { display: flex; align-items: flex-end; gap: 5px; margin: 1.5px 0; }
.ld-row i { flex: 1; border-bottom: 1.2px dotted currentColor; opacity: .5; margin-bottom: .3em; }
.ld-row b { font-weight: 600; }
.ld-bar { height: 22px; margin: 4px 6px 5px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px, var(--ink) 3px 5px, transparent 5px 6px, var(--ink) 6px 7px, transparent 7px 10px),
    repeating-linear-gradient(90deg, transparent 0 13px, #efe8d8 13px 15px, transparent 15px 23px); background-blend-mode: normal; }
.ld-end { padding: 2px 0 3px; letter-spacing: .24em; }
.ld-cap { position: absolute; left: 50%; top: calc(50% + 240px * var(--k)); width: min(340px, calc(100% - 48px)); transform: translateX(-50%); margin: 0;
  display: flex; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: .22em; color: var(--dim); font-variant-numeric: tabular-nums; }
.ld-cap .dots { opacity: .35; align-self: center; margin: 0; }
.ld-pct { min-width: 4ch; text-align: right; color: var(--paper); }
.ready .ld-st { color: var(--accent); }
.ld-hold *, .ld-hold { transition: none !important; }
.ld-hold .ld-paper { animation: none; }
@media (prefers-reduced-motion: reduce) { .ld-beam, .ld-dust, .ld-glow, .ld-lamp, .ld-halo { animation: none; } .ld-paper { transition: none; } .ld-paper.jolt { animation: none; } .ld-tape > * { transition: opacity .2s; filter: none; } }

/* ---------- header wallet stamp ---------- */
.hud-r { display: flex; align-items: center; gap: 14px; margin-right: 52px; }
.hud-r .hud-soon { margin-right: 0; }
.hud-w { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; }
.stamp-paper { color: var(--paper); border-color: var(--paper); transform: rotate(1.5deg); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.hud-w-x { appearance: none; background: none; border: 0; color: var(--dim); font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  padding: 0 2px; min-height: 44px; border-bottom: 1px dotted transparent; }
.hud-w-x:hover { color: var(--paper); text-decoration: underline dotted; text-underline-offset: 4px; }
.hud-w:not([hidden]) { animation: hud-w-in .5s var(--ease); }
@keyframes hud-w-in { from { opacity: 0; transform: translateY(-6px) rotate(-4deg); } }

/* ---------- wallet picker + inline message action ---------- */
.msg-act { appearance: none; background: none; border: 0; padding: 0 0 2px; margin: 2px 0 0; min-height: 32px; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1.5px solid var(--accent); cursor: pointer; }
.msg-act:hover { color: #b3112c; }
.pick { margin-top: 14px; padding-top: 10px; border-top: 1.5px dashed rgba(27, 26, 24, .45); animation: pick-in .35s var(--ease); }
@keyframes pick-in { from { opacity: 0; transform: translateY(-4px); } }
.pick .lbl { margin-bottom: 4px; }
.pick-b { appearance: none; width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; background: none; border: 0; border-bottom: 1.5px dotted rgba(27, 26, 24, .4);
  font: 500 13px/1 var(--mono); color: var(--ink); cursor: pointer; text-align: left; transition: background-color .2s, padding .25s var(--ease); }
.pick-b:hover, .pick-b:focus-visible { background: rgba(232, 66, 90, .12); padding-left: 8px; }
.pick-b img, .pick-i { width: 22px; height: 22px; flex: none; border-radius: 5px; }
.pick-i { background: var(--ink); -webkit-mask: radial-gradient(circle, #000 40%, #0000 41%); }
.pick-b span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.pick-b b { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pick-x { appearance: none; background: none; border: 0; padding: 10px 0 0; min-height: 36px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); cursor: pointer; }
.pick-x:hover { color: var(--ink); }
.is-reduced .pick, .is-reduced .hud-w { animation: none; }

/* ---------- tiers / motion ---------- */
[data-q=low] .slip { box-shadow: none; }
[data-q=low] #app::before { display: none; }
.is-reduced .hint i { animation: none; }
.is-reduced .btn, .is-reduced .years li, .is-reduced .rail-d { transition: none; }
@media (prefers-reduced-motion: reduce) { .hint i { animation: none; } .btn { transition: none; } }

/* ---------- short desktop screens ---------- */
@media (min-width: 901px) and (max-height: 760px) {
  .sec { padding-top: 70px; padding-bottom: 48px; }
  .h2 { margin-bottom: 10px; font-size: clamp(30px, 3.3vw, 46px); }
  .year { font-size: clamp(80px, 10vw, 150px); }
  .lede { margin-top: 10px; } .cta { margin-top: 14px; }
  .steps { gap: 8px; } .part { margin-bottom: 6px; } .rules { gap: 2px; } .slip { padding: 14px 16px 24px; }
  .kicker-rules { margin: 16px 0 8px; }
  .tile { margin-top: 12px; padding-bottom: 24px; } .tile + .tile { margin-top: 16px; } .big { font-size: 32px; }
  .season { margin-top: 12px; } .disclaimer { margin-top: 10px; }
  .thumb { max-height: 30vh; }
}

/* ---------- mid desktop (901-1280): the side panels share what is left around the tape, never cover it ---------- */
@media (min-width: 901px) and (max-width: 1280px) {
  .sec { grid-template-columns: minmax(0, 1fr) clamp(260px, calc(46vh + 30px), 42vw) minmax(0, 1fr); column-gap: 8px; }
  .sec .col-l, .sec .col-r { max-width: 380px; }
  .sec .col-r { justify-self: end; }
  .sec[data-id=hero] { grid-template-columns: minmax(300px, 40vw) minmax(0, 1fr); }
}

/* ---------- tablet/phone: bottom sheet, the tape stays above ---------- */
@media (max-width: 900px) {
  :root { --pad-x: 16px; }
  #app::before, [data-sec=hero] #app::before { background: linear-gradient(0deg, rgba(10, 8, 6, .9) 0, rgba(10, 8, 6, .7) 32%, rgba(10, 8, 6, 0) 62%); }
  .hud { padding-top: max(10px, env(safe-area-inset-top)); }
  .hud-r { margin-right: 0; gap: 10px; }
  .has-wallet .hud-soon { display: none; }
  .hud-w-x { font-size: 10px; }
  .rail { display: none; }
  .prog { display: block; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: repeating-linear-gradient(90deg, var(--line) 0 3px, transparent 3px 7px); z-index: 4; }
  .prog i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
  .sec { inset: auto 0 0 0; display: block; max-height: 54vh; max-height: 54dvh; overflow-y: auto; overscroll-behavior: contain; pointer-events: auto;
    padding: 18px var(--pad-x) calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(18, 16, 14, .9), rgba(18, 16, 14, .96)); border-top: 1.5px dashed var(--line);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .sec .col { margin-bottom: 14px; }
  .sec .col-b { padding: 0; }
  .hide-sm, .hint { display: none !important; }
  .h1 { font-size: clamp(40px, 12vw, 56px); }
  .h2 { font-size: 34px; margin-bottom: 12px; }
  .year { font-size: 84px; }
  .lede { max-width: none; font-size: 13px; }
  .kicker { margin-bottom: 8px; }
  .cta { margin-top: 16px; } .cta .btn { flex: 1 1 auto; }
  .btn { min-height: 48px; }
  .inp { font-size: 16px; }
  .thumb { display: none; }
  .has-result .form { display: none; }   /* phone: after a print the sheet shows the card, Tear off brings the form back */
  .tile { margin-top: 10px; } .big { font-size: 34px; }
  .disclaimer { background: rgb(18, 16, 14); }
  .thanks { display: none; } .foot { position: static; padding: 0; text-align: left; margin-top: 8px; }
  .links { margin-top: 8px; }
  .slip { padding: 14px 16px 22px; }
  .sec[data-id=hero] { max-height: none; }
  .sec[data-id=story] .col-l { margin-bottom: 0; }
}
@media (max-width: 900px) and (max-height: 700px) { .sec { max-height: 62vh; max-height: 62dvh; } .year { font-size: 64px; } }
@media (max-width: 900px) { .form .cta .btn, .cta-sm .btn { flex: 1 1 0; padding: 0 8px; font-size: 12px; letter-spacing: .06em; } .form .cta { flex-wrap: nowrap; } .cta-sm { flex-wrap: wrap; } .cta-sm .btn { flex: 1 1 40%; } }

/* ---------- phone landscape: the copy becomes a left strip so the tape (centre of the screen) stays visible ---------- */
@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .sec, .sec[data-id=hero] { inset: 0 auto 0 0; width: min(38vw, 340px); max-height: none; display: flex; flex-direction: column;
    padding: 46px 12px calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-top: 0; border-right: 1.5px dashed var(--line);
    background: linear-gradient(90deg, rgba(18, 16, 14, .94), rgba(18, 16, 14, .86)); }
  .sec .col { margin-bottom: 8px; }
  .sec > :first-child { margin-top: auto; } /* bottom-aligned, but still scrollable from the top when it overflows */
  .h1 { font-size: clamp(24px, 8vh, 34px); } .h2 { font-size: 24px; margin-bottom: 6px; } .year { font-size: 44px; }
  .lede { font-size: 12px; margin-top: 6px; } .cta { margin-top: 8px; } .btn { min-height: 44px; }
  #app::before, [data-sec=hero] #app::before { background: none; }
}
