@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@600;700;800&display=swap');

:root {
  --ink: #27334a;
  --muted: #66728a;
  --cream: #fff9eb;
  --paper: #ffffff;
  --sky: #dff5ff;
  --blue: #5c83e6;
  --blue-dark: #466dcc;
  --green: #52b788;
  --green-dark: #35996a;
  --gold: #f4bf4f;
  --peach: #ff9b73;
  --lavender: #9c82e6;
  --locked: #d8dde8;
  --shadow: 0 14px 36px rgba(54, 69, 99, .14);
  --radius: 28px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.92), transparent 30%),
    linear-gradient(145deg, #fff9eb 0%, #eef9ff 58%, #f7f1ff 100%);
  font-family: "Nunito", system-ui, sans-serif;
}

button { font: inherit; }

button:focus-visible {
  outline: 5px solid rgba(92,131,230,.28);
  outline-offset: 4px;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(14px, env(safe-area-inset-top)) clamp(18px, 4vw, 52px) 10px;
}

.brand-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: "Baloo 2", cursive;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1;
}

.brand-oops { color: var(--peach); }
.brand-edu { color: var(--blue); }

.topbar-actions { display: flex; gap: 8px; align-items: center; }

.sound-button,
.grownups-button,
.round-back,
.round-audio {
  border: 0;
  background: rgba(255,255,255,.82);
  box-shadow: 0 5px 15px rgba(50,70,100,.1);
  color: var(--ink);
  cursor: pointer;
}

