@font-face { font-family: "Fredoka"; src: url("fonts/fredoka-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  /* Reality (daylight) */
  --sun: #ff8a3d;
  --sun-2: #ff9f5b;
  --peach: #ffc794;
  --peach-top: #ffe2c2;
  --ink: #2a1b5c;          /* text on daylight */
  --ink-soft: #4b3488;
  /* Shadow world (night) */
  --night: #120e2a;
  --night-2: #2a1b5c;
  --violet: #7b5cff;
  --violet-2: #9a7bff;
  --glow: #9fe8ff;
  --cream: #fff8ec;
  --muted: #cbc2ea;
  --card: #1c1640;
  --card-2: #241c52;
  --hairline: rgba(255, 248, 236, .1);
  --shadow: rgba(4, 2, 16, .55);
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Fredoka", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--night); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--cream);
  font: 500 17px/1.65 var(--font);
  overflow-x: hidden;
}
h1, h2, h3, .brand { font-family: var(--font); font-weight: 700; letter-spacing: .005em; }
a { color: var(--sun-2); font-weight: 600; }
a:hover { color: var(--glow); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 700; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 12px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--sun), var(--violet), var(--glow));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Header ---------- */
header.top {
  position: sticky; top: 0; z-index: 50;
  height: 68px; display: flex; align-items: center;
  color: var(--ink);
  transition: background .3s, box-shadow .3s, color .3s;
}
header.top .wrap { width: 100%; }
header.top.scrolled {
  color: var(--cream);
  background: rgba(18, 14, 42, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 21px; white-space: nowrap; }
.brand:hover { color: inherit; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 12px rgba(42, 27, 92, .3); transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
header nav { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
header nav a { color: inherit; text-decoration: none; font-size: 16px; font-weight: 600; padding: 7px 13px; border-radius: 999px; transition: background .2s, color .2s; }
header nav a:hover { background: rgba(42, 27, 92, .12); color: inherit; }
header.top.scrolled nav a:hover { background: rgba(255, 248, 236, .1); }
header nav a.pill { background: var(--ink); color: var(--cream); }
header nav a.pill:hover { background: var(--violet); color: #fff; }
header.top.scrolled nav a.pill { background: var(--sun); color: var(--night); }
header.top.scrolled nav a.pill:hover { background: var(--sun-2); }
@media (max-width: 640px) {
  header nav a.opt { display: none; }
  .brand { font-size: 18px; }
  .brand img { width: 32px; height: 32px; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.zoom { transform: scale(.92); }
.js .reveal.in.zoom { transform: none; }

/* ---------- Hero: reality above, shadow below ---------- */
.hero {
  position: relative; overflow: hidden;
  margin-top: -68px; padding-top: 104px;
  background: linear-gradient(180deg, var(--peach-top) 0%, var(--peach) 38%, var(--sun-2) 100%);
  color: var(--ink);
  text-align: center;
}
.sun {
  position: absolute; top: 70px; right: max(4%, calc(50% - 520px)); width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, #fff3dc 0 45%, rgba(255, 243, 220, .0) 70%);
  box-shadow: 0 0 120px 40px rgba(255, 236, 200, .55);
  pointer-events: none; animation: sunPulse 7s ease-in-out infinite;
}
@keyframes sunPulse { 50% { transform: scale(1.06); } }
.cloud { position: absolute; height: 34px; border-radius: 999px; background: rgba(255, 255, 255, .55); pointer-events: none; animation: cloud 40s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 46px; height: 46px; left: 16%; top: -22px; }
.cloud::after { width: 62px; height: 62px; left: 42%; top: -32px; }
.cloud.c1 { width: 150px; top: 150px; left: 6%; }
.cloud.c2 { width: 110px; top: 250px; left: 70%; animation-duration: 55s; animation-delay: -20s; opacity: .8; }
@keyframes cloud { 50% { translate: 50px 0; } }

.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 15px; border-radius: 999px;
  background: rgba(255, 248, 236, .7); box-shadow: 0 0 0 1px rgba(42, 27, 92, .12), 0 6px 18px rgba(42, 27, 92, .12);
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 0 var(--violet); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero h1 { font-size: clamp(56px, 10vw, 112px); line-height: .95; margin: 22px 0 14px; letter-spacing: .01em; font-style: italic; text-transform: uppercase; }
.hero h1 .line { display: block; }
/* The game's logo: a white SHADOW over an electric-blue RUNNER, outlined in midnight. */
.hero h1 .w-shadow { color: #fff; -webkit-text-stroke: .09em #0b0822; paint-order: stroke fill; text-shadow: 0 .06em 0 #0b0822, 0 14px 30px rgba(42, 27, 92, .35); }
.hero h1 .w-runner { margin-left: .3em; background: linear-gradient(180deg, #9fc2ff, #4f7dff 50%, #3a4fe0); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 .06em 0 #0b0822) drop-shadow(0 0 1px #0b0822) drop-shadow(0 14px 24px rgba(42, 27, 92, .35)); }
.hero .tag { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin: 0; }
.hero .sub { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 600px; margin: 10px auto 0; }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 16px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 210px; padding: 11px 22px;
  background: var(--ink); color: var(--cream);
  border-radius: 16px; text-decoration: none; text-align: left; line-height: 1.2;
  box-shadow: 0 10px 24px rgba(42, 27, 92, .3);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.store:hover { color: var(--cream); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(42, 27, 92, .35); }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store small { display: block; font-weight: 500; font-size: 13px; opacity: .8; }
.store span { font-weight: 700; font-size: 19px; }
.checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 0; margin: 0; list-style: none; font-size: 16px; font-weight: 600; color: var(--ink); }
.checks li::before { content: "✓"; color: var(--violet); font-weight: 700; margin-right: 6px; }

/* Stage: phones standing on the horizon between the two worlds */
.stage { position: relative; height: 560px; margin-top: 44px; }
.stage::before {
  content: ""; position: absolute; inset: 50% 0 0 0;
  background: linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%);
}
.horizon {
  position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1px; z-index: 1;
  background: var(--cream);
  box-shadow: 0 0 12px 2px rgba(159, 232, 255, .9), 0 0 40px 8px rgba(159, 232, 255, .35);
}
.skyline { position: absolute; left: 0; width: 100%; height: 120px; pointer-events: none; }
.skyline.up { bottom: 50%; color: rgba(232, 112, 52, .55); }
.skyline.down { top: 50%; color: rgba(123, 92, 255, .22); transform: scaleY(-1); }
.moon {
  position: absolute; left: max(6%, calc(50% - 500px)); top: 66%; width: 64px; height: 64px; border-radius: 50%;
  box-shadow: inset -16px 10px 0 0 var(--cream); transform: rotate(-20deg); opacity: .9;
  filter: drop-shadow(0 0 18px rgba(159, 232, 255, .5));
  pointer-events: none;
}
.stars { position: absolute; inset: 52% 0 0 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 30%, var(--glow), transparent),
    radial-gradient(1.5px 1.5px at 28% 70%, var(--cream), transparent),
    radial-gradient(2px 2px at 44% 40%, var(--glow), transparent),
    radial-gradient(1.5px 1.5px at 63% 80%, var(--cream), transparent),
    radial-gradient(2px 2px at 78% 25%, var(--glow), transparent),
    radial-gradient(1.5px 1.5px at 90% 60%, var(--cream), transparent);
  opacity: .7; animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .3; } }

.phones { position: absolute; inset: 0; z-index: 2; }
.phone {
  position: absolute; width: 250px; aspect-ratio: 540 / 960;
  border-radius: 34px; padding: 8px;
  background: #0b0820;
  box-shadow: 0 30px 60px -10px var(--shadow), inset 0 0 0 2px rgba(255, 248, 236, .12);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
.phones .p-main { left: 50%; top: 40px; margin-left: -125px; z-index: 3; }
.phones .p-left { left: 50%; top: 80px; margin-left: -300px; z-index: 2; width: 210px; transform: rotate(-8deg); }
.phones .p-right { left: 50%; top: 80px; margin-left: 90px; z-index: 1; width: 210px; transform: rotate(8deg); }
.float { animation: float 6s ease-in-out infinite; }
.float.slow { animation-duration: 7.5s; animation-delay: -2s; }
.float.slower { animation-duration: 8.5s; animation-delay: -4s; }
@keyframes float { 50% { translate: 0 -14px; } }
.parallax { will-change: transform; }

@media (max-width: 640px) {
  .hero { padding-top: 92px; }
  .sun { width: 96px; height: 96px; top: 76px; right: -10px; }
  .cloud.c2 { display: none; }
  .stage { height: 430px; margin-top: 36px; }
  .phone { width: 184px; border-radius: 28px; padding: 6px; }
  .phone img { border-radius: 23px; }
  .phones .p-main { margin-left: -92px; top: 30px; }
  .phones .p-left, .phones .p-right { width: 150px; top: 62px; }
  .phones .p-left { margin-left: -186px; }
  .phones .p-right { margin-left: 36px; }
  .moon { width: 46px; height: 46px; box-shadow: inset -12px 8px 0 0 var(--cream); left: 4%; top: 86%; }
  .store { min-width: 0; flex: 1 1 210px; max-width: 300px; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 3;
  overflow: hidden; background: var(--sun); color: var(--night);
  transform: rotate(-2deg); margin: -26px -20px 0; padding: 14px 0;
  box-shadow: 0 14px 30px var(--shadow);
}
.marquee .track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee span { font: 700 24px var(--font); white-space: nowrap; padding-right: 28px; letter-spacing: .02em; }
.marquee span em { font-style: normal; color: var(--cream); padding-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
main { overflow-x: clip; }
section { padding: 96px 0; position: relative; }
.kicker { display: block; text-align: center; font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sun-2); margin-bottom: 10px; }
section h2 { font-size: clamp(34px, 5.4vw, 52px); text-align: center; margin: 0 0 12px; line-height: 1.06; }
section .lead { text-align: center; color: var(--muted); margin: 0 auto 48px; max-width: 600px; font-size: 19px; }
@media (max-width: 640px) { section { padding: 72px 0; } }
.glow-a::before, .glow-b::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(80px);
  width: 520px; height: 520px; opacity: .22;
}
.glow-a::before { background: var(--violet); top: 0; left: -200px; }
.glow-b::before { background: var(--sun); top: 10%; right: -240px; opacity: .14; }
main { position: relative; z-index: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 26px 12px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--hairline), 0 12px 30px -12px var(--shadow); }
.stat b { display: block; font: 700 56px/1 var(--font); color: var(--sun); }
.stat:nth-child(even) b { color: var(--violet-2); }
.stat span { display: block; margin-top: 8px; font-weight: 600; color: var(--muted); font-size: 16px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat b { font-size: 46px; } }

/* Switch demo */
.demo-card {
  text-align: center; border-radius: 32px; padding: 56px 24px 44px;
  background: var(--card); box-shadow: 0 0 0 1px var(--hairline), 0 30px 60px -20px var(--shadow);
}
.demo-card .lead { margin-bottom: 28px; }
.demo {
  display: block; width: 100%; max-width: 760px; margin: 0 auto; padding: 0; border: 0; cursor: pointer; font: inherit; color: inherit; text-align: left;
  border-radius: 22px; overflow: hidden; background: var(--night);
  box-shadow: 0 0 0 2px var(--hairline);
}
.demo { position: relative; }
/* Each lane is a real in-game view: the sunny street above, the shadow street below. */
.lane { display: block; position: relative; aspect-ratio: 1100 / 520; overflow: hidden; transition: filter .35s, opacity .35s; }
.lane > span { display: block; position: absolute; }
.lane img { width: 100%; height: 100%; object-fit: cover; }
.lane.reality { background: #b9aa98; }

.lane.shadow { background: #221a46; }

.lane + .lane { border-top: 3px solid var(--cream); box-shadow: inset 0 6px 14px -6px rgba(159, 232, 255, .8); }
.lane .pill-label {
  left: 12px; top: 12px; z-index: 3;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px;
}
.lane.reality .pill-label { background: var(--sun); color: #fff; }
.lane.shadow .pill-label { background: var(--violet); color: #fff; }
.demo[data-active="reality"] .lane.shadow,
.demo[data-active="shadow"] .lane.reality { filter: saturate(.35) brightness(.55); }
.demo[data-active="reality"] .lane.shadow .pill-label::after,
.demo[data-active="shadow"] .lane.reality .pill-label::after { content: " · idle"; font-weight: 600; }
.demo[data-active="reality"] .lane.reality .pill-label::after,
.demo[data-active="shadow"] .lane.shadow .pill-label::after { content: " · active"; }

/* The switch orb on the seam, like the in-game button. */
.orb { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; z-index: 4; border-radius: 50%;
  background: conic-gradient(from 90deg, #2a2060 0 50%, #fff 50% 100%);
  border: 5px solid #141033; box-shadow: 0 0 0 4px #5aa8ff, 0 0 22px 6px rgba(90, 168, 255, .55); transition: transform .35s var(--ease), box-shadow .35s; }
.orb::before, .orb::after { content: ""; position: absolute; top: 50%; width: 50%; height: 50%; margin-top: -25%; border-radius: 50%; }
.orb::before { left: 0; background: radial-gradient(circle, #fff 0 18%, #2a2060 20%); }
.orb::after { right: 0; background: radial-gradient(circle, #2a2060 0 18%, #fff 20%); }
.demo[data-active="shadow"] .orb { transform: rotate(180deg); box-shadow: 0 0 0 4px #9a7bff, 0 0 22px 6px rgba(154, 123, 255, .55); }

/* How it works: four steps */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; align-content: start; }
.step .phone { grid-column: 1 / -1; }
.step .phone { position: relative; width: 100%; border-radius: 28px; padding: 6px; }
.step .phone img { display: block; border-radius: 23px; }
.step b { display: grid; place-items: center; width: 46px; height: 46px; margin-top: 18px; grid-row: span 2;
  font-size: 30px; font-style: italic; color: #fff; background: linear-gradient(135deg, #4f7dff, #7b5cff); border-radius: 12px; transform: skew(-8deg); }
.step h3 { grid-column: 2; margin: 18px 0 2px; line-height: 1.2; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.step p { grid-column: 2; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.tagline { margin: 44px 0 0; text-align: center; letter-spacing: .4em; text-transform: uppercase; font-style: italic; color: var(--muted); font-size: 15px; }
.tagline span { color: #6f9cff; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .steps { gap: 18px 12px; } .step { grid-template-columns: 34px 1fr; column-gap: 8px; } .step b { width: 34px; height: 34px; font-size: 22px; border-radius: 9px; } .step h3 { font-size: 14px; } .step p { font-size: 13px; } .tagline { letter-spacing: .2em; } }
.demo-msg { min-height: 3.4em; margin: 18px auto 0; max-width: 560px; color: var(--muted); font-size: 17px; }
.demo-msg strong { color: var(--cream); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 10px;
  border: 0; cursor: pointer; padding: 14px 26px; border-radius: 999px;
  font: 700 18px var(--font); color: var(--night);
  background: linear-gradient(90deg, var(--sun) 0 50%, var(--violet-2) 50% 100%);
  box-shadow: 0 8px 0 #4a2fb0, 0 18px 30px var(--shadow);
  transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(6px); box-shadow: 0 2px 0 #4a2fb0, 0 8px 14px var(--shadow); }
.kbd-hint { display: block; margin-top: 16px; font-size: 14px; color: var(--muted); }
kbd { font: 600 13px var(--font); padding: 2px 8px; border-radius: 6px; background: var(--card-2); box-shadow: 0 0 0 1px var(--hairline); }

/* Rules */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; text-align: left; }
.rule { padding: 18px; border-radius: 18px; background: var(--card-2); box-shadow: 0 0 0 1px var(--hairline); }
.rule b { display: block; font-size: 17px; font-weight: 700; color: var(--cream); margin-bottom: 4px; }
.rule p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 860px) { .rules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .rules { grid-template-columns: 1fr; } }

/* Gallery */
.gallery-wrap { position: relative; }
.gallery {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 20px max(20px, calc((100vw - 1120px) / 2 + 20px)) 36px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.shot { flex: none; width: 230px; margin: 0; scroll-snap-align: center; text-align: center; }
@media (max-width: 640px) { .shot { width: 200px; } .gallery { gap: 20px; } }
.shot .phone { position: relative; width: 100%; transition: transform .5s var(--ease); }
.shot:hover .phone { transform: translateY(-8px) rotate(-1.5deg); }
.shot h3 { margin: 18px 0 2px; font-size: 21px; }
.shot p { margin: 0; color: var(--muted); font-size: 15px; }
.gallery-nav { display: flex; justify-content: center; gap: 12px; }
.gallery-nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--card-2); color: var(--cream); font: 700 20px var(--font);
  box-shadow: 0 0 0 1px var(--hairline), 0 8px 20px var(--shadow);
  transition: transform .2s var(--ease), background .2s;
}
.gallery-nav button:hover { transform: scale(1.08); background: var(--violet); }

/* Worlds */
.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .worlds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .worlds { grid-template-columns: 1fr; } }
.world {
  border-radius: var(--radius); background: var(--card); overflow: hidden;
  box-shadow: 0 0 0 1px var(--hairline), 0 12px 30px -14px var(--shadow);
  transition: transform .35s var(--ease);
}
.world:hover { transform: translateY(-6px); }
.world .banner { position: relative; height: 96px; background: linear-gradient(180deg, var(--a1) 0 50%, var(--b1) 50% 100%); border-bottom: 3px solid var(--a2); }
.world .banner::before {
  content: ""; position: absolute; left: 0; right: 0; top: 18%; height: 32%;
  background: linear-gradient(90deg, var(--a2) 0 9%, transparent 9% 12%, var(--a2) 12% 26%, transparent 26% 30%, var(--a2) 30% 41%, transparent 41% 45%, var(--a2) 45% 62%, transparent 62% 66%, var(--a2) 66% 80%, transparent 80% 84%, var(--a2) 84% 100%);
  clip-path: polygon(0 40%, 9% 40%, 9% 0, 41% 0, 41% 20%, 62% 20%, 62% 0, 100% 0, 100% 100%, 0 100%);
}
.world .banner::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--cream);
  box-shadow: 0 0 10px rgba(159, 232, 255, .8);
}
.world .num {
  position: absolute; left: 14px; bottom: 10px; z-index: 1;
  font-weight: 700; font-size: 14px; color: var(--cream); background: rgba(18, 14, 42, .6); padding: 2px 10px; border-radius: 999px;
}
.world .body { padding: 20px 22px 24px; }
.world h3 { margin: 0; font-size: 23px; }
.world .motto { margin: 0 0 8px; color: var(--sun-2); font-weight: 600; font-size: 15px; }
.world p { margin: 0; color: var(--muted); }
.w1 { --a1: #ffc794; --a2: #ff8a3d; --b1: #241a52; }
.w2 { --a1: #b8ecc4; --a2: #4cb56a; --b1: #13253a; }
.w3 { --a1: #b79bff; --a2: #3fd0e0; --b1: #1b0f33; }
.w4 { --a1: #ffd9a0; --a2: #d9a040; --b1: #251a28; }
.w5 { --a1: #9cc6b8; --a2: #2fa894; --b1: #0d2428; }
.w6 { --a1: #8a5a7a; --a2: #9a7bff; --b1: #150b24; }

/* Features + puzzles */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.feature {
  padding: 26px 24px; border-radius: var(--radius); background: var(--card);
  box-shadow: 0 0 0 1px var(--hairline), 0 12px 30px -14px var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(154, 123, 255, .45), 0 24px 44px -14px var(--shadow); }
.feature .ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-size: 27px; margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(255, 138, 61, .22) 0 50%, rgba(123, 92, 255, .28) 50% 100%);
  transition: transform .5s var(--ease);
}
.feature:hover .ico { transform: rotate(-10deg) scale(1.1); }
.feature h3 { font-size: 22px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); }
.puzzle { display: flex; gap: 16px; align-items: flex-start; }
.puzzle .ico { flex: none; margin: 0; }
.puzzle .flow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--glow); margin-bottom: 2px; }

/* FAQ */
.faq details {
  background: var(--card); border-radius: 18px; margin-bottom: 12px;
  box-shadow: 0 0 0 1px var(--hairline), 0 8px 20px -12px var(--shadow);
  transition: box-shadow .3s;
}
.faq details[open] { box-shadow: 0 0 0 2px var(--violet), 0 14px 30px -14px var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 56px 18px 22px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(123, 92, 255, .25); color: var(--glow);
  font-size: 20px; line-height: 1; transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.faq details[open] p { animation: fadeDown .35s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }
.contact { text-align: center; margin-top: 32px; color: var(--muted); }

/* CTA */
.cta {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 36px;
  box-shadow: 0 0 0 1px var(--hairline), 0 40px 80px -30px var(--shadow);
}
.cta-top { padding: 64px 24px 36px; color: var(--ink); background: linear-gradient(180deg, var(--peach-top), var(--sun-2)); }
.cta-bottom {
  padding: 36px 24px 60px; background: linear-gradient(180deg, var(--night-2), var(--night));
  border-top: 3px solid var(--cream); box-shadow: inset 0 10px 20px -10px rgba(159, 232, 255, .8);
}
.cta img { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 18px; box-shadow: 0 18px 40px rgba(42, 27, 92, .4); animation: float 6s ease-in-out infinite; }
.cta h2 { color: var(--ink); margin: 0; }
.cta p { color: var(--muted); margin: 0 auto; max-width: 480px; font-size: 18px; }
.cta .stores { margin-top: 22px; margin-bottom: 0; }
.cta .store { background: var(--cream); color: var(--night); box-shadow: 0 10px 24px var(--shadow); }

/* ---------- Legal pages ---------- */
body.legal { background: radial-gradient(ellipse 90% 340px at 50% 0, rgba(255, 138, 61, .32), transparent 70%), linear-gradient(180deg, var(--night-2) 0, var(--night) 480px) no-repeat, var(--night); }
body.legal header.top, body.notfound-page header.top { color: var(--cream); }
.doc { padding: 24px 20px 64px; }
.doc h1 { font-size: clamp(38px, 7vw, 56px); line-height: 1.05; margin: 20px 0 6px; }
.doc h2 { font-size: 24px; text-align: left; margin: 36px 0 8px; color: var(--sun-2); }
.doc p, .doc li { color: #e9e3f7; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 4px 22px;
  box-shadow: 0 0 0 1px var(--hairline), 0 12px 30px -14px var(--shadow);
}
.doc .card { margin-top: 24px; border-left: 5px solid var(--violet); }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }

/* 404 */
body.notfound-page { background: linear-gradient(180deg, var(--peach-top) 0%, var(--sun-2) 50%, var(--night-2) 50%, var(--night) 100%) fixed; min-height: 100vh; }
.notfound { text-align: center; padding: 0 20px; min-height: 100vh; display: grid; grid-template-rows: 1fr 1fr; }
.notfound .above, .notfound .below { display: flex; flex-direction: column; align-items: center; }
.notfound .above { justify-content: flex-end; padding-bottom: 18px; color: var(--ink); }
.notfound .below { justify-content: flex-start; padding-top: 22px; }
.notfound h1 { font-size: clamp(90px, 20vw, 160px); line-height: .9; margin: 0; color: var(--ink); }
.notfound h1 + p { margin: 6px 0 0; font-size: 20px; font-weight: 600; }
.notfound .below .ghost { font-size: clamp(90px, 20vw, 160px); line-height: .9; margin: 0; font-weight: 700; color: transparent; -webkit-text-stroke: 2px var(--violet-2); transform: scaleY(-1); opacity: .6; animation: ghost 3s ease-in-out infinite; }
@keyframes ghost { 50% { opacity: .25; } }
.notfound .below p { font-size: 19px; color: var(--muted); margin: 8px 0; }
.notfound .line404 { position: fixed; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1px; background: var(--cream); box-shadow: 0 0 12px 2px rgba(159, 232, 255, .9); }

/* ---------- Footer ---------- */
footer { padding: 48px 0 40px; text-align: center; font-size: 15px; color: var(--muted); border-top: 1px solid var(--hairline); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
footer nav a { color: var(--cream); text-decoration: none; padding: 6px 2px; }
footer nav a:hover { color: var(--sun-2); }
footer p { margin: 14px 0 0; }

/* About (SEO copy) */
.about h2 { margin-bottom: 28px; }
.about p { font-size: 18px; margin: 0 0 18px; color: var(--muted); }
.about p strong, .about p em { color: var(--cream); }

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