@charset "utf-8";
/* ==========================================================================
   Jeweled Classic — jeweled-classic.weez.dev
   Hand-written, no framework, no build step.
   Palette and gem colours are sampled from the game's own vector sprites.
   ========================================================================== */

/* --------------------------------------------------------------- 1. fonts */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fredoka-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fredoka-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* metric-matched fallbacks so the swap costs ~no layout shift */
@font-face {
  font-family: 'Fredoka Fallback';
  src: local('Segoe UI'), local('Roboto'), local('Arial');
  size-adjust: 107%; ascent-override: 96%; descent-override: 26%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Nunito Fallback';
  src: local('Segoe UI'), local('Roboto'), local('Helvetica Neue'), local('Arial');
  size-adjust: 103%; ascent-override: 101%; descent-override: 35%; line-gap-override: 0%;
}

/* --------------------------------------------------------------- 2. tokens */

:root {
  --font-display: 'Fredoka', 'Fredoka Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Nunito', 'Nunito Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* ground — four depths of cosmic violet, never a fifth */
  --bg-void: #0b0220;
  --bg-deep: #150733;
  --bg-mid: #23104f;
  --bg-raise: #2d1566;

  /* washes, laid on top of a depth, two per section maximum */
  --wash-magenta: radial-gradient(62% 44% at 50% 0%, rgba(255, 46, 154, .30), rgba(255, 46, 154, 0) 70%);
  --wash-cyan: radial-gradient(54% 40% at 88% 16%, rgba(34, 227, 255, .22), rgba(34, 227, 255, 0) 72%);
  --wash-violet: radial-gradient(72% 62% at 10% 94%, rgba(150, 72, 255, .24), rgba(150, 72, 255, 0) 70%);

  /* surfaces */
  --surface-1: rgba(255, 255, 255, .06);
  --surface-2: rgba(255, 255, 255, .09);
  --surface-1-solid: #23163f;
  --surface-2-solid: #37265f;
  --surface-3-solid: #3d2d64;

  --edge: rgba(255, 255, 255, .14);
  --edge-strong: rgba(255, 255, 255, .26);
  --edge-cyan: rgba(34, 227, 255, .48);
  --edge-magenta: rgba(255, 46, 154, .48);
  --edge-inner-hi: rgba(255, 255, 255, .22);
  --edge-inner-lo: rgba(10, 2, 30, .50);

  /* text ramp — four steps, #b9a6d9 is the floor */
  --text-hi: #f6f1ff;
  --text: #efe6ff;
  --text-mut: #d3c2f0;
  --text-dim: #b9a6d9;
  --ink: #0b0220;
  --ink-soft: #150733;

  /* accents: graphic-only vs text-safe */
  --magenta: #ff2e9a;
  --pink: #ff5fb4;
  --cyan: #22e3ff;
  --gold: #ffc610;
  --gold-lt: #ffd84d;
  --pink-ink: #ff8ecb;
  --purple-ink: #cf9bff;
  --red-ink: #ff8a8a;

  /* the seven gems, sampled from the sprites */
  --gem-blue: #1bdcff;
  --gem-white: #ffffff;
  --gem-yellow: #ffc610;
  --gem-red: #fc0a16;
  --gem-orange: #ffac00;
  --gem-green: #00cc00;
  --gem-purple: #be72ff;

  /* in-game chrome, sampled from the screenshots */
  --frame-gold: #b0a54b;
  --frame-gold-lt: #d8cc72;
  --frame-dark: #040200;
  --tile-a: #313328;
  --tile-b: #484d37;
  --meter-fill: #63cc4c;
  --meter-bonus: #c236cb;
  --meter-empty: #948e52;
  --meter-low: #fc0a16;

  /* glows — three recipes, gold is reserved for the download button */
  --glow-cyan: 0 0 32px -6px rgba(34, 227, 255, .60);
  --glow-magenta: 0 0 36px -6px rgba(255, 46, 154, .62);
  --glow-gold: 0 0 44px -8px rgba(255, 198, 16, .58);
  --glow-cyan-sm: 0 0 16px -4px rgba(34, 227, 255, .55);
  --glow-magenta-sm: 0 0 18px -4px rgba(255, 46, 154, .55);

  --lift-1: 0 6px 18px -10px rgba(5, 1, 20, .80);
  --lift-2: 0 18px 40px -18px rgba(5, 1, 20, .85);
  --lift-3: 0 34px 70px -28px rgba(5, 1, 20, .92);
  --bevel: inset 0 1px 0 var(--edge-inner-hi), inset 0 -1px 0 var(--edge-inner-lo);

  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 80px; --s-10: 104px;

  --gutter: clamp(16px, 4vw, 40px);
  --container: 1180px;
  --container-narrow: 720px;
  --container-wide: 1440px;
  --section-y: clamp(64px, 9vw, 128px);
  --section-y-lg: clamp(80px, 12vw, 168px);
  --gap: clamp(16px, 2.4vw, 28px);

  --dur-fast: 140ms; --dur: 260ms; --dur-slow: 620ms; --dur-bloom: 900ms;
  --ease: cubic-bezier(.22, .68, 0, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* type scale */
  --fs-hero: clamp(2.5rem, 1.35rem + 5.8vw, 5.25rem);
  --fs-h2: clamp(1.875rem, 1.28rem + 2.6vw, 3.125rem);
  --fs-h3: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  --fs-h4: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --fs-stat: clamp(2.25rem, 1.4rem + 4.2vw, 3.75rem);
  --fs-lead: clamp(1.0625rem, .99rem + .45vw, 1.375rem);
  --fs-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --fs-sm: clamp(.875rem, .85rem + .12vw, .9375rem);
  --fs-eyebrow: clamp(.8125rem, .79rem + .1vw, .875rem);
  --fs-micro: .75rem;
}

/* ----------------------------------------------------------- 3. base */

*, *::before, *::after { box-sizing: border-box; }

/* The user-agent [hidden] rule is an author-level display away from being
   ignored, and several components here set display in a class. */
[hidden] { display: none !important; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  scrollbar-color: #4b2f86 var(--bg-deep);
  -webkit-text-size-adjust: 100%;
}
@supports not (overflow: clip) { html { overflow-x: hidden; } }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-hi);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); font-weight: 700; line-height: .96; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.06; letter-spacing: -.015em; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.22; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; }

