/* src/css/base.css */
/* FateDrop flagship prototype: tokens, type, chrome */
:root {
  --ink: #090909;
  --ink-2: #0d0d0d;
  --panel: #131313;
  --panel-2: #18181a;
  --panel-3: #1f1f21;
  --paper: #f2e9da;
  --body: #cfc6b8;
  --muted: #a69e91;
  --dim: #8f877b;
  --gold: #d9bd8a;
  --gold-hi: #f3dcaa;
  --gold-deep: #cdab70;
  --violet: #dcc49a;
  --violet-deep: #a7834a;
  --rose: #f3a9d0;
  --teal: #8fe3d0;
  --up: #8fdcb0;
  --down: #ff9aa3;
  --line: rgba(217, 189, 138, .22);
  --line-soft: rgba(242, 233, 218, .1);
  --whisper: #d2b66f;
  --echo: #d9cdbb;
  --manifested: #a899ff;
  --vanished: #ff8a94;
  --display: "Cinzel", Georgia, serif;
  --italic: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header: 72px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  color-scheme: dark;
}
/* The brand is night-only by design; these blocks keep it fixed whatever the viewer's theme. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ink: #090909; --paper: #f2e9da; } }
:root[data-theme="dark"] { --ink: #090909; --paper: #f2e9da; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 400; padding: 10px 16px; border-radius: 10px; background: var(--gold-hi); color: #1a1307; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.hide-m { display: inline; }
@media (max-width: 720px) { .hide-m { display: none; } }

/* ---------- Type ---------- */
.cap { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.cap--gold { color: var(--gold); }
.cap--light { color: #d6cdbf; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.h1, .h2 { font-family: var(--display); font-weight: 600; letter-spacing: .01em; color: var(--paper); text-wrap: balance; }
.h1 { max-width: 780px; font-size: clamp(38px, 5.4vw, 78px); line-height: 1; letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 2px 30px rgba(0, 0, 0, .55); }
.h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.05; }
.h2--xl { font-size: clamp(38px, 5vw, 64px); }
.h1 em, .h2 em { display: block; font-family: var(--italic); font-style: italic; font-weight: 600; letter-spacing: 0; color: var(--violet); text-transform: none; }
.h1 em { font-size: 1.24em; line-height: 1.04; margin-top: 8px; }
.h2 em { font-size: 1.14em; line-height: 1.04; margin-top: 4px; }
.lede { max-width: 560px; margin-top: 22px; font-size: 18px; line-height: 1.65; color: var(--body); }
.note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.note--center { max-width: 620px; margin: 22px auto 0; text-align: center; }
.act-label { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.act-label i { display: block; width: 48px; height: 1px; background: var(--gold); opacity: .6; }
.act-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.act-head--center { margin-inline: auto; text-align: center; }
.act-head--center .act-label { justify-content: center; }
.act-head--center .lede { margin-inline: auto; }
.gem { display: inline-block; width: 9px; height: 9px; flex: none; background: var(--violet); transform: rotate(45deg); box-shadow: 0 0 12px currentColor; }
.gem--gold { background: var(--gold-hi); color: rgba(243, 220, 170, .7); }
.gem--rose { background: var(--rose); color: rgba(243, 169, 208, .6); }
.money { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Buttons and controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: filter .3s, transform .3s var(--ease), background-color .3s, border-color .3s; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--gold { background: linear-gradient(180deg, #f2dcad, #cdab70); color: #1a1307; box-shadow: 0 12px 34px -12px rgba(217, 189, 138, .7), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn--gold:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(242, 233, 218, .28); background: rgba(242, 233, 218, .04); color: var(--paper); }
.btn--ghost:hover { border-color: rgba(242, 233, 218, .5); background: rgba(242, 233, 218, .08); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 12px; }
.link-btn { padding: 8px 0; border: 0; background: none; color: var(--gold); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(217, 189, 138, .45); }
.link-btn:hover { color: var(--gold-hi); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(19, 19, 19, .7); }
.seg button { min-width: 48px; padding: 7px 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 13px; font-weight: 600; transition: background-color .25s, color .25s; }
.seg button.is-on { background: var(--gold); color: #1a1307; }
.seg--sm button { padding: 5px 11px; font-size: 12px; min-width: 0; }
.tog { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body); cursor: pointer; }
.tog input { position: absolute; opacity: 0; pointer-events: none; }
.tog span { width: 30px; height: 18px; border-radius: 999px; background: rgba(242, 233, 218, .16); position: relative; transition: background-color .25s; }
.tog span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); transition: transform .25s var(--ease); }
.tog input:checked + span { background: var(--violet-deep); }
.tog input:checked + span::after { transform: translateX(12px); }
.tog input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.tag--demo { border-style: dashed; }
.prov { display: flex; flex-wrap: wrap; gap: 6px; }
.prov li { padding: 5px 10px; border-radius: 999px; background: rgba(226, 209, 180, .1); border: 1px solid rgba(226, 209, 180, .24); font-size: 12px; color: #eadfcd; white-space: nowrap; }
.prov li.is-sample { background: none; border-style: dashed; border-color: var(--line); color: var(--gold); }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 80; display: flex; align-items: center; gap: 22px; height: var(--header); padding: 0 var(--gutter); transition: background-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }
.nav.is-solid { background: rgba(9, 9, 9, .82); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .34em; color: var(--paper); }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(217, 189, 138, .35)); }
.nav-links { display: flex; gap: clamp(12px, 1.2vw, 20px); margin-left: auto; }
.nav-links a { position: relative; padding: 6px 0; font-family: var(--display); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: #c9c0b4; transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-links a:hover, .nav-links a.is-here { color: var(--gold-hi); }
.nav-links a.is-here::after { transform: none; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.proto-pill { padding: 6px 12px; border: 1px dashed var(--line); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line-soft); border-radius: 999px; background: rgba(242, 233, 218, .04); color: var(--body); transition: border-color .25s, background-color .25s; }
.tool:hover { border-color: rgba(242, 233, 218, .35); background: rgba(242, 233, 218, .08); }
.tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool kbd, .palette kbd { font-family: var(--sans); font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 5px; background: rgba(242, 233, 218, .1); color: var(--body); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#btn-motion .mo-play { display: none; }
#btn-motion[aria-pressed="true"] .mo-play { display: block; }
#btn-motion[aria-pressed="true"] .mo-pause { display: none; }
#btn-motion[aria-pressed="true"] { color: var(--gold-hi); border-color: var(--line); }
.reduce #btn-motion { display: none; }
/* Pause background motion: every ambient loop stops; anything the visitor starts still plays. */
.paused .glow, .paused .scroll-cue i, .paused .node::after, .paused .pocket.is-target, .paused .live-dot { animation: none !important; }
#btn-sound .snd-on { display: none; }
#btn-sound[aria-pressed="true"] .snd-on { display: block; }
#btn-sound[aria-pressed="true"] .snd-off { display: none; }
#btn-sound[aria-pressed="true"] { color: var(--gold-hi); border-color: var(--line); }
@media (max-width: 1600px) { .proto-pill { font-size: 0; padding: 6px 10px; } .proto-pill::before { content: attr(data-short); font-size: 11px; } }
@media (max-width: 1360px) { .nav-links { display: none; } .nav-tools { margin-left: auto; } }
@media (max-width: 720px) { .tool kbd { display: none; } .nav-tools { gap: 6px; } .nav { gap: 10px; } .proto-pill { display: none; } .brand span { font-size: 14px; letter-spacing: .26em; } .nav .btn--sm { display: none; } :root { --header: 62px; } }

/* ---------- Acts ---------- */
.act { position: relative; padding-block: clamp(84px, 11vw, 150px); }
.act-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; pointer-events: none; }
.act-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--ink) 0%, rgba(9, 9, 9, .55) 28%, rgba(9, 9, 9, .78) 70%, var(--ink) 100%); }
.act > .wrap { position: relative; }
.tool-head h3 { margin: 8px 0 6px; font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: .01em; color: var(--paper); }
.tool-head p:last-child { font-size: 15px; color: var(--muted); }

/* ---------- Scene rail ---------- */
.rail { position: fixed; right: 18px; top: 50%; z-index: 70; display: flex; flex-direction: column; gap: 14px; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .5s; }
.rail.is-shown { opacity: 1; pointer-events: auto; }
.rail a { position: relative; display: block; width: 12px; height: 12px; }
.rail a::before { content: ""; position: absolute; inset: 3px; background: rgba(242, 233, 218, .35); transform: rotate(45deg); transition: background-color .3s, inset .3s, box-shadow .3s; }
.rail a.is-here::before { inset: 0; background: var(--gold-hi); box-shadow: 0 0 14px rgba(243, 220, 170, .8); }
.rail a span { position: absolute; right: 22px; top: 50%; transform: translateY(-50%) translateX(6px); padding: 5px 10px; border-radius: 8px; background: rgba(19, 19, 19, .92); border: 1px solid var(--line); font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; color: var(--gold-hi); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: translateY(-50%); }
@media (max-width: 1320px) { .rail { display: none; } }

/* ---------- Footer ---------- */
.foot { padding: 56px 0 calc(110px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); background: #070707; }
.foot .wrap { display: grid; gap: 14px; max-width: 860px; text-align: center; }
.foot p { font-size: 13px; line-height: 1.6; color: var(--muted); }
.foot-brand { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-size: 15px !important; font-weight: 600; letter-spacing: .34em; color: var(--paper) !important; }

/* ---------- Toast and sparks ---------- */
.toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 120; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 999px; background: rgba(19, 19, 19, .96); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .6); font-size: 14px; color: var(--paper); opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.sparks { position: fixed; inset: 0; z-index: 130; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js.reduce [data-reveal], .js.no-gsap [data-reveal] { opacity: 1; transform: none; }

/* ---------- Hand-over (kid) view: money disappears everywhere ---------- */
body.kid .money { position: relative; color: transparent !important; text-shadow: none !important; user-select: none; }
body.kid .money::after { content: "✦ ✦ ✦"; position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: .55em; letter-spacing: .2em; color: var(--rose); white-space: nowrap; }
body.kid .money-only { visibility: hidden; }

/* src/css/card.css */
/* The FateDrop card: an original frame with a pointer-driven foil engine.
   Sizes use container units (cqw) so a card looks identical at any width. */
.tc {
  --mx: 50%; --my: 50%; --bx: 50%; --by: 50%; --px: 0; --py: 0;
  --rx: 0deg; --ry: 0deg; --flip: 0deg; --o: 0; --gemc: var(--gold);
  --rainbow: repeating-linear-gradient(110deg, #ff7773 0%, #ffed5f 8%, #a8ff5f 16%, #83fff7 24%, #7894ff 32%, #d875ff 40%, #ff7773 48%);
  --pastel: repeating-linear-gradient(-33deg, #f9b8d6 0%, #cda8f2 12%, #a8d8ff 24%, #b8ffe6 36%, #fff3b8 48%, #f9b8d6 60%);
  --goldfoil: repeating-linear-gradient(105deg, #fff6d0 0%, #f0cf7a 9%, #9a742c 20%, #f7e2a0 31%, #6e5220 42%, #fff6d0 54%);
  position: relative; width: 100%; aspect-ratio: 5 / 7; container-type: inline-size; perspective: 900px; isolation: isolate;
  user-select: none; -webkit-user-select: none; touch-action: pan-y; -webkit-tap-highlight-color: transparent;
}
.tc::after { content: ""; position: absolute; inset: 8% 6% -3%; z-index: -1; border-radius: 50%; background: rgba(0, 0, 0, .62); filter: blur(5cqw); transform: translate(calc(var(--px) * -3cqw), 3cqw); pointer-events: none; }
.tc-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--flip))); will-change: transform; }
.tc-face { position: absolute; inset: 0; overflow: hidden; border-radius: 4.6cqw; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tc-front { background: radial-gradient(120% 90% at 30% 10%, #2a2622 0%, #171615 55%, #0e0e0e 100%); box-shadow: 0 0 0 .4cqw rgba(0, 0, 0, .65); }
.tc-back { transform: rotateY(180deg); display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #2e2a25 0%, #181614 46%, #0b0b0b 100%); }
.tc-back::before { content: ""; position: absolute; inset: 3.4cqw; border: .5cqw solid rgba(217, 189, 138, .55); border-radius: 3cqw; }
.tc-back::after { content: ""; position: absolute; inset: 6cqw; border: .25cqw solid rgba(217, 189, 138, .25); border-radius: 2cqw; background: repeating-linear-gradient(45deg, rgba(217, 189, 138, .05) 0 .4cqw, transparent .4cqw 3cqw), repeating-linear-gradient(-45deg, rgba(217, 189, 138, .05) 0 .4cqw, transparent .4cqw 3cqw); }
.tc-back img { position: relative; z-index: 1; width: 46cqw; height: auto; filter: drop-shadow(0 0 4cqw rgba(217, 189, 138, .45)); }

.tc-art { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tc-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(9, 9, 9, .74) 0%, rgba(9, 9, 9, 0) 21%, rgba(9, 9, 9, 0) 55%, rgba(9, 9, 9, .92) 96%); }

/* Foil layers */
.tc-sheen, .tc-foil, .tc-spark, .tc-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.tc-sheen { z-index: 3; mix-blend-mode: screen; background-size: 300% 300%; background-position: var(--bx) var(--by); }
.tc-foil { z-index: 3; mix-blend-mode: color-dodge; }
.tc-spark {
  z-index: 4; mix-blend-mode: color-dodge;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .95) 0 .22cqw, transparent .3cqw), radial-gradient(circle, rgba(255, 240, 200, .9) 0 .16cqw, transparent .24cqw), radial-gradient(circle, rgba(200, 220, 255, .9) 0 .18cqw, transparent .26cqw);
  background-size: 3.1cqw 3.7cqw, 4.3cqw 2.9cqw, 5.3cqw 4.7cqw;
  background-position: calc(var(--px) * 3cqw) calc(var(--py) * 3cqw), calc(var(--px) * -5cqw) calc(var(--py) * 4cqw), calc(var(--px) * 7cqw) calc(var(--py) * -6cqw);
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .5) 26%, transparent 58%);
  mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .5) 26%, transparent 58%);
}
.tc-glare { z-index: 6; mix-blend-mode: overlay; opacity: calc(var(--o) * .85); background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 255, 255, .85) 6%, rgba(255, 255, 255, .3) 22%, rgba(0, 0, 0, .55) 95%); }

/* Standard: gloss only */
.tc[data-finish="standard"] .tc-glare { opacity: calc(var(--o) * .6); }

/* Holo: rainbow bands with fine scanlines, in the art window */
.tc[data-finish="holo"] .tc-foil {
  opacity: calc(.14 + var(--o) * .78);
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .16) 0 .25cqw, rgba(255, 255, 255, 0) .25cqw .8cqw), var(--rainbow);
  background-size: 100% 100%, 320% 320%; background-position: 0 0, var(--bx) var(--by);
  background-blend-mode: overlay; filter: brightness(.72) contrast(1.5) saturate(1.2);
}
.tc[data-finish="holo"] .tc-sheen { background-image: var(--rainbow); opacity: calc(var(--o) * .16); }
.tc[data-finish="holo"][data-layout="framed"] :is(.tc-foil, .tc-sheen) { clip-path: inset(14.5cqw 6.4cqw 71cqw 6.4cqw round 1.8cqw); }

/* Reverse holo: crosshatch foil everywhere except the framed art */
.tc[data-finish="reverse"] .tc-foil {
  opacity: calc(.2 + var(--o) * .62);
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .22) 0 .35cqw, transparent .35cqw 1.5cqw), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 .35cqw, transparent .35cqw 1.5cqw), var(--rainbow);
  background-size: auto, auto, 300% 300%; background-position: 0 0, 0 0, var(--bx) var(--by);
  filter: brightness(.62) contrast(1.6) saturate(1.1);
}
.tc[data-finish="reverse"] .tc-sheen { background-image: var(--rainbow); opacity: calc(var(--o) * .12); }
.tc[data-finish="reverse"][data-layout="framed"] .tc-art { z-index: 4; }

/* Illustration foil: soft pastel pillars and glitter across the whole card */
.tc[data-finish="illustration"] .tc-foil {
  opacity: calc(.14 + var(--o) * .46);
  background-image: var(--pastel), radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 70%);
  background-size: 400% 400%, 100% 100%; background-position: var(--bx) var(--by), 0 0;
  background-blend-mode: soft-light; filter: brightness(.64) contrast(1.35) saturate(1.45);
}
.tc[data-finish="illustration"] .tc-sheen { background-image: var(--pastel); opacity: calc(var(--o) * .2); }
.tc[data-finish="illustration"] .tc-spark { opacity: var(--o); }

/* Gold etched: metallic lines, rainbow edge light and heavy sparkle */
.tc[data-finish="gold"] .tc-foil {
  opacity: calc(.24 + var(--o) * .6);
  background-image: repeating-linear-gradient(78deg, rgba(255, 255, 255, .2) 0 .2cqw, transparent .2cqw .9cqw), var(--goldfoil);
  background-size: auto, 260% 260%; background-position: 0 0, var(--bx) var(--by);
  filter: brightness(.72) contrast(1.5);
}
.tc[data-finish="gold"] .tc-sheen { background-image: var(--rainbow); opacity: calc(var(--o) * .2); }
.tc[data-finish="gold"] .tc-spark { opacity: var(--o); }
.tc[data-finish="gold"] .tc-front { box-shadow: 0 0 0 .5cqw #caa24a, 0 0 5cqw rgba(243, 220, 170, .3); }
.tc[data-finish="gold"] .tc-line { border-color: rgba(243, 220, 170, .9); }

/* Card furniture */
.tc-ui { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.tc-line { position: absolute; inset: 2.4cqw; border: .45cqw solid rgba(217, 189, 138, .62); border-radius: 3.2cqw; }
.tc-head { position: absolute; left: 6.4cqw; right: 6.4cqw; top: 5.2cqw; display: flex; align-items: center; justify-content: space-between; gap: 2cqw; }
.tc-name { font-family: var(--display); font-weight: 700; font-size: 5.2cqw; line-height: 1.12; letter-spacing: .02em; color: var(--gold-hi); text-shadow: 0 .3cqw 1.6cqw rgba(0, 0, 0, .9); }
.tc[data-long] .tc-name { font-size: 4.2cqw; }
.tc-gem { flex: none; width: 3.4cqw; height: 3.4cqw; background: var(--gemc); transform: rotate(45deg); box-shadow: 0 0 2.4cqw var(--gemc); }
.tc-body { position: absolute; left: 6.4cqw; right: 6.4cqw; bottom: 5.2cqw; display: grid; gap: 1.9cqw; }
.tc-kind { justify-self: start; padding: .9cqw 2.2cqw; border: .3cqw solid rgba(217, 189, 138, .4); border-radius: 1.4cqw; background: rgba(19, 19, 19, .62); font-family: var(--display); font-weight: 700; font-size: 2.7cqw; letter-spacing: .16em; text-transform: uppercase; color: #ead5a8; }
.tc-flavour { font-family: var(--italic); font-style: italic; font-weight: 500; font-size: 4.5cqw; line-height: 1.2; color: #eadfcd; text-shadow: 0 .2cqw 1.4cqw rgba(0, 0, 0, .95); }
.tc-foot { display: flex; justify-content: space-between; gap: 2cqw; font-family: var(--display); font-weight: 600; font-size: 2.5cqw; letter-spacing: .14em; text-transform: uppercase; color: rgba(242, 233, 218, .74); }

/* Framed layout: landscape art window above a text box */
.tc[data-layout="framed"] .tc-art { inset: auto; left: 6.4cqw; top: 14.5cqw; width: 87.2cqw; height: 54.5cqw; border-radius: 1.8cqw; box-shadow: 0 0 0 .45cqw rgba(217, 189, 138, .7), 0 2cqw 5cqw rgba(0, 0, 0, .5); }
.tc[data-layout="framed"] .tc-shade { display: none; }
.tc[data-layout="framed"] .tc-body { top: 73cqw; align-content: start; grid-template-rows: auto 1fr auto; }
.tc[data-layout="framed"] .tc-flavour { align-self: start; padding: 2.4cqw 2.8cqw; border-radius: 1.8cqw; background: rgba(242, 233, 218, .06); border: .3cqw solid rgba(242, 233, 218, .1); }
.tc[data-layout="framed"] .tc-foot { align-self: end; }

/* Mini cards (binder pockets, lists): art and frame only */
.tc--mini { touch-action: auto; }
.tc--mini::after { display: none; }
.tc--mini :is(.tc-flavour, .tc-foot, .tc-kind, .tc-name) { visibility: hidden; }
.tc--mini .tc-shade { background: linear-gradient(180deg, rgba(9, 9, 9, .35) 0%, rgba(9, 9, 9, 0) 22%, rgba(9, 9, 9, 0) 70%, rgba(9, 9, 9, .5) 100%); }
.tc--mini[data-layout="framed"] .tc-body { border-radius: 1.8cqw; background: rgba(242, 233, 218, .05); }
.tc--mini .tc-glare { opacity: calc(var(--o) * .55); }
.tc--mini[data-finish="gold"] .tc-front { box-shadow: 0 0 0 .9cqw #caa24a; }
.tc--mini:is([data-finish="holo"], [data-finish="illustration"], [data-finish="reverse"], [data-finish="gold"]) .tc-front::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; mix-blend-mode: color-dodge; opacity: .5; background: linear-gradient(115deg, transparent 30%, rgba(160, 220, 255, .35) 42%, rgba(255, 190, 240, .35) 50%, rgba(255, 240, 170, .3) 58%, transparent 70%); background-size: 260% 260%; background-position: var(--bx) var(--by); }

/* src/css/hero.css */
/* Cold open, hero stage and the summoning */
.intro .nav { transform: translateY(-110%); }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; align-items: center; min-height: 100vh; min-height: 100svh; overflow: hidden; background: #090909; isolation: isolate; }
.stage { position: absolute; left: 0; top: 0; z-index: 0; width: 100%; height: 100%; transform-origin: 78% 46%; will-change: transform; }
.stage-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.stage-water { position: absolute; left: 69%; top: 54%; width: 28.5%; height: 27%; pointer-events: none; }
.stage-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; }
.glow--lantern { left: 33.5%; top: 63%; width: 13%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255, 190, 110, .5) 0%, rgba(255, 170, 90, .16) 40%, rgba(255, 170, 90, 0) 70%); animation: flicker 4.6s ease-in-out infinite; }
.glow--castle { left: 84%; top: 22%; width: 15%; aspect-ratio: 1.2; background: radial-gradient(circle, rgba(255, 214, 150, .26) 0%, rgba(255, 214, 150, 0) 68%); animation: flicker 7s ease-in-out -2s infinite; }
@keyframes flicker { 0%, 100% { opacity: .85; transform: scale(1); } 18% { opacity: .6; } 31% { opacity: 1; transform: scale(1.05); } 47% { opacity: .72; } 66% { opacity: .96; transform: scale(.98); } 82% { opacity: .68; } }

.arch { position: absolute; left: 70.4%; top: 6.4%; width: 25%; height: 72.6%; pointer-events: none; container-type: size; }
.arch-tag { position: absolute; z-index: 3; left: 50%; bottom: 58.2%; transform: translateX(-50%); padding: .5em 1.1em; border: 1px solid var(--line); border-radius: 999px; background: rgba(9, 9, 9, .78); font-family: var(--display); font-size: clamp(8px, 2.9cqw, 12px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--gold-hi); animation: tag-in .9s 1.3s both; }
@keyframes tag-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.reduce .arch-tag { animation: none; }
@media (max-width: 420px) { .arch-tag { font-size: 9px; } .arch-tag .tag-more { display: none; } }
.arch-clip { position: absolute; inset: -8% -30% 6.5% -30%; overflow: hidden; }
.arch-clip.is-free { overflow: visible; }
.arch-card { position: absolute; left: 50%; top: 52%; width: 36%; transform: translate(-50%, -50%); pointer-events: auto; opacity: 0; }
.arch-card .tc { filter: drop-shadow(0 0 22px rgba(226, 209, 180, .45)); }
.arch-beam { position: absolute; left: 50%; bottom: 6%; width: 64%; height: 96%; transform: translateX(-50%); opacity: 0; background: linear-gradient(0deg, rgba(243, 220, 170, .5) 0%, rgba(226, 209, 180, .22) 40%, rgba(226, 209, 180, 0) 100%); filter: blur(14px); mix-blend-mode: screen; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.arch-ring { position: absolute; left: 50%; bottom: 3%; width: 60%; aspect-ratio: 3.2; transform: translateX(-50%) scale(.2); border-radius: 50%; border: 2px solid rgba(243, 220, 170, .85); box-shadow: 0 0 22px rgba(243, 220, 170, .6), inset 0 0 18px rgba(226, 209, 180, .5); opacity: 0; }

.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(9, 9, 9, .94) 0%, rgba(9, 9, 9, .74) 26%, rgba(9, 9, 9, 0) 56%), linear-gradient(0deg, rgba(9, 9, 9, .96) 0%, rgba(9, 9, 9, 0) 26%); }
.hero-copy { position: relative; z-index: 3; width: min(680px, 48vw); margin-left: max(var(--gutter), calc((100vw - 1400px) / 2)); padding: calc(var(--header) + 24px) 0 110px; }
.hero-sub { max-width: 520px; margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--body); }

