:root {
  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --ink: #26342f;
  --muted: #6c766f;
  --cream: #fffaf0;
  --sand: #fff1c8;
  --yellow: #f6c84f;
  --orange: #ee8538;
  --green: #4f8b67;
  --green-dark: #32624a;
  --sky: #85cde0;
  --blue: #4f7faa;
  --pink: #ea7990;
  --white: #ffffff;
  --line: rgba(38, 52, 47, 0.12);
  --violet: #9c7bc3;
  --leaf-light: #b9d782;
  --peach: #ffbb82;
  --shadow: 0 25px 65px rgba(72, 73, 43, 0.16), 0 7px 0 rgba(125, 99, 48, 0.05);
  --soft-shadow: 0 13px 30px rgba(72, 73, 43, 0.11), 0 4px 0 rgba(125, 99, 48, 0.045);
  --cartoon-edge: rgba(255, 255, 255, 0.78);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--sand);
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 8%, rgba(255, 255, 255, 0.94), transparent 25rem),
    radial-gradient(circle at 92% 18%, rgba(133, 205, 224, 0.2), transparent 25rem),
    radial-gradient(circle at 78% 92%, rgba(238, 133, 56, 0.16), transparent 27rem),
    linear-gradient(150deg, #fffaf0 0%, #fff1c7 55%, #f5d99d 100%);
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
  filter: blur(1px);
}

body::before {
  top: 16%;
  left: -90px;
  width: 210px;
  height: 310px;
  border-radius: 43% 57% 63% 37% / 57% 38% 62% 43%;
  background: rgba(185, 215, 130, 0.25);
  animation: ambient-blob-left 11s ease-in-out infinite alternate;
}

body::after {
  right: -110px;
  bottom: 6%;
  width: 280px;
  height: 230px;
  border-radius: 66% 34% 42% 58% / 48% 62% 38% 52%;
  background: rgba(234, 121, 144, 0.13);
  animation: ambient-blob-right 13s ease-in-out infinite alternate;
}

@keyframes ambient-blob-left {
  to { transform: translate(24px, -18px) rotate(6deg); }
}