p { margin: 0; max-width: 68ch; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-lt); }

strong { font-weight: 700; color: var(--text-hi); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
::selection { background: var(--magenta); color: var(--ink); }

:lang(fr) .card, :lang(fr) .stat__label, :lang(fr) .gem__name { hyphens: auto; -webkit-hyphens: auto; }

/* -------------------------------------------- 3b. the two languages
   Both languages ship in the HTML and CSS shows exactly one, keyed on the
   <html lang> the head bootstrap sets. No flash, and with JS disabled the
   page is complete in English. */

html[lang="en"] [lang="fr"],
html[lang="fr"] [lang="en"] { display: none !important; }

/* ------------------------------------------------------- 4. utilities */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.wrap--narrow { max-width: var(--container-narrow); }
.wrap--wide { max-width: var(--container-wide); }

.section { padding-block: var(--section-y); position: relative; }
.section--lg { padding-block: var(--section-y-lg); }
.section--mid { background: var(--bg-mid); }
.section--void { background: var(--bg-void); }
.section__head { display: grid; gap: var(--s-3); justify-items: start; margin-bottom: var(--s-7); }
.section__head--center { justify-items: center; text-align: center; margin-inline: auto; }
.section__head p { max-width: 56ch; }

.lead { font-size: var(--fs-lead); font-weight: 500; line-height: 1.55; color: var(--text-mut); max-width: 56ch; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 50%; top: 0;
  translate: -50% -140%;
  z-index: 200;
  padding: 12px 20px;
  background: var(--cyan); color: var(--ink);
  font-family: var(--font-display); font-weight: 600;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none;
  transition: translate var(--dur) var(--ease);
}
.skip-link:focus-visible { translate: -50% 0; color: var(--ink); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.eyebrow::before {
  content: '';
  width: 9px; height: 9px;
  rotate: 45deg;
  border-radius: 2px;
  background: var(--magenta);
  box-shadow: var(--glow-magenta-sm);
  flex: none;
}

/* the arcade headline: gradient fill + neon stroke ghost behind it */
.arcade {
  position: relative;
  color: #fff6fb;
  text-shadow:
    0 2px 0 #7a0d4b,
    0 4px 0 #4a0730,
    0 6px 14px rgba(11, 2, 32, .75),
    0 0 22px rgba(255, 46, 154, .45);
}
.arcade__ghost { display: none; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .arcade { text-shadow: none; color: transparent; isolation: isolate; }
  .arcade__ghost {
    display: block;
    position: absolute; inset: 0; z-index: 0;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: clamp(3px, .058em, 9px) var(--cyan);
    paint-order: stroke fill;
    filter: drop-shadow(0 0 14px rgba(34, 227, 255, .75));
    pointer-events: none;
  }
  .arcade__fill {
    position: relative; z-index: 1;
    display: block;
    background: linear-gradient(180deg, #fffdfe 0%, #ffd9ec 32%, #ff5fb4 60%, #ff2e9a 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 2px 0 #240a3e) drop-shadow(0 5px 12px rgba(11, 2, 32, .70));
  }
  .arcade--cool .arcade__fill { background-image: linear-gradient(180deg, #ffffff 0%, #bff3ff 30%, #22e3ff 62%, #8a5cff 100%); }
  .arcade--cool .arcade__ghost {
    -webkit-text-stroke-color: var(--magenta);
    filter: drop-shadow(0 0 14px rgba(255, 46, 154, .7));
  }
}

/* cards */
.card {
  position: relative;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1)), var(--surface-1-solid);
  border: 1px solid var(--edge);
  box-shadow: var(--bevel), var(--lift-2);
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.card:hover, .card:focus-within { transform: translateY(-4px); border-color: var(--edge-strong); box-shadow: var(--bevel), var(--lift-3); }

/* the download button — the only gold glow on the site */
.cta-pad {
  position: relative;
  display: inline-block;
  padding: 14px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .20);
  box-shadow: var(--glow-gold), var(--lift-2);
  overflow: hidden;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cta-pad img { position: relative; z-index: 1; width: clamp(200px, 46vw, 264px); height: auto; }
.cta-pad:hover, .cta-pad:focus-visible {
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 0 56px -6px rgba(255, 198, 16, .72), var(--lift-3);
  transform: translateY(-2px);
}
.cta-pad:active { transform: translateY(0); }
.cta-pad--lg img { width: clamp(220px, 56vw, 300px); }
.cta-pad::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .20) 50%, transparent 62%);
  translate: -120% 0;
  pointer-events: none;
}
.cta-pad--sweep::after { animation: sweep 6s var(--ease) infinite; }
@keyframes sweep { 0%, 72% { translate: -120% 0; } 88%, 100% { translate: 120% 0; } }

.cta-block { display: grid; gap: var(--s-4); justify-items: center; }

.trust {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-2) var(--s-3);
  font-size: var(--fs-sm); color: var(--text-mut);
  margin: 0;
}
.trust li { display: flex; align-items: center; gap: var(--s-3); }
.trust li + li::before {
  content: '';
  width: 7px; height: 7px; rotate: 45deg; border-radius: 1px;
  background: var(--cyan); opacity: .8; flex: none;
}