/* Summon search */
.summon { position: relative; display: flex; align-items: center; gap: 10px; max-width: 520px; margin-top: 30px; padding: 6px 6px 6px 18px; border: 1px solid rgba(225, 197, 140, .45); border-radius: 999px; background: rgba(13, 13, 13, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 0 rgba(225, 197, 140, 0), 0 20px 50px -20px rgba(0, 0, 0, .8); transition: box-shadow .3s, border-color .3s; }
.summon:focus-within { border-color: var(--gold-hi); box-shadow: 0 0 0 4px rgba(225, 197, 140, .16), 0 20px 50px -20px rgba(0, 0, 0, .8); }
.summon > svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #e1c58c; stroke-width: 2; stroke-linecap: round; }
.summon input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; outline: none; font-size: 16px; color: var(--paper); }
.summon input::placeholder { color: #8f877b; }
.summon > button { height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #f2dcad, #cdab70); color: #1a1307; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.summon > button:hover { filter: brightness(1.07); }
.summon-list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5; max-height: 286px; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 18px; background: rgba(16, 16, 17, .97); box-shadow: 0 24px 60px rgba(0, 0, 0, .7); }
.summon-list li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 12px; cursor: pointer; }
.summon-list li[aria-selected="true"], .summon-list li:hover { background: rgba(217, 189, 138, .12); }
.summon-list img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.summon-list b { display: block; font-weight: 600; font-size: 14px; color: var(--paper); }
.summon-list small { display: block; font-size: 12px; color: var(--muted); }
.summon-list span.money { font-size: 13px; color: var(--gold-hi); }
.summon-tries { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.summon-tries button { padding: 6px 12px; border: 1px solid var(--line-soft); border-radius: 999px; background: rgba(242, 233, 218, .04); color: var(--body); font-size: 13px; transition: border-color .25s, color .25s; }
.summon-tries button:hover { border-color: var(--gold); color: var(--gold-hi); }

/* Codex: the answer writes itself where the hero words were */
.codex { display: grid; gap: 14px; max-width: 560px; }
.codex > * { opacity: 0; transform: translateY(14px); animation: cx-in .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 500ms); }
.reduce .codex > * { animation: none; opacity: 1; transform: none; }
@keyframes cx-in { to { opacity: 1; transform: none; } }
.cx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cx-head small { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.cx-head small i { width: 8px; height: 8px; background: var(--gold-hi); transform: rotate(45deg); box-shadow: 0 0 12px rgba(243, 220, 170, .8); }
.cx-head h2 { margin: 10px 0 4px; font-family: var(--display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; line-height: 1.05; color: var(--paper); outline: none; }
.cx-head p { font-size: 15px; color: var(--muted); }
.x { flex: none; width: 40px; height: 40px; border: 1px solid var(--line-soft); border-radius: 50%; background: rgba(242, 233, 218, .04); color: var(--body); font-size: 14px; }
.x:hover { border-color: rgba(242, 233, 218, .4); }
.cx-value { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 6px 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(16, 16, 17, .66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cx-value small { grid-column: 1 / -1; font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.cx-value strong { font-family: var(--display); font-size: clamp(40px, 4.6vw, 60px); font-weight: 700; line-height: 1; color: var(--gold-hi); }
.cx-conf { display: grid; gap: 4px; padding-bottom: 6px; font-size: 13px; color: var(--muted); }
.cx-conf b { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #eadfcd; }
.cx-conf b i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); }
.cx-spark { display: grid; gap: 8px; }
.cx-spark svg { width: 100%; height: 58px; overflow: visible; }
.cx-tr { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.cx-tr .up { color: var(--up); }
.cx-tr .down { color: var(--down); }
.cx-grid { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 12px; }
.cx-grid > span:first-child { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.cx-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-pills em, .cx-pills button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-soft); border-radius: 999px; background: rgba(242, 233, 218, .04); font-style: normal; font-size: 13px; color: var(--body); }
.cx-pills em b { color: var(--paper); font-weight: 600; }
.cx-pills button.is-on { border-color: var(--gold); background: rgba(217, 189, 138, .14); color: var(--gold-hi); }
.cx-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.cx-note { font-size: 12px; line-height: 1.5; color: var(--dim); }

/* Letterbox */
.letterbox { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; padding: 0 var(--gutter); border-top: 1px solid rgba(217, 189, 138, .14); background: linear-gradient(0deg, rgba(9, 9, 9, .9), rgba(9, 9, 9, .5)); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { display: block; width: 46px; height: 1px; background: var(--gold); transform-origin: left; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: right; } }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px var(--violet); vertical-align: middle; }

/* ---------- Narrow screens: the picture sits above the words ---------- */
@media (max-width: 1024px) {
  .hero { display: block; min-height: 0; padding-top: calc(var(--header) + var(--stage-h, 112vw)); }
  .hero-scrim { inset: var(--header) 0 auto 0; height: var(--stage-h, 112vw); background: linear-gradient(0deg, #090909 0%, rgba(9, 9, 9, 0) 24%), linear-gradient(180deg, rgba(9, 9, 9, .55) 0%, rgba(9, 9, 9, 0) 14%); }
  .hero-copy { width: auto; margin: 0; padding: 18px var(--gutter) 96px; }
  .arch-card { width: 44%; }
  .arch-tag { bottom: 64.4%; }
  .h1 { font-size: clamp(34px, 9.4vw, 54px); }
  .hero-sub { font-size: 16px; }
  .cx-grid { grid-template-columns: 1fr; gap: 6px; }
  .cx-value { grid-template-columns: 1fr; }
  .letterbox { height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .glow, .scroll-cue i { animation: none; } }

/* src/css/film.css */
/* The front door: the cinematic cold open, the two doors, and what changes between the two sides */
html.intro { overflow: hidden; }

/* ---------- The film ---------- */
.film { --fw: min(250px, 46vw, 32vh); position: fixed; inset: 0; z-index: 320; display: none; overflow: hidden; background: radial-gradient(70% 60% at 50% 45%, #121212 0%, #070707 72%); }
.film-on .film { display: block; }
.film-stage { position: absolute; inset: 0; }
.film-motes { position: absolute; inset: 0; width: 100%; height: 100%; }
.film-tunnel { position: absolute; inset: 0; overflow: hidden; perspective: 900px; transform-style: preserve-3d; }
.fc { position: absolute; left: 50%; top: 50%; width: clamp(96px, 12vw, 180px); aspect-ratio: 5 / 7; overflow: hidden; border-radius: 9px; background: #18181a; opacity: 0; box-shadow: 0 0 0 2px rgba(217, 189, 138, .75), 0 18px 44px rgba(0, 0, 0, .6); will-change: transform, opacity; }
.fc img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fc::after { content: ""; position: absolute; inset: 5%; border: 1px solid rgba(243, 220, 170, .55); border-radius: 6px; }
.film-lines { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 0 6vw; pointer-events: none; }
.film-line { grid-area: 1 / 1; margin: 0; max-width: 920px; text-align: center; text-wrap: balance; font-family: var(--italic); font-style: italic; font-weight: 600; font-size: clamp(30px, 5vw, 64px); line-height: 1.1; color: var(--paper); text-shadow: 0 2px 30px rgba(0, 0, 0, .85), 0 0 40px rgba(178, 146, 120, .35); opacity: 0; }
.film-hero { position: absolute; left: 50%; top: 42%; z-index: 4; width: var(--fw); margin: calc(var(--fw) * -.7) 0 0 calc(var(--fw) / -2); opacity: 0; }
.film-hero .tc { filter: drop-shadow(0 0 40px rgba(243, 220, 170, .45)); }
.film-title { position: absolute; left: 0; right: 0; top: calc(42% + var(--fw) * .7 + 24px); z-index: 4; display: grid; justify-items: center; gap: 6px; text-align: center; }
.film-emblem { width: 40px; height: auto; filter: drop-shadow(0 0 16px rgba(217, 189, 138, .6)); }
.film-word { margin: 0 -.5em 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(16px, 2vw, 22px); letter-spacing: .5em; color: var(--paper); }
.film-tag { margin: 0; font-family: var(--italic); font-style: italic; font-size: clamp(18px, 2vw, 24px); color: var(--violet); }
.film-flash { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; mix-blend-mode: screen; background: radial-gradient(circle at 50% 42%, rgba(255, 246, 220, .95), rgba(243, 220, 170, .3) 30%, transparent 62%); }
.film-skip { position: absolute; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 6; padding: 9px 18px; border: 1px solid rgba(242, 233, 218, .3); border-radius: 999px; background: rgba(9, 9, 9, .6); font-size: 13px; color: var(--body); }
.film-skip:hover { border-color: rgba(242, 233, 218, .6); color: var(--paper); }
.film-on .sparks, .gate-on .sparks, .doors-on .sparks { z-index: 330; }
.gate-on .toast, .film-on .toast, .doors-on .toast { z-index: 335; }

/* ---------- The doors ---------- */
.gate { position: fixed; inset: 0; z-index: 310; display: none; place-items: center; overflow-y: auto; padding: 28px 16px calc(28px + env(safe-area-inset-bottom)); background: #090909; }
.gate-on .gate { display: grid; }
.gate-bg { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 76% 50%; opacity: .55; pointer-events: none; }
.gate-shade { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(64% 72% at 50% 52%, rgba(9, 9, 9, .45), rgba(9, 9, 9, .94)); }
.gate-in { position: relative; display: grid; justify-items: center; gap: 16px; width: min(1000px, 100%); text-align: center; }
.gate-brand { display: inline-flex; align-items: center; gap: 12px; margin: 0 -.34em 0 0; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .34em; color: var(--paper); }
.gate-brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(217, 189, 138, .4)); }
.gate-title { font-family: var(--display); font-size: clamp(30px, 4.4vw, 56px); font-weight: 600; line-height: 1.02; letter-spacing: .01em; color: var(--paper); text-wrap: balance; }
.gate-title em { display: block; margin-top: 4px; font-family: var(--italic); font-size: 1.1em; font-style: italic; color: var(--violet); }
.gate-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 4vw, 56px); width: 100%; margin-top: 8px; perspective: 1200px; }
.door { position: relative; display: grid; justify-items: center; align-content: start; gap: 16px; padding: 22px 16px 22px; border: 1px solid var(--line-soft); border-radius: 28px; background: rgba(19, 19, 19, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: inherit; transition: border-color .3s, background-color .3s, box-shadow .4s; }
.door:hover, .door:focus-visible { border-color: var(--gold); background: rgba(217, 189, 138, .08); box-shadow: 0 0 60px rgba(217, 189, 138, .12); }
.door[data-world="invest"]:hover, .door[data-world="invest"]:focus-visible { box-shadow: 0 0 60px rgba(243, 220, 170, .18); }
.door-card { display: block; width: min(240px, 100%, 34vh); }
.door-text b { display: block; font-family: var(--display); font-size: clamp(17px, 2vw, 23px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-hi); }
.door-text small { display: block; max-width: 330px; margin: 6px auto 0; font-size: 14.5px; line-height: 1.5; color: var(--body); }
.door-here { display: none; position: absolute; top: 12px; right: 12px; padding: 3px 10px; border-radius: 999px; background: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1a1307; }
.door.is-here .door-here { display: inline-block; }
.gate-note { max-width: 560px; font-size: 13.5px; color: var(--muted); }
.gate-close { padding: 4px 0; }
@media (max-width: 640px) {
  .gate { place-items: start center; }
  .gate-in { gap: 12px; }
  .gate-title { font-size: 28px; }
  .door { gap: 10px; padding: 12px 8px 14px; border-radius: 20px; }
  .door-card { width: min(150px, 100%); }
  .door-text b { font-size: 14px; letter-spacing: .05em; }
  .door-text small { font-size: 12.5px; line-height: 1.4; }
  .door-here { top: 6px; right: 6px; font-size: 9.5px; }
}

/* ---------- The side you are on ---------- */
.tool--side span { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 720px) { .tool--side span { display: none; } }
body.kid #btn-side, body.kid [data-side-switch], body.kid .hero-kid { display: none; }
[data-world="invest"] .marks, [data-world="invest"] .guide-count { display: none !important; }
.foot-switch { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) { .film { display: none !important; } }

/* Before the scripts run, show only the chosen side */
[data-world="collect"] [data-side="invest"], [data-world="invest"] [data-side="collect"] { display: none !important; }

/* Phones: the door button joins the top bar, so the palette button (a keyboard tool) steps out on the narrowest screens */
@media (max-width: 420px) { #btn-palette { display: none; } .nav-tools { gap: 5px; } .tool { padding: 0 10px; } .brand { gap: 8px; } .brand span { font-size: 13px; letter-spacing: .2em; } }

/* ---------- The Fate Market notice ---------- */
.gate { background: radial-gradient(60% 60% at 50% 40%, rgba(217, 189, 138, .1), transparent 70%), #090909; }
.gate::before { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(217, 189, 138, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(217, 189, 138, .06) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(60% 60% at 50% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(60% 60% at 50% 45%, #000 20%, transparent 75%); }
.gate-in { width: min(640px, 100%); gap: 18px; }
.gate-lede { max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--body); }
.gate-terms { display: grid; gap: 8px; width: 100%; text-align: left; }
.gate-terms li { padding: 11px 14px; border-left: 2px solid var(--gold); border-radius: 0 12px 12px 0; background: rgba(217, 189, 138, .07); font-size: 14.5px; line-height: 1.5; color: var(--body); }
.gate-terms b { color: var(--paper); font-weight: 600; }
.gate-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.side-veil { position: fixed; inset: 0; z-index: 305; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 45%, #1a1917, #070707 70%); }
.tool--side.is-market { color: var(--gold-hi); border-color: var(--line); }
.hero-kid { display: block; margin-top: 14px; font-size: 13.5px; }
.cx-market .link-btn { font-size: 13.5px; }

/* ---------- The two doors, brought back: they share the notice's frame but show on their own ---------- */
.gate--doors { background: #090909; }
.gate--doors::before { display: none; }
.gate-on .gate--doors { display: none; }
.doors-on .gate--doors { display: grid; }
.gate--doors .gate-in { width: min(1000px, 100%); gap: 16px; }
.gate--doors .door { cursor: pointer; }
.gate--doors .door[data-world="collect"] { border-color: rgba(217, 189, 138, .4); }

/* ---------- The games ring in the film ---------- */
.film-games { position: absolute; left: 50%; top: 42%; pointer-events: none; }
.fg { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--display); font-size: clamp(9px, 1.4vw, 18px); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fff; text-shadow: 0 0 16px rgba(255, 255, 255, .3); opacity: 0; will-change: transform, opacity; }
.fg.is-live { color: var(--gold-hi); text-shadow: 0 0 22px rgba(243, 220, 170, .6); }
.film-games-line { margin: 4px 0 0; font-size: clamp(11px, 1.1vw, 13px); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(242, 233, 218, .6); }

/* src/css/pack.css */
/* Scene 02: the daily pack. A foil wrapper torn at the visitor's own pace, five cards, then the binder.
   Nothing here shows a price: the reveal ends on the collection. */
.act--pack { overflow: hidden; background: radial-gradient(44% 54% at 74% 50%, rgba(178, 146, 120, .17), transparent 72%), radial-gradient(28% 26% at 74% 80%, rgba(243, 220, 170, .1), transparent 70%), var(--ink); }
.pack-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head stage" "panel stage" "facts stage"; column-gap: clamp(36px, 8vw, 130px); align-items: start; }
.pack-head { grid-area: head; max-width: 620px; margin-bottom: 30px; }
.pk-wrap { grid-area: stage; align-self: center; padding: 34px clamp(20px, 5vw, 80px) 10px; }
.pk-panel { grid-area: panel; max-width: 540px; min-height: 250px; }
.pack-facts { grid-area: facts; max-width: 540px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.pack-facts ul { display: grid; gap: 9px; }
.pack-facts li { display: flex; align-items: baseline; gap: 14px; font-size: 15px; color: var(--body); }
.pack-facts .note { margin-top: 14px; }

/* ---------- Stage: the pack is a little larger than the cards inside it ---------- */
.pk-stage { --cw: min(300px, 62vw, 40vh); --pw: calc(var(--cw) / .86); position: relative; width: var(--pw); aspect-ratio: 1 / 1.62; margin-inline: auto; }
@supports (height: 1svh) { .pk-stage { --cw: min(300px, 62vw, 40svh); } }
.pk-floor { position: absolute; left: -26%; right: -26%; bottom: -8%; height: 17%; border-radius: 50%; background: radial-gradient(closest-side, rgba(243, 220, 170, .24), rgba(178, 146, 120, .1) 55%, transparent); filter: blur(6px); pointer-events: none; }
.pk-flash { position: absolute; inset: -34%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, var(--glow, #f3dcaa), transparent 72%); mix-blend-mode: screen; opacity: 0; pointer-events: none; }

/* ---------- The wrapper ---------- */
.pk { --mx: 50%; --my: 50%; --bx: 50%; --by: 50%; --rx: 0deg; --ry: 0deg; --o: 0; position: absolute; inset: 0; z-index: 2; container-type: inline-size; perspective: 1100px; border-radius: 10px; outline-offset: 12px; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.pk-float { position: absolute; inset: 0; animation: pk-float 5.4s ease-in-out infinite; }
@keyframes pk-float { 0%, 100% { transform: translateY(-.9%) rotate(-.5deg); } 50% { transform: translateY(.9%) rotate(.5deg); } }
.pk.is-torn .pk-float, .paused .pk-float { animation-play-state: paused; }
.reduce .pk-float { animation: none; }
.pk-shadow { position: absolute; inset: 12% 3% -4%; z-index: -1; border-radius: 50%; background: rgba(0, 0, 0, .66); filter: blur(7cqw); }
.pk-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); will-change: transform; }
.pk.is-open .pk-tilt { transform: none; transition: transform .3s; }
.pk-layer { position: absolute; inset: 0; }
.pk-zone { position: absolute; inset: -9% -10%; touch-action: pan-y; cursor: ew-resize; }
.pk.is-tearing .pk-zone { cursor: grabbing; }

.pk-skin { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(162deg, #2f2b26 0%, #181614 44%, #0c0b0a 100%); }
.pk-skin::after { content: ""; position: absolute; inset: 12.8% 3.6cqw 8.6%; border: .35cqw solid rgba(217, 189, 138, .45); border-radius: 2.6cqw; pointer-events: none; }
.pk-art { position: absolute; left: 0; top: 13%; width: 100%; height: 66%; object-fit: cover; object-position: 50% 26%; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 64%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 64%, transparent 100%); }
.pk-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(24, 16, 46, .86) 0%, rgba(24, 16, 46, 0) 34%, rgba(9, 9, 9, 0) 56%, rgba(9, 9, 9, .94) 88%),
  linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 10%, rgba(255, 255, 255, .08) 24%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 66%, rgba(255, 255, 255, .05) 82%, rgba(0, 0, 0, .6) 100%); }
.pk-crimp { position: absolute; left: 0; right: 0; background:
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 .5cqw, rgba(0, 0, 0, .3) .5cqw 1.1cqw, rgba(255, 255, 255, .04) 1.1cqw 1.9cqw),
  linear-gradient(180deg, #d9bd8a, #8a6d3b 150%); }
.pk-crimp--t { top: 0; height: 10.8%; box-shadow: 0 .4cqw 0 rgba(0, 0, 0, .4), 0 1cqw 2cqw rgba(0, 0, 0, .45); }
.pk-crimp--b { bottom: 0; height: 6.6%; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 .5cqw, rgba(0, 0, 0, .3) .5cqw 1.1cqw, rgba(255, 255, 255, .04) 1.1cqw 1.9cqw), linear-gradient(0deg, #d9bd8a, #8a6d3b 150%); box-shadow: 0 -.4cqw 0 rgba(0, 0, 0, .4), 0 -1cqw 2cqw rgba(0, 0, 0, .45); }
.pk-logo { position: absolute; left: 0; right: 0; top: 15.4%; display: grid; justify-items: center; gap: 1.1cqw; text-align: center; }
.pk-logo img { width: 16cqw; height: auto; filter: drop-shadow(0 0 3cqw rgba(243, 220, 170, .6)); }
.pk-logo b { margin-right: -.34em; font-family: var(--display); font-weight: 700; font-size: 5.4cqw; letter-spacing: .34em; color: var(--paper); text-shadow: 0 .4cqw 2cqw rgba(0, 0, 0, .9); }
.pk-logo i { margin-right: -.3em; font-family: var(--display); font-style: normal; font-weight: 600; font-size: 2.4cqw; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.pk-title { position: absolute; left: 6cqw; right: 6cqw; bottom: 10.6%; display: grid; justify-items: center; gap: .9cqw; text-align: center; }
.pk-title small { margin-right: -.3em; font-family: var(--display); font-weight: 600; font-size: 2.6cqw; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.pk-title b { font-family: var(--display); font-weight: 700; font-size: 10.2cqw; line-height: 1; letter-spacing: .04em; text-transform: uppercase; color: transparent; background: linear-gradient(180deg, #fff6d0, #e1c58c 55%, #a8843c); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 .5cqw 1.4cqw rgba(0, 0, 0, .85)); }
.pk-title i { font-family: var(--italic); font-size: 4.7cqw; line-height: 1.1; color: #eadfcd; }
.pk-foil { position: absolute; inset: 0; mix-blend-mode: color-dodge; opacity: calc(.2 + var(--o) * .5); background: linear-gradient(115deg, transparent 22%, rgba(214, 186, 133, .55) 36%, rgba(255, 236, 190, .8) 45%, rgba(243, 169, 208, .55) 54%, transparent 70%); background-size: 280% 280%; background-position: var(--bx) var(--by); }
.pk-gloss { position: absolute; inset: 0; mix-blend-mode: overlay; opacity: calc(var(--o) * .7); background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 255, 255, .8) 5%, rgba(255, 255, 255, .2) 24%, rgba(0, 0, 0, .4) 95%); }

/* The tear: a flap that lifts where the finger has been, light from the opening, a bright torn edge */
.pk-flapwrap { position: absolute; inset: 0; pointer-events: none; filter: drop-shadow(0 .8cqw 1.4cqw rgba(0, 0, 0, .55)); }
.pk-flap { visibility: hidden; }
.pk-light { position: absolute; left: 0; bottom: 87.5%; width: 0; height: 24%; transform-origin: 50% 100%; opacity: 0; pointer-events: none; mix-blend-mode: screen; background: linear-gradient(0deg, rgba(255, 240, 200, .9) 0%, rgba(243, 220, 170, .32) 30%, rgba(226, 209, 180, .08) 62%, transparent 100%); filter: blur(2.6cqw); -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.pk-edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.pk-edge polyline { fill: none; stroke: #fff6dc; stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px rgba(255, 236, 190, .9)); }
.pk-head { position: absolute; left: 0; top: 12.5%; width: 5cqw; height: 5cqw; margin: -2.5cqw 0 0 -2.5cqw; border-radius: 50%; opacity: 0; pointer-events: none; background: radial-gradient(circle, #fff 0%, rgba(255, 236, 190, .9) 30%, rgba(243, 220, 170, 0) 70%); box-shadow: 0 0 5cqw 1.6cqw rgba(243, 220, 170, .55); }
.pk-hint { position: absolute; left: 0; right: 0; top: 12.5%; height: 0; pointer-events: none; transition: opacity .35s; }
.pk-hint::before { content: ""; position: absolute; left: 3%; right: 3%; top: -1px; border-top: 2px dashed rgba(255, 246, 220, .8); }
.pk-hint i { position: absolute; top: 0; left: 4%; width: 4.4cqw; height: 4.4cqw; margin: -2.2cqw 0 0 -2.2cqw; background: #fff6dc; transform: rotate(45deg); box-shadow: 0 0 3cqw 1cqw rgba(243, 220, 170, .8); animation: pk-swipe 2.8s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes pk-swipe { 0% { left: 4%; opacity: 0; } 12% { opacity: 1; } 70% { left: 96%; opacity: 1; } 82%, 100% { left: 96%; opacity: 0; } }
.pk-hint b { position: absolute; left: 50%; bottom: 23.5cqw; transform: translateX(-50%); padding: .5em 1.2em; border: 1px solid var(--line); border-radius: 999px; background: rgba(9, 9, 9, .82); font-family: var(--display); font-size: max(10px, 2.9cqw); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: var(--gold-hi); }
.pk.is-torn .pk-hint { opacity: 0; }
.pk.is-nudge .pk-hint b { animation: pk-nudge .6s var(--ease); }
@keyframes pk-nudge { 30% { transform: translateX(-50%) scale(1.14); box-shadow: 0 0 0 6px rgba(243, 220, 170, .2); } }
.paused .pk-hint i, .reduce .pk-hint i { animation: none; left: 50%; opacity: 1; }

/* ---------- The five cards ---------- */
.pk-cards { position: absolute; z-index: 1; left: 7%; top: 16.5%; width: 86%; aspect-ratio: 5 / 7; }
.pk-cards.is-out { top: 0; }
.pk-card { position: absolute; inset: 0; pointer-events: none; }
.pk-card.is-top { pointer-events: auto; cursor: pointer; }
.pk-card-in { position: absolute; inset: 0; transform: translate(var(--ox, 0), var(--oy, 0)) rotate(var(--or, 0deg)); transition: transform .45s var(--ease); }
.pk-card.is-top .pk-card-in { transform: none; }
.pk-card .tc { filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .6)); transition: filter .35s; }
.pk-card.is-peek .tc { filter: drop-shadow(0 0 calc(var(--gr, 20px) * .3) var(--glow, #fff)) drop-shadow(0 0 var(--gr, 20px) var(--glow, #fff)); }
.pk-card.is-peek .pk-card-in { animation: pk-breathe 1.2s ease-in-out infinite; }
@keyframes pk-breathe { 50% { transform: scale(1.025); } }
.reduce .pk-card.is-peek .pk-card-in { animation: none; }

.pk-slots { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.4%; opacity: 0; pointer-events: none; transition: opacity .4s; }
[data-state="cards"] .pk-slots { opacity: 1; }
.pk-slot { position: relative; aspect-ratio: 5 / 7; border: 1px dashed rgba(217, 189, 138, .34); border-radius: 9%; transition: border-color .3s, box-shadow .3s; }
.pk-slot.is-now { border-style: solid; border-color: var(--gold-hi); box-shadow: 0 0 14px rgba(243, 220, 170, .35); }
.pk-slot.is-filled { border-color: transparent; box-shadow: none; }
.pk-slot.is-new::after, .pk-fan-card.is-new .pk-fan-in::before { content: "New"; position: absolute; left: 50%; z-index: 6; transform: translateX(-50%); padding: 2px 7px; border-radius: 999px; background: var(--gold); font-size: 9px; font-weight: 700; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: #1a1307; box-shadow: 0 0 14px rgba(217, 189, 138, .5); }
.pk-slot.is-new::after { bottom: -8px; }

/* The closing tableau: all five, fanned */
.pk-fan { --sx: 29%; --rot: 9deg; position: absolute; inset: 0; z-index: 1; }
.pk-fan-card { position: absolute; left: 18%; top: 15%; width: 64%; transform: translate(calc(var(--f) * var(--sx)), calc(var(--a) * 2.4%)) rotate(calc(var(--f) * var(--rot))); }
.pk-fan-card.is-front { z-index: 20 !important; }
.pk-fan-in { position: relative; transition: transform .3s var(--ease); }
.pk-fan-in .tc { filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .6)); }
.pk-fan-card.is-new .pk-fan-in::before { top: -9px; font-size: 10px; }
.pk-fan-card.is-front .pk-fan-in { transform: translateY(-6%) scale(1.05); }
@media (hover: hover) { .pk-fan-card:hover { z-index: 21 !important; } .pk-fan-card:hover .pk-fan-in { transform: translateY(-6%) scale(1.05); } }

/* ---------- The panel beside the stage ---------- */
.pk-name { margin: 10px 0 6px; font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.14; letter-spacing: .01em; color: var(--paper); text-wrap: balance; }
.pk-kind { font-size: 15px; line-height: 1.55; color: var(--muted); }
.pk-story { margin-top: 12px; font-family: var(--italic); font-style: italic; font-size: 22px; line-height: 1.3; color: #eadfcd; }
.pk-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 13px; border: 1px solid var(--line-soft); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--body); }
.pk-chip.is-new { border-color: rgba(143, 227, 208, .5); background: rgba(143, 227, 208, .1); color: var(--teal); }
.pk-glows { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.pk-glows li { display: inline-flex; align-items: center; gap: 8px; }
.pk-glows i { width: 8px; height: 8px; background: var(--c); transform: rotate(45deg); box-shadow: 0 0 9px var(--c); }
.pk-glows i + i { margin-left: -2px; }
.pk-meter { max-width: 440px; margin-top: 16px; }
.pk-meter p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; color: var(--body); }
.pk-meter p b { font-weight: 600; color: var(--teal); }
.pk-meter-bar { display: flex; height: 8px; margin-top: 8px; border-radius: 999px; overflow: hidden; background: rgba(242, 233, 218, .12); }
.pk-meter-bar i { background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi)); }
.pk-meter-bar b { background: var(--teal); box-shadow: 0 0 12px rgba(143, 227, 208, .7); }
.pk-list { display: grid; gap: 6px; max-width: 520px; margin-top: 14px; }
.pk-list button { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 9px 14px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(242, 233, 218, .03); text-align: left; transition: border-color .25s, background-color .25s, transform .25s var(--ease); }
.pk-list button:hover, .pk-list button.is-hot { border-color: var(--gold); background: rgba(217, 189, 138, .1); transform: translateX(2px); }
.pk-list i { width: 9px; height: 9px; background: var(--c); transform: rotate(45deg); box-shadow: 0 0 10px var(--c); }
.pk-list b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--paper); }
.pk-list small { display: block; font-size: 12px; color: var(--muted); }
.pk-list em { font-style: normal; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--gold-hi); }
.pk-list em::after { content: " →"; }
.pk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; }
#pack-peek { touch-action: none; }
#pack-peek.is-on { border-color: var(--gold-hi); background: rgba(243, 220, 170, .14); }

@media (max-width: 900px) {
  .pack-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "panel" "facts"; }
  .pack-head { margin-bottom: 6px; }
  .pk-wrap { padding: 44px 0 34px; }
  .pk-panel { display: flex; flex-direction: column; align-items: flex-start; min-height: 0; }
  .pk-acts { order: -1; margin: 0 0 20px; }
  .pk-fan { --sx: 20%; --rot: 7deg; }
}

/* src/css/worth.css */
/* Act I: the pedestal, the price observatory, the receipt and the grade check */
.act--worth { background: radial-gradient(60% 40% at 22% 30%, rgba(178, 146, 120, .1), transparent 70%), var(--ink); }
.worth-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }

.pedestal { position: relative; display: grid; justify-items: center; gap: 18px; padding-top: 10px; }
.pedestal-glow { position: absolute; left: 50%; top: 34%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(226, 209, 180, .2) 0%, rgba(217, 189, 138, .08) 36%, transparent 62%); pointer-events: none; }
.pedestal-card { position: relative; width: clamp(230px, 25vw, 350px); }
.pedestal-base { position: relative; width: clamp(230px, 25vw, 350px); height: 34px; margin-top: 6px; border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, rgba(243, 220, 170, .5) 0%, rgba(217, 189, 138, .16) 38%, transparent 70%); filter: blur(2px); }
.pedestal-base::after { content: ""; position: absolute; left: 12%; right: 12%; top: 40%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-hi), transparent); }
.printings { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.printings button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-soft); border-radius: 999px; background: rgba(242, 233, 218, .04); color: var(--body); font-size: 14px; transition: border-color .25s, background-color .25s, color .25s; }
.printings button b { font-weight: 600; color: var(--paper); }
.printings button.is-on { border-color: var(--gold); background: rgba(217, 189, 138, .14); color: var(--gold-hi); }

.obs { padding: clamp(20px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(160deg, rgba(24, 24, 26, .9), rgba(16, 16, 17, .9)); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9); }
.obs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.obs-value { margin-top: 8px; font-family: var(--display); font-size: clamp(46px, 5.4vw, 74px); font-weight: 700; line-height: 1; color: var(--gold-hi); }
.obs-moves { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.obs-moves .up { color: var(--up); }
.obs-moves .down { color: var(--down); }
.obs-head .prov { max-width: 330px; justify-content: flex-end; }
.chart-wrap { position: relative; margin-top: 22px; }
#chart { width: 100%; height: clamp(220px, 26vw, 300px); touch-action: pan-y; cursor: crosshair; }
.chart-tip { position: absolute; top: 0; left: 0; z-index: 2; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(13, 13, 13, .95); font-size: 13px; line-height: 1.45; white-space: nowrap; pointer-events: none; box-shadow: 0 14px 34px rgba(0, 0, 0, .6); }
.chart-tip b { color: var(--gold-hi); font-weight: 600; }
.chart-tip i { font-style: normal; color: #eadfcd; }
.chart-tip small { display: block; color: var(--muted); font-size: 12px; }
.chart-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }
.ladders { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.ladders .cap { margin-bottom: 10px; }
.ladder { display: grid; gap: 6px; }
.ladder button, .ladder > div { position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(242, 233, 218, .03); text-align: left; font-size: 14px; color: var(--body); overflow: hidden; }
.ladder button { transition: border-color .25s, background-color .25s; }
.ladder button:hover { border-color: rgba(242, 233, 218, .3); }
.ladder button.is-on { border-color: var(--gold); background: rgba(217, 189, 138, .12); }
.ladder b { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--gold-hi); }
.ladder em { font-style: normal; color: var(--muted); font-size: 13px; }
.ladder strong { font-weight: 600; color: var(--paper); }
.ladder i { position: absolute; left: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--violet-deep), var(--violet)); width: var(--w, 0%); transition: width .8s var(--ease); }

/* Tools row */
.worth-tools { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.receipt-card, .grade-card { padding: clamp(20px, 2.6vw, 32px); border: 1px solid var(--line-soft); border-radius: 26px; background: var(--panel); }
.receipt { position: relative; max-width: 400px; margin: 24px auto 6px; padding: 22px 20px 34px; background: #f4ecdc; color: #2a241c; font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; font-size: 12.5px; line-height: 1.55; transform: rotate(-1.2deg); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8);
  -webkit-mask-image: linear-gradient(#000, #000), conic-gradient(from -45deg at 50% 100%, #000 90deg, transparent 0); -webkit-mask-size: 100% calc(100% - 9px), 14px 9px; -webkit-mask-position: 0 0, 0 100%; -webkit-mask-repeat: no-repeat, repeat-x;
  mask-image: linear-gradient(#000, #000), conic-gradient(from -45deg at 50% 100%, #000 90deg, transparent 0); mask-size: 100% calc(100% - 9px), 14px 9px; mask-position: 0 0, 0 100%; mask-repeat: no-repeat, repeat-x; }
.receipt h4 { margin: 0 0 2px; font: 700 14px/1.2 var(--display); letter-spacing: .3em; text-align: center; color: #2a241c; }
.receipt .r-sub { text-align: center; color: #6d6456; }
.receipt hr { margin: 10px 0; border: 0; border-top: 1px dashed #b3a892; }
.receipt .r-row { display: grid; grid-template-columns: 56px 30px 1fr auto; gap: 8px; }
.receipt .r-row.is-out { color: #a0968a; }
.receipt .r-row.is-out span:last-child { text-decoration: line-through; }
.receipt .r-row small { grid-column: 3 / -1; margin-top: -3px; font-size: 11px; color: #a0623a; }
.receipt .r-tot { display: flex; justify-content: space-between; }
.receipt .r-tot.big { margin-top: 4px; padding-top: 6px; border-top: 2px solid #2a241c; font-weight: 700; font-size: 15px; }
.receipt .r-method { margin-top: 10px; color: #5f574a; font-size: 11.5px; }
.receipt .r-code { height: 34px; margin: 14px 12px 6px; background: repeating-linear-gradient(90deg, #2a241c 0 2px, transparent 2px 4px, #2a241c 4px 5px, transparent 5px 9px, #2a241c 9px 12px, transparent 12px 14px); }
.receipt .r-foot { text-align: center; font-size: 10.5px; letter-spacing: .14em; color: #8b8170; }
body.kid .receipt .money::after { color: #a0623a; }

.grade-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 36px); margin-top: 24px; }
.grade-sliders { display: grid; gap: 14px; }
.g-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; font-size: 14px; color: var(--body); }
.g-row output { font-family: var(--display); font-weight: 700; color: var(--gold-hi); min-width: 3ch; text-align: right; }
.g-row input { grid-column: 1 / -1; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: none; cursor: pointer; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--fill), rgba(242, 233, 218, .16) var(--fill)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(242, 233, 218, .16); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--gold); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; border: 2px solid #1a1307; background: linear-gradient(180deg, #f6e4bb, #cdab70); box-shadow: 0 0 0 4px rgba(217, 189, 138, .18), 0 4px 10px rgba(0, 0, 0, .5); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #1a1307; background: linear-gradient(180deg, #f6e4bb, #cdab70); }
.grade-bars { display: grid; gap: 8px; }
.gb { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; color: var(--body); }
.gb span:first-child { color: var(--muted); }
.gb i { display: block; height: 10px; border-radius: 6px; background: rgba(242, 233, 218, .08); overflow: hidden; }
.gb i b { display: block; height: 100%; width: var(--w, 0%); border-radius: 6px; background: linear-gradient(90deg, var(--violet-deep), var(--violet)); transition: width .6s var(--ease); }
.gb.is-top i b { background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi)); }
.gb em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--paper); }
.grade-sum { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); display: grid; gap: 6px; font-size: 14px; color: var(--body); }
.grade-sum div { display: flex; justify-content: space-between; gap: 12px; }
.grade-sum div span:last-child { color: var(--paper); font-weight: 600; }
.g-verdict { margin-top: 10px; padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: 15px; }
.g-verdict small { display: block; margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--body); }
.g-verdict.yes { background: rgba(143, 220, 176, .12); border: 1px solid rgba(143, 220, 176, .4); color: var(--up); }
.g-verdict.no { background: rgba(255, 154, 163, .1); border: 1px solid rgba(255, 154, 163, .36); color: var(--down); }
.g-verdict.maybe { background: rgba(217, 189, 138, .12); border: 1px solid var(--line); color: var(--gold-hi); }

@media (max-width: 980px) {
  .worth-grid, .worth-tools, .grade-body { grid-template-columns: 1fr; }
  .ladders { grid-template-columns: 1fr; }
  .obs-head .prov { justify-content: flex-start; }
}

/* src/css/binder.css */
/* Act II: the binder */
.act--binder { overflow: hidden; background: var(--ink); }
.binder-stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 52px); margin-bottom: 18px; }
.ring { position: relative; width: 104px; height: 104px; flex: none; --p: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(242, 233, 218, .12); stroke-width: 6; }
.ring-fill { fill: none; stroke: var(--gold-hi); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset 1s var(--ease); filter: drop-shadow(0 0 6px rgba(243, 220, 170, .6)); }
.ring-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-in b { font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1; color: var(--gold-hi); }
.ring-in span { font-size: 12px; color: var(--muted); }
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 44px); }
.stat-row dt { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.stat-row dd { margin-top: 4px; font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--paper); }

.binder-stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(4px, 1.4vw, 18px); max-width: 1040px; margin-inline: auto; }
.page-nav { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; background: rgba(19, 19, 19, .8); color: var(--gold-hi); transition: background-color .25s, opacity .25s, transform .25s var(--ease); }
.page-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.page-nav:hover:not(:disabled) { background: rgba(217, 189, 138, .16); transform: scale(1.06); }
.page-nav:disabled { opacity: .3; cursor: default; }

.book { position: relative; width: 100%; aspect-ratio: 1200 / 1072; perspective: 2600px; perspective-origin: 50% 40%; }
.book-img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .75)); pointer-events: none; }
.page, .leaf-face { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4cqw; align-content: start; }
.page { position: absolute; top: 18.4%; width: 37.6%; container-type: inline-size; }
.page--l { left: 7.1%; }
.page--r { left: 55.3%; }
.page::before { content: ""; position: absolute; inset: -3.4cqw; border-radius: 3cqw; background: linear-gradient(135deg, rgba(226, 209, 180, .07), rgba(226, 209, 180, .02) 40%, rgba(226, 209, 180, .05)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); pointer-events: none; }

.pocket { position: relative; aspect-ratio: 5 / 7; border-radius: 5%; background: rgba(8, 8, 20, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: box-shadow .3s, transform .3s var(--ease); }
.pocket::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .07) 100%); }
.pocket > .tc { position: absolute; left: 4%; top: 4%; width: 92%; }
.pocket.is-owned { cursor: pointer; }
.pocket.is-owned:hover, .pocket.is-owned:focus-visible { transform: translateY(-3%) scale(1.03); z-index: 4; box-shadow: inset 0 0 0 1px rgba(243, 220, 170, .5), 0 14px 30px rgba(0, 0, 0, .6); }
.pocket.is-current { box-shadow: inset 0 0 0 1px var(--violet), 0 0 22px rgba(226, 209, 180, .5); }
.ghost { position: absolute; inset: 4%; display: grid; place-content: center; gap: 2px; border: 1px dashed rgba(217, 189, 138, .34); border-radius: 5%; background: none; text-align: center; color: var(--muted); transition: border-color .25s, background-color .25s, box-shadow .25s; }
.ghost b { font-family: var(--display); font-weight: 700; font-size: clamp(10px, 1.25vw, 16px); letter-spacing: .06em; color: rgba(217, 189, 138, .75); }
.ghost span { font-size: clamp(8px, .8vw, 10.5px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ghost:hover { border-color: var(--gold); background: rgba(217, 189, 138, .06); }
.pocket.is-loose .ghost { border-color: var(--violet); background: rgba(178, 146, 120, .1); color: var(--violet); }
.pocket.is-wanted .ghost { border-style: solid; border-color: var(--gold-hi); background: rgba(217, 189, 138, .1); box-shadow: 0 0 20px rgba(243, 220, 170, .22); color: var(--gold-hi); }
.pocket.is-target { animation: pocket-pulse 1.1s ease-in-out infinite; }
.pocket.is-hot { transform: scale(1.06); box-shadow: 0 0 0 2px var(--gold-hi), 0 0 34px rgba(243, 220, 170, .7); z-index: 4; }
@keyframes pocket-pulse { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(243, 220, 170, .5), 0 0 0 rgba(243, 220, 170, 0); } 50% { box-shadow: inset 0 0 0 1px var(--gold-hi), 0 0 26px rgba(243, 220, 170, .55); } }
.pocket.is-lit::before { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 244, 214, .85) 50%, transparent 70%); background-size: 280% 100%; mix-blend-mode: screen; animation: lit 1.1s var(--ease) forwards; }
@keyframes lit { from { background-position: 130% 0; opacity: 1; } to { background-position: -40% 0; opacity: 0; } }

/* The turning leaf */
.leaf { position: absolute; left: 55.3%; top: 18.4%; z-index: 6; width: 37.6%; aspect-ratio: 1000 / 1381; container-type: inline-size; transform-origin: -14.3% 50%; transform-style: preserve-3d; pointer-events: none; }
.leaf-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf-face::before { content: ""; position: absolute; inset: -9cqw -6cqw; z-index: -1; border-radius: 3cqw; background: linear-gradient(135deg, #1f1e1c 0%, #171615 50%, #111110 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 50px rgba(0, 0, 0, .6); }
.leaf-face::after { content: ""; position: absolute; inset: -9cqw -6cqw; border-radius: 3cqw; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 40%); opacity: var(--shade, 0); }
.leaf-back { transform: rotateY(180deg); }
.leaf-back::after { background: linear-gradient(270deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 40%); }

/* Tray of loose cards */
.tray { margin-top: clamp(10px, 2vw, 26px); text-align: center; }
.tray-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 2.4vw, 28px); margin-top: 22px; min-height: 150px; }
.tray-item { position: relative; width: clamp(84px, 9vw, 116px); cursor: grab; touch-action: none; }
.tray-item:active { cursor: grabbing; }
.tray-item > .tc { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .6)); }
.tray-item small { display: block; margin-top: 10px; font-size: 12px; line-height: 1.3; color: var(--body); }
.tray-item .badge { position: absolute; top: -10px; left: 50%; z-index: 5; transform: translateX(-50%); padding: 3px 9px; border-radius: 999px; background: var(--gold); color: #1a1307; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 0 16px rgba(217, 189, 138, .5); }
.tray-empty { margin-top: 18px; font-family: var(--italic); font-style: italic; font-size: 22px; color: var(--violet); }

@media (max-width: 720px) {
  .binder-stage { grid-template-columns: 1fr; }
  .page-nav { position: absolute; bottom: -8px; z-index: 7; width: 44px; height: 44px; }
  .page-nav--prev { left: 26%; }
  .page-nav--next { right: 26%; }
  .book { width: 118%; margin-left: -9%; }
  .stat-row { justify-content: center; gap: 14px 22px; }
  .stat-row dd { font-size: 16px; }
}

/* src/css/trade.css */
/* Act III: the trade scales */
@property --tilt { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.act--trade { background: radial-gradient(50% 36% at 50% 46%, rgba(217, 189, 138, .09), transparent 70%), var(--ink-2); }
.trade-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 44px); align-items: start; }
.trade-side { padding: 20px; border: 1px solid var(--line-soft); border-radius: 22px; background: rgba(19, 19, 19, .7); }
.trade-list { display: grid; gap: 8px; margin-top: 14px; }
.t-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(242, 233, 218, .03); text-align: left; transition: border-color .25s, background-color .25s, transform .25s var(--ease); }
.t-row:hover { border-color: rgba(242, 233, 218, .32); transform: translateX(2px); }
.t-row.is-on { border-color: var(--gold); background: rgba(217, 189, 138, .13); }
.t-row .t-thumb { width: 38px; }
.t-row b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-row small { display: block; font-size: 12px; color: var(--muted); }
.t-row small.is-match { color: var(--teal); font-weight: 600; }
.t-row .t-price { font-size: 14px; font-weight: 600; color: var(--gold-hi); }
.t-row .t-mark { display: grid; place-items: center; width: 22px; height: 22px; margin-left: 8px; border-radius: 50%; border: 1px solid var(--line); font-size: 14px; line-height: 1; color: var(--gold-hi); }
.t-row.is-on .t-mark { background: var(--gold); color: #1a1307; border-color: var(--gold); }
.t-end { display: flex; align-items: center; }

/* The scales */
.scales { --tilt: 0deg; position: relative; width: min(100%, 520px); aspect-ratio: 1 / .92; margin-inline: auto; container-type: inline-size; }
.scales-post { position: absolute; left: 50%; top: 13cqw; bottom: 9cqw; width: 2.6cqw; transform: translateX(-50%); border-radius: 2cqw; background: linear-gradient(90deg, #6e5220 0%, #f0cf7a 35%, #fff3c9 50%, #caa24a 70%, #5c4317 100%); box-shadow: 0 0 4cqw rgba(217, 189, 138, .25); }
.scales-top { position: absolute; left: 50%; top: 2cqw; z-index: 3; width: 14cqw; aspect-ratio: 1; transform: translateX(-50%); display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2a2140, #0f0c18); border: .5cqw solid var(--gold); box-shadow: 0 0 5cqw rgba(217, 189, 138, .4); }
.scales-top img { width: 62%; height: auto; }
.scales-foot { position: absolute; left: 50%; bottom: 2cqw; width: 42cqw; height: 9cqw; transform: translateX(-50%); border-radius: 50% 50% 14% 14% / 80% 80% 20% 20%; background: linear-gradient(180deg, #f0cf7a 0%, #9a742c 45%, #4a3612 100%); box-shadow: 0 3cqw 6cqw rgba(0, 0, 0, .6); }
.beam { position: absolute; left: 10cqw; right: 10cqw; top: 15cqw; z-index: 2; height: 0; transform: rotate(var(--tilt)); transform-origin: 50% 0; }
.beam-bar { position: absolute; left: -2cqw; right: -2cqw; top: -1.2cqw; height: 2.4cqw; border-radius: 2cqw; background: linear-gradient(180deg, #fff3c9 0%, #f0cf7a 30%, #9a742c 75%, #5c4317 100%); box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .5); }
.pan { position: absolute; top: 0; width: 36cqw; height: 46cqw; transform-origin: 50% 0; }
.pan--l { left: 0; transform: translateX(-50%) rotate(calc(var(--tilt) * -1)); }
.pan--r { right: 0; transform: translateX(50%) rotate(calc(var(--tilt) * -1)); }
.pan-chain { position: absolute; left: 0; right: 0; top: 0; height: 32cqw; opacity: .9;
  background: linear-gradient(to bottom right, transparent calc(50% - .25cqw), #e2c27a calc(50% - .25cqw), #e2c27a calc(50% + .25cqw), transparent calc(50% + .25cqw)) left top / 50% 100% no-repeat,
              linear-gradient(to bottom left, transparent calc(50% - .25cqw), #e2c27a calc(50% - .25cqw), #e2c27a calc(50% + .25cqw), transparent calc(50% + .25cqw)) right top / 50% 100% no-repeat; }
.pan-dish { position: absolute; left: -1cqw; right: -1cqw; top: 32cqw; height: 6cqw; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(180deg, #fff3c9 0%, #f0cf7a 16%, #9a742c 62%, #4a3612 100%); box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .55); }
.pan-dish::before { content: ""; position: absolute; left: 0; right: 0; top: -.5cqw; height: 1.2cqw; border-radius: 50%; background: #fff3c9; }
.pan-cards { position: absolute; left: 0; right: 0; top: 0; height: 32cqw; display: flex; align-items: flex-end; justify-content: center; padding-bottom: .4cqw; }
.pan-cards .tc { width: 12.5cqw; flex: none; margin-inline: -2.2cqw; filter: drop-shadow(0 1cqw 1.6cqw rgba(0, 0, 0, .6)); }
.pan-cards .tc:nth-child(odd) { transform: rotate(-5deg); }
.pan-cards .tc:nth-child(even) { transform: rotate(4deg) translateY(-.8cqw); }
.pan-cards .tc:only-child { transform: none; }
.pan-total { position: absolute; left: 50%; top: 40cqw; transform: translateX(-50%); padding: .8cqw 2.4cqw; border-radius: 999px; background: rgba(13, 13, 13, .9); border: 1px solid var(--line); font-family: var(--display); font-size: max(13px, 3.4cqw); font-weight: 700; white-space: nowrap; color: var(--gold-hi); }
.pan-total::before { content: attr(data-label); display: block; font-family: var(--sans); font-size: max(10px, 2cqw); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-align: center; color: var(--muted); }

.verdict { display: grid; justify-items: center; gap: 8px; max-width: 640px; margin: clamp(8px, 2vw, 22px) auto 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 22px; background: rgba(19, 19, 19, .8); text-align: center; }
.verdict h3 { font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; color: var(--paper); }
.verdict h3 b { color: var(--gold-hi); }
.verdict p { font-size: 15px; color: var(--body); }
.verdict .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.verdict .chips span { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-soft); color: var(--body); }
.verdict .chips .is-match { border-color: rgba(143, 227, 208, .5); color: var(--teal); background: rgba(143, 227, 208, .08); }
.verdict.fair { border-color: rgba(143, 220, 176, .5); box-shadow: 0 0 40px rgba(143, 220, 176, .12); }
.verdict.fair h3 b { color: var(--up); }

@media (max-width: 980px) {
  .trade-grid { grid-template-columns: 1fr 1fr; }
  .scales { grid-column: 1 / -1; grid-row: 1; margin-bottom: 8px; }
}
@media (max-width: 560px) { .trade-grid { grid-template-columns: 1fr; } .scales { grid-row: auto; } }

/* src/css/hunt.css */
/* Act IV: the hunt */
.act--hunt { background: radial-gradient(46% 40% at 24% 50%, rgba(178, 146, 120, .09), transparent 70%), var(--ink); }
.hunt-grid { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.map-card, .hunt-panel { border: 1px solid var(--line-soft); border-radius: 26px; background: var(--panel); }
.map-card { padding: clamp(16px, 2vw, 24px); }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.map-wrap { position: relative; width: 100%; aspect-ratio: 70 / 100; max-height: 660px; margin-inline: auto; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-nodes { position: absolute; inset: 0; }
.node { --c: var(--manifested); position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border: 0; border-radius: 50%; background: none; }
.node::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(9, 9, 9, .9), 0 0 14px var(--c); transition: background-color .4s; }
.node::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 1.5px solid var(--c); opacity: 0; }
.node[data-state="manifested"]::after, .node[data-state="echo"]::after { animation: node-ring 2.6s ease-out infinite; }
.node.is-ping::after { animation: node-ring 1s ease-out 3; }
.node.is-out { opacity: .32; }
.node.is-best::before { width: 14px; height: 14px; margin: -7px 0 0 -7px; box-shadow: 0 0 0 2px rgba(9, 9, 9, .9), 0 0 0 4px var(--gold-hi), 0 0 20px var(--gold-hi); }
@keyframes node-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(4.2); opacity: 0; } }
.map-tip { position: absolute; z-index: 3; left: 0; top: 0; min-width: 170px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(13, 13, 13, .96); font-size: 13px; line-height: 1.4; pointer-events: none; box-shadow: 0 16px 40px rgba(0, 0, 0, .65); }
.map-tip b { display: block; color: var(--paper); }
.map-tip small { color: var(--muted); }
.map-tip em { font-style: normal; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--body); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.feed { display: grid; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); min-height: 230px; align-content: start; }
.feed li { --c: var(--manifested); display: grid; grid-template-columns: 10px 1fr auto; gap: 2px 10px; align-items: baseline; padding: 8px 10px; border-radius: 12px; background: rgba(242, 233, 218, .03); font-size: 13px; }
.feed li > i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); transform: translateY(-1px); }
.feed li b { color: var(--c); font-weight: 700; font-family: var(--display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.feed li span { color: var(--paper); }
.feed li small { grid-column: 2 / -1; color: var(--muted); font-size: 12px; }
.feed li time { color: var(--dim); font-size: 12px; white-space: nowrap; }
.feed li:nth-child(n+4) { opacity: .78; }
.feed li:nth-child(n+5) { opacity: .58; }

.hunt-panel { padding: clamp(18px, 2.4vw, 30px); display: grid; gap: 22px; }
.product { display: grid; grid-template-columns: 148px 1fr; gap: 18px; align-items: center; }
.product img { width: 148px; height: auto; border-radius: 14px; box-shadow: 0 14px 30px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); }
.product h3 { margin: 6px 0 10px; font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.15; color: var(--paper); }
.limit { padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(217, 189, 138, .05); }
.limit-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.limit-out { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--gold-hi); }
.limit-scale { position: relative; display: flex; justify-content: space-between; margin-top: 2px; padding-top: 20px; font-size: 12px; color: var(--dim); }
.limit-rrp { position: absolute; top: 4px; left: var(--rrp-x, 12%); transform: translateX(-28%); color: var(--violet); white-space: nowrap; }
.limit-rrp::before { content: ""; position: absolute; left: 28%; top: -10px; width: 1px; height: 9px; background: var(--violet); }
.radar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.radar-row select { height: 36px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(19, 19, 19, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23d9bd8a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 10px no-repeat; color: var(--paper); font-size: 14px; -webkit-appearance: none; appearance: none; }

.offers { display: grid; gap: 8px; }
.offer { --c: var(--manifested); display: grid; grid-template-columns: minmax(0, 1.5fr) auto auto; gap: 4px 16px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 16px; background: rgba(242, 233, 218, .03); transition: border-color .4s, background-color .4s, opacity .4s, box-shadow .4s; }
.offer .o-name b { display: block; font-weight: 600; color: var(--paper); }
.offer .o-name small { color: var(--muted); font-size: 12.5px; }
.offer .o-state { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; font-family: var(--display); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.offer .o-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.offer .o-price { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }
.offer .o-price strong { display: block; font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--paper); }
.offer .o-rrp { min-width: 86px; padding: 6px 10px; border-radius: 10px; background: rgba(242, 233, 218, .05); text-align: center; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--body); }
.offer .o-rrp.at { color: var(--up); background: rgba(143, 220, 176, .1); }
.offer .o-rrp.over { color: var(--gold-hi); background: rgba(217, 189, 138, .1); }
.offer .o-rrp.far { color: var(--down); background: rgba(255, 154, 163, .1); }
.offer.is-match { border-color: var(--gold); background: rgba(217, 189, 138, .1); box-shadow: 0 0 30px rgba(243, 220, 170, .12); }
.offer.is-match .o-price strong { color: var(--gold-hi); }
.offer.is-off { opacity: .62; }
.offer .o-flag { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--gold-hi); }
.hunt-match { margin-top: -8px; padding: 12px 14px; border-radius: 14px; background: rgba(178, 146, 120, .1); border: 1px solid rgba(226, 209, 180, .28); font-size: 14px; color: #eadfcd; }
.hunt-match b { color: var(--paper); }

.askprice { padding-top: 18px; border-top: 1px solid var(--line-soft); }
.ask-row { display: grid; grid-template-columns: auto 110px 1fr; gap: 8px 12px; align-items: center; margin-top: 10px; }
.ask-pound { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--gold-hi); }
#ask-price { width: 110px; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(13, 13, 13, .8); font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--paper); }
#ask-price:focus { outline: none; border-color: var(--gold-hi); box-shadow: 0 0 0 4px rgba(217, 189, 138, .16); }
.ask-verdict { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.4; border: 1px solid var(--line-soft); color: var(--body); }
.ask-verdict b { display: block; font-size: 15px; }
.ask-verdict.good { border-color: rgba(143, 220, 176, .45); background: rgba(143, 220, 176, .08); } .ask-verdict.good b { color: var(--up); }
.ask-verdict.ok { border-color: var(--line); background: rgba(217, 189, 138, .08); } .ask-verdict.ok b { color: var(--gold-hi); }
.ask-verdict.bad { border-color: rgba(255, 154, 163, .42); background: rgba(255, 154, 163, .07); } .ask-verdict.bad b { color: var(--down); }

.rhythm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 10px 0 8px; max-width: 420px; }
.rhythm-grid span { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.rhythm-grid i { display: block; height: 14px; border-radius: 4px; background: rgba(226, 209, 180, calc(.06 + var(--v) * .22)); }

@media (max-width: 980px) { .hunt-grid { grid-template-columns: 1fr; } .map-wrap { max-width: 440px; } }
@media (max-width: 560px) {
  .product { grid-template-columns: 96px 1fr; } .product img { width: 96px; }
  .offer { grid-template-columns: 1fr auto; } .offer .o-rrp { grid-column: 1 / -1; justify-self: start; }
  .ask-row { grid-template-columns: auto 110px; } .ask-verdict { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .node::after { animation: none !important; } }

/* The map follows you down the panel on tall desktop screens */
@media (min-width: 981px) and (min-height: 880px) { .map-card { position: sticky; top: calc(var(--header) + 14px); } }
.act--hunt .act-bg { opacity: .16; }
.act--trade .act-bg { opacity: .14; }

/* Legend buttons, offer states, live match, feed entrance */
.legend-btn { display: inline-flex; align-items: center; gap: 7px; padding: 4px 2px; border: 0; background: none; font-size: 12px; color: var(--body); }
.legend-btn:hover { color: var(--paper); }
.legend-note { margin-top: 8px; min-height: 2.9em; }
.offer .o-price span { display: block; }
.offer .o-flag.is-quiet { font-weight: 500; color: var(--muted); }
.offer.is-flash { animation: offer-flash 1.3s ease-out; }
@keyframes offer-flash { 0% { box-shadow: 0 0 0 2px var(--c), 0 0 34px var(--c); } 100% { box-shadow: 0 0 0 0 transparent; } }
.offers-more { text-align: center; }
.hunt-match { transition: background-color .5s, border-color .5s, color .5s; }
.hunt-match.is-live { background: rgba(217, 189, 138, .1); border-color: var(--gold); color: var(--paper); }
.feed li:first-child { animation: feed-in .55s var(--ease); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-8px); } }
.reduce .node::after, .reduce .feed li:first-child { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .feed li:first-child, .offer.is-flash { animation: none !important; } }

/* src/css/rrp.css */
/* Behind the hunt: the RRP engine (evidence gate, FateFind value, True Price) and the FateMatch presets */
.act--rrp { background: radial-gradient(50% 44% at 20% 28%, rgba(217, 189, 138, .09), transparent 70%), radial-gradient(40% 40% at 86% 72%, rgba(178, 146, 120, .1), transparent 70%), var(--ink); }
body.kid .act--rrp { display: none; }
.rrp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 30px); align-items: start; }
.gate-card, .value-card { padding: clamp(18px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(180deg, rgba(24, 24, 26, .92), rgba(19, 19, 19, .92)); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }

/* ---------- The evidence gate ---------- */
.gate-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.gate-picks button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(242, 233, 218, .03); text-align: left; font-size: 13.5px; line-height: 1.25; color: var(--body); transition: border-color .25s, background-color .25s, color .25s; }
.gate-picks button:hover { border-color: rgba(242, 233, 218, .32); }
.gate-picks button.is-on { border-color: var(--gold); background: rgba(217, 189, 138, .12); color: var(--paper); }
.gate-picks em { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 700; line-height: 1; }
.gate-picks em:empty { border: 1px dashed var(--line); }
.gate-picks [data-v="official"] em { background: var(--gold-hi); color: #1a1307; }
.gate-picks [data-v="ref"] em { background: rgba(226, 209, 180, .25); color: var(--violet); }
.gate-picks [data-v="held"] em { background: rgba(210, 182, 111, .28); color: var(--whisper); }
.gate-picks [data-v="no"] em { background: rgba(255, 154, 163, .16); color: var(--down); }
.gate-seen { margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 14px; }
.gate-seen small { display: block; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.gate-seen b { display: block; margin-top: 2px; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--paper); }
.gate-steps { display: grid; gap: 3px; margin-top: 12px; }
.gate-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 54px; padding: 7px 10px; border-radius: 12px; transition: background-color .3s, opacity .3s; }
.gate-steps i { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 700; line-height: 1; color: var(--muted); transition: background-color .3s, border-color .3s, color .3s; }
.gate-steps b { display: block; font-size: 14px; font-weight: 600; color: var(--paper); }
.gate-steps small { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.gate-steps .is-pass i { border-color: transparent; background: rgba(143, 220, 176, .18); color: var(--up); }
.gate-steps .is-pass small { color: var(--body); }
.gate-steps .is-fail { background: rgba(255, 154, 163, .08); animation: gate-stop .4s var(--ease); }
.gate-steps .is-fail i { border-color: transparent; background: var(--down); color: #2a0d12; }
.gate-steps .is-fail small { color: #ffc4c9; }
.gate-steps .is-flag { background: rgba(210, 182, 111, .08); }
.gate-steps .is-flag i { border-color: transparent; background: var(--whisper); color: #241a05; }
.gate-steps .is-flag small { color: #ecd9a6; }
.gate-steps .is-skip { opacity: .42; }
@keyframes gate-stop { 30% { transform: translateX(-5px); } 60% { transform: translateX(4px); } }
.reduce .gate-steps .is-fail { animation: none; }
.gate-verdict { display: grid; gap: 4px; align-content: center; min-height: 104px; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 16px; transition: border-color .3s, background-color .3s; }
.gate-verdict b { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: .02em; color: var(--paper); }
.gate-verdict span { font-size: 14px; line-height: 1.5; color: var(--body); }
.gate-verdict.is-official { border-color: var(--gold); background: rgba(217, 189, 138, .1); box-shadow: 0 0 40px rgba(217, 189, 138, .12); }
.gate-verdict.is-official b { color: var(--gold-hi); }
.gate-verdict.is-ref { border-color: rgba(226, 209, 180, .5); background: rgba(226, 209, 180, .07); }
.gate-verdict.is-ref b { color: var(--violet); }
.gate-verdict.is-held { border-color: rgba(210, 182, 111, .55); background: rgba(210, 182, 111, .07); }
.gate-verdict.is-held b { color: var(--whisper); }
.gate-verdict.is-no { border-color: rgba(255, 154, 163, .4); background: rgba(255, 154, 163, .05); }
.gate-verdict.is-no b { color: var(--down); }
.gate-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-top: 12px; }
.gate-tally { flex: 1 1 260px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.gate-tally b { font-weight: 600; color: var(--paper); }

/* ---------- FateFind: value against RRP ---------- */
.value-card .seg { margin-top: 20px; }
.value-list { display: grid; gap: 6px; margin-top: 14px; }
.way button { display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(64px, .8fr) minmax(98px, auto); align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(242, 233, 218, .03); text-align: left; transition: border-color .25s, background-color .25s; }
.way button:hover { border-color: rgba(242, 233, 218, .3); }
.way.is-on button { border-color: var(--gold); background: rgba(217, 189, 138, .1); }
.w-name b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.25; color: var(--paper); }
.w-name small { display: block; font-size: 12px; color: var(--muted); }
.w-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.w-tag { padding: 2px 8px; border: 1px solid var(--line-soft); border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; color: var(--muted); }
.w-tag.is-pick { border-color: transparent; background: var(--gold-hi); color: #1a1307; }
.w-tag.is-ref { border-color: rgba(226, 209, 180, .4); color: var(--violet); }
.w-price { font-family: var(--display); font-size: 17px; font-weight: 700; white-space: nowrap; color: var(--paper); }
.w-meter { position: relative; height: 10px; border-radius: 999px; background: rgba(242, 233, 218, .06); }
.w-meter::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--gold); }
.w-meter i { position: absolute; top: 0; bottom: 0; width: var(--w); min-width: 3px; border-radius: 999px; }
.w-meter.over i { left: 50%; background: linear-gradient(90deg, var(--gold), var(--down)); }
.w-meter.under i { right: 50%; background: linear-gradient(270deg, var(--gold), var(--up)); }
.w-pct { text-align: right; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--body); }
.w-pct.at { color: var(--up); }
.w-pct.over { color: var(--gold-hi); }
.w-pct.far { color: var(--down); }
.value-key { margin-top: 8px; font-size: 12px; text-align: right; color: var(--dim); }
.value-key i { display: inline-block; width: 1px; height: 12px; margin-right: 8px; vertical-align: -2px; background: var(--gold); }

/* ---------- True Price ladder ---------- */
.tp { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(9, 9, 9, .5); }
.tp-steps { display: grid; margin: 8px 0 0; }
.tp-steps > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 2px; border-bottom: 1px dashed var(--line-soft); }
.tp-steps dt { font-size: 13.5px; font-weight: 600; color: var(--body); }
.tp-steps dt small { display: block; margin-top: 1px; font-size: 12px; font-weight: 400; line-height: 1.3; color: var(--dim); }
.tp-steps dd { text-align: right; font-family: var(--display); font-size: 17px; font-weight: 700; white-space: nowrap; color: var(--paper); }
.tp-steps dd small { display: block; margin-top: 1px; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--body); }
.tp-steps .at dd small, .tp-steps .is-diff.at dd { color: var(--up); }
.tp-steps .over dd small, .tp-steps .is-diff.over dd { color: var(--gold-hi); }
.tp-steps .far dd small, .tp-steps .is-diff.far dd { color: var(--down); }
.tp-steps .is-total { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--gold); border-radius: 12px; background: rgba(217, 189, 138, .08); }
.tp-steps .is-total dd { font-size: 21px; }
.tp-steps .is-total.unknown { border-style: dashed; border-color: var(--whisper); background: none; }
.tp-steps .is-total.unknown dd, .tp-steps .is-total.unknown dd small { color: var(--whisper); }
.tp .note { margin-top: 12px; color: var(--body); }

/* ---------- The rules ---------- */
.rrp-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(22px, 3vw, 36px); }
.rrp-rules li { padding: 18px; border: 1px solid var(--line-soft); border-radius: 18px; background: rgba(242, 233, 218, .025); }
.rrp-rules b { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--paper); }
.rrp-rules p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--body); }

