:root {
  --ink: #2b2350;
  --ink-soft: #6a6390;
  --plate: #4b33a8;
  --plate-dark: #33237a;
  --sky: #7cc8ff;
  --deep: #5b3fd9;
  --cream: #fff8ec;
  --card: #ffffff;
  --red: #f2483f; --yellow: #ffd23f; --green: #3dcb6c; --blue: #3d8bfd;
  --purple: #9b5de5; --orange: #ff9a2e; --cyan: #2ed3e0; --gold: #ffc83d; --play: #34c759;
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--plate); }

/* ---------- chunky building blocks ---------- */
.btn {
  --c: var(--play); --d: #1f9e45;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 20px;
  background: var(--c);
  color: #fff; font-weight: 900; font-size: 20px; text-decoration: none; letter-spacing: .3px;
  border: 4px solid var(--ink);
  box-shadow: 0 7px 0 var(--ink), inset 0 -6px 0 var(--d), inset 0 5px 0 rgba(255, 255, 255, .25);
  text-shadow: 0 2px 0 rgba(43, 35, 80, .55);
  transition: transform .12s ease, box-shadow .12s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 9px 0 var(--ink), inset 0 -6px 0 var(--d), inset 0 5px 0 rgba(255, 255, 255, .25); }
.btn:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink), inset 0 -3px 0 var(--d); }
.btn.orange { --c: var(--orange); --d: #d97a10; }
.btn.purple { --c: #8e5cf7; --d: #6a3fc0; }
.btn.soon { --c: #8f8aa8; --d: #6e6a86; cursor: default; }
.btn svg { width: 24px; height: 24px; filter: drop-shadow(0 2px 0 rgba(43, 35, 80, .5)); }

.sticker {
  background: var(--card);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--ink);
}

.plate {
  display: inline-block;
  background: var(--plate);
  color: #fff;
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 7px 0 var(--ink), inset 0 -7px 0 var(--plate-dark);
  padding: 8px 26px 12px;
  font-weight: 900;
  text-shadow: 0 3px 0 var(--ink);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px;
  background: rgba(75, 51, 168, .94);
  backdrop-filter: blur(8px);
  border-bottom: 4px solid var(--ink);
}
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 900; font-size: 21px; text-shadow: 0 2px 0 var(--ink); }
.nav .brand img { width: 40px; height: 40px; border-radius: 12px; border: 3px solid var(--ink); }
.nav .links { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav .links a { color: #fff; text-decoration: none; font-weight: 900; padding: 8px 12px; border-radius: 12px; }
.nav .links a:hover { background: rgba(255, 255, 255, .15); }
.nav .links a.navcta { background: var(--play); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); padding: 6px 14px; }
@media (max-width: 760px) { .nav .links a:not(.keep) { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky), var(--deep));
  padding: 60px 20px 150px;
  color: #fff;
}
.rays {
  position: absolute; left: 50%; top: 48%; width: 2400px; height: 2400px; margin: -1200px 0 0 -1200px;
  background: repeating-conic-gradient(rgba(255, 255, 255, .13) 0 10deg, transparent 10deg 20deg);
  border-radius: 50%;
  animation: spin 90s linear infinite;
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 60%);
  mask-image: radial-gradient(circle, #000 18%, transparent 60%);
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } }

.logo-blocks { display: flex; gap: 14px; align-items: flex-start; }
@media (max-width: 900px) { .logo-blocks { justify-content: center; } }
.blk {
  width: 104px; height: 104px; display: grid; place-items: center;
  border: 5px solid var(--ink); border-radius: 26px;
  font-size: 66px; font-weight: 900; color: #fff;
  -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill;
  box-shadow: 0 9px 0 var(--ink), inset 0 -10px 0 rgba(0, 0, 0, .18), inset 0 8px 0 rgba(255, 255, 255, .25);
  animation: bob 2.6s ease-in-out infinite;
}
.blk.r { background: var(--red); rotate: -5deg; }
.blk.y { background: var(--yellow); animation-delay: .25s; }
.blk.b { background: var(--blue); rotate: 4deg; animation-delay: .5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.badge3d {
  margin-left: 4px; margin-top: -8px;
  background: var(--orange); border: 5px solid var(--ink); border-radius: 22px;
  padding: 2px 16px 8px; font-size: 40px; font-weight: 900; rotate: -10deg; color: #fff;
  -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill;
  box-shadow: 0 7px 0 var(--ink);
}

.rainbow { font-size: clamp(60px, 10.5vw, 128px); font-weight: 900; line-height: 1.05; margin: 16px 0 4px; letter-spacing: 2px; }
.rainbow span { display: inline-block; -webkit-text-stroke: 12px var(--ink); paint-order: stroke fill; text-shadow: 0 10px 0 var(--ink); }
.rainbow span:nth-child(7n+1) { color: var(--yellow); }
.rainbow span:nth-child(7n+2) { color: var(--green); }
.rainbow span:nth-child(7n+3) { color: var(--cyan); }
.rainbow span:nth-child(7n+4) { color: var(--orange); }
.rainbow span:nth-child(7n+5) { color: var(--red); }
.rainbow span:nth-child(7n+6) { color: var(--purple); }
.rainbow span:nth-child(7n+7) { color: var(--blue); }

.tagline { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; margin: 20px 0 8px; text-shadow: 0 3px 0 rgba(43, 35, 80, .6); }
.sub { font-size: 19px; max-width: 560px; margin: 0 0 26px; text-shadow: 0 2px 0 rgba(43, 35, 80, .35); }
@media (max-width: 900px) { .sub { margin-left: auto; margin-right: auto; } }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 900px) { .cta { justify-content: center; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (max-width: 900px) { .chips { justify-content: center; } }
.chip { background: rgba(43, 35, 80, .35); border: 3px solid rgba(255, 255, 255, .55); border-radius: 999px; padding: 5px 14px; font-weight: 900; font-size: 15px; }

/* phone mockup */
.phone {
  position: relative; width: min(320px, 78vw); margin: 0 auto; aspect-ratio: 9 / 16.6;
  border: 6px solid var(--ink); border-radius: 46px; background: var(--ink);
  box-shadow: 0 14px 0 var(--ink), 0 30px 60px rgba(20, 10, 60, .45);
  padding: 10px; rotate: 4deg;
  animation: float 5s ease-in-out infinite;
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #000; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.phone .screen img.on { opacity: 1; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* floating poppable bricks */
.fbrick {
  position: absolute; z-index: 1; width: var(--s, 56px); height: var(--s, 56px);
  background: var(--c, var(--red)); border: 4px solid var(--ink); border-radius: 30%;
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .2), 0 6px 0 var(--ink);
  animation: drift var(--t, 9s) ease-in-out infinite; cursor: pointer;
}
.fbrick::after {
  content: ""; position: absolute; left: 50%; top: 42%; width: 44%; height: 44%; translate: -50% -50%;
  border-radius: 50%; background: rgba(255, 255, 255, .28); border: 3px solid rgba(43, 35, 80, .35);
}
@keyframes drift { 0%, 100% { translate: 0 0; rotate: var(--r, 8deg); } 50% { translate: 0 -24px; rotate: calc(var(--r, 8deg) * -1); } }
.fbrick.popped { animation: pop .35s ease-out forwards; pointer-events: none; }
@keyframes pop { 60% { scale: 1.35; opacity: 1; } 100% { scale: 0; opacity: 0; } }
.spark { position: fixed; z-index: 60; width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 4px; pointer-events: none; animation: spark .7s ease-out forwards; }
@keyframes spark { to { translate: var(--dx) var(--dy); rotate: 240deg; opacity: 0; } }

.wave { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 80px; z-index: 3; display: block; }

/* ---------- sections ---------- */
section { padding: 70px 20px; }
.wrap { max-width: 1140px; margin: 0 auto; }
.section-title { text-align: center; margin: 0 0 44px; }
.section-title .plate { font-size: clamp(28px, 4vw, 40px); }
.section-title p { color: var(--ink-soft); font-size: 19px; margin: 20px auto 0; max-width: 640px; }

.stats-wrap { padding: 0 20px; position: relative; z-index: 4; margin-top: -70px; }
.stats { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 16px 10px; }
.stat b { display: block; font-size: 40px; font-weight: 900; line-height: 1.1; color: var(--plate); }
.stat span { color: var(--ink-soft); font-weight: 800; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 44px; } }
.step { padding: 34px 24px 26px; text-align: center; position: relative; }
.step .num {
  position: absolute; top: -28px; left: 50%; translate: -50% 0;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); border: 4px solid var(--ink); font-size: 26px; font-weight: 900; box-shadow: 0 5px 0 var(--ink);
}
.step .art { height: 160px; display: grid; place-items: center; margin: 6px 0 8px; }
.step .art img { max-height: 160px; width: auto; filter: drop-shadow(0 10px 8px rgba(43, 35, 80, .25)); }
.step h3 { font-size: 24px; font-weight: 900; margin: 6px 0; }
.step p { color: var(--ink-soft); margin: 0; }