/* the game's own gold picture frame */
.frame {
  --frame-w: 4px;
  display: inline-block;
  padding: var(--frame-w);
  border-radius: var(--r-xs);
  background: linear-gradient(180deg, var(--frame-gold-lt), var(--frame-gold));
  box-shadow: var(--lift-3);
  max-width: 100%;
}
.frame > * { display: block; border: 2px solid var(--frame-dark); border-radius: 3px; width: 100%; height: auto; }

/* a gem sprite on a dark ground always needs its own halo */
.gem-sprite { width: 100%; height: auto; }
.gem-sprite--blue { filter: drop-shadow(0 0 12px rgba(27, 220, 255, .55)); }
.gem-sprite--white { filter: drop-shadow(0 0 12px rgba(255, 255, 255, .50)); }
.gem-sprite--yellow { filter: drop-shadow(0 0 12px rgba(255, 198, 16, .55)); }
.gem-sprite--red { filter: drop-shadow(0 0 12px rgba(252, 10, 22, .55)); }
.gem-sprite--orange { filter: drop-shadow(0 0 12px rgba(255, 172, 0, .55)); }
.gem-sprite--green { filter: drop-shadow(0 0 12px rgba(0, 204, 0, .55)); }
.gem-sprite--purple { filter: drop-shadow(0 0 12px rgba(190, 114, 255, .55)); }

/* scroll reveal — content is visible without JS, hidden only once JS runs */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

/* ------------------------------------------------------------ 5. seams */

.seam { position: relative; pointer-events: none; }

.seam-aurora { height: clamp(56px, 8vw, 96px); margin-bottom: -1px; }
.seam-aurora::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--next-bg, var(--bg-mid));
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: 0 -18px 44px -20px rgba(255, 46, 154, .45);
}

.seam-rule { height: clamp(44px, 6vw, 56px); display: grid; place-items: center; }
.seam-rule::before {
  content: '';
  display: block; height: 1px; width: min(880px, 86%);
  background: linear-gradient(90deg, transparent, var(--cyan) 28%, var(--magenta) 62%, transparent);
  box-shadow: 0 0 14px rgba(34, 227, 255, .55);
}

.seam-strip {
  height: clamp(56px, 8vw, 76px);
  overflow: hidden;
  display: grid; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.seam-strip__track {
  display: flex;
  width: max-content;
  opacity: .45;
  animation: drift 44s linear infinite;
}
.seam-strip__track img { width: 26px; height: 26px; margin-inline-end: 56px; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.seam-glow { height: clamp(120px, 20vw, 220px); margin-block: calc(-1 * clamp(60px, 10vw, 110px)); }
.seam-glow::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 100% at 50% 50%, rgba(255, 46, 154, .20), transparent 70%);
}

.seam-cut { clip-path: polygon(0 clamp(20px, 3vw, 48px), 100% 0, 100% 100%, 0 100%); margin-top: calc(-1 * clamp(20px, 3vw, 48px)); }

/* ------------------------------------------------------------- 6. hero */

.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px);
  background-color: var(--bg-deep);
  overflow: clip;
}
/* The photograph is bright (peak relative luminance 0.88), so it is held at
   30% and a scrim sits between it and the copy. Both layers are needed: the
   opacity alone still leaves ~2.3:1 behind the lead paragraph. */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    image-set(url('../img/bg/cosmos-800.webp') type('image/webp'), url('../img/bg/cosmos-1280.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center 20%;
  opacity: .30;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(86% 64% at var(--scrim-x, 50%) 52%, rgba(11, 2, 32, .86), rgba(11, 2, 32, .52) 52%, rgba(11, 2, 32, 0) 82%),
    var(--wash-magenta),
    var(--wash-cyan),
    linear-gradient(180deg, rgba(11, 2, 32, .55) 0%, rgba(11, 2, 32, 0) 26%, rgba(11, 2, 32, .28) 68%, var(--bg-deep) 100%);
}
.hero > * { position: relative; z-index: 3; }

.hero__grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero__copy { display: grid; gap: var(--s-5); justify-items: center; text-align: center; }
.hero__logo-wrap { position: relative; display: inline-block; }
.hero__logo-wrap::before {
  content: '';
  position: absolute; inset: -16% -12%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(34, 227, 255, .22), transparent 70%);
  z-index: -1;
}
.hero__logo { width: clamp(232px, 52vw, 400px); height: auto; }
.hero__title { margin: 0; }
.hero__lead { margin-inline: auto; }
.hero__note { font-size: var(--fs-micro); color: var(--text-dim); margin: 0; }
.hero__shot { justify-self: center; width: min(100%, 560px); }