/* ---------- FateMatch presets and the offers caption in the hunt ---------- */
.limit-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; }
.limit-presets .cap { margin-right: 4px; }
.limit-presets button { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(217, 189, 138, .05); font-size: 12px; font-weight: 600; color: var(--gold-hi); transition: background-color .25s, color .25s; }
.limit-presets button:hover { background: rgba(217, 189, 138, .16); }
.limit-presets button.is-on { border-color: var(--gold); background: var(--gold); color: #1a1307; }
.offers-cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 10px; }
.offers-cap small { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.offers-cap a { color: var(--gold-hi); }

@media (max-width: 1000px) { .rrp-grid { grid-template-columns: minmax(0, 1fr); } .rrp-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .rrp-rules, .gate-picks { grid-template-columns: minmax(0, 1fr); }
  .way button { grid-template-columns: minmax(0, 1fr) auto; }
  .w-meter { grid-column: 1; }
  .w-pct { grid-column: 2; }
}

/* src/css/market.css */
/* Intermission: Fate Market */
.act--market { background: radial-gradient(58% 46% at 72% 44%, rgba(143, 227, 208, .06), transparent 70%), var(--ink-2); }
.market-grid { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.62fr); gap: clamp(18px, 2.6vw, 36px); align-items: stretch; }
.market-index { display: flex; flex-direction: column; padding: clamp(18px, 2.2vw, 28px); border: 1px solid var(--line-soft); border-radius: 26px; background: var(--panel); min-width: 0; }
.market-value { margin-top: 10px; font-family: var(--display); font-size: clamp(44px, 4.8vw, 62px); font-weight: 700; line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums lining-nums; }
.market-move { margin-top: 8px; min-height: 1.6em; font-size: 14px; color: var(--muted); }
.market-index .up, .treemap-note .up { color: var(--up); font-weight: 600; }
.market-index .down, .treemap-note .down { color: var(--down); font-weight: 600; }
#market-chart { width: 100%; height: 132px; margin: 14px 0 12px; touch-action: pan-y; cursor: crosshair; }
.market-index .seg { align-self: flex-start; }
.movers-cap { margin-top: 24px; }
.movers { display: grid; gap: 4px; margin-top: 10px; }
.movers button { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 62px; gap: 10px; align-items: center; width: 100%; padding: 6px 8px; border: 1px solid transparent; border-radius: 12px; background: none; text-align: left; transition: background-color .25s, border-color .25s; }
.movers button:hover { background: rgba(242, 233, 218, .05); border-color: var(--line-soft); }
.mv-thumb { width: 28px; }
.mv-name { font-size: 14px; font-weight: 600; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-move { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mv-price { font-size: 13px; text-align: right; color: var(--gold-hi); }

.treemap-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.treemap { position: relative; flex: 1; min-height: 460px; border: 1px solid var(--line-soft); border-radius: 24px; background: var(--panel); overflow: hidden; }
.tile { position: absolute; padding: 3px; }
.tile button { --bg: rgba(242, 233, 218, .08); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 4px; width: 100%; height: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--bg); color: var(--paper); text-align: left; overflow: hidden; transition: background-color .7s var(--ease), box-shadow .25s, transform .25s var(--ease); }
.tile button:hover, .tile button:focus-visible { box-shadow: inset 0 0 0 1.5px rgba(242, 233, 218, .7); transform: scale(.985); }
.tile b { font-family: var(--display); font-size: clamp(13px, 1.25vw, 17px); font-weight: 600; line-height: 1.15; letter-spacing: .01em; }
.tile span { font-size: clamp(18px, 2vw, 28px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.tile small { font-size: 11.5px; color: rgba(242, 233, 218, .72); }
.tile.is-s button { padding: 8px 9px; }
.tile.is-s b { font-size: 11px; }
.tile.is-s span { font-size: 14px; }
.tile.is-s small { display: none; }
.tile.is-xs button { padding: 0; align-items: center; justify-content: center; }
.tile.is-xs b, .tile.is-xs small, .tile.is-xs span { display: none; }
.treemap-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; }
.treemap-note { min-height: 1.5em; font-size: 14px; color: var(--body); }
.treemap-note b { color: var(--paper); }
.treemap-key { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.treemap-key i { width: 150px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(255, 154, 163, .72), rgba(242, 233, 218, .12), rgba(143, 220, 176, .72)); }

@media (max-width: 980px) { .market-grid { grid-template-columns: 1fr; } .treemap { min-height: 0; aspect-ratio: 5 / 4; flex: none; } }
@media (max-width: 560px) { .treemap { aspect-ratio: 4 / 5; } .treemap-key i { width: 96px; } }

/* src/css/ledger.css */
/* The investor side: the ledger hero, the sample ticker, the portfolio and the closing promises */

/* ---------- Ledger hero ---------- */
.ledger-hero { position: relative; display: grid; align-content: center; min-height: 100vh; min-height: 100svh; padding-top: calc(var(--header) + 28px); overflow: hidden; isolation: isolate; background: radial-gradient(56% 60% at 74% 44%, rgba(217, 189, 138, .13), transparent 70%), radial-gradient(46% 50% at 8% 86%, rgba(178, 146, 120, .12), transparent 70%), #090909; }
.ledger-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(217, 189, 138, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(217, 189, 138, .07) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 70% at 64% 44%, #000 20%, transparent 78%); mask-image: radial-gradient(70% 70% at 64% 44%, #000 20%, transparent 78%); }
.ledger-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ledger-copy .hero-sub { max-width: 540px; }
.lookup { max-width: 540px; }
.ledger-stage { position: relative; display: grid; place-items: center; min-height: min(560px, 70vh); }
.ledger-card { width: min(290px, 60vw, 44vh); }
.ledger-card .tc { filter: drop-shadow(0 34px 60px rgba(0, 0, 0, .7)) drop-shadow(0 0 30px rgba(243, 220, 170, .18)); }
.ledger-panel { position: absolute; right: 0; bottom: 4%; width: min(300px, 84%); padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(16, 16, 17, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.lp-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1; color: var(--paper); }
.lp-value small { font-family: var(--sans); font-size: 12.5px; font-weight: 600; }
.lp-value .up, .ledger-panel .up { color: var(--up); } .lp-value .down { color: var(--down); }
.lp-spark { display: block; width: 100%; height: 46px; margin-top: 8px; overflow: visible; }
.lp-spark polyline { fill: none; stroke: var(--gold-hi); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; }
.lp-stats { display: grid; gap: 8px; margin: 12px 0 0; }
.lp-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.lp-stats dt { font-size: 12px; color: var(--muted); }
.lp-stats dd { margin: 0; font-size: 13px; font-weight: 600; text-align: right; color: var(--paper); }
.lp-note { margin-top: 10px; font-size: 11.5px; color: var(--dim); }

/* ---------- Ticker ---------- */
.ticker { position: relative; margin-top: clamp(26px, 4vw, 48px); overflow: hidden; border-block: 1px solid var(--line-soft); background: rgba(9, 9, 9, .72); }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 60px; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, #090909, transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, #090909, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 80s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .paused .ticker-track { animation-play-state: paused; }
.reduce .ticker-track { animation: none; }
.ticker-run { display: flex; }
.ticker-run span { display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 22px; border-right: 1px solid var(--line-soft); font-size: 13px; white-space: nowrap; color: var(--body); }
.ticker-run b { font-weight: 600; color: var(--paper); }
.ticker-run em { font-style: normal; color: var(--gold-hi); }
.ticker-run .up { color: var(--up); font-style: normal; } .ticker-run .down { color: var(--down); font-style: normal; } .ticker-run .over { color: var(--gold); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-label { position: absolute; left: 0; top: -22px; font-size: 11px; color: var(--dim); }

/* ---------- Portfolio ---------- */
.act--portfolio { background: radial-gradient(46% 40% at 82% 30%, rgba(143, 227, 208, .07), transparent 70%), radial-gradient(40% 40% at 10% 80%, rgba(178, 146, 120, .08), transparent 70%), var(--ink); }
.pf-grid { display: grid; grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 30px); align-items: start; }
.pf-side, .pf-main { padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, rgba(24, 24, 26, .92), rgba(19, 19, 19, .92)); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
.pf-side .seg { display: flex; margin-bottom: 18px; }
.pf-side .seg button { flex: 1; min-width: 0; padding-inline: 8px; }
.pf-value { margin-top: 6px; font-family: var(--display); font-size: clamp(34px, 3.6vw, 48px); font-weight: 700; line-height: 1.05; color: var(--gold-hi); }
.pf-cover { margin-top: 6px; font-size: 13px; color: var(--muted); }
.pf-split { display: grid; margin-top: 16px; }
.pf-split > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14px; color: var(--body); }
.pf-split span { display: inline-flex; align-items: center; gap: 8px; }
.pf-split i { width: 10px; height: 10px; border-radius: 3px; }
.pf-split .is-add i { background: repeating-linear-gradient(45deg, rgba(226, 209, 180, .9) 0 2px, rgba(178, 146, 120, .25) 2px 4px); }
.pf-split .is-rem i { border: 1.5px solid var(--down); transform: rotate(45deg) scale(.8); border-radius: 1px; }
.pf-split .is-mkt i { background: linear-gradient(90deg, rgba(143,227,208,.8) 50%, rgba(255,154,163,.8) 50%); }
.pf-split .is-add b { color: var(--violet); }
.pf-split .is-rem b { color: var(--down); }
.pf-split .is-mkt.up b { color: var(--up); } .pf-split .is-mkt.down b { color: var(--down); }
.pf-split .is-total { border-bottom: 0; font-weight: 600; color: var(--paper); }
.pf-split .is-total b { font-family: var(--display); font-size: 17px; color: var(--gold-hi); }
.pf-verdict { margin-top: 14px; padding: 12px 14px; border-left: 2px solid var(--gold); border-radius: 0 12px 12px 0; background: rgba(217, 189, 138, .07); font-size: 14px; line-height: 1.55; color: var(--paper); }
.pf-verdict b { color: var(--gold-hi); }
.pf-chart-wrap { position: relative; height: clamp(240px, 28vw, 330px); }
#pf-chart { display: block; width: 100%; height: 100%; border-radius: 10px; cursor: crosshair; touch-action: pan-y; }
#pf-chart:focus-visible { outline-offset: 4px; }
.pf-tip { position: absolute; z-index: 2; display: grid; gap: 2px; min-width: 190px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(16, 16, 17, .96); box-shadow: 0 14px 34px rgba(0, 0, 0, .55); font-size: 12.5px; color: var(--body); pointer-events: none; }
.pf-tip > b { font-size: 12px; color: var(--gold); }
.pf-tip span b { color: var(--paper); }
.pf-tip .t-mkt b { color: #8fe3d0; } .pf-tip .t-mkt.is-down b { color: var(--down); } .pf-tip .t-add b { color: var(--violet); }
.pf-tip .t-ev { color: var(--gold-hi); }
.pf-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.pf-legend span { display: inline-flex; align-items: center; gap: 7px; }
.pf-legend i { display: inline-block; width: 16px; height: 0; border-top: 2px solid #e1c58c; }
.pf-legend .l-mkt i { width: 16px; height: 10px; border: 0; border-radius: 3px; background: linear-gradient(90deg, rgba(143,227,208,.7) 50%, rgba(255,154,163,.7) 50%); }
.pf-legend .l-add i { height: 10px; border: 0; border-radius: 3px; background: repeating-linear-gradient(45deg, rgba(226, 209, 180, .9) 0 2px, rgba(178, 146, 120, .2) 2px 4px); }
.pf-legend .l-buy i { width: 8px; height: 8px; border: 0; background: #f3dcaa; transform: rotate(45deg); }
.pf-legend .l-sell i { width: 8px; height: 8px; border: 1.5px solid #ff9aa3; transform: rotate(45deg); }
.pf-table-wrap { margin-top: 18px; overflow-x: auto; }
.pf-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pf-table th, .pf-table td { padding: 9px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; font-weight: 400; color: var(--body); white-space: nowrap; }
.pf-table thead th { font-size: 12px; font-weight: 600; color: var(--muted); }
.pf-table tbody th { font-weight: 600; color: var(--paper); white-space: normal; }
.pf-table small { font-size: 11px; font-weight: 600; color: var(--muted); }
.pf-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pf-table .up { color: var(--up); } .pf-table .down { color: var(--down); } .pf-table .over { color: var(--gold-hi); } .pf-table .unk { color: var(--whisper); } .pf-table .dim { color: var(--dim); }
.pf-foot { margin-top: 10px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.pf-foot b { color: var(--paper); }
@media (max-width: 980px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Investor finale ---------- */
.promise-list { display: grid; gap: 12px; }
.promise-list li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(19, 19, 19, .78); font-size: 15px; line-height: 1.55; color: var(--body); }
.promise-list b { display: block; margin-bottom: 2px; font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--gold-hi); }

@media (max-width: 900px) {
  .ledger-grid { grid-template-columns: minmax(0, 1fr); }
  .ledger-stage { min-height: 0; padding-bottom: 150px; }
  .ledger-panel { right: 50%; transform: translateX(50%); bottom: 0; }
}

.ledger-risk { max-width: 540px; margin-top: 14px; padding: 10px 14px; border-left: 2px solid var(--gold); border-radius: 0 10px 10px 0; background: rgba(217, 189, 138, .07); font-size: 14px; line-height: 1.5; color: var(--body); }
.ledger-risk b { color: var(--paper); font-weight: 600; }
.ledger-copy .lookup { margin-top: 22px; }

/* ---------- The price receipt in the ledger hero ---------- */
.ledger-receipt { position: relative; z-index: 1; width: min(340px, 84vw); padding: 18px 18px 14px; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, #f7f0e3, #ebe1ce); color: #2a2218; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(217, 189, 138, .5); transform: rotate(-2.5deg); }
.ledger-receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 12px; background: radial-gradient(circle at 6px 12px, transparent 6px, #ebe1ce 6.5px) 0 0 / 12px 12px repeat-x; }
.lr-head { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px dashed rgba(42, 34, 24, .35); }
.lr-head .cap { color: #8a6a2c; letter-spacing: .22em; }
.lr-head b { font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.15; color: #1c160f; }
.lr-head small { font-size: 12px; color: #6d604d; }
.lr-rows { display: grid; margin: 6px 0 8px; }
.lr-rows li { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto 18px; gap: 8px; align-items: baseline; padding: 5px 0; border-bottom: 1px dotted rgba(42, 34, 24, .22); font-size: 13px; }
.lr-rows li > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6d604d; }
.lr-rows b { font-weight: 600; font-variant-numeric: tabular-nums; color: #1c160f; }
.lr-rows i { font-style: normal; font-weight: 700; text-align: center; }
.lr-rows .is-in i { color: #2f7a52; }
.lr-rows .is-out { opacity: .62; }
.lr-rows .is-out b { text-decoration: line-through; }
.lr-rows .is-out i { color: #a3424c; }
.lr-foot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 2px solid #1c160f; font-size: 13px; color: #4b4032; }
.lr-foot b { font-family: var(--display); font-size: 22px; font-weight: 700; color: #1c160f; }
.lr-note { margin-top: 2px; font-size: 11px; color: #6d604d; }
.ledger-stage { padding-bottom: 40px; }
.ledger-panel { z-index: 2; }

/* ---------- A fixed risk tag on the ticker ---------- */
.ticker-tag { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; padding: 0 16px; border-right: 1px solid var(--line); background: #0d0d0d; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--gold); }
.ticker::before { left: auto; }
@media (max-width: 560px) { .ticker-tag { font-size: 9.5px; padding: 0 10px; } }

/* ---------- The market side issues no buying pick beside market data ---------- */
[data-world="invest"] .value-card { display: none; }
[data-world="invest"] .rrp-grid { grid-template-columns: minmax(0, 1fr); max-width: 820px; }

/* ---------- A neutral guide on the market side ---------- */
.guide-btn img.is-emblem { padding: 13px; object-fit: contain; background: radial-gradient(circle, #1f1d1b, #141414); }
.guide-panel > header img.is-emblem { padding: 6px; object-fit: contain; background: #141414; border: 1px solid var(--line); }

/* Receipt top left, market panel bottom right, overlapping only at the corner */
.ledger-stage { justify-items: start; align-items: start; min-height: 600px; padding-bottom: 0; }
.ledger-receipt { width: min(290px, 84vw); margin: 10px 0 0; }
.ledger-panel { right: 0; bottom: 0; width: min(240px, 44%); }
@media (max-width: 900px) {
  .ledger-stage { justify-items: center; min-height: 0; padding-bottom: 0; }
  .ledger-receipt { margin: 10px auto 0; }
  .ledger-panel { position: relative; right: auto; bottom: auto; transform: none; width: min(340px, 100%); margin-top: 34px; }
}

/* src/css/kit.css */
/* The programme: every current feature, grouped, each opening to its description and its caveat */
.act--kit { background: radial-gradient(46% 36% at 50% 0%, rgba(178, 146, 120, .11), transparent 70%), var(--ink); }
.kit-grid { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); align-items: start; }
.kit-tabs { position: sticky; top: calc(var(--header) + 16px); display: grid; gap: 6px; }
.kit-tabs button { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(242, 233, 218, .03); text-align: left; font-size: 14.5px; font-weight: 600; line-height: 1.25; color: var(--body); transition: border-color .25s, background-color .25s, color .25s; }
.kit-tabs button:hover { border-color: rgba(242, 233, 218, .3); }
.kit-tabs button[aria-selected="true"] { border-color: var(--gold); background: rgba(217, 189, 138, .12); color: var(--paper); }
.kit-tabs em { flex: none; min-width: 26px; padding: 1px 7px; border-radius: 999px; background: rgba(242, 233, 218, .08); font-style: normal; font-size: 12px; font-weight: 700; text-align: center; color: var(--gold-hi); }
.kit-panel { min-height: 520px; padding: clamp(18px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(180deg, rgba(24, 24, 26, .92), rgba(19, 19, 19, .92)); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
.kit-head h3 { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.15; color: var(--paper); }
.kit-head p { max-width: 640px; margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--body); }
.kit-list { display: grid; gap: 6px; margin-top: 20px; }
.kit-item { border: 1px solid var(--line-soft); border-radius: 14px; transition: border-color .25s, background-color .25s; }
.kit-item.is-open { border-color: var(--line); background: rgba(242, 233, 218, .03); }
.kit-q { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 0; border-radius: 14px; background: none; text-align: left; }
.kit-q b { font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--paper); }
.kit-q svg { grid-column: 3; width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.kit-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.kit-tag { padding: 2px 9px; border: 1px solid rgba(143, 227, 208, .4); border-radius: 999px; background: rgba(143, 227, 208, .12); font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--teal); }
.kit-a { padding: 0 14px 16px; }
.kit-a > p { max-width: 720px; font-size: 15px; line-height: 1.65; color: var(--body); }
.kit-points { display: grid; gap: 5px; max-width: 720px; margin-top: 10px; padding-left: 18px; list-style: disc; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.kit-a > .kit-note { margin-top: 12px; padding: 10px 12px; border-left: 2px solid var(--gold); border-radius: 0 10px 10px 0; background: rgba(217, 189, 138, .06); font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.kit-note b { display: block; margin-bottom: 2px; font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.kit-go { margin-top: 10px; }
.kit-source { max-width: 760px; margin: 26px auto 0; text-align: center; }

/* The net-sale calculator, inside its own feature */
.calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; max-width: 520px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(9, 9, 9, .5); }
body.kid .calc { display: none; }
.calc label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--body); }
.calc-in { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(242, 233, 218, .04); }
.calc-in:focus-within { border-color: var(--gold-hi); }
.calc-in i { font-style: normal; color: var(--gold); }
.calc-in input { width: 100%; min-width: 0; border: 0; outline: none; background: none; font-size: 16px; color: var(--paper); -moz-appearance: textfield; appearance: textfield; }
.calc-in input::-webkit-outer-spin-button, .calc-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-in input::placeholder { color: var(--dim); }
.calc-out { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 26px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--body); }
.calc-out b { margin-left: 6px; font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--gold-hi); }
.calc-out b.up { color: var(--up); }
.calc-out b.down { color: var(--down); }
.calc-out small { margin-left: 6px; font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .kit-grid { grid-template-columns: minmax(0, 1fr); }
  .kit-tabs { position: static; display: flex; gap: 8px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .kit-tabs::-webkit-scrollbar { display: none; }
  .kit-tabs button { flex: none; scroll-snap-align: start; }
  .kit-panel { min-height: 0; }
  .kit-q { grid-template-columns: minmax(0, 1fr) 20px; }
  .kit-q svg { grid-column: 2; grid-row: 1; }
  .kit-tag { grid-column: 1; grid-row: 2; justify-self: start; }
}
@media (max-width: 480px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* src/css/depth.css */
/* Depth: completing the set, the connected-feature strips, the vendor encore and the road to Fate Market */

/* ---------- Complete the set ---------- */
.complete { margin-top: clamp(26px, 4vw, 44px); padding: clamp(18px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(180deg, rgba(24, 24, 26, .94), rgba(19, 19, 19, .94)); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
.cm-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; }
.cm-head h3 { margin: 8px 0 4px; font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; color: var(--paper); }
.cm-head p:not(.cap) { max-width: 560px; font-size: 15px; color: var(--muted); }
.cm-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr); gap: clamp(18px, 2.4vw, 30px); margin-top: 20px; align-items: start; }
.cm-list { display: grid; gap: 6px; margin-top: 10px; }
.cm-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-areas: "thumb name price" "thumb acts acts"; gap: 4px 12px; align-items: center; padding: 10px 12px; border: 1px solid rgba(242, 233, 218, .16); border-radius: 14px; background: rgba(242, 233, 218, .035); transition: border-color .25s, background-color .25s; }
.cm-row.is-pick { border-color: var(--gold); background: rgba(217, 189, 138, .09); }
.cm-thumb { grid-area: thumb; width: 38px; }
.cm-name { grid-area: name; min-width: 0; }
.cm-name b { display: block; font-size: 15px; font-weight: 600; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-name small { display: block; font-size: 12px; color: var(--muted); }
.cm-fit { display: none; font-style: normal; font-weight: 600; color: var(--gold-hi); }
.cm-row.is-pick .cm-fit { display: inline; }
.cm-price { grid-area: price; text-align: right; }
.cm-price b { display: block; font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--gold-hi); }
.cm-price small { display: block; font-size: 11.5px; color: var(--muted); }
.cm-unk { display: block; font-size: 12.5px; font-weight: 600; color: var(--whisper); }
.cm-acts { grid-area: acts; display: flex; flex-wrap: wrap; gap: 6px; }
.cm-acts button { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: none; font-size: 12px; font-weight: 600; color: var(--gold-hi); transition: background-color .2s; }
.cm-acts button:hover { background: rgba(217, 189, 138, .12); }
.cm-acts button[aria-pressed="true"] { border-color: var(--teal); color: var(--teal); background: rgba(143, 227, 208, .08); }
.cm-empty { margin-top: 12px; font-family: var(--italic); font-style: italic; font-size: 22px; color: var(--gold-hi); }
.cm-side { display: grid; gap: 14px; }
.cm-stat { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(9, 9, 9, .5); }
.cm-stat span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cm-stat b { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--paper); }
.cm-stat small { font-size: 12.5px; color: var(--muted); }
.cm-top ol { display: grid; gap: 4px; margin-top: 8px; }
.cm-top li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--body); }
.cm-top li b { color: var(--gold-hi); }
.cm-top small { color: var(--muted); }
.cm-values { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.cm-values div { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 12px; }
.cm-values dt { font-size: 11.5px; color: var(--muted); }
.cm-values dd { margin: 2px 0 0; font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--paper); }
.cm-budget { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(217, 189, 138, .05); }
.cm-slider { display: grid; gap: 6px; font-size: 13.5px; color: var(--body); }
.cm-slider span { display: flex; justify-content: space-between; }
.cm-slider b { color: var(--gold-hi); }
.cm-slider input { width: 100%; accent-color: var(--gold); }
.cm-reserve { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--body); }
.cm-reserve select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 10px; background: #131313; color: var(--paper); }
.cm-meter { height: 8px; border-radius: 999px; overflow: hidden; background: rgba(242, 233, 218, .1); }
.cm-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi)); transition: width .3s var(--ease); }
.cm-meter.is-quest i { background: linear-gradient(90deg, var(--gold-deep), var(--teal)); }
.cm-plan { font-size: 14px; line-height: 1.5; color: var(--paper); }
.cm-plan b { color: var(--gold-hi); }
.cm-chase { display: grid; gap: 8px; justify-items: start; }
.cm-quest { display: grid; gap: 6px; width: 100%; }
.cm-quest p { font-size: 13px; line-height: 1.5; color: var(--body); }
@media (max-width: 900px) { .cm-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Connected in the app ---------- */
.connect { margin-top: clamp(26px, 3.6vw, 42px); padding-top: 18px; border-top: 1px solid var(--line-soft); }
.connect-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.connect-chips button { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(217, 189, 138, .04); font-size: 13px; color: var(--body); transition: border-color .2s, background-color .2s, color .2s; }
.connect-chips button:hover { border-color: rgba(217, 189, 138, .55); color: var(--paper); }
.connect-chips button[aria-expanded="true"] { border-color: var(--gold); background: rgba(217, 189, 138, .14); color: var(--gold-hi); }
.connect-detail { max-width: 760px; margin-top: 12px; padding: 14px 16px; border-left: 2px solid var(--gold); border-radius: 0 14px 14px 0; background: rgba(19, 19, 19, .88); }
.connect-detail > b { display: block; font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--paper); }
.connect-detail p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--body); }
.connect-detail ul { display: grid; gap: 4px; margin-top: 8px; padding-left: 18px; list-style: disc; font-size: 14px; color: var(--body); }
.connect-note { font-size: 13px !important; color: var(--muted) !important; }
.connect-note span { display: block; font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.act-head--center ~ .connect, .act--together .connect { text-align: left; }
body.kid .connect { display: none; }

/* ---------- The road to Fate Market (collection side) ---------- */
.market-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: clamp(28px, 4vw, 44px); padding: 22px 24px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(90deg, rgba(217, 189, 138, .09), rgba(19, 19, 19, .7)); }
.market-band h3 { margin: 4px 0 4px; font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--paper); }
.market-band p:not(.cap) { max-width: 620px; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.finale-market { display: block; margin-top: 18px; font-size: 14px; }
body.kid .market-band, body.kid [data-open-market] { display: none !important; }

/* ---------- Fate Market encore: for vendors ---------- */
.act--vendors { background: radial-gradient(50% 40% at 50% 0%, rgba(217, 189, 138, .1), transparent 70%), var(--ink); }
.vd-marquee { padding: 16px; border-radius: 28px; background-color: #1c1509; background-image: radial-gradient(circle, var(--gold-hi) 0 3px, rgba(0, 0, 0, 0) 4px); background-size: 28px 28px; box-shadow: 0 0 60px -10px rgba(243, 220, 170, .35); animation: vd-bulbs 1.4s steps(2) infinite; }
@keyframes vd-bulbs { 50% { background-position: 14px 0; } }
.paused .vd-marquee, .reduce .vd-marquee { animation: none; }
body.kid .act--vendors { display: none; }
.vd-marquee-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border-radius: 16px; background: #121212; }
.vd-marquee-img { position: relative; min-height: 440px; }
.vd-marquee-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.vd-marquee-copy { display: flex; flex-direction: column; justify-content: center; padding: 56px 52px; }
.vd-marquee-copy .lede { font-size: 17px; }
.vd-tools-wrap { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: clamp(16px, 2.6vw, 34px); margin-top: clamp(28px, 4vw, 48px); align-items: start; }
.vd-tabs { display: grid; gap: 6px; }
.vd-tabs button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(242, 233, 218, .03); text-align: left; font-size: 14.5px; font-weight: 600; color: var(--body); }
.vd-tabs button[aria-selected="true"] { border-color: var(--gold); background: rgba(217, 189, 138, .12); color: var(--paper); }
.vd-tabs em { padding: 1px 8px; border-radius: 999px; background: rgba(143, 227, 208, .14); font-style: normal; font-size: 11px; color: var(--teal); }
.vd-panel { min-height: 380px; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, rgba(24, 24, 26, .94), rgba(19, 19, 19, .94)); }
.vd-panel h3 { margin: 6px 0 8px; font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; color: var(--paper); }
.vd-lede { max-width: 640px; font-size: 15.5px; line-height: 1.6; color: var(--body); }
.vd-points { display: grid; gap: 6px; margin-top: 12px; }
.vd-points li { padding-left: 16px; position: relative; font-size: 14px; color: var(--body); }
.vd-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.vd-demo { margin-top: 16px; }
.vd-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.vd-rates label { display: grid; gap: 6px; font-size: 13.5px; color: var(--body); }
.vd-rates b { color: var(--gold-hi); }
.vd-rates input { width: 100%; accent-color: var(--gold); }
.vd-rates .note { grid-column: 1 / -1; }
.vd-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 14px; }
.vd-table th, .vd-table td { padding: 9px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; font-weight: 400; color: var(--body); }
.vd-table thead th { font-size: 12px; font-weight: 600; color: var(--muted); }
.vd-table tbody th, .vd-table tfoot th { font-weight: 600; color: var(--paper); }
.vd-table small { font-size: 11.5px; color: var(--muted); }
.vd-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vd-table tfoot b { font-family: var(--display); font-size: 17px; color: var(--gold-hi); }
.vd-table tr.is-flag th, .vd-table tr.is-flag td { background: rgba(255, 154, 163, .06); }
.vd-over { font-weight: 700; color: var(--down); }
.vd-ok { color: var(--up); }
.vd-flags { padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(143, 220, 176, .3); background: rgba(143, 220, 176, .06); font-size: 14px; color: var(--paper); }
.vd-flags.is-on { border-color: rgba(255, 154, 163, .4); background: rgba(255, 154, 163, .06); }
@media (max-width: 900px) {
  .vd-marquee { padding: 12px; }
  .vd-marquee-in { grid-template-columns: 1fr; }
  .vd-marquee-img { min-height: 240px; }
  .vd-marquee-copy { padding: 34px 24px; }
  .vd-tools-wrap { grid-template-columns: minmax(0, 1fr); }
  .vd-tabs { display: flex; gap: 8px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; }
  .vd-tabs button { flex: none; }
  .vd-rates { grid-template-columns: 1fr; }
}

/* ---------- Phones: the Fate Market button keeps its name ---------- */
@media (max-width: 720px) { .tool--side span { display: inline !important; font-size: 10px; letter-spacing: .08em; } }
@media (max-width: 420px) { #btn-sound { display: none; } }
.cm-thumb .tc-front::after, .cm-thumb .tc-glare { opacity: .15 !important; }
@media (max-width: 420px) { .nav { padding: 0 12px; gap: 8px; } .tool { padding: 0 8px; } .brand span { font-size: 12px; letter-spacing: .16em; } .brand { gap: 6px; } }

/* src/css/scenes.css */
/* The scan, the shops and the show */

/* ---------- Shared ---------- */
.act--scan { background: radial-gradient(46% 38% at 30% 40%, rgba(217, 189, 138, .08), transparent 70%), var(--ink); }
.act--shops { background: radial-gradient(44% 40% at 78% 40%, rgba(217, 189, 138, .07), transparent 70%), var(--ink); }
.act--show .act-bg { opacity: .12; }
.sc-steps li b, .sh-tick { flex: none; }

/* ---------- The scan ---------- */
.sc-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto clamp(18px, 2.6vw, 28px); }
.sc-modes button { min-height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(19, 19, 19, .7); font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--body); transition: background-color .25s, color .25s, border-color .25s; }
.sc-modes button:hover { border-color: rgba(217, 189, 138, .55); color: var(--paper); }
.sc-modes button.is-on { border-color: var(--gold); background: var(--gold); color: #1a1307; }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(18px, 2.6vw, 34px); align-items: start; }
.sc-cam { display: grid; justify-items: center; gap: 16px; }
.sc-frame { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1.04; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: radial-gradient(70% 60% at 50% 45%, #1b1a18, #0b0b0b 75%); box-shadow: inset 0 0 80px rgba(0, 0, 0, .8), 0 40px 80px -40px rgba(0, 0, 0, .9); }
.sc-corner { position: absolute; width: 30px; height: 30px; border: 0 solid var(--gold-hi); opacity: .8; pointer-events: none; }
.sc-corner--tl { top: 16px; left: 16px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 10px; }
.sc-corner--tr { top: 16px; right: 16px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 10px; }
.sc-corner--bl { bottom: 16px; left: 16px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 10px; }
.sc-corner--br { bottom: 16px; right: 16px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 10px; }
.sc-line { position: absolute; left: 7%; right: 7%; top: 7%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold-hi) 20%, #fff 50%, var(--gold-hi) 80%, transparent); box-shadow: 0 0 22px 4px rgba(243, 220, 170, .45); opacity: 0; pointer-events: none; }
.is-scanning .sc-line { opacity: 1; animation: sc-sweep 1.45s cubic-bezier(.45, 0, .55, 1) both; }
@keyframes sc-sweep { 0% { top: 7%; } 100% { top: 92%; } }
.reduce .is-scanning .sc-line { animation: none; top: 50%; }
.sc-hud { position: absolute; left: 22px; right: 22px; bottom: 16px; display: flex; justify-content: space-between; gap: 10px; font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.sc-sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(5px, 1.1vw, 10px); width: 64%; margin-bottom: 4%; padding: 3.5%; border-radius: 12px; background: linear-gradient(160deg, rgba(242, 233, 218, .1), rgba(242, 233, 218, .03)); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(242, 233, 218, .12); transform: perspective(1100px) rotateX(9deg) rotateZ(-1.4deg); transition: filter .4s; }
.is-scanning .sc-sheet { filter: brightness(1.08) saturate(1.05); }
.sc-pocket { position: relative; padding: 0; border: 0; border-radius: 6px; background: none; cursor: default; }
.is-read .sc-pocket { cursor: pointer; }
.sc-pocket::after { content: ""; position: absolute; inset: -4px; border: 2px solid transparent; border-radius: 9px; opacity: 0; transition: opacity .3s calc(var(--d, 0) * 70ms), border-color .3s; pointer-events: none; }
.sc-pocket.is-on::after { opacity: 1; }
.sc-pocket.is-ok::after { border-color: var(--gold-hi); }
.sc-pocket.is-printing::after { border-color: #e8b860; border-style: dashed; }
.sc-pocket.is-glare::after { border-color: var(--down); border-style: dashed; }
.sc-pocket.is-out { opacity: .38; }
.sc-tag { position: absolute; top: -9px; right: -9px; z-index: 3; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #1a1307; opacity: 0; transform: scale(.4); transition: opacity .3s calc(var(--d, 0) * 70ms), transform .4s var(--ease) calc(var(--d, 0) * 70ms); pointer-events: none; }
.is-on > .sc-tag { opacity: 1; transform: none; }
.is-ok > .sc-tag { background: var(--gold-hi); }
.is-printing > .sc-tag { background: #e8b860; }
.is-glare > .sc-tag { background: var(--down); }
.sc-card { display: block; }
.sc-glare { position: absolute; inset: 0; z-index: 2; border-radius: 6px; background: radial-gradient(60% 46% at 62% 34%, rgba(255, 255, 255, .96), rgba(255, 255, 255, .55) 34%, rgba(255, 255, 255, 0) 70%); mix-blend-mode: screen; pointer-events: none; }
.sc-one { position: relative; width: 40%; transform: perspective(900px) rotateX(6deg) rotateZ(2deg); filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .7)); }
.sc-one::after { content: ""; position: absolute; inset: -6px; border: 2px solid transparent; border-radius: 12px; opacity: 0; transition: opacity .3s; }
.sc-one.is-on::after { opacity: 1; border-color: var(--gold-hi); }
.sc-slab { width: 44%; padding: 8px; border-radius: 14px; background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05) 40%, rgba(255, 255, 255, .12)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), 0 30px 40px -18px rgba(0, 0, 0, .9); transform: rotateZ(-2deg); }
.sc-slab-label { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; padding: 7px 9px; border-radius: 6px; background: linear-gradient(180deg, #f6f1e7, #e6dccb); color: #25201a; font-size: clamp(7px, .7vw, 9.5px); line-height: 1.3; }
.sc-slab-label b { grid-column: 1 / -1; font-size: 1.1em; letter-spacing: .12em; text-transform: uppercase; }
.sc-slab-label span { grid-column: 1; }
.sc-slab-label em { grid-column: 2; grid-row: 2; align-self: end; font-style: normal; font-weight: 700; text-align: right; }
.sc-slab-label strong { grid-column: 2; grid-row: 3 / 5; font-family: var(--display); font-size: 2.2em; line-height: 1; text-align: right; }
.sc-slab-label small { grid-column: 1; font-size: .9em; color: #5c5448; }
.sc-slab-well { margin-top: 8px; padding: 8px; border-radius: 8px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.sc-box { width: 58%; filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .75)); }
.sc-box img { width: 100%; height: auto; }
.is-read .sc-box, .is-read .sc-slab { outline: 2px solid var(--gold-hi); outline-offset: 8px; border-radius: 14px; }
.sc-shoot { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--paper); }
.sc-shutter { position: relative; display: grid; place-items: center; width: 66px; height: 66px; padding: 0; border: 3px solid var(--paper); border-radius: 50%; background: none; transition: transform .25s var(--ease); }
.sc-shutter i { display: block; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(180deg, #f2dcad, #cdab70); box-shadow: 0 0 24px rgba(243, 220, 170, .45); }
.sc-shutter:hover { transform: scale(1.05); }
.sc-shutter:active i { transform: scale(.92); }
.sc-shutter[disabled] { opacity: .45; cursor: progress; }

.sc-review { display: grid; align-content: start; gap: 12px; min-height: 100%; padding: clamp(16px, 2.2vw, 24px); border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(180deg, rgba(24, 24, 26, .94), rgba(19, 19, 19, .94)); }
.sc-steps { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sc-steps li { display: inline-flex; align-items: center; gap: 7px; }
.sc-steps b { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; }
.sc-steps .is-now { color: var(--paper); }
.sc-steps .is-now b { border-color: var(--gold); background: var(--gold); color: #1a1307; }
.sc-steps .is-done b { border-color: rgba(143, 227, 208, .5); color: var(--teal); }
.sc-h { font-family: var(--display); font-size: clamp(19px, 2vw, 24px); font-weight: 600; color: var(--paper); }
.sc-idle { font-size: 16.5px; line-height: 1.6; color: var(--body); }
.sc-safe { font-size: 13.5px; font-weight: 600; color: var(--gold); }
.sc-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-sum span { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.sc-sum .is-ok { background: rgba(243, 220, 170, .12); color: var(--gold-hi); }
.sc-sum .is-printing { background: rgba(232, 184, 96, .14); color: #f0c574; }
.sc-sum .is-glare { background: rgba(255, 154, 163, .12); color: var(--down); }
.sc-list { display: grid; gap: 8px; max-height: 452px; overflow: auto; margin-right: -6px; padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(217, 189, 138, .35) transparent; overscroll-behavior: contain; }
.sc-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "thumb id inc" "more more more"; gap: 6px 12px; align-items: center; padding: 10px 12px; border: 1px solid rgba(242, 233, 218, .14); border-radius: 14px; background: rgba(242, 233, 218, .03); transition: opacity .25s, border-color .25s; }
.sc-row.is-printing { border-color: rgba(232, 184, 96, .55); background: rgba(232, 184, 96, .05); }
.sc-row.is-glare { border-color: rgba(255, 154, 163, .5); border-style: dashed; }
.sc-row.is-out { opacity: .5; }
.sc-row.is-flash { animation: sc-flash 1s var(--ease); }
@keyframes sc-flash { 0% { box-shadow: 0 0 0 0 rgba(243, 220, 170, .7); } 100% { box-shadow: 0 0 0 12px rgba(243, 220, 170, 0); } }
.sc-thumb { grid-area: thumb; }
.sc-thumb img, .sc-thumb i { display: block; width: 40px; aspect-ratio: 5 / 7; border-radius: 4px; object-fit: cover; }
.sc-thumb i { display: grid; place-items: center; border: 1px dashed rgba(255, 154, 163, .6); font-style: normal; font-weight: 700; color: var(--down); }
.sc-id { grid-area: id; min-width: 0; }
.sc-id b { display: block; overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; color: var(--paper); }
.sc-id small { display: block; font-size: 12px; color: var(--muted); }
.sc-chip { display: inline-block; margin-top: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-hi); }
.is-printing .sc-chip { color: #f0c574; }
.is-glare .sc-chip { color: var(--down); }
.sc-inc { grid-area: inc; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--body); cursor: pointer; }
.sc-inc input { width: 16px; height: 16px; accent-color: var(--gold); }
.sc-more { grid-area: more; display: grid; gap: 6px; padding-left: 52px; }
.sc-more:empty { display: none; }
.sc-line-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.sc-line-t .link-btn, .sc-wrong { padding: 0; font-size: 12.5px; justify-self: start; }
.sc-copy { font-size: 12.5px; color: var(--muted); }
.sc-why { font-size: 13px; color: #f3c2c7; }
.sc-prints { justify-self: start; }
.sc-search { display: grid; gap: 8px; }
.sc-search input { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #111; font-size: 15px; color: var(--paper); }
.sc-search input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(217, 189, 138, .2); }
.sc-hits { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); }
.sc-hits button { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(217, 189, 138, .06); font-size: 13px; color: var(--paper); }
.sc-hits button:hover { border-color: var(--gold); background: rgba(217, 189, 138, .14); }
.sc-hits small { color: var(--muted); }
.sc-foot { display: grid; gap: 10px; justify-items: start; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.sc-foot .btn[disabled] { filter: grayscale(.6) brightness(.7); cursor: not-allowed; transform: none; }
.sc-dest { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; border: 0; }
.sc-dest legend { width: 100%; margin-bottom: 6px; padding: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sc-dest label { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--body); cursor: pointer; }
.sc-dest input { accent-color: var(--gold); }
.sc-hint { font-size: 12.5px; color: var(--muted); }
.sc-fields { display: grid; gap: 0; }
.sc-fields div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.sc-fields dt { font-size: 13px; color: var(--muted); }
.sc-fields dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; color: var(--paper); }
.sc-fields small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.sc-products { display: grid; gap: 8px; }
.sc-products button { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(242, 233, 218, .03); text-align: left; }
.sc-products button.is-on { border-color: var(--gold); background: rgba(217, 189, 138, .1); }
.sc-products b { font-size: 14.5px; color: var(--paper); }
.sc-products small { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.sc-products em { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; font-size: 11px; font-weight: 600; color: var(--gold); }
.sc-qty { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--body); }
.sc-step { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.sc-step button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(242, 233, 218, .06); font-size: 18px; color: var(--paper); }
.sc-step button[disabled] { opacity: .35; cursor: default; }
.sc-step output { min-width: 28px; text-align: center; font-family: var(--display); font-weight: 700; color: var(--gold-hi); }
.sc-done { display: grid; gap: 10px; }
.sc-done ul { display: grid; gap: 8px; }
.sc-done li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.sc-done li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.sc-done li b { color: var(--paper); }
.sc-done-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; }

/* ---------- The shops ---------- */
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 2.6vw, 34px); align-items: start; }
.sp-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 18px; margin-bottom: 14px; }
.sp-top h3 { margin-top: 6px; font-family: var(--display); font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; color: var(--paper); }
.sp-top small { display: block; font-size: 12.5px; color: var(--muted); }
.sp-list { display: grid; gap: 8px; }
.sp-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid rgba(242, 233, 218, .13); border-radius: 16px; background: rgba(242, 233, 218, .03); transition: border-color .25s, background-color .25s; }
.sp-row.is-pick { border-color: var(--gold); background: rgba(217, 189, 138, .08); }
.sp-rank { font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--muted); }
.sp-name { min-width: 0; }
.sp-name b { display: block; font-size: 15px; font-weight: 600; color: var(--paper); }
.sp-name small { display: block; font-size: 12.5px; color: var(--muted); }
.sp-badge, .sp-indie { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; padding: 2px 8px 2px 5px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sp-badge { background: rgba(243, 220, 170, .12); color: var(--gold-hi); }
.sp-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.sp-indie { padding-left: 8px; border: 1px dashed rgba(242, 233, 218, .22); color: var(--muted); }
.sp-price { text-align: right; }
.sp-price b { display: block; font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--gold-hi); }
.sp-price small { display: block; font-size: 11.5px; color: var(--muted); }
.sp-price em { display: block; font-style: normal; font-size: 11px; font-weight: 600; color: var(--body); }
.sp-price .sp-unk { font-family: var(--sans); font-size: 13px; color: var(--whisper); }
.sp-order { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--body); }
.sp-order b { color: var(--paper); }
.sp-why-btn { margin-top: 4px; }
.sp-why { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(9, 9, 9, .55); }
.sp-why p:not(.cap) { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--paper); }
.sp-why ul { display: grid; gap: 4px; margin-top: 6px; }
.sp-why li { position: relative; padding-left: 18px; font-size: 14px; color: var(--body); }
.sp-why li::before { content: "×"; position: absolute; left: 2px; top: -1px; font-weight: 700; color: var(--down); }
.sp-why-foot { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 13px !important; color: var(--muted) !important; }
.sp-site { --shop: #2f5d46; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; background: #f6f2ea; color: #222; box-shadow: 0 40px 70px -36px rgba(0, 0, 0, .9); }
.sp-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #e2dccf; }
.sp-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #c5bdae; }
.sp-url { display: flex; flex: 1; align-items: center; gap: 6px; min-width: 0; margin-left: 8px; padding: 4px 12px; overflow: hidden; border-radius: 999px; background: #fff; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; color: #444; }
.sp-url svg { flex: none; width: 13px; height: 13px; fill: none; stroke: #3a7d44; stroke-width: 2; }
.sp-left { padding: 7px 14px; background: rgba(0, 0, 0, .05); font-size: 12.5px; color: #3b3b3b; }
.sp-page { padding: 14px 18px 20px; }
.sp-brand { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding-bottom: 10px; border-bottom: 3px solid var(--shop); }
.sp-brand b { font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 700; color: var(--shop); }
.sp-brand span { font-size: 12px; color: #666; }
.sp-product { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 16px; }
.sp-product img { width: 100%; height: auto; border-radius: 10px; background: #fff; }
.sp-kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6b6b6b; }
.sp-product h4 { margin: 4px 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.25; color: #1c1c1c; }
.sp-cost { font-size: 24px; font-weight: 700; color: #1c1c1c; }
.sp-del { margin-top: 2px; font-size: 13px; color: #555; }
.sp-cta { margin-top: 12px; padding: 11px 20px; border: 0; border-radius: 8px; background: var(--shop); font-size: 14px; font-weight: 600; color: #fff; }
.sp-cta:hover { filter: brightness(1.12); }
.sp-product small { display: block; margin-top: 8px; font-size: 11.5px; color: #666; }
body.kid .sp-site .money { color: transparent !important; }
.sp-keeps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.sp-keeps ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sp-keeps li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--paper); }
.sp-keeps .sp-does li { border-style: dashed; border-color: var(--line-soft); color: var(--body); }
.sp-for { margin-top: clamp(30px, 4.4vw, 52px); padding: clamp(20px, 2.8vw, 34px); border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(120deg, rgba(217, 189, 138, .1), rgba(19, 19, 19, .85) 60%); }
.sp-for h3 { max-width: 820px; margin-top: 8px; font-family: var(--display); font-size: clamp(20px, 2.3vw, 30px); font-weight: 600; line-height: 1.25; color: var(--paper); }
.sp-for-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px; margin-top: 20px; }
.sp-for-grid b { display: block; font-size: 15px; font-weight: 600; color: var(--gold-hi); }
.sp-for-grid p { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--body); }
.sp-for-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 20px; }
.sp-quote { max-width: 640px; font-family: var(--italic); font-style: italic; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.35; color: var(--gold-hi); }
body.kid .act--shops { display: none; }

/* ---------- The show ---------- */
.sh-ticket { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; margin: 0 auto 18px; font-size: 13.5px; color: var(--body); text-align: center; }
.sh-ticket b { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .06em; color: var(--paper); }
.sh-ticket .tag { margin-left: 4px; }
.sh-time { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.sh-time::before { content: ""; position: absolute; left: 4%; right: 4%; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--line), var(--line), transparent); }
.sh-time button { position: relative; display: grid; gap: 2px; padding: 11px 12px; border: 1px solid var(--line-soft); border-radius: 16px; background: rgba(13, 13, 13, .92); text-align: left; transition: border-color .25s, background-color .25s; }
.sh-time button:hover { border-color: rgba(217, 189, 138, .45); }
.sh-time time { font-family: var(--display); font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.sh-time b { font-size: 14px; font-weight: 600; color: var(--body); }
.sh-time button[aria-selected="true"] { border-color: var(--gold); background: linear-gradient(180deg, rgba(217, 189, 138, .18), rgba(19, 19, 19, .95)); }
.sh-time button[aria-selected="true"] b { color: var(--paper); }
.sh-time button.is-done::after { content: "✓"; position: absolute; top: 8px; right: 10px; font-size: 12px; font-weight: 700; color: var(--teal); }
.sh-panel { min-height: 380px; padding: clamp(18px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(180deg, rgba(24, 24, 26, .95), rgba(17, 17, 17, .95)); }
.sh-panel:focus-visible { outline-offset: 4px; }
.sh-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 2.8vw, 36px); align-items: start; }
.sh-h { margin: 6px 0 12px; font-family: var(--display); font-size: clamp(18px, 1.9vw, 23px); font-weight: 600; line-height: 1.25; color: var(--paper); }
.sh-p { font-size: 15px; line-height: 1.6; color: var(--body); }
.sh-small { margin-top: 12px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.sh-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.sh-none { padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; font-size: 14px; line-height: 1.55; color: var(--body); }
.sh-event { padding: 18px 20px; border: 1px dashed rgba(217, 189, 138, .5); border-radius: 18px; background: radial-gradient(80% 60% at 0% 0%, rgba(217, 189, 138, .1), transparent 70%), rgba(9, 9, 9, .5); }
.sh-event h3 { margin: 6px 0 12px; font-family: var(--display); font-size: clamp(20px, 2vw, 25px); font-weight: 600; color: var(--paper); }
.sh-event dl { display: grid; gap: 6px; margin: 0; }
.sh-event dl div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.sh-event dt { color: var(--muted); }
.sh-event dd { margin: 0; color: var(--paper); }
.sh-check li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.sh-check li:last-child { border-bottom: 0; }
.sh-check b { display: block; font-size: 14.5px; font-weight: 600; color: var(--paper); }
.sh-check small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.sh-check .btn { margin: 6px 10px 0 0; }
.sh-tick { position: relative; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--line); border-radius: 6px; }
.sh-tick.is-on { border-color: var(--teal); background: rgba(143, 227, 208, .16); }
.sh-tick.is-on::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--teal); }
.sh-ok { color: var(--teal) !important; }
.sh-bar { display: block; height: 6px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(242, 233, 218, .1); }
.sh-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--teal)); animation: sh-fill 1.35s var(--ease) forwards; }
@keyframes sh-fill { to { width: 100%; } }
.reduce .sh-bar i { animation: none; width: 100%; }
.sh-flag { margin-bottom: 16px; padding: 10px 14px; border: 1px dashed rgba(217, 189, 138, .55); border-radius: 12px; background: rgba(217, 189, 138, .05); font-size: 13.5px; color: var(--body); }
.sh-flag b { margin-right: 6px; color: var(--gold-hi); }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sh-chips button { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(242, 233, 218, .03); font-size: 13.5px; color: var(--body); }
.sh-chips button[aria-pressed="true"] { border-color: var(--gold); background: rgba(217, 189, 138, .14); color: var(--gold-hi); }
.sh-results { display: grid; gap: 8px; margin-top: 14px; }
.sh-results li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid rgba(242, 233, 218, .13); border-radius: 14px; }
.sh-results li.is-pick { border-color: var(--gold); background: rgba(217, 189, 138, .07); }
.sh-results li.sh-none { display: block; border-style: dashed; }
.sh-results b { display: block; font-size: 14.5px; font-weight: 600; color: var(--paper); }
.sh-results small { display: block; font-size: 12.5px; color: var(--muted); }
.sh-results .link-btn { padding: 0; font-size: 13px; }
.sh-sticker { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--gold-hi); }
.sh-hall { margin: 0; }
.sh-floor { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 18px; border: 1px solid var(--line-soft); border-radius: 18px; background: repeating-linear-gradient(90deg, rgba(242, 233, 218, .025) 0 1px, transparent 1px 34px), rgba(9, 9, 9, .55); transform: perspective(900px) rotateX(16deg); transform-origin: 50% 100%; }
.sh-table { display: grid; place-items: center; aspect-ratio: 2 / 1; border: 1px solid rgba(242, 233, 218, .12); border-radius: 8px; background: rgba(242, 233, 218, .05); font-size: 12px; font-weight: 600; color: var(--muted); transition: background-color .3s, box-shadow .3s, border-color .3s; }
.sh-table.is-lit { border-color: var(--gold); background: rgba(217, 189, 138, .22); color: var(--paper); box-shadow: 0 0 18px rgba(243, 220, 170, .3); }
.sh-table.is-pick { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.sh-hall figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.sh-key { display: inline-block; width: 14px; height: 9px; border-radius: 3px; border: 1px solid var(--gold); background: rgba(217, 189, 138, .22); }
.sh-key.is-pick { background: none; border: 2px solid var(--gold-hi); }
.sh-in { display: grid; gap: 6px; max-width: 260px; font-size: 13px; color: var(--muted); }
.sh-in span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #111; }
.sh-in i { font-style: normal; font-weight: 700; color: var(--gold); }
.sh-in input { width: 100%; min-height: 44px; padding: 0 6px; border: 0; background: none; font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--paper); }
.sh-in input:focus { outline: none; }
.sh-in span:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 189, 138, .2); }
.sh-signal { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 14px; color: var(--body); }
.sh-signal .switch { border-color: var(--line); }
.sh-signal .switch[aria-checked="true"] { background: var(--teal); }
.sh-signal .switch[aria-checked="true"] .switch-knob { background: #0f2a24; }
.sh-res { padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(9, 9, 9, .55); }
.sh-res.is-none { border-style: dashed; border-color: rgba(255, 154, 163, .45); }
.sh-res.is-none p { font-size: 14.5px; line-height: 1.55; color: var(--body); }
.sh-res.is-none p + p { margin-top: 6px; }
.sh-res.is-none b { color: var(--paper); }
.sh-fp > span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sh-fp b { display: block; margin-top: 2px; font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1.1; color: var(--paper); }
.sh-fp small { display: block; font-size: 12.5px; color: var(--muted); }
.sh-gauge { position: relative; height: 10px; margin: 18px 0 26px; border-radius: 999px; background: linear-gradient(90deg, rgba(143, 220, 176, .55), rgba(242, 233, 218, .14) 50%, rgba(255, 154, 163, .55)); }
.sh-gauge > span:first-child, .sh-gauge > span:nth-child(3) { position: absolute; top: 15px; font-size: 11px; color: var(--muted); }
.sh-gauge > span:first-child { left: 0; }
.sh-gauge > span:nth-child(3) { right: 0; }
.sh-gauge-mid { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; border-radius: 2px; background: var(--paper); }
.sh-gauge i { position: absolute; top: 50%; width: 18px; height: 18px; border: 2px solid #1a1307; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 16px rgba(243, 220, 170, .6); transform: translate(-50%, -50%); transition: left .45s var(--ease); }
.sh-diff { font-size: 15px; line-height: 1.55; color: var(--paper); }
.sh-diff b { color: var(--gold-hi); }
.sh-warn { margin-top: 8px; font-size: 13px; color: var(--whisper); }
.sh-receipt { position: relative; width: min(330px, 100%); margin-bottom: 22px; padding: 18px 18px 16px; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, #f7f0e3, #ebe1ce); color: #2a2418; font-size: 13px; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .9); transform: rotate(-1.2deg); }
.sh-receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 12px; background: radial-gradient(circle at 6px 12px, transparent 6px, #ebe1ce 6.5px) 0 0 / 12px 12px repeat-x; }
.sh-r-head { display: grid; gap: 1px; text-align: center; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sh-r-head span { font-size: 11.5px; font-weight: 500; letter-spacing: .04em; text-transform: none; color: #5d5547; }
.sh-r-line { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(42, 36, 24, .35); }
.sh-r-line small { display: block; font-size: 11.5px; color: #6a6153; }
.sh-r-tot { font-weight: 700; }
.sh-r-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(42, 36, 24, .35); font-size: 12px; line-height: 1.4; }
.sh-r-foot small { display: block; margin-top: 2px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #8a7f6c; }
.sh-qr { display: grid; flex: none; grid-template-columns: repeat(9, 1fr); width: 74px; padding: 4px; background: #fff; }
.sh-qr i { aspect-ratio: 1; }
.sh-qr i.on { background: #2a2418; }
.sh-sheet { padding: 16px 18px; border: 1px solid var(--gold); border-radius: 20px; background: rgba(217, 189, 138, .06); }
.sh-sheet-card { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; }
.sh-sheet-card img { width: 60px; height: auto; border-radius: 5px; }
.sh-sheet-card b { display: block; font-size: 16px; color: var(--paper); }
.sh-sheet-card small { display: block; font-size: 12.5px; color: var(--muted); }
.sh-done { padding: 4px 0; }
.sh-facts { display: grid; gap: 6px; }
.sh-facts li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--body); }
.sh-facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.sh-aside { padding: 16px; border-left: 2px solid var(--gold); border-radius: 0 14px 14px 0; background: rgba(19, 19, 19, .8); font-size: 14px !important; color: var(--body) !important; }
.sh-sell { margin-top: 14px; }
.sh-sell td:first-child { width: 34px; }
.sh-sell input { width: 16px; height: 16px; accent-color: var(--gold); }
.sh-sell tr.is-off th, .sh-sell tr.is-off td:not(:first-child) { opacity: .45; }
.sh-day li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.sh-day li > span { color: var(--muted); }
.sh-day b { font-weight: 600; text-align: right; color: var(--paper); }
.sh-day .link-btn { padding: 0; font-size: 13.5px; font-weight: 400; }
.sh-net b { font-family: var(--display); font-size: 18px; color: var(--gold-hi); }
.sh-memory { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; }
.sh-memory img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.sh-memory figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(9, 9, 9, .92)); font-size: 14px; color: var(--paper); }
.sh-memory figcaption span { font-family: var(--italic); font-style: italic; font-size: 20px; }
.sh-memory figcaption b { color: var(--gold-hi); }
.sh-vendor { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.sh-vendor .link-btn { padding: 0; }
.sh-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.sh-next span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sh-next .link-btn { padding: 0; }

/* ---------- Membership, in both finales ---------- */
.finale-member { max-width: 520px; margin-top: 18px; padding: 12px 16px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(9, 9, 9, .5); font-size: 13.5px; line-height: 1.55; color: var(--body); }
.finale-member b { color: var(--paper); }
.finale-member small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
body.kid .finale-member { display: none; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 900px) {
  .sc-grid, .sp-grid, .sh-two { grid-template-columns: minmax(0, 1fr); }
  .sc-frame { max-width: 460px; }
  .sc-list { max-height: none; overflow: visible; margin-right: 0; padding-right: 0; }
  .sh-time { display: flex; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; }
  .sh-time::-webkit-scrollbar { display: none; }
  .sh-time button { flex: none; min-width: 132px; }
  .sh-time::before { display: none; }
  .sp-for-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .sc-modes { flex-wrap: nowrap; justify-content: flex-start; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; }
  .sc-modes button { flex: none; padding: 0 14px; }
  .sc-more { padding-left: 0; }
  .sc-sheet { width: 60%; margin-bottom: 8%; }
  .sc-frame { aspect-ratio: 1 / 1.1; border-radius: 24px; }
  .sc-hud { left: 16px; right: 46px; bottom: 13px; justify-content: flex-end; font-size: 9.5px; letter-spacing: .14em; }
  .sc-hud span:first-child { display: none; }
  .sc-corner { width: 22px; height: 22px; }
  .sp-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "btn btn"; }
  .sp-rank { display: none; }
  .sp-name { grid-area: name; }
  .sp-price { grid-area: price; }
  .sp-row .btn { grid-area: btn; width: 100%; }
  .sp-product { grid-template-columns: minmax(0, 1fr); }
  .sp-product img { max-width: 220px; }
  .sp-keeps, .sp-why { grid-template-columns: minmax(0, 1fr); }
  .sh-results li { grid-template-columns: minmax(0, 1fr) auto; }
  .sh-results .link-btn { grid-column: 1 / -1; justify-self: start; }
  .sh-event dl div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ---------- A page scan can add many spares: the trade list scrolls instead of growing ---------- */
.trade-list { max-height: 452px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(217, 189, 138, .35) transparent; overscroll-behavior: contain; }

/* ---------- The catalogue: the real cards FateDrop covers ---------- */
.act--catalogue { background: radial-gradient(50% 40% at 50% 0%, rgba(243, 220, 170, .07), transparent 70%), var(--ink); }
.ct-games { display: grid; justify-items: center; gap: 14px; margin: 0 auto clamp(22px, 3vw, 34px); text-align: center; }
.ct-live { display: flex; justify-content: center; }
.ct-game { display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; font-family: var(--display); font-size: clamp(13px, 1.3vw, 16px); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .46); transition: color .25s; }
.ct-game:hover { color: rgba(255, 255, 255, .8); }
.ct-game.is-live { padding: 8px 18px; border: 1px solid var(--gold); border-radius: 999px; background: rgba(217, 189, 138, .1); font-size: clamp(16px, 1.8vw, 22px); color: var(--gold-hi); text-shadow: 0 0 20px rgba(243, 220, 170, .45); }
.ct-game em { padding: 2px 8px; border-radius: 999px; background: var(--teal); font-family: var(--sans); font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: #0f2a24; text-shadow: none; }
.ct-soon { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 18px; max-width: 980px; }
.ct-soon-cap { width: 100%; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ct-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px 26px; align-items: center; margin-bottom: clamp(20px, 3vw, 30px); padding: 16px 20px; border: 1px solid var(--line); border-radius: 22px; background: rgba(19, 19, 19, .8); }
.ct-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.ct-stats div { display: grid; gap: 2px; }
.ct-stats dt { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ct-stats dd { margin: 0; font-family: var(--display); font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; color: var(--paper); }
.ct-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-langs li { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 11px; border: 1px solid var(--line-soft); border-radius: 999px; font-size: 12.5px; color: var(--muted); }
.ct-langs b { font-weight: 600; color: var(--paper); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(18px, 2.6vw, 32px); align-items: start; }
.ct-series { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.ct-series button { padding: 6px 12px; border: 1px solid var(--line-soft); border-radius: 999px; background: rgba(242, 233, 218, .03); font-size: 13px; color: var(--body); }
.ct-series button small { color: var(--muted); }
.ct-series button[aria-pressed="true"] { border-color: var(--gold); background: rgba(217, 189, 138, .14); color: var(--gold-hi); }
.ct-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.ct-sets button { display: grid; gap: 2px; width: 100%; height: 100%; padding: 11px 13px; border: 1px solid rgba(242, 233, 218, .12); border-radius: 14px; background: rgba(242, 233, 218, .03); text-align: left; transition: border-color .2s, background-color .2s; }
.ct-sets button:hover { border-color: rgba(217, 189, 138, .5); }
.ct-sets button[aria-pressed="true"] { border-color: var(--gold); background: rgba(217, 189, 138, .1); }
.ct-sets b { font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--paper); }
.ct-sets small { font-size: 12px; color: var(--muted); }
.ct-side { position: sticky; top: calc(var(--header) + 16px); display: grid; gap: 12px; padding: clamp(16px, 2vw, 22px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, rgba(24, 24, 26, .95), rgba(17, 17, 17, .95)); }
.ct-find { display: grid; gap: 8px; }
.ct-find input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #111; font-size: 16px; color: var(--paper); }
.ct-find input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(217, 189, 138, .2); }
.ct-panel-head h3 { margin-top: 4px; font-family: var(--display); font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; color: var(--paper); }
.ct-panel-head p:not(.cap) { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.ct-cards { display: grid; gap: 0; max-height: 420px; margin-top: 10px; overflow: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(217, 189, 138, .35) transparent; overscroll-behavior: contain; }
.ct-cards li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.ct-cards b { font-weight: 600; color: var(--paper); }
.ct-cards span { flex: none; font-size: 12.5px; color: var(--muted); text-align: right; }
.ct-cards--hits li { display: grid; gap: 1px; }
.ct-cards--hits span { text-align: left; }
.ct-more { margin-top: 8px; font-size: 13px; color: var(--muted); }
.ct-side .link-btn { justify-self: start; padding: 0; font-size: 13.5px; }
@media (max-width: 900px) {
  .ct-top, .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-side { position: static; }
  .ct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Phones: the scales' pans hang past the beam, so the scales sit narrower to keep them on screen ---------- */
@media (max-width: 560px) { .scales { width: 84%; } }
.act--worth { overflow-x: clip; }

/* ---------- Live site footer links ---------- */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 4px auto 14px; max-width: 760px; }
.foot-links a { font-size: 13px; color: var(--body); text-decoration: none; }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 4px; }
.ct-pages { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; }
.ct-pages a, .ct-panel-head h3 a, .ct-cards a { color: inherit; text-decoration-color: rgba(217, 189, 138, .45); text-underline-offset: 4px; }
.ct-pages a { color: var(--gold); }
.ct-page { margin-top: 4px; }
.sh-real { display: inline-block; margin-top: 10px; padding: 0; font-size: 13.5px; }

/* src/css/extras.css */
/* Act V, finale and the layer above the page: guide, palette, card focus, hand-over view */

/* ---------- Scroll thread ---------- */
.thread { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform: scaleX(var(--p, 0)); transform-origin: left; background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi) 60%, var(--violet)); opacity: 0; transition: opacity .4s; pointer-events: none; }
.nav.is-solid .thread { opacity: 1; }

/* ---------- Act V: together ---------- */
.act--together { background: radial-gradient(48% 40% at 76% 50%, rgba(243, 169, 208, .08), transparent 70%), var(--ink); }
.together-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.handover { display: flex; align-items: center; gap: 16px; max-width: 520px; margin-top: 30px; padding: 16px 18px; border: 1px solid rgba(243, 169, 208, .32); border-radius: 20px; background: rgba(243, 169, 208, .06); transition: background-color .4s, box-shadow .4s; }
body.kid .handover { background: rgba(243, 169, 208, .14); box-shadow: 0 0 40px rgba(243, 169, 208, .14); }
.switch { position: relative; flex: none; width: 64px; height: 36px; padding: 0; border: 1px solid rgba(243, 169, 208, .55); border-radius: 999px; background: rgba(242, 233, 218, .08); transition: background-color .35s; }
.switch-knob { position: absolute; left: 3px; top: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); transition: transform .35s var(--ease), background-color .35s; }
.switch[aria-checked="true"] { background: var(--rose); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(28px); background: #2a1420; }
.handover-t { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: .04em; color: var(--paper); }
.handover-s { font-size: 14px; line-height: 1.45; color: var(--body); }
.feat-list { display: grid; gap: 10px; margin-top: 26px; }
.feat-list li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--body); }
.still { position: relative; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85); }
.still img { width: 100%; height: auto; }
.still figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 16px; background: linear-gradient(transparent, rgba(9, 9, 9, .92)); font-family: var(--italic); font-style: italic; font-size: clamp(18px, 2vw, 22px); text-align: center; color: var(--paper); }
@media (max-width: 900px) { .together-grid { grid-template-columns: 1fr; } }

