/* ==========================================================================
   Oomiland - marketing site styles
   Tokens mirror the app theme (src/theme/theme.ts).
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL 1.1 - see assets/fonts) ---------- */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/fredoka-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/fredoka-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/fredoka-hebrew-wght-normal.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/nunito-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/nunito-vietnamese-wght-normal.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/nunito-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Tokens ---------- */
:root {
  --violet: #7C4DFF;
  --violet-deep: #5B34E0;
  --violet-ink: #3A1F9E;
  --violet-soft: #EDE6FF;
  --grape: #A66BFF;
  --pink: #FF6FA5;
  --sky: #3FA9FF;
  --mint: #22D3AA;
  --sunny: #FFC93C;
  --coral: #FF8A5B;
  --ink: #2A2340;
  --ink-soft: #5F5878;
  --paper: #FBF7FF;
  --paper-alt: #F1ECFF;
  --line: #E7E0F5;
  --night: #171325;

  --g-brand: linear-gradient(135deg, #8E6BFF, #6C3BFF);
  --g-sunrise: linear-gradient(135deg, #FFD86F, #FF8A5B);
  --g-candy: linear-gradient(135deg, #FF9AD5, #FF6FA5);
  --g-ocean: linear-gradient(135deg, #66D3FF, #3FA9FF);
  --g-forest: linear-gradient(135deg, #7BE9C4, #22D3AA);

  --p-brand: linear-gradient(135deg, #F1EBFF, #DDD0FF);
  --p-sunrise: linear-gradient(135deg, #FFF6D8, #FFE1C8);
  --p-candy: linear-gradient(135deg, #FFEAF4, #FFD2E6);
  --p-ocean: linear-gradient(135deg, #E4F6FF, #C9E8FF);
  --p-forest: linear-gradient(135deg, #E2FBF2, #C3F2E1);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --sh-soft: 0 6px 14px rgba(91, 52, 224, .10);
  --sh-card: 0 10px 26px rgba(91, 52, 224, .14);
  --sh-pop: 0 22px 48px rgba(91, 52, 224, .22);

  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --nav-h: 72px;
  --wrap: min(1180px, 100% - 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
}
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--violet-deep); text-underline-offset: .18em; }
button { font: inherit; color: inherit; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.012em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
:focus-visible {
  outline: 3px solid var(--violet-deep);
  outline-offset: 3px;
  border-radius: 8px;
}
.hero :focus-visible, .doc-hero :focus-visible, .langs :focus-visible, .footer :focus-visible,
.lost :focus-visible, .nav:not(.is-stuck):not(.is-open) :focus-visible {
  outline-color: var(--sunny);
}
::selection { background: var(--sunny); color: var(--ink); }

[hidden] { display: none !important; }
.tip-wrap { padding: 40px 24px 88px; background: #f7f3ff; }
.tip-card { max-width: 580px; margin: auto; padding: 36px; border: 2px solid #e6dcff; border-radius: 28px; background: white; box-shadow: 0 12px 40px #5b32ad12; }
.tip-oomi { margin: 0 auto 20px; width: 100px; }
.tip-card h2 { margin: 0 0 18px; font-size: 28px; }
.tip-card p { line-height: 1.6; }
#tip-gate { text-align: center; }
.tip-wrap.is-unlocked .tip-card { max-width: 1180px; padding: 0; border: 0; background: transparent; box-shadow: none; }
#parent-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
#tip-form, .parent-sponsors { min-width: 0; padding: clamp(22px, 3vw, 32px); border: 1px solid #e6dcff; border-radius: 24px; background: white; box-shadow: 0 10px 32px #5b32ad0a; }
#tip-form > p { margin-block: 12px 20px; }
#tip-form > .tip-stripe { margin: 20px 0 0; }
#tip-form > h2 { margin-bottom: 12px; }
.tip-note { color: #55506a; }
.tip-label, #tip-question { display: block; font-weight: 800; margin: 24px 0 8px; }
#tip-question { font-size: 26px; }
.tip-card select, #tip-answer { width: 100%; min-height: 50px; font: inherit; color: #302443; background: white; border: 2px solid #d3c6eb; border-radius: 12px; padding: 10px 12px; margin-bottom: 20px; }
#tip-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 20px; }
#tip-answers button { min-height: 68px; border: 2px solid #d3c6eb; font-size: 26px; }
.parent-sponsors > p { margin: 0 0 24px; }
.parent-sponsors__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.parent-sponsor { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e6dcff; border-radius: 16px; text-decoration: none; color: #302443; background: #fbf8ff; }
.parent-sponsor:hover { border-color: #7c4dff; background: #f4edff; }
.parent-sponsor img { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; }
.parent-sponsor > span:first-of-type { flex: 1; min-width: 0; }
.parent-sponsor strong, .parent-sponsor span span { display: block; overflow-wrap: anywhere; }
.parent-sponsor span span { font-size: 14px; line-height: 1.4; color: #655976; margin-top: 4px; }
.oomi-voice { position: relative; display: inline-block; padding: 0; border: 0; background: transparent; cursor: pointer; max-width: 100%; }
.oomi-voice__sound { position: absolute; inset-inline-end: 10%; bottom: 10%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: white; font-size: 22px; box-shadow: 0 3px 15px #3a1f9e33; }
[data-oomi-voice]:focus-visible { outline: 3px solid #ffc93c; outline-offset: 5px; border-radius: 32px; }
[data-oomi-voice].is-speaking { animation: oomi-speaking .6s ease-in-out infinite alternate; }
@keyframes oomi-speaking { to { filter: drop-shadow(0 0 12px #ffc93c88); } }
@media (prefers-reduced-motion: reduce) { [data-oomi-voice].is-speaking { animation: none; } }
.tip-options { padding: 0; margin: 6px 0 20px; border: 0; }
#tip-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tip-option { position: relative; cursor: pointer; }
.tip-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tip-option span { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 10px; text-align: center; border: 2px solid #e3daef; border-radius: 14px; font-weight: 800; line-height: 1.35; }
.tip-option input:checked + span { background: #f1eaff; border-color: #7c4dff; color: #5930bd; }
.tip-option input:focus-visible + span { outline: 3px solid #5930bd; outline-offset: 3px; }
#tip-pay { width: 100%; margin-top: 4px; padding: 16px 20px; box-shadow: 0 5px 0 #d99b00, 0 10px 20px #30244312; }
.tip-stripe { text-align: center; color: #635875; font-size: 14px; }
#tip-gate-error { color: #a12839; }
@media (min-width: 680px) { .parent-sponsors__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  #parent-content { grid-template-columns: minmax(320px, .85fr) minmax(0, 1.45fr); gap: 28px; }
  .parent-sponsor { align-items: flex-start; }
  .parent-sponsor > span:last-child { display: none; }
}
@media (max-width: 420px) {
  .tip-card { padding: 24px 18px; }
  .tip-wrap { padding: 24px 14px 64px; }
  #tip-form, .parent-sponsors { padding: 22px 18px; border-radius: 20px; }
  .tip-card h2 { font-size: 25px; }
  .parent-sponsor { padding: 12px; gap: 10px; }
}
.container { width: var(--wrap); margin-inline: auto; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 16px; top: -80px;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  font: 600 1rem var(--font-display);
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--sh-pop);
  transition: top .2s;
}
.skip:focus { top: 14px; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }

/* ---------- Wordmark ---------- */
.wm {
  display: inline-flex;
  align-items: baseline;
  font: 700 1.95rem/1 var(--font-display);
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wm__o1 { color: var(--violet); }
.wm__o2 { color: var(--pink); }
.wm--light { color: #fff; }
.wm--light .wm__o1 { color: var(--sunny); }
.wm--light .wm__o2 { color: #FF9AD5; }

/* ---------- Buttons ---------- */
.btn {
  --edge: #4A22C9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 600 1.06rem/1 var(--font-display);
  letter-spacing: .005em;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--spring), box-shadow .18s var(--ease), background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn--lg { font-size: 1.18rem; padding: 18px 30px; }
.btn--sm { font-size: .98rem; padding: 11px 20px; }
.btn--sun {
  --edge: #DB9A10;
  background: linear-gradient(180deg, #FFDD7C, #FFC93C);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--edge), 0 14px 26px rgba(42, 35, 64, .26);
}
.btn--brand {
  background: linear-gradient(180deg, #9575FF, #6C3BFF);
  color: #fff;
  box-shadow: 0 5px 0 var(--edge), 0 14px 26px rgba(91, 52, 224, .3);
}
.btn--glass {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6);
}
.btn--white {
  --edge: #D9CEF7;
  background: #fff;
  color: var(--violet-deep);
  box-shadow: 0 5px 0 var(--edge), 0 12px 22px rgba(91, 52, 224, .14);
}
.btn:hover { transform: translateY(-2px); }
.btn--sun:hover, .btn--brand:hover, .btn--white:hover { box-shadow: 0 7px 0 var(--edge), 0 18px 30px rgba(42, 35, 64, .26); }
.btn--glass:hover { background: rgba(255, 255, 255, .26); }
.btn:active { transform: translateY(3px); }
.btn--sun:active, .btn--brand:active, .btn--white:active { box-shadow: 0 2px 0 var(--edge), 0 6px 12px rgba(42, 35, 64, .2); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .3s, box-shadow .3s;
}
.nav__in {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav__links a {
  display: block;
  font: 600 1.02rem var(--font-display);
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav__links a:hover { background: rgba(255, 255, 255, .18); }
.nav__toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  cursor: pointer;
  place-items: center;
}
.nav__toggle .i { width: 24px; height: 24px; }
.nav__toggle .i-close { display: none; }
.nav.is-open .nav__toggle .i-open { display: none; }
.nav.is-open .nav__toggle .i-close { display: block; }

.nav.is-stuck, .nav.is-open {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(91, 52, 224, .08);
}
.nav.is-stuck .wm, .nav.is-open .wm { color: var(--ink); }
.nav.is-stuck .wm__o1, .nav.is-open .wm__o1 { color: var(--violet); }
.nav.is-stuck .wm__o2, .nav.is-open .wm__o2 { color: var(--pink); }
.nav.is-stuck .nav__links a, .nav.is-open .nav__links a { color: var(--ink); }
.nav.is-stuck .nav__links a:hover, .nav.is-open .nav__links a:hover { background: var(--violet-soft); color: var(--violet-deep); }
.nav.is-stuck .nav__toggle, .nav.is-open .nav__toggle { background: var(--violet-soft); color: var(--violet-deep); }
.nav.is-stuck .nav__cta, .nav.is-open .nav__cta {
  --edge: #4A22C9;
  background: linear-gradient(180deg, #9575FF, #6C3BFF);
  color: #fff;
  box-shadow: 0 4px 0 var(--edge), 0 10px 18px rgba(91, 52, 224, .25);
}
.nav__cta { box-shadow: 0 4px 0 var(--edge), 0 10px 18px rgba(42, 35, 64, .2); }
.nav__language { position: relative; flex: 0 1 146px; min-width: 0; color: var(--ink); }
.nav__language summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: #fff; border-radius: 999px; font: 800 .95rem var(--font-body); cursor: pointer; list-style: none; box-shadow: 0 2px 10px #2a234014; }
.nav__language summary::-webkit-details-marker { display: none; }
.nav__language summary:focus-visible { outline: 2px solid #5B34E0; outline-offset: 3px; }
.nav__language-current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__language-chevron { display: block; flex: 0 0 14px; width: 14px; height: 14px; margin-inline-start: auto; transition: rotate .15s; }
.nav__language[open] .nav__language-chevron { rotate: 180deg; }
.language-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 12px); width: 360px; max-width: calc(100vw - 32px); padding: 14px; background: white; border: 1px solid #e8e0f5; border-radius: 22px; box-shadow: 0 18px 55px #24103e33; }
.language-search { display: flex; align-items: center; gap: 8px; background: #f6f2fc; border-radius: 12px; padding: 0 12px; margin-bottom: 12px; font-size: 24px; }
.language-search input { min-width: 0; width: 100%; min-height: 44px; border: 0; background: transparent; color: var(--ink); font: 600 1rem var(--font-body); }
.language-search:focus-within { box-shadow: 0 0 0 2px #7c4dff; }
.language-search input:focus-visible { outline: none; }
.language-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: min(360px, calc(100dvh - 200px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.language-options a { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 9px; border-radius: 11px; color: var(--ink); text-decoration: none; font: 700 .95rem var(--font-body); }
.language-options a[hidden] { display: none; }
.language-options a:hover, .language-options a:focus-visible { background: #f4edff; outline: none; box-shadow: inset 0 0 0 2px #cdb8ff; }
.language-options a[aria-current] { color: #5b34e0; background: #eee6ff; }
.language-flag { flex: 0 0 26px; font-size: 13px; text-align: center; }
.language-check { margin-inline-start: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: calc(var(--nav-h) + clamp(28px, 5vw, 64px)) 0 clamp(150px, 15vw, 190px);
  background:
    radial-gradient(60% 55% at 86% 6%, rgba(255, 201, 60, .34), transparent 62%),
    radial-gradient(48% 46% at 4% 62%, rgba(255, 111, 165, .36), transparent 66%),
    linear-gradient(176deg, #8A43FF 0%, #8C5CFF 30%, #7C86FF 60%, #4FB3FF 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 .98rem/1 var(--font-display);
  letter-spacing: .04em;
  padding: 9px 16px;
  border-radius: 999px;
}
.chip--glass {
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .42);
  color: #fff;
}
.chip .i { color: var(--sunny); }
.hero h1 {
  font-size: clamp(2.7rem, 5.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  margin: 22px 0 22px;
  text-shadow: 0 3px 0 rgba(58, 31, 158, .25);
}
.hl {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  color: #FFD86F;
  white-space: normal;
}
.hl::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; bottom: -.16em;
  height: .28em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 30 2, 50 14, 78 7 S 128 3, 150 9 S 185 5, 197 8' fill='none' stroke='%23FF8FC0' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero__lead {
  font-size: clamp(1.08rem, 1.45vw, 1.3rem);
  font-weight: 600;
  line-height: 1.55;
  max-width: 35em;
  color: rgba(255, 255, 255, .95);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin-top: 32px;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px 9px 14px;
  border-radius: 16px;
  background: rgba(23, 19, 37, .34);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28);
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
  transition: transform .18s var(--spring), background .2s;
}
.store .i { width: 26px; height: 26px; }
.store small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .03em; opacity: .85; }
.store b { display: block; font: 600 1.1rem/1.15 var(--font-display); }
.store[href]:hover { transform: translateY(-2px); background: rgba(23, 19, 37, .5); }
.store--ink { background: var(--ink); box-shadow: none; }
.store--web { background: linear-gradient(180deg, #FFDD7C, #FFC93C); color: var(--ink); box-shadow: 0 4px 0 #DB9A10; }
.store--web[href]:hover { background: linear-gradient(180deg, #FFE391, #FFD052); }
.store--ink[href]:hover { background: #3a3157; }

/* Decorative sky */
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.float {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  transform: translate3d(calc(var(--px, 0) * var(--z, 1) * 22px), calc(var(--py, 0) * var(--z, 1) * 14px), 0);
  transition: transform .5s ease-out;
}
.float > * {
  display: block;
  width: 100%; height: 100%;
  rotate: var(--r, 0deg);
  animation: bob var(--t, 7s) ease-in-out infinite alternate;
  animation-delay: var(--dl, 0s);
}
@keyframes bob {
  from { translate: 0 -9px; }
  to { translate: 0 11px; }
}
.star { fill: var(--c, var(--sunny)); filter: drop-shadow(0 4px 0 rgba(42, 20, 120, .16)); }
.bubble > span {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .85) 0 7%, rgba(255, 255, 255, .16) 26%, rgba(255, 255, 255, .05) 58%, rgba(255, 255, 255, .26) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .34);
}
.dotty > span { border-radius: 50%; background: var(--c, #fff); opacity: .9; }

.hero__clouds {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(54px, 8vw, 110px);
  fill: var(--paper);
  z-index: -1;
}

/* ---------- Demo: Oomi + phone ---------- */
.demo {
  --k: 1;
  position: relative;
  justify-self: center;
  width: calc(564px * var(--k));
  height: calc(664px * var(--k));
}
.phone {
  position: absolute;
  right: calc(70px * var(--k));
  top: calc(8px * var(--k));
  width: calc(304px * var(--k));
  aspect-ratio: 9 / 19.2;
  padding: calc(10px * var(--k));
  border-radius: calc(48px * var(--k));
  background: #1B1530;
  box-shadow:
    inset 0 0 0 2px #40336A,
    0 34px 60px -14px rgba(26, 12, 74, .6),
    0 16px 30px -16px rgba(26, 12, 74, .55);
  z-index: 2;
}
.phone::before {
  content: "";
  position: absolute;
  left: 50%; top: calc(19px * var(--k));
  width: 27%; height: calc(22px * var(--k));
  translate: -50% 0;
  border-radius: 999px;
  background: #1B1530;
  z-index: 6;
}
.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: calc(38px * var(--k));
  overflow: hidden;
  background: #7C5CFF url("img/bg-lobby.webp") center / cover no-repeat;
  container-type: inline-size;
  isolation: isolate;
}
.app {
  position: absolute;
  inset: 0;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-size: 5.45cqw;
  line-height: 1.2;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
}
.view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 3.25em 1em 1.1em;
}
.view[hidden] { display: none; }
.view--in { animation: view-in .42s var(--ease) both; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(6%) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* Lobby */
.view--lobby { background: linear-gradient(180deg, #8F47FC 0%, #9052FC 12%, rgba(145, 93, 252, 0) 27%); }
.lobby__bar { display: flex; align-items: center; gap: .5em; }
.lobby__bar .wm { font-size: 1.5em; text-shadow: 0 .1em .3em rgba(42, 35, 64, .3); }
.pill-stars {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .25em;
  height: 2.1em;
  padding: 0 .7em 0 .5em;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: .98em;
  box-shadow: 0 .3em .6em rgba(42, 20, 120, .2);
}
.pill-stars svg { width: 1.2em; height: 1.2em; fill: var(--sunny); }
.pill-stars.is-bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { scale: 1.22; } }
.icon-btn {
  width: 2.3em; height: 2.3em;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--violet-deep);
  box-shadow: 0 .3em .6em rgba(42, 20, 120, .2);
  cursor: pointer;
  transition: transform .18s var(--spring);
}
.icon-btn:active { transform: scale(.9); }
.icon-btn .i { width: 1.15em; height: 1.15em; }
.icon-btn .i-off { display: none; }
.icon-btn[aria-pressed="false"] .i-on { display: none; }
.icon-btn[aria-pressed="false"] .i-off { display: block; }
.icon-btn[aria-pressed="false"] { color: var(--ink-soft); }
.lobby__main { margin-top: auto; }
.lobby__tag {
  font-size: 1.02em;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 .1em .3em rgba(42, 35, 64, .35);
}
.lobby__q {
  font-size: 1.62em;
  font-weight: 700;
  margin: .05em 0 .55em;
  text-shadow: 0 .1em .3em rgba(42, 35, 64, .35);
}
.zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .62em; }
.zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  aspect-ratio: 1 / 1.33;
  padding: .42em;
  border: 0;
  border-radius: 1.5em;
  background: var(--g);
  box-shadow: 0 .55em 1em rgba(42, 20, 120, .28), inset 0 .12em 0 rgba(255, 255, 255, .35);
  cursor: pointer;
  text-align: left;
  transition: transform .2s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.zone:hover { transform: translateY(-.2em) rotate(-1.2deg); }
.zone:active { transform: scale(.95); }
.zone img {
  width: 70%;
  margin: auto;
  filter: drop-shadow(0 .3em .3em rgba(42, 35, 64, .22));
  transition: transform .3s var(--spring);
}
.zone:hover img { transform: scale(1.08) rotate(4deg); }
.zone__label {
  display: block;
  background: #fff;
  border-radius: 1.08em;
  padding: .4em .7em .45em;
  color: var(--ink);
}
.zone__name { display: block; font-weight: 700; font-size: .95em; line-height: 1.15; overflow-wrap: anywhere; }
.zone__age { display: block; font-weight: 600; font-size: .76em; color: var(--ink-soft); }
.zone--tiny { --g: var(--g-sunrise); }
.zone--little { --g: var(--g-candy); }
.zone--young { --g: var(--g-ocean); }
.zone--big { --g: var(--g-forest); }
.zones.is-hint .zone { animation: hint .9s var(--spring) both; }
.zones.is-hint .zone:nth-child(2) { animation-delay: .1s; }
.zones.is-hint .zone:nth-child(3) { animation-delay: .2s; }
.zones.is-hint .zone:nth-child(4) { animation-delay: .3s; }
@keyframes hint {
  30% { transform: translateY(-.5em) rotate(-3deg); }
  60% { transform: translateY(0) rotate(2deg); }
}

/* Game shell */
.view--game { background: var(--g); padding-bottom: 1em; }
.g-candy { --g: linear-gradient(160deg, #FF9AD5, #FF6FA5); }
.g-ocean { --g: linear-gradient(160deg, #66D3FF, #3FA9FF); }
.g-forest { --g: linear-gradient(160deg, #6FE3BD, #1FC79F); }
.g-brand { --g: linear-gradient(160deg, #8E6BFF, #6C3BFF); }
.shell__bar { display: flex; align-items: center; gap: .6em; }
.shell__close, .shell__spacer { width: 2.5em; height: 2.5em; flex: none; }
.shell__close {
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  color: #fff;
  cursor: pointer;
  transition: transform .18s var(--spring), background .2s;
}
.shell__close:hover { background: rgba(255, 255, 255, .4); }
.shell__close:active { transform: scale(.9); }
.shell__close .i { width: 1.2em; height: 1.2em; stroke-width: 3; }
.shell__titles { flex: 1; min-width: 0; text-align: center; text-shadow: 0 .08em .2em rgba(42, 35, 64, .25); }
.shell__titles strong { display: block; font-size: 1.22em; font-weight: 700; }
.shell__titles span { display: block; font-size: .8em; font-weight: 600; opacity: .95; }
.stage { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-top: .9em; }
.dots { display: flex; justify-content: center; gap: .45em; }
.dots i { width: .6em; height: .6em; border-radius: 50%; background: rgba(255, 255, 255, .42); transition: background .3s, scale .3s var(--spring); }
.dots i.is-done { background: #fff; }
.dots i.is-now { background: #fff; scale: 1.35; }

.opt {
  border: 0;
  cursor: pointer;
  transition: transform .18s var(--spring), opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { transform: translateY(-.15em); }
.opt:active { transform: scale(.9); }
.opt.is-wrong { animation: shake .4s both; }
.opt.is-right { animation: pop .5s var(--spring) both; }
@keyframes shake {
  20%, 60% { transform: translateX(-.35em) rotate(-4deg); }
  40%, 80% { transform: translateX(.35em) rotate(4deg); }
}
@keyframes pop { 45% { transform: scale(1.18); } }

/* Color Match */
.cm { flex: 1; display: flex; flex-direction: column; align-items: center; }
.cm__target { flex: 1; display: grid; place-items: center; }
.cm__swatch {
  display: block;
  width: 7.6em; height: 7.6em;
  border-radius: 2em;
  border: .32em solid #fff;
  box-shadow: 0 .8em 1.4em rgba(42, 20, 120, .26);
  transition: background .25s;
}
.cm__swatch.is-pop { animation: pop .55s var(--spring); }
.cm__opts { display: flex; justify-content: center; gap: .9em; padding: .4em 0 1.2em; }
.cm__opt {
  width: 4.5em; height: 4.5em;
  border-radius: 50%;
  border: .26em solid #fff;
  box-shadow: 0 .45em .8em rgba(42, 20, 120, .22);
}

/* Count It */
.ct { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ct__panel {
  flex: 1;
  min-height: 0;
  margin: .8em 0 .2em;
  padding: .8em;
  border-radius: 1.9em;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 .5em 1em rgba(42, 20, 120, .12);
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: .35em .5em;
}
.ct__item { width: 3.7em; height: 3.7em; animation: plop .45s var(--spring) both; animation-delay: calc(var(--n) * 70ms); }
@keyframes plop { from { scale: 0; rotate: -30deg; } }
.nums { display: flex; justify-content: center; gap: .85em; padding: .9em 0 1.1em; }
.num {
  /* em here is relative to the large digit size */
  font: 700 2.15em/1 var(--font-display);
  width: 2.1em; height: 2.1em;
  border-radius: .65em;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 .22em .4em rgba(42, 20, 120, .22);
}

/* Memory Pairs */
.mem { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: .7em; align-content: center; perspective: 60em; padding-bottom: .4em; }
.card {
  position: relative;
  aspect-ratio: 1 / 1.1;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .45s var(--ease), opacity .4s;
  -webkit-tap-highlight-color: transparent;
}
.card__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 1.3em;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 .45em .8em rgba(20, 90, 80, .25);
}
.card__back {
  background: linear-gradient(135deg, #8E6BFF, #6C3BFF);
  border: .22em solid rgba(255, 255, 255, .55);
  color: #fff;
  font: 700 2.6em/1 var(--font-display);
}
.card__front { background: #fff; transform: rotateY(180deg); }
.card__front img { width: 78%; }
.card.is-up { transform: rotateY(180deg); }
.card.is-done { animation: pulse .5s var(--spring); cursor: default; }
.card.is-done .card__front { opacity: .58; box-shadow: none; transition: opacity .4s .25s; }
@keyframes pulse { 45% { scale: 1.12; } }
.card:not(.is-up):hover { transform: translateY(-.2em); }

/* Math Sprint */
.ms { flex: 1; display: flex; flex-direction: column; }
.ms__track { position: relative; height: .7em; margin: .9em .5em 0; border-radius: 999px; background: rgba(255, 255, 255, .3); }
.ms__fill { height: 100%; width: 0; border-radius: inherit; background: var(--sunny); transition: width .45s var(--ease); }
.ms__runner {
  position: absolute;
  top: 50%; left: 0;
  width: 1.7em; height: 1.7em;
  translate: -50% -50%;
  border-radius: 50%;
  background: #fff url("img/oomi-happy.webp") center 30% / 150% no-repeat;
  box-shadow: 0 .2em .5em rgba(42, 20, 120, .35), inset 0 0 0 .12em #fff;
  transition: left .45s var(--ease);
}
.ms__center { flex: 1; display: grid; place-items: center; align-content: center; gap: .4em; }
.ms__eq { font-size: 3.1em; font-weight: 700; text-shadow: 0 .08em .16em rgba(0, 0, 0, .2); }
.ms__eq.is-in { animation: eq-in .35s var(--spring); }
@keyframes eq-in { from { scale: .7; opacity: 0; } }
.ms__progress { font-size: .95em; font-weight: 600; opacity: .85; }

/* Celebration */
.celebrate {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 1.3em;
  background: rgba(42, 35, 64, .62);
  animation: fade-in .25s both;
  overflow: hidden;
}
@keyframes fade-in { from { opacity: 0; } }
.celebrate__card {
  position: relative;
  width: 100%;
  padding: 1.3em 1.1em 1.4em;
  border-radius: 2.1em;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 1em 2em rgba(20, 10, 60, .35);
  animation: card-in .55s var(--spring) both;
}
@keyframes card-in { from { scale: .6; opacity: 0; } }
.celebrate__oomi { width: 6.6em; margin: -.3em auto 0; animation: hop 1.1s ease-in-out infinite; }
@keyframes hop { 50% { translate: 0 -.5em; } }
.celebrate__title { display: block; font-size: 1.8em; font-weight: 700; margin-top: .1em; }
.celebrate__stars { display: flex; justify-content: center; gap: .3em; margin: .45em 0 .35em; }
.celebrate__stars svg { width: 2.5em; height: 2.5em; fill: #E7E0F5; }
.celebrate__stars svg.is-on { fill: var(--sunny); animation: star-in .5s var(--spring) both; filter: drop-shadow(0 .15em 0 #E0A21A); }
@keyframes star-in { from { scale: 0; rotate: -90deg; } }
.celebrate__sub { font-family: var(--font-body); font-size: .98em; font-weight: 700; color: var(--ink-soft); }
.celebrate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .55em; margin-top: 1em; }
.celebrate__actions button {
  border: 0;
  cursor: pointer;
  font: 700 1em/1 var(--font-display);
  padding: .85em 1.15em;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #9575FF, #6C3BFF);
  box-shadow: 0 .25em 0 #4A22C9;
  transition: transform .18s var(--spring);
}
.celebrate__actions button + button { background: linear-gradient(180deg, #7BE9C4, #22D3AA); color: var(--ink); box-shadow: 0 .25em 0 #14A583; }
.celebrate__actions button:active { transform: translateY(.2em); }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i {
  position: absolute;
  top: -8%;
  left: var(--x);
  width: var(--w, .6em); height: var(--h, .9em);
  background: var(--c);
  border-radius: var(--br, .2em);
  animation: fall var(--t, 2.4s) linear var(--dl, 0s) infinite;
}
@keyframes fall {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(46em) rotate(540deg); }
}

/* Guide: Oomi + speech bubble */
.guide { position: absolute; left: calc(-22px * var(--k)); bottom: calc(-4px * var(--k)); width: calc(232px * var(--k)); z-index: 3; }
.guide__oomi {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  animation: breathe 2.8s ease-in-out infinite alternate;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 16px 14px rgba(26, 12, 74, .28));
}
@keyframes breathe {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-9px) scale(1.025); }
}
.guide__oomi.is-hop { animation: jump .6s var(--spring); }
@keyframes jump {
  30% { transform: translateY(-34px) scale(1.06, .96) rotate(-6deg); }
  60% { transform: translateY(0) scale(.96, 1.04); }
}
.mood {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  scale: .9;
  transition: opacity .25s, scale .35s var(--spring);
}
.mood.is-on { opacity: 1; scale: 1; }
.bubble-say {
  position: absolute;
  left: calc(6px * var(--k));
  bottom: calc(238px * var(--k));
  width: calc(196px * var(--k));
  padding: calc(14px * var(--k)) calc(18px * var(--k));
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  font: 600 calc(1.06rem * var(--k))/1.25 var(--font-display);
  box-shadow: var(--sh-pop);
  z-index: 4;
  transform-origin: 30% 100%;
}
.bubble-say::after {
  content: "";
  position: absolute;
  left: 52px; bottom: -8px;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 5px;
  rotate: 45deg;
}
.bubble-say.is-pop { animation: say .4s var(--spring); }
@keyframes say { from { scale: .8; opacity: .4; } }

/* Floating stickers around the phone */
.sticker {
  position: absolute;
  width: calc(var(--w, 92px) * var(--k));
  aspect-ratio: 1;
  padding: calc(7px * var(--k));
  border-radius: calc(26px * var(--k));
  background: #fff;
  box-shadow: 0 16px 30px rgba(26, 12, 74, .3);
  z-index: 3;
  rotate: var(--r, 0deg);
  animation: bob var(--t, 6s) ease-in-out infinite alternate;
  animation-delay: var(--dl, 0s);
  pointer-events: none;
}
.sticker span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: calc(20px * var(--k)); background: var(--p); }
.sticker img { width: 84%; }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 3; margin-top: clamp(-104px, -8vw, -70px); }
.stats__card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-pop);
  padding: 26px 10px;
}
.stat { position: relative; text-align: center; padding: 6px 16px; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -1px; top: 16%; bottom: 16%;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.stat__n {
  display: block;
  font: 700 clamp(2.5rem, 4.4vw, 3.5rem)/1 var(--font-display);
  color: var(--c);
  font-variant-numeric: tabular-nums;
}
.stat__l { display: block; margin-top: 6px; font-weight: 700; color: var(--ink-soft); line-height: 1.3; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 124px) 0; }
.section--white { background: #fff; }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font: 600 .95rem/1 var(--font-display);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--violet-deep);
  background: var(--violet-soft);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.sec-head h2, .h2 { font-size: clamp(2.05rem, 4.3vw, 3.35rem); }
.lead {
  margin-top: 16px;
  font-size: clamp(1.06rem, 1.35vw, 1.24rem);
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 40em;
}
.sec-head--center .lead { margin-inline: auto; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}

/* ---------- Games ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.filters--ages { margin-bottom: 30px; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 18px 0 8px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--line);
  color: var(--ink);
  font: 600 1.02rem/1 var(--font-display);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--spring), background .2s, box-shadow .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.filter:first-child { padding-left: 20px; }
.filter img { width: 36px; height: 36px; }
.filter small { font: 800 .82rem var(--font-body); color: var(--ink-soft); }
.filter:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px #CFC1F3; }
.filter.is-on { background: var(--on, var(--violet)); color: var(--on-ink, #fff); box-shadow: 0 8px 18px rgba(91, 52, 224, .2); }
.filter.is-on small { color: inherit; opacity: .85; }
.filter--tiny { --on: var(--g-sunrise); --on-ink: var(--ink); }
.filter--little { --on: var(--g-candy); --on-ink: var(--ink); }
.filter--young { --on: var(--g-ocean); --on-ink: var(--ink); }
.filter--big { --on: var(--g-forest); --on-ink: var(--ink); }

.games { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.game {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  padding: 7px 7px 12px;
  box-shadow: var(--sh-card);
  transition: transform .28s var(--spring), box-shadow .28s var(--ease);
}
.game:hover { transform: translateY(-6px) rotate(-1.2deg); box-shadow: var(--sh-pop); }
.game__plate {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--p);
  overflow: hidden;
  container-type: inline-size;
}
.game__plate img { width: 84%; transition: transform .4s var(--spring); }
.game__emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 3rem;
  font-size: 46cqw;
  line-height: 1;
  transition: transform .4s var(--spring);
}
.game:hover .game__plate img { transform: scale(1.1) rotate(4deg); }
.game:hover .game__emoji { transform: scale(1.14) rotate(-6deg); }
.game__age {
  position: absolute;
  left: 6px; top: 6px;
  z-index: 1;
  font: 800 .66rem/1 var(--font-body);
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(91, 52, 224, .12);
  white-space: nowrap;
}
.game__name { font-size: .98rem; font-weight: 600; margin: 9px 4px 3px; line-height: 1.15; }
.game__how { font-size: .8rem; font-weight: 600; line-height: 1.3; color: var(--ink-soft); margin: 0 4px; }
.game__link { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.game__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.game__link:focus-visible { outline: none; }
.game:has(.game__link:focus-visible) { outline: 3px solid var(--violet-deep); outline-offset: 3px; }
.p-brand { --p: var(--p-brand); }
.p-sunrise { --p: var(--p-sunrise); }
.p-candy { --p: var(--p-candy); }
.p-ocean { --p: var(--p-ocean); }
.p-forest { --p: var(--p-forest); }
/* Without JavaScript the whole catalog is simply listed: no filters, no "show all". */
html:not(.js) .filters, html:not(.js) .games__more { display: none; }
.games__empty { margin-top: 22px; text-align: center; font-weight: 700; color: var(--ink-soft); }
.games__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
/* Collapsed: two rows on a wide screen, three or four on smaller ones. */
@media (min-width: 1101px) {
  .js .games.is-collapsed .game:nth-child(n+17) { display: none; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .games { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .js .games.is-collapsed .game:nth-child(n+19) { display: none; }
}
@media (min-width: 561px) and (max-width: 760px) {
  .games { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .js .games.is-collapsed .game:nth-child(n+13) { display: none; }
}
@media (max-width: 560px) {
  .games { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .js .games.is-collapsed .game:nth-child(n+13) { display: none; }
}

/* ---------- Ages ---------- */
.ages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.age {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--sh-card);
  overflow: hidden;
  transition: transform .3s var(--spring), box-shadow .3s var(--ease);
}
.age:hover { transform: translateY(-8px); box-shadow: var(--sh-pop); }
.age__plate {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / .82;
  background: var(--g);
  overflow: hidden;
}
.age__plate::before, .age__plate::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}
.age__plate::before { width: 46%; aspect-ratio: 1; left: -12%; top: -18%; }
.age__plate::after { width: 30%; aspect-ratio: 1; right: -6%; bottom: -10%; }
.age__plate img {
  position: relative;
  z-index: 1;
  width: 66%;
  filter: drop-shadow(0 12px 10px rgba(42, 35, 64, .2));
  transition: transform .45s var(--spring);
}
.age:hover .age__plate img { transform: translateY(-6px) rotate(-5deg) scale(1.06); }
.age__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.age__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.age__head h3 { font-size: 1.7rem; }
.age__years {
  font: 600 .92rem/1 var(--font-display);
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink);
  white-space: nowrap;
}
.age__body p { color: var(--ink-soft); font-weight: 600; font-size: 1rem; line-height: 1.5; }
.age__games { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 18px; }
.age__games li { font-size: .82rem; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: var(--paper-alt); color: var(--ink); line-height: 1.1; }
.age__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font: 600 1rem var(--font-display);
  color: var(--violet-deep);
  text-decoration: none;
  padding: 4px 0;
}
.age__more .i { width: 1.1em; height: 1.1em; transition: transform .2s var(--spring); }
.age__more:hover .i { transform: translateX(4px); }
.age--tiny { --g: var(--g-sunrise); --tint: #FFE6B3; }
.age--little { --g: var(--g-candy); --tint: #FFD3E6; }
.age--young { --g: var(--g-ocean); --tint: #CDEBFF; }
.age--big { --g: var(--g-forest); --tint: #C5F3E2; }
.ages__note {
  margin: 34px auto 0;
  max-width: 46em;
  text-align: center;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ---------- Languages ---------- */
.langs {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(30px, 5vw, 68px);
  border-radius: clamp(30px, 4vw, 48px);
  background:
    radial-gradient(40% 60% at 100% 0%, rgba(255, 201, 60, .28), transparent 70%),
    radial-gradient(46% 60% at 0% 100%, rgba(255, 111, 165, .3), transparent 70%),
    linear-gradient(135deg, #8A5CFF 0%, #6C3BFF 60%, #5B34E0 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(91, 52, 224, .5);
}
.langs .eyebrow { background: rgba(255, 255, 255, .18); color: #fff; }
.langs .lead { color: rgba(255, 255, 255, .92); }
.greeter { display: flex; align-items: flex-end; margin-top: 30px; min-height: 190px; }
.greeter img { width: 160px; flex: none; filter: drop-shadow(0 12px 12px rgba(26, 12, 74, .3)); animation: breathe 2.8s ease-in-out infinite alternate; }
.greeter__bubble {
  position: relative;
  align-self: flex-start;
  margin: 6px 0 0 -6px;
  min-width: 170px;
  padding: 16px 24px 18px;
  border-radius: 26px;
  background: #fff;
  color: var(--ink);
  font: 600 clamp(1.7rem, 2.8vw, 2.3rem)/1.15 var(--font-display);
  text-align: center;
  box-shadow: 0 16px 30px rgba(26, 12, 74, .3);
  transform-origin: 0 100%;
}
.greeter__bubble::after {
  content: "";
  position: absolute;
  left: 18px; bottom: -8px;
  width: 24px; height: 24px;
  background: #fff;
  border-radius: 5px;
  rotate: 45deg;
}
.greeter__bubble small { display: block; font: 800 .8rem/1.2 var(--font-body); letter-spacing: .04em; color: var(--ink-soft); margin-top: 4px; }
.greeter__bubble.is-pop { animation: say .4s var(--spring); }
.langs__list { display: flex; flex-wrap: wrap; gap: 10px; }
.langs__list button {
  border: 0;
  cursor: pointer;
  font: 700 1rem/1 var(--font-body);
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .36);
  color: #fff;
  transition: transform .18s var(--spring), background .2s, color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.langs__list button.is-full { background: #fff; color: var(--violet-deep); box-shadow: none; }
.langs__list button:hover { transform: translateY(-2px); }
.langs__list button.is-on {
  background: var(--sunny);
  color: var(--ink);
  box-shadow: 0 6px 14px rgba(26, 12, 74, .28);
  transform: translateY(-2px);
}
.langs__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 22px;
  font-size: .94rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .92);
}
.langs__legend span { display: inline-flex; align-items: center; gap: 8px; }
.langs__key {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5);
}
.langs__key--full { background: #fff; box-shadow: none; }

/* ---------- Parents ---------- */
.parents { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.parents__side { position: sticky; top: calc(var(--nav-h) + 24px); }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.perk {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: inset 0 0 0 2px var(--paper-alt);
  transition: transform .3s var(--spring), box-shadow .3s, background .3s;
}
.perk:hover { transform: translateY(-5px); background: #fff; box-shadow: var(--sh-card); }
.perk__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 17px;
  background: var(--bg);
  color: var(--fg);
  margin-bottom: 16px;
}
.perk__icon .i { width: 27px; height: 27px; stroke-width: 2.3; }
.perk h3 { font-size: 1.24rem; margin-bottom: 7px; }
.perk p { font-size: 1rem; font-weight: 600; color: var(--ink-soft); line-height: 1.5; }

.gate {
  margin-top: 32px;
  max-width: 372px;
  background: #fff;
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--sh-pop), inset 0 0 0 2px var(--paper-alt);
}
.gate__top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gate__top img { width: 58px; flex: none; }
.gate__title { font: 600 1.2rem/1.15 var(--font-display); }
.gate__hint { font-size: .9rem; font-weight: 700; color: var(--ink-soft); }
.gate__q { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gate__eq { font: 600 1.45rem/1.1 var(--font-display); }
.gate__entry {
  flex: none;
  width: 74px; height: 54px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--paper-alt);
  box-shadow: inset 0 0 0 2px var(--line);
  font: 700 1.6rem/1 var(--font-display);
  color: var(--violet-deep);
}
.gate__entry.is-wrong { animation: shake .4s both; color: #E0425A; }
.keypad { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.keypad button {
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--paper-alt), 0 3px 0 var(--line);
  font: 600 1.2rem/1 var(--font-display);
  color: var(--ink);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.keypad button:hover { background: var(--violet-soft); }
.keypad button:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--paper-alt), 0 0 0 var(--line); }
.keypad .i { margin: auto; width: 20px; height: 20px; }
.gate__open[hidden], .gate__locked[hidden] { display: none; }
.gate__open { animation: view-in .4s var(--ease) both; }
.gate__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 2px;
  font-weight: 700;
  border-top: 2px solid var(--paper-alt);
}
.gate__row:first-of-type { border-top: 0; }
.gate__row .i { color: var(--violet); }
.gate__row span { flex: 1; }
.gate__row em { font-style: normal; color: var(--ink-soft); }
.gate__row small { display: block; font-size: .8rem; font-weight: 700; line-height: 1.3; color: var(--ink-soft); }
.switch {
  position: relative;
  width: 50px; height: 30px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: #D9D3E8;
  cursor: pointer;
  transition: background .2s;
}
.switch::after {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(42, 35, 64, .25);
  transition: translate .22s var(--spring);
}
.switch[aria-checked="true"] { background: var(--violet); }
.switch[aria-checked="true"]::after { translate: 20px 0; }
.gate__ok {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: #E2FBF2;
  color: #0C6B55;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.35;
}
.gate__ok .i { width: 18px; height: 18px; margin-top: 2px; stroke-width: 3; }
.gate__relock {
  margin-top: 10px;
  border: 0;
  background: none;
  font: 600 .95rem var(--font-display);
  color: var(--violet-deep);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .18em;
  padding: 4px 0;
}

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.qa { background: #fff; border-radius: 22px; box-shadow: var(--sh-soft); overflow: clip; transition: box-shadow .3s; }
.qa[open] { box-shadow: var(--sh-card); }
.qa summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px 20px 26px;
  font: 600 1.18rem/1.25 var(--font-display);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline-offset: -3px; border-radius: 22px; }
.qa summary span { flex: 1; }
.qa__plus {
  position: relative;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--violet-soft);
  transition: background .25s, rotate .35s var(--spring);
}
.qa__plus::before, .qa__plus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 3px;
  translate: -50% -50%;
  border-radius: 3px;
  background: var(--violet-deep);
  transition: background .25s;
}
.qa__plus::after { rotate: 90deg; transition: rotate .35s var(--spring), background .25s; }
.qa[open] .qa__plus { background: var(--violet); rotate: 180deg; }
.qa[open] .qa__plus::before, .qa[open] .qa__plus::after { background: #fff; }
.qa[open] .qa__plus::after { rotate: 0deg; }
.qa__a { padding: 0 26px 24px; color: var(--ink-soft); font-weight: 600; max-width: 62em; }
.qa__a p + p { margin-top: 10px; }
@supports (interpolate-size: allow-keywords) {
  .qa { interpolate-size: allow-keywords; }
  .qa::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  .qa[open]::details-content { height: auto; }
}

/* ---------- Finale ---------- */
.finale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(110px, 12vw, 170px) 0 clamp(44px, 5vw, 64px);
  background: #FFB8DC;
}
.finale__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  z-index: -2;
}
.finale__clouds {
  position: absolute;
  left: 0; right: 0; top: -1px;
  width: 100%;
  height: clamp(54px, 8vw, 110px);
  fill: var(--paper);
  scale: 1 -1;
  z-index: -1;
}
.finale__card {
  width: min(700px, 100% - 40px);
  margin-inline: auto;
  padding: clamp(28px, 4.4vw, 48px);
  border-radius: clamp(30px, 4vw, 44px);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 30px 60px -18px rgba(120, 40, 120, .45);
  text-align: center;
}
.finale__card h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.finale__card .lead { margin-inline: auto; }
.finale__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin-top: 28px; }
.finale__soon { margin-top: 18px; font-weight: 700; font-size: .98rem; color: var(--ink-soft); }
.cast {
  position: relative;
  width: min(1120px, 100%);
  height: clamp(210px, 30vw, 350px);
  margin: clamp(10px, 2vw, 28px) auto 0;
}
.cast img {
  position: absolute;
  bottom: var(--b, 0);
  left: var(--l);
  width: calc(var(--w) * var(--cast, 1));
  filter: drop-shadow(0 14px 10px rgba(60, 20, 90, .25));
  animation: bob var(--t, 3s) ease-in-out infinite alternate;
  animation-delay: var(--dl, 0s);
}
.cast .cast__oomi { translate: -50% 0; animation-name: bob-c; }
@keyframes bob-c {
  from { translate: -50% -6px; }
  to { translate: -50% 10px; }
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  margin-top: -34px;
  padding: 62px 0 34px;
  border-radius: 36px 36px 0 0;
  background: var(--night);
  color: #C9C0E6;
}
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer .wm { font-size: 2.2rem; color: #fff; }
.footer__tag { margin-top: 12px; max-width: 24em; font-weight: 600; }
.footer h3 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer ul { display: grid; gap: 9px; list-style: none; padding: 0; }
.footer a { color: #C9C0E6; text-decoration: none; font-weight: 700; transition: color .2s; }
.footer a:hover { color: #fff; text-decoration: underline; }.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid #332A50;
  font-size: .92rem;
  font-weight: 600;
  color: #9E94C0;
}

/* ---------- Document pages (privacy, 404) ---------- */
.doc-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: calc(var(--nav-h) + clamp(36px, 6vw, 72px)) 0 clamp(96px, 11vw, 140px);
  background:
    radial-gradient(60% 80% at 90% 0%, rgba(255, 201, 60, .3), transparent 62%),
    linear-gradient(176deg, #8A43FF 0%, #8C5CFF 45%, #6F97FF 100%);
}
.doc-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; text-shadow: 0 3px 0 rgba(58, 31, 158, .25); }
.doc-hero p { margin-top: 14px; font-weight: 700; font-size: 1.1rem; color: rgba(255, 255, 255, .92); max-width: 40em; }
.doc-hero.support-hero { padding: calc(var(--nav-h) + 32px) 0 36px; }
.doc {
  position: relative;
  z-index: 2;
  width: min(820px, 100% - 40px);
  margin: clamp(-70px, -6vw, -44px) auto clamp(64px, 8vw, 110px);
  padding: clamp(26px, 5vw, 56px);
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-pop);
}
.doc h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 38px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.2rem; margin: 24px 0 8px; }
.doc p, .doc li { color: #453E5E; font-weight: 600; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.3em; margin: 12px 0; display: grid; gap: 8px; }
.doc li::marker { color: var(--violet); }
.doc strong { color: var(--ink); font-weight: 800; }
.doc__short {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 30px;
  border-radius: var(--r-lg);
  background: var(--paper-alt);
}
.doc__short img { width: 84px; flex: none; }
.doc__short p { color: var(--ink); font-weight: 700; }
.footer--flat { margin-top: 0; }

.lost { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 40px 20px; color: #fff; background: linear-gradient(176deg, #8A43FF 0%, #8C5CFF 40%, #4FB3FF 100%); }
.lost img { width: min(260px, 60vw); margin-inline: auto; filter: drop-shadow(0 18px 16px rgba(26, 12, 74, .3)); animation: breathe 2.8s ease-in-out infinite alternate; }
.lost h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 700; margin: 10px 0 12px; }
.lost p { font-weight: 700; font-size: 1.15rem; margin-bottom: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  /* The page gutter gets narrow here: drop the decorations that would sit on the copy. */
  .float--edge { display: none; }
}
@media (max-width: 1240px) {
  .demo { --k: .92; }
  /* Equal columns keep the phone and its stickers inside the page gutter. */
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .cast { --cast: .8; }
  .ages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .age__plate { aspect-ratio: 1 / .6; }
  .age__plate img { width: 42%; }
  .demo { --k: .84; }
}
@media (max-width: 1023px) {
  .hero { text-align: center; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero__lead, .hl { margin-inline: auto; }
  /* Single column: keep the sky decorations away from the copy. */
  .sky .float:not(.bubble) { display: none; }
  .sky .bubble { opacity: .7; }
  .hero__cta, .stores { justify-content: center; }
  .store { text-align: left; }
  .demo {
    --k: 1;
    width: min(100%, 520px);
    height: auto;
    display: grid;
    justify-items: center;
    gap: 18px;
  }
  .guide {
    position: relative;
    left: auto; bottom: auto;
    width: min(100%, 370px);
    min-height: 156px;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .guide__oomi { grid-column: 1; grid-row: 1; width: 128px; animation: none; }
  .guide__oomi.is-hop { animation: mobile-hop .5s ease-in-out; }
  @keyframes mobile-hop { 50% { transform: translateY(-8px); } }
  .bubble-say {
    position: relative;
    left: auto; bottom: auto;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-height: 96px;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform-origin: 0 60%;
  }
  .bubble-say::after { left: -7px; bottom: calc(50% - 11px); }
  [dir="rtl"] .bubble-say::after { left: auto; right: -7px; }
  .phone { position: relative; right: auto; top: auto; width: min(304px, 84vw); }
  .sticker { --w: 84px; }
  .sticker--d { display: none; }
  .sticker--a { left: calc(50% - 250px) !important; top: 46% !important; }
  .sticker--b { right: calc(50% - 250px) !important; top: 34% !important; }
  .sticker--c { right: calc(50% - 240px) !important; bottom: 6% !important; top: auto !important; }

  .langs, .parents { grid-template-columns: minmax(0, 1fr); }
  .parents__side { display: contents; }
  .parents__intro { order: 1; }
  .perks { order: 2; }
  .gate { order: 3; margin: 0 auto; width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .nav__toggle { display: grid; }
  .nav__cta { display: none; }
  .nav__links {
    position: absolute;
    left: 16px; right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--sh-pop);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { font-size: 1.15rem; padding: 14px 18px; }
  .nav__language { margin-inline-start: auto; flex-basis: 146px; }
  .nav__in .nav__toggle { flex: 0 0 46px; margin-inline: 0; }
}
@media (max-width: 560px) {
  .nav__in { gap: 8px; }
  .nav__in > .wm { font-size: 1.5rem; }
  .nav__language { position: static; flex-basis: 120px; }
  .nav__language summary { padding-inline: 10px; font-size: .875rem; }
  .language-panel { position: fixed; inset-inline: 16px; top: calc(var(--nav-h) + 8px); width: auto; }
  .nav__in .nav__toggle { flex-basis: 42px; width: 42px; height: 42px; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .game { padding: 6px 6px 10px; border-radius: 18px; }
  .game__plate { border-radius: 13px; }
  .game__name { font-size: .9rem; margin: 8px 3px 0; }
  .game__how { display: none; }
  .game__age { left: 4px; top: 4px; font-size: .6rem; padding: 3px 6px; }
  .stats__card { grid-template-columns: 1fr 1fr; padding: 14px 6px; row-gap: 8px; }
  .stat { padding: 12px 10px; }
  .stat:nth-child(3)::before { display: none; }
  .perks { grid-template-columns: minmax(0, 1fr); }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 6px 20px 10px; scrollbar-width: none; }
  .filters--ages { margin-bottom: 14px; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .sticker { display: none; }
  .cast { --cast: .62; }
}
@media (max-width: 560px) {
  .ages { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .age { flex-direction: row; border-radius: var(--r-lg); }
  .age__plate { flex: none; width: 34%; aspect-ratio: auto; }
  .age__plate img { width: 82%; }
  .age__body { padding: 16px 16px 14px; }
  .age__head { flex-wrap: wrap; gap: 4px 8px; margin-bottom: 6px; }
  .age__head h3 { font-size: 1.4rem; }
  .age__years { font-size: .8rem; padding: 6px 9px; }
  .age__body p { font-size: .94rem; line-height: 1.4; }
  .age__games { display: none; }
  .age__more { margin-top: 8px; font-size: .96rem; }
  .stores { gap: 8px; }
  .store { gap: 8px; padding: 8px 12px 8px 10px; border-radius: 14px; }
  .store .i { width: 22px; height: 22px; }
  .store small { font-size: .66rem; }
  .store b { font-size: .98rem; }
  .hero__cta .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .greeter img { width: 120px; }
  .langs__list { gap: 8px; }
  .langs__list button { font-size: .92rem; padding: 10px 13px; }
  .keypad { grid-template-columns: repeat(3, 1fr); }
  .doc__short { flex-direction: column; text-align: center; }
  .cast { --cast: .46; }
  .bubble-say { font-size: .98rem; padding: 12px 15px; }
}
@media (max-width: 380px) {
  .language-options { grid-template-columns: minmax(0, 1fr); }
  .guide { grid-template-columns: 104px minmax(0, 1fr); }
  .guide__oomi { width: 104px; }
}

.zone { text-decoration: none; }

/* ---------- Generated pages: game, kind, age zone, language home (scripts/site/pages.mjs) ---------- */
.ghero, .lhero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: calc(var(--nav-h) + clamp(14px, 3vw, 40px)) 0 clamp(110px, 11vw, 150px);
  background:
    radial-gradient(56% 80% at 94% 0%, rgba(255, 201, 60, .32), transparent 62%),
    radial-gradient(44% 64% at 0% 100%, rgba(255, 111, 165, .3), transparent 66%),
    linear-gradient(176deg, #8A43FF 0%, #8C5CFF 40%, #6F97FF 100%);
}
.ghero__grid, .lhero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.ghero h1, .lhero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; text-shadow: 0 3px 0 rgba(58, 31, 158, .25); }
.ghero__how, .lhero__lead {
  margin-top: 12px;
  max-width: 36em;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  font-weight: 700;
  color: rgba(255, 255, 255, .94);
}
.lhero .chip { margin-bottom: 18px; }
.lhero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.lhero__art img {
  width: min(100%, 330px);
  margin-inline: auto;
  filter: drop-shadow(0 24px 22px rgba(26, 12, 74, .3));
  animation: breathe 2.8s ease-in-out infinite alternate;
}
.lhero--kind .lhero__art img {
  padding: 8%;
  border-radius: 40px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 26px 50px rgba(26, 12, 74, .3), inset 0 0 0 6px rgba(255, 255, 255, .6);
  filter: none;
  rotate: 3deg;
}

.crumbs ol { display: flex; flex-wrap: wrap; row-gap: 4px; list-style: none; padding: 0; margin: 0 0 14px; font: 600 .95rem/1.3 var(--font-display); }
.crumbs li { display: inline-flex; align-items: center; color: rgba(255, 255, 255, .86); }
.crumbs li + li::before { content: "\203A"; margin-inline: 9px; opacity: .7; }
[dir="rtl"] .crumbs li + li::before { content: "\2039"; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; padding: 0; }
.fact {
  font: 800 .88rem/1 var(--font-body);
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45);
}
.fact a { color: inherit; text-decoration: none; }
.fact a:hover { text-decoration: underline; }
.fact--age { background: #fff; color: var(--violet-deep); box-shadow: none; }

.play {
  max-width: 660px;
  margin-top: 24px;
  padding: 18px 18px 16px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .13);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .32);
}
.play__who { font: 600 1.2rem/1.2 var(--font-display); margin-bottom: 12px; }
.play__zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.play__zones[data-n="1"] { grid-template-columns: minmax(0, max-content); }
.play__zones[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.play__btn { padding-inline: 18px; }
.play__btn span { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 7px; white-space: normal; }
.play__btn small { font: 800 .8rem/1 var(--font-body); opacity: .75; }
.play__note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .95rem; font-weight: 700; color: rgba(255, 255, 255, .92); }
.play__note .i { color: var(--sunny); }

.ghero__art .art {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 400px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 44px;
  background: var(--p);
  box-shadow: 0 30px 60px rgba(26, 12, 74, .35), inset 0 0 0 7px rgba(255, 255, 255, .55);
  container-type: inline-size;
  rotate: 3deg;
}
.art img { width: 80%; filter: drop-shadow(0 14px 12px rgba(42, 35, 64, .18)); }
.art .game__emoji { font-size: 6rem; font-size: 48cqw; }

.gbody {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(22px, 3.4vw, 44px);
  align-items: start;
  margin-top: clamp(-84px, -6.5vw, -48px);
}
.gbody__main {
  padding: clamp(24px, 4.4vw, 52px);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--sh-pop);
}
.gsec + .gsec { margin-top: 36px; }
.gsec h2 { font-size: clamp(1.45rem, 2.5vw, 1.95rem); margin-bottom: 14px; }
.gsec p { font-size: 1.08rem; font-weight: 600; color: #453E5E; }
.steps { display: grid; gap: 12px; counter-reset: step; }
.steps li { display: flex; align-items: flex-start; gap: 14px; font-weight: 700; color: #453E5E; counter-increment: step; }
.steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet-deep);
  font: 700 1.05rem/1 var(--font-display);
}
.learn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.learn li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--paper-alt); font-weight: 700; line-height: 1.3; }
.learn .i { width: 22px; height: 22px; color: var(--sunny); }
.zonelist { display: grid; gap: 10px; }
.zonelist__row { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: var(--r-md); background: var(--zone-bg, var(--paper-alt)); }
.zonelist__row img { width: 60px; flex: none; }
.zonelist__row p { font-size: 1rem; line-height: 1.45; }
.zonelist .zonelist__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 2px; color: var(--ink); }
.zonelist__head b { font: 600 1.12rem/1.2 var(--font-display); }
.zonelist__head span { padding: 4px 9px; border-radius: 999px; background: #fff; font: 800 .78rem/1 var(--font-body); }
.zonelist__row--tiny, .agecard--tiny { --zone-bg: #FFF3D1; }
.zonelist__row--little, .agecard--little { --zone-bg: #FFE0EC; }
.zonelist__row--young, .agecard--young { --zone-bg: #DDF2FF; }
.zonelist__row--big, .agecard--big { --zone-bg: #DDFAF0; }
.gsec--tip { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--r-lg); background: linear-gradient(135deg, #FFF6D8, #FFE1C8); }
.gsec--tip img { width: 92px; flex: none; }
.gsec--tip h2 { font-size: 1.35rem; margin-bottom: 4px; }

.gbody__side { position: sticky; top: calc(var(--nav-h) + 18px); }
.why { padding: 0 24px 26px; border-radius: var(--r-xl); background: var(--night); color: #fff; text-align: center; box-shadow: var(--sh-pop); }
.why img { width: 116px; margin: 0 auto 4px; translate: 0 -34px; margin-bottom: -26px; filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .35)); }
.why h2 { font-size: 1.42rem; margin-bottom: 14px; }
.why ul { display: grid; gap: 11px; text-align: start; list-style: none; padding: 0; }
.why li { display: flex; gap: 10px; font-size: .98rem; font-weight: 700; line-height: 1.4; color: #DCD5F3; }
.why li .i { flex: none; margin-top: 1px; color: var(--mint); }
.why__play { width: 100%; margin-top: 20px; white-space: normal; }

.more .h2 { margin-bottom: 24px; }
.more__all { margin-top: 28px; text-align: center; }
.more__all .btn { white-space: normal; }
[dir="rtl"] .i--dir { transform: scaleX(-1); }

.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.h2__n { margin-inline-start: 6px; padding: 6px 12px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-deep); font: 800 1rem/1 var(--font-body); vertical-align: middle; }
.group + .group { margin-top: 44px; }
.h2 + .group { margin-top: 28px; }
.group__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.group__head a { color: var(--ink); text-decoration: none; }
.group__head a:hover { color: var(--violet-deep); text-decoration: underline; }
.group__head span { padding: 6px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-deep); font: 800 .85rem/1 var(--font-body); }

.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 24px; list-style: none; padding: 0; }
.kind a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 12px 16px 12px 12px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-card);
  color: var(--ink);
  text-decoration: none;
  transition: transform .25s var(--spring), box-shadow .25s var(--ease);
}
.section--white .kind a { background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.kind a:hover { transform: translateY(-4px); box-shadow: var(--sh-pop); }
.kind img { width: 58px; height: 58px; flex: none; padding: 5px; border-radius: 16px; background: var(--paper-alt); }
.kind__name { flex: 1; font: 600 1.12rem/1.15 var(--font-display); }
.kind__n { padding: 6px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-deep); font: 800 .85rem/1 var(--font-body); }

.agecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 26px; list-style: none; padding: 0; }
.agecard a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px 18px 16px 12px;
  border-radius: var(--r-lg);
  background: var(--zone-bg);
  color: var(--ink);
  text-decoration: none;
  transition: transform .25s var(--spring), box-shadow .25s var(--ease);
}
.agecard a:hover { transform: translateY(-4px); box-shadow: var(--sh-card); }
.agecard img { width: 88px; flex: none; }
.agecard__body { display: grid; justify-items: start; gap: 4px; flex: 1; min-width: 0; }
.agecard__name { font: 600 1.3rem/1.1 var(--font-display); }
.agecard__years { font: 800 .85rem/1.2 var(--font-body); color: var(--ink-soft); }
.agecard__n { margin-top: 4px; padding: 5px 10px; border-radius: 999px; background: #fff; font: 800 .8rem/1 var(--font-body); }
.agecard__go { flex: none; width: 22px; height: 22px; color: var(--ink-soft); transition: translate .25s var(--spring); }
.agecard a:hover .agecard__go { translate: 3px 0; }
.group__more { margin-top: 18px; }
.group__more .btn { white-space: normal; }

.points { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 26px; list-style: none; padding: 0; }
.point { padding: 22px; border-radius: var(--r-lg); background: var(--paper-alt); }
.point h3 { margin-bottom: 6px; font-size: 1.25rem; }
.point p { font-size: .98rem; font-weight: 600; color: #453E5E; }

.footer__langs { margin-top: 40px; padding-top: 26px; border-top: 1px solid #332A50; }
.footer__langs h3 { display: flex; align-items: center; gap: 8px; }
.footer .footer__langs ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__langs a[aria-current] { color: #fff; text-decoration: underline; text-underline-offset: .25em; }
.sub .nav__links a, .nav__links a:has(.i) { display: inline-flex; align-items: center; gap: 6px; }
.nav__links a .i { width: 1.1em; height: 1.1em; }

/* The game, opened over its page (site.js) */
.player { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: linear-gradient(176deg, #8A43FF, #7C86FF); }
.player__wait { width: 120px; animation: breathe 1.4s ease-in-out infinite alternate; }
.player__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
html.is-playing, html.is-playing body { overflow: hidden; }

/* Korean breaks lines between words, not inside them */
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }

/* Right-to-left pages (Arabic, Hebrew) */
.wm { direction: ltr; }
[dir="rtl"] .nav__links, [dir="rtl"] .nav__toggle { margin-left: 0; margin-right: auto; }
[dir="rtl"] .game__age { left: auto; right: 6px; }
[dir="rtl"] .skip { left: auto; right: 16px; }
[dir="rtl"] .ghero__art .art, [dir="rtl"] .lhero--kind .lhero__art img { rotate: -3deg; }
[dir="rtl"] .kind a { padding: 12px 12px 12px 16px; }
[dir="rtl"] .agecard a { padding: 16px 12px 16px 18px; }
[dir="rtl"] .zonelist__row { padding: 10px 10px 10px 16px; }

@media (max-width: 1100px) {
  .gbody { grid-template-columns: minmax(0, 1fr) 290px; }
}
@media (max-width: 1023px) {
  .ghero__grid, .lhero__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ghero__art { order: -1; }
  .ghero__art .art { width: 150px; border-radius: 30px; box-shadow: 0 16px 34px rgba(26, 12, 74, .3), inset 0 0 0 5px rgba(255, 255, 255, .55); }
  .lhero__art { order: -1; }
  .lhero__art img { width: 150px; }
  .lhero--kind .lhero__art img { border-radius: 30px; }
  .gbody { grid-template-columns: minmax(0, 1fr); }
  .gbody__side { position: static; margin-top: 30px; }
  .why { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .ghero, .lhero { padding-bottom: 96px; }
  .learn { grid-template-columns: minmax(0, 1fr); }
  .play { padding: 14px; }
  .play__zones, .play__zones[data-n="3"] { grid-template-columns: 1fr 1fr; gap: 10px; }
  .play__zones[data-n="3"] .play__btn:last-child { grid-column: 1 / -1; }
  .play__btn { padding: 15px 10px; font-size: 1.05rem; }
  .gsec--tip { flex-direction: column; text-align: center; }
  .gsec--tip img { width: 76px; }
  .kinds { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kind a { flex-direction: column; text-align: center; gap: 6px; padding: 14px 10px; }
  [dir="rtl"] .kind a { padding: 14px 10px; }
  .kind__name { font-size: 1.02rem; }
}
@media (max-width: 560px) {
  /* Kinds and ages side by side, the brand and the grown-ups column full width. */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer__grid > div { grid-column: 1 / -1; }
  .ghero__art .art { width: 120px; }
  .lhero__cta .btn { width: 100%; }
  .zonelist__row img { width: 48px; }
  .agecard img { width: 70px; }
}

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

/* ---------- Oomiland on a home page: the picture of the world and a button per age zone ---------- */
.world__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.world__art img { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: 0 18px 44px rgba(42, 35, 64, .18); border: 6px solid #fff; }
.world__name { margin-bottom: 8px; }
.world__copy .lead { margin-bottom: 18px; }
.world__ages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; padding: 0; }
.world__age { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 8px 20px rgba(91, 52, 224, .12); transition: transform .18s; }
.world__age:hover { transform: translateY(-3px); }
.world__age img { width: 52px; height: 52px; flex: none; }
.world__age span { display: grid; flex: 1; min-width: 0; line-height: 1.2; }
.world__age b { font: 800 1.02rem var(--font-display, inherit); }
.world__age small { color: var(--ink-soft); font-weight: 700; font-size: .82rem; }
.world__age .i { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--violet); color: #fff; flex: none; }
@media (max-width: 860px) {
  .world__in { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 420px) {
  .world__ages { grid-template-columns: 1fr; }
}
.tip-frequency #tip-frequency{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tip-consent{display:flex;align-items:flex-start;gap:10px;text-align:start;margin:18px 0;font-size:15px;line-height:1.5}.tip-consent input{flex:0 0 auto;width:20px;height:20px;margin-top:2px;accent-color:var(--purple,#7256c9)}.tip-manage{display:block;margin-top:18px;font-size:14px}.tip-card [hidden]{display:none!important}#tip-custom-amount{width:100%;padding:12px;border:2px solid #ddd5ed;border-radius:12px;font:inherit;box-sizing:border-box}#tip-amount-range{font-size:13px;color:#686173}#tip-payment-error{color:#b42318}#tip-pay:disabled{opacity:.65;cursor:wait}