/* the decorative gems drifting behind the hero copy */
.floaters { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: clip; }
.floater { position: absolute; width: var(--size, 64px); opacity: .85; will-change: transform; }
.floater img { width: 100%; height: auto; }
.floater--1 { --size: clamp(38px, 7vw, 78px); left: 3%; top: 10%; animation: bob1 17s ease-in-out infinite alternate; }
.floater--2 { --size: clamp(32px, 6vw, 64px); right: 5%; top: 7%; animation: bob2 21s ease-in-out infinite alternate; }
.floater--3 { --size: clamp(30px, 5.5vw, 58px); right: 10%; bottom: 12%; animation: bob3 19s ease-in-out infinite alternate; }
.floater--4 { --size: clamp(34px, 6vw, 70px); left: 8%; bottom: 8%; animation: bob2 23s ease-in-out infinite alternate; }
.floater--5 { --size: clamp(26px, 4.5vw, 48px); left: 46%; top: 3%; animation: bob1 15s ease-in-out infinite alternate; }
@keyframes bob1 { from { transform: translate3d(0, 0, 0) rotate(-6deg); } to { transform: translate3d(10px, -20px, 0) rotate(8deg); } }
@keyframes bob2 { from { transform: translate3d(0, -14px, 0) rotate(5deg); } to { transform: translate3d(-14px, 12px, 0) rotate(-7deg); } }
@keyframes bob3 { from { transform: translate3d(6px, 8px, 0) rotate(3deg); } to { transform: translate3d(-8px, -16px, 0) rotate(-9deg); } }
@media (max-width: 719px) { .floater--3, .floater--4, .floater--5 { display: none; } }

/* the logo bloom, once, on load */
.js .hero__logo { animation: bloom var(--dur-bloom) var(--ease) both; }
@keyframes bloom { from { transform: scale(.93); } to { transform: none; } }

/* --------------------------------------------------------- 7. gems rail */

.gems__rail {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-block: var(--s-2) var(--s-5);
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.gems__rail::-webkit-scrollbar { display: none; }
.gems__rail:focus-visible, .shots__rail:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: var(--r-md); }

.gem {
  flex: 0 0 min(74vw, 268px);
  scroll-snap-align: center;
  display: grid;
  gap: var(--s-3);
  justify-items: start;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--chip, rgba(255, 255, 255, .06)), var(--bg-mid);
  border: 1px solid var(--chip-edge, var(--edge));
  box-shadow: var(--bevel), var(--lift-2);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gem__figure { width: clamp(64px, 16vw, 88px); }
.gem__name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h4); color: var(--text-hi); }
.gem__desc { font-size: var(--fs-sm); color: var(--text-mut); margin: 0; }
.gem:hover, .gem:focus-within, .gem.is-awake { transform: translateY(-6px); border-color: var(--chip-edge-hi, var(--edge-strong)); box-shadow: var(--bevel), var(--lift-3), var(--chip-glow, none); }
.gem:hover .gem__figure img, .gem:focus-within .gem__figure img, .gem.is-awake .gem__figure img {
  transform: rotate(-6deg) scale(1.08);
}
.gem__figure img { transition: transform 520ms var(--ease-spring); }

.gem--blue { --chip: linear-gradient(180deg, rgba(27, 220, 255, .18), rgba(27, 220, 255, .10)); --chip-edge: rgba(27, 220, 255, .38); --chip-edge-hi: rgba(27, 220, 255, .70); --chip-glow: 0 0 30px -8px rgba(27, 220, 255, .60); }
.gem--white { --chip: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .09)); --chip-edge: rgba(255, 255, 255, .38); --chip-edge-hi: rgba(255, 255, 255, .70); --chip-glow: 0 0 30px -8px rgba(255, 255, 255, .45); border-top-left-radius: 44px; }
.gem--yellow { --chip: linear-gradient(180deg, rgba(255, 198, 16, .18), rgba(255, 198, 16, .10)); --chip-edge: rgba(255, 198, 16, .38); --chip-edge-hi: rgba(255, 198, 16, .70); --chip-glow: 0 0 30px -8px rgba(255, 198, 16, .55); }
.gem--red { --chip: linear-gradient(180deg, rgba(252, 10, 22, .20), rgba(252, 10, 22, .10)); --chip-edge: rgba(252, 10, 22, .42); --chip-edge-hi: rgba(255, 90, 90, .72); --chip-glow: 0 0 30px -8px rgba(252, 10, 22, .60); border-top-left-radius: 4px; }
.gem--orange { --chip: linear-gradient(180deg, rgba(255, 172, 0, .18), rgba(255, 172, 0, .10)); --chip-edge: rgba(255, 172, 0, .38); --chip-edge-hi: rgba(255, 172, 0, .70); --chip-glow: 0 0 30px -8px rgba(255, 172, 0, .55); }
.gem--green { --chip: linear-gradient(180deg, rgba(0, 204, 0, .18), rgba(0, 204, 0, .10)); --chip-edge: rgba(0, 204, 0, .38); --chip-edge-hi: rgba(0, 204, 0, .70); --chip-glow: 0 0 30px -8px rgba(0, 204, 0, .55); }
.gem--purple { --chip: linear-gradient(180deg, rgba(190, 114, 255, .20), rgba(190, 114, 255, .10)); --chip-edge: rgba(190, 114, 255, .40); --chip-edge-hi: rgba(190, 114, 255, .72); --chip-glow: 0 0 30px -8px rgba(190, 114, 255, .60); }

.gems__hint { font-size: var(--fs-sm); color: var(--text-dim); margin-top: var(--s-2); }
.gems__note { margin-top: var(--s-5); color: var(--text-mut); font-size: var(--fs-sm); }

@media (min-width: 720px) {
  .gems__rail {
    display: flex; flex-wrap: wrap; justify-content: center;
    overflow: visible; margin-inline: 0; padding-inline: 0;
  }
  .gem { flex: 0 1 clamp(210px, 30%, 250px); }
  .gems__hint { display: none; }
}
@media (min-width: 1024px) {
  .gem:nth-child(even) { transform: translateY(18px); }
  .gem:nth-child(even):hover, .gem:nth-child(even):focus-within, .gem:nth-child(even).is-awake { transform: translateY(12px); }
}

/* ------------------------------------------------------ 8. how to play */