@keyframes ambient-blob-right {
  to { transform: translate(-18px, 16px) rotate(-7deg); }
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 4px solid rgba(79, 127, 170, 0.35);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 12px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.kids-shell {
  width: min(1180px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(14px + var(--safe-top)) clamp(16px, 3vw, 34px) calc(22px + var(--safe-bottom));
}

.kids-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 16px;
}

.audio-review-note {
  width: fit-content;
  margin: 0 0 12px;
  padding: 7px 11px;
  border: 1px solid rgba(79, 127, 170, 0.22);
  border-radius: 999px;
  color: #355f82;
  background: rgba(231, 244, 250, 0.9);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.beta-badge {
  width: fit-content;
  margin: 0 0 12px;
  padding: 7px 12px;
  border: 2px solid rgba(79, 139, 103, 0.2);
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.mini-brand > span:last-child {
  display: grid;
  line-height: 1.08;
}

.mini-brand strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.mini-brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.brand-sun {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 4px 12px rgba(174, 126, 36, 0.24);
}

.brand-sun::before,
.brand-sun::after {
  position: absolute;
  inset: 9px;
  content: "";
  border-radius: 50%;
  border: 2px solid rgba(102, 75, 17, 0.5);
}

.brand-sun::after {
  inset: 15px 8px 7px;
  border-width: 0 0 2px;
  border-radius: 0 0 50% 50%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.round-button,
.age-badge,
.star-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 48% 52% 45% 55% / 55% 46% 54% 45%;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 7px 18px rgba(96, 83, 50, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.round-button {
  border: 1px solid rgba(38, 52, 47, 0.08);
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
}

.round-button:hover {
  transform: translateY(-1px);
  background: var(--white);
}

.sound-button[aria-pressed="true"] {
  color: var(--green-dark);
  background: #eaf3dc;
}

.sound-button[aria-pressed="false"] {
  color: var(--muted);
}

.star-counter {
  gap: 5px;
  min-width: 70px;
  padding: 0 12px;
}

.age-badge {
  min-width: 58px;
  gap: 3px;
  padding: 0 9px;
  color: var(--green-dark);
}

.age-badge strong {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.age-badge span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.star-counter span {
  color: #e5a51d;
  font-size: 1.2rem;
}

.star-counter strong {
  font-variant-numeric: tabular-nums;
}

main {
  min-height: calc(100dvh - 98px - var(--safe-top) - var(--safe-bottom));
}

.game-screen {
  width: 100%;
  min-height: calc(100dvh - 108px - var(--safe-top) - var(--safe-bottom));
  animation: screen-in 360ms ease both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-screen {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: clamp(30px, 6vw, 86px);
  padding: clamp(24px, 5vh, 60px) 0 30px;
}

.welcome-copy {
  position: relative;
  z-index: 2;
  padding-left: clamp(0px, 2vw, 24px);
}

.eyebrow,
.challenge-kicker {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  text-wrap: balance;
}

.welcome-copy h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(2.75rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.welcome-lead {
  max-width: 580px;
  margin-bottom: 30px;
  color: #55615b;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.55;
}

.big-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 24px;
  border: 0;
  border-radius: 26px 32px 25px 34px / 28px 24px 32px 26px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.big-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.big-button:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}

.big-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(145deg, #4d8a67, var(--green-dark));
  box-shadow: 0 13px 28px rgba(50, 98, 74, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.16), inset 0 -4px 0 rgba(18, 55, 39, 0.2);
}

.quiet-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.welcome-feedback-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  width: min(430px, 100%);
  min-height: 62px;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 2px solid rgba(79, 139, 103, 0.24);
  border-radius: 23px 29px 22px 27px / 27px 22px 29px 23px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(50, 98, 74, 0.1);
  text-align: left;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.welcome-feedback-button > span:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: var(--green);
  font-size: 1.15rem;
  font-weight: 950;
}

.welcome-feedback-button > span:nth-child(2) {
  display: grid;
}

.welcome-feedback-button strong {
  font-size: 0.92rem;
}

.welcome-feedback-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
}

.welcome-feedback-button em {
  color: var(--green-dark);
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 950;
}

.welcome-feedback-button:hover {
  border-color: rgba(79, 139, 103, 0.5);
  background: var(--white);
  transform: translateY(-2px);
}

.steppe-scene {
  position: relative;
  min-height: min(600px, 68vh);
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.76);
  border-radius: 43% 57% 49% 51% / 10% 13% 10% 12%;
  background:
    radial-gradient(circle at 18% 83%, rgba(255, 255, 255, 0.26) 0 4px, transparent 5px),
    radial-gradient(circle at 23% 76%, rgba(255, 255, 255, 0.2) 0 3px, transparent 4px),
    linear-gradient(180deg, #83d1e5 0%, #cceee8 49%, #f0d47f 49.5%, #e8b958 100%);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.steppe-scene::after {
  position: absolute;
  right: -8%;
  bottom: -23%;
  z-index: -1;
  width: 76%;
  height: 48%;
  content: "";
  border-radius: 50%;
  background: rgba(72, 126, 75, 0.44);
  transform: rotate(-6deg);
}

.scene-sun,
.map-sun {
  position: absolute;
  top: 9%;
  right: 11%;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffd957;
  box-shadow: 0 0 0 18px rgba(255, 225, 105, 0.22), 0 0 0 38px rgba(255, 225, 105, 0.12);
  animation: sun-breathe 4.5s ease-in-out infinite;
}

@keyframes sun-breathe {
  50% { transform: scale(1.07); box-shadow: 0 0 0 25px rgba(255, 225, 105, 0.2), 0 0 0 48px rgba(255, 225, 105, 0.08); }
}

.scene-cloud {
  position: absolute;
  width: 104px;
  height: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
}

.scene-cloud::before,
.scene-cloud::after {
  position: absolute;
  bottom: 0;
  content: "";
  border-radius: 50%;
  background: inherit;
}

.scene-cloud::before { left: 18px; width: 44px; height: 44px; }
.scene-cloud::after { right: 15px; width: 55px; height: 55px; }
.cloud-one { top: 24%; left: 9%; transform: scale(0.8); }
.cloud-two { top: 13%; left: 34%; transform: scale(0.55); opacity: 0.72; }

.cloud-one { animation: cloud-drift-one 15s ease-in-out infinite alternate; }
.cloud-two { animation: cloud-drift-two 20s ease-in-out infinite alternate; }

@keyframes cloud-drift-one { to { transform: translateX(58px) scale(0.84); } }
@keyframes cloud-drift-two { to { transform: translateX(-44px) translateY(9px) scale(0.58); } }

.hill {
  position: absolute;
  bottom: -18%;
  border-radius: 50% 50% 0 0;
  transform: rotate(-4deg);
}

.hill-back {
  left: -24%;
  z-index: -1;
  width: 90%;
  height: 49%;
  background: #8cae66;
  animation: hill-breathe-back 8s ease-in-out infinite alternate;
}

.hill-front {
  right: -32%;
  z-index: -1;
  width: 110%;
  height: 45%;
  background: #6d955a;
  transform: rotate(5deg);
  animation: hill-breathe-front 10s ease-in-out infinite alternate;
}

@keyframes hill-breathe-back { to { transform: rotate(-2deg) translateX(12px); } }
@keyframes hill-breathe-front { to { transform: rotate(3deg) translateX(-10px); } }

.saiga {
  position: absolute;
  z-index: 4;
}

.saiga-large {
  right: 13%;
  bottom: 13%;
  width: 240px;
  height: 285px;
}

.saiga-head {
  position: absolute;
  top: 36px;
  left: 72px;
  z-index: 3;
  width: 118px;
  height: 145px;
  border: 5px solid #5f4d31;
  border-radius: 55% 55% 48% 48%;
  background: #d4a95c;
  transform: rotate(5deg);
}

.saiga-head::before,
.saiga-head::after {
  position: absolute;
  top: 17px;
  width: 42px;
  height: 25px;
  content: "";
  border: 4px solid #5f4d31;
  background: #d4a95c;
}

.saiga-head::before { left: -31px; border-radius: 80% 10% 70% 10%; transform: rotate(16deg); }
.saiga-head::after { right: -31px; border-radius: 10% 80% 10% 70%; transform: rotate(-16deg); }

.saiga-horn {
  position: absolute;
  top: 2px;
  z-index: 2;
  width: 14px;
  height: 74px;
  border: 4px solid #5f4d31;
  border-bottom: 0;
  border-radius: 70% 70% 10% 10%;
  background: #f1d49d;
}

.saiga-horn.left { left: 92px; transform: rotate(-10deg); }
.saiga-horn.right { left: 150px; transform: rotate(10deg); }

.eye {
  position: absolute;
  top: 51px;
  width: 12px;
  height: 16px;
  border-radius: 50%;
  background: #25332e;
  box-shadow: inset 3px 2px 0 rgba(255, 255, 255, 0.7);
}

.eye.left { left: 23px; }
.eye.right { right: 23px; }

.nose {
  position: absolute;
  bottom: 17px;
  left: 50%;
  width: 48px;
  height: 41px;
  border: 4px solid #5f4d31;
  border-radius: 50% 50% 60% 60%;
  background: #b88e52;
  transform: translateX(-50%);
}

.nose::after {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 18px;
  height: 7px;
  content: "";
  border-bottom: 3px solid #5f4d31;
  border-radius: 50%;
  transform: translateX(-50%);
}

.saiga-body {
  position: absolute;
  bottom: 26px;
  left: 25px;
  z-index: 1;
  width: 190px;
  height: 120px;
  border: 5px solid #5f4d31;
  border-radius: 55% 60% 42% 45%;
  background: #c69751;
}

.saiga-leg {
  position: absolute;
  bottom: 0;
  z-index: 0;
  width: 24px;
  height: 73px;
  border: 5px solid #5f4d31;
  border-radius: 10px;
  background: #b98a49;
}

.leg-one { left: 58px; }
.leg-two { right: 55px; }

.tulip {
  position: absolute;
  bottom: 15%;
  z-index: 6;
  width: 5px;
  height: 55px;
  border-radius: 6px;
  background: #3d744e;
}

.tulip::before {
  position: absolute;
  top: -20px;
  left: -11px;
  width: 26px;
  height: 28px;
  content: "";
  border-radius: 50% 50% 45% 45%;
  background: #e86164;
  clip-path: polygon(0 0, 50% 32%, 100% 0, 86% 100%, 14% 100%);
}

.tulip-one { left: 14%; transform: rotate(-7deg); }
.tulip-two { left: 28%; bottom: 9%; transform: scale(0.78) rotate(8deg); }

.tulip-one { transform-origin: bottom; animation: tulip-sway-one 2.8s ease-in-out infinite alternate; }
.tulip-two { transform-origin: bottom; animation: tulip-sway-two 3.3s ease-in-out infinite alternate; }

@keyframes tulip-sway-one { to { transform: rotate(8deg); } }
@keyframes tulip-sway-two { to { transform: scale(0.78) rotate(-7deg); } }

.mascot-canvas {
  display: block;
  background: transparent;
}

.character-rig {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: transparent;
  pointer-events: none;
  transform-origin: 50% 100%;
}

.character-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  user-select: none;
  -webkit-user-drag: none;
}

.character-body {
  z-index: 1;
}

.character-hand {
  z-index: 2;
  will-change: transform;
}

.character-hand-girl {
  transform-origin: 12% 36%;
}

.character-hand-boy {
  transform-origin: 90% 39.5%;
}

.character-rig[data-pose="wave"] .character-hand-girl {
  animation: girl-hand-wave 820ms cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
}

.character-rig[data-pose="wave"] .character-hand-boy {
  animation: boy-hand-wave 920ms cubic-bezier(0.37, 0, 0.63, 1) -310ms infinite alternate;
}

.character-rig[data-pose="talk"] .character-hand-girl {
  animation: girl-hand-talk 1.25s ease-in-out infinite alternate;
}

.character-rig[data-pose="celebrate"] .character-hand-girl {
  animation: girl-hand-celebrate 560ms ease-in-out infinite alternate;
}

.character-rig[data-pose="celebrate"] .character-hand-boy {
  animation: boy-hand-celebrate 610ms ease-in-out -220ms infinite alternate;
}

@keyframes girl-hand-wave {
  from { transform: rotate(-7deg); }
  to { transform: rotate(8deg); }
}

@keyframes boy-hand-wave {
  from { transform: rotate(7deg); }
  to { transform: rotate(-7deg); }
}

@keyframes girl-hand-talk {
  from { transform: rotate(-2deg); }
  to { transform: rotate(4deg); }
}

@keyframes girl-hand-celebrate {
  from { transform: rotate(-10deg); }
  to { transform: rotate(11deg); }
}

@keyframes boy-hand-celebrate {
  from { transform: rotate(10deg); }
  to { transform: rotate(-11deg); }
}

.mascot-hero {
  position: absolute;
  right: 2%;
  bottom: 0;
  z-index: 5;
  width: min(58%, 360px);
  filter: drop-shadow(0 16px 12px rgba(63, 67, 38, 0.18));
  animation: mascot-hero-float 3.8s ease-in-out infinite;
}

.mascot-hero::before {
  position: absolute;
  inset: 11% 7% 5%;
  z-index: 0;
  content: "";
  border-radius: 48%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 72%);
}

.mascot-hero::after {
  position: absolute;
  right: 14%;
  bottom: 3%;
  left: 16%;
  z-index: 0;
  height: 4%;
  content: "";
  border-radius: 50%;
  background: rgba(42, 79, 46, 0.2);
  filter: blur(5px);
}

@keyframes mascot-hero-float {
  50% { transform: rotate(0.3deg) scale(1.004); }
}

.age-screen {
  display: grid;
  align-content: center;
  padding: 32px 0 60px;
}

.screen-nav {
  position: sticky;
  top: max(8px, var(--safe-top));
  z-index: 24;
  display: flex;
  width: min(760px, 100%);
  justify-content: flex-start;
  margin: 0 auto 14px;
  pointer-events: none;
}

.screen-nav-wide {
  width: min(980px, 100%);
}

.screen-back-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 2px solid rgba(50, 98, 74, 0.16);
  border-radius: 22px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 900;
  pointer-events: auto;
}

.screen-back-button span {
  font-size: 1.2rem;
}

.screen-back-button:hover {
  border-color: rgba(50, 98, 74, 0.38);
  transform: translateY(-1px);
}

.age-heading {
  margin-bottom: 24px;
}

.age-picker {
  display: grid;
  width: min(760px, 100%);
  gap: 12px;
  margin: 0 auto 18px;
}

.age-group {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  width: 100%;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.76);
  border-radius: 29px 42px 31px 39px / 37px 29px 41px 33px;
  background:
    radial-gradient(circle at 0 50%, var(--age-wash, rgba(185, 215, 130, 0.34)), transparent 150px),
    rgba(255, 255, 255, 0.74);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.toddler-age-group { --age-wash: rgba(156, 123, 195, 0.28); }
.little-age-group { --age-wash: rgba(255, 187, 130, 0.36); }
.junior-age-group { --age-wash: rgba(185, 215, 130, 0.38); }
.explorer-age-group { --age-wash: rgba(133, 205, 224, 0.3); }

.age-group:hover {
  border-color: rgba(50, 98, 74, 0.32);
  transform: translateY(-2px);
}

.age-group[aria-checked="true"] {
  border-color: rgba(50, 98, 74, 0.55);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 13px 30px rgba(50, 98, 74, 0.16), inset 0 0 0 2px rgba(79, 139, 103, 0.12);
}

.age-group-copy {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
}

.age-group-copy > span {
  display: grid;
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: var(--green-dark);
  background: #e6f0d8;
  font-size: 0.82rem;
}

.toddler-age-group .age-group-copy > span { color: #76518c; background: #eee2f5; }
.little-age-group .age-group-copy > span { color: #a65339; background: #ffe3cb; }
.explorer-age-group .age-group-copy > span { color: #416e8a; background: #dcedf3; }

.age-group-copy strong {
  font-size: 1rem;
}

.age-group-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.age-group-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border-radius: 16px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.age-group-action strong {
  font-size: 1.05rem;
}

.age-group[aria-checked="true"] .age-group-action {
  color: var(--white);
  background: var(--green-dark);
}

.age-group[aria-checked="true"] .age-group-action strong {
  font-size: 0;
}

.age-group[aria-checked="true"] .age-group-action strong::after {
  content: "✓";
  font-size: 1rem;
}

.age-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.age-privacy-note span {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 0.67rem;
}

.hero-screen {
  display: grid;
  align-content: center;
  padding: 36px 0 60px;
}

.centered-heading {
  max-width: 680px;
  margin: 0 auto 30px;
  text-align: center;
}

.screen-heading h1,
.map-heading h1,
.result-content h1 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.screen-heading p:last-child,
.map-heading p:last-child,
.result-content > p {
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(850px, 100%);
  margin: 0 auto 30px;
}

.hero-card {
  position: relative;
  display: grid;
  min-height: 240px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  overflow: hidden;
  border: 4px solid transparent;
  border-radius: 37% 63% 46% 54% / 48% 39% 61% 52%;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.9), transparent 42%),
    rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.hero-card[aria-checked="true"] {
  border-color: var(--green-dark);
  transform: translateY(-7px) rotate(-1deg);
  box-shadow: 0 18px 42px rgba(50, 98, 74, 0.18);
}

.hero-symbol {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  margin-bottom: 8px;
  border: 5px solid rgba(255, 255, 255, 0.84);
  border-radius: 50% 42% 54% 46% / 45% 55% 43% 57%;
  font-size: 3.5rem;
  line-height: 1;
  transform: rotate(-4deg);
}

.sun-card .hero-symbol { color: #946519; background: #f8d768; }
.sky-card .hero-symbol { color: #3e7693; background: #a7dbe8; transform: rotate(3deg); }
.tulip-card .hero-symbol { color: #a4475d; background: #f3a3b0; }
.hero-card strong { font-size: 1.22rem; }
.hero-card small { color: var(--muted); font-weight: 700; }

.choice-tick {
  position: absolute;
  top: 14px;
  right: 14px;
  display: none;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-dark);
}

.hero-card[aria-checked="true"] .choice-tick { display: grid; }

.centered-action {
  min-width: 240px;
  margin: 0 auto;
}

.map-screen {
  padding: 34px 0 50px;
}

.map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(920px, 100%);
  margin: 0 auto 22px;
}

.map-heading h1 { margin-bottom: 6px; }
.map-heading p:last-child { margin-bottom: 0; }

.hero-token {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  place-items: center;
  border: 5px solid var(--white);
  border-radius: 50% 43% 55% 45% / 45% 55% 44% 56%;
  background: var(--yellow);
  box-shadow: var(--soft-shadow);
  font-size: 2.1rem;
  transform: rotate(4deg);
}

.adventure-map {
  position: relative;
  width: min(920px, 100%);
  min-height: 720px;
  margin: 0 auto;
  padding: 38px clamp(20px, 5vw, 58px);
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.78);
  border-radius: 54px 76px 61px 69px / 62px 52px 76px 58px;
  background:
    radial-gradient(circle at 18% 34%, rgba(238, 133, 56, 0.82) 0 7px, transparent 8px),
    radial-gradient(circle at 12% 39%, rgba(238, 133, 56, 0.66) 0 5px, transparent 6px),
    radial-gradient(circle at 83% 31%, rgba(255, 255, 255, 0.62) 0 5px, transparent 6px),
    radial-gradient(circle at 89% 36%, rgba(255, 255, 255, 0.42) 0 3px, transparent 4px),
    linear-gradient(180deg, #9edbea 0%, #dff1df 42%, #b6d17c 42.5%, #78a35f 68%, #d8aa58 68.5%, #c78f48 100%);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.adventure-map[data-adventure-count="7"] { min-height: 1035px; }
.adventure-map[data-adventure-count="10"] { min-height: 1445px; }
.adventure-map[data-adventure-count="11"] { min-height: 1585px; }

.adventure-map::before,
.adventure-map::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.adventure-map::before {
  right: -16%;
  bottom: 20%;
  width: 75%;
  height: 34%;
  border-radius: 48% 52% 45% 55%;
  background: rgba(64, 124, 76, 0.44);
  transform: rotate(-7deg);
}

.adventure-map::after {
  bottom: -19%;
  left: -16%;
  width: 94%;
  height: 43%;
  border-radius: 50%;
  background: rgba(236, 190, 99, 0.5);
  transform: rotate(7deg);
}

.map-sun {
  top: 7%;
  right: 8%;
  width: 74px;
  z-index: 1;
}

.map-cloud {
  position: absolute;
  z-index: 1;
  width: 92px;
  height: 25px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.map-cloud::before,
.map-cloud::after {
  position: absolute;
  bottom: 0;
  content: "";
  border-radius: 50%;
  background: inherit;
}

.map-cloud::before {
  left: 16px;
  width: 39px;
  height: 39px;
}

.map-cloud::after {
  right: 12px;
  width: 48px;
  height: 48px;
}

.map-cloud-one {
  top: 15%;
  left: 9%;
  animation: map-cloud-one-drift 13s ease-in-out infinite alternate;
}

.map-cloud-two {
  top: 28%;
  right: 20%;
  opacity: 0.62;
  transform: scale(0.65);
  animation: map-cloud-two-drift 17s ease-in-out infinite alternate;
}

@keyframes map-cloud-one-drift {
  to { transform: translateX(36px) translateY(4px); }
}

@keyframes map-cloud-two-drift {
  to { transform: translateX(-30px) translateY(8px) scale(0.68); }
}

.map-hill {
  position: absolute;
  right: -13%;
  bottom: 5%;
  z-index: 1;
  width: 72%;
  height: 27%;
  border-radius: 50% 50% 0 0;
  background: rgba(75, 131, 76, 0.38);
  transform: rotate(-5deg);
  pointer-events: none;
}

.map-tulip {
  position: absolute;
  right: 13%;
  bottom: 9%;
  z-index: 2;
  width: 7px;
  height: 55px;
  border-radius: 8px;
  background: #397049;
  transform-origin: bottom;
  animation: map-tulip-sway 3s ease-in-out infinite alternate;
  pointer-events: none;
}

.map-tulip::before {
  position: absolute;
  top: -22px;
  left: -13px;
  width: 33px;
  height: 31px;
  content: "";
  border-radius: 52% 48% 45% 55%;
  background: #ea6c82;
  clip-path: polygon(0 0, 50% 35%, 100% 0, 86% 100%, 14% 100%);
}

@keyframes map-tulip-sway {
  to { transform: rotate(8deg); }
}

.map-mascot {
  position: absolute;
  right: 1%;
  bottom: -1%;
  z-index: 4;
  width: min(32%, 190px);
  filter: drop-shadow(0 14px 12px rgba(45, 61, 35, 0.2));
  animation: map-mascot-bob 3.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes map-mascot-bob {
  50% { transform: translateY(-7px) rotate(1deg); }
}

.map-path {
  position: absolute;
  inset: 58px 15% 28px;
  z-index: 2;
  width: auto;
  border: 0;
  background:
    radial-gradient(ellipse at 30% 3%, rgba(255, 229, 174, 0.9) 0 9px, rgba(112, 80, 39, 0.2) 10px 11px, transparent 12px),
    radial-gradient(ellipse at 42% 10%, rgba(255, 229, 174, 0.88) 0 8px, rgba(112, 80, 39, 0.18) 9px 10px, transparent 11px),
    radial-gradient(ellipse at 55% 17%, rgba(255, 229, 174, 0.9) 0 9px, rgba(112, 80, 39, 0.2) 10px 11px, transparent 12px),
    radial-gradient(ellipse at 62% 25%, rgba(255, 229, 174, 0.88) 0 8px, rgba(112, 80, 39, 0.18) 9px 10px, transparent 11px),
    radial-gradient(ellipse at 58% 34%, rgba(255, 229, 174, 0.9) 0 9px, rgba(112, 80, 39, 0.2) 10px 11px, transparent 12px),
    radial-gradient(ellipse at 48% 43%, rgba(255, 229, 174, 0.88) 0 8px, rgba(112, 80, 39, 0.18) 9px 10px, transparent 11px),
    radial-gradient(ellipse at 36% 51%, rgba(255, 229, 174, 0.9) 0 9px, rgba(112, 80, 39, 0.2) 10px 11px, transparent 12px),
    radial-gradient(ellipse at 31% 60%, rgba(255, 229, 174, 0.88) 0 8px, rgba(112, 80, 39, 0.18) 9px 10px, transparent 11px),
    radial-gradient(ellipse at 38% 69%, rgba(255, 229, 174, 0.9) 0 9px, rgba(112, 80, 39, 0.2) 10px 11px, transparent 12px),
    radial-gradient(ellipse at 51% 77%, rgba(255, 229, 174, 0.88) 0 8px, rgba(112, 80, 39, 0.18) 9px 10px, transparent 11px),
    radial-gradient(ellipse at 61% 86%, rgba(255, 229, 174, 0.9) 0 9px, rgba(112, 80, 39, 0.2) 10px 11px, transparent 12px),
    radial-gradient(ellipse at 55% 95%, rgba(255, 229, 174, 0.88) 0 8px, rgba(112, 80, 39, 0.18) 9px 10px, transparent 11px);
  transform: none;
}

.map-stop {
  --stop-tilt: -1deg;
  --stop-glow: rgba(245, 199, 143, 0.54);
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  width: min(315px, calc(100% - 40px));
  min-height: 112px;
  gap: 7px;
  padding: 8px 12px 8px 4px;
  border: 0;
  border-radius: 60px;
  background: transparent;
  box-shadow: none;
  text-align: left;
  transform: rotate(var(--stop-tilt));
  transform-origin: 42px 50%;
  transition: transform 180ms ease, filter 180ms ease;
}

.map-stop::before {
  position: absolute;
  top: 9px;
  right: 0;
  bottom: 9px;
  left: 58px;
  z-index: -1;
  content: "";
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px 45px 32px 42px / 42px 32px 45px 35px;
  background:
    radial-gradient(circle at 3% 50%, var(--stop-glow), transparent 44%),
    rgba(255, 253, 245, 0.94);
  box-shadow: 0 14px 27px rgba(56, 61, 37, 0.15), 0 5px 0 rgba(82, 80, 46, 0.07), inset 0 2px 0 #fff;
}

.map-stop::after {
  position: absolute;
  right: 28px;
  bottom: 3px;
  z-index: -2;
  width: 62%;
  height: 22px;
  content: "";
  border-radius: 50%;
  background: rgba(49, 75, 39, 0.18);
  filter: blur(6px);
}

.stop-two,
.stop-four,
.stop-six,
.stop-eight,
.stop-ten { --stop-tilt: 1.2deg; }
.stop-two { --stop-glow: rgba(158, 215, 230, 0.56); }
.stop-three { --stop-glow: rgba(245, 214, 107, 0.58); }
.stop-four { --stop-glow: rgba(237, 159, 176, 0.48); }
.stop-five { --stop-glow: rgba(198, 172, 226, 0.48); }
.stop-six { --stop-glow: rgba(238, 159, 132, 0.48); }
.stop-seven { --stop-glow: rgba(247, 203, 90, 0.55); }
.stop-eight { --stop-glow: rgba(118, 191, 173, 0.5); }
.stop-nine { --stop-glow: rgba(123, 194, 221, 0.52); }
.stop-ten { --stop-glow: rgba(238, 142, 155, 0.46); }
.stop-eleven { --stop-glow: rgba(149, 119, 201, 0.5); }

.map-stop.is-open {
  cursor: pointer;
  animation: open-stop 2.4s ease-in-out infinite;
}

.map-stop.is-complete {
  filter: saturate(1.12);
}

.map-stop.is-complete::before {
  background:
    radial-gradient(circle at 3% 50%, rgba(127, 190, 113, 0.48), transparent 45%),
    rgba(246, 255, 239, 0.96);
  box-shadow: 0 15px 29px rgba(50, 98, 74, 0.18), 0 5px 0 rgba(50, 98, 74, 0.08);
}

.map-stop.is-complete .stop-icon {
  color: var(--white);
  background: var(--green);
}

.map-stop.is-complete .stop-copy small,
.map-stop.is-complete .stop-copy em {
  color: var(--green-dark);
}

.map-stop.is-complete .play-mark {
  color: var(--white);
  background: var(--green);
}

.map-stop.is-open.is-complete {
  animation: none;
}

@keyframes open-stop {
  50% { transform: translateY(-6px) rotate(var(--stop-tilt)); filter: drop-shadow(0 10px 13px rgba(50, 98, 74, 0.14)); }
}

.map-stop:disabled {
  opacity: 0.7;
}

.stop-one { top: 60px; left: 7%; }
.stop-two { top: 195px; right: 9%; }
.stop-three { top: 330px; left: 12%; }
.stop-four { top: 445px; right: 13%; }
.stop-five { top: 575px; left: 9%; }
.stop-six { top: 710px; right: 10%; }
.stop-seven { top: 845px; left: 12%; }
.stop-eight { top: 980px; right: 12%; }
.stop-nine { top: 1115px; left: 9%; }
.stop-ten { top: 1250px; right: 10%; }
.stop-eleven { top: 1385px; left: 10%; }

.stop-icon {
  position: relative;
  z-index: 2;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 5px solid rgba(255, 255, 255, 0.86);
  border-radius: 50% 44% 53% 47% / 43% 55% 45% 57%;
  color: var(--green-dark);
  background: linear-gradient(145deg, #eff7df, #cfe4ad);
  box-shadow: 0 9px 17px rgba(50, 78, 38, 0.2), inset 0 3px 0 rgba(255, 255, 255, 0.8);
  font-size: 2rem;
  font-style: normal;
  font-weight: 900;
}

.stop-two .stop-icon { background: linear-gradient(145deg, #e7f7fb, #9fd7e6); }
.stop-three .stop-icon { background: linear-gradient(145deg, #fff5c9, #f1ce63); }
.stop-four .stop-icon { background: linear-gradient(145deg, #ffe9ee, #efa1b2); }
.stop-five .stop-icon { background: linear-gradient(145deg, #f2eafa, #c5a9e1); }
.stop-six .stop-icon { background: linear-gradient(145deg, #fff0e8, #efa784); }
.stop-seven .stop-icon { background: linear-gradient(145deg, #fff7c9, #efc34f); }
.stop-eight .stop-icon { background: linear-gradient(145deg, #e6f7ef, #85c8b2); }
.stop-nine .stop-icon { background: linear-gradient(145deg, #e5f7fb, #83c9dc); }
.stop-ten .stop-icon { background: linear-gradient(145deg, #ffe9ed, #ec9baa); }
.stop-eleven .stop-icon { background: linear-gradient(145deg, #f3ecff, #bda5e2); }

.map-icon-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
}

.toddler-map-greeting {
  display: block;
  width: 100%;
  height: 138%;
  object-fit: contain;
  object-position: center top;
  pointer-events: none;
  transform: translateY(10%);
  transform-origin: 50% 100%;
  animation: toddler-map-greeting-wave 1.7s ease-in-out infinite alternate;
  user-select: none;
  -webkit-user-drag: none;
}

.toddler-mode .stop-icon:has(.toddler-map-greeting) {
  overflow: hidden;
  background: linear-gradient(180deg, #a8dfeb 0 62%, #efd17b 62% 72%, #7ca35f 72% 100%);
}

@keyframes toddler-map-greeting-wave {
  to { transform: translateY(7%) rotate(1.5deg); }
}

.color-wheel-icon {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  animation: color-wheel-float 3.4s ease-in-out infinite;
}

.color-wheel-dot {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 4px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(62, 53, 48, 0.16);
}

.color-wheel-dot:nth-child(1) { top: 0; left: 0; background: #df534b; }
.color-wheel-dot:nth-child(2) { top: 0; right: 0; background: #f4ce4d; }
.color-wheel-dot:nth-child(3) { bottom: 0; left: 0; background: #4e8aca; }
.color-wheel-dot:nth-child(4) { right: 0; bottom: 0; background: #78b874; }

@keyframes color-wheel-float {
  50% { transform: translateY(-3px) rotate(4deg); }
}

.stop-copy {
  display: grid;
  min-width: 0;
  padding: 8px 34px 8px 5px;
}

.stop-copy small {
  color: var(--green-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stop-copy strong {
  font-size: 1.02rem;
  line-height: 1.12;
}

.stop-copy em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
}

.play-mark {
  position: absolute;
  right: 9px;
  bottom: 16px;
  z-index: 4;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding-left: 2px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-dark);
  box-shadow: 0 5px 0 rgba(28, 74, 52, 0.22);
  font-size: 0.8rem;
}

.lock-mark {
  position: absolute;
  right: 22px;
  bottom: 25px;
  color: #b5b6aa;
  font-size: 0.86rem;
}

.lesson-screen {
  padding: 22px 0 46px;
}

.lesson-header {
  position: sticky;
  top: max(8px, env(safe-area-inset-top));
  z-index: 20;
  display: flex;
  align-items: center;
  width: min(760px, 100%);
  gap: 16px;
  padding: 8px 10px;
  margin: 0 auto 28px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background: rgba(255, 249, 226, 0.92);
  box-shadow: 0 8px 24px rgba(70, 79, 49, 0.12);
  backdrop-filter: blur(12px);
}

.back-button {
  display: inline-flex;
  width: auto;
  height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 900;
}

.back-button strong {
  font-size: 0.82rem;
}

.lesson-progress-wrap { flex: 1; }

.lesson-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 850;
}

.lesson-progress-label strong { color: var(--green-dark); }

.lesson-progress {
  height: 15px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 99px;
  background: rgba(92, 102, 93, 0.12);
  box-shadow: inset 0 2px 4px rgba(66, 72, 54, 0.09);
}

.lesson-progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.34) 0 18%, transparent 19% 31%, rgba(255, 255, 255, 0.24) 32% 44%, transparent 45%),
    linear-gradient(90deg, #5c9b6f, #91c56f);
  transition: width 320ms ease;
}

.lesson-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(112px, 1fr) minmax(0, 650px) minmax(112px, 1fr);
  align-items: start;
  width: min(1180px, 100%);
  gap: clamp(8px, 2vw, 24px);
  margin: 0 auto;
}

.toddler-mode .lesson-stage[data-scene]:not([data-scene=""]) {
  display: block;
  width: min(650px, 100%);
}

.toddler-mode .lesson-stage[data-scene]:not([data-scene=""]) .lesson-companion,
.toddler-mode .lesson-stage[data-scene]:not([data-scene=""]) .guide-message {
  display: none;
}

.toddler-mode .lesson-stage[data-scene]:not([data-scene=""]) .lesson-content {
  display: block;
}

.lesson-guide-controller {
  display: contents;
}

.lesson-content {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}

.lesson-companion {
  position: relative;
  z-index: 3;
  width: min(100%, 220px);
  align-self: start;
  margin-top: clamp(58px, 8vh, 105px);
  pointer-events: none;
  filter: drop-shadow(0 12px 10px rgba(63, 67, 38, 0.17));
  transform-origin: 50% 100%;
}

.lesson-companion-girl {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.lesson-companion-boy {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}

.lesson-companion img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.lesson-guide-controller[data-pose="wave"] .lesson-companion-girl {
  animation: lesson-girl-wave 1.9s ease-in-out infinite alternate;
}

.lesson-guide-controller[data-pose="wave"] .lesson-companion-boy {
  animation: lesson-boy-wave 2.1s ease-in-out -720ms infinite alternate;
}

.lesson-guide-controller[data-pose="listen"] .lesson-companion {
  animation: lesson-guide-breathe 3.2s ease-in-out infinite;
}

.lesson-guide-controller[data-pose="think"] .lesson-companion-girl {
  animation: lesson-girl-think 2.8s ease-in-out infinite alternate;
}

.lesson-guide-controller[data-pose="think"] .lesson-companion-boy {
  animation: lesson-boy-think 2.8s ease-in-out -900ms infinite alternate;
}

.lesson-guide-controller[data-pose="talk"] .lesson-companion {
  animation: lesson-guide-talk 820ms ease-in-out infinite alternate;
}

.lesson-guide-controller[data-pose="celebrate"] .lesson-companion-girl {
  animation: lesson-guide-celebrate-left 560ms ease-in-out infinite alternate;
}

.lesson-guide-controller[data-pose="celebrate"] .lesson-companion-boy {
  animation: lesson-guide-celebrate-right 610ms ease-in-out -220ms infinite alternate;
}

@keyframes lesson-girl-wave {
  from { transform: rotate(-0.8deg) translateY(1px); }
  to { transform: rotate(1.2deg) translateY(-5px); }
}

@keyframes lesson-boy-wave {
  from { transform: rotate(0.9deg) translateY(-1px); }
  to { transform: rotate(-1.1deg) translateY(-6px); }
}

@keyframes lesson-guide-breathe {
  50% { transform: translateY(-3px) scale(1.006); }
}

@keyframes lesson-girl-think {
  to { transform: rotate(-1.8deg) translateY(-3px); }
}

@keyframes lesson-boy-think {
  to { transform: rotate(1.8deg) translateY(-3px); }
}

@keyframes lesson-guide-talk {
  to { transform: translateY(-4px) scale(1.008); }
}

@keyframes lesson-guide-celebrate-left {
  to { transform: rotate(-2deg) translateY(-9px) scale(1.015); }
}

@keyframes lesson-guide-celebrate-right {
  to { transform: rotate(2deg) translateY(-10px) scale(1.015); }
}

.saiga-small .saiga-head {
  top: 23px;
  left: 18px;
  width: 66px;
  height: 80px;
  border-width: 3px;
}

.saiga-small .saiga-head::before,
.saiga-small .saiga-head::after {
  top: 8px;
  width: 23px;
  height: 14px;
  border-width: 3px;
}

.saiga-small .saiga-head::before { left: -18px; }
.saiga-small .saiga-head::after { right: -18px; }
.saiga-small .saiga-horn { top: 2px; width: 9px; height: 39px; border-width: 3px; }
.saiga-small .saiga-horn.left { left: 31px; }
.saiga-small .saiga-horn.right { left: 65px; }
.saiga-small .eye { top: 26px; width: 7px; height: 9px; box-shadow: none; }
.saiga-small .eye.left { left: 12px; }
.saiga-small .eye.right { right: 12px; }
.saiga-small .nose { bottom: 8px; width: 29px; height: 24px; border-width: 2px; }
.saiga-small .nose::after { bottom: 3px; width: 10px; height: 4px; border-width: 0 0 2px; }

.guide-message {
  position: relative;
  align-self: center;
  margin-bottom: 12px;
  padding: 14px 18px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 36px 43px 41px 14px / 31px 38px 34px 26px;
  background:
    radial-gradient(circle at 92% 14%, rgba(133, 205, 224, 0.2), transparent 36%),
    var(--white);
  box-shadow: var(--soft-shadow);
  font-size: 0.9rem;
  font-weight: 750;
}

.guide-message::before {
  position: absolute;
  bottom: -8px;
  left: -4px;
  width: 24px;
  height: 22px;
  content: "";
  border-radius: 4px 4px 4px 20px;
  background: var(--white);
  transform: rotate(-18deg);
}

.guide-message::after {
  position: absolute;
  right: -4px;
  bottom: -8px;
  width: 24px;
  height: 22px;
  content: "";
  border-radius: 4px 4px 20px 4px;
  background: var(--white);
  transform: rotate(18deg);
}

.guide-message {
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  gap: 10px;
}

.replay-voice-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding-left: 2px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 4px 0 #356482;
  cursor: pointer;
}

.replay-voice-button.is-speaking {
  animation: sound-pulse 720ms ease-in-out infinite alternate;
}

@keyframes sound-pulse {
  to { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(79, 127, 170, 0.16), 0 4px 0 #356482; }
}

.challenge-card {
  position: relative;
  z-index: 2;
  scroll-margin-top: 92px;
  padding: clamp(25px, 5vw, 44px);
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.78);
  border-radius: 52px 38px 58px 44px / 45px 59px 42px 55px;
  background:
    radial-gradient(circle at 102% -4%, rgba(133, 205, 224, 0.28) 0 120px, transparent 121px),
    radial-gradient(circle at -5% 106%, rgba(185, 215, 130, 0.24) 0 100px, transparent 101px),
    rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px);
}

.challenge-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
}

.challenge-topline .challenge-kicker {
  margin-bottom: 0;
}

.pronunciation-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 2px solid rgba(79, 127, 170, 0.2);
  border-radius: 22px 18px 23px 19px;
  color: #315f7c;
  background: #e3f2f6;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
}

.pronunciation-button.is-playing span:first-child {
  animation: music-bounce 420ms ease-in-out infinite alternate;
}

@keyframes music-bounce { to { transform: translateY(-3px) rotate(8deg); } }

.challenge-card h1 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

[data-screen] h1[tabindex="-1"]:focus {
  outline: none;
}

.challenge-hint {
  min-height: 24px;
  margin-bottom: 24px;
  color: var(--muted);
}

.answer-area {
  display: grid;
  gap: 15px;
}

.answer-button {
  --answer-tilt: -0.25deg;
  position: relative;
  min-height: 64px;
  padding: 14px 18px;
  overflow: hidden;
  border: 3px solid rgba(38, 52, 47, 0.08);
  border-radius: 26px 38px 27px 35px / 33px 27px 38px 29px;
  background:
    radial-gradient(circle at 96% 15%, rgba(246, 200, 79, 0.16), transparent 32%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 0 rgba(38, 52, 47, 0.07), 0 12px 22px rgba(67, 74, 48, 0.08);
  cursor: pointer;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 850;
  text-align: left;
  transform: rotate(var(--answer-tilt));
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.answer-button:nth-child(2) { --answer-tilt: 0.3deg; }
.answer-button:nth-child(3) { --answer-tilt: -0.15deg; }

.answer-button:hover:not(:disabled) {
  border-color: rgba(50, 98, 74, 0.4);
  box-shadow: 0 9px 0 rgba(50, 98, 74, 0.09), 0 16px 26px rgba(67, 74, 48, 0.11);
  transform: translateY(-3px) rotate(var(--answer-tilt));
}

.answer-button:disabled { cursor: default; }
.answer-button.is-correct { border-color: #4d9465; background: #e3f3df; box-shadow: 0 5px 0 #b9d8b7; }
.answer-button.is-wrong { border-color: #df7d79; background: #fff0ec; box-shadow: 0 5px 0 #edc3bb; animation: gentle-shake 280ms ease; }

.answer-button.is-correct {
  animation: answer-celebrate 520ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes answer-celebrate {
  35% { transform: scale(1.045) rotate(-1deg); }
  70% { transform: scale(0.985) rotate(0.5deg); }
}

.answer-button.picture-answer {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  min-height: 104px;
  gap: 16px;
  font-size: 1.16rem;
}

.picture-symbol {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 50% 44% 53% 47%;
  background: linear-gradient(145deg, #fff7dc, var(--sand));
  box-shadow: 0 7px 15px rgba(76, 67, 41, 0.11);
  font-size: 2.8rem;
}

.picture-canvas {
  display: block;
  width: 72px;
  height: 72px;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 50% 44% 53% 47%;
  background: var(--sand);
  box-shadow: 0 7px 15px rgba(76, 67, 41, 0.11);
}

.answer-button.color-answer {
  grid-template-columns: 88px 1fr;
  min-height: 112px;
}

.color-choice-swatch {
  position: relative;
  display: block;
  width: 80px;
  aspect-ratio: 1;
  border: 6px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(52, 48, 40, 0.22), inset 0 -8px 14px rgba(0, 0, 0, 0.1), inset 0 7px 10px rgba(255, 255, 255, 0.22);
}

.color-choice-swatch::after {
  position: absolute;
  top: 16%;
  left: 20%;
  width: 24%;
  height: 16%;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: rotate(-24deg);
}

.answer-button:nth-child(2) .picture-canvas { background: #e5f1e9; }
.answer-button:nth-child(3) .picture-canvas { background: #e6eef8; }

.little-mode .answer-button.picture-answer,
.little-mode .answer-button.color-answer {
  animation: picture-in 480ms both;
}

.little-mode .answer-button.picture-answer:nth-child(2),
.little-mode .answer-button.color-answer:nth-child(2) { animation-delay: 90ms; }
.little-mode .answer-button.picture-answer:nth-child(3),
.little-mode .answer-button.color-answer:nth-child(3) { animation-delay: 180ms; }

.echo-stage {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  text-align: center;
  isolation: isolate;
}

.challenge-card:has(.echo-stage) {
  overflow: visible;
}

.echo-stage::before {
  position: absolute;
  z-index: -1;
  width: min(92%, 540px);
  height: 76%;
  content: "";
  border-radius: 48% 52% 42% 58% / 55% 43% 57% 45%;
  background:
    radial-gradient(circle at 21% 22%, rgba(246, 200, 79, 0.28) 0 28px, transparent 29px),
    radial-gradient(circle at 88% 80%, rgba(133, 205, 224, 0.24) 0 42px, transparent 43px),
    rgba(255, 250, 231, 0.68);
  filter: drop-shadow(0 22px 25px rgba(76, 70, 43, 0.1));
}

.echo-button {
  position: relative;
  display: grid;
  width: min(460px, 100%);
  min-height: 340px;
  place-items: center;
  gap: 16px;
  padding: 28px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.echo-button:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.012);
}

.echo-button:focus-visible {
  outline: 5px solid rgba(238, 133, 56, 0.42);
  outline-offset: 5px;
}

.echo-visual {
  position: relative;
  display: grid;
  width: clamp(210px, 30vw, 300px);
  aspect-ratio: 1;
  place-items: center;
  filter: drop-shadow(0 18px 18px rgba(58, 58, 38, 0.16));
}

.echo-color,
.echo-picture-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.echo-color {
  position: relative;
  border: 8px solid rgba(255, 255, 255, 0.82);
  background: var(--echo-color, #d94a43);
  box-shadow: 0 18px 38px rgba(52, 48, 40, 0.2), inset 0 -12px 24px rgba(0, 0, 0, 0.08);
  animation: echo-breathe 2.4s ease-in-out infinite;
}

.echo-color::before {
  position: absolute;
  top: 13%;
  left: 19%;
  width: 29%;
  height: 17%;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.53);
  transform: rotate(-26deg);
}

.echo-color::after {
  position: absolute;
  inset: 9%;
  content: "";
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.echo-color-halo {
  position: absolute;
  inset: -10%;
  z-index: -1;
  border-radius: 50%;
  background: var(--echo-color, #d94a43);
  opacity: 0.18;
  filter: blur(14px);
  animation: echo-halo-breathe 2.8s ease-in-out infinite;
}

.echo-color-particles {
  position: absolute;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
}

.echo-color-particle {
  --particle-x: 0px;
  --particle-y: -38px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(8px, 2vw, 15px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--echo-color, #d94a43);
  opacity: 0.55;
  transform: translate(-50%, -50%) translate(var(--particle-x), var(--particle-y));
  box-shadow: 0 3px 8px rgba(59, 49, 44, 0.14);
}

.echo-color-particle:nth-child(1) { --particle-x: 0px; --particle-y: -146px; }
.echo-color-particle:nth-child(2) { --particle-x: 103px; --particle-y: -103px; }
.echo-color-particle:nth-child(3) { --particle-x: 146px; --particle-y: 0px; }
.echo-color-particle:nth-child(4) { --particle-x: 103px; --particle-y: 103px; }
.echo-color-particle:nth-child(5) { --particle-x: 0px; --particle-y: 146px; }
.echo-color-particle:nth-child(6) { --particle-x: -103px; --particle-y: 103px; }
.echo-color-particle:nth-child(7) { --particle-x: -146px; --particle-y: 0px; }
.echo-color-particle:nth-child(8) { --particle-x: -103px; --particle-y: -103px; }

.echo-button.is-echoing .echo-color-particle {
  animation: color-particle-pop 760ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.echo-button.is-echoing .echo-color-particle:nth-child(even) {
  animation-delay: 55ms;
}

@keyframes echo-halo-breathe {
  50% { opacity: 0.28; transform: scale(1.08); }
}

@keyframes color-particle-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  50% { opacity: 0.78; }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--particle-x), var(--particle-y)) scale(1.1); }
}

.echo-picture-canvas {
  border: 8px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(145deg, #fff9e7, var(--sand));
  box-shadow: 0 18px 38px rgba(52, 48, 40, 0.18), inset 0 4px 0 rgba(255, 255, 255, 0.7);
}

.echo-association-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.88);
  border-radius: 42px;
  background: linear-gradient(145deg, #fff8db, #d9eee1);
  box-shadow:
    0 18px 38px rgba(52, 48, 40, 0.16),
    inset 0 4px 0 rgba(255, 255, 255, 0.68);
  isolation: isolate;
}

.echo-greeting-cue {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.88);
  border-radius: 42px;
  background:
    radial-gradient(circle at 83% 18%, #ffe374 0 9%, rgba(255, 227, 116, 0.28) 9.5% 15%, transparent 15.5%),
    linear-gradient(180deg, #a9e1ec 0 59%, #efd17b 59% 69%, #7da660 69% 100%);
  box-shadow:
    0 18px 38px rgba(52, 48, 40, 0.16),
    inset 0 4px 0 rgba(255, 255, 255, 0.68);
  isolation: isolate;
}

.echo-greeting-cue::before,
.echo-greeting-cue::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.echo-greeting-cue::before {
  right: -18%;
  bottom: -24%;
  width: 92%;
  height: 47%;
  border-radius: 50%;
  background: #5f8f55;
  transform: rotate(-6deg);
}

.echo-greeting-cue::after {
  bottom: 23%;
  left: -11%;
  width: 56%;
  height: 25%;
  border-radius: 50%;
  background: rgba(255, 248, 213, 0.28);
  transform: rotate(5deg);
}

.greeting-character-window {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  width: 69%;
  height: 89%;
  overflow: hidden;
  pointer-events: none;
}

.greeting-character-rig {
  position: absolute;
  top: -10%;
  left: 0;
  width: 200%;
  filter: drop-shadow(0 8px 7px rgba(44, 61, 40, 0.16));
  animation: greeting-character-breathe 2.7s ease-in-out infinite alternate;
}

.greeting-character-rig[data-pose="wave"] .character-hand-girl {
  animation-duration: 680ms;
  animation-timing-function: cubic-bezier(0.38, 0, 0.22, 1);
}

.greeting-motion-marks {
  position: absolute;
  top: 35%;
  left: 5%;
  z-index: 4;
  width: 16%;
  height: 27%;
  pointer-events: none;
}

.greeting-motion-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  border: solid #f4b443;
  border-width: 4px 0 0 4px;
  border-radius: 70% 0 0;
  opacity: 0.72;
  transform: translate(-50%, -50%) rotate(-30deg);
  transform-origin: 100% 100%;
  animation: greeting-motion-mark 780ms ease-in-out infinite alternate;
}

.greeting-motion-mark:nth-child(1) {
  width: 32%;
  height: 32%;
}

.greeting-motion-mark:nth-child(2) {
  width: 58%;
  height: 58%;
  animation-delay: -190ms;
}

.greeting-motion-mark:nth-child(3) {
  width: 84%;
  height: 84%;
  animation-delay: -380ms;
}

.greeting-speech-bubble {
  position: absolute;
  top: 12%;
  right: 5%;
  z-index: 5;
  display: grid;
  min-width: 37%;
  min-height: 23%;
  place-items: center;
  padding: 15px 18px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px 34px 29px 33px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(53, 77, 61, 0.15);
  font-family: var(--display);
  font-size: clamp(2.25rem, 8vw, 3.7rem);
  font-weight: 950;
  line-height: 0.95;
  white-space: nowrap;
  transform: rotate(1deg);
}

.greeting-speech-bubble::after {
  position: absolute;
  bottom: -12px;
  left: 15%;
  width: 24px;
  height: 24px;
  content: "";
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  transform: rotate(45deg);
}

.greeting-response-cue {
  position: absolute;
  right: 5%;
  bottom: 5%;
  left: 5%;
  z-index: 6;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 9px 18px 10px 10px;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  color: #245a43;
  background: rgba(255, 249, 219, 0.96);
  box-shadow: 0 9px 22px rgba(57, 75, 45, 0.16);
  font-size: clamp(1.03rem, 3.4vw, 1.28rem);
  line-height: 1.08;
  text-align: left;
}

.greeting-response-hand {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(72, 83, 54, 0.12);
  font-size: 1.75rem;
  transform-origin: 55% 85%;
  animation: greeting-response-wave 820ms ease-in-out infinite alternate;
}

.greeting-response-hand.is-color-icon {
  color: var(--association-color);
  font-size: 2.25rem;
  text-shadow: 0 2px 0 rgba(37, 48, 42, 0.12);
  animation: association-color-icon-pulse 1.25s ease-in-out infinite alternate;
}

.association-color-card {
  background:
    radial-gradient(circle at 84% 17%, rgba(255, 255, 255, 0.76) 0 4%, transparent 4.5%),
    linear-gradient(145deg, #fffaf0, #ecf1df);
}

.association-color-card::before,
.association-color-card::after {
  position: absolute;
  z-index: 0;
  content: "";
  border-radius: 50%;
  background: var(--association-color);
  opacity: 0.12;
}

.association-color-card::before {
  top: -13%;
  left: -11%;
  width: 68%;
  aspect-ratio: 1;
}

.association-color-card::after {
  right: -22%;
  bottom: 15%;
  width: 55%;
  aspect-ratio: 1;
}

.association-color-art {
  position: absolute;
  top: 8%;
  left: 5%;
  z-index: 2;
  width: 69%;
  height: 73%;
  pointer-events: none;
}

.association-color-blob {
  position: absolute;
  inset: 8% 11% 6% 5%;
  border: 7px solid rgba(255, 255, 255, 0.78);
  border-radius: 38% 62% 54% 46% / 48% 41% 59% 52%;
  background: var(--association-color);
  box-shadow:
    0 18px 28px rgba(51, 54, 47, 0.18),
    inset 0 10px 20px rgba(255, 255, 255, 0.24),
    inset 0 -12px 18px rgba(0, 0, 0, 0.07);
  transform: rotate(-4deg);
  animation: association-color-breathe 2.2s ease-in-out infinite alternate;
}

.association-color-blob::after {
  position: absolute;
  top: 13%;
  left: 17%;
  width: 30%;
  height: 15%;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  transform: rotate(-27deg);
}

.association-color-shapes {
  position: absolute;
  inset: 0;
}

.association-color-shapes span {
  position: absolute;
  display: block;
  width: 17%;
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: var(--association-color);
  box-shadow: 0 8px 13px rgba(52, 55, 48, 0.16);
  animation: association-color-shape 1.9s ease-in-out infinite alternate;
}

.association-color-shapes span:nth-child(1) {
  top: 4%;
  left: 6%;
}

.association-color-shapes span:nth-child(2) {
  top: 18%;
  right: 0;
  border-radius: 32%;
  animation-delay: -620ms;
}

.association-color-shapes span:nth-child(3) {
  bottom: 3%;
  left: 16%;
  border-radius: 30% 70% 45% 55%;
  animation-delay: -1.15s;
}

.association-morning-card {
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.74) 0 3%, transparent 3.5%),
    linear-gradient(180deg, #92cfe1 0 57%, #f5d987 57% 69%, #7da660 69% 100%);
}

.association-morning-horizon {
  position: absolute;
  right: -14%;
  bottom: 12%;
  z-index: 1;
  width: 85%;
  height: 32%;
  border-radius: 50%;
  background: #609252;
  transform: rotate(-7deg);
}

.association-morning-sun {
  position: absolute;
  top: 29%;
  left: 13%;
  z-index: 2;
  display: block;
  width: 28%;
  aspect-ratio: 1;
  border: 6px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: #ffdb58;
  box-shadow: 0 0 0 14px rgba(255, 219, 88, 0.17);
  animation: association-sun-rise 2.8s ease-in-out infinite alternate;
}

.association-morning-sun span {
  position: absolute;
  top: calc(50% - 3px);
  left: -24%;
  width: 148%;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 215, 75, 0.72);
  transform: rotate(var(--ray-angle));
}

.morning-character-window {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 67%;
  height: 89%;
  overflow: hidden;
  pointer-events: none;
}

.morning-character-rig {
  position: absolute;
  top: -10%;
  left: -100%;
  width: 200%;
  filter: drop-shadow(0 8px 7px rgba(44, 61, 40, 0.16));
  animation: greeting-character-breathe 2.7s ease-in-out infinite alternate;
}

.morning-character-rig[data-pose="wave"] .character-hand-boy {
  animation-duration: 720ms;
}

.association-morning-card .greeting-speech-bubble {
  top: 7%;
  right: auto;
  left: 4%;
  min-width: 53%;
  min-height: 21%;
  padding: 12px 14px;
  font-size: clamp(1.6rem, 5.5vw, 2.65rem);
}

.association-happy-card {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 236, 119, 0.7) 0 20%, transparent 20.5%),
    linear-gradient(180deg, #a8dfeb 0 61%, #efd17b 61% 71%, #7ea660 71% 100%);
}

.association-happy-glow {
  position: absolute;
  top: 12%;
  left: 13%;
  z-index: 0;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 240, 144, 0.28);
  animation: association-happy-glow 2s ease-in-out infinite alternate;
}

.association-pair-rig {
  position: absolute;
  top: 6%;
  left: 4%;
  z-index: 2;
  width: 92%;
  filter: drop-shadow(0 8px 7px rgba(44, 61, 40, 0.16));
  animation: association-pair-bounce 1.8s ease-in-out infinite alternate;
}

.association-happy-card .greeting-speech-bubble {
  top: 5%;
  right: 16%;
  left: 16%;
  min-width: 0;
  min-height: 19%;
  padding: 11px 15px;
  font-size: clamp(2rem, 6.8vw, 3.25rem);
}

.association-object-card {
  background: linear-gradient(180deg, #a9dfea 0 63%, #f0d27d 63% 72%, #7da45f 72% 100%);
}

.association-object-card.theme-home {
  background:
    radial-gradient(circle at 82% 17%, #ffe171 0 8%, rgba(255, 225, 113, 0.25) 8.5% 14%, transparent 14.5%),
    linear-gradient(180deg, #a9dfea 0 62%, #efd17b 62% 72%, #76a05e 72% 100%);
}

.association-object-card.theme-tea {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 35%),
    linear-gradient(180deg, #f8ddb0 0 66%, #b8794f 66% 72%, #e9b974 72% 100%);
}

.association-object-card.theme-animals {
  background:
    radial-gradient(circle at 82% 16%, #ffe171 0 8%, rgba(255, 225, 113, 0.2) 8.5% 14%, transparent 14.5%),
    linear-gradient(180deg, #a6deeb 0 61%, #efd17b 61% 70%, #75a15d 70% 100%);
}

.association-object-art {
  position: absolute;
  top: 10%;
  left: 4%;
  z-index: 2;
  display: grid;
  width: 68%;
  height: 66%;
  place-items: center;
  border: 5px solid rgba(255, 255, 255, 0.58);
  border-radius: 38% 52% 42% 48% / 48% 39% 51% 42%;
  background: rgba(255, 253, 239, 0.34);
  box-shadow: 0 12px 24px rgba(50, 66, 47, 0.1);
  pointer-events: none;
}

.association-pictogram-canvas {
  display: block;
  width: 94%;
  height: 94%;
  background: transparent;
}

.association-object-card .greeting-speech-bubble,
.association-color-card .greeting-speech-bubble {
  top: 9%;
  right: 4%;
  min-width: 36%;
  min-height: 21%;
  padding: 12px 14px;
  font-size: clamp(2rem, 7vw, 3.45rem);
}

.echo-button.is-association-echo {
  width: min(430px, 100%);
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 42px;
  background: transparent;
  box-shadow: none;
}

.echo-button.is-association-echo .echo-visual {
  width: 100%;
  height: 100%;
}

.echo-button.is-association-echo .echo-word,
.echo-button.is-association-echo .echo-meaning {
  display: none;
}

.echo-button.is-association-echo:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.008);
}

.echo-button.is-association-echo:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}

.echo-button.is-association-echo.is-echoing .greeting-speech-bubble {
  animation: greeting-word-spoken 620ms cubic-bezier(0.2, 1.35, 0.4, 1) 2 alternate;
}

.echo-button.is-greeting-echo.is-echoing .greeting-character-rig[data-pose="wave"] .character-hand-girl {
  animation-duration: 390ms;
}

.echo-button.is-association-echo.is-echoing .association-color-blob {
  animation: association-color-tap 650ms cubic-bezier(0.2, 1.35, 0.4, 1) 2 alternate;
}

.echo-button.is-association-echo.is-echoing .association-object-art {
  animation: association-object-tap 720ms cubic-bezier(0.2, 1.35, 0.4, 1);
}

.echo-button.is-association-echo.is-echoing .association-morning-sun {
  animation: association-sun-tap 720ms cubic-bezier(0.2, 1.35, 0.4, 1);
}

.echo-button.is-association-echo.is-echoing .association-pair-rig {
  animation: association-pair-tap 720ms cubic-bezier(0.2, 1.35, 0.4, 1);
}

@keyframes greeting-character-breathe {
  from { transform: translateY(2px) rotate(-0.35deg); }
  to { transform: translateY(-4px) rotate(0.55deg); }
}

@keyframes greeting-motion-mark {
  from { opacity: 0.28; transform: translate(-50%, -50%) rotate(-38deg) scale(0.88); }
  to { opacity: 0.92; transform: translate(-50%, -50%) rotate(-20deg) scale(1.08); }
}

@keyframes greeting-response-wave {
  from { transform: rotate(-9deg); }
  to { transform: rotate(12deg); }
}

@keyframes greeting-word-spoken {
  to { transform: rotate(-1deg) scale(1.07); }
}

@keyframes association-color-icon-pulse {
  to { transform: scale(1.14); }
}

@keyframes association-color-breathe {
  to { transform: rotate(3deg) scale(1.04); }
}

@keyframes association-color-shape {
  to { transform: translateY(-7px) rotate(8deg); }
}

@keyframes association-sun-rise {
  from { transform: translateY(13px) scale(0.92); }
  to { transform: translateY(-9px) scale(1.04); }
}

@keyframes association-happy-glow {
  to { opacity: 0.62; transform: scale(1.08); }
}

@keyframes association-pair-bounce {
  to { transform: translateY(-5px) rotate(0.5deg); }
}

@keyframes association-color-tap {
  45% { transform: rotate(-2deg) scale(1.12); }
}

@keyframes association-object-tap {
  40% { transform: translateY(-8px) rotate(-2deg) scale(1.07); }
  75% { transform: translateY(1px) rotate(1deg) scale(0.98); }
}

@keyframes association-sun-tap {
  45% { transform: translateY(-20px) scale(1.15); }
}

@keyframes association-pair-tap {
  40% { transform: translateY(-12px) rotate(-1deg) scale(1.04); }
  75% { transform: translateY(2px) rotate(1deg) scale(0.99); }
}

.echo-word {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 950;
  line-height: 0.95;
}

.echo-meaning {
  display: block;
  color: var(--muted);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 850;
}

.echo-button.is-echoing {
  box-shadow: none;
  animation: echo-button-pop 520ms cubic-bezier(0.2, 1.3, 0.4, 1);
}

.echo-button.is-echoing .echo-color,
.echo-button.is-echoing .echo-picture-canvas,
.echo-button.is-echoing .echo-association-card {
  animation: echo-visual-pop 720ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.toddler-mode .star-counter,
.toddler-mode .reward-row {
  display: none;
}

.toddler-mode .echo-stage {
  min-height: clamp(320px, 50vh, 440px);
}

.toddler-mode .echo-button {
  width: min(440px, 100%);
  min-height: clamp(310px, 48vh, 420px);
  padding: clamp(20px, 4vw, 30px);
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 48px 58px 45px 55px / 52px 44px 57px 48px;
  background: rgba(255, 253, 245, 0.82);
  box-shadow: 0 18px 42px rgba(76, 70, 43, 0.11);
}

.toddler-mode .challenge-card:has(.echo-stage) {
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.toddler-mode .challenge-card:has(.echo-stage) > .challenge-topline .challenge-kicker,
.toddler-mode .challenge-card:has(.echo-stage) > h1,
.toddler-mode .challenge-card:has(.echo-stage) > .challenge-hint {
  display: none;
}

.toddler-mode .challenge-card:has(.echo-stage) > .challenge-topline {
  justify-content: flex-end;
}

.toddler-mode .echo-visual {
  width: min(42vw, 200px);
}

.toddler-mode .echo-button.is-association-echo {
  width: min(430px, 100%);
  min-height: 0;
  padding: 0;
  border-radius: 42px;
  background: transparent;
  box-shadow: none;
}

.toddler-mode .echo-button.is-association-echo .echo-visual {
  width: 100%;
}

.toddler-mode .echo-word,
.toddler-mode .echo-meaning {
  display: block;
}

.toddler-mode .echo-button.is-association-echo .echo-word,
.toddler-mode .echo-button.is-association-echo .echo-meaning {
  display: none;
}

@keyframes echo-breathe {
  50% { transform: scale(1.035); }
}

@keyframes echo-button-pop {
  45% { transform: scale(1.025); }
}

@keyframes echo-visual-pop {
  35% { transform: scale(1.12) rotate(-2deg); }
  70% { transform: scale(0.97) rotate(1deg); }
}

@keyframes picture-in {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.celebration-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  width: 11px;
  height: 18px;
  border-radius: 70% 30% 65% 35% / 58% 72% 28% 42%;
  animation: confetti-fly 900ms cubic-bezier(0.12, 0.65, 0.2, 1) forwards;
}

.confetti-piece:nth-child(3n) {
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
}

.confetti-piece:nth-child(3n + 2) {
  border-radius: 80% 15% 75% 25% / 62% 76% 24% 38%;
  transform-origin: 50% 100%;
}

@keyframes confetti-fly {
  from { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(0.4); }
  65% { opacity: 1; }
  to { opacity: 0; transform: translate(calc(-50% + var(--confetti-x)), calc(-50% + var(--confetti-y))) rotate(var(--confetti-r)) scale(1); }
}

.kids-shell.is-correct-flash::after {
  position: fixed;
  inset: 0;
  z-index: 80;
  content: "";
  pointer-events: none;
  background: rgba(164, 218, 138, 0.18);
  animation: correct-flash 500ms ease-out forwards;
}

@keyframes correct-flash { to { opacity: 0; } }

@keyframes gentle-shake {
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.feedback-box {
  margin-top: 20px;
  padding: 14px 17px;
  border-radius: 17px;
  font-size: 0.93rem;
  font-weight: 750;
}

.feedback-box.is-correct { color: #275d3e; background: #def0dd; }
.feedback-box.is-wrong { color: #8b423f; background: #ffebe6; }

.lesson-next {
  width: 100%;
  margin-top: 16px;
}

.mosaic-board {
  display: grid;
  gap: 16px;
}

.mosaic-answer,
.mosaic-pieces {
  display: flex;
  min-height: 78px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-radius: 20px;
}

.mosaic-answer {
  border: 3px dashed rgba(50, 98, 74, 0.28);
  background: rgba(226, 239, 220, 0.46);
}

.mosaic-answer:empty::after {
  margin: auto;
  color: var(--muted);
  content: "Нажимай на части фразы";
  font-size: 0.82rem;
  font-weight: 750;
}

.mosaic-pieces {
  justify-content: center;
  background: rgba(255, 241, 200, 0.6);
}

.mosaic-piece {
  min-height: 48px;
  padding: 13px 18px;
  border: 2px solid rgba(38, 52, 47, 0.13);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 4px 0 rgba(38, 52, 47, 0.1);
  cursor: pointer;
  font-weight: 900;
}

.mosaic-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.small-action {
  min-height: 48px;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  cursor: pointer;
  font-weight: 850;
}

.small-action.check-action { color: var(--white); background: var(--green-dark); }

.result-screen {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 42px 0 60px;
}

.result-content {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  padding: clamp(32px, 6vw, 64px);
  border: 7px solid rgba(255, 255, 255, 0.8);
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(14px);
}

.result-rays {
  position: absolute;
  width: 720px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(246, 200, 79, 0.28) 0 13deg, transparent 13deg 26deg);
  animation: slow-spin 28s linear infinite;
}

@keyframes slow-spin { to { transform: rotate(360deg); } }

.reward-medal {
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
  margin: 0 auto 25px;
  border: 8px solid var(--white);
  border-radius: 50%;
  color: #a56b0e;
  background: var(--yellow);
  box-shadow: 0 16px 34px rgba(184, 127, 21, 0.23);
  font-size: 4rem;
  transform: rotate(-6deg);
}

.result-content > p { max-width: 500px; margin-right: auto; margin-left: auto; }

.learned-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
}

.learned-words:not(.is-visual-review) > span {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--green-dark);
  background: #e6f0d8;
  font-weight: 850;
}

.learned-words.is-visual-review {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.toddler-review-card {
  display: grid;
  min-width: 0;
  gap: 5px;
  place-items: center;
  padding: 9px 8px 11px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  color: var(--ink);
  background: linear-gradient(145deg, #fff9e7, #e5f1dc);
  box-shadow: 0 9px 18px rgba(60, 75, 50, 0.13);
  cursor: pointer;
  font: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.toddler-review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 22px rgba(60, 75, 50, 0.17);
}

.toddler-review-card:focus-visible {
  outline: 4px solid rgba(238, 133, 56, 0.42);
  outline-offset: 3px;
}

.toddler-review-visual {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #a8deea 0 65%, #efd17b 65% 74%, #7ca35f 74% 100%);
}

.toddler-review-canvas {
  display: block;
  width: 92%;
  height: 92%;
  background: transparent;
}

.toddler-review-color {
  display: block;
  width: 68%;
  aspect-ratio: 1;
  border: 5px solid rgba(255, 255, 255, 0.86);
  border-radius: 38% 62% 54% 46% / 48% 41% 59% 52%;
  box-shadow: 0 8px 14px rgba(52, 55, 48, 0.17), inset 0 5px 10px rgba(255, 255, 255, 0.24);
  transform: rotate(-4deg);
}

.toddler-review-character {
  position: absolute;
  bottom: -48%;
  left: 50%;
  display: block;
  width: auto;
  max-width: none;
  height: 152%;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.toddler-review-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--green-dark);
  font-size: clamp(0.92rem, 2.5vw, 1.1rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toddler-review-card small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: clamp(0.65rem, 1.8vw, 0.78rem);
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toddler-review-card.is-replaying .toddler-review-visual {
  animation: toddler-review-replay 720ms cubic-bezier(0.2, 1.35, 0.4, 1);
}

.toddler-mode .reward-medal {
  width: 104px;
  height: 104px;
  color: #2f7653;
  background: #e2f0d4;
  font-size: 3.25rem;
}

@keyframes toddler-review-replay {
  45% { transform: translateY(-6px) rotate(-2deg) scale(1.08); }
}

.reward-row {
  display: grid;
  gap: 3px;
  margin-bottom: 26px;
}

.reward-row span { color: #e7aa28; font-size: 1.65rem; letter-spacing: 0.11em; }
.reward-row strong { font-size: 0.9rem; }

.app-dialog {
  width: min(520px, calc(100% - 28px));
  max-height: min(740px, calc(100dvh - 28px));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 32px;
  color: var(--ink);
  background: transparent;
  box-shadow: var(--shadow);
}

.app-dialog::backdrop {
  background: rgba(31, 42, 37, 0.55);
  backdrop-filter: blur(5px);
}

.dialog-card {
  position: relative;
  padding: 34px;
  background: var(--cream);
}

.dialog-card h2 {
  margin-bottom: 12px;
  font-size: 1.9rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: rgba(38, 52, 47, 0.08);
  cursor: pointer;
  font-size: 1.5rem;
}

.gate-label {
  display: grid;
  gap: 8px;
  margin: 24px 0 16px;
  font-weight: 850;
}

.gate-label input {
  width: 100%;
  min-height: 56px;
  padding: 10px 16px;
  border: 3px solid rgba(38, 52, 47, 0.16);
  border-radius: 16px;
  background: var(--white);
  font-size: 1.3rem;
}

.gate-error { margin-bottom: 14px; color: #9a4541; font-weight: 800; }
.dialog-card .big-button { width: 100%; }

.parent-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.parent-facts div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 17px;
  background: var(--white);
}

.parent-facts span { color: var(--muted); font-size: 0.75rem; font-weight: 800; }
.parent-facts strong { font-size: 1.05rem; }

.privacy-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  position: relative;
  padding-left: 27px;
}

.privacy-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  content: "✓";
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 0.7rem;
  font-weight: 900;
}

.text-button {
  padding: 10px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.danger-button { color: #a44843; }

.parent-feedback-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 2px 13px;
  align-items: center;
  margin: 18px 0 10px;
  padding: 15px;
  border: 2px solid rgba(79, 139, 103, 0.18);
  border-radius: 22px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(239, 249, 235, 0.98), rgba(230, 245, 250, 0.95));
  box-shadow: 0 8px 20px rgba(50, 98, 74, 0.08);
  text-decoration: none;
}

.parent-feedback-card > span:first-child {
  display: grid;
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: var(--green);
  font-size: 1.35rem;
  font-weight: 900;
}

.parent-feedback-card > span:nth-child(2) {
  display: grid;
}

.parent-feedback-card strong {
  font-size: 0.98rem;
}

.parent-feedback-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.parent-feedback-card em {
  grid-column: 2;
  color: var(--green-dark);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 900;
}

.parent-feedback-card:hover {
  border-color: rgba(79, 139, 103, 0.38);
  transform: translateY(-1px);
}

#installInstructions {
  margin: 22px 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--white);
}

#installInstructions ol { margin: 0; padding-left: 22px; }
#installInstructions li + li { margin-top: 9px; }

@media (max-width: 820px) {
  .welcome-screen {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
    padding-top: 38px;
  }

  .welcome-copy { text-align: center; }
  .welcome-lead { margin-right: auto; margin-left: auto; }
  .steppe-scene { min-height: 480px; }
  .mascot-hero { right: 2%; bottom: 0; width: min(56%, 300px); }
  .hero-grid { grid-template-columns: 1fr; width: min(480px, 100%); }
  .hero-card { grid-template-columns: 88px 1fr 34px; min-height: 120px; border-radius: 40px 55px 37px 49px / 46px 38px 54px 42px; text-align: left; }
  .hero-symbol { grid-column: 1; grid-row: 1 / 3; width: 78px; height: 78px; margin: 0; border-radius: 25px; font-size: 2.4rem; }
  .hero-card strong { grid-column: 2; grid-row: 1; align-self: end; justify-self: start; }
  .hero-card small { grid-column: 2; grid-row: 2; align-self: start; justify-self: start; }
  .choice-tick { position: static; display: grid; grid-column: 3; grid-row: 1 / 3; opacity: 0; }
  .hero-card[aria-checked="true"] .choice-tick { opacity: 1; }

  .lesson-companion {
    width: min(100%, 150px);
    margin-top: 56px;
  }
}

@media (max-width: 620px) {
  .kids-shell { padding-right: 14px; padding-left: 14px; }
  .mini-brand small { display: none; }
  .mini-brand strong { font-size: 0.88rem; }
  .brand-sun { width: 38px; height: 38px; flex-basis: 38px; }
  .star-counter { min-width: 58px; padding: 0 9px; }
  .round-button, .star-counter, .age-badge { height: 42px; }
  .welcome-copy h1 { font-size: clamp(2.7rem, 14vw, 4.4rem); }
  .welcome-lead { font-size: 1rem; }
  .welcome-copy .big-button { width: 100%; }
  .welcome-feedback-button { width: 100%; }
  .quiet-note { padding: 0 20px; }
  .steppe-scene { min-height: 410px; border-width: 5px; border-radius: 42px 57px 46px 52px / 35px 46px 39px 52px; }
  .mascot-hero { right: 0; bottom: 0; width: min(63%, 250px); }
  .scene-sun { width: 70px; }
  .hero-screen { padding-top: 25px; }
  .age-screen { padding-top: 24px; }
  .age-group { padding: 14px; border-radius: 28px 38px 27px 35px; }
  .age-group-action { min-width: 44px; justify-content: center; padding: 0 10px; font-size: 0; }
  .age-group-action strong { font-size: 1.08rem; }
  .screen-heading h1, .map-heading h1, .result-content h1 { font-size: 2.45rem; }
  .map-heading { align-items: flex-end; }
  .map-heading .eyebrow { margin-bottom: 6px; }
  .hero-token { width: 58px; height: 58px; flex-basis: 58px; border-radius: 20px; font-size: 1.7rem; }
  .adventure-map { min-height: 780px; padding: 22px 14px; border-width: 5px; border-radius: 42px 55px 39px 50px / 48px 39px 56px 42px; }
  .adventure-map[data-adventure-count="7"] { min-height: 1075px; }
  .adventure-map[data-adventure-count="10"] { min-height: 1495px; }
  .adventure-map[data-adventure-count="11"] { min-height: 1640px; }
  .map-path { inset: 70px 5% 30px; width: auto; height: auto; transform: none; }
  .map-stop { width: min(292px, calc(100% - 46px)); grid-template-columns: 68px minmax(0, 1fr); gap: 5px; padding: 7px 9px 7px 3px; }
  .stop-one { top: 70px; left: 24px; }
  .stop-two { top: 210px; right: 24px; }
  .stop-three { top: 350px; left: 24px; }
  .stop-four { top: 490px; right: 24px; }
  .stop-five { top: 630px; left: 24px; }
  .stop-six { top: 770px; right: 24px; }
  .stop-seven { top: 910px; left: 24px; }
  .stop-eight { top: 1050px; right: 24px; }
  .stop-nine { top: 1190px; left: 24px; }
  .stop-ten { top: 1330px; right: 24px; }
  .stop-eleven { top: 1470px; left: 24px; }
  .map-stop::before { left: 48px; }
  .stop-icon { width: 68px; height: 68px; font-size: 1.55rem; }
  .color-wheel-icon { width: 47px; height: 47px; }
  .color-wheel-dot { width: 27px; height: 27px; border-width: 3px; }
  .stop-copy { padding-right: 29px; }
  .map-mascot { right: -3%; width: min(36%, 165px); }
  .map-tulip { right: 22%; }
  .lesson-screen { padding-top: 12px; }
  .lesson-header { margin-bottom: 15px; }
  .lesson-stage {
    grid-template-columns: minmax(62px, 72px) minmax(0, 1fr) minmax(62px, 72px);
    align-items: end;
    gap: 3px;
  }
  .lesson-content { display: contents; }
  .lesson-companion {
    width: 100%;
    max-width: 72px;
    align-self: end;
    grid-row: 1;
    margin-top: 0;
    filter: drop-shadow(0 7px 6px rgba(63, 67, 38, 0.14));
  }
  .lesson-companion-girl { grid-column: 1; }
  .lesson-companion-boy { grid-column: 3; }
  .guide-message {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 4px;
    padding: 10px 9px;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) 34px;
    font-size: 0.72rem;
  }
  .guide-message::before,
  .guide-message::after { width: 16px; height: 15px; }
  .replay-voice-button { width: 34px; height: 34px; }
  .challenge-card {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .lesson-next {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .challenge-card { padding: 26px 20px; border-width: 5px; border-radius: 37px 28px 42px 31px / 31px 40px 29px 38px; }
  .challenge-card h1 { font-size: 1.85rem; }
  .answer-button { min-height: 60px; }
  .answer-button.picture-answer { grid-template-columns: 66px 1fr; min-height: 88px; }
  .answer-button.color-answer { grid-template-columns: 70px 1fr; min-height: 94px; }
  .picture-symbol { width: 60px; height: 60px; font-size: 2.35rem; }
  .picture-canvas { width: 60px; height: 60px; }
  .color-choice-swatch { width: 62px; border-width: 5px; }
  .echo-stage { min-height: 330px; }
  .echo-button { min-height: 320px; padding: 22px; border-radius: 50%; }
  .echo-visual { width: clamp(190px, 60vw, 280px); }
  .toddler-mode .echo-stage { min-height: 300px; }
  .toddler-mode .echo-button {
    min-height: 292px;
    padding: 18px;
    border-radius: 39px 47px 36px 44px / 43px 35px 48px 39px;
  }
  .toddler-mode .echo-visual { width: min(44vw, 180px); }
  .result-content { padding: 34px 22px; border-width: 5px; border-radius: 34px; }
  .reward-medal { width: 100px; height: 100px; font-size: 3.2rem; }
  .dialog-card { padding: 32px 22px 24px; }
  .parent-facts { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .mini-brand > span:last-child { display: none; }
  .mini-brand { gap: 7px; }
  .age-badge span { display: none; }
  .age-badge { min-width: 42px; padding: 0 6px; }
  .sound-button { display: none; }
  .hero-card { grid-template-columns: 75px 1fr 28px; padding: 16px; }
  .hero-symbol { width: 68px; height: 68px; }
  .stop-copy strong { font-size: 0.92rem; }
  .map-stop { width: calc(100% - 30px); }
  .stop-one, .stop-three, .stop-five, .stop-seven, .stop-nine, .stop-eleven { left: 14px; }
  .stop-two, .stop-four, .stop-six, .stop-eight, .stop-ten { right: 14px; }
}

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

  .character-hand {
    transform: none !important;
  }
}
