/* LaYaYa: landing page. Every screen and clip on it is captured from the real game. */

:root {
  --night-0: #0e0630;
  --night-1: #170a4a;
  --night-2: #24127a;
  --violet: #6a3cf0;
  --pink: #ff4fa0;
  --pink-deep: #d92c7e;
  --orange: #ff9a1f;
  --gold: #ffd24a;
  --green: #22d483;
  --sky: #2c9bff;
  --ink: #261552;
  --ink-soft: #5d4f86;
  --cream: #fff6fb;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: 32px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--round);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--night-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Buttons (chunky, like the game's) ---------- */
.btn {
  --top: #3fe79b; --bottom: #17c374; --edge: #0c9154;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px 17px;
  border-radius: 999px;
  font-weight: 900; font-size: 19px;
  text-decoration: none; white-space: nowrap;
  color: #fff;
  background: linear-gradient(180deg, var(--top), var(--bottom));
  box-shadow: 0 6px 0 var(--edge), 0 14px 26px -6px rgba(12, 120, 70, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.45);
  text-shadow: 0 2px 0 rgba(0, 80, 40, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 8px 0 var(--edge), 0 18px 30px -6px rgba(12, 120, 70, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.45); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--edge), 0 6px 12px -6px rgba(12, 120, 70, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.35); }
.btn-sm { padding: 10px 18px 11px; font-size: 16px; box-shadow: 0 4px 0 var(--edge), inset 0 2px 0 rgba(255, 255, 255, 0.45); }
.btn-sm:hover { box-shadow: 0 5px 0 var(--edge), inset 0 2px 0 rgba(255, 255, 255, 0.45); }
.btn-lg { padding: 20px 38px 21px; font-size: 22px; }
.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  text-shadow: none;
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.btn-glass:active { transform: translateY(2px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 60; top: 14px; left: 50%;
  transform: translateX(-50%);
  width: min(var(--wrap) + 24px, 100% - 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
  background: rgba(24, 10, 74, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.solid { background: rgba(24, 10, 74, 0.84); box-shadow: 0 12px 40px -12px rgba(10, 0, 40, 0.5); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-icon { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); }
.nav-logo { width: 112px; height: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.86); text-decoration: none; font-weight: 800; font-size: 16px;
  padding: 8px 14px; border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Phone frame (screens are real captures from the game) ---------- */
.phone {
  --w: 320px;
  width: var(--w);
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(150deg, #4d4766 0%, #19151f 22%, #0d0b12 60%, #3a344c 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    inset 0 0 0 4px #0c0a10,
    0 50px 90px -30px rgba(10, 0, 40, 0.75),
    0 24px 40px -24px rgba(10, 0, 40, 0.6);
  position: relative;
  flex: none;
}
.phone::before { /* side buttons */
  content: ""; position: absolute; left: -2.5px; top: 22%; width: 3px; height: 9%;
  border-radius: 3px 0 0 3px; background: #2a2533;
  box-shadow: 0 calc(var(--w) * 0.2) 0 #2a2533;
}
.screen {
  position: relative; overflow: hidden;
  aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--w) * 0.135);
  background: var(--night-1);
  isolation: isolate;
}
.screen video, .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.island {
  position: absolute; z-index: 2; left: 50%; top: 1.55%;
  width: 31.2%; height: 4.2%;
  transform: translateX(-50%);
  background: #000; border-radius: 99px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: max(780px, 100svh);
  color: #fff;
  background: radial-gradient(120% 80% at 70% 30%, #3b1cb4 0%, var(--night-1) 55%, var(--night-0) 100%);
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: -4% -2% 0;
  background: url("/assets/worlds-lg/jelly.webp") center 22% / cover no-repeat;
  opacity: 0.78;
  transform: translate3d(var(--bx, 0), var(--by, 0), 0) scale(1.04);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 70% at 30% 50%, rgba(14, 6, 48, 0.55), transparent 70%),
    linear-gradient(180deg, rgba(14, 6, 48, 0.45) 0%, transparent 28%, transparent 62%, rgba(23, 10, 74, 0.92) 100%);
}
.hero-stars, .soon-stars {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 28% 72%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 46% 12%, #ffe7a8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 84%, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 88% 26%, #ffd6f0 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 88%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 54% 50%, #fff 50%, transparent 51%);
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.45; } to { opacity: 1; } }

.hero-inner {
  position: relative; z-index: 2;
  width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto;
  padding: 130px 0 150px;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: 48px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  font-weight: 800; font-size: 15px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(3); opacity: 0; } }

.hero-logo { margin: 22px 0 6px -1.5%; line-height: 0; }
.hero-logo img {
  width: min(600px, 100%); height: auto;
  filter: drop-shadow(0 16px 26px rgba(14, 0, 60, 0.5));
  animation: logoIn 0.9s cubic-bezier(.2, 1.5, .4, 1) 0.1s both, bob 4.2s ease-in-out 1s infinite;
  transform-origin: 50% 80%;
}
@keyframes logoIn { from { opacity: 0; transform: translateY(24px) scale(0.6); } }
.hero-copy > :not(.hero-logo) { animation: rise 0.7s cubic-bezier(.2, .8, .3, 1) both; }
.hero-copy > .eyebrow { animation-delay: 0s; }
.hero-tag { animation-delay: 0.25s !important; }
.hero-sub { animation-delay: 0.35s !important; }
.hero-ctas { animation-delay: 0.45s !important; }
.hero-facts { animation-delay: 0.55s !important; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero-stage .pal { animation: palIn 0.8s cubic-bezier(.2, 1.6, .4, 1) both; }
.hero-stage .pal:nth-of-type(1) { animation-delay: 0.35s; }
.hero-stage .pal:nth-of-type(2) { animation-delay: 0.5s; }
.hero-stage .pal:nth-of-type(3) { animation-delay: 0.6s; }
.hero-stage .pal:nth-of-type(4) { animation-delay: 0.45s; }
.hero-stage .pal:nth-of-type(5) { animation-delay: 0.55s; }
.hero-stage .pal:nth-of-type(6) { animation-delay: 0.7s; }
@keyframes palIn { from { scale: 0; opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(0.6deg); } }

.hero-tag { font-size: clamp(28px, 3.1vw, 42px); font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; max-width: 15ch; }
.candy-text {
  background: linear-gradient(95deg, #ff7cc8 0%, #ffb347 55%, #ffe066 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 16px; max-width: 34em; font-size: 19px; color: rgba(255, 255, 255, 0.82); }
.hero-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px 16px; }
.hero-facts { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 0; color: rgba(255, 255, 255, 0.78); font-size: 16px; font-weight: 700; }
.hero-facts li { position: relative; display: flex; align-items: baseline; gap: 7px; padding: 0 18px; }
.hero-facts li:first-child { padding-left: 0; }
.hero-facts li + li::before { content: ""; position: absolute; left: -3px; top: 50%; width: 6px; height: 6px; margin-top: -2px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.hero-facts strong { color: #fff; font-size: 22px; font-weight: 900; }

.hero-stage { position: relative; display: grid; place-items: center; padding: 20px 0; }
.stage-glow {
  position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 110, 200, 0.45) 0%, rgba(140, 90, 255, 0.28) 35%, transparent 68%);
  filter: blur(10px);
}
.hero-phone { --w: clamp(270px, 25vw, 340px); transform: rotate(4deg); z-index: 2; animation: phoneIn 1s cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(60px) rotate(10deg) scale(0.92); } }
.stage-note {
  position: absolute; z-index: 4; bottom: -2px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--gold);
  box-shadow: 0 4px 0 #d69a12, 0 10px 20px -6px rgba(0, 0, 0, 0.4);
}

/* Floating, tappable pals */
.pal {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  padding: 0; border: 0; background: none; cursor: pointer;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 0.25s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.pal img { width: 100%; height: 100%; rotate: var(--r, 0deg); animation: float var(--d, 5s) ease-in-out infinite; filter: drop-shadow(0 18px 22px rgba(14, 0, 60, 0.45)); }
.pal.far { z-index: 1; }
.pal.near { z-index: 3; }
.pal.squish img { animation: squish 0.55s cubic-bezier(.3, 1.6, .5, 1), float var(--d, 5s) ease-in-out 0.55s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes squish {
  0% { transform: scale(1, 1); }
  25% { transform: scale(1.28, 0.74); }
  50% { transform: scale(0.86, 1.16); }
  75% { transform: scale(1.06, 0.95); }
  100% { transform: scale(1, 1); }
}
.spark { position: fixed; z-index: 90; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; animation: spark 0.7s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--tx), var(--ty)) scale(0.2); opacity: 0; } }
.plop {
  position: fixed; z-index: 91; pointer-events: none;
  font-weight: 900; font-size: 30px; color: #fff;
  -webkit-text-stroke: 6px var(--pink-deep); paint-order: stroke fill;
  animation: plop 0.9s cubic-bezier(.2, 1.4, .4, 1) forwards;
}
@keyframes plop {
  0% { transform: translate(-50%, 10px) rotate(-8deg) scale(0.4); opacity: 0; }
  25% { transform: translate(-50%, -12px) rotate(-8deg) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -46px) rotate(-8deg) scale(1); opacity: 0; }
}