.howto__grid { display: grid; gap: clamp(32px, 5vw, 64px); }

.board-wrap { display: grid; gap: var(--s-3); justify-items: center; }
.board-cap { font-size: var(--fs-sm); color: var(--text-dim); text-align: center; margin: 0; }

.board {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background:
    repeating-conic-gradient(var(--tile-a) 0% 25%, var(--tile-b) 0% 50%)
    0 0 / calc(200% / var(--cols, 6)) calc(200% / var(--rows, 6));
  box-shadow:
    0 0 0 4px var(--frame-gold),
    0 0 0 7px var(--frame-dark),
    var(--lift-3);
  /* it is a demonstration, never an invitation to play */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.dgem {
  position: absolute;
  left: 0; top: 0;
  width: calc(100% / var(--cols, 6));
  height: calc(100% / var(--rows, 6));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 84% 84%;
  transform: translate(calc(var(--c, 0) * 100%), calc(var(--r, 0) * 100%));
  transition: transform 320ms var(--ease-spring), opacity 320ms linear, scale 320ms var(--ease);
}
.dgem.is-dropping { transition: none; }
.dgem.is-picked { filter: drop-shadow(0 0 10px rgba(255, 255, 255, .95)); scale: 1.14; }
.dgem.is-popping { opacity: 0; scale: 1.6; }
.board.is-static .dgem, .board.is-paused .dgem { transition: none; }

.board-foot { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; justify-content: center; }
.board-toggle {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--edge-strong);
  background: var(--surface-1-solid);
  cursor: pointer;
}
.board-toggle__icon {
  width: 0; height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--cyan);
  margin-left: 2px;
  display: none;
}
.board-toggle.is-paused .board-toggle__icon { display: block; }
.board-toggle:not(.is-paused)::before {
  content: '';
  width: 10px; height: 12px;
  border-left: 3px solid var(--cyan);
  border-right: 3px solid var(--cyan);
}
.board-toggle:hover { border-color: var(--edge-cyan); background: var(--surface-2-solid); }

.steps { display: grid; gap: var(--s-7); position: relative; }
.steps::before {
  content: '';
  position: absolute; left: 23px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--magenta), var(--cyan), var(--gold));
  opacity: .45;
}
.step { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); align-items: start; }
.step__badge {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  rotate: 45deg;
  border-radius: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--ink);
  box-shadow: var(--lift-1);
  transition: box-shadow var(--dur) var(--ease), scale var(--dur) var(--ease);
}
.step__badge > span { rotate: -45deg; }
.step:nth-child(1) .step__badge { background: var(--magenta); }
.step:nth-child(2) .step__badge { background: var(--cyan); }
.step:nth-child(3) .step__badge { background: var(--gold); }
.step.is-live .step__badge { scale: 1.06; box-shadow: var(--glow-magenta-sm), var(--lift-1); }
.step__body { display: grid; gap: var(--s-2); }
.step__body p { color: var(--text-mut); }

@media (min-width: 1024px) {
  .howto__grid { grid-template-columns: minmax(340px, 460px) 1fr; align-items: start; }
  .board-wrap { position: sticky; top: 88px; }
}

/* --------------------------------------------------------- 9. features */

.features__grid { display: grid; gap: var(--gap); }
@media (min-width: 560px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features__grid { grid-template-columns: repeat(3, 1fr); } }

.feature { display: grid; gap: var(--s-3); align-content: start; overflow: hidden; }
.feature::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent, var(--cyan)), transparent);
}
.feature__icon { width: 44px; }
.feature p { color: var(--text-mut); font-size: var(--fs-sm); }

/* ----------------------------------------------------- 10. bonus meter */

.bonus { position: relative; overflow: clip; }
.bonus__grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
.bonus__copy { display: grid; gap: var(--s-4); justify-items: start; }
.bonus__copy p { color: var(--text-mut); }
.bonus__quote {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-h3); color: var(--cyan);
  border-left: 3px solid var(--edge-cyan);
  padding-left: var(--s-4);
  margin: 0; max-width: 30ch;
}

.meter-block { display: grid; gap: var(--s-4); position: relative; }
.meter__label {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-eyebrow); letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
.meter {
  position: relative;
  height: clamp(28px, 5vw, 40px);
  border-radius: var(--r-pill);
  background: rgba(148, 142, 82, .30);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.meter__fill {
  position: absolute; inset: 0 auto 0 0;
  width: 62%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #4fb83c, var(--meter-fill));
  transition: width 900ms var(--ease), background-color 400ms linear;
}
.meter__fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .28) 50%, transparent 60%);
  translate: -100% 0;
  animation: sheen 1.6s linear infinite;
}
.meter.is-bonus .meter__fill { background: linear-gradient(90deg, var(--meter-bonus), var(--magenta)); }
.meter.is-low .meter__fill { background: linear-gradient(90deg, #a3070f, var(--meter-low)); }
.meter.is-low { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6), 0 0 30px -6px rgba(252, 10, 22, .7); animation: dangerpulse 1.6s ease-in-out 5; }
@keyframes sheen { to { translate: 100% 0; } }
@keyframes dangerpulse { 50% { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6), 0 0 46px -4px rgba(252, 10, 22, .85); } }

.meter__pop {
  position: absolute; right: 8px; top: -6px;
  translate: 0 -100%;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--magenta), var(--meter-bonus));
  color: var(--ink);
  font-family: var(--font-display); font-weight: 700; letter-spacing: .06em;
  box-shadow: var(--glow-magenta), var(--lift-2);
  opacity: 0; scale: .7;
  transition: opacity 240ms var(--ease), scale 340ms var(--ease-spring);
}
.meter-block.is-bonus .meter__pop { opacity: 1; scale: 1; }

