@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --night: #0c0a1f;
  --night-2: #140f30;
  --plum: #241449;
  --card: rgba(255, 255, 255, 0.045);
  --card-line: rgba(255, 255, 255, 0.09);
  --ink: #f6f2ff;
  --muted: #b9b0d8;
  --faint: #8a80ad;
  --amber: #ffb547;
  --gold: #ffd36b;
  --mint: #5ef0b4;
  --green-1: #5be36b;
  --green-2: #23a83e;
  --violet: #8b5cff;
  --pink: #ff6bb5;
  --radius: 22px;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #2a1600; padding: 10px 16px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }

.kicker {
  display: inline-block;
  font: 700 13px/1 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
h2 { font-size: clamp(32px, 4.6vw, 52px); }
.sub { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); margin-top: 18px; max-width: 60ch; }
.head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.head .sub { margin-inline: auto; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  --h: 58px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 28px;
  border-radius: 999px; border: 0; cursor: pointer;
  font: 600 19px/1 var(--display); letter-spacing: .01em;
  text-decoration: none; color: #fff;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), filter .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 16px; }
.btn--play {
  background: linear-gradient(180deg, var(--green-1), var(--green-2));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.18), 0 6px 0 #156b27, 0 14px 30px rgba(52, 210, 90, .35);
  text-shadow: 0 2px 0 rgba(0,0,0,.18);
}
.btn--play:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn--play:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.18), 0 2px 0 #156b27, 0 6px 14px rgba(52, 210, 90, .3); }
.btn--sm.btn--play { box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(0,0,0,.18), 0 4px 0 #156b27, 0 10px 22px rgba(52, 210, 90, .3); }
.btn--sm.btn--play:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 1px 0 #156b27; }
.btn--ghost { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.btn--ghost:hover { background: rgba(255,255,255,.13); }
.btn--ghost:active { transform: translateY(2px); }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 10, 31, .72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.is-scrolled { border-bottom-color: var(--card-line); background: rgba(12, 10, 31, .86); }
.nav__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 21px/1 var(--display); }
.brand img { border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 211, 107, .5); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s; }
.nav__links a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 120px); overflow: hidden; isolation: isolate; }
.sky {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(139, 92, 255, .38), transparent 70%),
    radial-gradient(40% 40% at 70% 70%, rgba(255, 181, 71, .20), transparent 70%),
    radial-gradient(50% 60% at 10% 10%, rgba(94, 240, 180, .10), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 60%, var(--night) 100%);
}
.sky::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 28% 68%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 14%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 58% 84%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 86% 12%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 93% 58%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 6% 82%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 36% 40%, rgba(255,255,255,.35), transparent 60%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--card-line);
  color: var(--muted); font-weight: 700; font-size: 14px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
h1 { font-size: clamp(44px, 6.6vw, 82px); margin-top: 22px; font-weight: 700; }
.rainbow {
  background: linear-gradient(92deg, #ff6b8b 0%, #ffb547 28%, #ffe36b 46%, #5ef0b4 66%, #5cc8ff 84%, #b38cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.lead { color: var(--muted); font-size: clamp(18px, 1.8vw, 21px); margin-top: 22px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 34px; }
.soon { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font-weight: 700; font-size: 15px; }
.soon svg { width: 22px; height: 22px; fill: #7ddc8c; }
.soon b { color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--card-line); color: var(--muted); font-size: 15px; }
.facts li { white-space: nowrap; }
.facts b { color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 18px; margin-right: 4px; }

/* phones */
.phone {
  margin: 0; position: relative;
  border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #3a3060, #17122e 50%, #2b2350);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -12px rgba(0,0,0,.6), 0 12px 24px -8px rgba(0,0,0,.5);
}
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 780 / 1688; object-fit: cover; background: #0b1424; }
.phone::after { /* glass sheen */
  content: ""; position: absolute; inset: 9px; border-radius: 30px; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.10) 0%, transparent 32%);
}

