@font-face {
  font-family: "Baloo 2";
  src: url("assets/fonts/Baloo2-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.11);
  --text: #f7f3ff;
  --text-2: #cdc4de;
  --muted: #958ba9;
  --yellow: #ffd12e;
  --orange: #ff9a1f;
  --pink: #ff5fb2;
  --magenta: #ff2f8e;
  --blue: #3fb8ff;
  --blue-2: #2a7bff;
  --navy: #1b1464;
  --navy-2: #0c0838;
  --green: #6be36b;
  --teal: #45d9c3;
  --violet: #c77dff;
  --cream: #fff3d6;
  --grad-yellow: linear-gradient(180deg, #fff2ad 0%, #ffd12e 48%, #ff9a1f 100%);
  --grad-pink: linear-gradient(180deg, #ffc2e4 0%, #ff5fb2 50%, #ff2f8e 100%);
  --grad-blue: linear-gradient(180deg, #c6efff 0%, #3fb8ff 50%, #2a7bff 100%);
  --grad-mint: linear-gradient(180deg, #d9fff3 0%, #45d9c3 50%, #1fa88f 100%);
  --grad-rainbow: linear-gradient(90deg, #ff5c5c, #ffa63d, #ffe45c, #6be36b, #45d9c3, #4da3ff, #c77dff);
  --display: "Baloo 2", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 28px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55vmax 55vmax at 8% -10%, rgba(255, 95, 178, 0.2), transparent 60%),
    radial-gradient(45vmax 45vmax at 100% 5%, rgba(63, 184, 255, 0.16), transparent 60%),
    radial-gradient(50vmax 40vmax at 50% 110%, rgba(255, 209, 46, 0.09), transparent 60%);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 16px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; border-radius: 12px; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text-2);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--surface-2); color: #fff; }
.nav .btn { padding: 12px 20px; font-size: 1rem; box-shadow: 0 4px 0 var(--navy); }
.nav .btn:hover { box-shadow: 0 6px 0 var(--navy); }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 3px solid var(--navy);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 0 var(--navy), 0 16px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 4px;
  height: 40%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--navy), 0 20px 36px rgba(0, 0, 0, 0.5); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--navy), 0 8px 20px rgba(0, 0, 0, 0.5); }
.btn svg { width: 1.2em; height: 1.2em; flex: 0 0 auto; }
.btn-yellow { background: linear-gradient(180deg, #ffe66b 0%, #ffcf1f 55%, #ff9f1c 100%); }
.btn-pink { background: linear-gradient(180deg, #ff9ad1 0%, #ff5fb2 55%, #ff2f8e 100%); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.btn-blue { background: linear-gradient(180deg, #8fdcff 0%, #3fb8ff 55%, #2a7bff 100%); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); color: #fff; box-shadow: none; }
.btn-ghost::before { display: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
.btn-ghost:active { box-shadow: none; }

/* Bubble headings: the heading itself carries the gradient (clipped to its glyphs) and a
   navy outline copy sits at z-index -1, so its shadow paints under every sibling's text.
   The heading must not create a stacking context, or the copy would cover the gradient. */
.bubble {
  display: block;
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.01em;
  background: var(--grad, var(--grad-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.bubble::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-text-stroke: 0.13em var(--navy);
  -webkit-text-fill-color: var(--navy);
  color: var(--navy);
  text-shadow: 0 0.07em 0 var(--navy-2), 0 0.35em 1em rgba(0, 0, 0, 0.7);
}
.bubble-pink { --grad: var(--grad-pink); }
.bubble-blue { --grad: var(--grad-blue); }
.bubble-mint { --grad: var(--grad-mint); }
.bubble-rainbow { --grad: var(--grad-rainbow); }
.h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--text-2); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.fine { color: var(--muted); font-size: 0.95rem; margin-top: 16px; }

/* Hero */
.hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-logo {
  width: min(440px, 100%);
  margin-bottom: 26px;
  filter: drop-shadow(0 18px 40px rgba(255, 95, 178, 0.28));
  animation: bob 5s ease-in-out infinite;
}
.stage { position: relative; width: min(540px, 100%); aspect-ratio: 1; margin-inline: auto; }
.stage > * { position: absolute; }
.wheel { animation: spin var(--dur, 20s) linear infinite; will-change: transform; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }
.wheel-main { width: 64%; left: 18%; bottom: 2%; --dur: 22s; }
.wheel-donut { width: 34%; right: -2%; top: 4%; --dur: 30s; animation-direction: reverse; }
.wheel-gold { width: 24%; left: 0; top: 14%; --dur: 14s; }
.marsh {
  width: 32%;
  left: 34%;
  bottom: 62%;
  z-index: 2;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55));
  animation: hop 2.8s ease-in-out infinite;
}
.star { width: 9%; animation: twinkle 3s ease-in-out infinite; }
.star.s1 { left: 8%; top: 42%; }
.star.s2 { left: 30%; top: 6%; width: 7%; animation-delay: -1s; }
.star.s3 { right: 6%; top: 44%; animation-delay: -2s; }
.star.s4 { right: 18%; bottom: 4%; width: 6%; animation-delay: -0.5s; }

/* Sections */
.section { position: relative; padding: clamp(56px, 8vw, 110px) 0; }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 44px; }
.section-head .lead { margin: 14px auto 0; }

/* Game */
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.game-logo { width: min(460px, 100%); margin: 6px 0 18px; filter: drop-shadow(0 16px 36px rgba(199, 125, 255, 0.35)); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}
.chips li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 10px var(--dot); }
.chips li:nth-child(6n + 1) { --dot: var(--yellow); }
.chips li:nth-child(6n + 2) { --dot: var(--pink); }
.chips li:nth-child(6n + 3) { --dot: var(--blue); }
.chips li:nth-child(6n + 4) { --dot: var(--green); }
.chips li:nth-child(6n + 5) { --dot: var(--violet); }
.chips li:nth-child(6n + 6) { --dot: var(--teal); }
.phones { position: relative; height: 560px; }
.phone {
  position: absolute;
  width: 46%;
  aspect-ratio: 9 / 16;
  margin: 0;
  border-radius: 34px;
  overflow: hidden;
  border: 5px solid #17111f;
  background: #000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone.p1 { left: 0; top: 10%; transform: rotate(-9deg); z-index: 1; }
.phone.p2 { left: 27%; top: 0; z-index: 3; }
.phone.p3 { right: 0; top: 10%; transform: rotate(9deg); z-index: 2; }
.phone.p4 { display: none; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  background: var(--grad-yellow);
  box-shadow: 0 4px 0 var(--navy);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
}
.step:nth-child(2) .step-num { background: var(--grad-pink); }
.step:nth-child(3) .step-num { background: var(--grad-blue); }
.step h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 1.45rem; }
.step p { margin: 0; color: var(--text-2); }

/* Worlds */
.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.world {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s;
}
.world:hover { transform: translateY(-8px) rotate(-1deg); }
.world img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.world-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: var(--wg);
  box-shadow: 0 3px 0 var(--navy);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--navy);
}
.world-body { padding: 18px 20px 22px; }
.world h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  background: var(--wg);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.world p { margin: 0; color: var(--text-2); }
.world-candies { --wg: var(--grad-pink); }
.world-cookies { --wg: var(--grad-yellow); }
.world-icecream { --wg: var(--grad-blue); }

/* Characters */
.marquee {
  overflow: hidden;
  padding: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.char {
  flex: 0 0 auto;
  width: 168px;
  margin-right: 16px;
  padding: 18px 12px 14px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.char img { height: 120px; width: auto; margin: 0 auto 10px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); animation: bob 3.2s ease-in-out infinite; }
.char:nth-child(2n) img { animation-delay: -1.1s; }
.char:nth-child(3n) img { animation-delay: -2.2s; }
.char b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.char span { color: var(--muted); font-size: 0.85rem; }

/* Boosters */
.boosters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.boost {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.2s;
}
.boost:hover { transform: translateY(-4px); }
.boost img { width: 78px; height: 78px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
.boost h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.boost p { margin: 2px 0 0; color: var(--text-2); font-size: 0.95rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.about-art { position: relative; display: grid; place-items: center; min-height: 320px; }
.about-art .mascot { width: min(320px, 72%); animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(255, 95, 178, 0.35)); }
.about-art .wheel { position: absolute; width: 46%; right: 4%; bottom: 0; --dur: 28s; opacity: 0.9; z-index: -1; }
.about-art .star { position: absolute; width: 11%; }
.about-art .star.s1 { left: 10%; top: 12%; }
.about-art .star.s2 { right: 8%; top: 20%; width: 8%; animation-delay: -1.4s; }
.values { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 24px 0 0; }
.values li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 800;
}
.values img { width: 30px; height: 30px; object-fit: contain; }

/* Support */
.support-card {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px) 24px;
  border-radius: 36px;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255, 95, 178, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  text-align: center;
  isolation: isolate;
}
.support-card .lead { margin-inline: auto; }
.support-card .cta-row { justify-content: center; }
.support-card .wheel { position: absolute; width: 180px; opacity: 0.35; z-index: -1; }
.support-card .wheel.left { left: -70px; bottom: -70px; }
.support-card .wheel.right { right: -60px; top: -60px; animation-direction: reverse; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer-inner > p { margin: 0; }
.footer img { height: 34px; width: auto; }
.footer-links { display: flex; gap: 18px; margin-left: auto; }
.footer-links a { color: var(--text-2); text-decoration: none; font-family: var(--display); font-weight: 800; }
.footer-links a:hover { color: #fff; }
.legal { width: 100%; margin: 8px 0 0; font-size: 0.82rem; }

/* Privacy page */
.doc { padding: clamp(40px, 6vw, 80px) 0; }
.doc-card {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  isolation: isolate;
}
.doc .updated { color: var(--muted); margin: 10px 0 24px; }
.doc h2 { margin: 34px 0 8px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: #fff; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--blue); }
.notice {
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 209, 46, 0.1);
  border: 1px solid rgba(255, 209, 46, 0.35);
  color: var(--cream);
}

/* Motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes hop {
  0%, 55%, 100% { transform: translateY(0) scale(1, 1); }
  60% { transform: translateY(4px) scale(1.08, 0.9); }
  78% { transform: translateY(-46px) scale(0.94, 1.08); }
  92% { transform: translateY(2px) scale(1.06, 0.94); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.55; transform: scale(0.85) rotate(-8deg); }
  50% { opacity: 1; transform: scale(1.12) rotate(8deg); }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .game-grid, .about-grid { grid-template-columns: 1fr; }
  .stage { width: min(420px, 100%); }
  .about-grid { gap: 16px; }
  .about-art { order: -1; min-height: 260px; }
  .phones {
    height: auto;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px var(--gutter) 24px;
    margin-inline: calc(-1 * var(--gutter));
    scrollbar-width: none;
  }
  .phones::-webkit-scrollbar { display: none; }
  .phone { position: static; transform: none !important; flex: 0 0 66%; max-width: 300px; scroll-snap-align: center; }
  .phone.p4 { display: block; }
  .boosters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 600px) {
  .steps, .worlds, .boosters { grid-template-columns: 1fr; }
  .btn { padding: 15px 22px; font-size: 1.05rem; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .footer-links { margin-left: 0; }
}

.hero-copy .h1 { margin-bottom: 18px; }
.section-head .h2, .about-grid .h2, .support-card .h2 { margin-bottom: 6px; }
.about-art { isolation: isolate; }