.bonus__inset { margin-top: calc(-1 * var(--s-5)); justify-self: end; width: min(100%, 340px); rotate: 4deg; }

@media (min-width: 1024px) {
  .bonus__grid { grid-template-columns: 1fr 1.1fr; }
}

/* ------------------------------------------------------ 11. screenshots */

.shot { display: grid; gap: var(--s-3); justify-items: center; }
.shot figcaption { font-size: var(--fs-sm); color: var(--text-mut); text-align: center; margin: 0; }
.shot__btn {
  display: block; padding: 0; border: 0; background: none;
  cursor: zoom-in; border-radius: var(--r-xs);
  width: 100%;
}

.shots__rail {
  display: flex; gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  padding-block-end: var(--s-4);
}
.shots__rail::-webkit-scrollbar { display: none; }
.shots__rail .shot { flex: 0 0 min(86vw, 620px); scroll-snap-align: center; }

.dots { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--s-4); }
.dots button {
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  display: grid; place-items: center;
}
.dots button::before {
  content: '';
  width: 11px; height: 11px; rotate: 45deg; border-radius: 2px;
  background: var(--text-dim); opacity: .4;
  transition: opacity var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.dots button[aria-current="true"]::before { background: var(--cyan); opacity: 1; box-shadow: var(--glow-cyan-sm); }

@media (min-width: 1024px) {
  .shots__rail {
    display: grid; grid-template-columns: repeat(3, 1fr);
    overflow: visible; margin-inline: 0; padding-inline: 0;
    align-items: center;
  }
  .shots__rail .shot { flex: none; }
  .shots__rail .shot:nth-child(1) { rotate: -2.5deg; translate: 3% 18px; z-index: 1; }
  .shots__rail .shot:nth-child(2) { scale: 1.06; z-index: 2; }
  .shots__rail .shot:nth-child(3) { rotate: 2.5deg; translate: -3% 18px; z-index: 1; }
  .dots { display: none; }
}

dialog.lightbox {
  border: 0; padding: 0;
  background: none;
  max-width: min(96vw, 1180px);
  max-height: 92vh;
  color: var(--text);
}
dialog.lightbox::backdrop { background: rgba(11, 2, 32, .86); backdrop-filter: blur(8px); }
.lightbox__inner { display: grid; gap: var(--s-3); position: relative; }
.lightbox__close {
  position: absolute; right: 8px; top: 8px; z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--edge-strong);
  background: rgba(11, 2, 32, .88);
  color: var(--cyan);
  font-size: 1.4rem; line-height: 1;
  cursor: pointer;
}
.lightbox__cap { font-size: var(--fs-sm); color: var(--text-mut); text-align: center; margin: 0; }

/* ------------------------------------------------------------ 12. stats */

