@font-face {
  font-family: "Bagel Fat One";
  src: url("assets/bagel.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("assets/figtree.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("assets/space-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("assets/space-mono-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: only light;
  --paper: #fff9f5;
  --card: #fffdfa;
  --ink: #331221;
  --muted: #694050;
  --line: #efd3dc;
  --cherry: #ab1245;
  --accent: #bb1248;
  --accent-hover: #9d0938;
  --accent-ink: #fff8f3;
  --lemon: #ffd871;
  --gold-ink: #835105;
  --mint: #126849;
  --mint-bg: #389677;
  --sky: #5144a1;
  --sour: #5b651c;
  --chip: #f8e7ee;
  --speck: #d57897;
  --hero-outer: #f8accb;
  --hero-mid: #fcd1de;
  --hero-glow: #fff0e0;
  --hero-ink: #381124;
  --hero-accent: #a60c3d;
  --hero-rule: #9c2b5850;
  --hero-glaze: #fff6f0b8;
  --hero-check: #ab235c27;
  --shadow: 0 14px 32px -20px #85274558;
  --display: "Bagel Fat One", "Arial Black", Impact, system-ui, sans-serif;
  --body: Figtree, system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(14px, 3.1vw, 48px);
  --world-a: #ffe7f4;
  --world-b: #f7edff;
  --world-c: #fff4df;
  --star: #9a307734;
  --atmosphere: .25;
  --orb-opacity: .84;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body { margin: 0; isolation: isolate; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
.world { position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; background: linear-gradient(122deg, var(--world-a), var(--world-b) 46%, var(--world-c)); }
.world-wash { position: absolute; inset: -18%; opacity: .78; background: radial-gradient(ellipse at 18% 28%, var(--world-a) 0 13%, transparent 61%), radial-gradient(ellipse at 85% 35%, var(--world-c) 0 16%, transparent 63%), repeating-linear-gradient(128deg, transparent 0 11%, var(--world-b) 18%, transparent 26%); transform: translate3d(var(--px, 0px), var(--py, 0px), 0); }
.world-grid { position: absolute; inset: -80px; background: radial-gradient(circle, var(--star) 1px, transparent 1.5px) 0 0 / 37px 37px, radial-gradient(circle, var(--star) 1.4px, transparent 2px) 11px 20px / 73px 73px; transform: translate3d(calc(var(--px, 0px) * -1), calc(var(--py, 0px) * -1), 0); }
.stream .world { display: none; }
.wrap { max-width: 1416px; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
h1, h2, h3, p { margin: 0; }
h2 { font: 400 clamp(2.55rem, 5.5vw, 5.1rem)/.96 var(--display); letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: 1.12rem; line-height: 1.2; font-weight: 800; }
a { color: inherit; }
button, input { font: inherit; }
button { touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; width: fit-content; color: var(--cherry); font: 700 .76rem/1.35 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 10px; height: 10px; flex: none; background: currentColor; border-radius: 50%; box-shadow: inset 2px 2px 0 #fff6; }
.lede { color: var(--muted); max-width: 60ch; }

.top { position: sticky; top: 0; z-index: 5; padding-top: env(safe-area-inset-top); background: var(--paper); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .44rem; color: var(--cherry); text-decoration: none; white-space: nowrap; font: 400 1.62rem/1 var(--display); letter-spacing: -.025em; }
.logo i { width: .78em; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 33% 24%, #fff 0 9%, #ffd0e2 10% 14%, transparent 17%), radial-gradient(circle at 32% 26%, #ff749e, #e71d59 53%, #76163e 96%); box-shadow: inset 0 -1px 2px #50132c7a, 0 2px 4px #79173335; }
.links, .ca { display: flex; align-items: center; }
.links { justify-content: center; gap: clamp(8px, 1.45vw, 25px); font-size: .88rem; font-weight: 750; }
.links a { text-decoration: none; border-radius: 2px; white-space: nowrap; }
.links a:hover { color: var(--cherry); text-decoration: underline; text-underline-offset: .3em; }
.ca { gap: 6px; font: 700 .72rem/1.3 var(--mono); white-space: nowrap; }
.ca abbr { text-decoration: none; }
.ca code { font: inherit; background: var(--chip); border-radius: 8px; padding: 5px 7px; }
.ca .btn { font-family: var(--body); }
.btn { display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 800; padding: 11px 19px; min-height: 44px; border-radius: 999px; cursor: pointer; box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 45%, var(--ink)); text-decoration: none; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.btn:hover { transform: translateY(-2px); background: var(--accent-hover); box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 45%, var(--ink)); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 45%, var(--ink)); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--chip); border-color: var(--cherry); }
.btn.small { padding: 5px 12px; min-height: 36px; font-size: .83rem; }
/* Hover and press move the button; this unseen margin keeps it under a pointer resting on its edge. */
.btn { position: relative; }
.btn::after { content: ""; position: absolute; inset: -6px -1px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .68; cursor: wait; }

.wallet-anchor { position: relative; }
.ca .btn.is-connected .num { font-size: .72rem; }
.wallet-menu { position: absolute; top: calc(100% + 10px); right: 0; display: grid; gap: 8px; width: min(260px, 82vw); padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); font: .86rem/1.4 var(--body); white-space: normal; }
#connect.ghost { background: var(--card); }
.wallet-menu code, .wallet-card code { font: 700 .72rem/1.5 var(--mono); overflow-wrap: anywhere; user-select: all; }
.ca .wallet-menu code { padding: 6px 8px; }
.ca .wallet-menu .btn { padding-inline: 14px; }
.wallet-dialog { width: min(390px, calc(100% - 28px)); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); padding: 0; overflow: auto; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 28px 70px -22px #52112f90; }
.wallet-dialog::backdrop { background: #3312216e; }
.wallet-sheet { display: grid; gap: 16px; padding: clamp(18px, 5vw, 26px); }
.wallet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wallet-dialog h2 { font-size: 1.75rem; line-height: 1.05; }
.wallet-body, .wallet-choices, .wallet-links { display: grid; gap: 10px; }
.wallet-body p { color: var(--muted); }
.wallet-body .note { font-size: .85rem; }
.wallet-choices .btn { justify-content: flex-start; gap: 12px; min-height: 56px; padding-inline: 14px; }
.wallet-icon { width: 32px; height: 32px; flex: none; border-radius: 9px; }
span.wallet-icon { display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.wallet-toast { position: fixed; z-index: 6; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 28px); transform: translateX(-50%); padding: 11px 18px; border-radius: 16px; background: var(--ink); color: var(--accent-ink); font-size: .86rem; font-weight: 700; text-align: center; box-shadow: var(--shadow); pointer-events: none; }
.wallet-toast:empty { padding: 0; box-shadow: none; }
.stream .wallet-toast { display: none; }

.hero { padding-block: clamp(12px, 2vw, 28px) clamp(24px, 4vw, 56px); }
.hero-stage {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border: 1px solid var(--hero-rule);
  border-radius: clamp(22px, 3vw, 40px);
  color: var(--hero-ink);
  background: radial-gradient(ellipse at 76% 40%, var(--hero-glow), transparent 49%), radial-gradient(ellipse at 12% 15%, var(--hero-mid), var(--hero-outer));
  box-shadow: 0 22px 50px -27px #a3346b7b, inset 0 1px #fff8;
}
.stage-scenery { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; z-index: -1; }
.stage-scenery::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--speck) .65px, transparent .9px); background-size: 7px 7px; opacity: .32; mask-image: linear-gradient(to bottom, transparent, #000 72%); }
.stage-prism {
  position: absolute; inset: -19% -16% -16% 15%; opacity: .76;
  background:
    radial-gradient(ellipse at 73% 47%, #fff1bdac, transparent 25%),
    conic-gradient(from 197deg at 71% 53%, transparent, #ff93ab56 16deg, #ffbd965e 29deg, transparent 42deg 66deg, #ff81b67d 80deg, transparent 96deg 144deg, #ae8dff9c 169deg, #ffd0e254 190deg, transparent 214deg 252deg, #ffaee693 281deg, transparent 304deg);
  mask-image: radial-gradient(ellipse at 72% 48%, #000 15%, #000b 36%, transparent 73%);
  transform: translate3d(calc(var(--px, 0px) * .7), calc(var(--py, 0px) * .7), 0) rotate(-12deg);
}
.stage-orbit { position: absolute; width: min(53%, 700px); aspect-ratio: 1.12; top: 3%; right: -1%; border: 1px solid var(--hero-rule); border-radius: 50%; transform: translateY(var(--parallax, 0px)) rotate(-24deg); }
.stage-orbit::before, .stage-orbit::after { content: ""; position: absolute; inset: 6%; border: inherit; border-radius: inherit; }
.stage-orbit::after { inset: 13%; }
.stage-floor { position: absolute; bottom: -30%; left: -24%; right: -24%; height: 52%; background: repeating-conic-gradient(from 90deg, transparent 0 25%, var(--hero-check) 0 50%) 50% / 86px 86px; mask-image: linear-gradient(transparent, #000 43%); transform: perspective(430px) rotateX(42deg); transform-origin: 50% 0; }
.candy { position: absolute; width: var(--size); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(ellipse at 31% 25%, #fff 0 5%, #fff8 6% 9%, transparent 20%), radial-gradient(circle at 34% 28%, var(--light), var(--color) 47%, var(--shade) 92%); box-shadow: inset -3px -6px 12px #22091839, 0 13px 19px -10px #4a123a9c; }
.candy-pink { --size: clamp(40px, 6.1vw, 94px); --light: #ffb9cf; --color: #f52d72; --shade: #9b1955; top: 9%; right: 9%; }
.candy-mint { --size: clamp(25px, 4.3vw, 62px); --light: #d9ffbf; --color: #65d3a8; --shade: #1a795e; top: 39%; right: 41%; }
.candy-gold { --size: clamp(33px, 5.9vw, 82px); --light: #fff7b8; --color: #ffbf41; --shade: #b0601b; top: 57%; right: 5%; }
.candy-blue { --size: clamp(19px, 2.85vw, 43px); --light: #d2dcff; --color: #8979ee; --shade: #4b25a2; top: 74%; right: 39%; }
.glint { position: absolute; width: var(--size, 26px); aspect-ratio: 1; background: #fff8e9; clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.glint-top { --size: 40px; top: 16%; right: 37%; }
.glint-mid { --size: 23px; top: 34%; right: 10%; }
.glint-low { --size: 30px; top: 64%; right: 41%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); grid-template-areas: "copy machine" "stats machine"; grid-template-rows: 1fr auto; align-items: center; column-gap: clamp(24px, 4vw, 66px); row-gap: 24px; max-width: 1360px; margin: auto; padding: clamp(24px, 4.1vw, 65px); }
.hero-copy { grid-area: copy; align-self: end; }
.hero h1 { margin-top: 15px; font: 400 clamp(3.5rem, 7.1vw, 7.2rem)/.88 var(--display); letter-spacing: -.038em; }
.hero h1 span { display: block; }
.hero h1 span:last-child { padding-block: .09em .075em; color: var(--hero-accent); font-size: .77em; text-shadow: 0 2px 0 var(--hero-glaze); }
.hero .eyebrow, .hero .stat.hot .v { color: var(--hero-accent); }
.hero .lede { font-size: clamp(1rem, 1.35vw, 1.18rem); color: var(--hero-ink); margin-top: 15px; max-width: 48ch; }
.hero-actions { display: flex; gap: 10px 12px; flex-wrap: wrap; margin-top: 23px; align-items: center; }
.hero-actions .btn { min-height: 48px; }
/* One width for every label, so the countdown never nudges its neighbours. */
#crankBtn { min-width: 13.6em; font-variant-numeric: tabular-nums; }
#crankBtn.is-locked { opacity: 1; cursor: not-allowed; background: #eed3dd; border: 1px dashed #94536c; color: #5d3345; box-shadow: inset 0 2px 5px #6b193726; transform: none; }
#crankBtn.is-open { background: linear-gradient(#fff0a6, #ffbd3b); border-color: #a9600c; color: #3b1700; box-shadow: 0 4px 0 #a9600c, 0 0 0 4px #fff7cf, 0 0 26px 7px #ffd45f; }
.hero-actions .btn.ghost { background: var(--hero-glaze); border-color: var(--hero-rule); color: var(--hero-ink); }
.hero-actions .btn.ghost:hover { background: var(--card); }
.demo-tag { flex-basis: 100%; color: var(--hero-ink); font: 400 .72rem/1.45 var(--mono); margin-top: 2px; }
.stats { grid-area: stats; align-self: start; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--hero-rule); border-radius: 18px; background: var(--hero-glaze); overflow: hidden; box-shadow: var(--shadow); }
.stat { position: relative; padding: 13px clamp(7px, 1vw, 16px) 14px; border-left: 1px solid var(--hero-rule); }
.stat:first-child { border-left: 0; }
.stat .v, .stream-head .v { font: 700 clamp(1.1rem, 1.8vw, 1.58rem)/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.stat .l { font-size: .76rem; line-height: 1.25; margin-top: 5px; }
.stat.gold .v { color: var(--gold-ink); }
.stat.is-open { background: #ffe9a9; color: #44250b; }
.timer-meter { position: absolute; bottom: 0; inset-inline: 0; background: var(--hero-accent); height: 3px; transform-origin: left; transform: scaleX(var(--remaining, 1)); transition: transform .7s linear; }

.machine-col { grid-area: machine; display: flex; flex-direction: column; align-items: center; min-width: 0; gap: 10px; }
.machine-entrance { width: min(100%, 322px); position: relative; }
.machine-entrance::before { content: ""; position: absolute; inset: auto 2% 0; height: 9%; background: radial-gradient(ellipse at center, #6b193784, transparent 70%); }
.machine { position: relative; width: 100%; aspect-ratio: 320 / 480; }
.machine svg, .machine canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.globe-control { position: absolute; left: 12.1875%; top: 7.0833%; width: 75.625%; aspect-ratio: 1; border: 0; padding: 0; border-radius: 50%; background: transparent; touch-action: none; cursor: grab; -webkit-tap-highlight-color: transparent; user-select: none; }
.globe-control:active { cursor: grabbing; }
.globe-control::before { position: absolute; inset: 0; content: ""; opacity: 0; border-radius: inherit; box-shadow: inset 0 0 17px #fef8e6c0, inset 0 0 32px #a4ffea87, 0 0 30px #ffc0e7a0; transition: opacity .38s ease; }
.is-stirring .globe-control::before { opacity: 1; }
.swirl-hint { position: absolute; top: 27%; left: 50%; transform: translateX(-50%); background: #fff5eff2; color: #782546; padding: 4px 9px; border-radius: 99px; font: 800 .66rem/1.35 var(--body); letter-spacing: .025em; white-space: nowrap; box-shadow: 0 2px 10px #79204628; transition: opacity .32s ease; pointer-events: none; }
.is-explored .swirl-hint { opacity: 0; }
.globe-control.on-ball { cursor: pointer; }
.knob-hit { position: absolute; left: 42.5%; top: 77.5%; width: max(44px, 16%); aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.knob-hit:hover { box-shadow: 0 0 0 3px #fff9, 0 0 23px #fff6; }
.knob-hit:focus-visible { outline-color: #fff9ee; }
.knob-hit[aria-disabled="true"] { cursor: wait; box-shadow: none; }
.knob-hit.is-locked { cursor: not-allowed; }
/* The glow stays inside and above the handle, clear of the BIG DROP lettering just below. */
.knob-hit.is-open { box-shadow: inset 0 0 0 3px #ffd871, inset 0 0 8px 3px #fff1a870, 0 -5px 10px 0 #ffe9a0; }
#knobLock { transform-origin: 136px 372px; }
.crank-say { position: absolute; z-index: 1; left: 50%; top: 65.5%; width: max-content; max-width: 92%; transform: translate(-50%, -50%); padding: 7px 13px; border-radius: 999px; background: var(--ink); color: var(--accent-ink); font-size: .78rem; font-weight: 800; line-height: 1.3; text-align: center; box-shadow: var(--shadow); pointer-events: none; }
.crank-say:empty { padding: 0; box-shadow: none; }
#knob { transform-origin: 136px 372px; transition: transform .84s cubic-bezier(.44,.02,.18,1.25); }
.counter { display: flex; gap: 4px 10px; flex-wrap: wrap; justify-content: center; font-size: .78rem; text-align: center; }
.counter b { font-weight: 700; }
.drops { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.drop { display: flex; align-items: center; gap: 10px; min-height: 70px; padding: 9px 10px; border: 1px solid var(--hero-rule); border-radius: 15px; background: var(--hero-glaze); box-shadow: var(--shadow); overflow-wrap: anywhere; }
.drop .k { color: var(--hero-accent); font: 700 .67rem/1.3 var(--mono); text-transform: uppercase; }
.drop .w { font-weight: 800; line-height: 1.1; margin-block: 3px; }
.drop .t { font-size: .75rem; line-height: 1.2; }
/* The Lucky Dip card: three small gumballs side by side, each opening its wallet links. */
.trio { display: flex; flex: none; padding-left: 6px; }
.trio .ball-btn { width: 26px; height: 26px; margin-left: -6px; }
.trio .ball.sm, .trio .ball.kol.sm { width: 24px; font-size: .56rem; }
.trio .ball-btn:hover, .trio .ball-btn:focus-visible { z-index: 1; }
.drop.golden { border-color: #a16c19; background: #ffe9a9; color: #44250b; }
.drop.golden .k { color: #754500; }
.cranker { font-size: .74rem; text-align: center; }

.band {
  --scene-color: #ed73b7; --scene-second: #775bd7; --scene-dark: #622457;
  --scene-side: 84%; --scene-orb-x: 86%; --scene-orb-y: 122px; --scene-angle: -31deg;
  position: relative; isolation: isolate; border-top: 1px solid color-mix(in srgb, var(--scene-color) 42%, var(--line));
  padding-block: clamp(56px, 7.2vw, 110px);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--paper) 68%, transparent) 24% 78%, transparent);
}
.band .wrap { max-width: 1280px; }
#how { --scene-color: #ff9c53; --scene-second: #fb6fab; --scene-dark: #963365; }
#machine { --scene-color: #3dcdb6; --scene-second: #68a5ff; --scene-dark: #265093; --scene-orb-x: 93%; --scene-orb-y: 105px; --scene-angle: 27deg; --scene-pattern: repeating-linear-gradient(90deg, transparent 0 52px, #68a5ff77 52px 53px), repeating-linear-gradient(0deg, transparent 0 52px, #3dcdb677 52px 53px); }
#odds { --scene-color: #a380fa; --scene-second: #dc70db; --scene-dark: #6340ae; --scene-side: 35%; --scene-orb-x: 38%; --scene-orb-y: 247px; --scene-angle: -27deg; --scene-pattern: repeating-conic-gradient(from -4deg at 20% 25%, #ca83f37a 0 .22deg, transparent .35deg 8deg); }
#share { --scene-color: #f76396; --scene-second: #ffb459; --scene-dark: #8d2f59; --scene-orb-x: 89%; --scene-orb-y: 130px; --scene-angle: 14deg; --scene-pattern: repeating-linear-gradient(147deg, transparent 0 62px, #ffb45971 66px, transparent 69px 81px, #f7639672 83px 86px, transparent 88px 123px); }
#wallet { --scene-color: #5cdab2; --scene-second: #8e9eff; --scene-dark: #286083; --scene-side: 21%; --scene-orb-x: 30%; --scene-orb-y: 490px; --scene-angle: 32deg; --scene-pattern: repeating-radial-gradient(ellipse at 3% 78%, transparent 0 24px, #5cdab280 25px 26px, transparent 28px 59px); }
.scene {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse at var(--scene-side) 25%, color-mix(in srgb, var(--scene-color) 25%, transparent), transparent 54%),
              radial-gradient(ellipse at calc(100% - var(--scene-side)) 80%, color-mix(in srgb, var(--scene-second) 20%, transparent), transparent 54%);
}
.scene::before, .scene::after { content: ""; position: absolute; }
.scene::before { inset: 0; opacity: var(--atmosphere); background: radial-gradient(circle, var(--scene-color) 1.25px, transparent 1.6px) 0 0 / 14px 14px; mask-image: radial-gradient(ellipse at var(--scene-side) 32%, #000 13%, transparent 74%); }
.scene::after { top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--scene-color) 35%, var(--scene-second) 66%, transparent); box-shadow: 0 0 19px var(--scene-color); opacity: .58; }
.scene-far, .scene-near { position: absolute; inset: -55px 0; }
.scene-far { transform: translate3d(calc(var(--px, 0px) * -.45), calc(var(--depth, 0px) * .42), 0); }
.scene-far::before { content: ""; position: absolute; inset: 0; opacity: var(--atmosphere); background: var(--scene-pattern, none); mask-image: linear-gradient(110deg, #000, transparent 39% 61%, #000); }
.scene-near { transform: translate3d(calc(var(--px, 0px) * .66), calc(var(--depth, 0px) + var(--py, 0px) * .8), 0); }
.scene-ribbon, .scene-hoop, .scene-orb, .scene-shard { position: absolute; }
.scene-ribbon {
  width: min(108vw, 1500px); height: clamp(250px, 36vw, 570px); left: var(--scene-side); top: clamp(18px, 3vw, 50px);
  border-radius: 50%; transform: translateX(-50%) rotate(var(--scene-angle)); opacity: var(--atmosphere);
  background: repeating-radial-gradient(ellipse at 58% 41%, transparent 0 7%, var(--scene-color) 7.2% 7.45%, transparent 8.5% 10%, var(--scene-second) 12%, transparent 13% 15%);
  mask-image: linear-gradient(124deg, transparent 8%, #000 30% 68%, transparent 91%);
}
.scene-hoop {
  width: clamp(260px, 46vw, 760px); aspect-ratio: 1.68; top: calc(var(--scene-orb-y) - 65px); left: var(--scene-orb-x);
  border: 1px solid color-mix(in srgb, var(--scene-color) 68%, transparent); border-radius: 50%;
  box-shadow: 0 0 0 17px color-mix(in srgb, var(--scene-second) 13%, transparent), 0 0 0 38px color-mix(in srgb, var(--scene-color) 9%, transparent);
  transform: translateX(-50%) rotate(var(--scene-angle));
}
.scene-orb {
  width: clamp(86px, 13vw, 225px); aspect-ratio: 1; left: var(--scene-orb-x); top: var(--scene-orb-y); margin-left: -6vw;
  background: radial-gradient(ellipse at 28% 22%, #fff 0 3%, #fff9 4% 8%, transparent 14%),
              radial-gradient(circle at 31% 24%, #fff2df, var(--scene-color) 39%, var(--scene-second) 73%, var(--scene-dark) 96%);
  border-radius: 50%; opacity: var(--orb-opacity);
  box-shadow: inset -8px -13px 24px #29082f45, 0 16px 60px -21px var(--scene-color);
}
.scene-orb.small-orb { width: clamp(20px, 4.8vw, 68px); margin-left: 0; left: calc(90% - var(--scene-orb-x) * .77); top: clamp(340px, 58%, 620px); opacity: .65; }
.scene-shard { top: calc(var(--scene-orb-y) + 10px); left: calc(var(--scene-orb-x) - 13%); width: clamp(18px, 4vw, 65px); aspect-ratio: 1; background: #fff4e2; opacity: .88; clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 58%, 50% 100%, 41% 58%, 0 50%, 41% 41%); }
.scene-shard:last-child { width: 23px; top: 54%; left: calc(95% - var(--scene-orb-x) * .85); background: var(--scene-second); }
.band .head .lede { text-shadow: 0 1px 15px var(--paper); }
.band .head .eyebrow { color: color-mix(in srgb, var(--cherry) 83%, var(--scene-second)); }
.band .head h2 { text-shadow: 0 5px 27px color-mix(in srgb, var(--scene-color) 30%, transparent); }
.head { display: grid; gap: 14px; margin-bottom: clamp(25px, 4vw, 50px); align-content: start; }
.head .lede { font-size: 1.05rem; }
.rules { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.rule, .box, .feed, .tbl-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.rule { position: relative; display: grid; gap: 10px; align-content: start; padding: clamp(18px, 2.5vw, 30px); background: linear-gradient(var(--edge, #f56f9b), var(--edge, #f56f9b)) top / 100% 4px no-repeat, var(--card); }
.rule::before { content: ""; position: absolute; inset: 0; opacity: 0; border-radius: inherit; background: radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--edge, #ff8bbc) 26%, transparent), transparent 72%); pointer-events: none; transition: opacity .22s ease; }
.rule:hover::before { opacity: 1; }
.rule { grid-column: span 2; }
.rule:nth-child(n + 4) { grid-column: span 3; }
.rule > * { position: relative; }
.rule:nth-child(3n + 2) { --edge: #ebaf49; }
.rule:nth-child(3n) { --edge: #8a82dc; }
.rule p, .box p { color: var(--muted); }
.tag { font: 700 .78rem/1.4 var(--mono); color: var(--cherry); }
.split { display: flex; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 25px; font-size: .85rem; font-weight: 800; }
.split div { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 9px 4px; text-align: center; }
.split .a { background: #aa1748; color: #fff9f0; flex: 60; }
.split .d { background: #a9a5f4; color: #261b5a; flex: 30; }
.split .c { background: #ffd774; color: #47300b; flex: 10; }
.split-note { margin-top: 10px; }
.fair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 34px); margin-top: 25px; color: var(--muted); }
.fair b { color: var(--ink); display: block; }

.ledger { display: grid; grid-template-columns: minmax(0, 3fr) minmax(245px, 1fr); gap: 18px; align-items: start; }
.ledger > div, .box { min-width: 0; }
.tbl-wrap { overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { text-align: right; padding: 11px clamp(5px, .88vw, 14px); }
th { font-size: .72rem; line-height: 1.2; letter-spacing: .055em; text-transform: uppercase; color: var(--muted); font-weight: 800; background: var(--chip); }
th:first-child, td:first-child { text-align: left; }
td { border-bottom: 1px solid var(--line); font-family: var(--mono); font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-family: var(--body); }
.who { display: flex; align-items: center; gap: 8px; }
.who b { font-weight: 800; }
.who small { display: block; color: var(--muted); font-size: .76rem; }
.ball { width: 28px; aspect-ratio: 1; flex: none; border-radius: 50%; display: inline-grid; place-items: center; font: 800 .68rem var(--body); color: #fff; background: radial-gradient(circle at 30% 25%, #fff 0 7%, #fff7 8% 13%, transparent 14%), radial-gradient(circle at 35% 29%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 53%, color-mix(in srgb, var(--c) 62%, #321022)); box-shadow: inset 0 -2px 2px #2c142b45; text-shadow: 0 1px 2px #180b22a0; }
.ball.lg { width: 39px; font-size: .82rem; }
.ball.sm { width: 24px; font-size: .6rem; }
.ball.dark { color: #2a0b16; text-shadow: none; }
/* KOL gumballs: bigger, ringed and glowing. */
.ball.kol { position: relative; width: 35px; font-size: .78rem; box-shadow: inset 0 -2px 2px #2c142b45, 0 0 0 1.5px #fff, 0 0 0 3.5px #16c4ee, 0 0 7px 4px #4fe0ffb0; }
.ball.kol.sm { width: 31px; font-size: .7rem; }
.ball.kol.lg { width: 45px; font-size: .94rem; }
.ball.kol::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; box-shadow: 0 0 11px 5px #2fd4ffd0; pointer-events: none; opacity: .75; }
.ball-btn, .ball-slot { position: relative; display: grid; place-items: center; flex: none; width: 42px; height: 42px; }
.ball-btn { padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.ball-btn::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; }
.ball-btn .ball { transition: transform .16s ease; }
.ball-btn:hover .ball { transform: scale(1.1); }
.ball-btn.lg, .ball-slot.lg { width: 50px; height: 50px; }
.ball-pop { position: absolute; inset: auto; margin: 0; width: min(280px, calc(100vw - 16px)); padding: 14px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 22px 48px -18px #52112f90; }
.ball-pop:popover-open { display: grid; gap: 10px; }
.pop-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.pop-head .btn { width: 36px; padding: 0; font-size: 1.15rem; line-height: 1; }
.ball-pop code { font: 700 .72rem/1.5 var(--mono); overflow-wrap: anywhere; user-select: all; background: var(--chip); border-radius: 8px; padding: 6px 8px; }
.pop-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pop-links .btn { flex: 1 1 auto; min-height: 44px; }
.badge { display: inline-block; font: 800 .65rem var(--body); padding: 2px 5px; border-radius: 5px; background: var(--chip); color: var(--ink); vertical-align: 1px; margin-left: 4px; white-space: nowrap; }
.badge.streak { background: var(--lemon); color: #3a2600; }
.pill { display: inline-block; font: 800 .72rem var(--body); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.pill.fresh { background: color-mix(in srgb, var(--mint) 13%, var(--card)); color: var(--mint); }
.pill.sour { background: color-mix(in srgb, var(--sour) 14%, var(--card)); color: var(--sour); }
.pill.wait { background: var(--chip); color: var(--muted); }
.pill.no { background: color-mix(in srgb, var(--cherry) 13%, var(--card)); color: var(--cherry); }
.odds { display: inline-flex; align-items: center; gap: 5px; }
.odds i { height: 5px; border-radius: 4px; background: var(--cherry); }
.tabs { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px; margin-bottom: 13px; gap: 2px; }
.tabs button { border: 0; background: transparent; color: var(--ink); padding: 7px 12px; border-radius: 999px; font-weight: 800; font-size: .84rem; cursor: pointer; }
.tabs button:hover { background: var(--chip); }
.tabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.feed { padding: 6px 16px; }
.feed h3 { padding-block: 12px; border-bottom: 1px solid var(--line); }
.feed ol { list-style: none; margin: 0 -4px; padding: 0 4px; max-height: 560px; overflow: auto; }
.feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding-block: 10px; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .meta { font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; }
.feed .amt { font: 700 .86rem var(--mono); color: var(--mint); text-align: right; }
.feed .amt.sour { color: var(--sour); }
.feed .amt.gold { color: var(--gold-ink); }
.feed .amt.lucky { color: var(--sky); }

.two, .share-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 4.5vw, 68px); align-items: start; }
.share-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.box { display: grid; gap: 14px; padding: clamp(14px, 2.4vw, 26px); }
label { display: grid; gap: 7px; font-size: .88rem; font-weight: 800; color: var(--muted); }
input[type="text"] { width: 100%; min-height: 48px; padding: 10px 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 11px; font-size: 1rem; font-weight: 600; }
.note, .box .note { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.note.err, .box .note.err { color: var(--cherry); }
.note.connect-confirmation { padding: 10px 12px; border-inline-start: 3px solid var(--cherry); border-radius: 8px; background: var(--card); }
.note.connect-confirmation b { display: block; }
.note.wallet-card { display: grid; gap: 7px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.wallet-card b { color: var(--ink); }
.wallet-card .wallet-status { color: var(--ink); font-weight: 800; }
.wallet-card .wallet-status.ok { color: var(--mint); }
.wallet-card .wallet-status.failed { color: var(--cherry); }
.quick, .row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* The hidden sizer shares a cell with the live result, so the longest result sets the height up front. */
.reserve { display: grid; grid-template-columns: minmax(0, 1fr); }
.reserve > * { grid-area: 1 / 1; min-width: 0; }
.reserve > [aria-hidden="true"] { visibility: hidden; }
#oddsOut .num { line-height: 1; }
.odds-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--paper); border-radius: 12px; overflow: hidden; margin-block: 10px; }
.odds-out > div { padding: 11px; border-left: 1px solid var(--line); }
.odds-out > div:first-child { border-left: 0; }
.odds-out .v { font: 700 1.18rem var(--mono); color: var(--cherry); }
.odds-out .l { font-size: .78rem; line-height: 1.3; color: var(--muted); }
#winCard { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.tg { background: var(--chip); padding: 16px; border-radius: 18px 18px 18px 4px; display: grid; gap: 4px; font-size: .92rem; }
.tg .from { font-weight: 800; color: var(--sky); font-size: .83rem; }
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 42px; }
footer.band { --scene-color: #ed73b7; --scene-second: #925aff; --scene-orb-x: 89%; --scene-orb-y: 48px; --scene-pattern: repeating-linear-gradient(66deg, transparent 0 34px, #db82ffc0 35px 36px, transparent 37px 44px); padding-block: 36px max(36px, env(safe-area-inset-bottom)); background: linear-gradient(110deg, color-mix(in srgb, var(--paper) 82%, transparent), color-mix(in srgb, var(--paper) 59%, transparent)); }
footer .scene-orb { width: clamp(45px, 8vw, 110px); opacity: .54; }
footer .wrap { display: flex; gap: 14px 24px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }

.stream-only { display: none; }
.stream .top, .stream main, .stream footer, .stream .hero-copy, .stream .stats { display: none; }
.stream .hero > .wrap { max-width: 530px; }
.stream .hero-grid { display: block; padding: 14px; }
.stream .machine-col { gap: 12px; }
.stream .stream-only { display: flex; }
.stream .btn.stream-only { color: var(--hero-ink); background: var(--hero-glaze); border-color: var(--hero-rule); }
.stream-head { width: 100%; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; background: var(--hero-glaze); border: 1px solid var(--hero-rule); border-radius: 14px; padding: 10px 14px; }
.stream-head .logo { font-size: 1.25rem; color: var(--hero-accent); }
.stream-head .l { font-size: .75rem; }
.stream .stage-orbit { width: 100%; }
.stream .candy-mint { right: 80%; }
.stream .candy-blue { right: 77%; }
#effects { display: none; position: fixed; inset: 0; z-index: 10; width: 100%; height: 100%; pointer-events: none; }
#effects.active { display: block; }
.band.in-view::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent 10%, #fff5e6 50%, transparent 90%); }

@media (hover: hover) {
  .rule, .box { transition: transform .22s ease, box-shadow .22s ease; }
  .rule:hover, .extras .box:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -20px #aa205c60; }
  .extras .box { position: relative; }
  .rule::after, .extras .box::after { content: ""; position: absolute; top: 100%; inset-inline: 0; height: 6px; }
  tbody tr, .feed li { transition: background .2s ease; }
  tbody tr:hover, .feed li:hover { background: var(--chip); }
}

@media (max-width: 1120px) {
  .ledger { grid-template-columns: 1fr; }
  .feed ol { max-height: 310px; }
  #shareNote { flex-basis: 100%; }
}
@media (max-width: 960px) {
  html { scroll-padding-top: 104px; }
  .top .wrap { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding-block: 5px; }
  .links { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 6px; border-top: 1px solid var(--line); padding-block: 7px 2px; margin-top: 4px; }
  .ca { justify-self: end; }
  .hero-grid { column-gap: 16px; padding: 24px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hero-rule); }
  .drops { grid-template-columns: 1fr; }
  .drop { min-height: 56px; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules .rule { grid-column: auto; }
  .rules .rule:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .band { --orb-opacity: .54; }
  #how, #machine, #share { --scene-orb-x: 103%; --scene-orb-y: 65px; }
  #odds, #wallet { --scene-orb-x: 103%; --scene-orb-y: 180px; }
  .scene-shard { left: 86%; }
  .scene-ribbon { width: 160vw; }
  .stage-prism { inset: 26% -22% -9% -24%; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "machine" "stats"; grid-template-rows: auto; padding: clamp(14px, 4.4vw, 30px); gap: 17px; }
  .hero h1 { font-size: clamp(3rem, 11.2vw, 5.6rem); }
  .hero .lede { margin-top: 11px; }
  .hero-actions { margin-top: 16px; }
  .stage-orbit { top: 33%; right: -8%; width: 108%; }
  .stage-floor { height: 40%; bottom: -21%; }
  .candy-pink { top: 40%; right: 7%; }
  .candy-mint { top: 54%; right: 84%; }
  .candy-gold { top: 67%; right: 6%; }
  .candy-blue { top: 72%; right: 86%; }
  .glint-top { --size: 29px; top: 42%; right: 83%; }
  .glint-mid { top: 58%; right: 11%; }
  .glint-low { --size: 23px; top: 66%; right: 79%; }
  .machine-entrance { width: min(100%, 285px); }
  .drops { grid-template-columns: 1fr 1fr; }
  .drop { gap: 7px; }
  .drop .ball { width: 32px; }
  .drop .ball.kol { width: 38px; font-size: .82rem; }
  .drop :is(.ball-btn, .ball-slot) { width: 44px; height: 44px; }
  .drop .trio .ball-btn { width: 26px; height: 26px; }
  .fair, .two, .share-grid { grid-template-columns: 1fr; }
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbl-wrap { background: transparent; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
  table, tbody { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody { display: grid; gap: 10px; }
  tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--card); border-radius: 15px; overflow: hidden; }
  tbody td { text-align: left; min-width: 0; padding: 8px; }
  tbody td:first-child { grid-column: 1 / -1; padding: 9px; }
  tbody td:nth-child(-n + 4) { border-bottom: 1px solid var(--line); }
  tbody td:nth-child(n + 5) { border-bottom: 0; }
  tbody td:not(:first-child)::before { display: block; content: attr(data-label); font: 800 .68rem/1.2 var(--body); text-transform: uppercase; letter-spacing: .035em; color: var(--muted); margin-bottom: 4px; }
  tbody td .odds i { display: none; }
}
@media (max-width: 500px) {
  .top .logo { font-size: 1.3rem; }
  .ca { gap: 4px; }
  .ca code { padding: 5px; font-size: .66rem; }
  .ca .btn { padding-inline: 8px; }
  .wallet-label { display: none; }
}
@media (max-width: 440px) {
  #crankBtn { flex-basis: 100%; }
  .links { font-size: .7rem; }
  .logo { font-size: 1.3rem; }
  .rules, .extras { grid-template-columns: 1fr; }
  .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split .a { grid-column: 1 / -1; }
  .split div { justify-content: start; padding-left: 12px; }
  .odds-out { grid-template-columns: 1fr; }
  .odds-out > div { border-left: 0; border-top: 1px solid var(--line); }
  .odds-out > div:first-child { border-top: 0; }
}
@media (max-width: 374px) {
  .ca .btn.is-connected { padding-inline: 5px; }
  .ca .btn.is-connected .num { font-size: .64rem; letter-spacing: -.02em; }
}
@media (max-width: 360px) {
  .top .wrap { column-gap: 6px; }
  .top .logo { font-size: 1.12rem; }
  .ca .btn { padding-inline: 7px; }
  .ca abbr { display: none; }
}
@media (max-width: 350px) {
  .links { gap: 3px; }
  .drop { display: grid; align-content: start; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy .eyebrow { animation: rise .64s .08s both; }
  .hero h1 span { display: block; animation: title-in .92s cubic-bezier(.17,.77,.21,1) .10s both; }
  .hero h1 span:nth-child(2) { animation-delay: .23s; }
  .hero h1 span:nth-child(3) { animation-delay: .36s; }
  .hero-copy .lede, .hero-actions, .stats { animation: rise .75s .43s both; }
  .hero-actions { animation-delay: .54s; }
  .stats { animation-delay: .66s; }
  .machine-entrance { animation: machine-in 1s .18s backwards; }
  .stage-prism { animation: prism-in 1.3s backwards; }
  .candy { animation: float 6s ease-in-out infinite alternate paused; }
  .candy-mint { animation-duration: 7.5s; animation-delay: -2s; }
  .candy-gold { animation-duration: 5.3s; animation-delay: -3s; }
  .candy-blue { animation-duration: 8s; animation-delay: -4s; }
  .glint { animation: twinkle 3.3s ease-in-out infinite alternate paused; }
  .glint-mid { animation-delay: -1s; }
  .glint-low { animation-delay: -2s; }
  .glass-shimmer { animation: polish 8s ease-in-out infinite paused; }
  .hero.is-visible :is(.candy, .glint), .machine.is-visible .glass-shimmer { animation-play-state: running; }
  .machine.shake { animation: shake .68s cubic-bezier(.36,.07,.19,.97) both; }
  .drop.pop { animation: pop .46s cubic-bezier(.2,.8,.3,1.2); }
  .ball.kol::after { animation: kol-pulse 1.5s ease-in-out infinite alternate; }
  .band:not(.in-view) .ball.kol::after, .hero:not(.is-visible) .ball.kol::after { animation-play-state: paused; }
  #cvGlow { animation: kol-pulse 1.5s ease-in-out infinite alternate paused; }
  .machine.is-visible #cvGlow { animation-play-state: running; }
  #crankBtn.is-open { animation: invite 1.15s ease-in-out infinite; }
  .knob-hit.is-open { animation: invite-knob 1.15s ease-in-out infinite; }
  #crankBtn.wiggle { animation: locked-nudge .42s ease; }
  #knobLock.wiggle { animation: locked-knob .46s ease; }
  .revealed { animation: reveal .76s cubic-bezier(.2,.7,.24,1) backwards; }
  .rule.revealed:nth-child(3n + 2), .extras .box.revealed:nth-child(2) { animation-delay: .06s; }
  .rule.revealed:nth-child(3n), .extras .box.revealed:nth-child(3) { animation-delay: .12s; }
  .scene-orb { animation: orbit-float 8s ease-in-out infinite alternate paused; }
  .scene-orb.small-orb { animation-duration: 6s; animation-delay: -3s; }
  .scene-shard { animation: twinkle 3.1s ease-in-out infinite alternate paused; }
  .scene-shard:last-child { animation-delay: -1.3s; }
  .band.in-view :is(.scene-orb, .scene-shard) { animation-play-state: running; }
  .band.in-view::after { animation: divider-in 1.05s both; }
  .energized { animation: energized .62s ease both; }
  .ledger-pop tbody tr { animation: ledger-in .44s ease both; }
  .ledger-pop tbody tr:nth-child(3n + 2) { animation-delay: .045s; }
  .ledger-pop tbody tr:nth-child(3n) { animation-delay: .09s; }
}

@keyframes rise { from { opacity: 0; transform: translateY(19px); } to { opacity: 1; transform: none; } }
@keyframes title-in { 0% { opacity: 0; transform: perspective(800px) translateY(38px) rotateX(-32deg) scale(.94); transform-origin: 0 85%; } 100% { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: .35; transform: perspective(900px) translateY(35px) rotateX(-8deg); } to { opacity: 1; transform: none; } }
@keyframes machine-in { 0% { opacity: 0; transform: perspective(600px) translateY(-120px) rotateX(-16deg) rotate(-8deg) scale(.84); } 60% { opacity: 1; transform: translateY(8px) scale(1.045,.965); } 81% { transform: translateY(-7px) scale(.99,1.015); } 100% { opacity: 1; transform: none; } }
@keyframes prism-in { from { opacity: .1; } 55% { opacity: .99; } to { opacity: .76; } }
@keyframes float { from { transform: translateY(-6px) rotate(-4deg); } to { transform: translateY(13px) rotate(7deg); } }
@keyframes orbit-float { from { transform: translate3d(-6px,-11px,0); } to { transform: translate3d(9px,18px,0); } }
@keyframes twinkle { from { opacity: .35; transform: scale(.8); } to { opacity: .94; transform: scale(1.13); } }
@keyframes polish { 0%, 52% { transform: translateX(0); } 75%, 100% { transform: translateX(410px); } }
@keyframes shake { 0%, 100% { transform: none; } 15%, 45% { transform: translate(-4px, 1px) rotate(-2deg); } 29%, 59% { transform: translate(4px, -2px) rotate(1.7deg); } 76% { transform: translate(-2px, 1px) rotate(-.6deg); } }
@keyframes pop { 0% { transform: scale(.97); } 60% { transform: scale(1.025); } 100% { transform: none; } }
@keyframes divider-in { from { opacity: 0; transform: scaleX(.06); } 60% { opacity: .9; } to { opacity: 0; transform: scaleX(1); } }
@keyframes energized { from { box-shadow: 0 0 0 1px color-mix(in srgb, var(--scene-color, var(--accent)) 70%, transparent), 0 0 24px color-mix(in srgb, var(--scene-color, var(--accent)) 62%, transparent); } }
@keyframes invite { 50% { scale: 1.055; box-shadow: 0 4px 0 #a9600c, 0 0 0 9px #fff7cf80, 0 0 38px 14px #ffd45f; } }
@keyframes invite-knob { 50% { box-shadow: inset 0 0 0 5px #ffd871, inset 0 0 10px 6px #fff1a870, 0 -9px 18px 0 #ffe9a0; } }
@keyframes locked-nudge { 20%, 60% { translate: -4px 0; } 40%, 80% { translate: 4px 0; } }
@keyframes locked-knob { 18% { transform: rotate(17deg); } 38% { transform: rotate(-12deg); } 58% { transform: rotate(9deg); } 78% { transform: rotate(-4deg); } }
@keyframes kol-pulse { from { opacity: .45; } to { opacity: 1; } }
@keyframes ledger-in { from { opacity: .38; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn:hover, .btn:active, .rule:hover, .extras .box:hover { transform: none; }
  .stage-orbit { --parallax: 0px !important; }
  .globe-control, .globe-control:active { cursor: default; }
  .globe-control.on-ball { cursor: pointer; }
  .ball-btn:hover .ball { transform: none; }
  .world, .scene, .stage-prism { --px: 0px !important; --py: 0px !important; --depth: 0px !important; }
}
