/* Asteroid Miner Tycoon: the website. The game's own look: chunky outlined type, buttons with a darker
   lip inside one dark outline, white cards on purple, blue space. Motion eases out and settles: no bounce. */

@font-face { font-family: "Lilita One"; src: url(fonts/lilita-one.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Baloo 2"; font-weight: 600; src: url(fonts/baloo2-600.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Baloo 2"; font-weight: 800; src: url(fonts/baloo2-800.woff) format("woff"); font-display: swap; }

:root {
  --ol: #211C40;
  --night: #0C0A33;
  --text: #F5F2FF;
  --soft: #CBC3F2;
  --muted: #9C93D2;
  --ink: #2A2D4E;
  --ink-soft: #6E6A9C;
  --line: #CFC6F2;
  --gold: #FFD21F; --gold-top: #FFE97A; --gold-lip: #E0820A;
  --green: #A4DC00; --green-top: #D2F55A; --green-lip: #3E9E0A;
  --purple: #9446FF; --purple-top: #B98BFF; --purple-lip: #5F1BCF;
  --blue: #14A2FF;
  --cyan: #45E8FF;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--text);
  font: 600 17px/1.6 "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--night) linear-gradient(180deg, #2D49F2 0, #2834D4 600px, #2A1CA2 1500px, #1D1274 2800px, #140D52 4400px, var(--night) 6400px);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan); }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
main, .nav, .foot { position: relative; z-index: 1; }
main { overflow-x: clip; }
.sky, .sparks { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky { z-index: 0; }
.sparks { z-index: 60; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 800; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: 14px; }

/* The game's outlined display type: twelve offset copies make the outline, three more the drop below. */
.chunky {
  --o: .055em;
  font-family: "Lilita One", "Baloo 2", sans-serif; font-weight: 400; color: #fff; letter-spacing: .01em;
  text-shadow:
    var(--o) 0 0 var(--ol), calc(var(--o) * -1) 0 0 var(--ol), 0 var(--o) 0 var(--ol), 0 calc(var(--o) * -1) 0 var(--ol),
    calc(var(--o) * .71) calc(var(--o) * .71) 0 var(--ol), calc(var(--o) * -.71) calc(var(--o) * .71) 0 var(--ol),
    calc(var(--o) * .71) calc(var(--o) * -.71) 0 var(--ol), calc(var(--o) * -.71) calc(var(--o) * -.71) 0 var(--ol),
    calc(var(--o) * .92) calc(var(--o) * .38) 0 var(--ol), calc(var(--o) * -.92) calc(var(--o) * .38) 0 var(--ol),
    calc(var(--o) * .38) calc(var(--o) * .92) 0 var(--ol), calc(var(--o) * -.38) calc(var(--o) * .92) 0 var(--ol),
    0 calc(var(--o) * 2.2) 0 var(--ol), calc(var(--o) * .8) calc(var(--o) * 2) 0 var(--ol), calc(var(--o) * -.8) calc(var(--o) * 2) 0 var(--ol);
}
.title { font-size: clamp(38px, 6.2vw, 72px); line-height: 1.04; margin-bottom: .32em; }
.title em { font-style: normal; color: #FF6A55; }
.lead { color: var(--soft); font-size: clamp(17px, 1.55vw, 20px); max-width: 640px; }
.head { text-align: center; max-width: 780px; margin: 0 auto clamp(32px, 5vw, 60px); }
.head .lead { margin-inline: auto; }
section { padding: clamp(80px, 11vw, 150px) 0; }

/* A tag like the game's: purple, a darker lip, one outline. */
.kicker {
  display: inline-block; margin-bottom: 16px; padding: 7px 18px 9px; border: 3px solid var(--ol); border-radius: 12px;
  background: linear-gradient(var(--purple-top) 0 46%, var(--purple) 54%); box-shadow: inset 0 -5px 0 var(--purple-lip), 0 3px 0 var(--ol);
  color: #fff; font: 400 15px/1 "Lilita One", sans-serif; letter-spacing: .1em; text-transform: uppercase;
}

/* Buttons, built like the game's (Chunky in src/components/chunky.tsx): a face lighter across its top
   half standing on a darker lip, one dark outline round the two with no line between, no glow. Pressing
   sinks the face onto the lip in 50 ms; letting go eases it back up in 140 ms. The box is the face: the
   lip and the outline hang outside it, so the margins make room for them. */
.btn {
  --face: var(--green); --edge: var(--green-lip); --lip: 6px; --r: 14px;
  --light: color-mix(in srgb, var(--face), #fff 20%);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; margin: 3px 3px calc(var(--lip) + 3px); padding: .55em 1.2em .6em;
  border: 0; border-radius: var(--r); background: none; cursor: pointer;
  color: #fff; font: 400 20px/1 "Lilita One", sans-serif; letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  text-shadow: 0 2px 0 var(--ol), 2px 0 0 var(--ol), -2px 0 0 var(--ol), 0 -2px 0 var(--ol), 1.5px 1.5px 0 var(--ol), -1.5px 1.5px 0 var(--ol), 1.5px -1.5px 0 var(--ol), -1.5px -1.5px 0 var(--ol), 0 3.5px 0 var(--ol);
  transition: transform .14s cubic-bezier(.5, 1, .89, 1);
}
.btn::before, .btn::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
/* The lip, inside the outline that goes round face and lip together. */
.btn::before {
  inset: -3px -3px calc(-3px - var(--lip)); border: 3px solid var(--ol); border-radius: calc(var(--r) + 3px); background: var(--edge);
  transition: bottom .14s cubic-bezier(.5, 1, .89, 1);
}
/* The face. */
.btn::after {
  inset: 0; border-radius: var(--r);
  background: linear-gradient(var(--light), color-mix(in srgb, var(--light) 60%, var(--face)) 47%, var(--face) 53%, color-mix(in srgb, var(--face) 88%, var(--edge)));
}
.btn:active, .btn:active::before { transition-duration: .05s; transition-timing-function: linear; }
.btn:active { transform: translateY(var(--lip)); }
.btn:active::before { bottom: -3px; }
.btn--gold { --face: var(--gold); --edge: var(--gold-lip); }
.btn--purple { --face: var(--purple); --edge: var(--purple-lip); }
.btn--sm { --lip: 4px; --r: 11px; min-height: 40px; font-size: 16px; padding-inline: 1em; }
.btn--lg { --lip: 7px; --r: 16px; min-height: 58px; font-size: clamp(20px, 2.2vw, 24px); padding-inline: 1.35em; }
/* A square key with only an icon, for the arrows under the rails. */
.btn--key { --r: 12px; width: 52px; min-height: 0; height: 48px; padding: 0; }
.btn--key .btn-ico { width: 26px; height: 26px; }
.btn-ico { width: 1.05em; height: 1.05em; fill: #fff; stroke: var(--ol); stroke-width: 2.6; stroke-linejoin: round; paint-order: stroke; overflow: visible; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 18px;
  padding: 14px max(16px, calc((100% - var(--wrap)) / 2));
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.is-solid {
  padding-block: 9px; background: rgba(16, 12, 64, .74); box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 14px 30px -16px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 400 19px/1 "Lilita One", sans-serif; letter-spacing: .01em; }
.brand img { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--ol); box-shadow: 0 3px 0 var(--ol); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--soft); text-decoration: none; font-weight: 800; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav .btn { margin-left: 8px; }

/* Hero: the logo and the pitch on one side; on the other the game itself in a phone that tilts toward the
   pointer, the astronaut stepping out of it, the boss peering round it, over a slow sunburst like the icon's. */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center;
  min-height: max(700px, 100svh); padding: 96px 0 clamp(48px, 8vh, 90px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(36% 44% at 73% 44%, rgba(130, 190, 255, .5), transparent 70%),
    radial-gradient(30% 34% at 94% 10%, rgba(255, 95, 200, .22), transparent 70%),
    radial-gradient(34% 40% at 4% 16%, rgba(69, 232, 255, .15), transparent 70%);
}
.hero-grid {
  position: relative; z-index: 3; width: min(var(--wrap), 100% - 32px); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(24px, 4vw, 64px);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-logo { width: min(580px, 100%); margin: 4px 0 0 -14px; filter: drop-shadow(0 20px 30px rgba(8, 6, 42, .55)); }
.hero-line { max-width: 560px; margin: 2px 0 28px; font-size: clamp(19px, 2vw, 25px); font-weight: 800; line-height: 1.35; text-shadow: 0 2px 16px rgba(10, 8, 44, .7); }
.hero-line .w:nth-child(n + 11) { color: var(--gold); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 5px; border-radius: 999px;
  background: rgba(14, 10, 52, .45); border: 2px solid rgba(255, 255, 255, .16); font-weight: 800; font-size: 15px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.chips img { width: 34px; height: 34px; }

/* As wide as fits the screen's height too, so the whole phone shows on a short laptop screen. */
.hero-stage { position: relative; justify-self: center; width: clamp(220px, min(21vw, (100svh - 150px) / 2.35), 300px); margin-top: 12px; }
.hero-phone { position: relative; z-index: 2; }
.phone-tilt { transform: perspective(1500px) rotateY(calc(-17deg + var(--tx, 0) * 14deg)) rotateX(calc(6deg - var(--ty, 0) * 10deg)) rotateZ(4deg); }
.rays {
  position: absolute; z-index: 0; left: 50%; top: 47%; width: 330%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(150, 205, 255, .5), transparent 55%), repeating-conic-gradient(rgba(255, 255, 255, .12) 0deg 6deg, transparent 6deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 14%, transparent 75%); mask: radial-gradient(closest-side, #000 14%, transparent 75%);
  animation: rays 160s linear infinite;
}
@keyframes rays { to { rotate: 360deg; } }
.st { position: absolute; z-index: 3; }
.st-astro { width: 82%; left: -58%; bottom: -9%; z-index: 4; }
.st-boss { width: 66%; right: -58%; top: 20%; z-index: 1; }
.st-zib { width: 36%; right: -20%; top: -4%; z-index: 4; }
.st-coins { width: 32%; left: -40%; top: 8%; }
.st-gem { width: 24%; right: -34%; bottom: 14%; z-index: 4; }
.st-drone { width: 28%; left: -18%; top: -9%; z-index: 4; }

/* The Earth, rising under the hero, turning slowly. */
.planet {
  position: absolute; z-index: 1; left: 50%; bottom: 0; width: max(1500px, 165vw); aspect-ratio: 1; border-radius: 50%;
  translate: -50% calc(100% - clamp(150px, 22vh, 240px));
  /* Only the top shows: the texture sits so that's the northern mid-latitudes, not the polar ice. */
  background: #1F5BD8 url(img/earth.webp) 0 -470px / 2800px 1400px repeat-x;
  box-shadow: 0 0 0 3px rgba(170, 230, 255, .55), 0 0 70px 22px rgba(80, 175, 255, .5), 0 0 180px 70px rgba(70, 120, 255, .3);
  /* A texture sliding by repaints the whole Earth on every frame: in whole-pixel steps it repaints about
     nine times a second instead, and at 9 px a second it looks the same. */
  animation: earth 300s steps(2800) infinite;
}
.hero.is-away .planet, .hero.is-away .rays { animation-play-state: paused; }
.planet::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(closest-side, transparent 88%, rgba(150, 215, 255, .35) 97%, rgba(200, 240, 255, .6)), linear-gradient(180deg, transparent 2%, rgba(14, 12, 70, .55) 9%, rgba(12, 10, 52, .9) 16%);
}
@keyframes earth { to { background-position: -2800px -470px; } }

/* The conveyor belt of things to do: its speed follows how fast you scroll. */
.belt {
  position: relative; z-index: 3; width: 112%; margin: -46px 0 0 -6%; padding: 16px 0; overflow: hidden; rotate: -2deg;
  background: linear-gradient(#1C1664, #110D46); border-block: 4px solid var(--ol);
  box-shadow: inset 0 7px 0 #2F7BFF, inset 0 -7px 0 #2F7BFF, 0 16px 34px -14px rgba(0, 0, 0, .7);
}
.belt::before, .belt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 16px;
  background: radial-gradient(circle, #8DF6FF 0 4px, #1E8CFF 4.5px 6.5px, transparent 7px) 0 50% / 96px 16px repeat-x;
}
.belt::before { top: -8px; }
.belt::after { bottom: -8px; }
.belt-row { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 32px); width: max-content; will-change: transform; }
.belt-row span { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.15; white-space: nowrap; text-transform: uppercase; }
.belt-row img { width: clamp(42px, 4.6vw, 62px); }

/* How to play: the steps scroll by, the phone stays, the goal bar fills. */
.steps { display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: clamp(32px, 6vw, 100px); }
.step-list { list-style: none; margin: 0; padding: 0; }
.step { display: flex; flex-direction: column; justify-content: center; min-height: 78vh; max-width: 540px; opacity: .3; transition: opacity .6s var(--ease); }
.step.is-on { opacity: 1; }
.step-icon { width: 96px; margin-bottom: 6px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
.step-n { color: var(--gold); font: 400 15px/1 "Lilita One", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.step h3 { margin: 8px 0 12px; font-size: clamp(32px, 3.8vw, 50px); line-height: 1.05; }
.step p { color: var(--soft); font-size: clamp(17px, 1.6vw, 21px); }
.step-stage { position: sticky; top: max(92px, calc(50vh - 400px)); align-self: start; }
.phone--inline { display: none; }

/* iPhones: a light aluminium frame, a thin black bezel, the Dynamic Island, the status bar, the home bar,
   the keys on both sides and a sheen on the glass. The screenshots were taken with an iPhone's safe area
   (59 pt on top, 34 below), so the game draws its world under the island and status bar and keeps every
   button clear of them: nothing of the game is hidden. Sizes are shares of the phone's width (cqw); the
   screen is 430 x 932 points, as on the phone. */
.phone { position: relative; container-type: inline-size; }
/* The keys, behind the frame: the Action button and the volume keys on the left, the side button and
   Camera Control on the right. One strip each side, cut into keys by a mask. */
.phone::before, .phone::after {
  content: ""; position: absolute; z-index: -1; width: 1.15cqw; border-radius: .6cqw;
  background: linear-gradient(90deg, #8b94a1, #edf1f6 50%, #9aa3b0);
}
.phone::before {
  left: -.75cqw; top: 17%; height: 23.5%;
  -webkit-mask: linear-gradient(#000 0 14.5%, transparent 14.5% 36%, #000 36% 63.8%, transparent 63.8% 72.3%, #000 72.3%);
  mask: linear-gradient(#000 0 14.5%, transparent 14.5% 36%, #000 36% 63.8%, transparent 63.8% 72.3%, #000 72.3%);
}
.phone::after {
  right: -.75cqw; top: 27%; height: 37%;
  -webkit-mask: linear-gradient(#000 0 25.7%, transparent 25.7% 81%, #000 81%);
  mask: linear-gradient(#000 0 25.7%, transparent 25.7% 81%, #000 81%);
}
.device {
  position: relative; border: 1.4cqw solid transparent; padding: 2.6cqw; border-radius: 15.8cqw;
  background:
    linear-gradient(#050506, #050506) padding-box,
    linear-gradient(145deg, #f7f9fc 0%, #cdd4de 16%, #eef1f5 34%, #b3bcc9 52%, #e3e8ee 70%, #f8fafc 86%, #c5ccd7 100%) border-box;
  box-shadow: 0 0 0 .22cqw rgba(40, 46, 60, .55), 0 1.2cqw 2.2cqw rgba(0, 0, 0, .35), 0 10cqw 18cqw -6cqw rgba(4, 2, 30, .8);
}
/* The home bar. */
.device::before {
  content: ""; position: absolute; z-index: 5; left: 50%; bottom: 4.3cqw; width: 28.5cqw; height: 1.1cqw; translate: -50% 0; border-radius: 1cqw; pointer-events: none;
  background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 .18cqw rgba(0, 0, 0, .16), 0 .2cqw .8cqw rgba(0, 0, 0, .25);
}
/* The sheen on the glass. */
.device::after {
  content: ""; position: absolute; z-index: 4; inset: 2.6cqw; border-radius: 11.8cqw; pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .04) 22%, transparent 38%, transparent 80%, rgba(255, 255, 255, .05));
}
.screen { position: relative; overflow: hidden; aspect-ratio: 430 / 932; border-radius: 11.8cqw; background: #000; }
.screen img, .screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The status bar: the time left of the island, signal, Wi-Fi and battery right of it. */
.screen::before {
  content: "9:41"; position: absolute; z-index: 2; inset: 0 0 auto; height: 12.6cqw; pointer-events: none;
  display: flex; align-items: center; padding-left: 9.6cqw; color: #fff;
  font: 600 3.7cqw/1 -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif; letter-spacing: .01em;
  filter: drop-shadow(0 .15cqw .5cqw rgba(0, 0, 0, .4));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 16' fill='%23fff'%3E%3Crect x='0' y='11' width='3' height='4' rx='.8'/%3E%3Crect x='4.5' y='8' width='3' height='7' rx='.8'/%3E%3Crect x='9' y='5' width='3' height='10' rx='.8'/%3E%3Crect x='13.5' y='2' width='3' height='13' rx='.8'/%3E%3Cpath d='M30 15l-3.2-3.6a4.6 4.6 0 0 1 6.4 0zM24.4 9.3a8 8 0 0 1 11.2 0l-1.6 1.8a5.6 5.6 0 0 0-8 0zM22 6.6a11.6 11.6 0 0 1 16 0l-1.6 1.8a9.2 9.2 0 0 0-12.8 0z'/%3E%3Crect x='43' y='3' width='19' height='10' rx='2.5' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3Crect x='45' y='5' width='13' height='6' rx='1.2'/%3E%3Crect x='63' y='6' width='2' height='4' rx='1'/%3E%3C/svg%3E") no-repeat right 6.4cqw center / auto 2.6cqw;
}
/* The Dynamic Island, with the camera's lens at its right end. */
.screen::after {
  content: ""; position: absolute; z-index: 3; left: 50%; top: 2.35cqw; width: 27cqw; height: 7.9cqw; translate: -50% 0; border-radius: 99px; pointer-events: none;
  background: radial-gradient(circle at 83% 50%, #263553 0, #0d1424 .75cqw, transparent 1.25cqw), #000;
}
/* The trailer is 9:16: it plays in the middle of the screen, as a video does on the phone. */
.screen--video { background: linear-gradient(#17125a, #0b0a2e); }
.screen--video video { top: 50%; bottom: auto; height: auto; aspect-ratio: 9 / 16; translate: 0 -50%; }
.step-stage .screen img { opacity: 0; scale: 1.04; transition: opacity .7s var(--ease), scale 1s var(--ease); }
.step-stage .screen img.is-on { opacity: 1; scale: 1; }

/* The game's goal bar. */
.goal {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 10px; margin-bottom: 18px; padding: 10px 14px 12px;
  border: 3px solid var(--ol); border-radius: 18px; background: #2A1F5E; box-shadow: inset 0 -5px 0 #1B1342, 0 4px 0 var(--ol);
}
.goal-k { color: #B9A6FF; font: 400 14px/1 "Lilita One", sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.goal-name { font: 400 21px/1 "Lilita One", sans-serif; color: #fff; }
.goal-bar { grid-column: 1 / -1; height: 18px; overflow: hidden; border: 2px solid var(--ol); border-radius: 99px; background: #15103A; }
.goal-bar i { display: block; height: 100%; width: calc(var(--p, .2) * 100%); background: linear-gradient(#D2F55A 0 45%, var(--green) 55%); box-shadow: inset 0 -3px 0 var(--green-lip); border-radius: 99px; transition: width .8s var(--ease); }

/* Planets: a rail of the game's cards, the pet big in the purple portrait. */
.rail img, .cover img { -webkit-user-drag: none; user-select: none; }
.rail {
  position: relative; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 18px max(16px, calc((100% - var(--wrap)) / 2)) 38px; scroll-padding-inline: max(16px, calc((100% - var(--wrap)) / 2));
}
.rail::-webkit-scrollbar, .cover::-webkit-scrollbar { display: none; }
@media (pointer: fine) { .rail, .cover { cursor: grab; } }
.is-drag { cursor: grabbing;scroll-snap-type: none !important; user-select: none; }
.is-drag * { pointer-events: none; }
.world {
  position: relative; flex: 0 0 clamp(255px, 25vw, 296px); scroll-snap-align: start; overflow: hidden;
  border: 3px solid var(--ol); border-radius: 26px; background: #fff; color: var(--ink);
  box-shadow: inset 0 -7px 0 var(--line), 0 6px 0 var(--ol), 0 26px 44px -22px rgba(0, 0, 0, .75);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
}
.world::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .45), transparent 42%);
}
.world:hover::after { opacity: 1; }
.world-art { position: relative; height: 214px; overflow: hidden; border-bottom: 3px solid var(--ol); background: radial-gradient(90% 70% at 50% 100%, rgba(255, 255, 255, .28), transparent 70%), linear-gradient(#9C2CEA, #7A14D8); }
.world-planet { position: absolute; width: 240px; top: -62px; right: -70px; opacity: .92; }
.world-pet { position: absolute; left: 50%; bottom: 2px; width: 168px; translate: -50% 0; filter: drop-shadow(0 12px 12px rgba(30, 0, 70, .45)); transition: transform .5s var(--ease); }
.world:hover .world-pet { transform: translateY(-6px); }
.world--locked .world-pet { filter: brightness(0) drop-shadow(0 0 14px rgba(185, 140, 255, .9)); opacity: .9; }
.world-strip { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 16px 12px; border-bottom: 3px solid var(--ol); background: #E1F2FC; box-shadow: inset 0 -5px 0 #B6C9DE; }
.world-strip b { font-size: 28px; line-height: 1.1; }
.world-strip span { color: var(--ink-soft); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.world-body { padding: 14px 16px 22px; }
.power { display: inline-block; margin-bottom: 8px; padding: 4px 11px 5px; border: 2px solid var(--ol); border-radius: 999px; background: var(--gold); color: var(--ol); font: 400 14px/1.15 "Lilita One", sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.perk { margin-bottom: 12px; font-weight: 800; line-height: 1.35; }
.bubble { padding: 10px 12px; border-radius: 14px; background: #F1EDFF; color: #4B4680; font-size: 15px; line-height: 1.42; }
.rail-ctrl { display: flex; justify-content: center; gap: 14px; }

/* Screenshots: phones in a curved row, turned to face you as they reach the middle. */
.cover {
  --cw: clamp(230px, 23vw, 300px);
  position: relative; display: flex; gap: clamp(18px, 2.6vw, 34px); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 24px calc(50% - var(--cw) / 2) 40px; perspective: 1500px;
}
.cover-item { flex: 0 0 var(--cw); margin: 0; scroll-snap-align: center; transform-origin: 50% 50%; will-change: transform; }
.cover-item figcaption { margin-top: 16px; text-align: center; font: 400 19px/1.2 "Lilita One", sans-serif; opacity: var(--cap, 1); }
.gallery .rail-ctrl { margin-top: 4px; }

/* Trailer */
.trailer-grid { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; align-items: center; gap: clamp(40px, 7vw, 110px); }
.trailer-copy .lead { margin-bottom: 4px; }
/* Centred on the poster, counting the lip below the face. */
.play-btn { position: absolute; left: 50%; top: 50%; margin: 0; translate: -50% calc(-50% - var(--lip) / 2); }
.play-btn[hidden] { display: none; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0 32px; padding: 0; list-style: none; }
.stats li {
  display: grid; grid-template-columns: 58px 1fr; align-items: center; column-gap: 12px; padding: 12px 16px 12px 12px;
  border: 2px solid rgba(255, 255, 255, .14); border-radius: 20px; background: rgba(255, 255, 255, .07);
}
.stats img { grid-row: span 2; width: 58px; }
.stats b { font: 400 36px/1 "Lilita One", sans-serif; color: var(--gold); font-variant-numeric: tabular-nums; }
.stats span { color: var(--soft); font-weight: 800; font-size: 14px; line-height: 1.2; }
.credit { margin-top: 22px; color: var(--muted); font-size: 13px; }
.credit a { color: var(--soft); }

/* The last call to action, with a QR code for people reading on a computer. */
.final { padding-top: clamp(40px, 6vw, 80px); }
.final-card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 4vw, 52px);
  padding: clamp(28px, 4vw, 46px) clamp(22px, 4vw, 54px); border: 3px solid var(--ol); border-radius: 36px;
  background: radial-gradient(70% 90% at 0% 100%, rgba(69, 232, 255, .25), transparent 60%), linear-gradient(135deg, #3A58FF, #6B30E6 55%, #4A1BB0);
  box-shadow: inset 0 -10px 0 rgba(28, 8, 100, .5), 0 7px 0 var(--ol), 0 50px 90px -36px rgba(0, 0, 0, .8);
}
.final-astro { width: clamp(150px, 17vw, 230px); margin: -70px 0 -40px; filter: drop-shadow(0 18px 20px rgba(10, 6, 50, .55)); }
.final-copy .title { font-size: clamp(34px, 4.6vw, 58px); }
.final-copy p { margin-bottom: 22px; color: #EDE8FF; font-size: clamp(17px, 1.6vw, 20px); }
.qr { width: 172px; margin: 0; padding: 12px 12px 10px; border: 3px solid var(--ol); border-radius: 22px; background: #fff; box-shadow: 0 5px 0 var(--ol); color: var(--ink); text-align: center; }
.qr img { width: 100%; }
.qr figcaption { margin-top: 6px; font-weight: 800; font-size: 13px; line-height: 1.25; }

.foot { padding: 44px 0 54px; border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(8, 6, 34, .55); color: var(--muted); font-size: 15px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot .brand img { width: 32px; height: 32px; border-radius: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a:not(.brand) { color: var(--soft); }
.foot a:not(.brand):hover { color: #fff; }

/* Entrances: fade, rise and unblur, then settle. Only when the script runs, so nothing hides without it. */
.js [data-in] { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-in].is-in { opacity: 1; transform: none; filter: none; }
.js .world[data-in].is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity .9s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s), transform .5s var(--ease); }
.js .split .w { display: inline-block; opacity: 0; transform: translateY(.42em); filter: blur(10px); transition: opacity .85s var(--ease), transform .85s var(--ease), filter .85s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i) * 60ms); }
.js .split.is-in .w { opacity: 1; transform: none; filter: none; }
/* The light page for weak phones (html.lite: set in the head, or by site.js when frames run slow). Blur is
   what they choke on: no live blur behind the nav and chips (it is redone every frame over the moving sky)
   and entrances that only fade and rise. The Earth and the sunburst hold still. */
.lite .nav.is-solid { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(16, 12, 64, .94); }
.lite .chips li { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(14, 10, 52, .72); }
.lite.js [data-in]:not(.hero-logo, .st), .lite.js .split .w { filter: none; }
.lite .planet, .lite .rays { animation: none; }
/* The hero's art and logo keep their drop shadows through the entrance: they rise and fade, unblurred. */
.js .hero-stage .st, .js .hero-stage .st.is-in { filter: drop-shadow(0 18px 22px rgba(8, 6, 42, .5)); }
.js .hero-logo, .js .hero-logo.is-in { filter: drop-shadow(0 20px 30px rgba(8, 6, 42, .55)); }
[data-depth] { will-change: translate; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-bottom: clamp(120px, 17vh, 170px); }
  .hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 44px; }
  .hero-copy { align-items: center; }
  .hero-logo { width: min(560px, 92vw); margin-left: 0; }
  .hero-cta, .chips { justify-content: center; }
  .hero-stage { width: min(250px, 54vw); margin-bottom: 24px; }
  .steps { grid-template-columns: 1fr; }
  .step-stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 30px 0; max-width: 560px; margin-inline: auto; }
  .phone--inline { display: block; width: min(300px, 82vw); margin: 26px auto 0; }
  .trailer-grid { grid-template-columns: 1fr; }
  .trailer-phone { width: min(320px, 84vw); margin-inline: auto; }
  .final-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .final-astro { margin: -90px auto -6px; width: 170px; }
  .qr { display: none; }
}
@media (max-width: 640px) {
  .st-astro { width: 70%; left: -44%; }
  .st-boss { width: 56%; right: -44%; }
  .st-coins { left: -30%; }
  .st-gem { right: -26%; }
  .chips li { font-size: 14px; }
  .phone--inline { width: min(250px, 66vw); }
  .hero-cta { flex-direction: column; align-items: stretch; width: min(340px, 100%); }
  .belt { margin-top: -34px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats li { grid-template-columns: 44px 1fr; padding: 10px; }
  .stats img { width: 44px; }
  .stats b { font-size: 30px; }
  .foot-row { flex-direction: column; text-align: center; }
  .foot nav { justify-content: center; }
}
@media (max-width: 420px) { .nav .brand span { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-in], .js .split .w { opacity: 1; transform: none; filter: none; translate: none; }
  .js .world[data-in] { transform: none; }
}