.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-4); }
.stat { display: grid; gap: var(--s-1); justify-items: center; text-align: center; padding-inline: var(--s-2); position: relative; }
.stat__value {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-stat); line-height: .9; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text-hi);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .stat__value {
    background: var(--stat-grad, linear-gradient(180deg, #ffffff, #22e3ff));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}
.stat--1 { --stat-grad: linear-gradient(180deg, #ffffff, #22e3ff); }
.stat--2 { --stat-grad: linear-gradient(180deg, #ffffff, #ffc610); }
.stat--3 { --stat-grad: linear-gradient(180deg, #ffffff, #5cf06a); }
.stat--4 { --stat-grad: linear-gradient(180deg, #ffffff, #ff5fb4); }
.stat__label {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-eyebrow); letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim);
}
.stat__gloss { font-size: var(--fs-sm); color: var(--text-mut); margin: 0; max-width: 28ch; }
@media (max-width: 719px) {
  /* keep the four glosses on the same baseline when a label wraps to two lines */
  .stat__label { min-height: 2.6em; display: flex; align-items: center; }
}
@media (min-width: 720px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat + .stat::before {
    content: '';
    position: absolute; left: calc(-1 * var(--s-2)); top: 8%; bottom: 8%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--edge-cyan), transparent);
  }
}

/* -------------------------------------------------------------- 13. faq */

.faq__grid { display: grid; gap: clamp(28px, 4vw, 56px); }
.faq__list { display: grid; gap: var(--s-3); }
.faq__item {
  border-radius: var(--r-md);
  background: var(--surface-1-solid);
  border: 1px solid var(--edge);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.faq__item[open] { border-color: var(--edge-cyan); background: var(--surface-2-solid); box-shadow: inset 3px 0 0 var(--cyan); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h4);
  color: var(--text-hi);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:focus-visible { outline-offset: -3px; border-radius: var(--r-md); }
.faq__q::after {
  content: '';
  flex: none;
  width: 13px; height: 13px; rotate: 45deg; border-radius: 2px;
  border: 2px solid var(--cyan);
  transition: rotate var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.faq__item[open] .faq__q::after { rotate: 135deg; background: var(--cyan); }
.faq__a { padding: 0 var(--s-5) var(--s-5); color: var(--text-mut); max-width: 62ch; }
.faq__aside { display: grid; gap: var(--s-3); justify-items: start; align-content: start; }
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: .8fr 1.2fr; }
  .faq__aside { position: sticky; top: 88px; }
}

/* ---------------------------------------------------------- 14. final CTA */

.final {
  position: relative;
  text-align: center;
  overflow: clip;
  background-color: var(--bg-deep);
}
.final::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(180deg, var(--bg-deep) 0%, rgba(21, 7, 51, .62) 30%, rgba(11, 2, 32, .70) 62%, var(--bg-void) 100%),
    var(--wash-magenta),
    image-set(url('../img/bg/valley-640.webp') type('image/webp'), url('../img/bg/valley-1024.jpg') type('image/jpeg'));
  background-size: cover, cover, cover;
  background-position: center, center, center bottom;
}
@media (min-width: 900px) {
  .final::before {
    background-image:
      linear-gradient(180deg, var(--bg-deep) 0%, rgba(21, 7, 51, .62) 30%, rgba(11, 2, 32, .70) 62%, var(--bg-void) 100%),
      var(--wash-magenta),
      image-set(url('../img/bg/valley-1024.webp') type('image/webp'), url('../img/bg/valley-1024.jpg') type('image/jpeg'));
  }
}
.final > * { position: relative; z-index: 2; }
.final__inner { display: grid; gap: var(--s-5); justify-items: center; }
.final__arc { display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 1.6vw, 14px); margin-bottom: var(--s-2); }
.final__arc img { width: clamp(28px, 6vw, 52px); height: auto; }
.final__arc img:nth-child(1), .final__arc img:nth-child(7) { translate: 0 14px; rotate: -8deg; }
.final__arc img:nth-child(2), .final__arc img:nth-child(6) { translate: 0 6px; rotate: -4deg; }
.final__arc img:nth-child(4) { translate: 0 -6px; }
.js .final__arc img { animation: arcTwinkle 3.4s ease-in-out infinite alternate; }
.js .final__arc img:nth-child(2) { animation-delay: .3s; }
.js .final__arc img:nth-child(3) { animation-delay: .6s; }
.js .final__arc img:nth-child(4) { animation-delay: .9s; }
.js .final__arc img:nth-child(5) { animation-delay: 1.2s; }
.js .final__arc img:nth-child(6) { animation-delay: 1.5s; }
.js .final__arc img:nth-child(7) { animation-delay: 1.8s; }
@keyframes arcTwinkle { from { opacity: .85; } to { opacity: 1; scale: 1.06; } }

/* --------------------------------------------------------- 15. sticky CTA */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex; justify-content: center; align-items: center; gap: var(--s-4);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 2, 32, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--edge-cyan);
  translate: 0 110%;
  visibility: hidden;
  transition: translate var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.sticky-cta.is-shown {
  translate: 0 0;
  visibility: visible;
  transition: translate var(--dur) var(--ease), visibility 0s;
}
.sticky-cta img { width: 172px; height: auto; }
.sticky-cta__text { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--text-hi); }
@media (max-width: 379px) { .sticky-cta__text { display: none; } }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ------------------------------------------------------------ 16. footer */

.site-footer {
  background: var(--bg-void);
  padding-block: var(--s-7);
  text-align: center;
}
.site-footer__gem { width: 22px; margin: 0 auto var(--s-4); opacity: .5; }
.site-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-4); }
.site-footer p { margin: 0 auto; color: var(--text-dim); font-size: var(--fs-micro); max-width: 62ch; }
.site-footer p + p { margin-top: var(--s-2); }
.site-footer a { font-size: var(--fs-sm); }

/* ------------------------------------------------------- 17. legal page */

.doc-header {
  background: var(--bg-deep);
  padding-block: var(--s-6) var(--s-7);
  text-align: center;
  border-bottom: 1px solid var(--edge);
}
.doc-header__logo { display: block; width: 132px; margin: 0 auto var(--s-5); }
.doc-header__logo img { width: 100%; height: auto; }
.doc-header h1 { font-size: var(--fs-h2); }
.doc-header p { margin: var(--s-3) auto 0; color: var(--text-mut); }
.doc { padding-block: var(--section-y); }
.doc__body { font-size: var(--fs-body); line-height: 1.75; }
.doc__body h2 {
  font-size: var(--fs-h3); font-weight: 600;
  margin-block: var(--s-7) var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--edge);
}
.doc__body h2:first-child { margin-block-start: 0; }
.doc__body p { margin-block: 0 var(--s-4); max-width: none; color: var(--text); }
.doc__updated { font-size: var(--fs-sm); color: var(--text-dim); margin-block-start: var(--s-6); }
.doc__nav { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-7); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px; padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--edge-strong);
  background: var(--surface-1-solid);
  color: var(--text-hi);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-ghost:hover { border-color: var(--edge-cyan); background: var(--surface-2-solid); color: var(--text-hi); transform: translateY(-2px); }

/* ------------------------------------------------- 17b. remaining pieces */

/* --- top bar (desktop only; on a phone the bottom CTA does the job) --- */
.topbar { display: none; }
@media (min-width: 900px) {
  .topbar {
    display: block;
    position: sticky; top: 0; z-index: 80;
    background: rgba(11, 2, 32, .82);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    border-bottom: 1px solid var(--edge);
  }
  .topbar__inner { display: flex; align-items: center; gap: var(--s-5); min-height: 62px; }
  .topbar__home { display: flex; flex: none; }
  .topbar__home img { width: 34px; height: 34px; border-radius: 8px; }
  .topbar__nav { flex: 1; }
  .topbar__nav ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
  .topbar__nav a {
    font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
    color: var(--text-mut); text-decoration: none;
    padding: 6px 2px; display: inline-block;
  }
  .topbar__nav a:hover { color: var(--cyan); }
  .topbar__cta {
    flex: none;
    display: inline-flex; align-items: center;
    min-height: 40px; padding: 8px 18px;
    border-radius: var(--r-pill);
    background: linear-gradient(180deg, var(--gold-lt), var(--gold));
    color: var(--ink-soft);
    font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
    letter-spacing: .02em;
    text-decoration: none;
    box-shadow: var(--lift-1);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  }
  .topbar__cta:hover { color: var(--ink-soft); transform: translateY(-2px); box-shadow: var(--glow-gold), var(--lift-2); }
  html { scroll-padding-top: 78px; }
}