/* ---------- Hand-over view ---------- */
.kidbar { position: fixed; left: 50%; top: calc(var(--header) + 10px); z-index: 85; display: none; align-items: center; gap: 12px; transform: translateX(-50%); padding: 6px 6px 6px 16px; border: 1px solid rgba(243, 169, 208, .5); border-radius: 999px; background: rgba(42, 20, 32, .95); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); font-size: 13px; white-space: nowrap; color: #ffd9ea; }
body.kid .kidbar { display: inline-flex; }
.kidbar.is-nudge { animation: kid-nudge .6s var(--ease); }
@keyframes kid-nudge { 0%, 100% { transform: translateX(-50%); } 25% { transform: translateX(-50%) scale(1.08); box-shadow: 0 0 0 6px rgba(243, 169, 208, .25), 0 12px 30px rgba(0, 0, 0, .5); } }
.kidbar button { position: relative; overflow: hidden; padding: 7px 14px; border: 1px solid rgba(243, 169, 208, .5); border-radius: 999px; background: none; font-size: 12px; font-weight: 600; color: #ffd9ea; touch-action: none; -webkit-user-select: none; user-select: none; }
.kidbar button::before { content: ""; position: absolute; inset: 0; background: rgba(243, 169, 208, .4); transform: scaleX(0); transform-origin: left; }
.kidbar button.is-holding::before { transform: scaleX(1); transition: transform 1.2s linear; }
.kidbar button span { position: relative; }
.hunt-panel { position: relative; }
.kid-veil { display: none; place-items: center; align-content: center; gap: 12px; min-height: 460px; padding: 24px; text-align: center; }
body.kid .kid-veil { display: grid; }
body.kid .hunt-panel > :not(.kid-veil), body.kid .map-card { display: none; }
body.kid .hunt-grid { grid-template-columns: 1fr; }
.kid-veil img { width: 104px; height: 104px; border: 2px solid var(--rose); border-radius: 50%; object-fit: cover; box-shadow: 0 0 40px rgba(243, 169, 208, .3); }
.kid-veil h3 { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--paper); }
.kid-veil p { max-width: 330px; font-size: 15px; color: var(--body); }
body.kid .rail a[data-rail="rrp"] { display: none; }
body.kid .nav .btn--gold, body.kid .finale .ctas, body.kid .map-tip .money { display: none; }
body.kid .tray-item { width: clamp(100px, 11vw, 140px); }
body.kid .h1 em, body.kid .h2 em { color: var(--rose); }