.hero__art { position: relative; height: clamp(520px, 52vw, 640px); }
.hero__art .glow {
  position: absolute; left: 50%; top: 52%; width: 82%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 181, 71, .35), rgba(139, 92, 255, .18) 45%, transparent 70%);
  filter: blur(10px);
}
.phone--back, .phone--front { position: absolute; width: clamp(220px, 23vw, 280px); }
.phone--back { left: 4%; top: 6%; rotate: -8deg; filter: saturate(.95) brightness(.88); }
.phone--front { right: 4%; top: 12%; rotate: 5deg; }
.js .phone--back, .js .phone--front { animation: floatA 7s ease-in-out infinite; }
.js .phone--front { animation-name: floatB; animation-duration: 8s; }
@keyframes floatA { 50% { translate: 0 -10px; } }
@keyframes floatB { 50% { translate: 0 10px; } }
.bubble { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), rgba(255,255,255,.15) 40%, rgba(255,255,255,.04) 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.b1 { width: 22px; height: 22px; left: 46%; top: 6%; animation: rise 9s linear infinite; }
.b2 { width: 14px; height: 14px; left: 88%; top: 70%; animation: rise 7s linear infinite -3s; }
.b3 { width: 10px; height: 10px; left: 2%; top: 80%; animation: rise 11s linear infinite -6s; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-160px); opacity: 0; } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .lead { margin-inline: auto; }
  .cta, .facts { justify-content: center; }
  .hero__art { height: auto; aspect-ratio: 1 / 0.95; max-width: 520px; width: 100%; margin: 12px auto 0; }
  .phone--back, .phone--front { width: 46%; }
}

/* ── Try / demo ──────────────────────────────────────── */
.try { background: linear-gradient(180deg, var(--night), #110c29 40%, var(--night)); }
.try__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.steps { margin-top: 28px; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; color: var(--muted); }
.steps span {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font: 600 20px/1 var(--display); color: #2a1600;
  background: linear-gradient(180deg, var(--gold), var(--amber));
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.15);
}
.steps b { color: var(--ink); }
.steps em { color: var(--mint); font-style: normal; font-weight: 700; }
.hint { margin-top: 26px; color: var(--faint); font-size: 15px; }

.board-card {
  position: relative; border-radius: 30px; padding: 18px 18px 28px;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(92, 160, 255, .16), transparent 70%),
    linear-gradient(160deg, #0d2240, #091830 60%, #060d1a);
  box-shadow: 0 0 0 1px rgba(120, 190, 255, .16), 0 40px 80px -30px rgba(0,0,0,.8);
  overflow: hidden;
}
.board-card__bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.moves { font: 600 18px/1 var(--display); color: #cfe4ff; min-width: 92px; }
.moves span { font-variant-numeric: tabular-nums; }
.mini-stars { display: flex; gap: 3px; }
.mini-stars i { width: 18px; height: 18px; display: block; background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); transition: opacity .3s, transform .3s var(--ease-spring); }
.mini-stars i.off { opacity: .18; transform: scale(.8); }
.board-card__tools { display: flex; gap: 8px; margin-left: auto; }
.tool {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.08); color: var(--ink);
  font: 700 14px/1 var(--body); transition: background .15s, opacity .15s, transform .12s;
}
.tool svg { width: 16px; height: 16px; fill: currentColor; }
.tool:hover:not(:disabled) { background: rgba(255,255,255,.14); }
.tool:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.tool:disabled { opacity: .35; cursor: default; }

.board {
  --bw: clamp(54px, 7.4vw, 80px);
  display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap;
  gap: clamp(2px, 1vw, 12px);
  min-height: 320px; padding: 74px 4px 6px;
  touch-action: manipulation;
}
@media (max-width: 900px) { .try__grid { grid-template-columns: 1fr; } .try__copy { max-width: 620px; } }
@media (max-width: 480px) { .board { --bw: 52px; gap: 2px; padding-top: 60px; min-height: 250px; } .board-card { padding: 14px 10px 22px; } .moves { min-width: 0; } }

