/* ---------- Lively Tommy ---------- */
#fox #eyes { transition: transform .18s ease-out; }
@keyframes breathe2 { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.022, .978); } }
#fox #bodyGroup, #fox #headBob { animation-name: breathe2; }
#fox .swish #tail { animation: wag .28s ease-in-out 4 !important; }
#foxMover { transform-origin: 50% 96%; }
#foxMover.r-knock { animation: knock 2.3s cubic-bezier(.3, .8, .4, 1) forwards; }
/* falls onto his side (shrunk a little so he fits the floor), bounces, lies dizzy, springs back up */
@keyframes knock {
  0% { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
  12% { transform: translate(3%, 0) rotate(10deg) scale(1, 1); }
  28% { transform: translate(42%, -16%) rotate(-86deg) scale(.62, .58); }
  33% { transform: translate(42%, -19%) rotate(-82deg) scale(.6, .6); }
  38% { transform: translate(42%, -16%) rotate(-86deg) scale(.6, .6); }
  72% { transform: translate(42%, -16%) rotate(-86deg) scale(.6, .6); }
  84% { transform: translate(0, -14%) rotate(8deg) scale(.96, 1.06); }
  92% { transform: translate(0, 0) rotate(-4deg) scale(1.05, .95); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
}
.rm #foxMover.r-knock { animation: rmpulse .6s ease !important; }

/* ---------- Tap sound picker ---------- */
.sound-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sound-chip { min-height: 64px; background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(80, 45, 20, .08); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 800; font-size: 12px; padding: 6px 4px; }
.sound-chip span { font-size: 22px; }
.sound-chip.on { background: #FFF1E3; box-shadow: inset 0 0 0 3px var(--accent); }
@media (min-width: 600px) { .sound-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Voice chooser ---------- */
.voice-row select { flex: 1; min-width: 0; min-height: 44px; font: inherit; font-weight: 800; font-size: 15px; border: 2px solid #EEDDCB; border-radius: 12px; padding: 0 10px; background: #fff; color: var(--ink); }
.voice-row .pill-btn { flex: none; min-height: 44px; }

/* ---------- More lessons ---------- */
.l-options.n2 { grid-template-columns: repeat(2, 1fr); max-width: 360px; }
.l-dots-row { display: block; font-size: 12px; letter-spacing: 1px; color: #F28C38; margin-top: 4px; }
.l-pattern { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; font-size: 44px; background: #fff; border-radius: 20px; padding: 10px 12px; box-shadow: var(--shadow); }
.l-pattern .q { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; border: 3px dashed #F28C38; color: #F28C38; font-size: 34px; font-weight: 900; }

/* ---------- More games ---------- */
.game-area.meadow { background: linear-gradient(#BFE7FF 0 22%, #9AD67A 22% 100%); }
.holes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18% 18px 18px; max-width: 420px; margin: 0 auto; }
.hole { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 0 0 50% 50%; }
.hole::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 6%; height: 28%; border-radius: 50%; background: #5B3A22; box-shadow: inset 0 6px 0 #3E2716; z-index: 0; }
.critter { position: absolute; left: 0; right: 0; bottom: 8%; font-size: 58px; line-height: 1; transform: translateY(110%); transition: transform .16s ease-out; z-index: 1; touch-action: none; }
.hole.up .critter { transform: translateY(0); }
.hole.booped .critter { transform: translateY(0) scale(1.2, .8); }
.game-area.pond { background: linear-gradient(#9ED6F5, #3F8FCB); }
.fish { position: absolute; font-size: 50px; line-height: 1; touch-action: none; padding: 6px; }
.shadow-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 14px; }
.shadow-big { font-size: 140px; line-height: 1.1; filter: brightness(0); opacity: .82; transition: filter .4s, opacity .4s; }
.shadow-big.reveal { filter: none; opacity: 1; }
.nbub { position: absolute; width: 78px; height: 78px; border-radius: 50%; font-size: 32px; font-weight: 900; color: #2D4A6B;
  background: radial-gradient(circle at 32% 28%, #fff 0 12%, rgba(255,255,255,.55) 13% 30%, rgba(160,210,255,.55) 60%, rgba(120,180,240,.75));
  border: 2px solid rgba(255,255,255,.9); box-shadow: 0 4px 12px rgba(40,90,150,.25); animation: bob 2.4s ease-in-out infinite; touch-action: none; }
.nbub.popped { animation: popout .25s ease-out forwards; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes popout { to { transform: scale(1.5); opacity: 0; } }
.rm .nbub { animation: none; }
@media (min-width: 600px) { .critter { font-size: 80px; } .holes { max-width: 560px; } .nbub { width: 96px; height: 96px; font-size: 38px; } }