.sound-button,
.round-back,
.round-audio {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.grownups-button {
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.screen {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(10px, 2.2vw, 28px) 0 40px;
}

.hero-home { max-width: 1050px; margin: 0 auto; }

.hero-copy { text-align: center; margin: 10px auto 26px; }

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

h1, h2 {
  font-family: "Baloo 2", cursive;
  margin: 0;
  line-height: 1.02;
}

h1 { font-size: clamp(42px, 7vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 46px); }

.kid-subtitle {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  margin: 8px 0 0;
}

.game-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  border: 0;
  text-align: left;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.game-card--hero {
  grid-column: 1 / -1;
  min-height: 340px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  padding: 0;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.game-card--hero:hover { transform: translateY(-4px); }

.game-art {
  position: relative;
  min-height: 340px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 22%),
    linear-gradient(145deg, #8bd7ff 0%, #8ba7ff 48%, #a790eb 100%);
}

.floating-card,
.floating-key,
.spark {
  position: absolute;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 25px rgba(49,63,113,.2);
}

.floating-card {
  width: 155px;
  height: 155px;
  border-radius: 38px;
  background: #fff;
  font-size: 82px;
  left: 20%;
  top: 23%;
  transform: rotate(-5deg);
}

.floating-key {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: #fff;
  font-family: "Baloo 2";
  font-size: 38px;
  font-weight: 800;
}

.key-c { right: 20%; top: 16%; transform: rotate(8deg); }
.key-a { right: 9%; top: 47%; transform: rotate(-7deg); }
.key-t { right: 29%; bottom: 9%; transform: rotate(5deg); }

.spark { box-shadow: none; color: #ffe88a; font-size: 28px; }
.spark-one { left: 9%; top: 12%; }
.spark-two { right: 7%; bottom: 10%; }

.game-card-copy {
  padding: clamp(28px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.game-kicker {
  color: var(--peach);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
}

.game-card-copy p {
  color: var(--muted);
  font-size: 18px;
  max-width: 420px;
}

.play-pill,
.primary-button {
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 800;
  padding: 14px 25px;
  box-shadow: 0 8px 0 var(--green-dark);
}

.game-card--small {
  display: flex;
  align-items: center;
  padding: 18px;
  gap: 15px;
}

.game-card--small .mini-art {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #f3f5fa;
  font-size: 36px;
}

.game-card--small strong,
.game-card--small span { display: block; }

.game-card--small strong { font-size: 20px; }
.game-card--small span { color: var(--muted); font-size: 13px; margin-top: 2px; }
.is-locked { filter: grayscale(.25); opacity: .67; }

.screen-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.screen-heading h1 { font-size: clamp(38px, 6vw, 62px); }

.star-bank,
.bundle-progress {
  padding: 10px 16px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(50,70,100,.1);
  color: #bf8b19;
  font-weight: 800;
}

.kingdom-map {
  position: relative;
  min-height: min(670px, 74vh);
  overflow: hidden;
  border-radius: 38px;
  box-shadow: var(--shadow);
  background:
    radial-gradient(ellipse at 20% 88%, #a9dd7f 0 15%, transparent 16%),
    radial-gradient(ellipse at 72% 82%, #9dd372 0 18%, transparent 19%),
    linear-gradient(#cceeff 0 57%, #b7df83 57% 100%);
}

.kingdom-map::before,
.kingdom-map::after {
  content: "";
  position: absolute;
  border-radius: 50% 50% 0 0;
  background: rgba(74,133,108,.24);
  bottom: 0;
}

.kingdom-map::before { width: 52%; height: 34%; left: -10%; }
.kingdom-map::after { width: 66%; height: 30%; right: -18%; }

.map-sky { position: absolute; inset: 0; pointer-events: none; }
.map-title {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  color: rgba(39,51,74,.62);
  font-weight: 800;
}
.cloud { position: absolute; color: rgba(255,255,255,.82); font-size: 82px; }
.cloud-1 { left: 8%; top: 8%; }
.cloud-2 { right: 18%; top: 16%; font-size: 62px; }

.path-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.path-lines path {
  fill: none;
  stroke: #f8df9d;
  stroke-width: 34;
  stroke-linecap: round;
  stroke-dasharray: 5 18;
}

.map-node {
  position: absolute;
  z-index: 4;
  border: 7px solid #fff;
  box-shadow: 0 12px 25px rgba(58,80,80,.2);
  cursor: pointer;
}

.map-node--start {
  left: 7%;
  bottom: 9%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--green);
  color: white;
}

.node-letters {
  display: block;
  font-family: "Baloo 2";
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1;
}

.node-label {
  display: block;
  font-size: 13px;
  margin-top: 5px;
  font-weight: 800;
}

.map-node--locked {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--locked);
  color: #7d8799;
}
.map-node--locked .node-letters { font-size: 28px; }
.lock { position: absolute; right: -4px; top: -8px; font-size: 24px; }

.node-def { left: 31%; bottom: 39%; }
.node-ghi { left: 57%; bottom: 48%; }
.node-jkl { right: 17%; top: 25%; }

.castle {
  position: absolute;
  right: 5%;
  top: 5%;
  z-index: 4;
  text-align: center;
}
.castle-icon { display: block; font-size: clamp(76px, 12vw, 135px); }
.castle-copy {
  display: block;
  padding: 5px 10px;
  background: rgba(255,255,255,.9);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.companion-tease {
  position: absolute;
  right: -11px;
  bottom: -22px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  border: 4px solid #fff;
  font-family: "Baloo 2";
  font-size: 26px;
}

.lesson-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.lesson-card {
  position: relative;
  border: 0;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
  color: var(--ink);
  min-height: 390px;
  cursor: pointer;
  overflow: hidden;
}

.lesson-card[disabled] { cursor: default; }

.lesson-letter {
  position: absolute;
  left: 18px;
  top: 10px;
  font-family: "Baloo 2";
  font-size: 72px;
  font-weight: 800;
  color: rgba(92,131,230,.18);
}

.lesson-image {
  height: 230px;
  display: grid;
  place-items: center;
  font-size: 118px;
  background: #f7f9fd;
  border-radius: 24px;
}

.lesson-card h2 { margin: 15px 0 2px; text-align: center; }
.lesson-state { display: block; text-align: center; color: var(--muted); font-weight: 800; }

.lesson-card.is-complete {
  box-shadow: 0 0 0 5px rgba(82,183,136,.22), var(--shadow);
}
.lesson-card.is-complete::after {
  content: "✓";
  position: absolute;
  right: 15px;
  top: 15px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}
.lesson-card.is-lesson-locked .lesson-image { filter: grayscale(1); opacity: .35; }
.lesson-card.is-lesson-locked { opacity: .67; }

.lesson-screen { max-width: 900px; margin: 0 auto; }
.lesson-topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
}
.lesson-progress-dots { display: flex; justify-content: center; gap: 8px; }
.progress-dot {
  width: 13px; height: 13px; border-radius: 50%; background: var(--locked);
}
.progress-dot.is-done { background: var(--green); }
.progress-dot.is-current { box-shadow: 0 0 0 4px rgba(92,131,230,.18); background: var(--blue); }

.coach-line {
  margin: 12px auto 10px;
  width: fit-content;
  max-width: 90%;
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: var(--blue-dark);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 5px 14px rgba(50,70,100,.08);
}

.lesson-stage {
  display: grid;
  justify-items: center;
  gap: 16px;
  transition: transform .3s ease;
}
.lesson-stage.is-raised { transform: translateY(-8px); }

.picture-card {
  border: 0;
  width: min(420px, 86vw);
  min-height: 255px;
  border-radius: 36px;
  background: white;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: grid;
  place-items: center;
  align-content: center;
}
.picture-emoji {
  display: block;
  font-size: clamp(110px, 22vw, 170px);
  line-height: 1;
  transition: transform .25s ease;
}
.picture-card.is-happy .picture-emoji {
  animation: celebrate .65s ease;
}
.picture-caption {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .08em;
}

.letter-boxes {
  border: 0;
  background: transparent;
  display: flex;
  gap: clamp(8px, 2vw, 14px);
  cursor: pointer;
  padding: 8px;
}
.letter-box {
  width: clamp(62px, 12vw, 88px);
  height: clamp(72px, 13vw, 100px);
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 4px solid #cdd8ea;
  background: #fff;
  box-shadow: 0 7px 0 #e7ebf3;
  font-family: "Baloo 2";
  font-size: clamp(40px, 7vw, 58px);
  font-weight: 800;
  color: var(--ink);
}
.letter-box.is-demo {
  background: #e5f7ef;
  border-color: var(--green);
  box-shadow: 0 7px 0 rgba(53,153,106,.25);
  color: var(--green-dark);
}
.letter-box.is-filled {
  border-color: var(--blue);
  background: #edf3ff;
}

.keyboard-drawer {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  margin-top: 18px;
}
.keyboard-drawer.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.keyboard-hint {
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}
.keyboard {
  display: grid;
  gap: clamp(5px, 1vw, 9px);
  padding: clamp(10px, 2vw, 18px);
  border-radius: 30px;
  background: rgba(224,231,243,.72);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.8);
}
.keyboard-row {
  display: flex;
  justify-content: center;
  gap: clamp(4px, .8vw, 8px);
}
.key {
  flex: 0 1 76px;
  min-width: 0;
  aspect-ratio: 1 / .92;
  max-height: 72px;
  border: 0;
  border-radius: clamp(9px, 2vw, 16px);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 5px 0 #cbd3e1;
  font-family: "Baloo 2";
  font-weight: 800;
  font-size: clamp(17px, 3.3vw, 30px);
  cursor: pointer;
  transition: transform .1s ease, background .16s ease, box-shadow .16s ease;
}
.key:active { transform: translateY(4px); box-shadow: 0 1px 0 #cbd3e1; }
.key.is-demo {
  background: var(--green);
  color: #fff;
  box-shadow: 0 5px 0 var(--green-dark), 0 0 0 6px rgba(82,183,136,.18);
}
.key.is-hint {
  animation: hintPulse .75s ease 2;
}
.key.is-pressed {
  background: #edf3ff;
  box-shadow: 0 3px 0 #b9c8e8;
  transform: translateY(2px);
}

.replay-button {
  display: block;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  font-weight: 800;
  margin: 12px auto 0;
  cursor: pointer;
}

.success-panel {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(520px, calc(100% - 32px));
  padding: 22px;
  text-align: center;
  background: rgba(255,255,255,.97);
  border-radius: 30px;
  box-shadow: 0 22px 60px rgba(46,57,90,.25);
}
.success-stars { color: var(--gold); font-size: 30px; letter-spacing: 8px; }
.success-panel p { color: var(--muted); }
.primary-button { cursor: pointer; min-width: 150px; }

.grownups-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(35,45,65,.36);
  display: grid;
  place-items: center;
  padding: 18px;
}
.grownups-modal[hidden] { display: none; }
.grownups-card {
  position: relative;
  max-width: 560px;
  background: white;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(30,40,60,.3);
}
.grownups-card p { color: var(--muted); line-height: 1.6; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
}

.prototype-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 20px;
  color: #8993a6;
  font-size: 11px;
}
.text-button {
  border: 0;
  background: transparent;
  color: #77839a;
  text-decoration: underline;
  cursor: pointer;
}

@keyframes celebrate {
  0%,100% { transform: rotate(0) scale(1); }
  30% { transform: rotate(-8deg) scale(1.08); }
  60% { transform: rotate(8deg) scale(1.1); }
}
@keyframes hintPulse {
  0%,100% { background: #fff; }
  50% { background: #e5f7ef; box-shadow: 0 5px 0 var(--green-dark), 0 0 0 6px rgba(82,183,136,.18); }
}

@media (max-width: 760px) {
  .grownups-button {
    width: 48px;
    height: 48px;
    padding: 0;
    font-size: 0;
    border-radius: 50%;
  }
  .grownups-button::after {
    content: "👤";
    font-size: 20px;
  }
  .game-card--hero { grid-template-columns: 1fr; }
  .game-art { min-height: 270px; }
  .floating-card { width: 130px; height: 130px; font-size: 70px; left: 16%; top: 22%; }
  .floating-key { width: 62px; height: 62px; font-size: 31px; }
  .game-card-copy { padding: 25px; }
  .lesson-cards { grid-template-columns: 1fr; }
  .lesson-card { min-height: 230px; display: grid; grid-template-columns: 42% 1fr; align-items: center; gap: 14px; }
  .lesson-image { height: 190px; font-size: 92px; }
  .lesson-card h2 { text-align: left; }
  .lesson-state { text-align: left; }
  .kingdom-map { min-height: 620px; }
  .map-node--start { width: 135px; height: 135px; left: 4%; }
  .map-node--locked { width: 92px; height: 92px; }
  .node-def { left: 28%; bottom: 38%; }
  .node-ghi { left: 53%; bottom: 51%; }
  .node-jkl { right: 10%; top: 28%; }
  .castle { right: 2%; top: 4%; }
}

@media (max-width: 500px) {
  .screen { width: min(100% - 18px, 1180px); }
  .topbar { padding-left: 14px; padding-right: 14px; }
  .game-gallery { grid-template-columns: 1fr; }
  .game-card--hero { min-height: 0; }
  .game-art { min-height: 235px; }
  .game-card--small { grid-column: 1; }
  .lesson-card { min-height: 190px; }
  .lesson-image { height: 150px; font-size: 72px; }
  .lesson-letter { font-size: 56px; }
  .prototype-footer span { display: none; }
}


/* 002 — public home, catalog, game landings, community */

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 14px;
}
.nav-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  padding: 9px 11px;
  border-radius: 999px;
}
.nav-link:hover { background: rgba(255,255,255,.75); color: var(--ink); }
.nav-link--support { color: #b27618; }

.site-footer {
  width: min(1180px, calc(100% - 28px));
  margin: 20px auto 0;
  padding: 28px 0 max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(90,110,145,.12);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 24px;
  color: var(--muted);
}
.site-footer > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.site-footer strong { font-family: "Baloo 2"; font-size: 25px; line-height: 1; }
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 14px;
}
.site-footer button,
.site-footer a {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
.site-footer small { grid-column: 1 / -1; font-size: 10px; color: #9aa3b3; }

.home-page { display: grid; gap: 54px; }
.home-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  overflow: hidden;
  border-radius: 40px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.55), transparent 25%),
    linear-gradient(135deg, #ffe5a6 0%, #ffd1bf 45%, #c9d6ff 100%);
  box-shadow: var(--shadow);
}
.home-hero-copy {
  padding: clamp(36px, 6vw, 72px);
  align-self: center;
  max-width: 650px;
}
.home-hero-copy h1 {
  font-size: clamp(52px, 8vw, 88px);
  letter-spacing: -2px;
}
.home-hero-copy p {
  max-width: 570px;
  color: #5c6477;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}
.home-hero-scene {
  position: relative;
  min-height: 380px;
}
.hero-mascot {
  position: absolute;
  left: 26%;
  top: 24%;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border-radius: 48% 52% 44% 56%;
  font-size: 95px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 20px 35px rgba(70,70,100,.18);
  transform: rotate(-5deg);
}
.hero-key {
  position: absolute;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 0 rgba(80,90,120,.15), 0 16px 28px rgba(60,70,100,.15);
  font: 800 38px "Baloo 2";
}
.hero-key-a { left: 8%; bottom: 15%; transform: rotate(-9deg); color: var(--peach); }
.hero-key-b { right: 16%; top: 15%; transform: rotate(9deg); color: var(--blue); }
.hero-key-c { right: 8%; bottom: 18%; transform: rotate(-5deg); color: var(--green); }
.hero-star { position: absolute; right: 16%; top: 48%; color: #fff2a8; font-size: 50px; transform: rotate(12deg); }

.home-section { display: grid; gap: 20px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}
.section-heading h2 { font-size: clamp(34px, 5vw, 52px); }
.section-heading > p {
  max-width: 550px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.section-heading--stack { align-items: start; }

.play-now-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.catalog-card {
  border: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border-radius: 28px;
  background: white;
  box-shadow: 0 9px 24px rgba(52,68,100,.11);
  color: var(--ink);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.catalog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(52,68,100,.17); }
.catalog-card.is-playable { box-shadow: 0 0 0 3px rgba(82,183,136,.12), var(--shadow); }
.catalog-art {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 15%, hsla(var(--game-hue), 95%, 96%, .88), transparent 28%),
    linear-gradient(140deg,
      hsl(var(--game-hue), 74%, 79%),
      hsl(calc(var(--game-hue) + 48), 72%, 72%));
}
.catalog-art--card { min-height: 178px; }
.catalog-icon { position: relative; z-index: 3; font-size: 76px; filter: drop-shadow(0 8px 12px rgba(40,50,80,.15)); }
.catalog-bubble {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
}
.catalog-bubble-a { width: 110px; height: 110px; left: -28px; bottom: -30px; }
.catalog-bubble-b { width: 65px; height: 65px; right: 18px; top: 12px; }
.catalog-card-copy { padding: 18px 19px 21px; }
.catalog-status {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--green-dark);
  font-size: 10px;
  letter-spacing: .12em;
  font-weight: 900;
}
.catalog-card:not(.is-playable) .catalog-status { color: #8b7bb9; }
.catalog-card h3 {
  font: 800 23px/1.05 "Baloo 2";
  margin: 0 0 6px;
}
.catalog-card p { margin: 0; color: var(--muted); line-height: 1.4; font-size: 13px; }

.coming-section {
  padding-top: 10px;
}
.category-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-jumps a {
  text-decoration: none;
  color: var(--blue-dark);
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(92,131,230,.12);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.catalog-group { scroll-margin-top: 20px; display: grid; gap: 12px; margin-top: 12px; }
.catalog-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(90,110,145,.1);
  padding-bottom: 8px;
}
.catalog-group-title h3 { margin: 0; font: 800 27px "Baloo 2"; }
.catalog-group-title span { color: var(--muted); font-size: 12px; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 13px;
}
.catalog-grid .catalog-art--card { min-height: 135px; }
.catalog-grid .catalog-icon { font-size: 58px; }
.catalog-grid .catalog-card-copy { padding: 14px 15px 17px; }
.catalog-grid .catalog-card h3 { font-size: 19px; }

.community-strip,
.support-strip {
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow);
}
.community-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px,4vw,42px);
}
.community-strip-art {
  width: 105px;
  height: 105px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: #e8f8ee;
  font-size: 58px;
}
.community-strip h2 { font-size: 36px; margin: 2px 0 5px; }
.community-strip p { color: var(--muted); margin: 0; line-height: 1.5; }
.secondary-button {
  border: 0;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--blue-dark);
  padding: 13px 20px;
  font-weight: 900;
  cursor: pointer;
}
.support-strip {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 19px 24px;
}
.support-strip-icon { font-size: 34px; }
.support-strip div { display: flex; flex-direction: column; }
.support-strip div span { color: var(--muted); font-size: 13px; }
.text-cta {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #a36a0d;
  font-weight: 900;
  cursor: pointer;
}

/* Game landing */
.app-landing { position: relative; max-width: 1080px; margin: 0 auto; }
.landing-back { position: absolute; left: 18px; top: 18px; z-index: 5; }
.app-landing-hero {
  min-height: 580px;
  border-radius: 38px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  background: white;
  box-shadow: var(--shadow);
}
.landing-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 20%, rgba(255,255,255,.5), transparent 25%),
    linear-gradient(145deg,
      hsl(var(--game-hue), 78%, 80%),
      hsl(calc(var(--game-hue) + 52), 70%, 67%));
}
.landing-art > span { position: relative; z-index: 4; font-size: clamp(130px,20vw,220px); filter: drop-shadow(0 18px 18px rgba(45,55,80,.18)); }
.art-dot,
.art-line { position: absolute; display: block; background: rgba(255,255,255,.25); }
.art-dot { border-radius: 50%; }
.art-dot-a { width: 190px; height: 190px; left: -40px; bottom: -40px; }
.art-dot-b { width: 90px; height: 90px; right: 30px; top: 42px; }
.art-line { width: 260px; height: 34px; right: -80px; bottom: 80px; border-radius: 999px; transform: rotate(-22deg); }
.landing-copy {
  padding: clamp(44px,6vw,76px);
  align-self: center;
}
.landing-copy h1 { font-size: clamp(48px,7vw,76px); margin-top: 6px; }
.landing-subtitle { color: var(--blue-dark); font-size: 20px; font-weight: 900; line-height: 1.35; }
.landing-description { color: var(--muted); line-height: 1.7; font-size: 17px; }
.landing-actions { margin: 25px 0; }
.coming-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 12px 18px;
  background: #f0ebff;
  color: #7c65ba;
  font-weight: 900;
}
.rating-panel {
  border-top: 1px solid #edf0f6;
  padding-top: 20px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.rating-panel strong,
.rating-panel small { display: block; }
.rating-panel strong { font-size: 13px; }
.rating-panel small { color: var(--muted); margin-top: 3px; font-size: 10px; max-width: 280px; }
.rating-stars { display: flex; gap: 2px; }
.rating-stars button {
  border: 0;
  background: transparent;
  color: #d8dde8;
  font-size: 25px;
  cursor: pointer;
  padding: 2px;
}
.rating-stars button.is-rated { color: var(--gold); }
.landing-more {
  margin-top: 18px;
  padding: 28px 34px;
  border-radius: 28px;
  background: rgba(255,255,255,.74);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.landing-more h2 { font-size: 32px; }
.landing-more p { color: var(--muted); line-height: 1.6; }

/* Mini games */
.mini-game-screen { max-width: 900px; margin: 0 auto; }
.mini-score {
  background: white;
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--blue-dark);
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(50,70,100,.09);
}
.game-coach {
  width: fit-content;
  max-width: 90%;
  margin: 8px auto 18px;
  padding: 8px 18px;
  border-radius: 999px;
  background: white;
  color: var(--blue-dark);
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(50,70,100,.08);
}
.memory-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  perspective: 1000px;
}
.memory-card {
  position: relative;
  min-height: 160px;
  border: 0;
  padding: 0;
  border-radius: 24px;
  background: transparent;
  transform-style: preserve-3d;
  cursor: pointer;
}
.memory-card-back,
.memory-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  border-radius: 24px;
  transition: transform .38s ease, opacity .38s ease;
  box-shadow: 0 9px 20px rgba(50,65,95,.12);
}
.memory-card-back {
  background: linear-gradient(145deg,#7ba7f5,#9d89e8);
  color: white;
  font: 800 58px "Baloo 2";
}
.memory-card-face {
  background: white;
  transform: rotateY(180deg);
  align-content: center;
  gap: 5px;
}
.memory-card-face b { font-size: 62px; }
.memory-card-face small { font-weight: 900; color: var(--muted); letter-spacing: .08em; }
.memory-card.is-open .memory-card-back,
.memory-card.is-matched .memory-card-back { transform: rotateY(180deg); }
.memory-card.is-open .memory-card-face,
.memory-card.is-matched .memory-card-face { transform: rotateY(0); }
.memory-card.is-matched .memory-card-face { box-shadow: 0 0 0 4px rgba(82,183,136,.35), 0 9px 20px rgba(50,65,95,.12); }
.center-actions { display: flex; justify-content: center; margin-top: 18px; }

.sound-game { text-align: center; }
.listen-orb {
  width: 165px;
  height: 165px;
  margin: 5px auto 12px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 8px solid white;
  border-radius: 50%;
  background: linear-gradient(145deg,#6fc1ff,#7b82eb);
  color: white;
  box-shadow: 0 16px 34px rgba(70,90,150,.25);
  cursor: pointer;
}
.listen-orb span { font-size: 58px; }
.listen-orb small { font-weight: 900; letter-spacing: .13em; }
.listen-orb.is-finished { filter: grayscale(.8); opacity: .45; }
.sound-choices {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
  margin-top: 20px;
}
.sound-choice {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 0;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.sound-choice span { font-size: 76px; }
.sound-choice small { font-weight: 900; color: var(--muted); letter-spacing: .08em; }
.sound-choice:hover { transform: translateY(-3px); }
.sound-choice.is-correct { box-shadow: 0 0 0 6px rgba(82,183,136,.35), var(--shadow); transform: scale(1.03); }
.sound-choice.is-oops { animation: gentleOops .36s ease; }
.sound-finish {
  grid-column: 1 / -1;
  padding: 40px;
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow);
}
.sound-finish > span { font-size: 60px; }
.sound-finish p { color: var(--muted); }

/* Community */
.community-page,
.support-page { max-width: 1080px; margin: 0 auto; display: grid; gap: 28px; }
.page-hero {
  padding: clamp(34px,6vw,68px);
  border-radius: 38px;
  background: linear-gradient(135deg,#e8f7ff,#f5eeff);
  box-shadow: var(--shadow);
}
.compact-hero h1 { max-width: 850px; font-size: clamp(44px,7vw,72px); }
.compact-hero p { max-width: 780px; color: var(--muted); line-height: 1.65; font-size: 17px; }
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.community-card {
  border-radius: 28px;
  background: white;
  padding: 28px;
  box-shadow: var(--shadow);
}
.community-card--wide { grid-column: 1 / -1; }
.big-icon { font-size: 46px; }
.community-card h2 { font-size: 32px; margin: 7px 0; }
.community-card p { color: var(--muted); line-height: 1.55; }
.member-form { display: grid; gap: 11px; margin-top: 18px; }
.member-form label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 800; }
.member-form input {
  width: 100%;
  border: 2px solid #e2e7f0;
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
}
.member-form small { color: #8b93a5; line-height: 1.45; }
.form-status { margin-top: 12px; color: var(--green-dark); font-weight: 800; font-size: 13px; }
.social-section {
  padding: 30px;
  border-radius: 30px;
  background: rgba(255,255,255,.62);
}
.social-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; margin-top: 20px; }
.social-card {
  min-height: 145px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-radius: 22px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 7px 20px rgba(50,65,95,.08);
}
.social-card span { font-size: 32px; }
.social-card strong { font-size: 15px; }
.social-card small { color: var(--muted); line-height: 1.35; }
.social-card--live { box-shadow: 0 0 0 3px rgba(82,183,136,.18), 0 7px 20px rgba(50,65,95,.08); }

/* Support */
.support-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 40px;
  align-items: center;
  padding: clamp(32px,6vw,68px);
  border-radius: 38px;
  background: linear-gradient(135deg,#fff1a9,#ffd6bb);
  box-shadow: var(--shadow);
}
.support-art {
  width: min(300px,100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 38%;
  background: rgba(255,255,255,.72);
  font-size: clamp(100px,17vw,170px);
  box-shadow: 0 18px 35px rgba(120,80,30,.12);
}
.support-hero h1 { font-size: clamp(48px,7vw,76px); }
.support-hero p { color: #6f6251; line-height: 1.6; font-size: 17px; }
.support-note { display: block; margin-top: 15px; color: #7c6d59; }
.support-values {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}
.support-values article {
  padding: 22px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 8px 22px rgba(50,65,95,.08);
}
.support-values span { font-size: 35px; }
.support-values h3 { margin: 8px 0 5px; font: 800 21px "Baloo 2"; }
.support-values p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 13px; }

@keyframes gentleOops {
  0%,100% { transform: translateX(0); }
  33% { transform: translateX(-6px); }
  66% { transform: translateX(6px); }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .home-hero,
  .app-landing-hero { grid-template-columns: 1fr; }
  .home-hero-scene { min-height: 300px; }
  .play-now-grid { grid-template-columns: 1fr 1fr; }
  .play-now-grid .catalog-card:first-child { grid-column: 1 / -1; }
  .catalog-grid { grid-template-columns: repeat(3,1fr); }
  .app-landing-hero { min-height: 0; }
  .landing-art { min-height: 340px; }
  .landing-more { grid-template-columns: 1fr; gap: 8px; }
  .memory-board { grid-template-columns: repeat(3,1fr); }
  .sound-choices { grid-template-columns: repeat(2,1fr); }
  .social-grid { grid-template-columns: repeat(3,1fr); }
  .support-values { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 650px) {
  .home-page { gap: 38px; }
  .home-hero { border-radius: 28px; }
  .home-hero-copy { padding: 30px 24px 16px; }
  .home-hero-scene { min-height: 260px; }
  .hero-mascot { width: 130px; height: 130px; font-size: 72px; left: 30%; top: 20%; }
  .hero-key { width: 58px; height: 58px; font-size: 29px; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .play-now-grid,
  .catalog-grid { grid-template-columns: repeat(2,1fr); }
  .play-now-grid .catalog-card:first-child { grid-column: auto; }
  .catalog-art--card,
  .catalog-grid .catalog-art--card { min-height: 120px; }
  .catalog-icon,
  .catalog-grid .catalog-icon { font-size: 50px; }
  .catalog-card-copy,
  .catalog-grid .catalog-card-copy { padding: 12px; }
  .catalog-card h3,
  .catalog-grid .catalog-card h3 { font-size: 17px; }
  .catalog-card p { font-size: 11px; }
  .community-strip { grid-template-columns: 1fr; text-align: center; }
  .community-strip-art { margin: 0 auto; }
  .support-strip { align-items: flex-start; flex-wrap: wrap; }
  .text-cta { margin-left: 50px; }
  .landing-copy { padding: 30px 24px; }
  .rating-panel { align-items: flex-start; flex-direction: column; }
  .memory-board { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .memory-card { min-height: 125px; }
  .memory-card-face b { font-size: 48px; }
  .community-grid { grid-template-columns: 1fr; }
  .community-card--wide { grid-column: auto; }
  .social-grid { grid-template-columns: repeat(2,1fr); }
  .support-hero { grid-template-columns: 1fr; gap: 20px; }
  .support-art { width: 180px; margin: 0 auto; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer .footer-links { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .play-now-grid,
  .catalog-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .catalog-card p { display: none; }
  .catalog-status { font-size: 8px; }
  .memory-board { grid-template-columns: repeat(3,1fr); }
  .memory-card { min-height: 105px; }
  .sound-choice { min-height: 150px; }
  .sound-choice span { font-size: 58px; }
  .support-values { grid-template-columns: 1fr; }
}


/* 003 — mobile menu, voice choice, category pages */

.topbar { position: relative; z-index: 30; gap: 10px; }

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  box-shadow: 0 5px 15px rgba(50,70,100,.1);
  cursor: pointer;
  position: relative;
}
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 3px;
  margin-left: -10px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform .18s ease, opacity .18s ease;
}
.menu-bars { top: 50%; margin-top: -1.5px; }
.menu-bars::before,
.menu-bars::after { content: ""; left: 0; margin-left: 0; }
.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }
.menu-button.is-open .menu-bars { background: transparent; }
.menu-button.is-open .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-button.is-open .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: calc(100% - 2px);
  right: clamp(12px, 4vw, 52px);
  width: min(340px, calc(100vw - 24px));
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 22px 50px rgba(40,55,90,.22);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  text-align: left;
  cursor: pointer;
}
.mobile-menu-link span { width: 28px; text-align: center; font-size: 22px; }
.mobile-menu-link:hover,
.mobile-menu-link:focus-visible { background: #f2f6ff; }
.mobile-menu-link--category { min-height: 44px; font-size: 15px; color: var(--muted); padding-left: 22px; }
.mobile-menu-link--support { color: #b27618; }
.mobile-menu-label {
  margin: 8px 14px 2px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.voice-picker { margin-top: 26px; }
.voice-picker-title {
  font-family: "Baloo 2", cursive;
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 800;
  margin-bottom: 10px;
}
.voice-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 96px));
  gap: 10px;
}
.voice-option {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 12px 6px 10px;
  border: 0;
  border-radius: 22px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 6px 16px rgba(60,60,100,.1);
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.voice-option:hover { transform: translateY(-3px); background: rgba(255,255,255,.88); }
.voice-avatar { font-size: 38px; line-height: 1.1; }
.voice-name { font-weight: 900; font-size: 16px; }
.voice-option small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.voice-option.is-selected { background: white; transform: translateY(-3px); }
.voice-option--girl.is-selected { box-shadow: 0 0 0 4px var(--peach), 0 10px 22px rgba(60,60,100,.16); }
.voice-option--boy.is-selected { box-shadow: 0 0 0 4px var(--blue), 0 10px 22px rgba(60,60,100,.16); }
.voice-option.is-selected::after {
  content: "✓";
  position: absolute;
  top: -8px;
  right: -6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 14px;
  font-weight: 900;
}

.category-jumps button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid rgba(92,131,230,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  color: var(--blue-dark);
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.category-jumps button:hover { transform: translateY(-2px); background: white; }
.category-jumps button span { font-size: 18px; }
.see-all {
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 0 6px 10px;
  white-space: nowrap;
}
.see-all:hover { text-decoration: underline; }

.eyebrow-link {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.eyebrow-link:hover { text-decoration: underline; }

.category-page { display: grid; gap: 40px; }
.category-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  padding: clamp(64px, 7vw, 76px) clamp(26px, 6vw, 68px) clamp(34px, 5vw, 56px);
  border-radius: 40px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.55), transparent 28%),
    linear-gradient(135deg, hsl(var(--game-hue), 80%, 86%), hsl(calc(var(--game-hue) + 50), 75%, 82%));
  box-shadow: var(--shadow);
}
.category-hero .round-back { position: absolute; left: 18px; top: 18px; }
.category-hero-icon {
  width: clamp(110px, 16vw, 170px);
  height: clamp(110px, 16vw, 170px);
  display: grid;
  place-items: center;
  border-radius: 46% 54% 44% 56%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 32px rgba(70,70,100,.16);
  font-size: clamp(58px, 9vw, 92px);
}
.category-hero h1 { font-size: clamp(42px, 7vw, 72px); margin: 4px 0 6px; }
.category-hero p { margin: 0 0 14px; color: #55607a; font-size: clamp(16px, 2vw, 20px); line-height: 1.5; max-width: 620px; }
.category-count {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.category-play-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .menu-button { display: inline-block; }
}

@media (max-width: 650px) {
  .voice-picker { margin-top: 20px; }
  .voice-options { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .voice-avatar { font-size: 32px; }
  .voice-name { font-size: 14px; }
  .category-hero { grid-template-columns: 1fr; text-align: center; border-radius: 28px; }
  .category-hero-icon { margin: 0 auto; }
  .category-hero p { margin-left: auto; margin-right: auto; }
  .category-play-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
}

@media (max-width: 420px) {
  .topbar-actions { gap: 6px; }
  .sound-button, .grownups-button, .menu-button { width: 44px; height: 44px; }
  .voice-option { padding: 10px 2px 8px; border-radius: 18px; }
  .voice-option small { font-size: 9px; letter-spacing: .06em; }
}


/* Shared Language & Typing activity engine */
.activity-screen { max-width: 980px; }
.activity-stage {
  min-height: 310px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: clamp(20px,4vw,38px);
  border-radius: 34px;
  background: linear-gradient(145deg,rgba(255,255,255,.95),rgba(240,247,255,.92));
  box-shadow: var(--shadow);
}
.activity-controls { margin-top: 18px; }
.activity-picture {
  font-size: clamp(84px,14vw,150px);
  line-height: 1;
  filter: drop-shadow(0 10px 18px rgba(50,70,100,.12));
}
.activity-picture--small { font-size: clamp(64px,10vw,100px); }
.activity-word {
  font-family: "Baloo 2";
  font-size: clamp(48px,9vw,84px);
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--ink);
}
.activity-word--spaced { letter-spacing: .18em; }
.activity-word--prompt {
  padding: 10px 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(50,65,95,.1);
}
.choice-grid {
  display: grid;
  gap: 14px;
  width: 100%;
}
.letter-choice-grid { grid-template-columns: repeat(4,minmax(0,1fr)); max-width: 660px; margin: 0 auto; }
.picture-choice-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.activity-choice {
  border: 0;
  border-radius: 26px;
  min-height: 118px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  cursor: pointer;
  font: 900 clamp(36px,6vw,58px) "Baloo 2";
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.activity-choice:hover { transform: translateY(-3px); }
.activity-choice.is-correct,
.letter-chip.is-correct,
.word-chip.is-correct { box-shadow: 0 0 0 6px rgba(82,183,136,.32), var(--shadow); background: #effbf5; }
.activity-choice.is-oops,
.letter-chip.is-oops,
.word-chip.is-oops,
.activity-keyboard .key.is-oops { animation: gentleOops .36s ease; background: #fff1f1; }
.picture-choice span { font-size: clamp(60px,10vw,100px); }
.word-slots,
.phrase-slots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.word-slots span {
  width: clamp(52px,9vw,76px);
  height: clamp(62px,10vw,86px);
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 4px solid #cdd8ea;
  background: #fff;
  box-shadow: 0 6px 0 #e7ebf3;
  font: 900 clamp(34px,6vw,52px) "Baloo 2";
}
.phrase-slots span {
  min-width: 120px;
  min-height: 70px;
  display: grid;
  place-items: center;
  padding: 8px 16px;
  border-radius: 18px;
  border: 4px solid #cdd8ea;
  background: #fff;
  box-shadow: 0 6px 0 #e7ebf3;
  font: 900 clamp(24px,4vw,36px) "Baloo 2";
}
.scramble-bank,
.phrase-bank {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.letter-chip,
.word-chip {
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 0 #cbd3e1;
  color: var(--ink);
  cursor: pointer;
  font: 900 34px "Baloo 2";
  min-width: 70px;
  min-height: 64px;
  padding: 8px 18px;
}
.word-chip { font-size: 26px; min-width: 105px; }
.letter-chip:disabled,
.word-chip:disabled { opacity: .3; transform: translateY(4px); box-shadow: 0 2px 0 #cbd3e1; }
.activity-keyboard { max-width: 900px; margin: 0 auto; }
.activity-keyboard.is-compact .key { flex-basis: 64px; max-height: 60px; }
.simon-display { display: grid; place-items: center; gap: 28px; }
.simon-lights { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; min-height: 86px; }
.simon-lights span {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #edf3ff;
  color: var(--blue-dark);
  font: 900 38px "Baloo 2";
  transition: transform .15s ease, background .15s ease;
}
.simon-lights span.is-demo { background: var(--green); color: #fff; transform: scale(1.12); }
.find-key-prompt { display: grid; place-items: center; gap: 0; }
.find-key-prompt small { color: var(--muted); font-weight: 900; letter-spacing: .18em; }
.find-key-prompt strong { font: 900 clamp(100px,20vw,190px) "Baloo 2"; color: var(--blue-dark); line-height: 1; }
.typing-trail {
  position: relative;
  width: min(640px,100%);
  display: grid;
  grid-template-columns: repeat(6,1fr);
  align-items: center;
  gap: 8px;
  color: #f4c04f;
  font-size: 34px;
  padding: 34px 10px 12px;
}
.typing-trail::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 53px;
  height: 9px;
  border-radius: 999px;
  background: #f7d778;
  z-index: 0;
}
.typing-trail > span { position: relative; z-index: 1; text-align: center; }
.trail-runner {
  position: absolute !important;
  top: 0;
  left: calc((var(--trail-step) * 17%) + 2%);
  font-size: 42px;
  transition: left .4s ease;
}
.activity-listen { width: 135px; height: 135px; }
.activity-listen span { font-size: 48px; }
.activity-finish {
  text-align: center;
  max-width: 520px;
  padding: 22px;
}
.activity-finish > span { font-size: 66px; }
.activity-finish h2 { font-size: clamp(34px,6vw,52px); margin: 6px 0; }
.activity-finish p { color: var(--muted); line-height: 1.5; }

@media (max-width: 700px) {
  .activity-stage { min-height: 260px; padding: 18px 12px; border-radius: 24px; }
  .letter-choice-grid,
  .picture-choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .activity-choice { min-height: 96px; }
  .activity-keyboard { padding: 8px; gap: 5px; border-radius: 22px; }
  .activity-keyboard .keyboard-row { gap: 4px; }
  .activity-keyboard .key { border-radius: 9px; font-size: clamp(15px,4.6vw,22px); }
  .simon-lights span { width: 54px; height: 54px; border-radius: 14px; font-size: 30px; }
  .phrase-slots span { min-width: 92px; }
}
