/* The guest landing page (/welcome, templates/landing.html). LANDING_PLAN.md steps 2 and 3.
 *
 * Its own stylesheet, written by hand: the page no longer loads static/vendor/tailwind (400 KB of script compiling
 * CSS in the browser before the first paint). Everything the page and its script draw is styled here.
 *
 * Systems (LANDING_PLAN.md 6), use only these:
 *   type   - Cinzel for display (h1-h3, the wheel), Inter for text, JetBrains Mono for numbers; five sizes --fs-1..5.
 *   motion - --t-fast / --t-base / --t-slow with --ease (out) and --ease-io; sections rise 12 px and fade (.rise);
 *            nothing overshoots or bounces.
 *   colour - gold is for actions and prizes only (buttons, the wheel, money); headings are white, labels are stone.
 */
:root {
    --ink: #090a0d; --ink-2: #0c0d12; --panel: #111218; --line: rgba(245, 196, 81, .18); --hair: rgba(255, 255, 255, .06);
    --gold: #f5c451; --gold-hi: #fde9a8; --gold-lo: #b7832c;
    --text: #f4f1ea; --soft: #d6d3d1; --muted: #a8a29e; --dim: #78716c; --faint: #57534e;
    --emerald: #34d399; --ruby: #fb7185;
    --f-display: 'Cinzel', 'Playfair Display', serif;
    --f-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-num: 'JetBrains Mono', ui-monospace, monospace;
    --fs-1: .75rem;                                   /* captions, labels, fine print */
    --fs-2: .9375rem;                                 /* body */
    --fs-3: 1.125rem;                                 /* lead, card titles */
    --fs-4: clamp(1.55rem, 3.6vw, 2.4rem);            /* section titles */
    --fs-5: clamp(1.85rem, 5.2vw, 3.5rem);            /* the hero headline */
    --t-fast: 160ms; --t-base: 280ms; --t-slow: 560ms; --stagger: 70ms;
    --ease: cubic-bezier(.22, .8, .24, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
    --nav-h: 64px;
    color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 var(--fs-2)/1.55 var(--f-text); overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
input { font: inherit; }
.hidden { display: none !important; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.prize { color: var(--gold-hi); font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- backdrop: carbon weave + champagne light + the dust canvas ---- */
#wl-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 45% at 72% 18%, rgba(233, 211, 160, .11), transparent 70%),
        radial-gradient(ellipse 50% 40% at 12% 8%, rgba(245, 196, 81, .05), transparent 70%),
        radial-gradient(ellipse 80% 50% at 50% 110%, rgba(120, 53, 15, .16), transparent 70%),
        repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 2px, transparent 2px 4px),
        repeating-linear-gradient(-45deg, rgba(0,0,0,.25) 0 2px, transparent 2px 4px),
        var(--ink); }
#wl-dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
main, footer { position: relative; z-index: 2; }

/* ---- motion: sections rise 12 px and fade in once (only with script; without it everything is simply shown) ---- */
.js .rise { opacity: 0; transform: translateY(12px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
            transition-delay: calc(var(--i, 0) * var(--stagger)); }
.js .rise.in-view { opacity: 1; transform: none; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: .9rem; font-weight: 800;
       font-size: var(--fs-1); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
       transition: transform var(--t-fast) var(--ease), filter var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
                   color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), background var(--t-base) var(--ease); }
.btn-gold { background: linear-gradient(to bottom, #fcd34d, #f59e0b 55%, #d97706); color: #0a0a0a;
    box-shadow: 0 0 20px rgba(245, 158, 11, .35), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(120, 53, 15, .45); }
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 0 30px rgba(245, 158, 11, .55), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(120,53,15,.45); }
.btn-gold:active { transform: translateY(0); filter: brightness(.97); }
.btn-gold:disabled { filter: grayscale(.6) brightness(.7); transform: none; cursor: not-allowed; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .14); color: var(--soft); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .05); }
.btn-text { color: var(--soft); font-weight: 600; font-size: var(--fs-2); padding: .5rem .75rem; border-radius: .7rem; transition: color var(--t-base) var(--ease); }
.btn-text:hover { color: #fff; }
.btn-sm { padding: .65rem 1rem; }
.btn-md { padding: .8rem 1.25rem; }
.btn-lg { padding: 1.05rem 1.6rem; font-size: .8125rem; border-radius: 1rem; }
.btn-block { width: 100%; }
.link { color: var(--gold-hi); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: #fff; }

/* ---- nav ---- */
#wl-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center;
    justify-content: space-between; gap: 1rem; padding: 0 16px; user-select: none;
    background: rgba(12, 13, 18, .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.crest { filter: drop-shadow(0 0 8px rgba(245, 158, 11, .3)); }
.nav-word { display: none; font: 900 1rem/1 var(--f-display); letter-spacing: .25em; color: var(--text); }
.nav-links { display: none; align-items: center; gap: .25rem; }
.nav-links a { color: var(--muted); font-size: var(--fs-1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    padding: .5rem .8rem; border-radius: .6rem; transition: color var(--t-base) var(--ease); }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: .35rem; }
@media (min-width: 640px) { .nav-word { display: inline; } }
@media (min-width: 1024px) { .nav-links { display: flex; } #wl-nav { padding: 0 24px; } }

/* ---- hero ----
   Phones (LANDING_PLAN.md 4.1, "the wheel on the first screen"): headline, the wheel, the button and the trust line all fit
   in the first 844 px (and 667 px): the wheel takes whatever height the copy leaves. Wide screens: copy left, wheel right. */
.hero { max-width: 1200px; margin: 0 auto; padding: calc(var(--nav-h) + 20px) 16px 40px; display: grid; gap: 18px;
    overflow-x: clip;                                  /* the wheel's spotlight is 150% wide */
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "wheel" "cta" "odds" "founder" "stats"; }
.hero-head { grid-area: head; }
.hero-cta { grid-area: cta; display: flex; flex-direction: column; gap: 10px; }
.hero-founder { grid-area: founder; }
.hero-stats { grid-area: stats; }
.hero-wheel { display: contents; }                     /* phones: the wheel and its odds are separate grid items */
.hero-wheel > .wheel-wrap { grid-area: wheel; }
.hero-odds { grid-area: odds; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font: 600 var(--fs-1)/1 var(--f-text); letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted); }
.hero-title { margin-top: 12px; font: 900 var(--fs-5)/1.08 var(--f-display); letter-spacing: .01em; color: #fafaf9; text-wrap: balance; }
.hero-sub { margin-top: 12px; font-size: var(--fs-3); line-height: 1.45; color: var(--soft); max-width: 34rem; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem .9rem; font-size: var(--fs-1); color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: .35rem; }
.trust span + span::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); margin-right: .55rem; }
.hero-cta .btn-ghost { display: none; }
.founder { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 1rem;
    background: linear-gradient(180deg, rgba(24, 25, 32, .85), rgba(12, 13, 17, .9)); border: 1px solid var(--hair); }
.founder-seal { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 40% 32%, #2a2214, #0d0c0a 70%); box-shadow: 0 0 0 1px rgba(245, 196, 81, .45), 0 0 0 4px rgba(245, 196, 81, .07); }
.founder p { font-size: var(--fs-1); line-height: 1.5; color: var(--muted); }
.founder b { display: block; font-size: var(--fs-2); color: var(--text); font-weight: 700; margin-bottom: 2px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; min-height: 2.3rem; }
.stat-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border-radius: .8rem;
    background: rgba(17, 18, 24, .75); border: 1px solid var(--hair); font-size: var(--fs-1); color: var(--soft); white-space: nowrap; }
.stat-chip b { color: var(--text); font-family: var(--f-num); font-weight: 700; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald);
    animation: pulse 1.8s var(--ease-io) infinite; flex: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (min-width: 640px) {
    .hero-cta { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .hero-cta .btn-ghost { display: inline-flex; }
    .trust { justify-content: flex-start; width: 100%; }
}
@media (min-width: 1024px) {
    .hero { min-height: min(100vh, 900px); padding: calc(var(--nav-h) + 40px) 32px 56px; column-gap: 48px; row-gap: 22px;
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-content: center;
        grid-template-areas: "head wheel" "cta wheel" "founder wheel" "stats wheel"; }
    .hero-wheel { display: block; grid-area: wheel; }
    .hero-founder { max-width: 34rem; }
}

/* ---- the welcome wheel ---- */
.wheel-wrap { position: relative; aspect-ratio: 1; margin: 0 auto;
    width: clamp(200px, min(86vw, calc(100svh - 448px)), 440px); }   /* phones: the height the copy and the button leave */
@media (min-width: 1024px) { .wheel-wrap { width: min(440px, 100%); } }
.wheel-spot { position: absolute; left: 50%; top: -34%; width: 150%; height: 120%; transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(ellipse 34% 60% at 50% 0%, rgba(253, 233, 168, .2), rgba(253, 233, 168, .04) 55%, transparent 72%);
    clip-path: polygon(38% 0, 62% 0, 96% 100%, 4% 100%); }
.wheel-floor { position: absolute; left: 8%; right: 8%; bottom: -7%; height: 16%; border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,.75), transparent 70%); }
#wl-wheel { position: relative; width: 100%; height: 100%; overflow: visible; }
.wheel-wrap.locked #wl-wheel, .wheel-wrap.locked #wl-hub { visibility: hidden; }
.wheel-lock { display: none; position: absolute; inset: 4%; align-items: center; justify-content: center;
    padding: 12%; border: 1px solid #b99754; border-radius: 50%; text-align: center;
    color: #f5dfb2; background: radial-gradient(circle, #231a13, #0b0908); font-family: var(--f-display); }
.wheel-wrap.locked .wheel-lock { display: flex; }
.wheel-lock-actions { margin-top: 1.1rem; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.wl-spin-error { margin: .6rem auto 0; max-width: 26rem; padding: .55rem .9rem; border-radius: .7rem; text-align: center; font-size: .85rem; font-weight: 600; color: #fda4af; background: rgba(76, 5, 25, .55); border: 1px solid rgba(244, 63, 94, .45); }
#wl-lock-text { font-size: clamp(.85rem, 2.4vw, 1.1rem); line-height: 1.45; }
.lock-alt { font-family: var(--f-text); font-size: var(--fs-1); color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.lock-alt:hover { color: #fff; }
#wl-hub { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, #fff6cf, #f7c64e 32%, #c98a1c 64%, #6b420a);
    box-shadow: 0 0 0 3px #2a1a05, 0 0 0 6px #d6a44a, 0 10px 26px rgba(0,0,0,.65), 0 0 36px rgba(245,196,81,.5), inset 0 -4px 8px rgba(80, 45, 0, .5), inset 0 3px 5px rgba(255,255,255,.6);
    color: #1a1004; font: 900 clamp(.6rem, 2.2vw, .85rem)/1.12 var(--f-display); letter-spacing: .05em;
    display: grid; place-items: center; text-align: center; padding: 0 6%; transition: transform var(--t-fast) var(--ease), filter var(--t-base) var(--ease); }
#wl-hub:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.04); filter: brightness(1.07); }
#wl-hub:active:not(:disabled) { transform: translate(-50%, -50%) scale(.98); }
#wl-hub:disabled { cursor: default; }
#wl-hub.breathe { animation: hubBreathe 2.6s var(--ease-io) infinite; }
@keyframes hubBreathe { 0%, 100% { box-shadow: 0 0 0 3px #2a1a05, 0 0 0 6px #d6a44a, 0 10px 26px rgba(0,0,0,.65), 0 0 24px rgba(245,196,81,.35), inset 0 -4px 8px rgba(80,45,0,.5), inset 0 3px 5px rgba(255,255,255,.6); }
                        50% { box-shadow: 0 0 0 3px #2a1a05, 0 0 0 6px #f3cf7a, 0 10px 26px rgba(0,0,0,.65), 0 0 48px rgba(245,196,81,.7), inset 0 -4px 8px rgba(80,45,0,.5), inset 0 3px 5px rgba(255,255,255,.6); } }
.wedge-win { animation: wedgeWin 1.2s var(--ease-io) infinite; }
@keyframes wedgeWin { 0%, 100% { opacity: .15; } 50% { opacity: .5; } }
.odds { margin: 16px auto 0; max-width: 26rem; text-align: center; }
.odds-label { font-size: var(--fs-1); color: var(--muted); }
.odds-label b { color: var(--text); font-weight: 700; }
.wl-fair { margin-top: 10px; text-align: left; font-size: var(--fs-1); color: var(--muted); }
.wl-fair summary { cursor: pointer; text-align: center; letter-spacing: .08em; }
.wl-fair div { margin-top: 6px; }
.wl-fair div > span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.wl-fair #wl-fair-res { margin-left: 8px; color: var(--text); }
.wl-fair code { display: block; font-size: 11px; overflow-wrap: anywhere; color: var(--text); }
.wl-fair p, .wl-fair .btn { margin-top: 8px; }
.odds-rows { margin-top: 8px; display: flex; justify-content: center; gap: 6px; }
.odds-row { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: .4rem .5rem; border-radius: .7rem;
    background: rgba(255,255,255,.025); border: 1px solid var(--hair); transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease); }
.odds-row .v { font: 700 var(--fs-1)/1.3 var(--f-num); color: var(--gold-hi); }
.odds-row .w { font: 500 var(--fs-1)/1.3 var(--f-num); color: var(--muted); }
.odds-row.hit { border-color: rgba(245,196,81,.6); background: rgba(245,196,81,.09); }
.reserved { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px;
    border-radius: .9rem; border: 1px solid rgba(245,196,81,.4); background: rgba(245,196,81,.08); text-align: left; }
.reserved .t { font-weight: 700; color: var(--text); font-size: var(--fs-2); }
.reserved .s { font-size: var(--fs-1); color: var(--muted); }
@media (max-width: 1023px) { .hero .odds { margin-top: 0; } }

/* ---- ticker ---- */
.ticker { position: relative; overflow: hidden; padding: 14px 0; border-block: 1px solid var(--line);
    background: rgba(9, 9, 11, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tick-label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: .5rem;
    padding: 0 12px 0 16px; background: #09090b; font: 700 var(--fs-1)/1 var(--f-num); letter-spacing: .2em; color: var(--soft); white-space: nowrap; }
.tick-label::after { content: ''; position: absolute; top: 0; bottom: 0; left: 100%; width: 40px; pointer-events: none;
    background: linear-gradient(to right, #09090b, rgba(9, 9, 11, 0)); }
.tick-label .wide { display: none; }
.ticker-lane { padding-left: 7rem; }
@media (min-width: 640px) { .tick-label .wide { display: inline; } .ticker-lane { padding-left: 12rem; } }
.ticker-track { display: flex; width: max-content; animation: marquee var(--dur, 60s) linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: center; gap: .5rem; padding: 0 1.6rem; font-size: var(--fs-1); color: var(--soft); white-space: nowrap;
    border-right: 1px solid var(--hair); }
.tick b { color: #fff; font-weight: 700; }
.tick .amt { color: var(--gold-hi); font-family: var(--f-num); font-weight: 700; }
.tick .mult { color: var(--emerald); font-family: var(--f-num); }

/* ---- sections ---- */
.section { max-width: 1200px; margin: 0 auto; padding: 72px 16px 24px; }
@media (min-width: 768px) { .section { padding: 96px 32px 32px; } }
.sec-head { text-align: center; max-width: 40rem; margin: 0 auto; }
.eyebrow { font: 600 var(--fs-1)/1 var(--f-num); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.sec-title { margin-top: 12px; font: 900 var(--fs-4)/1.15 var(--f-display); letter-spacing: .02em; color: #fafaf9; text-wrap: balance; }
.sec-lead { margin-top: 12px; color: var(--muted); font-size: var(--fs-2); }
.grid { display: grid; gap: 20px; margin-top: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- footage (LANDING_PLAN.md step 3): every loop is real play, filmed by scripts/capture_landing.py ----
   A <video> shows its poster until the loop has been fetched (.ready), then fades the loop in; nothing here animates the
   video itself. */
video[data-film] { display: block; width: 100%; height: 100%; object-fit: cover; background: #07080a; }

/* The hero's loop: full-bleed behind the first screen, under a vignette dark enough for the headline and the wheel. */
.hero-film { position: absolute; left: 0; right: 0; top: 0; height: min(100svh, 920px); z-index: 0; overflow: hidden; pointer-events: none; }
.hero-film video { opacity: .55; filter: saturate(.9); }
.hero-film::after { content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(9, 10, 13, .55) 0%, rgba(9, 10, 13, .35) 35%, rgba(9, 10, 13, .82) 78%, var(--ink) 100%),
        radial-gradient(ellipse 80% 70% at 50% 45%, transparent 30%, rgba(9, 10, 13, .75) 100%); }
@media (min-width: 1024px) {
    .hero-film video { opacity: .5; }
    .hero-film::after { background:
        linear-gradient(90deg, rgba(9, 10, 13, .92) 0%, rgba(9, 10, 13, .7) 38%, rgba(9, 10, 13, .45) 62%, rgba(9, 10, 13, .7) 100%),
        linear-gradient(180deg, rgba(9, 10, 13, .3) 0%, transparent 30%, rgba(9, 10, 13, .6) 80%, var(--ink) 100%); }
}
.hero { position: relative; z-index: 1; }

/* ---- the game carousel (4.5): tall cards, a preview loop on hover / focus / in view on touch ---- */
.carousel { position: relative; margin-top: 40px; }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(64vw, 232px); gap: 16px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 4px 16px 18px; margin: 0 -16px;
    scrollbar-width: none; overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .car-track { margin: 0 -32px; padding-inline: 32px; scroll-padding-inline: 32px; } }
.gcard { scroll-snap-align: start; border-radius: 1.1rem; overflow: hidden; cursor: pointer; outline-offset: 3px;
    background: linear-gradient(180deg, #13141a, #0c0d11); border: 1px solid var(--hair);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .45); transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.gcard:hover, .gcard.live { border-color: rgba(245, 196, 81, .35); }
@media (hover: hover) { .gcard:hover { transform: translateY(-3px); } }
.gfilm { position: relative; aspect-ratio: 4 / 5; background: #07080a; }
.gfilm video { transition: filter var(--t-base) var(--ease); filter: brightness(.86); }
.gcard.live .gfilm video { filter: none; }
.gplay { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(9, 10, 13, .7); border: 1px solid rgba(255, 255, 255, .16); transition: opacity var(--t-base) var(--ease); }
.gplay::before { content: ''; margin-left: 3px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--soft); }
.gcard.live .gplay { opacity: 0; }
.gbody { padding: 14px 16px 16px; }
.gbody h3 { font: 700 var(--fs-3)/1.25 var(--f-display); color: var(--text); }
.gfact { margin-top: 4px; font: 500 var(--fs-1)/1.4 var(--f-num); color: var(--muted); }
.car-btn { display: none; position: absolute; top: calc(50% - 46px); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
    place-items: center; color: var(--soft); background: rgba(12, 13, 18, .92); border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .5); transition: opacity var(--t-base) var(--ease), color var(--t-base) var(--ease); }
.car-btn:hover { color: #fff; }
.car-btn:disabled { opacity: 0; pointer-events: none; }
.car-btn.prev { left: -10px; } .car-btn.next { right: -10px; }
@media (hover: hover) and (min-width: 768px) { .car-btn { display: grid; } }

/* ---- four reasons to stay (4.4): alternating rows, footage + three plain points ---- */
.reason { display: grid; gap: 20px; margin-top: 48px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.reason-film { border-radius: 1.25rem; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--hair);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .5); background: #07080a; }
.reason-copy h3 { margin-top: 10px; font: 900 var(--fs-4)/1.15 var(--f-display); color: #fafaf9; }
.points { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 26px; color: var(--soft); font-size: var(--fs-2); line-height: 1.5; }
.points li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; transform: rotate(45deg);
    border: 1.5px solid var(--gold-lo); border-radius: 2px; }
@media (min-width: 900px) {
    .reason { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; margin-top: 72px; }
    .reason.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    .reason.flip .reason-film { order: 2; }
}

/* ---- the final call ---- */
.glass { border-radius: 1.5rem; padding: 24px; background: linear-gradient(180deg, rgba(24, 25, 32, .82), rgba(12, 13, 17, .9));
    border: 1px solid var(--hair); box-shadow: 0 24px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04); }
.final { margin-top: 64px; text-align: center; position: relative; overflow: hidden; padding: 40px 24px; }
.final::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(245,196,81,.1), transparent 70%); }
.final h2 { position: relative; font: 900 var(--fs-4)/1.15 var(--f-display); color: #fafaf9; }
.final p { position: relative; margin-top: 10px; color: var(--muted); }
.final .btn { position: relative; margin-top: 24px; }

/* ---- footer ---- */
footer { margin-top: 64px; border-top: 1px solid var(--hair); padding: 32px 16px 40px; text-align: center; font-size: var(--fs-1); color: var(--dim); }
footer > * + * { margin-top: 10px; }
footer strong { color: var(--soft); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.1rem; }
/* Real links (crawlers follow them); a plain click opens the in-page reader (templates/landing.html openTerms). */
.foot-links a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.foot-links a:hover { color: #fff; }
/* A phone (MOBILE_CLEANUP_PLAN.md phase 5): the footer's links are 36px targets (they were 19px lines of text). */
@media (hover: none), (max-width: 640px) { .foot-links { gap: 0 .9rem; } .foot-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .2rem; } }
.foot-mark { font-family: var(--f-num); letter-spacing: .24em; }

/* ---- overlays (the stake sheet and the auth modal) ---- */
.overlay { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 4, 6, .78); }
.overlay.open { display: flex; }
.sheet { width: 100%; max-width: 440px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 1.4rem; position: relative;
    background: linear-gradient(180deg, #16171d, #0c0d11); border: 1px solid rgba(245,196,81,.28);
    box-shadow: 0 40px 80px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
    animation: sheetIn var(--t-base) var(--ease); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 639px) {      /* a bottom sheet on phones */
    .overlay { align-items: flex-end; padding: 0; }
    .sheet { max-width: none; max-height: 92vh; border-radius: 1.4rem 1.4rem 0 0; border-bottom: 0; }
    @keyframes sheetIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.x-btn { position: absolute; top: .8rem; right: .8rem; z-index: 1; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); display: grid; place-items: center;
    transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease); }
.x-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.sheet-pad { padding: 28px 24px 24px; }
.sheet-title { font: 900 1.5rem/1.2 var(--f-display); color: #fafaf9; text-align: center; }
.sheet-tag { margin-top: 6px; font-size: var(--fs-1); color: var(--muted); text-align: center; }
.sheet-head { padding: 28px 24px 20px; text-align: center; border-bottom: 1px solid var(--hair);
    background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(245,196,81,.08), transparent); }
.sheet-head svg { margin: 0 auto; }
.sheet-head .sheet-title { margin-top: 12px; }
.ledger { margin-top: 20px; border-radius: 1rem; background: rgba(0,0,0,.35); border: 1px solid var(--hair); padding: 4px 18px; }
.ledger-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; font-size: var(--fs-2); color: var(--muted); }
.ledger-row > :last-child { font-family: var(--f-num); font-weight: 700; color: var(--text); }
.ledger-row .plus { color: var(--emerald); }
.ledger-row.total { border-top: 1px solid var(--hair); }
.ledger-row.total > :first-child { color: var(--text); font-weight: 700; }
.ledger-row.total > :last-child { color: var(--gold-hi); font-size: var(--fs-3); }
.sheet-note { margin-top: 14px; text-align: center; font-size: var(--fs-1); color: var(--muted); }
.sheet-note b { color: var(--soft); }
.sheet .btn-block { margin-top: 18px; }
.lbl { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.lbl small { font-size: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--dim); }
.field { width: 100%; margin-top: 4px; background: #0a0a0d; border: 1px solid #2a2a31; border-radius: .75rem; padding: .75rem .9rem; font-size: var(--fs-2); color: #f5f5f4; outline: none;
    transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.field:focus { border-color: rgba(245,196,81,.65); box-shadow: 0 0 0 3px rgba(245,196,81,.12); }
.field-wrap { position: relative; }
.field-wrap .field { padding-right: 4rem; }
.show-btn { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); margin-top: 2px; font-size: .6875rem; font-weight: 700; color: var(--muted); }
.show-btn:hover { color: #fff; }
.field-note { font-size: var(--fs-1); min-height: 1rem; margin-top: .3rem; color: var(--dim); }
.note-ok { color: var(--emerald); } .note-bad { color: var(--ruby); } .note-wait { color: var(--muted); }
.form-stack > * + * { margin-top: 12px; }
.code-field { font-family: var(--f-num); letter-spacing: .3em; color: var(--gold-hi); }
.notice { font-size: var(--fs-1); line-height: 1.5; border-radius: .6rem; padding: .6rem .75rem; }
.notice-bad { color: #fda4af; background: rgba(76, 5, 25, .6); border: 1px solid rgba(244, 63, 94, .3); }
.notice-info { color: #fde68a; background: rgba(69, 26, 3, .5); border: 1px solid rgba(245, 158, 11, .3); }
.notice-ok { color: #6ee7b7; background: rgba(2, 44, 34, .5); border: 1px solid rgba(16, 185, 129, .3); }
.dev-link { display: block; margin-top: 8px; font-size: .6875rem; font-weight: 600; color: var(--gold-hi); text-decoration: underline; word-break: break-all; }
.fine { margin-top: 14px; text-align: center; font-size: var(--fs-1); color: var(--dim); }
.fine.small { font-size: .6875rem; line-height: 1.6; color: var(--faint); }
.right { text-align: right; margin-top: 6px; }
.forgot-link { font-size: .6875rem; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 4px; }
.forgot-link:hover { color: #fff; }
.au-link { color: var(--gold-hi); font-weight: 600; }
.au-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.spin-first { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 2px; }
/* Auth modal: sign-up / sign-in / forgot panes stacked in one grid cell. The hidden ones keep their space, so the sheet
   is always the tallest pane's size and switching mode never resizes it. */
.au-stack { display: grid; padding: 20px 24px 24px; }
.au-pane { grid-area: 1 / 1; min-width: 0; }
.au-pane.col { display: flex; flex-direction: column; }
.au-pane:not(.on) { visibility: hidden; pointer-events: none; }
/* Phones: the sign-up pane (providers, name, password, email) is taller than the screen, so a shared cell left a screen
   of empty space above sign-in. The bottom sheet takes each pane's own height there instead. */
@media (max-width: 639px) { .au-pane:not(.on) { display: none; } }
.au-main { margin-block: auto; }
.au-pane.on { animation: auPane var(--t-base) var(--ease); }
@keyframes auPane { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.au-pane .ledger { margin-top: 0; }
.au-pane form { margin-top: 18px; }
.au-pane .center { text-align: center; }
/* the sign-up checkbox */
.tos-check { display: flex; gap: .65rem; align-items: flex-start; padding: .7rem .8rem; border-radius: .75rem; background: #0a0a0d;
    border: 1px solid #2a2a31; font-size: var(--fs-1); line-height: 1.5; color: var(--soft); cursor: pointer; transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.tos-check.need { border-color: rgba(244, 63, 94, .6); box-shadow: 0 0 0 3px rgba(244, 63, 94, .12); }
.tos-check input { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .12rem; accent-color: #f5c451; cursor: pointer; }
.tos-link { color: var(--gold-hi); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* Google / Discord (LANDING_PLAN.md step 6): neutral buttons, so gold stays the action colour; the provider's mark is
   the only colour on them. */
.au-providers { margin-top: 18px; }
.au-pane[data-au="signin"] .au-providers { margin-top: 0; margin-bottom: 4px; }
.au-prov-row { display: grid; gap: 8px; }
.btn-provider { display: flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; padding: .8rem 1rem;
    border-radius: .85rem; background: #f4f1ea; color: #111218; font-weight: 700; font-size: var(--fs-2);
    transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.btn-provider:hover { background: #fff; transform: translateY(-1px); }
.btn-provider:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-provider svg { flex: none; }
.au-prov-note { margin-top: 10px; font-size: var(--fs-1); line-height: 1.5; color: var(--muted); text-align: center; }
.au-or { display: flex; align-items: center; gap: .75rem; margin-top: 16px; font-size: .6875rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.au-providers:not(.hidden) ~ form { margin-top: 14px; }
.au-via { margin-top: 18px; padding: .8rem .9rem; border-radius: .9rem; background: rgba(0,0,0,.35); border: 1px solid var(--hair); }
.au-via-head { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--fs-2); line-height: 1.45; color: var(--soft); }
.au-via-head b { color: var(--text); }
.au-via-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f4f1ea; }
.au-keep { display: flex; gap: .6rem; align-items: flex-start; margin-top: 10px; font-size: var(--fs-1); line-height: 1.5; color: var(--soft); cursor: pointer; }
.au-keep input { flex: none; width: 1rem; height: 1rem; margin-top: .1rem; accent-color: #f5c451; cursor: pointer; }
.au-keep b { color: var(--text); font-weight: 600; word-break: break-all; }
.au-via .field-note:empty { display: none; }

/* ---- the legal reader (stacks above the auth modal; not an .overlay, so opening it keeps the sign-up form) ---- */
#wl-terms { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 4, 6, .82); }
#wl-terms.open { display: flex; }
.tos-sheet { width: 100%; max-width: 820px; height: min(88vh, 900px); display: flex; flex-direction: column; overflow: hidden; border-radius: 1.4rem;
    background: linear-gradient(180deg, #16171d, #0c0d11); border: 1px solid rgba(245,196,81,.28); box-shadow: 0 40px 80px rgba(0,0,0,.7); }
.tos-body { flex: 1; overflow-y: auto; padding: 1.4rem 1.5rem; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3f3f46 transparent; }
.tos-body:focus { outline: none; }
.tos-foot { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: flex-end; padding: .9rem 1.5rem; border-top: 1px solid var(--hair); }
.tos-foot .newtab { margin-right: auto; font-size: var(--fs-1); color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.tos-foot .newtab:hover { color: #fff; }
.reader-msg { text-align: center; color: var(--dim); font-size: var(--fs-2); padding: 3rem 0; }
@media (max-width: 640px) { #wl-terms { padding: 0; } .tos-sheet { height: 100%; max-width: none; border-radius: 0; } .tos-body { padding: 1.1rem 1rem; } }

html.calm-motion *, html.calm-motion *::before, html.calm-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.calm-motion { scroll-behavior: auto; }
html.calm-motion .ticker-track { animation: none; }
html.calm-motion .js .rise { opacity: 1; transform: none; }
/* Low graphics (COMFORT_AND_PERFORMANCE_PLAN.md 7; SceneLoop holds every other infinite loop on its first frame, the motes
   and the wheel's drift are one still frame, the films stay on their posters): the loops whose first frame would look
   wrong get a resting look instead. */
html.gfx-low .ticker-track, html.gfx-low .fs-art > * { animation: none; }
html.gfx-low .wedge-win { animation: none; opacity: .45; }

/* ---- the in-page demo (LANDING_PLAN.md 4.2; static/js/landing_demo.js) ---- */
.demo { max-width: 760px; margin: 28px auto 0; padding: 16px; }
.dm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dm-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: .9rem; background: rgba(255,255,255,.04); border: 1px solid var(--hair); }
.dm-tabs button { padding: .5rem 1rem; border-radius: .6rem; font-weight: 700; font-size: var(--fs-1); letter-spacing: .06em; color: var(--muted);
    transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.dm-tabs button[aria-selected="true"] { background: rgba(245,196,81,.12); color: var(--gold-hi); }
.dm-tabs button:disabled { cursor: default; opacity: .6; }
.dm-bank { display: flex; align-items: baseline; gap: 8px; }
.dm-bank b { font: 700 var(--fs-3)/1 var(--f-num); color: var(--text); }
.dm-tag { font: 600 .6875rem/1 var(--f-num); letter-spacing: .18em; color: var(--dim); }
.dm-loading { padding: 64px 0; text-align: center; color: var(--muted); }
.demo:not(.ready) .dm-panel { display: none; }
.dm-panel { margin-top: 16px; }
.dm-panel[hidden] { display: none; }
.dm-controls { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.dm-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.dm-acts .btn:disabled { opacity: .4; cursor: default; }
.dm-bets, .dm-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: .8rem; background: rgba(255,255,255,.04); border: 1px solid var(--hair); }
.dm-bets button, .dm-seg button { padding: .45rem .8rem; border-radius: .5rem; font: 600 var(--fs-1)/1 var(--f-num); color: var(--muted); }
/* The demo's stake and risk chips and its tabs are 36px tall on a phone (the chips were 26px). */
@media (hover: none), (max-width: 640px) {
    .dm-bets button, .dm-seg button { min-height: 36px; padding: 0 .85rem; }
    .dm-tabs button { min-height: 36px; }
}
.dm-bets button.on, .dm-seg button.on { background: rgba(245,196,81,.14); color: var(--gold-hi); }
.dm-bets button:disabled:not(.on) { opacity: .35; cursor: default; }
.dm-msg { margin-top: 12px; text-align: center; color: var(--soft); font-size: var(--fs-2); min-height: 1.6em; }
.dm-rules { margin-top: 10px; text-align: center; color: var(--dim); font-size: var(--fs-1); }
.dm-win { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: .9rem;
    background: rgba(245,196,81,.08); border: 1px solid var(--line); color: var(--gold-hi); font-weight: 700; }
.dm-win.hidden { display: none; }

.dm-board { position: relative; margin: 0 auto; width: min(100%, 560px); aspect-ratio: 800 / 680; container-type: inline-size; border-radius: 1rem; overflow: hidden;
    background: #08060f; box-shadow: inset 0 0 0 1px rgba(0,0,0,.7), inset 0 20px 50px rgba(0,0,0,.6); }
.dm-board canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dm-bucket { position: absolute; top: calc(648 / 680 * 100%); height: calc(24 / 680 * 100%); transform: translateX(-50%); display: flex; align-items: center;
    justify-content: center; border-radius: .9cqw; border: 1px solid rgba(var(--tc), .55); font: 800 max(7px, 1.9cqw)/1 var(--f-num); white-space: nowrap;
    --tc: 120, 135, 160; color: rgb(var(--tc)); background: linear-gradient(180deg, rgba(14,12,22,.96), rgba(6,5,11,.96));
    box-shadow: 0 0 .9cqw rgba(var(--tc), .22); text-shadow: 0 0 .7cqw rgba(var(--tc), .55); }
/* the tags under the board's catch cups (static/js/peg_drop_board.js), in the cups' tier colours */
.dm-bucket.b-push { --tc: 199, 210, 254; }
.dm-bucket.b-gold { --tc: 252, 211, 77; }
.dm-bucket.b-hot { --tc: 253, 120, 150; }
.dm-bucket.b-jackpot { color: #1c1003; text-shadow: none; border-color: #fef3c7; background: linear-gradient(180deg, #fef08a, #fbbf24 55%, #d97706); }
.dm-bucket.hit { animation: dmCatch .42s var(--ease); }
@keyframes dmCatch { 30% { transform: translateX(-50%) translateY(.35cqw) scale(1.08); filter: brightness(1.6); } 100% { transform: translateX(-50%); filter: none; } }
.dm-crash { aspect-ratio: 16 / 10; width: min(100%, 640px); }
.dm-mult { position: absolute; left: 16px; top: 12px; font: 800 clamp(1.6rem, 6cqw, 2.6rem)/1 var(--f-num); color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.7); pointer-events: none; }

.dm-felt { position: relative; padding: 16px; border-radius: 1rem; background: radial-gradient(120% 90% at 50% 0%, #1b3b2e, #0d1f18 70%); border: 1px solid rgba(255,255,255,.06); }
.dm-row { display: flex; align-items: center; gap: 14px; min-height: 108px; }
.dm-who { flex: 0 0 74px; font: 600 var(--fs-1)/1.4 var(--f-num); letter-spacing: .08em; color: var(--soft); text-transform: uppercase; }
.dm-who b { display: block; font-size: var(--fs-3); color: #fff; }
.dm-hand { display: flex; flex-wrap: wrap; gap: 0; min-height: 96px; align-items: center; }
.dm-hand .cc-card { width: 64px; height: 90px; margin-left: -22px; }
.dm-hand .cc-card:first-child { margin-left: 0; }
.dm-shoe { position: absolute; top: 12px; right: 18px; width: 40px; height: 54px; border-radius: 6px; background: linear-gradient(135deg, #2a2d36, #14161b); border: 1px solid rgba(255,255,255,.1); opacity: .8; }
.dm-felt .dm-msg { margin: 4px 0; }
@media (max-width: 480px) {
    .demo { padding: 12px; }
    .dm-who { flex-basis: 56px; }
    .dm-hand .cc-card { width: 52px; height: 73px; margin-left: -20px; }
}

/* ---- choose your name (LANDING_PLAN.md 5): the nameplate preview and the suggested handles ---- */
.au-plate { display: flex; align-items: center; min-height: 52px; margin-top: 6px; padding: 10px 14px; border-radius: .9rem;
    background: radial-gradient(ellipse 90% 140% at 50% 0%, rgba(20, 83, 45, .55), rgba(6, 30, 18, .9)); border: 1px solid rgba(245,196,81,.16);
    box-shadow: inset 0 2px 10px rgba(0,0,0,.5); transition: opacity var(--t-base) var(--ease); }
.au-plate.empty { opacity: .55; }
.au-plate:empty::before { content: ''; display: block; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.06); }
.au-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.au-suggest:empty { display: none; }
.au-chip { padding: 4px 10px; border-radius: 999px; font-size: var(--fs-1); font-weight: 600; color: var(--soft);
    background: rgba(255,255,255,.04); border: 1px solid var(--hair); transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.au-chip:hover, .au-chip:focus-visible { border-color: rgba(245,196,81,.5); color: var(--gold-hi); }

/* ---- the first-session welcome (static/js/welcome_sequence.js): seal, wallet, first table ---- */
.ws { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(245,196,81,.10), transparent 70%), rgba(4, 4, 6, .96);
    opacity: 0; transition: opacity var(--t-base) var(--ease); overflow-y: auto; }
.ws.open { opacity: 1; }
.ws-card { width: 100%; max-width: 460px; margin: auto; text-align: center; }
.ws-seal { position: relative; width: 148px; margin: 0 auto 14px; opacity: 0; transform: scale(1.5); }
.ws-seal svg { width: 148px; height: 148px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.7)); }
.ws.stamped .ws-seal { animation: wsStamp 420ms var(--ease-io) forwards; }
@keyframes wsStamp { 0% { opacity: 0; transform: scale(1.5); } 70% { opacity: 1; transform: scale(.97); } 100% { opacity: 1; transform: none; } }
.ws-no { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); white-space: nowrap; padding: 4px 14px; border-radius: .5rem;
    font: 800 var(--fs-3)/1 var(--f-num); letter-spacing: .08em; color: #1c1408;
    background: linear-gradient(#fde9a8, #e5b85c 55%, #b7832c); box-shadow: 0 0 0 1.5px #0b0906, 0 6px 14px rgba(0,0,0,.6); }
.ws-title { font: 900 var(--fs-4)/1.15 var(--f-display); color: #fafaf9; }
.ws-sub { margin-top: 8px; color: var(--muted); }
.ws-sub b { color: var(--text); }
.ws-wallet { margin: 18px auto 0; max-width: 320px; padding: 12px 18px; border-radius: 1rem; background: rgba(0,0,0,.4); border: 1px solid var(--hair);
    opacity: 0; transform: translateY(8px); transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.ws.counting .ws-wallet { opacity: 1; transform: none; }
.ws-wl { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ws-cash { display: block; margin-top: 2px; font: 800 1.9rem/1.2 var(--f-num); font-variant-numeric: tabular-nums; color: var(--gold-hi); }
.ws-break { display: block; font-size: var(--fs-1); color: var(--dim); }
.ws-pick { margin-top: 22px; opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.ws.picking .ws-pick { opacity: 1; transform: none; pointer-events: auto; }
.ws-h { font: 700 var(--fs-3)/1.3 var(--f-display); color: #fafaf9; }
.ws-tables { display: grid; gap: 10px; margin-top: 12px; text-align: left; }
.ws-table { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 10px 14px 10px 10px; border-radius: 1rem;
    background: linear-gradient(180deg, #16171d, #0e0f13); border: 1px solid rgba(245,196,81,.2);
    transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.ws-table:hover, .ws-table:focus-visible { border-color: rgba(245,196,81,.6); transform: translateY(-2px); }
.ws-thumb { flex: none; width: 76px; height: 54px; border-radius: .6rem; background: #0a0a0d center / cover no-repeat; border: 1px solid var(--hair); }
.ws-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ws-tx b { font-size: var(--fs-2); color: var(--text); }
.ws-tx span { font-size: var(--fs-1); color: var(--soft); }
.ws-tx small { font-size: var(--fs-1); color: var(--gold-hi); font-family: var(--f-num); }
.ws-go { flex: none; font-size: 1.6rem; line-height: 1; color: var(--gold); }
.ws-lobby { display: inline-block; margin-top: 14px; font-size: var(--fs-1); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.ws-lobby:hover { color: var(--text); }
@media (max-width: 639px) { .ws-seal, .ws-seal svg { width: 116px; } .ws-seal svg { height: 116px; } .ws-cash { font-size: 1.6rem; } }
html.calm-motion .ws, html.calm-motion .ws-wallet, html.calm-motion .ws-pick { transition: none; }
html.calm-motion .ws.stamped .ws-seal { animation: none; opacity: 1; transform: none; }

/* ---- live right now (LANDING_PLAN.md 4.3): the lounge's real Crash round + the busiest public tables ---- */
.eyebrow .live-dot { display: inline-block; margin-right: .5rem; vertical-align: middle; }
.live-grid { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 1024px) { .live-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.live-crash { padding: 16px; }
.lc-stage { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; border-radius: 1rem; overflow: hidden; background: #0b0d12;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.7), inset 0 20px 50px rgba(0,0,0,.6); }
.lc-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lc-mult { position: absolute; left: 16px; top: 12px; font: 800 clamp(1.6rem, 7cqw, 3rem)/1 var(--f-num); color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.7); pointer-events: none; font-variant-numeric: tabular-nums; }
.lc-stage[data-phase="FLYING"] .lc-mult, .lc-stage[data-phase="CRASHED"] .lc-mult { display: none; }   /* the arena draws them */
.lc-stage[data-phase="BETTING"] .lc-mult { color: var(--soft); }
.lc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.lc-status { font: 600 var(--fs-1)/1.4 var(--f-num); letter-spacing: .06em; color: var(--soft); }
.lc-recent { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-pill { padding: 3px 8px; border-radius: 999px; font: 700 var(--fs-1)/1.2 var(--f-num); color: var(--muted); background: rgba(255,255,255,.04);
    border: 1px solid var(--hair); }
.lc-pill.hi { color: var(--emerald); border-color: rgba(52, 211, 153, .25); }
.lc-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px;
    border-top: 1px solid var(--hair); color: var(--muted); font-size: var(--fs-1); }
.lt-title { font: 600 var(--fs-1)/1 var(--f-num); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.lt-list { display: grid; gap: 10px; }
@media (min-width: 640px) and (max-width: 1023px) { .lt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lt-card { display: grid; gap: 4px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 1rem; background: rgba(17, 18, 24, .85);
    border: 1px solid var(--hair); transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
@media (hover: hover) { .lt-card:hover { border-color: var(--line); transform: translateY(-2px); } }
.lt-game { font: 600 var(--fs-1)/1 var(--f-num); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.lt-name { font-size: var(--fs-3); color: #fff; }
.lt-count { display: flex; align-items: center; gap: .5rem; font: 600 var(--fs-1)/1 var(--f-num); color: var(--soft); }
.tick .np-crest { display: inline-block; vertical-align: middle; }
html.calm-motion .lt-card { transition: none; }
.live-grid:has(> .live-tables.hidden) { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }

/* The Founder's Set (LANDING_PLAN.md 4.6): four items on their own plinths, each swaying slowly. */
.fs-grid { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .fs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.fs-item { margin: 0; padding: 20px 14px 18px; border-radius: 1.25rem; text-align: center; border: 1px solid var(--hair);
    background: linear-gradient(180deg, rgba(24, 25, 32, .85), rgba(12, 13, 17, .9)); }
.fs-art { height: 132px; display: grid; place-items: center; }
.fs-art > * { animation: fs-sway 9s var(--ease-io) infinite alternate; }
.fs-item:nth-child(2n) .fs-art > * { animation-delay: -4s; }
@keyframes fs-sway { from { rotate: -3deg; } to { rotate: 3deg; } }
.fs-art .cc-card { width: 78px; height: 109px; }
.fs-item figcaption { margin-top: 14px; font-size: var(--fs-1); line-height: 1.45; color: var(--muted); }
.fs-item figcaption b { display: block; margin-bottom: 2px; font-size: var(--fs-2); color: var(--text); font-weight: 700; }
.fs-plaque { padding: 16px 16px; border-radius: .9rem; border: 1px solid rgba(245, 196, 81, .45);
    background: radial-gradient(circle at 40% 30%, #2a2214, #0d0c0a 75%); box-shadow: 0 0 0 4px rgba(245, 196, 81, .07); }
.fs-plaque span { display: block; font: 600 var(--fs-1)/1 var(--f-num); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.fs-plaque b { display: block; white-space: nowrap; margin-top: 8px; font: 700 1.35rem/1 var(--f-num); letter-spacing: .08em; color: var(--gold); }

/* FAQ (LANDING_PLAN.md 4.7): native disclosure, no script. */
.faq { max-width: 44rem; margin: 40px auto 0; display: grid; gap: 10px; }
.faq details { border-radius: 1rem; border: 1px solid var(--hair);
    background: linear-gradient(180deg, rgba(24, 25, 32, .85), rgba(12, 13, 17, .9)); transition: border-color var(--t-base) var(--ease); }
.faq details[open] { border-color: var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 18px; font-weight: 600; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg); transition: transform var(--t-base) var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 1rem; }
.faq details p { padding: 0 18px 18px; color: var(--soft); font-size: var(--fs-2); line-height: 1.6; }
html.calm-motion .fs-art > * { animation: none; } html.calm-motion .faq details, html.calm-motion .faq summary::after { transition: none; }