.mini-tray { display: flex; gap: 6px; padding: 10px; background: #fff4de; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); }
.mini-tray i { width: 36px; height: 36px; border-radius: 10px; border: 3px solid var(--ink); background: var(--c, #e8d7b5); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18); }
.mini-tray i.pop { animation: trayPop 2.4s ease-in-out infinite; }
@keyframes trayPop { 0%, 55% { scale: 1; } 70% { scale: 1.25; } 85%, 100% { scale: 0; } }
.tap-hand { position: relative; }
.tap-ring { position: absolute; right: -10px; bottom: -6px; width: 54px; height: 54px; border: 5px solid #fff; border-radius: 50%; box-shadow: 0 0 0 4px var(--ink); animation: ring 1.4s ease-out infinite; }
@keyframes ring { 0% { scale: .5; opacity: 1; } 100% { scale: 1.3; opacity: 0; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 22px; display: flex; gap: 16px; align-items: flex-start; }
.feature .ico {
  flex: none; width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; font-size: 30px;
  border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink), inset 0 -6px 0 rgba(0, 0, 0, .15); background: var(--c);
}
.feature h3 { margin: 0 0 4px; font-size: 20px; font-weight: 900; }
.feature p { margin: 0; color: var(--ink-soft); }

/* toys gallery */
.toys-band { background: linear-gradient(180deg, #ffe9c9, #ffd9ec); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.toys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .toys { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .toys { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.toy { padding: 14px 12px 14px; text-align: center; transition: transform .2s ease; }
.toy:hover { transform: translateY(-6px) rotate(-2deg); }
.toy img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(43, 35, 80, .25)); }
.toy span { display: inline-block; margin-top: 6px; background: var(--plate); color: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 2px 12px 4px; font-weight: 900; font-size: 15px; }
.sets { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.sets b { background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 6px 14px; box-shadow: 0 4px 0 var(--ink); font-weight: 900; }

/* screenshots strip */
.shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 6px 30px; scrollbar-width: thin; }
.shots figure { margin: 0; flex: none; width: 240px; scroll-snap-align: center; }
.shots img { border: 5px solid var(--ink); border-radius: 28px; box-shadow: 0 8px 0 var(--ink); aspect-ratio: 9 / 16; object-fit: cover; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 18px; }
.faq details { padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 900; font-size: 19px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: .9; color: var(--plate); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--ink-soft); }

/* final cta */
.final { position: relative; overflow: hidden; text-align: center; color: #fff; background: linear-gradient(180deg, var(--deep), #3b2aa0); border-top: 4px solid var(--ink); padding: 80px 20px 90px; }
.final h2 { position: relative; z-index: 2; font-size: clamp(34px, 5vw, 56px); font-weight: 900; margin: 0 0 10px; text-shadow: 0 5px 0 var(--ink); }
.final p { position: relative; z-index: 2; font-size: 20px; margin: 0 0 28px; }
.final .cta { position: relative; z-index: 2; justify-content: center; }

/* footer */
footer { background: var(--ink); color: #d9d2ff; padding: 30px 20px 40px; text-align: center; font-weight: 800; }
footer a { color: #fff; text-decoration: none; margin: 0 10px; }
footer a:hover { text-decoration: underline; }
footer small { display: block; margin-top: 12px; color: #a59ccc; }

/* ---------- privacy page ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky), var(--deep)); color: #fff; text-align: center; padding: 46px 20px 130px; }
.page-hero .logo-blocks { justify-content: center; position: relative; z-index: 2; }
.page-hero .blk { width: 72px; height: 72px; font-size: 44px; border-radius: 20px; -webkit-text-stroke: 5px var(--ink); }
.page-hero h1 { position: relative; z-index: 2; font-size: clamp(40px, 7vw, 72px); font-weight: 900; margin: 18px 0 4px; -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 var(--ink); }
.page-hero p { position: relative; z-index: 2; font-size: 19px; margin: 0; }
.policy { max-width: 880px; margin: -80px auto 0; padding: 0 20px 70px; position: relative; z-index: 4; }
.policy .toc { padding: 20px 24px; margin-bottom: 28px; }
.policy .toc b { display: block; margin-bottom: 10px; font-size: 18px; }
.policy .toc a { display: inline-block; margin: 4px 6px 4px 0; padding: 5px 12px; border-radius: 999px; background: #efeaff; border: 3px solid var(--ink); text-decoration: none; font-weight: 900; font-size: 14px; color: var(--ink); }
.policy .toc a:hover { background: var(--gold); }
.policy .block { padding: 24px 26px; margin-bottom: 24px; scroll-margin-top: 90px; }
.policy h2 { display: flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 900; margin: 0 0 10px; color: var(--plate); }
.policy h2 .ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--c, var(--gold)); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.policy p, .policy li { color: #3c3466; font-weight: 600; }
.policy strong { color: var(--ink); }
.policy .meta { color: var(--ink-soft); font-weight: 800; margin-top: 0; }
.policy .table-wrap { overflow-x: auto; }
.policy table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 3px solid var(--ink); border-radius: 16px; font-size: 15px; }
.policy th, .policy td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 2px solid #e6e0fb; }
.policy th { background: var(--plate); color: #fff; font-weight: 900; }
.policy tr:last-child td { border-bottom: 0; }
.policy .contact { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- small phones ---------- */
.hero-inner > * { min-width: 0; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .hero { padding: 40px 16px 130px; }
  .blk { width: 74px; height: 74px; font-size: 46px; border-radius: 20px; -webkit-text-stroke: 5px var(--ink); }
  .logo-blocks { gap: 10px; }
  .badge3d { font-size: 26px; padding: 0 10px 5px; border-width: 4px; border-radius: 16px; }
  .rainbow { font-size: 13.5vw; letter-spacing: 0; }
  .rainbow span { -webkit-text-stroke: 8px var(--ink); text-shadow: 0 6px 0 var(--ink); }
  .tagline { font-size: 22px; }
  .sub { font-size: 17px; }
  .btn { font-size: 17px; padding: 12px 18px; border-radius: 16px; }
  .cta { flex-direction: column; align-items: center; }
  section { padding: 56px 16px; }
  .stat b { font-size: 32px; }
  .shots figure { width: 200px; }
  .policy { padding: 0 14px 60px; }
  .policy .block { padding: 20px 18px; }
  .policy h2 { font-size: 20px; }
  .page-hero .blk { width: 60px; height: 60px; font-size: 36px; }
}