/* --- hero extras --- */
.hero__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.015em; }
.hero__scroll { position: relative; z-index: 2; text-align: center; margin: var(--s-7) 0 0; }
.hero__scroll a {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  color: var(--text-mut); text-decoration: none;
}
.hero__scroll a::after {
  content: '';
  width: 9px; height: 9px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  rotate: 45deg;
  translate: 0 -2px;
}
.hero__scroll a:hover { color: var(--cyan); }
.js .hero__scroll a::after { animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 70%, 100% { translate: 0 -2px; } 82% { translate: 0 3px; } }

/* sparkles — invisible most of their cycle, so they read as a scattering */
.spark {
  position: absolute;
  width: 14px; aspect-ratio: 1;
  background: #fff;
  clip-path: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%);
  opacity: 0;
  filter: drop-shadow(0 0 6px var(--cyan));
}
.js .spark { animation: twinkle var(--sp-dur, 6s) var(--ease) var(--sp-delay, 0s) infinite; }
.spark--a { left: 12%; top: 22%; --sp-dur: 5.2s; --sp-delay: .2s; }
.spark--b { right: 16%; top: 30%; --sp-dur: 6.8s; --sp-delay: 1.4s; filter: drop-shadow(0 0 6px var(--magenta)); }
.spark--c { left: 26%; bottom: 24%; --sp-dur: 7.6s; --sp-delay: 2.6s; }
.spark--d { right: 28%; bottom: 30%; --sp-dur: 4.6s; --sp-delay: 3.4s; filter: drop-shadow(0 0 6px var(--gold)); }
.spark--e { left: 54%; top: 12%; --sp-dur: 8.2s; --sp-delay: .8s; }
@keyframes twinkle {
  0%, 70%, 100% { opacity: 0; scale: .2; rotate: 0deg; }
  78% { opacity: 1; scale: 1; rotate: 38deg; }
  86% { opacity: .35; scale: .68; rotate: 62deg; }
}

@media (min-width: 900px) {
  .hero::before {
    background-image:
      image-set(url('../img/bg/cosmos-1280.webp') type('image/webp'), url('../img/bg/cosmos-1280.jpg') type('image/jpeg'));
  }
}
@media (min-width: 1600px) {
  .hero::before {
    background-image:
      image-set(url('../img/bg/cosmos-1920.webp') type('image/webp'), url('../img/bg/cosmos-1280.jpg') type('image/jpeg'));
  }
}
@media (min-width: 1024px) {
  .hero { --scrim-x: 32%; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .hero__copy { justify-items: start; text-align: left; }
  .hero__copy .cta-block { justify-items: start; }
  .hero__lead { margin-inline: 0; }
  .hero__shot { rotate: -3deg; translate: 0 6px; }
}
@media (max-width: 1023px) {
  .hero__shot { margin-top: var(--s-5); }
}

/* --- feature accents: one per card, shown only as a top bar + icon halo --- */
.feature--cyan { --accent: var(--cyan); }
.feature--gold { --accent: var(--gold); }
.feature--pink { --accent: var(--magenta); }
.feature--purple { --accent: var(--gem-purple); }
.feature--orange { --accent: var(--gem-orange); }
.feature--green { --accent: var(--gem-green); }

/* --- bonus section --- */
.bonus__demo { display: grid; gap: var(--s-7); }
.seam-aurora--mid { --next-bg: var(--bg-mid); }
.seam-aurora--deep { --next-bg: var(--bg-deep); }
.seam-strip--rev .seam-strip__track { animation-direction: reverse; }

/* --- screenshots --- */
.shots__rail { align-items: start; }
.shot { align-content: start; }
.shot figure { display: grid; gap: var(--s-3); margin: 0; width: 100%; }
.frame picture, .frame img { width: 100%; height: auto; }
.shot__btn { cursor: zoom-in; }
.shot__btn:focus-visible { outline-offset: 6px; }
.shots__rail .shot .frame { width: 100%; }

/* --- faq --- */
.faq__contact { font-size: var(--fs-sm); color: var(--text-mut); }

/* --- final CTA --- */
.final__note { font-size: var(--fs-micro); color: var(--text-dim); margin: 0; }

/* --- 404 --- */
.err { display: grid; gap: var(--s-5); justify-items: center; text-align: center; padding-block: var(--s-9); }
.err__gems { display: flex; gap: var(--s-4); }
.err__gems img { width: clamp(44px, 12vw, 64px); height: auto; }
.err .lead { max-width: 44ch; }
.btn-ghost--play {
  border-color: var(--edge-cyan);
  background: linear-gradient(180deg, var(--surface-2-solid), var(--surface-1-solid));
}

/* ---------------------------------------------- 18. motion preferences */

@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .topbar, .sticky-cta, .seam, .floaters, .board-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}

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

@media (prefers-reduced-transparency: reduce) {
  .card, .gem, .faq__item { background: var(--surface-2-solid); }
  .sticky-cta { background: var(--bg-void); backdrop-filter: none; }
}

@media (forced-colors: active) {
  .dots button::before { border: 2px solid CanvasText; background: Canvas; }
  .dots button[aria-current="true"]::before { background: Highlight; }
  .arcade__fill, .stat__value { -webkit-text-fill-color: CanvasText; color: CanvasText; }
  .arcade__ghost { display: none; }
  .card, .gem, .faq__item, .cta-pad { border: 1px solid CanvasText; }
}
