@font-face {
  font-family: "Baloo 2";
  src: url("/assets/Baloo2.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #29233a;
  --soft-ink: #665f73;
  --paper: #fffdf8;
  --line: #dfd6ca;
  --coral: #ff6b4a;
  --coral-dark: #bd351d;
  --teal: #2f9f91;
  --yellow: #ffd44d;
  --blue: #4aa8d8;
  --violet: #6e73d9;
  --green: #49a969;
  --pink: #e96393;
  --shadow: 0 6px 0 rgba(41, 35, 58, 0.13);
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0;
}

button, input, select { font: inherit; letter-spacing: 0; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 4px solid #176da1;
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.topbar {
  position: relative;
  z-index: 1;
  min-height: 68px;
  padding: 9px max(16px, env(safe-area-inset-right)) 9px max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border-bottom: 2px solid var(--line);
}

.brand-button {
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.brand-button img { flex: 0 0 auto; border-radius: 8px; }
.brand-button span { min-width: 0; }
.brand-button b, .brand-button small { display: block; white-space: nowrap; }
.brand-button b { font-size: 22px; line-height: 1; }
.brand-button small { margin-top: 3px; color: var(--soft-ink); font-size: 12px; }

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

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  font-family: sans-serif;
  font-size: 21px;
  font-weight: 800;
  cursor: pointer;
}

.icon-button:active { transform: translateY(2px); }
.icon-button.is-muted { color: #9f99a7; background: #f2f0ed; }

.star-counter, .play-stars {
  height: 38px;
  min-width: 70px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid #e0ad13;
  border-radius: 19px;
  background: #fff2aa;
  color: #744e00;
  font-size: 16px;
  font-weight: 800;
}

.star-counter span, .play-stars span { color: #e5a900; font-family: sans-serif; }

.view { width: 100%; }
.launcher-view { min-height: calc(100svh - 68px); }

.welcome-band {
  min-height: 210px;
  padding: 38px max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background-color: #dff3ff;
  background-image: url("/assets/ui/kids-icon.svg");
  background-repeat: no-repeat;
  background-size: 180px;
  background-position: calc(50% + 290px) center;
  border-bottom: 8px solid var(--yellow);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--coral-dark);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.welcome-band h1 { margin: 0; font-size: 46px; line-height: 1; }
.welcome-line { margin: 9px 0 0; color: #47405a; font-size: 22px; font-weight: 600; }

.daily-badge {
  width: 142px;
  min-height: 84px;
  padding: 13px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 3px solid #41394e;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
}

.daily-badge span { color: var(--soft-ink); font-size: 13px; }
.daily-badge strong { color: var(--coral-dark); font-size: 20px; }

.age-filter {
  width: min(560px, calc(100% - 32px));
  margin: 24px auto;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #f2eee8;
}

.age-filter button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--soft-ink);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.age-filter button.is-selected { background: #ffffff; color: var(--ink); box-shadow: 0 2px 0 rgba(41,35,58,.14); }

.app-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.app-launch {
  min-width: 0;
  min-height: 244px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  border: 3px solid #332d43;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  animation: appEnter 200ms both;
  animation-delay: var(--delay);
}

.app-launch[hidden] { display: none; }
.app-launch:hover { transform: translateY(-4px); box-shadow: 0 10px 0 rgba(41,35,58,.13); }
.app-launch:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(41,35,58,.13); }

.app-art {
  width: 100%;
  aspect-ratio: 1.25;
  overflow: hidden;
  border: 2px solid rgba(41,35,58,.16);
  border-radius: 6px;
  background: #f6f3ec;
}

.app-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.app-copy { min-width: 0; display: block; padding: 0 4px 3px; }
.app-copy b, .app-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-copy b { font-size: 22px; line-height: 1.1; }
.app-copy small { margin-top: 5px; color: var(--soft-ink); font-size: 13px; font-weight: 700; }

.app-grid-featured { max-width: 980px; grid-template-columns: 1fr; padding-top: 22px; }
.app-launch-featured {
  min-height: 390px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: stretch;
  gap: 24px;
  background: #f4fbff;
}
.app-launch-featured .app-art { height: 100%; aspect-ratio: auto; background: #dff3ff; }
.app-launch-featured .app-copy { padding: 26px 22px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.app-launch-featured .app-copy b { margin-top: 8px; font-size: 42px; white-space: normal; }
.app-launch-featured .app-copy small { margin-top: 9px; font-size: 17px; white-space: normal; }
.app-ready { color: #a6321d; font-size: 13px; font-weight: 900; text-transform: uppercase; }
.app-play { min-height: 48px; margin-top: 28px; padding: 9px 20px; display: inline-flex; align-items: center; gap: 14px; border: 3px solid #332d43; border-radius: 8px; background: var(--coral); color: #fff; box-shadow: 0 4px 0 #8e2d1e; font-size: 18px; font-weight: 900; }

.app-pawpop:hover img { animation: pawBounce 650ms ease-in-out infinite alternate; }
.app-who:hover img { animation: whoTilt 700ms ease-in-out infinite alternate; }
.app-garden:hover img { animation: plantGrow 900ms ease-in-out infinite alternate; transform-origin: 50% 85%; }
.app-rider:hover img { animation: bikeRoll 600ms ease-in-out infinite alternate; }
.app-brush:hover img { animation: brushWiggle 450ms ease-in-out infinite alternate; }
.app-feelings:hover img { animation: facePulse 900ms ease-in-out infinite alternate; }
.app-bubbles:hover img { animation: bubbleFloat 1000ms ease-in-out infinite alternate; }
.app-shop:hover img { animation: shopHop 700ms ease-in-out infinite alternate; }

.launcher-footer {
  min-height: 76px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 22px;
  color: #e8e2ef;
  background: #29233a;
  font-size: 13px;
  text-align: center;
}
.launcher-footer a { color: #ffd36a; font-weight: 800; }

.play-view { min-height: calc(100svh - 68px); background: #f8f6f1; }

.playbar {
  min-height: 70px;
  padding: 10px max(16px, calc((100% - 1060px) / 2));
  display: grid;
  grid-template-columns: 44px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border-bottom: 2px solid var(--line);
  background: #ffffff;
}
.playbar img { border: 2px solid var(--line); border-radius: 8px; }
.playbar h1, .playbar p { margin: 0; }
.playbar h1 { overflow: hidden; font-size: 24px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.playbar p { margin-top: 4px; color: var(--soft-ink); font-size: 12px; }

.game-mount { min-height: calc(100svh - 138px); }
.game-loading { min-height: calc(100svh - 138px); display: grid; place-content: center; justify-items: center; gap: 14px; background: #eef8ff; color: var(--ink); text-align: center; }
.game-loading img { width: 110px; height: 110px; border: 3px solid #332d43; border-radius: 8px; animation: pawBounce 650ms ease-in-out infinite alternate; }
.game-loading b { font-size: 22px; }
.game-loading.is-error img { display: none; }
.game-shell { min-height: inherit; padding: 26px max(18px, calc((100% - 1060px) / 2)) 54px; }
.game-shell h2, .game-shell h3, .game-shell p { margin-top: 0; }
.game-heading { margin-bottom: 20px; text-align: center; }
.game-heading h2 { margin-bottom: 3px; font-size: 32px; line-height: 1.1; }
.game-heading p { margin-bottom: 0; color: var(--soft-ink); font-size: 15px; }

.mode-switch {
  width: min(430px, 100%);
  margin: 0 auto 18px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #ece8e1;
}
.mode-switch button { min-height: 42px; border: 0; border-radius: 6px; background: transparent; font-weight: 800; cursor: pointer; }
.mode-switch button.is-active { background: #ffffff; color: var(--coral-dark); }

.primary-command, .secondary-command, .game-command {
  min-height: 46px;
  padding: 8px 18px;
  border: 3px solid #332d43;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}
.primary-command, .game-command { background: var(--coral); color: #ffffff; box-shadow: 0 4px 0 #8e2d1e; }
.secondary-command { background: #ffffff; color: var(--ink); box-shadow: 0 4px 0 #c5bbb0; }
.primary-command:active, .secondary-command:active, .game-command:active { transform: translateY(3px); box-shadow: none; }

.feedback { min-height: 28px; margin: 12px 0 0; color: var(--soft-ink); font-weight: 700; text-align: center; }
.feedback.is-good { color: #16713a; }
.feedback.is-try { color: #a23b25; }

.pawpop-shell { background: #e7f5ff; }
.animal-stage {
  min-height: 230px;
  padding: 20px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  border: 3px solid #332d43;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}
.animal-stage img { width: 170px; height: 170px; object-fit: contain; }
.animal-stage h2 { margin-bottom: 2px; font-size: 36px; }
.animal-stage .sound-word { color: var(--coral-dark); font-size: 22px; font-weight: 800; }
.animal-stage .fact { max-width: 620px; margin: 10px 0 0; color: var(--soft-ink); font-size: 15px; }
.animal-stage.is-popping img { animation: stagePop 420ms ease-out; }

.animal-picker {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.animal-button {
  min-width: 0;
  aspect-ratio: .92;
  padding: 8px 5px;
  overflow: hidden;
  border: 2px solid #42394e;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}
.animal-button img { width: 72%; aspect-ratio: 1; object-fit: contain; }
.animal-button b { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.animal-button.is-wrong { animation: shake 330ms ease-in-out; background: #ffd9d2; }
.animal-button.is-correct { background: #ccefcf; }

/* Full Animal Sounds game ------------------------------------------------ */
.animal-sounds-game {
  --as-surface: #ffffff;
  --as-ink: #29233a;
  --as-soft: #665f73;
  --as-line: #d8d0c7;
  min-height: calc(100svh - 138px);
  padding: 22px max(16px, calc((100% - 1180px) / 2)) 70px;
  color: var(--as-ink);
  background-color: #eef8ff;
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(57, 114, 152, .05) 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, rgba(57, 114, 152, .05) 31px 32px);
}
.animal-sounds-game.is-night {
  --as-surface: #24253c;
  --as-ink: #f5f1ff;
  --as-soft: #bbb4d0;
  --as-line: #454762;
  background-color: #171829;
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(186, 179, 225, .04) 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, rgba(186, 179, 225, .04) 31px 32px);
}

.as-stage {
  --stage-accent: #9ad0ff;
  min-height: 310px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px clamp(22px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(320px, 1.2fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  border: 3px solid #332d43;
  border-radius: 8px;
  background: #dff3ff;
  box-shadow: 0 8px 0 rgba(41, 35, 58, .16);
}
.as-stage::after { content: ""; position: absolute; z-index: -2; left: 0; right: 0; bottom: 0; height: 66px; background: #bde3ad; border-top: 3px solid rgba(48, 103, 61, .18); }
.is-night .as-stage { background: #292746; border-color: #0e0f1a; }
.is-night .as-stage::after { background: #292f47; border-top-color: #4b5273; }
.as-stage-sky { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.as-cloud { position: absolute; width: 118px; height: 35px; border-radius: 999px; background: rgba(255,255,255,.75); }
.as-cloud::before, .as-cloud::after { content: ""; position: absolute; bottom: 0; border-radius: 50%; background: inherit; }
.as-cloud::before { width: 54px; height: 54px; left: 18px; }
.as-cloud::after { width: 72px; height: 72px; right: 8px; }
.as-cloud-one { top: 46px; left: 6%; animation: asCloudDrift 22s ease-in-out infinite alternate; }
.as-cloud-two { top: 86px; right: 8%; transform: scale(.72); animation: asCloudDrift 28s ease-in-out infinite alternate-reverse; }
.is-night .as-cloud { opacity: .13; }
.as-star { position: absolute; color: #fff4a3; font-family: sans-serif; font-size: 25px; animation: asTwinkle 1.8s ease-in-out infinite alternate; }
.as-star-one { top: 40px; left: 47%; }
.as-star-two { top: 88px; right: 18%; animation-delay: 500ms; }
.as-star-three { top: 28px; right: 4%; animation-delay: 900ms; }
.animal-sounds-game:not(.is-night) .as-star { opacity: .18; }

.as-stage-art { min-width: 0; position: relative; display: grid; place-items: center; }
.as-image-halo { width: min(250px, 100%); aspect-ratio: 1; position: relative; z-index: 2; display: grid; place-items: center; border: 6px solid rgba(255,255,255,.94); border-radius: 50%; background: var(--stage-accent); box-shadow: 0 12px 0 rgba(41,35,58,.13); }
.as-image-halo img { width: 76%; height: 76%; object-fit: contain; transform-origin: 50% 70%; }
.as-sound-ring { width: 78%; aspect-ratio: 1; position: absolute; z-index: 1; border: 5px solid var(--stage-accent); border-radius: 50%; opacity: 0; }
.as-ring-two { width: 94%; }
.as-stage.is-sounding .as-image-halo img { animation: asAnimalPop 520ms ease-out; }
.as-stage.is-sounding .as-ring-one { animation: asRing 700ms ease-out; }
.as-stage.is-sounding .as-ring-two { animation: asRing 700ms 120ms ease-out; }

.as-stage-copy { min-width: 0; position: relative; z-index: 2; }
.as-stage-label { margin: 0 0 2px; color: #8f321f; font-size: 13px; font-weight: 900; text-transform: uppercase; }
.is-night .as-stage-label { color: #ffb79f; }
.as-stage-copy h2 { max-width: 650px; margin: 0; font-size: clamp(34px, 5vw, 57px); line-height: 1; }
.as-sound-word { margin: 9px 0 0; color: #aa351d; font-size: clamp(20px, 2.6vw, 28px); font-weight: 900; }
.is-night .as-sound-word { color: #ff9d7f; }
.as-fact { max-width: 650px; min-height: 48px; margin: 12px 0 0; color: var(--as-soft); font-size: 17px; }
.as-replay, .as-hear-again { min-height: 46px; margin-top: 12px; padding: 8px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 3px solid #332d43; border-radius: 8px; background: #ff6b4a; color: #fff; box-shadow: 0 4px 0 #8e2d1e; cursor: pointer; }
.as-replay:disabled { opacity: .42; cursor: default; box-shadow: none; }

.as-command-bar { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.as-mode-tabs { width: min(460px, calc(100% - 58px)); padding: 4px; display: grid; grid-template-columns: repeat(2, 1fr); border: 2px solid var(--as-line); border-radius: 8px; background: #e4e0da; }
.is-night .as-mode-tabs { background: #303149; }
.as-mode-tabs button { min-height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--as-soft); font-weight: 900; cursor: pointer; }
.as-mode-tabs button.is-active { background: var(--as-surface); color: var(--as-ink); box-shadow: 0 2px 0 rgba(41,35,58,.14); }
.as-theme-toggle { width: 48px; height: 48px; padding: 0; display: grid; place-items: center; border: 2px solid var(--as-line); border-radius: 50%; background: var(--as-surface); color: var(--as-ink); font-family: sans-serif; font-size: 22px; cursor: pointer; }

.as-game-status { width: min(680px, 100%); min-height: 72px; margin: 16px auto 0; padding: 10px 14px; display: grid; grid-template-columns: minmax(150px, 1.4fr) repeat(3, minmax(65px, .6fr)); align-items: center; gap: 10px; border: 3px solid #332d43; border-radius: 8px; background: #fff1a8; box-shadow: 0 5px 0 rgba(41,35,58,.15); }
.as-game-status[hidden] { display: none; }
.is-night .as-game-status { background: #34304f; border-color: #0e0f1a; }
.as-game-status > div { min-width: 0; text-align: center; }
.as-game-status small, .as-game-status b { display: block; }
.as-game-status small { color: var(--as-soft); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.as-game-status b { font-size: 23px; }
.as-hear-again { width: 100%; margin: 0; }

.as-category-rail { margin: 24px 0 0; padding: 2px 2px 10px; display: flex; gap: 9px; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; }
.as-category-rail button { min-width: 138px; min-height: 58px; padding: 7px 10px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 8px; flex: 0 0 auto; scroll-snap-align: start; border: 2px solid var(--as-line); border-radius: 8px; background: var(--as-surface); color: var(--as-ink); text-align: left; cursor: pointer; }
.as-category-rail button.is-active { border-color: #332d43; background: #fff1a8; box-shadow: 0 4px 0 rgba(41,35,58,.14); }
.is-night .as-category-rail button.is-active { border-color: #d8d1ee; background: #3e3a59; }
.as-category-rail img { width: 40px; height: 40px; object-fit: contain; }
.as-category-rail b, .as-category-rail small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-category-rail b { font-size: 13px; }
.as-category-rail small { color: var(--as-soft); font-size: 11px; }
.as-heart-icon { color: #e04b75; font-family: sans-serif; font-size: 27px; text-align: center; }

.as-collection-bar { margin-top: 20px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.as-grid-kicker { margin: 0; color: #a6321d; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.is-night .as-grid-kicker { color: #ffab91; }
.as-grid-title { margin: 2px 0 0; font-size: clamp(25px, 3.2vw, 37px); line-height: 1.05; }
.as-progress { min-height: 44px; padding: 8px 14px; flex: 0 0 auto; display: flex; align-items: center; gap: 5px; border: 2px solid #d9aa16; border-radius: 22px; background: #fff1a8; color: #674600; font-size: 15px; }
.as-progress > span:first-child { color: #e6a900; font-family: sans-serif; }
.as-feedback { min-height: 27px; margin: 10px 0 4px; color: var(--as-soft); font-size: 15px; font-weight: 800; text-align: center; }
.as-feedback.is-good { color: #17713b; }
.as-feedback.is-try { color: #ad3a25; }
.is-night .as-feedback.is-good { color: #8ee4a7; }
.is-night .as-feedback.is-try { color: #ff9e89; }

.as-animal-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.as-animal-tile { min-width: 0; aspect-ratio: .91; position: relative; overflow: hidden; border: 2px solid #332d43; border-radius: 8px; background: var(--tile-color); box-shadow: 0 5px 0 rgba(41,35,58,.14); animation: asTileEnter 220ms both; animation-delay: var(--tile-delay); }
.as-animal-tile { content-visibility: auto; contain: layout paint style; contain-intrinsic-size: 170px 186px; }
.as-animal-tile::before { content: ""; position: absolute; left: 10%; right: 10%; top: 8%; height: 35%; border-radius: 50%; background: rgba(255,255,255,.34); pointer-events: none; }
.as-animal-main { width: 100%; height: 100%; padding: 8px 6px 10px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; border: 0; background: transparent; color: #29233a; cursor: pointer; }
.as-animal-picture { width: min(76%, 112px); aspect-ratio: 1; margin: auto auto 3px; display: grid; place-items: center; }
.as-animal-picture img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 70%; }
.as-animal-name, .as-animal-word { max-width: 100%; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-animal-name { font-size: clamp(14px, 1.6vw, 18px); font-weight: 900; }
.as-animal-word { margin-top: 2px; color: #594f62; font-size: clamp(10px, 1.2vw, 13px); font-weight: 700; }
.as-favorite { width: 34px; height: 34px; padding: 0; position: absolute; z-index: 3; top: 7px; right: 7px; display: grid; place-items: center; border: 2px solid rgba(51,45,67,.3); border-radius: 50%; background: rgba(255,255,255,.88); color: #6c6372; font-family: sans-serif; font-size: 21px; cursor: pointer; }
.as-favorite.is-favorite { color: #d92f65; border-color: #d92f65; }
.as-found-mark { position: absolute; top: 11px; left: 11px; color: #d99b00; font-family: sans-serif; font-size: 17px; opacity: 0; transform: scale(.6); }
.as-animal-tile.is-found .as-found-mark { opacity: 1; transform: scale(1); }
.as-animal-tile.is-selected { outline: 5px solid #fff; box-shadow: 0 0 0 5px #332d43, 0 8px 0 rgba(41,35,58,.16); }
.as-animal-tile:hover .as-animal-picture img { animation: pawBounce 650ms ease-in-out infinite alternate; }
.as-animal-tile.is-wrong { animation: shake 330ms ease-in-out; background: #ffb7aa; }
.as-animal-tile.is-correct { outline: 6px solid #42a85e; }
.is-game-mode .as-favorite { display: none; }

.as-empty { min-height: 260px; padding: 40px 20px; border: 3px dashed var(--as-line); border-radius: 8px; background: var(--as-surface); text-align: center; }
.as-empty[hidden] { display: none; }
.as-empty > span { color: #df567e; font-family: sans-serif; font-size: 70px; }
.as-empty h3 { margin: 8px 0 4px; font-size: 27px; }
.as-empty p { color: var(--as-soft); }

@keyframes asAnimalPop { 0% { transform: scale(.72) rotate(-4deg); } 65% { transform: scale(1.09) rotate(2deg); } 100% { transform: scale(1); } }
@keyframes asRing { 0% { opacity: .8; transform: scale(.45); } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes asCloudDrift { to { transform: translateX(46px); } }
@keyframes asTwinkle { to { opacity: .35; transform: scale(.72); } }
@keyframes asTileEnter { from { opacity: 0; filter: saturate(.45); } to { opacity: 1; filter: saturate(1); } }

.who-shell { background: #fff7e4; }
.voice-controls { display: flex; justify-content: center; margin-bottom: 18px; }
.voice-button { min-width: 200px; }
.voice-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 20px; }
.voice-choice {
  min-height: 360px;
  padding: 18px;
  border: 3px solid #332d43;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.voice-choice img { width: min(230px, 80%); aspect-ratio: 1; object-fit: contain; }
.voice-choice b { display: block; font-size: 30px; }
.voice-choice.cat { background: #ffd9e7; }
.voice-choice.dog { background: #cceee8; }
.voice-choice.is-speaking img { animation: stagePop 500ms ease-out; }
.voice-score { margin-top: 18px; text-align: center; font-weight: 800; }

.garden-shell { background: #edf8df; }
.garden-tool { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(300px, 1fr); gap: 22px; align-items: stretch; }
.garden-visual, .garden-actions { border: 3px solid #332d43; border-radius: 8px; background: #ffffff; box-shadow: var(--shadow); }
.garden-visual { min-height: 450px; display: grid; place-items: center; overflow: hidden; }
.garden-visual img { width: min(390px, 90%); height: 390px; object-fit: contain; transform-origin: 50% 85%; }
.garden-visual.is-growing img { animation: gardenCelebrate 850ms ease-out; }
.garden-actions { padding: 24px; }
.garden-actions h3 { margin-bottom: 8px; font-size: 25px; }
.care-meter { height: 16px; margin: 12px 0 20px; overflow: hidden; border: 2px solid #2f7244; border-radius: 8px; background: #e2e5de; }
.care-meter span { height: 100%; display: block; background: #52b86d; transition: width 300ms ease; }
.care-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.care-buttons button { min-height: 78px; padding: 8px; border: 2px solid #356445; border-radius: 8px; background: #d9f0d6; font-weight: 800; cursor: pointer; }
.grownup-mission { margin-top: 22px; padding-top: 18px; border-top: 2px solid var(--line); color: var(--soft-ink); }
.grownup-mission b { display: block; color: var(--green); }

.rider-shell { background: #e5f2ff; }
.rider-tool { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 22px; align-items: start; }
.rider-visual { padding: 16px; border: 3px solid #332d43; border-radius: 8px; background: #ffffff; box-shadow: var(--shadow); }
.rider-visual img { width: 100%; display: block; }
.checklist, .quiz-panel { padding: 22px; border: 3px solid #332d43; border-radius: 8px; background: #ffffff; box-shadow: var(--shadow); }
.checklist h3, .quiz-panel h3 { font-size: 25px; }
.check-items { display: grid; gap: 9px; }
.check-item { min-height: 55px; padding: 8px 12px; display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); border-radius: 8px; background: #ffffff; font-weight: 800; text-align: left; cursor: pointer; }
.check-item span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border: 2px solid #766e7d; border-radius: 50%; }
.check-item.is-done { background: #d7f2d9; border-color: #4c9f5c; }
.check-item.is-done span { color: #ffffff; background: #3f9954; border-color: #3f9954; }
.quiz-panel { margin-top: 18px; }
.quiz-answers { display: grid; gap: 9px; }
.quiz-answers button { min-height: 50px; border: 2px solid #4b5f77; border-radius: 8px; background: #e7f2ff; font-weight: 700; cursor: pointer; }

.brush-shell { background: #e8f8f5; }
.brush-tool { min-height: 500px; display: grid; grid-template-columns: 330px minmax(280px, 1fr); gap: 28px; align-items: center; }
.brush-clock {
  --progress: 0deg;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--teal) var(--progress), #cde4df var(--progress));
  border: 4px solid #2a5f59;
}
.brush-clock::before { content: ""; width: 245px; height: 245px; position: absolute; border-radius: 50%; background: #ffffff; }
.clock-copy { position: relative; z-index: 1; text-align: center; }
.clock-copy strong { display: block; font-family: monospace; font-size: 48px; }
.clock-copy span { color: var(--soft-ink); font-size: 14px; }
.brush-guide { padding: 28px; border: 3px solid #332d43; border-radius: 8px; background: #ffffff; box-shadow: var(--shadow); text-align: center; }
.brush-guide img { width: 180px; height: 180px; object-fit: contain; }
.brush-guide.is-running img { animation: brushWiggle 380ms ease-in-out infinite alternate; }
.brush-guide h3 { font-size: 28px; }
.timer-controls { display: flex; justify-content: center; gap: 10px; }

.feelings-shell { background: #fff5d9; }
.feeling-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.feeling-button { min-height: 115px; padding: 10px; border: 3px solid #44394c; border-radius: 8px; background: #ffffff; font-weight: 800; cursor: pointer; }
.feeling-button span { width: 54px; height: 54px; margin: 0 auto 6px; display: grid; place-items: center; border-radius: 50%; background: var(--face-color); font-family: sans-serif; font-size: 27px; }
.feeling-result { min-height: 245px; margin-top: 20px; padding: 25px; display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 24px; border: 3px solid #332d43; border-radius: 8px; background: #ffffff; box-shadow: var(--shadow); }
.feeling-result img { width: 150px; height: 150px; object-fit: contain; }
.feeling-result h3 { margin-bottom: 6px; font-size: 28px; }
.breathe-ring { width: 120px; height: 120px; margin: 18px auto 0; display: grid; place-items: center; border: 8px solid #6e73d9; border-radius: 50%; color: #4a4d9c; font-weight: 800; }
.breathe-ring.is-breathing { animation: breathe 8s ease-in-out infinite; }

.bubbles-shell { padding: 0; background: #eee9ff; }
.bubble-toolbar { min-height: 72px; padding: 12px max(18px, calc((100% - 1060px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #ffffff; border-bottom: 2px solid var(--line); }
.bubble-toolbar h2, .bubble-toolbar p { margin: 0; }
.bubble-toolbar h2 { font-size: 26px; }
.bubble-toolbar p { color: var(--soft-ink); font-size: 13px; }
.bubble-count { min-width: 90px; font-size: 20px; font-weight: 800; text-align: right; }
.bubble-field { position: relative; min-height: calc(100svh - 210px); overflow: hidden; touch-action: manipulation; }
.bubble {
  position: absolute;
  width: var(--size);
  height: var(--size);
  padding: 0;
  border: 4px solid rgba(255,255,255,.92);
  border-radius: 50%;
  background: var(--bubble-color);
  box-shadow: inset 15px 15px 0 rgba(255,255,255,.25), 0 7px 0 rgba(41,35,58,.12);
  cursor: pointer;
  animation: bubbleDrift var(--drift) ease-in-out infinite alternate;
}
.bubble::after { content: ""; width: 18%; height: 18%; position: absolute; top: 18%; left: 22%; border-radius: 50%; background: #ffffff; }
.bubble.is-popped { animation: bubblePop 180ms ease-out forwards; pointer-events: none; }

.shop-shell { background: #fff0d7; }
.shop-tool { display: grid; grid-template-columns: minmax(260px, 390px) 1fr; gap: 24px; align-items: stretch; }
.shop-item, .shop-register { padding: 24px; border: 3px solid #332d43; border-radius: 8px; background: #ffffff; box-shadow: var(--shadow); text-align: center; }
.shop-item img { width: min(260px, 90%); aspect-ratio: 1; object-fit: contain; }
.shop-item h3 { font-size: 29px; }
.price-tag { display: inline-block; min-width: 92px; padding: 8px 14px; border: 2px solid #7a5112; border-radius: 8px; background: #ffd44d; color: #684000; font-size: 26px; font-weight: 800; }
.shop-register h3 { font-size: 26px; }
.paid-total { margin: 18px 0; font-family: monospace; font-size: 42px; font-weight: 800; }
.coin-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.coin-button { aspect-ratio: 1; max-height: 130px; border: 4px solid #c58c10; border-radius: 50%; background: #ffd44d; color: #684000; font-size: 25px; font-weight: 900; cursor: pointer; box-shadow: 0 5px 0 #a16f08; }
.coin-button:active { transform: translateY(4px); box-shadow: none; }
.shop-actions { margin-top: 20px; display: flex; justify-content: center; gap: 10px; }

.fx-layer { position: fixed; inset: 0; z-index: 120; overflow: hidden; pointer-events: none; }
.confetti-piece { position: absolute; width: 12px; height: 18px; left: var(--x); top: var(--y); background: var(--color); animation: confettiFall 900ms ease-out forwards; transform: rotate(var(--rotate)); }

.toast {
  position: fixed;
  z-index: 130;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(520px, calc(100% - 28px));
  min-height: 54px;
  padding: 10px 12px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 2px solid #f0bd31;
  border-radius: 8px;
  background: #29233a;
  color: #ffffff;
  box-shadow: 0 7px 0 rgba(41,35,58,.2);
  font-size: 15px;
  font-weight: 700;
}
.toast button { min-height: 36px; padding: 5px 12px; border: 0; border-radius: 6px; background: #ffd44d; color: #392e12; font-weight: 800; cursor: pointer; }

.modal { width: min(480px, calc(100% - 28px)); padding: 0; border: 3px solid #332d43; border-radius: 8px; background: #ffffff; color: var(--ink); box-shadow: 0 12px 0 rgba(41,35,58,.18); }
.modal::backdrop { background: rgba(28, 23, 38, .72); }
.modal form { position: relative; padding: 30px; text-align: center; }
.modal h2 { margin: 8px 0 13px; font-size: 29px; }
.modal p { color: var(--soft-ink); }
.modal-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; padding: 0; border: 2px solid var(--line); border-radius: 50%; background: #ffffff; font-family: sans-serif; font-size: 25px; cursor: pointer; }
.parent-gate input { width: 120px; height: 52px; margin: 10px auto 14px; display: block; border: 3px solid #6e73d9; border-radius: 8px; text-align: center; font-size: 25px; font-weight: 800; }
.form-error { min-height: 24px; margin-bottom: 8px; color: #a43b26 !important; font-weight: 700; }
.setting-row { min-height: 74px; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--line); text-align: left; }
.setting-row b, .setting-row small { display: block; }
.setting-row small { margin-top: 3px; color: var(--soft-ink); font-size: 12px; }
.setting-row input { width: 28px; height: 28px; accent-color: var(--teal); }
.setting-row select { max-width: 150px; min-height: 42px; border: 2px solid var(--line); border-radius: 6px; background: #ffffff; }
.settings-modal .primary-command { width: 100%; margin-top: 22px; }
.privacy-command { margin-top: 17px; display: inline-block; color: var(--coral-dark); font-weight: 800; }
.stretch-figure { width: 90px; height: 120px; margin: 0 auto; position: relative; }
.stretch-figure span { width: 50px; height: 50px; position: absolute; top: 0; left: 20px; border-radius: 50%; background: #ffd44d; }
.stretch-figure i { width: 15px; height: 65px; position: absolute; top: 48px; left: 38px; background: #6e73d9; }
.stretch-figure i::before, .stretch-figure i::after { content: ""; width: 70px; height: 13px; position: absolute; top: 10px; left: -28px; background: #ff6b4a; transform: rotate(25deg); }
.stretch-figure i::after { transform: rotate(-25deg); }

.policy-body { background: #f6fbff; }
.policy-topbar {
  min-height: 68px;
  padding: 10px max(18px, calc((100% - 900px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--line);
  background: #ffffff;
}
.policy-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 21px; font-weight: 800; text-decoration: none; }
.policy-brand img { border-radius: 8px; }
.back-home { color: var(--coral-dark); font-weight: 800; text-underline-offset: 4px; }
.policy-page { width: min(820px, calc(100% - 36px)); margin: 0 auto; padding: 64px 0 86px; }
.policy-page h1 { margin: 0 0 22px; font-size: 52px; line-height: 1; }
.policy-page h2 { margin: 38px 0 7px; color: #3f3971; font-size: 27px; }
.policy-page p { color: #4f485b; }
.policy-page a { color: var(--coral-dark); font-weight: 800; }
.policy-footer { padding: 26px 18px; color: #e8e2ef; background: #29233a; text-align: center; font-size: 13px; }
.policy-footer p { margin: 0; }

@keyframes appEnter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pawBounce { to { transform: translateY(-8px) scale(1.03); } }
@keyframes whoTilt { to { transform: rotate(2deg); } }
@keyframes plantGrow { to { transform: scaleY(1.05) scaleX(.98); } }
@keyframes bikeRoll { to { transform: translateX(6px) rotate(1deg); } }
@keyframes brushWiggle { to { transform: rotate(3deg) translateX(4px); } }
@keyframes facePulse { to { transform: scale(1.025); } }
@keyframes bubbleFloat { to { transform: translateY(-7px); } }
@keyframes shopHop { to { transform: translateY(-5px); } }
@keyframes stagePop { 0% { transform: scale(.72); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes gardenCelebrate { 0% { transform: scale(.75); } 55% { transform: scale(1.1) rotate(2deg); } 100% { transform: scale(1); } }
@keyframes shake { 25% { transform: translateX(-9px); } 50% { transform: translateX(9px); } 75% { transform: translateX(-5px); } }
@keyframes breathe { 0%,100% { transform: scale(.78); opacity: .72; } 50% { transform: scale(1.18); opacity: 1; } }
@keyframes bubbleDrift { to { transform: translate(15px, -25px); } }
@keyframes bubblePop { to { transform: scale(1.5); opacity: 0; } }
@keyframes confettiFall { 0% { opacity: 1; transform: translate(0,0) rotate(var(--rotate)); } 100% { opacity: 0; transform: translate(var(--dx), 280px) rotate(540deg); } }

@media (max-width: 900px) {
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-grid-featured { grid-template-columns: 1fr; }
  .app-launch-featured { grid-template-columns: 1fr 280px; min-height: 330px; }
  .as-animal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .animal-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .garden-tool, .rider-tool, .shop-tool { grid-template-columns: 1fr; }
  .garden-visual { min-height: 350px; }
  .brush-tool { grid-template-columns: 1fr; }
  .feeling-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .topbar { min-height: 64px; }
  .brand-button b { font-size: 19px; }
  .brand-button small { display: none; }
  .top-actions { gap: 5px; }
  .star-counter { min-width: 58px; padding: 0 9px; }
  .icon-button { width: 39px; height: 39px; }

  .welcome-band {
    min-height: 190px;
    padding: 28px 18px;
    align-items: flex-start;
    background-size: 98px;
    background-position: calc(100% - 14px) 20px;
  }
  .welcome-band h1 { font-size: 34px; }
  .welcome-line { max-width: 230px; font-size: 18px; }
  .eyebrow { max-width: 240px; font-size: 11px; }
  .daily-badge { display: none; }

  .age-filter { margin: 18px auto; }
  .age-filter button { font-size: 13px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .app-grid-featured { grid-template-columns: 1fr; padding-top: 0; }
  .app-launch { min-height: 190px; padding: 8px; gap: 8px; }
  .app-launch-featured { min-height: 420px; display: flex; gap: 8px; }
  .app-launch-featured .app-art { height: auto; aspect-ratio: 1.28; }
  .app-launch-featured .app-copy { padding: 15px 12px; }
  .app-launch-featured .app-copy b { font-size: 31px; }
  .app-launch-featured .app-copy small { font-size: 14px; }
  .app-play { min-height: 43px; margin-top: 17px; padding: 7px 16px; }
  .app-art { aspect-ratio: 1; }
  .app-copy b { font-size: 18px; }
  .app-copy small { font-size: 11px; }

  .playbar { grid-template-columns: 40px 42px minmax(0, 1fr) auto; padding: 8px 12px; gap: 8px; }
  .playbar img { width: 42px; height: 42px; }
  .playbar h1 { font-size: 20px; }
  .play-stars { min-width: 52px; height: 34px; padding: 0 8px; }
  .game-shell { padding: 18px 12px 42px; }
  .game-heading h2 { font-size: 26px; }

  .animal-stage { min-height: 205px; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .animal-stage img { width: 112px; height: 112px; }
  .animal-stage h2 { font-size: 25px; }
  .animal-stage .sound-word { font-size: 18px; }
  .animal-stage .fact { font-size: 12px; }
  .animal-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .animal-button b { font-size: 12px; }

  .voice-choices { gap: 10px; }
  .voice-choice { min-height: 260px; padding: 10px; }
  .voice-choice b { font-size: 23px; }

  .garden-visual { min-height: 280px; }
  .garden-visual img { height: 270px; }
  .garden-actions, .checklist, .quiz-panel, .shop-item, .shop-register { padding: 16px; }
  .care-buttons { grid-template-columns: 1fr; }
  .care-buttons button { min-height: 54px; }
  .rider-tool { gap: 14px; }

  .brush-clock { width: 245px; height: 245px; }
  .brush-clock::before { width: 198px; height: 198px; }
  .clock-copy strong { font-size: 40px; }
  .brush-guide { padding: 17px; }
  .brush-guide img { width: 140px; height: 140px; }

  .feeling-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feeling-result { grid-template-columns: 100px 1fr; gap: 12px; padding: 16px; }
  .feeling-result img { width: 95px; height: 95px; }
  .feeling-result h3 { font-size: 23px; }

  .bubble-toolbar { padding: 10px 14px; }
  .bubble-toolbar h2 { font-size: 22px; }
  .bubble-toolbar p { max-width: 230px; }
  .bubble-field { min-height: calc(100svh - 200px); }

  .coin-button { font-size: 21px; }
  .modal form { padding: 26px 20px; }
  .animal-sounds-game { padding: 12px 10px 48px; }
  .as-stage { min-height: 244px; padding: 15px 13px 20px; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
  .as-stage::after { height: 45px; }
  .as-image-halo { width: 104px; border-width: 4px; }
  .as-stage-copy h2 { font-size: clamp(25px, 8vw, 34px); }
  .as-stage-label { font-size: 10px; }
  .as-sound-word { margin-top: 5px; font-size: 17px; }
  .as-fact { min-height: 35px; margin-top: 7px; font-size: 12px; }
  .as-replay { min-height: 38px; margin-top: 7px; padding: 5px 10px; font-size: 12px; }
  .as-command-bar { margin-top: 14px; }
  .as-mode-tabs button { min-height: 40px; font-size: 13px; }
  .as-theme-toggle { width: 44px; height: 44px; }
  .as-game-status { min-height: 65px; grid-template-columns: minmax(105px, 1.4fr) repeat(3, minmax(45px, .6fr)); padding: 8px; gap: 5px; }
  .as-hear-again { min-height: 39px; padding: 5px 8px; font-size: 12px; }
  .as-game-status b { font-size: 19px; }
  .as-category-rail { margin-top: 15px; }
  .as-category-rail button { min-width: 122px; min-height: 53px; grid-template-columns: 36px 1fr; }
  .as-category-rail img { width: 34px; height: 34px; }
  .as-collection-bar { margin-top: 14px; align-items: center; }
  .as-grid-title { font-size: 24px; }
  .as-progress { min-height: 38px; padding: 6px 10px; font-size: 12px; }
  .as-animal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .as-animal-tile { aspect-ratio: .88; }
  .as-animal-picture { width: 72%; }
  .as-animal-name { font-size: 14px; }
  .as-animal-word { font-size: 10px; }
  .as-favorite { width: 29px; height: 29px; top: 5px; right: 5px; font-size: 18px; }
  .as-found-mark { top: 8px; left: 8px; font-size: 14px; }
  .policy-topbar { min-height: 62px; padding: 8px 14px; }
  .policy-page { padding: 42px 0 64px; }
  .policy-page h1 { font-size: 38px; }
  .policy-page h2 { font-size: 23px; }
}

@media (max-width: 360px) {
  .topbar { min-height: 58px; padding: 7px 8px; gap: 6px; }
  .brand-button { gap: 6px; }
  .brand-button img { width: 36px; height: 36px; }
  .brand-button b { font-size: 17px; }
  .top-actions { gap: 4px; }
  .star-counter { min-width: 49px; height: 34px; padding: 0 6px; font-size: 14px; }
  .icon-button { width: 35px; height: 35px; font-size: 18px; }
  .welcome-band { padding: 24px 12px; background-size: 78px; }
  .welcome-band h1 { font-size: 30px; }
  .welcome-line { max-width: 190px; font-size: 16px; }
  .app-grid { width: calc(100% - 20px); gap: 8px; }
  .app-grid-featured { width: calc(100% - 16px); }
  .app-launch { min-height: 168px; padding: 6px; }
  .app-launch-featured { min-height: 390px; }
  .app-copy b { font-size: 16px; }

  .playbar { grid-template-columns: 35px 38px minmax(0, 1fr) auto; padding: 7px 8px; gap: 6px; }
  .playbar img { width: 38px; height: 38px; }
  .playbar h1 { font-size: 18px; }
  .play-stars { min-width: 46px; padding: 0 6px; }
  .game-shell { padding: 16px 8px 38px; }
  .mode-switch button { padding: 4px; font-size: 12px; }
  .animal-stage { grid-template-columns: 88px minmax(0, 1fr); gap: 8px; padding: 10px; }
  .animal-stage img { width: 84px; height: 84px; }
  .animal-stage h2 { font-size: 22px; }
  .animal-stage .sound-word { font-size: 16px; }
  .animal-picker { gap: 6px; }
  .animal-button { padding: 5px 3px; }
  .voice-choice { min-height: 220px; }
  .feeling-result { grid-template-columns: 76px minmax(0, 1fr); padding: 12px; }
  .feeling-result img { width: 72px; height: 72px; }
  .coin-row { gap: 6px; }
  .animal-sounds-game { padding-inline: 6px; }
  .as-stage { grid-template-columns: 88px minmax(0, 1fr); padding-inline: 9px; gap: 8px; }
  .as-image-halo { width: 84px; }
  .as-stage-copy h2 { font-size: 24px; }
  .as-fact { font-size: 11px; }
  .as-mode-tabs button { padding: 4px; font-size: 11px; }
  .as-game-status { grid-template-columns: 92px repeat(3, minmax(37px, 1fr)); }
  .as-hear-again { font-size: 10px; }
  .as-category-rail button { min-width: 112px; }
  .as-collection-bar { align-items: flex-start; }
  .as-progress { padding: 5px 7px; }
  .as-progress span:last-child { display: none; }
  .as-animal-grid { gap: 6px; }
}

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}

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