:root {
  color-scheme: light;
  --ink: #2e2850;
  --muted: #746d91;
  --purple: #6c5ce7;
  --purple-dark: #5142c7;
  --coral: #ff7868;
  --yellow: #ffd55c;
  --mint: #65d6bf;
  --sky: #74c7ff;
  --paper: #fffdf7;
  --card: rgba(255, 255, 255, .88);
  --line: rgba(82, 69, 135, .12);
  --shadow: 0 18px 45px rgba(65, 50, 126, .14);
  --soft-shadow: 0 9px 24px rgba(65, 50, 126, .11);
  --radius: 30px;
  font-family: "Arial Rounded MT Bold", "Nunito", "Trebuchet MS", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 213, 92, .38), transparent 25%),
    radial-gradient(circle at 90% 82%, rgba(116, 199, 255, .35), transparent 30%),
    linear-gradient(145deg, #fff9e9, #fff5f7 48%, #edf7ff);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button, input, select { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 5px solid rgba(108, 92, 231, .25); outline-offset: 3px; }

.app-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.soft-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cloud { position: absolute; width: 140px; height: 52px; border-radius: 999px; background: rgba(255,255,255,.62); filter: blur(.4px); animation: drift 11s ease-in-out infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 64px; height: 64px; left: 20px; top: -26px; }
.cloud::after { width: 76px; height: 76px; right: 18px; top: -34px; }
.cloud-a { left: 4vw; top: 18vh; }
.cloud-b { right: -30px; bottom: 20vh; transform: scale(.8); animation-delay: -4s; }
.star-dot { position: absolute; animation: twinkle 3s ease-in-out infinite; }
.star-dot::before { content: "✦"; font-size: 30px; color: var(--yellow); }
.star-a { right: 16vw; top: 13vh; }
.star-b { left: 12vw; bottom: 18vh; animation-delay: -1.2s; }
.rainbow { position: absolute; width: 280px; height: 140px; right: 7vw; top: 6vh; border-radius: 300px 300px 0 0; opacity: .18; background: radial-gradient(ellipse at bottom, transparent 0 42%, #fff 43% 48%, #65d6bf 49% 56%, #74c7ff 57% 64%, #a68bff 65% 72%, #ff9fb9 73% 80%, transparent 81%); }

.topbar { display: grid; grid-template-columns: 130px 1fr 130px; align-items: center; gap: 10px; min-height: 58px; z-index: 5; }
.brand-mini { justify-self: center; text-align: center; line-height: 1; }
.brand-mini span { display: block; color: var(--purple); font-size: clamp(20px, 2.4vw, 29px); font-weight: 1000; letter-spacing: -.6px; }
.brand-mini small { color: var(--muted); font-size: 11px; letter-spacing: .5px; }
.top-actions { justify-self: end; display: flex; gap: 8px; }
.icon-btn { width: 50px; height: 50px; border-radius: 18px; display: grid; place-items: center; font-size: 22px; background: rgba(255,255,255,.8); box-shadow: var(--soft-shadow); transition: transform .16s ease, background .16s ease; }
.icon-btn:active, .primary-btn:active, .secondary-btn:active, .theme-island:active, .choice-card:active { transform: scale(.95); }

.stage { width: min(1180px, 100%); margin: 0 auto; min-height: 0; display: grid; align-items: center; }
.screen { width: 100%; min-height: min(700px, calc(100dvh - 145px)); display: grid; align-content: center; gap: clamp(12px, 2vh, 22px); animation: screenIn .32s cubic-bezier(.2,.8,.2,1); }

.reward-bar { min-height: 34px; display: flex; justify-content: center; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.stars { min-width: 30px; display: flex; gap: 2px; }
.trail-star { color: var(--yellow); text-shadow: 0 2px 0 #eba92f; animation: starPop .35s both; animation-delay: calc(var(--i) * 35ms); }

.journey-home { align-content: start; padding-top: clamp(8px, 2vh, 22px); }
.journey-hero { min-height: 270px; border-radius: 38px; padding: clamp(20px, 3vw, 38px); display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; overflow: hidden; position: relative; background: linear-gradient(125deg, #6658df, #8776f2 58%, #ae9cff); color: white; box-shadow: 0 24px 55px rgba(74, 58, 176, .25); }
.journey-hero::before { content: ""; position: absolute; width: 300px; height: 300px; right: -70px; top: -150px; border-radius: 50%; border: 38px solid rgba(255,255,255,.09); }
.journey-hero::after { content: "✦"; position: absolute; left: 52%; top: 30px; color: var(--yellow); font-size: 36px; animation: twinkle 2.8s infinite; }
.hero-copy { z-index: 1; max-width: 640px; }
.eyebrow, .section-kicker { font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 900; opacity: .86; }
.hero-copy h1 { margin: 5px 0 4px; font-size: clamp(42px, 6vw, 72px); line-height: .94; letter-spacing: -3px; }
.hero-copy h1 em { color: var(--yellow); font-style: normal; }
.hero-copy p { margin: 8px 0 20px; font-size: clamp(15px, 2vw, 20px); font-family: "Trebuchet MS", Arial, sans-serif; }
.tina-hero { justify-self: center; align-self: end; width: clamp(175px, 24vw, 275px); height: 245px; padding: 0; background: transparent; position: relative; z-index: 1; }
.tina-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; border-radius: 42% 42% 28px 28px; border: 8px solid rgba(255,255,255,.22); box-shadow: 0 18px 35px rgba(45,34,117,.3); }
.speech-pop { position: absolute; right: -6px; top: 4px; padding: 10px 15px; border-radius: 18px 18px 18px 4px; color: var(--purple); background: white; box-shadow: var(--soft-shadow); transform: rotate(3deg); animation: happyFloat 2.5s ease-in-out infinite; }

.primary-btn, .secondary-btn { min-height: 64px; border-radius: 22px; padding: 13px 25px; font-weight: 1000; font-size: clamp(17px, 2.2vw, 23px); display: inline-flex; align-items: center; justify-content: center; gap: 12px; transition: transform .16s ease, box-shadow .16s ease; }
.primary-btn { background: linear-gradient(180deg, #ffd968, #ffc945); color: #4b3b1b; box-shadow: 0 8px 0 #e5a82a, 0 14px 26px rgba(63,41,114,.2); }
.primary-btn small { display: block; font-size: 11px; font-weight: 800; opacity: .7; text-align: left; }
.learn-next { min-width: 300px; justify-content: flex-start; }
.learn-next > span:first-child { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: white; color: var(--coral); }
.secondary-btn { background: white; color: var(--purple); box-shadow: var(--soft-shadow); }

.journey-heading { display: flex; align-items: end; justify-content: space-between; padding: 4px 8px 0; }
.journey-heading h2 { margin: 1px 0; font-size: clamp(22px, 3vw, 32px); }
.journey-heading .section-kicker { color: var(--coral); }
.path-dots { display: flex; gap: 7px; padding-bottom: 8px; }
.path-dots span { width: 22px; height: 8px; border-radius: 20px; background: #dedbea; }
.path-dots span.done { background: var(--purple); }
.theme-map { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 1.5vw, 16px); }
.theme-island { min-height: 130px; padding: 14px 8px 12px; border-radius: 28px; display: grid; place-items: center; align-content: center; gap: 5px; position: relative; overflow: hidden; background: var(--card); box-shadow: var(--soft-shadow); border: 2px solid rgba(255,255,255,.8); transition: transform .18s ease, box-shadow .18s ease; }
.theme-island::before { content: ""; position: absolute; inset: auto -15% -48% -15%; height: 85%; border-radius: 50%; background: var(--theme); opacity: .18; }
.theme-island.is-unlocked:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.theme-island.is-locked { filter: grayscale(.8); opacity: .58; }
.island-icon { font-size: clamp(30px, 4vw, 47px); filter: drop-shadow(0 5px 5px rgba(50,38,96,.12)); }
.island-name { font-size: clamp(12px, 1.4vw, 16px); font-weight: 900; z-index: 1; }
.island-progress { font-size: 11px; background: rgba(255,255,255,.8); padding: 3px 9px; border-radius: 99px; z-index: 1; color: var(--muted); }

.lesson-intro { justify-items: center; text-align: center; }
.lesson-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 99px; background: color-mix(in srgb, var(--theme, var(--purple)) 16%, white); color: color-mix(in srgb, var(--theme, var(--purple)) 72%, #2e2850); font-weight: 900; }
.lesson-intro h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); }
.intro-word-row { width: min(820px, 92%); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); }
.word-preview { aspect-ratio: 1; border-radius: 34px; padding: 0; overflow: hidden; position: relative; background: white; box-shadow: var(--shadow); border: 6px solid white; transition: transform .18s ease, border-color .18s ease; }
.word-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.word-preview.is-heard { border-color: var(--yellow); transform: translateY(-5px) rotate(-1deg); }
.speaker-dot { position: absolute; right: 12px; bottom: 12px; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: white; box-shadow: var(--soft-shadow); }
.lesson-route { display: flex; align-items: center; justify-content: center; gap: 14px; }
.lesson-route span { width: 54px; height: 54px; display: grid; place-items: center; position: relative; border-radius: 18px; background: white; box-shadow: var(--soft-shadow); font-size: 25px; }
.lesson-route span::after { content: ""; width: 14px; height: 4px; border-radius: 4px; background: #d8d4e8; position: absolute; left: calc(100% + 1px); }
.lesson-route span:last-child::after { display: none; }
.lesson-route small { position: absolute; top: -6px; right: -5px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--purple); font-size: 10px; }
.start-lesson { min-width: 245px; }

.activity-screen { align-content: start; padding-top: 4px; }
.activity-top { display: grid; grid-template-columns: 160px 1fr 160px; align-items: center; }
.lesson-mini { justify-self: start; padding: 8px 14px; border-radius: 99px; background: white; box-shadow: var(--soft-shadow); font-size: 13px; font-weight: 900; }
.activity-dots { justify-self: center; display: flex; gap: 8px; }
.activity-dots span { width: 34px; height: 9px; border-radius: 9px; background: #dedbea; transition: background .2s, transform .2s; }
.activity-dots span.done { background: var(--mint); }
.activity-dots span.active { background: var(--purple); transform: scaleX(1.2); }
.replay-voice { justify-self: end; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 22px; font-size: 28px; color: white; background: linear-gradient(145deg, #7d6cf0, #5848cf); box-shadow: 0 8px 0 #493bb4, var(--soft-shadow); }
.activity-title { text-align: center; display: grid; grid-template-columns: auto auto auto; align-items: center; justify-content: center; gap: 10px; min-height: 56px; }
.activity-title > span { font-size: 32px; }
.activity-title h2 { margin: 0; font-size: clamp(24px, 3.5vw, 38px); }
.activity-title small { padding: 5px 10px; border-radius: 99px; background: white; color: var(--muted); }

.explore-grid, .choice-grid { width: min(910px, 96%); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 28px); align-items: center; }
.explore-card, .choice-card { aspect-ratio: 1.04; padding: 0; position: relative; overflow: hidden; border-radius: 36px; background: white; box-shadow: var(--shadow); border: 6px solid rgba(255,255,255,.95); transition: transform .18s ease, border-color .18s ease, filter .18s ease; }
.explore-card img, .choice-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.explore-card:hover, .choice-card:hover { transform: translateY(-5px); }
.explore-card.is-heard { border-color: var(--mint); animation: correctPop .45s; }
.sound-ring { position: absolute; right: 12px; bottom: 12px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: white; box-shadow: var(--soft-shadow); }
.touch-meter, .round-pips { justify-self: center; display: flex; gap: 10px; }
.touch-meter span, .round-pips span { width: 16px; height: 16px; border-radius: 50%; background: #d9d6e6; }
.touch-meter span.done, .round-pips span.done { background: var(--mint); }
.round-pips span.active { background: var(--purple); box-shadow: 0 0 0 6px rgba(108,92,231,.12); }

.choice-grid.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(650px, 90%); }
.choice-card.is-wrong { animation: gentleShake .36s; filter: saturate(.65); }
.choice-card.is-correct { border-color: var(--mint); animation: correctPop .5s; }
.choice-card.is-hint { border-color: var(--yellow); animation: hintPulse .9s infinite; }
.choice-card:disabled { cursor: default; }
.choice-glow { position: absolute; inset: auto 22% 9px; height: 9px; border-radius: 50%; background: rgba(71,52,139,.12); filter: blur(5px); }
.kind-helper { height: 28px; text-align: center; color: var(--coral); font-weight: 900; }

.seek-activity .choice-card { background: linear-gradient(#dff5ff 0 58%, #b7e6c0 58%); }
.seek-activity .choice-scene::after { content: "🌿"; position: absolute; inset: auto -5px -18px; height: 44%; display: grid; place-items: center; font-size: 90px; z-index: 2; filter: drop-shadow(0 -6px 5px rgba(56,117,72,.15)); }
.seek-activity .choice-card img { transform: translateY(23%); transition: transform .25s; }
.seek-activity .choice-card:hover img, .seek-activity .choice-card.is-hint img { transform: translateY(8%); }
.choice-scene { position: absolute; inset: 0; display: block; }
.bubbles-activity .choice-card { border-radius: 50%; aspect-ratio: 1; box-shadow: inset 0 0 0 8px rgba(255,255,255,.75), 0 16px 36px rgba(68,54,134,.16); }
.bubbles-activity .choice-card img { animation: bubbleFloat 2.8s ease-in-out infinite; }
.bubbles-activity .choice-card:nth-child(2) img { animation-delay: -.8s; }
.bubbles-activity .choice-card:nth-child(3) img { animation-delay: -1.6s; }
.shadow-activity .choice-card img { filter: brightness(0) opacity(.78); transform: scale(.82); }
.shadow-activity .choice-card.is-correct img, .shadow-activity .choice-card.is-hint img { filter: none; }
.same-activity .choice-card:nth-child(2) img { transform: scale(.88) rotate(-2deg); }
.same-activity .choice-card:nth-child(3) img { transform: scale(1.06) rotate(2deg); }
.flight-activity .choice-grid { position: relative; padding-left: 92px; }
.flight-activity .choice-grid::before { content: "🐤"; position: absolute; left: 4px; top: 40%; font-size: 64px; filter: drop-shadow(0 8px 6px rgba(60,48,110,.18)); animation: birdFly 1.1s ease-in-out infinite; }
.flight-activity .choice-card { border-radius: 50% 50% 42% 42%; background: #e6f7ff; }
.flight-activity .choice-card::before { content: "☁️"; position: absolute; left: -8px; top: -5px; font-size: 45px; z-index: 2; }
.match-preview { width: 116px; height: 116px; margin: -8px auto 2px; padding: 5px; border: 5px solid var(--yellow); border-radius: 26px; background: white; box-shadow: var(--soft-shadow); transform: rotate(-3deg); }
.match-preview img { width: 100%; height: 100%; border-radius: 17px; object-fit: cover; }

.rhythm-stage { width: min(900px, 94%); margin: auto; border-radius: 38px; padding: 25px; background: linear-gradient(145deg, #44388b, #6f5bdb); box-shadow: var(--shadow); }
.beat-orbit { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; }
.beat-orbit span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: rgba(255,255,255,.35); background: rgba(255,255,255,.1); }
.beat-orbit span.active { color: var(--yellow); box-shadow: 0 0 0 8px rgba(255,213,92,.13); animation: beat .7s infinite; }
.beat-orbit span.done { color: white; background: var(--mint); }
.rhythm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rhythm-grid button { aspect-ratio: 1.08; padding: 0; overflow: hidden; border-radius: 30px; position: relative; background: white; border: 5px solid white; transition: transform .16s; }
.rhythm-grid button img { width: 100%; height: 100%; object-fit: cover; }
.rhythm-grid button span { position: absolute; right: 10px; bottom: 8px; font-size: 28px; color: var(--purple); }
.rhythm-grid button.is-correct { border-color: var(--mint); transform: scale(.96); }
.rhythm-grid button.is-wrong { animation: gentleShake .35s; }

.memory-cards { width: min(860px, 94%); margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.8vw, 20px); perspective: 1200px; }
.memory-cards.count-8 { grid-template-columns: repeat(4, 1fr); }
.memory-card { aspect-ratio: 1.04; padding: 0; border-radius: 28px; position: relative; transform-style: preserve-3d; transition: transform .42s cubic-bezier(.2,.8,.2,1), opacity .2s; background: transparent; }
.card-back, .card-face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 28px; backface-visibility: hidden; overflow: hidden; box-shadow: var(--soft-shadow); }
.card-back { color: white; font-size: clamp(38px, 6vw, 72px); background: linear-gradient(145deg, #7564ec, #5142c7); border: 6px solid rgba(255,255,255,.18); }
.card-back::after { content: "✦"; position: absolute; right: 15px; top: 9px; color: var(--yellow); font-size: 22px; }
.card-face { transform: rotateY(180deg); background: white; border: 6px solid white; }
.card-face img { width: 100%; height: 100%; object-fit: cover; }
.memory-card.revealed, .memory-card.matched { transform: rotateY(180deg); }
.memory-card.matched { opacity: .55; }

.lesson-complete { justify-items: center; text-align: center; }
.complete-sun { width: 105px; height: 105px; display: grid; place-items: center; border-radius: 50%; color: white; font-size: 62px; background: linear-gradient(#ffd968, #ffb93e); box-shadow: 0 0 0 16px rgba(255,213,92,.18), var(--shadow); animation: starPop .6s both; }
.lesson-complete h1 { margin: 0; font-size: clamp(36px, 6vw, 68px); color: var(--purple); }
.complete-words { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.complete-words > div { width: 100px; height: 100px; position: relative; border-radius: 25px; overflow: hidden; border: 5px solid white; box-shadow: var(--soft-shadow); }
.complete-words img { width: 100%; height: 100%; object-fit: cover; }
.complete-words span { position: absolute; right: 3px; bottom: 3px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--mint); }
.complete-actions { display: flex; gap: 14px; }

.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 18px; background: rgba(39,31,72,.46); backdrop-filter: blur(8px); }
.modal.hidden { display: none; }
.modal-card { width: min(610px, 96vw); max-height: 92vh; overflow: auto; border-radius: 34px; padding: 28px; position: relative; background: var(--paper); box-shadow: 0 30px 90px rgba(35,27,75,.35); }
.modal-card h2 { margin: 0 0 15px; color: var(--purple); font-size: 28px; }
.close-btn { position: absolute; right: 16px; top: 14px; width: 44px; height: 44px; border-radius: 16px; font-size: 27px; background: #eeeaf8; }
.setting-row { min-height: 54px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 11px 3px; border-bottom: 1px solid var(--line); font-weight: 800; }
.setting-row select { min-height: 42px; max-width: 260px; border: 1px solid var(--line); border-radius: 13px; padding: 0 12px; color: var(--ink); background: white; }
.setting-row input { width: 26px; height: 26px; accent-color: var(--purple); }
.parent-report { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.parent-report > div { border-radius: 18px; padding: 14px; background: #f1eefb; }
.parent-report span { display: block; font-size: 12px; color: var(--muted); }
.parent-report strong { display: block; margin-top: 5px; color: var(--purple); line-height: 1.3; }
.wide-btn { width: 100%; min-height: 54px; border-radius: 17px; padding: 10px; font-weight: 900; }
.wide-btn.secondary { color: #a13f58; background: #ffe6ec; }
.parent-note { font-family: "Trebuchet MS", Arial, sans-serif; color: var(--muted); font-size: 13px; line-height: 1.45; }

.eye-break { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: linear-gradient(145deg, #6757df, #79c9f8); }
.eye-break-card { width: min(540px, 90vw); padding: 36px; text-align: center; border-radius: 38px; background: white; box-shadow: var(--shadow); }
.break-face { font-size: 90px; animation: happyFloat 2s infinite; }
.eye-break-card h2 { font-size: 32px; color: var(--purple); }
.eye-break-card p { color: var(--muted); font-family: "Trebuchet MS", Arial, sans-serif; font-size: 18px; }
.celebration { position: fixed; inset: 0; z-index: 50; pointer-events: none; display: grid; place-items: center; }
.celebration.hidden { display: none; }
.celebration-particles { position: absolute; inset: 0; overflow: hidden; }
.star-friend { font-size: 120px; animation: starPop .8s both; }
.celebration p { padding: 12px 24px; border-radius: 99px; color: var(--purple); background: white; box-shadow: var(--shadow); font-size: 25px; font-weight: 900; }
.rotate-overlay { display: none; position: fixed; inset: 0; z-index: 100; place-items: center; align-content: center; gap: 10px; text-align: center; color: white; background: var(--purple); }
.rotate-overlay div { font-size: 90px; }
.rotate-overlay p { font-size: 24px; }

@keyframes screenIn { from { opacity: 0; transform: translateY(10px) scale(.99); } }
@keyframes drift { 50% { transform: translate(24px, -10px); } }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.78) rotate(12deg); } }
@keyframes happyFloat { 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes starPop { from { opacity: 0; transform: scale(.2) rotate(-30deg); } 70% { transform: scale(1.14) rotate(5deg); } }
@keyframes correctPop { 50% { transform: scale(1.06) rotate(1deg); } }
@keyframes gentleShake { 25% { transform: translateX(-8px); } 50% { transform: translateX(7px); } 75% { transform: translateX(-4px); } }
@keyframes hintPulse { 50% { transform: scale(1.035); box-shadow: 0 0 0 12px rgba(255,213,92,.22), var(--shadow); } }
@keyframes bubbleFloat { 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes birdFly { 50% { transform: translateY(-14px) rotate(-5deg); } }
@keyframes beat { 50% { transform: scale(1.16); } }

@media (max-width: 900px) {
  .journey-hero { min-height: 230px; }
  .tina-hero { height: 205px; }
  .theme-map { grid-template-columns: repeat(3, 1fr); }
  .theme-island { min-height: 105px; }
  .journey-home { gap: 10px; }
  .explore-grid, .choice-grid { width: min(780px, 96%); }
}

@media (max-height: 690px) and (orientation: landscape) {
  .app-shell { padding-top: 8px; padding-bottom: 6px; }
  .topbar { min-height: 48px; }
  .icon-btn { width: 44px; height: 44px; border-radius: 15px; }
  .screen { min-height: calc(100dvh - 112px); gap: 8px; }
  .journey-hero { min-height: 190px; padding: 18px 28px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-copy p { margin: 4px 0 11px; font-size: 14px; }
  .learn-next { min-height: 54px; }
  .tina-hero { height: 170px; width: 185px; }
  .theme-island { min-height: 88px; border-radius: 22px; padding: 8px; }
  .island-icon { font-size: 31px; }
  .journey-heading h2 { font-size: 22px; }
  .intro-word-row { width: min(670px, 88%); }
  .word-preview { border-radius: 26px; }
  .lesson-route span { width: 44px; height: 44px; font-size: 21px; }
  .activity-title { min-height: 44px; }
  .activity-title h2 { font-size: 26px; }
  .replay-voice { width: 52px; height: 52px; }
  .explore-grid, .choice-grid { width: min(680px, 88%); gap: 14px; }
  .explore-card, .choice-card { border-radius: 28px; }
  .rhythm-stage { padding: 15px; width: min(720px, 86%); }
  .memory-cards { width: min(690px, 86%); }
  .reward-bar { min-height: 22px; }
  .complete-sun { width: 72px; height: 72px; font-size: 45px; }
  .lesson-complete h1 { font-size: 42px; }
  .complete-words > div { width: 78px; height: 78px; }
}

@media (orientation: portrait) and (max-width: 760px) {
  .rotate-overlay { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