/* ---------- Ribbons ---------- */
.ribbons { position: relative; z-index: 6; height: 150px; margin: -78px 0 -72px; pointer-events: none; overflow-x: clip; overflow-y: visible; }
.ribbon { position: absolute; left: -4%; right: -4%; overflow: hidden; white-space: nowrap; }
.ribbon-pink {
  /* Both ribbons are centred on the hero's bottom edge (78px down). The tilt is capped so the
     ends never drift more than ~26px, which keeps the pink ribbon covering that edge on wide screens. */
  top: 44px;
  transform: rotate(-2.6deg);
  transform: rotate(max(-2.6deg, atan2(-26px, 50vw)));
  background: linear-gradient(180deg, #ff6ab3, #f2418f);
  box-shadow: 0 6px 0 #c42a72, 0 18px 30px -10px rgba(120, 10, 70, 0.45);
  color: #fff;
}
.ribbon-gold {
  top: 55px;
  transform: rotate(2deg);
  transform: rotate(min(2deg, atan2(22px, 50vw)));
  background: linear-gradient(180deg, #ffe066, #ffc634);
  box-shadow: 0 6px 0 #e0a114;
  color: var(--ink);
}
.track { display: inline-flex; align-items: center; animation: marquee 38s linear infinite; padding: 12px 0; will-change: transform; }
.ribbon-gold .track { animation-direction: reverse; animation-duration: 52s; padding: 9px 0; }
.track span { font-weight: 900; font-size: 28px; text-transform: uppercase; padding: 0 22px; }
.ribbon-gold .track span { font-size: 19px; }
.track img { width: 40px; height: 40px; flex: none; }
.ribbon-gold .track img { width: 26px; height: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section basics ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto; }
.kicker {
  display: inline-block; margin-bottom: 14px;
  font-size: 14px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pink);
}
.section-head h2, .worlds h2, .soon h2 { font-size: clamp(38px, 5.2vw, 68px); }
.lede { margin-top: 18px; font-size: 20px; color: var(--ink-soft); }

/* ---------- How to play ---------- */
.play {
  position: relative;
  padding: 150px 0 110px;
  background:
    radial-gradient(40% 30% at 8% 18%, rgba(255, 140, 200, 0.22), transparent 70%),
    radial-gradient(40% 30% at 92% 60%, rgba(140, 110, 255, 0.18), transparent 70%),
    linear-gradient(180deg, #fff2f9 0%, #fbf6ff 100%);
}
.play-grid { margin-top: 70px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
.play-stage { position: sticky; top: max(90px, calc(50vh - 340px)); align-self: start; display: grid; justify-items: center; gap: 22px; }
.play-stage::before {
  content: ""; position: absolute; z-index: -1; top: -6%; left: 50%; width: 560px; aspect-ratio: 1; margin-left: -280px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c, #ff4fa0) 34%, transparent) 0%, transparent 64%);
  transition: background 0.6s ease;
}
.play-stage .pal { z-index: 3; }
.play-phone { --w: 316px; z-index: 2; }
.play-phone video { opacity: 0; transition: opacity 0.45s ease; }
.play-phone video.on { opacity: 1; }
.play-dots { display: flex; gap: 8px; }
.play-dots span { width: 9px; height: 9px; border-radius: 99px; background: rgba(38, 21, 82, 0.18); transition: width 0.3s, background 0.3s; }
.play-dots span.on { width: 28px; background: var(--pink); }

.steps { display: grid; }
.step {
  min-height: 74vh; display: flex; flex-direction: column; justify-content: center;
  padding: 20px 0; opacity: 0.32; transition: opacity 0.4s ease;
}
.step.on { opacity: 1; }
.step-phone { display: none; }
.step-num {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 28px; color: #fff;
  background: var(--c);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 70%, #000), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  margin-bottom: 22px;
}
.step h3 { font-size: clamp(32px, 3.4vw, 46px); }
.step p { margin-top: 14px; font-size: 20px; color: var(--ink-soft); max-width: 26em; }
.step em { font-style: normal; font-weight: 900; color: var(--orange); }
.boosts { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.boosts li { display: flex; align-items: center; gap: 10px; font-weight: 800; padding: 6px 16px 6px 6px; border-radius: 999px; background: #fff; box-shadow: 0 6px 18px -8px rgba(38, 21, 82, 0.3); }
.boost { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18), inset 0 2px 0 rgba(255, 255, 255, 0.4); }
.boost svg { width: 22px; height: 22px; }
.b-pop { background: linear-gradient(#ff8cc6, #ff4fa0); }
.b-shake { background: linear-gradient(#5ab8ff, #2c86f0); }
.b-tilt { background: linear-gradient(#ffb85a, #ff8a1f); }

/* ---------- Worlds ---------- */
.worlds { position: relative; overflow: hidden; color: #fff; background: var(--night-0); padding: 130px 0; }
.world-bgs img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 46%;
  opacity: 0; transform: scale(1.1);
  transition: opacity 0.9s ease, transform 9s ease-out;
}
.world-bgs img.on { opacity: 1; transform: scale(1); }
.worlds-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 5, 40, 0.92) 0%, rgba(12, 5, 40, 0.72) 42%, rgba(12, 5, 40, 0.25) 75%, rgba(12, 5, 40, 0.35) 100%),
    linear-gradient(180deg, rgba(12, 5, 40, 0.6) 0%, transparent 18%, transparent 82%, rgba(12, 5, 40, 0.7) 100%);
}
.worlds-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.worlds .kicker { color: var(--accent); transition: color 0.6s; }
.worlds .lede { color: rgba(255, 255, 255, 0.78); max-width: 30em; }

.world-tabs { position: relative; margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.world-tab {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 7px; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 800; font-size: 16px; color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s, transform 0.2s;
}
.world-tab img { width: 32px; height: 32px; }
.world-tab:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.world-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5); }
.world-tab .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.world-tab[aria-selected="true"] .bar { animation: fill var(--dur, 9s) linear forwards; }
.worlds.paused .world-tab .bar { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

.world-panel { margin-top: 38px; min-height: 290px; }
.world-title { font-size: clamp(44px, 5.4vw, 76px); letter-spacing: -0.03em; }
.world-title span { color: var(--accent); transition: color 0.6s; }
.world-blurb { margin-top: 14px; font-size: 20px; color: rgba(255, 255, 255, 0.86); max-width: 28em; }
.world-chain { margin-top: 28px; display: flex; align-items: flex-end; height: 84px; }
.world-chain > * {
  flex: none; width: var(--s); height: var(--s); margin-left: -6px;
  animation: chainIn 0.5s cubic-bezier(.2, 1.5, .4, 1) both;
  animation-delay: calc(var(--i) * 45ms);
}
.world-chain > :first-child { margin-left: 0; }
.world-chain img { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35)); }
/* Secret pals: like the locked cards in the game's Dex */
.world-chain .mystery {
  margin-left: 5px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 900; font-size: calc(var(--s) * 0.44); line-height: 1; color: rgba(255, 255, 255, 0.78);
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06) 62%);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 -6px 14px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: chainIn 0.5s cubic-bezier(.2, 1.5, .4, 1) both, tease 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 45ms), calc(var(--i) * 0.22s);
}
@keyframes tease { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes chainIn { from { opacity: 0; transform: translateY(18px) scale(0.6); } }
.world-range { margin-top: 12px; font-size: 16px; font-weight: 800; color: rgba(255, 255, 255, 0.7); }
.world-range strong { color: #fff; }
.world-swap { animation: swapIn 0.5s ease both; }
@keyframes swapIn { from { opacity: 0; transform: translateY(14px); } }

.worlds-stage { display: grid; justify-items: center; }
.world-phone { --w: clamp(270px, 24vw, 318px); transform: rotate(-3deg); }
.world-screen video { opacity: 0; transition: opacity 0.6s ease; }
.world-screen video.on { opacity: 1; }

/* ---------- More (features) ---------- */
.more {
  padding: 130px 0 120px;
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(255, 200, 235, 0.55), transparent 70%),
    linear-gradient(180deg, #fbf6ff 0%, #f3ecff 100%);
}
.screens { margin-top: 70px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: 28px; row-gap: 30px; }
.shot { margin: 0; display: grid; grid-row: span 2; grid-template-rows: subgrid; justify-items: center; }
.shot .phone { --w: min(250px, 100%); margin-top: var(--lift); transform: rotate(var(--rot)); transition: transform 0.35s cubic-bezier(.2, 1.3, .4, 1); }
.shot:hover .phone { transform: rotate(0deg) translateY(-10px) scale(1.03); }
.shot figcaption { display: grid; justify-items: center; text-align: center; gap: 4px; max-width: 250px; }
.shot figcaption img { width: 44px; height: 44px; margin-bottom: 6px; filter: drop-shadow(0 4px 6px rgba(38, 21, 82, 0.2)); }
.shot figcaption strong { font-size: 21px; font-weight: 900; line-height: 1.2; }
.shot figcaption span { font-size: 16px; color: var(--ink-soft); line-height: 1.45; }

.facts { margin-top: 96px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.facts li {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 1px; align-content: center;
  padding: 18px 20px; border-radius: 24px; background: #fff;
  box-shadow: 0 1px 0 rgba(38, 21, 82, 0.05), 0 16px 34px -18px rgba(38, 21, 82, 0.35);
}
.fact-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); }
.fact-ico svg { width: 26px; height: 26px; }
.facts strong { font-size: 18px; font-weight: 900; line-height: 1.2; align-self: end; }
.facts span:last-child { font-size: 15px; color: var(--ink-soft); line-height: 1.35; align-self: start; }

/* ---------- Parents ---------- */
.parents { padding: 130px 0; background: #fff; overflow: clip; }
.parents-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.parents h2 { font-size: clamp(36px, 4.2vw, 56px); }
.parents .lede { max-width: 26em; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 900; color: var(--violet); text-decoration: none; }
.text-link svg { width: 20px; height: 20px; transition: transform 0.2s; }
.text-link:hover svg { transform: translateX(4px); }
.trust { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.trust .peek { position: absolute; z-index: 0; right: -30px; top: -70px; width: 120px; height: 120px; padding: 0; border: 0; background: none; }
.trust li { position: relative; z-index: 1; padding: 26px; border-radius: 28px; background: var(--cream); border: 1.5px solid rgba(38, 21, 82, 0.06); }
.trust-ico { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; color: var(--c); background: #fff; box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--c) 70%, transparent); margin-bottom: 16px; }
.trust-ico svg { width: 28px; height: 28px; }
.trust h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.trust p { margin-top: 8px; font-size: 16px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Final call ---------- */
.soon {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: 140px 0 clamp(250px, 24vw, 340px);
  background: radial-gradient(90% 70% at 50% 0%, #3b1cb4 0%, var(--night-1) 55%, var(--night-0) 100%);
}
.soon-inner { position: relative; z-index: 2; display: grid; justify-items: center; }
.soon-icon { width: 132px; height: 132px; border-radius: 32px; box-shadow: 0 24px 50px -14px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12); margin-bottom: 30px; animation: bob 4.5s ease-in-out infinite; }
.soon .lede { color: rgba(255, 255, 255, 0.8); max-width: 30em; margin-bottom: 34px; }
.soon-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 18px; }
.soon-mail { margin-top: 26px; font-size: 16px; color: rgba(255, 255, 255, 0.65); }
.soon-mail a { color: #fff; font-weight: 800; }
.pile { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(220px, 22vw, 320px); z-index: 1; }
.pile .pal { top: auto; bottom: var(--b); margin-left: calc(var(--s) / -2); }

/* ---------- Footer ---------- */
.footer { background: var(--night-0); color: rgba(255, 255, 255, 0.6); padding: 34px 0 40px; font-size: 15px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.footer-brand img { width: 120px; height: auto; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { color: #fff; font-weight: 800; text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.footer-x { display: inline-flex; align-items: center; gap: 7px; }
.footer-x svg { width: 15px; height: 15px; }
.footer p a { color: #fff; font-weight: 800; text-decoration: none; }
.footer p a:hover { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.screens .shot:nth-child(2) { transition-delay: 0.08s; }
.screens .shot:nth-child(3) { transition-delay: 0.16s; }
.screens .shot:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 120px 0 150px; gap: 40px; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-logo { margin-left: 0; }
  .hero-tag { max-width: 18ch; }
  .hero-ctas, .hero-facts { justify-content: center; }
  .hero-stage { width: min(560px, 100%); margin: 0 auto; }
  .worlds-inner { grid-template-columns: 1fr; text-align: center; }
  .worlds-copy { display: grid; justify-items: center; }
  .world-tabs, .world-chain { justify-content: center; }
  .worlds-shade { background: linear-gradient(180deg, rgba(12, 5, 40, 0.85) 0%, rgba(12, 5, 40, 0.6) 50%, rgba(12, 5, 40, 0.85) 100%); }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .shot .phone { margin-top: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parents-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .play-grid { grid-template-columns: 1fr; margin-top: 40px; gap: 0; }
  .play-stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 34px 0; display: grid; justify-items: center; text-align: center; }
  .step-phone { display: block; --w: min(270px, 72vw); margin-bottom: 34px; }
  .step p { margin-inline: auto; }
  .boosts { justify-content: center; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .nav { top: 10px; padding: 6px 6px 6px 8px; }
  .nav-logo { width: 96px; }
  .btn { font-size: 17px; padding: 14px 22px 15px; }
  .btn-sm { font-size: 15px; padding: 9px 15px 10px; }
  .btn-lg { font-size: 19px; padding: 17px 28px 18px; }
  .hero-inner { padding: 104px 0 140px; }
  .eyebrow { font-size: 13px; }
  .hero-sub { font-size: 17px; }
  .hero-facts { font-size: 14px; }
  .hero-facts { justify-content: center; gap: 6px 0; }
  .hero-facts li { padding: 0 10px; }
  .hero-facts li + li::before { display: none; }
  .trust .peek { right: -14px; top: -64px; width: 96px; height: 96px; }
  .trust .peek .pal { --s: 96px !important; }
  .hero-facts strong { font-size: 19px; }
  .hero-phone { --w: min(250px, 64vw); }
  .ribbons { height: 120px; margin: -60px 0 -58px; }
  .ribbon-pink { top: 31px; }
  .ribbon-gold { top: 18px; }
  .track span { font-size: 22px; padding: 0 14px; }
  .track img { width: 30px; height: 30px; }
  .ribbon-gold .track span { font-size: 15px; }
  .ribbon-gold .track img { width: 20px; height: 20px; }
  .lede { font-size: 18px; }
  .play { padding: 120px 0 70px; }
  .step h3 { font-size: 30px; }
  .step p { font-size: 17px; }
  .worlds { padding: 100px 0; }
  .world-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: calc(100% + var(--gutter) * 2); margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .world-tabs::-webkit-scrollbar { display: none; }
  .world-tab { flex: none; }
  .world-panel { min-height: 0; }
  .world-blurb { font-size: 17px; }
  .world-chain { height: 58px; }
  .world-chain > * { margin-left: -5px; }
  .world-chain .mystery { margin-left: 3px; border-width: 1.5px; }
  .more { padding: 100px 0 90px; }
  .screens { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter) 20px; scrollbar-width: none; }
  .screens::-webkit-scrollbar { display: none; }
  .shot { flex: none; width: 74vw; scroll-snap-align: center; }
  .shot .phone { --w: min(240px, 66vw); }
  .facts { grid-template-columns: 1fr; margin-top: 60px; }
  .parents { padding: 100px 0; }
  .trust { grid-template-columns: 1fr; }
  .soon { padding: 110px 0 230px; }
  .soon-icon { width: 108px; height: 108px; border-radius: 26px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

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