/* the bottle — drawn in SVG like the game's (see bottleSvg in main.js) */
.bottle {
  --rim-c: rgba(120, 210, 255, .85); --rim-w: 1.05; --rim-o: .42;
  position: relative; width: var(--bw); aspect-ratio: 80 / 200;
  border: 0; padding: 0; background: none; cursor: pointer;
  transition: transform .25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}
.btl { display: block; width: 100%; height: 100%; overflow: visible; }
.bottle .btl { filter: drop-shadow(0 2px 8px rgba(0,0,0,.55)); transition: filter .2s; }
.btl .rim { stroke: var(--rim-c); stroke-width: var(--rim-w); stroke-opacity: var(--rim-o); transition: stroke .2s, stroke-width .2s, stroke-opacity .2s; }
.btl .lip { stroke: var(--rim-c); stroke-width: calc(var(--rim-w) * .9); stroke-opacity: var(--rim-o); }
.btl .bore { stroke: var(--rim-c); stroke-width: .8; stroke-opacity: calc(var(--rim-o) * .85); }
.btl .lip-low { stroke-width: calc(var(--rim-w) * .9); }
.btl .chk { opacity: 0; transition: opacity .3s; }

.bottle:focus-visible { outline: none; }
.bottle:focus-visible .btl { filter: drop-shadow(0 0 0 var(--gold)) drop-shadow(0 0 6px var(--gold)); }
.bottle.is-up { transform: translateY(-18px) scale(1.08); --rim-c: #7dd3fc; --rim-w: 2.2; --rim-o: 1; }
.bottle.is-up .btl { filter: drop-shadow(0 0 10px #7dd3fc) drop-shadow(0 0 3px #fff5); }
.bottle.is-done { --rim-c: #88ffaa; --rim-w: 1.6; --rim-o: 1; }
.bottle.is-done .btl { filter: drop-shadow(0 0 14px var(--glow, #fff9)) drop-shadow(0 0 4px #fff3); }
.bottle.is-done .chk { opacity: 1; }
/* in motion the shadow is dropped, as in the game: it costs every frame */
.bottle.is-pouring { z-index: 5; transition: none; }
.bottle.is-pouring .btl, .bottle.is-moving .btl { filter: none; }
.bottle.shake { animation: shake .36s; }
.bottle.shake .rim { animation: rejectRim .5s ease-out; }
@keyframes shake { 20% { translate: -6px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 3px 0; } }
@keyframes rejectRim { 0%, 30% { stroke: #ff4d4d; stroke-width: 2.6; stroke-opacity: 1; } }

.stream {
  position: absolute; z-index: 4; width: 6px; border-radius: 3px; pointer-events: none;
  transform-origin: 50% 0; transform: scaleY(0);
  transition: transform .14s ease-out;
}
.stream.on { transform: scaleY(1); }
.flash { position: absolute; z-index: 6; width: 64px; height: 64px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,244,190,.95), rgba(255,210,120,0) 70%); }
.spark { position: absolute; z-index: 7; pointer-events: none; line-height: 0; }

.win {
  position: absolute; inset: 0; z-index: 10; display: grid; place-items: center;
  background: rgba(6, 10, 26, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: fadeIn .35s ease both;
}
.win[hidden] { display: none; }
.win__in { text-align: center; padding: 24px; animation: pop .5s var(--ease-spring) both .1s; }
.win__stars { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.win__stars i { width: 46px; height: 46px; background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 0 10px rgba(255, 211, 107, .6)); animation: pop .5s var(--ease-spring) both; }
.win__stars i:nth-child(2) { animation-delay: .12s; translate: 0 -8px; }
.win__stars i:nth-child(3) { animation-delay: .24s; }
.win__stars i.off { background: rgba(255,255,255,.18); filter: none; }
.win h3 { font-size: 40px; }
.win p { color: var(--muted); margin-top: 6px; }
.win__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
.noscript { text-align: center; color: var(--muted); padding: 20px; }

/* ── Worlds ──────────────────────────────────────────── */
.worlds { overflow: hidden; }
.rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px 0 30px; }
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -3px; }
.rail__in {
  display: flex; gap: clamp(16px, 2.4vw, 28px); width: max-content;
  padding-inline: max(16px, calc((100vw - 1160px) / 2));
}
.world { width: clamp(200px, 19vw, 224px); scroll-snap-align: center; text-align: center; }
.world .phone { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 50px -18px color-mix(in srgb, var(--w) 55%, transparent), 0 12px 24px -8px rgba(0,0,0,.5); transition: transform .3s var(--ease-out); }
.world:hover .phone { transform: translateY(-6px); }
.world h3 { font-size: 21px; margin-top: 20px; }
.world h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--w); margin-right: 8px; vertical-align: 2px; box-shadow: 0 0 10px var(--w); }
.world p { color: var(--faint); font-size: 14px; margin-top: 4px; font-weight: 700; }
.chest-note {
  display: flex; align-items: center; gap: 20px; margin-top: 30px;
  padding: 20px 26px; border-radius: var(--radius);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line);
  max-width: 760px;
}
.chest-note img { width: 72px; flex: none; }
.chest-note p { color: var(--muted); }
.chest-note b { color: var(--ink); }

/* ── Stars ───────────────────────────────────────────── */
.stars { background: radial-gradient(60% 50% at 80% 30%, rgba(255, 181, 71, .12), transparent 70%); }
.stars__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.stars .phone--tilt { width: min(300px, 100%); justify-self: center; rotate: 3deg; }
.rule { margin-top: 28px; display: grid; gap: 10px; }
.rule div { display: flex; align-items: center; gap: 14px; color: var(--muted); padding: 12px 18px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
.rule b { color: var(--ink); }
.rule span { width: 72px; flex: none; color: var(--gold); letter-spacing: 2px; font-size: 18px; }
.note { color: var(--faint); font-size: 15px; margin-top: 18px; }
@media (max-width: 860px) { .stars__grid { grid-template-columns: 1fr; } }

.collection { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.col { padding: 24px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
.col h3 { font-size: 22px; margin-bottom: 14px; }
.items { display: grid; gap: 8px; }
.item { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 14px; transition: background .15s; }
.item:hover { background: rgba(255,255,255,.04); }
.item .name { font-weight: 800; }
.item .req { margin-left: auto; font: 600 15px/1 var(--display); color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item .req.free { color: var(--mint); font-family: var(--body); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.sw { width: 40px; height: 40px; flex: none; border-radius: 12px; }
.sw--btl { --rim-w: 1.05; --rim-o: .7; width: 19px; height: 48px; margin-inline: 10px; }
.sw--btl .btl { filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.sw--theme { background: var(--bg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.sw--cat { display: grid; place-items: center; background: rgba(255,255,255,.05); }
.sw--cat svg { width: 34px; height: 34px; }
.pace { text-align: center; color: var(--faint); margin-top: 22px; font-size: 15px; }
@media (max-width: 900px) { .collection { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ── Daily ───────────────────────────────────────────── */
.daily { background: linear-gradient(180deg, var(--night), #120c2c 50%, var(--night)); }
.daily__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.daily .phone { width: min(300px, 100%); justify-self: center; rotate: -3deg; }
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 28px; }
.streak li {
  display: grid; justify-items: center; gap: 4px; padding: 12px 4px 10px; border-radius: 14px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line);
}
.streak small { color: var(--faint); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.streak b { font: 600 18px/1 var(--display); color: var(--gold); }
.streak b::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; background: radial-gradient(circle at 35% 35%, #ffe9a6, #f0a923 60%, #c27a0e); }
.streak .jackpot { background: linear-gradient(180deg, rgba(255, 211, 107, .22), rgba(255, 181, 71, .08)); box-shadow: inset 0 0 0 1px rgba(255, 211, 107, .5), 0 0 24px rgba(255, 181, 71, .2); }
.spin { display: flex; align-items: center; gap: 16px; margin-top: 26px; color: var(--muted); }
.spin img { width: 56px; border-radius: 14px; flex: none; }
.spin b { color: var(--ink); }
@media (max-width: 860px) {
  .daily__grid { grid-template-columns: 1fr; }
  .daily .phone { order: 2; }
}
@media (max-width: 480px) {
  .streak { grid-template-columns: repeat(4, 1fr); }
  .streak .jackpot { grid-column: span 1; }
}

/* ── Helpers ─────────────────────────────────────────── */
.helper-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.helper { padding: 30px 26px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); text-align: center; transition: transform .25s var(--ease-out), background .25s; }
.helper:hover { transform: translateY(-4px); background: rgba(255,255,255,.06); }
.helper img { width: 84px; height: 84px; object-fit: contain; margin: 0 auto 18px; border-radius: 22px; }
.helper h3 { font-size: 24px; }
.helper p { color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) { .helper-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }

/* ── FAQ ─────────────────────────────────────────────── */
.faq__in { max-width: 780px; }
.qs { display: grid; gap: 10px; }
details { border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); transition: background .2s; }
details[open] { background: rgba(255,255,255,.06); }
summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font: 600 19px/1.3 var(--display);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold);
  transform: rotate(45deg); transition: transform .25s var(--ease-out), margin .25s;
}
details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
details p { padding: 0 24px 22px; color: var(--muted); }

/* ── Final + footer ──────────────────────────────────── */
.final { padding: clamp(80px, 10vw, 130px) 0; position: relative; overflow: hidden; isolation: isolate; }
.final::before {
  content: ""; position: absolute; inset: -24px; z-index: -2;
  background: url("assets/img/home-bg.webp") center 35% / cover no-repeat;
  filter: blur(8px) saturate(1.25) brightness(.75);
}
.final::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--night) 0%, rgba(12,10,31,.35) 35%, rgba(12,10,31,.55) 75%, var(--night) 100%);
}
.final__in { text-align: center; }
.final__in img { margin: 0 auto 22px; border-radius: 22px; box-shadow: 0 0 0 3px rgba(255, 211, 107, .6), 0 20px 40px rgba(0,0,0,.5); }
.final h2 { font-size: clamp(34px, 5vw, 60px); text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.final p { color: #ddd5f5; margin: 14px auto 32px; font-size: 19px; text-shadow: 0 2px 12px rgba(0,0,0,.7); }

.foot { border-top: 1px solid var(--card-line); padding: 34px 0 40px; color: var(--faint); font-size: 15px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.brand--foot { font-size: 18px; color: var(--ink); }
.brand--foot img { border-radius: 8px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot .copy { margin-left: auto; }
@media (max-width: 640px) { .foot__in { flex-direction: column; text-align: center; } .foot .copy { margin-left: 0; } }

/* ── Reveal ──────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .rail .reveal:nth-child(2) { transition-delay: .06s; }
.js .rail .reveal:nth-child(3) { transition-delay: .12s; }
.js .rail .reveal:nth-child(4) { transition-delay: .18s; }
.js .rail .reveal:nth-child(5) { transition-delay: .24s; }
.js .helper.reveal:nth-child(2) { transition-delay: .08s; }
.js .helper.reveal:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── Legal pages ─────────────────────────────────────── */
.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 110px); }
.legal__in { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 60px); margin-top: 0; }
.legal__meta { color: var(--faint); margin-top: 12px; font-size: 15px; }
.tldr { margin-top: 32px; padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(94, 240, 180, .10), rgba(94, 240, 180, .04)); box-shadow: inset 0 0 0 1px rgba(94, 240, 180, .3); }
.tldr p { color: var(--ink); }
.toc { margin-top: 28px; padding: 20px 24px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
.toc ol { list-style: decimal; padding-left: 22px; columns: 2; column-gap: 32px; color: var(--faint); }
.toc li { padding: 3px 0; break-inside: avoid; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.legal section { margin-top: 48px; scroll-margin-top: 90px; }
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 14px; }
.legal section p, .legal section li { color: var(--muted); }
.legal section p + p, .legal section ul + p, .legal section p + ul { margin-top: 14px; }
.legal section ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.legal b { color: var(--ink); }
.legal a { color: var(--gold); text-underline-offset: 3px; }
.legal a:hover { color: #ffe39a; }
.legal code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--ink); }
@media (max-width: 600px) { .toc ol { columns: 1; } }