/* ---------- Finale ---------- */
.finale { position: relative; padding-block: clamp(90px, 12vw, 170px); overflow: hidden; background: var(--ink); }
.finale .act-bg { opacity: .2; object-position: 50% 30%; }
.finale-glow { position: absolute; left: 50%; top: 0; width: min(1200px, 130vw); aspect-ratio: 2 / 1; transform: translate(-50%, -34%); background: radial-gradient(closest-side, rgba(217, 189, 138, .2), rgba(178, 146, 120, .08) 55%, transparent); pointer-events: none; }
.finale .wrap { position: relative; }
.finale-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.reading canvas { width: 100%; height: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 60px rgba(217, 189, 138, .1); transition: box-shadow .8s; }
.reading.is-gold canvas { border-color: var(--gold); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 90px rgba(243, 220, 170, .32); }
.reading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; }
@media (max-width: 900px) { .finale-grid { grid-template-columns: 1fr; } }

/* ---------- Koru guide ---------- */
.guide { position: fixed; right: clamp(12px, 2.2vw, 26px); bottom: calc(clamp(12px, 2.2vw, 26px) + env(safe-area-inset-bottom)); z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.guide > * { pointer-events: auto; }
.intro .guide { display: none; }
.guide-btn { position: relative; order: 3; width: 62px; height: 62px; padding: 0; border: 2px solid var(--gold); border-radius: 50%; background: #141414; box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 26px rgba(217, 189, 138, .3); transition: transform .3s var(--ease), box-shadow .3s; }
.guide-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.guide-btn:hover { transform: scale(1.06) rotate(-4deg); }
.guide-btn.is-pop { animation: guide-pop .7s var(--ease); }
@keyframes guide-pop { 0% { transform: scale(1); } 35% { transform: scale(1.22) rotate(-8deg); box-shadow: 0 0 0 10px rgba(243, 220, 170, .18), 0 0 50px rgba(243, 220, 170, .7); } 100% { transform: scale(1); } }
.guide-count { position: absolute; top: -7px; right: -7px; min-width: 26px; padding: 2px 6px; border: 1px solid var(--gold); border-radius: 999px; background: #1a1307; font-size: 11px; font-weight: 700; line-height: 1.4; text-align: center; color: var(--gold-hi); }
.guide-bubble { order: 2; position: relative; max-width: min(310px, calc(100vw - 32px)); padding: 12px 34px 12px 14px; border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; background: rgba(19, 19, 19, .97); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); font-size: 14px; line-height: 1.45; color: var(--paper); animation: bubble-in .45s var(--ease); }
.guide-bubble b { color: var(--gold-hi); }
.guide-bubble .bubble-x { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; font-size: 12px; color: var(--muted); }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.guide-panel { order: 1; display: flex; flex-direction: column; width: min(384px, calc(100vw - 24px)); max-height: min(620px, calc(100vh - 120px)); border: 1px solid var(--line); border-radius: 22px; background: rgba(16, 16, 17, .985); box-shadow: 0 30px 80px rgba(0, 0, 0, .78); overflow: hidden; animation: bubble-in .35s var(--ease); }
.guide-panel > header { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.guide-panel > header img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.guide-panel h3 { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: .04em; color: var(--paper); }
.guide-panel > header p { font-size: 12px; line-height: 1.3; color: var(--muted); }
.x { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line-soft); border-radius: 50%; background: none; font-size: 13px; color: var(--body); }
.x:hover { border-color: rgba(242, 233, 218, .4); color: var(--paper); }
.marks { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }
.marks ol { display: flex; gap: 8px; }
.marks li { position: relative; width: 14px; height: 14px; }
.marks li::before { content: ""; position: absolute; inset: 2px; border: 1px solid var(--gold); transform: rotate(45deg); transition: background-color .4s, box-shadow .4s; }
.marks li.is-on::before { background: var(--gold-hi); box-shadow: 0 0 12px rgba(243, 220, 170, .8); }
.marks b { color: var(--gold-hi); font-weight: 600; }
.guide-log { flex: 1; display: grid; gap: 10px; align-content: start; min-height: 150px; padding: 14px 16px; overflow-y: auto; overscroll-behavior: contain; }
.g-q { justify-self: end; max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: rgba(178, 146, 120, .24); font-size: 14px; line-height: 1.4; color: var(--paper); }
.g-a { justify-self: start; max-width: 94%; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: rgba(242, 233, 218, .06); font-size: 14px; line-height: 1.5; color: var(--body); animation: bubble-in .4s var(--ease); }
.g-a b { color: var(--paper); }
.g-a .g-act { display: block; margin-top: 8px; padding: 0; border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.g-typing { display: inline-flex; gap: 4px; padding: 14px 12px; }
.g-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.g-typing i:nth-child(2) { animation-delay: .15s; } .g-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.guide-asks { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 16px; border-top: 1px solid var(--line-soft); }
.guide-asks button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(217, 189, 138, .06); font-size: 13px; color: var(--gold-hi); transition: background-color .25s; }
.guide-asks button:hover { background: rgba(217, 189, 138, .16); }
@media (max-width: 560px) {
  .guide-btn { width: 54px; height: 54px; }
  .guide-panel { max-height: calc(100vh - 150px); }
  /* On a phone the bubble sits beside Koru along the bottom edge, so it never covers the page copy. */
  .guide-bubble { position: absolute; right: 64px; bottom: 0; width: max-content; max-width: calc(100vw - 92px); padding: 10px 30px 10px 12px; border-radius: 16px 16px 4px 16px; font-size: 13px; line-height: 1.4; }
}

/* ---------- Command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 160; display: grid; align-items: start; justify-items: center; padding: min(16vh, 140px) 16px 16px; background: rgba(7, 7, 7, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.palette-box { width: min(620px, 100%); border: 1px solid var(--line); border-radius: 20px; background: #131313; box-shadow: 0 40px 100px rgba(0, 0, 0, .8); overflow: hidden; animation: bubble-in .28s var(--ease); }
.palette-in { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.palette-in svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; }
.palette-in input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 17px; color: var(--paper); }
.palette-in input::placeholder { color: var(--dim); }
.palette-list { max-height: min(48vh, 400px); padding: 6px; overflow-y: auto; overscroll-behavior: contain; }
.palette-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.palette-list li[aria-selected="true"] { background: rgba(217, 189, 138, .15); }
.palette-list img { width: 30px; height: 42px; border-radius: 4px; object-fit: cover; }
.palette-list .p-ico { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; color: var(--gold-hi); }
.palette-list b { display: block; font-size: 15px; font-weight: 600; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-list small { display: block; font-size: 12px; color: var(--muted); }
.palette-list .p-hint { font-size: 12px; white-space: nowrap; color: var(--muted); }
.palette-list li.palette-empty { display: block; padding: 26px 16px; text-align: center; font-size: 14px; color: var(--muted); cursor: default; }
.palette-foot { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }
.palette-foot kbd { margin-right: 4px; }
.palette-foot span:last-child { margin-left: auto; color: var(--gold); }

/* ---------- Card focus ---------- */
.focus { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px; overflow: auto; background: rgba(7, 7, 7, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.focus-box { display: grid; grid-template-columns: auto minmax(0, 380px); gap: clamp(24px, 5vw, 64px); align-items: center; max-width: 940px; }
.focus-card { width: min(380px, 76vw, 52vh); }
.focus-card .tc { filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .75)); }
.focus-info h3 { margin-top: 10px; font-family: var(--display); font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; line-height: 1.08; color: var(--paper); }
.focus-kind { margin-top: 10px; font-size: 15px; color: var(--muted); }
.focus-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 20px; font-family: var(--display); font-size: 36px; font-weight: 700; color: var(--gold-hi); }
.focus-price small { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); }
.focus-price .up { color: var(--up); } .focus-price .down { color: var(--down); }
.focus-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (max-width: 760px) {
  .focus-box { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .focus-card { width: min(300px, 70vw, 42vh); }
  .focus-price, .focus-actions { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { .guide-bubble, .guide-panel, .palette-box, .g-a, .g-typing i, .guide-btn.is-pop { animation: none !important; } }
.reduce .guide-bubble, .reduce .guide-panel, .reduce .palette-box, .reduce .g-a { animation: none !important; }

/* Live site: account links in the top bar */
.nav-account { display: inline-flex; align-items: center; gap: 4px; }
.nav-account a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 1px solid transparent; border-radius: 999px; font-family: var(--display); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: #c9c0b4; transition: color .25s, border-color .25s, background-color .25s; }
.nav-account a:hover { color: var(--gold-hi); }
.nav-account .nav-signup, .nav-account .nav-myaccount { border-color: rgba(217, 189, 138, .55); color: var(--gold-hi); }
.nav-account .nav-signup:hover, .nav-account .nav-myaccount:hover { border-color: var(--gold); background: rgba(217, 189, 138, .08); }
.nav-account a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
body.kid .nav-account { display: none; }
.nav .brand { flex-shrink: 0; }
@media (min-width: 721px) and (max-width: 1700px) { .nav { gap: 16px; } .nav-links { gap: 10px; } .nav-links a { font-size: 11px; letter-spacing: .06em; } }
@media (max-width: 1700px) { .nav-account a { padding: 0 10px; font-size: 10.5px; letter-spacing: .1em; } }
@media (max-width: 1100px) { .tool kbd { display: none; } }
@media (max-width: 1000px) { .nav .btn--sm { display: none; } }
@media (min-width: 721px) and (max-width: 1000px) { .brand span { font-size: 14px; letter-spacing: .22em; } }
@media (min-width: 721px) and (max-width: 800px) { .brand span { font-size: 13px; letter-spacing: .18em; } .nav-account a { padding: 0 8px; } }
@media (max-width: 720px) { .nav-account { gap: 2px; } .nav-account a { height: 36px; padding: 0 9px; font-size: 10px; letter-spacing: .08em; } }
@media (max-width: 680px) { .nav .brand span { display: none; } }
@media (max-width: 480px) { .nav-account a { padding: 0 7px; } #btn-sound { display: none; } }
