:root {
  --grass: #6db54a;
  --grass-deep: #4d9e3f;
  --sand: #f2ddab;
  --sand-edge: #d9b26a;
  --cream: #fdf7e3;
  --cream-edge: #ecd9a8;
  --ink: #4a3b28;
  --ink-soft: #7a6a50;
  --coral: #ff6b6b;
  --coral-dark: #e84c5a;
  --leaf: #58b04a;
  --gold: #f2c94c;
  --sky: #7ec8ff;
  --card-r: 28px;
  --font: "Baloo 2", "SF Pro Rounded", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, #79b951, #5da23e);
  overscroll-behavior: none;
  touch-action: manipulation;
}

#bg3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; }

#app { position: relative; z-index: 1; height: 100%; }

.screen {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
}
.screen.active { display: flex; animation: screenIn .45s cubic-bezier(.22,1.4,.36,1); }
.hidden { display: none !important; }

@keyframes screenIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

.glass {
  background: rgba(255, 252, 240, .78);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1.5px solid rgba(255, 255, 255, .85);
  box-shadow: 0 10px 34px rgba(58, 51, 30, .18), inset 0 1px 0 rgba(255,255,255,.7);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font);
  font-weight: 800;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  transition: transform .15s cubic-bezier(.22,1.6,.36,1), filter .15s;
  box-shadow: 0 6px 0 rgba(0,0,0,.16), 0 12px 24px rgba(58,51,30,.2);
  letter-spacing: .3px;
}
.btn:active { transform: scale(.93) translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.16); }
.btn-primary { background: linear-gradient(180deg, #ff8a5c, var(--coral-dark)); text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.btn-lg { font-size: 21px; padding: 16px 32px; }
.btn-xl { font-size: 25px; padding: 20px 46px; }
.btn-ghost { background: rgba(255,255,255,.9); color: var(--ink); box-shadow: 0 6px 0 rgba(58,51,30,.14); }
.btn-danger { background: linear-gradient(180deg, #ff7b54, #f4511e); }

.round-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: none; font-size: 19px; cursor: pointer; display: grid; place-items: center;
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.round-btn:active { transform: scale(.88); }

.pill {
  border: none; border-radius: 999px; font-family: var(--font); font-weight: 700;
  padding: 9px 16px; font-size: 16px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.pill:active { transform: scale(.92); }
.pill-gold { background: linear-gradient(180deg, #ffe08a, var(--gold)); color: #7a4b00; box-shadow: 0 4px 0 #cf9400, 0 10px 20px rgba(242,201,76,.4); }
.pill-pink { background: linear-gradient(180deg, #ff9ab3, #ff6b8a); box-shadow: 0 4px 0 #d94b63; font-size: 19px; }
.pill-blue { background: linear-gradient(180deg, #9bd4ff, #56aff2); box-shadow: 0 4px 0 #3d8fd0; font-size: 19px; }
.pill-streak { background: linear-gradient(180deg, #ffb199, #ff7043); color: #fff; box-shadow: 0 4px 0 #d9502a, 0 10px 20px rgba(255,112,67,.4); animation: streakPop .45s cubic-bezier(.22,1.8,.36,1); }

/* ---------- Splash ---------- */
#screen-splash { align-items: center; justify-content: center; gap: 18px; text-align: center; }
.splash-card { border-radius: 40px; padding: 44px 40px 38px; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 420px; width: min(92vw, 420px); }
.app-title { font-size: clamp(34px, 8vw, 46px); line-height: 1.05; color: var(--coral-dark); text-shadow: 0 2px 0 #fff, 0 4px 12px rgba(232,76,90,.3); }
.app-subtitle { font-size: 22px; color: #3f8f3a; font-weight: 700; }
.app-tagline { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }
.splash-foot { color: rgba(255,255,255,.92); font-size: 14px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.3); }

/* ---------- Age select ---------- */
#screen-age { align-items: center; justify-content: center; gap: 18px; text-align: center; }
.age-card { border-radius: 40px; padding: 38px 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 440px; width: min(92vw, 440px); }
.age-title { font-size: 26px; font-weight: 800; color: var(--coral-dark); }
.age-sub { font-size: 14px; color: var(--ink-soft); font-weight: 600; margin-bottom: 14px; }
.age-options { display: flex; gap: 16px; width: 100%; }
.age-btn {
  flex: 1; border: none; border-radius: 26px; cursor: pointer; font-family: var(--font);
  background: rgba(255,252,240,.94); color: var(--ink);
  padding: 22px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: 0 6px 0 rgba(58,51,30,.18), 0 12px 22px rgba(58,51,30,.16);
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.age-btn:active { transform: scale(.94); }
.age-emoji { font-size: 46px; }
.age-label { font-size: 19px; font-weight: 800; }
.age-desc { font-size: 12.5px; font-weight: 700; color: #3f8f3a; }

.mascot { user-select: none; filter: drop-shadow(0 8px 14px rgba(58,51,30,.25)); }
.mascot-big { font-size: 92px; }
.mascot.small { font-size: 52px; }
.mascot.tiny { font-size: 34px; }
.bounce { animation: bounce 2.2s ease-in-out infinite; display: inline-block; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Home ---------- */
.home-header {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; z-index: 5;
  background: linear-gradient(180deg, rgba(255,252,240,.94), rgba(255,244,214,.88));
  border: 2.5px solid rgba(255,255,255,.9);
  border-radius: 24px;
  padding: 7px 14px 7px 7px;
  box-shadow: 0 6px 0 rgba(58,51,30,.16), 0 14px 26px rgba(58,51,30,.22), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mascot-ring {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(180deg, #ffe08a, var(--gold));
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #e8b23a, 0 4px 0 rgba(58,51,30,.2), 0 8px 14px rgba(58,51,30,.25);
  display: grid; place-items: center;
  animation: ringPulse 2.4s ease-in-out infinite;
}
@keyframes ringPulse {
  0%,100% { box-shadow: 0 0 0 3px #e8b23a, 0 0 0 0 rgba(255,235,150,0), 0 4px 0 rgba(58,51,30,.2), 0 8px 14px rgba(58,51,30,.25); }
  50% { box-shadow: 0 0 0 3px #e8b23a, 0 0 0 7px rgba(255,235,150,.4), 0 4px 0 rgba(58,51,30,.2), 0 8px 14px rgba(58,51,30,.25); }
}
.brand-mascot { font-size: 32px; filter: drop-shadow(0 3px 4px rgba(58,51,30,.25)); }
.brand-title { font-size: 19px; font-weight: 800; color: var(--coral-dark); line-height: 1.1; }
.brand-sub { font-size: 12.5px; font-weight: 700; color: #3f8f3a; }
.header-actions { display: flex; gap: 8px; }

.mascot-dock {
  position: absolute; left: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  display: flex; align-items: flex-end; gap: 6px; max-width: 62vw;
  pointer-events: none; z-index: 6;
}
.mascot-bubble {
  border-radius: 20px 20px 20px 4px; padding: 10px 14px; font-size: 14px; font-weight: 700;
  color: var(--ink); animation: bubbleIn .4s cubic-bezier(.22,1.4,.36,1);
}
@keyframes bubbleIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }

#path-wrap {
  position: relative;
  flex: 1;
  margin: 10px -16px 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  touch-action: pan-y;
  scroll-padding-top: 90px;
}
#path-wrap::-webkit-scrollbar { display: none; }

#world { position: relative; width: min(100%, 480px); margin: 0 auto; }
#world svg { display: block; }
#nodes { position: absolute; inset: 0; pointer-events: none; }
#nodes .lesson-node { pointer-events: auto; }

/* ---------- Lesson nodes ---------- */
.lesson-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 0;
  border: none; background: transparent; padding: 0;
  cursor: pointer; font-family: var(--font);
  transition: transform .2s cubic-bezier(.22,1.6,.36,1);
  z-index: 3;
}
.lesson-node:active { transform: translate(-50%, -50%) scale(.93); }
.lesson-node.side-l { flex-direction: row-reverse; transform: translate(-50%, -50%); }
.lesson-node.side-l .plaque { border-radius: 18px 6px 18px 18px; }
.lesson-node.side-r .plaque { border-radius: 6px 18px 18px 18px; }

.badge {
  position: relative;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--badge, var(--leaf));
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px #e8b23a, 0 6px 0 rgba(58,51,30,.25), 0 12px 20px rgba(58,51,30,.3);
  display: grid; place-items: center;
  flex-shrink: 0; z-index: 2;
}
.badge .num {
  font-size: 30px; font-weight: 800; color: #fff;
  text-shadow: 0 2px 3px rgba(0,0,0,.25); line-height: 1;
}
.badge .lock { position: absolute; right: -8px; top: -10px; font-size: 22px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }

.plaque {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  background: var(--cream);
  border: 2.5px solid var(--cream-edge);
  padding: 7px 14px 8px;
  margin: 0 10px;
  box-shadow: 0 5px 0 rgba(58,51,30,.14), 0 10px 18px rgba(58,51,30,.18);
  max-width: 190px;
}
.side-l .plaque { align-items: flex-end; text-align: right; }
.p-title { font-size: 14.5px; font-weight: 800; color: var(--ink); line-height: 1.15; white-space: nowrap; }
.p-stars { display: flex; gap: 2px; font-size: 16px; line-height: 1; }
.p-stars .ps { color: #d9c9a0; -webkit-text-stroke: .5px #c9a25e; }
.p-stars .ps.on { color: var(--gold); -webkit-text-stroke: .5px #d9a12e; text-shadow: 0 1px 2px rgba(217,161,46,.4); }

.lesson-node.locked .badge { filter: grayscale(1) brightness(.9); }
.lesson-node.locked .plaque { opacity: .62; filter: saturate(.4); }
.lesson-node.current .badge { animation: badgePulse 1.8s ease-in-out infinite; }
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 3px #e8b23a, 0 0 0 0 rgba(255,235,150,.8), 0 6px 0 rgba(58,51,30,.25); }
  50% { box-shadow: 0 0 0 3px #e8b23a, 0 0 0 18px rgba(255,235,150,0), 0 6px 0 rgba(58,51,30,.25); }
}
.lesson-node.done .badge::after {
  content: "✔️"; position: absolute; right: -10px; top: -12px; font-size: 22px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.3));
}

/* ---------- Game ---------- */
.game-header { display: flex; align-items: center; gap: 10px; z-index: 5; padding-top: 2px; }
.progress-track { flex: 1; height: 18px; border-radius: 999px; background: rgba(255,255,255,.6); overflow: hidden; box-shadow: inset 0 2px 5px rgba(58,51,30,.18); }
.progress-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #ffd93b, #ff9f43); transition: width .5s cubic-bezier(.22,1.2,.36,1); box-shadow: 0 0 12px rgba(255,183,3,.8); }
.live-stars { cursor: default; }

/* ---------- Sparkle burst + streak juice ---------- */
.spark-particle {
  position: fixed; left: 0; top: 0; pointer-events: none; z-index: 200;
  animation: sparkFly .75s ease-out forwards; will-change: transform, opacity;
}
@keyframes sparkFly {
  0% { opacity: 1; transform: translate(-50%,-50%) scale(.5) rotate(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.25) rotate(var(--rot)); }
}
@keyframes streakPop {
  0% { transform: scale(.4) rotate(-8deg); opacity: 0; }
  55% { transform: scale(1.22) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

#stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 14px 4px; min-height: 0; }

.q-card {
  border-radius: var(--card-r); padding: 26px 34px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: cardIn .45s cubic-bezier(.22,1.4,.36,1);
  max-width: min(92vw, 430px);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
.q-big { font-size: clamp(64px, 17vw, 96px); line-height: 1.1; }
.q-text { font-size: 24px; font-weight: 800; }
.q-hindi { font-size: 19px; color: #3f8f3a; font-weight: 700; }
.q-swatch { width: 110px; height: 110px; border-radius: 34px; border: 6px solid #fff; box-shadow: 0 10px 22px rgba(58,51,30,.25); }
.alpha-letter { font-size: clamp(52px, 15vw, 76px); font-weight: 800; color: var(--coral-dark); text-shadow: 0 3px 0 #fff, 0 6px 14px rgba(232,76,90,.3); line-height: 1; }
.q-emoji-big { font-size: clamp(48px, 13vw, 72px); line-height: 1.1; filter: drop-shadow(0 6px 10px rgba(58,51,30,.25)); }

.speak-btn {
  width: 76px; height: 76px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(180deg, #9bd4ff, #56aff2); font-size: 34px;
  box-shadow: 0 6px 0 #3d8fd0, 0 14px 26px rgba(58,51,30,.25);
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.speak-btn:active { transform: scale(.88); }
.speak-btn.speaking { animation: speakPulse 1s ease-in-out infinite; }
@keyframes speakPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.options-grid { display: grid; grid-template-columns: repeat(2, minmax(120px, 160px)); gap: 14px; width: min(92vw, 380px); }
.opt-btn {
  border: none; border-radius: 24px; cursor: pointer; font-family: var(--font);
  background: rgba(255,252,240,.94); color: var(--ink);
  box-shadow: 0 6px 0 rgba(58,51,30,.18), 0 12px 22px rgba(58,51,30,.16);
  padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: transform .15s cubic-bezier(.22,1.6,.36,1), background .2s;
  animation: cardIn .4s cubic-bezier(.22,1.4,.36,1) backwards;
  transform: rotate(var(--tilt, 0deg));
}
.opt-btn:nth-child(1) { animation-delay: .05s; } .opt-btn:nth-child(2) { animation-delay: .12s; }
.opt-btn:nth-child(3) { animation-delay: .19s; } .opt-btn:nth-child(4) { animation-delay: .26s; }
.opt-btn:active { transform: rotate(var(--tilt, 0deg)) scale(.9); }
.opt-emoji { font-size: 44px; line-height: 1.15; }
.opt-label { font-size: 17px; font-weight: 800; }
.opt-hindi { font-size: 14px; font-weight: 700; color: #3f8f3a; }
.opt-swatch { width: 58px; height: 58px; border-radius: 18px; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(58,51,30,.25); }
.opt-btn.correct { background: linear-gradient(180deg, #7ee08a, #38b24a); color: #fff; animation: correctPop .5s cubic-bezier(.22,1.6,.36,1); }
.opt-btn.correct .opt-hindi { color: #eaffef; }
.opt-btn.wrong { background: #ffe1e1; animation: shake .4s; opacity: .55; }
@keyframes correctPop { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0);} 20%,60% { transform: translateX(-9px);} 40%,80% { transform: translateX(9px);} }

.count-field {
  position: relative; width: min(92vw, 400px); height: 200px;
  border-radius: var(--card-r); overflow: hidden;
  background: rgba(255,252,240,.6); border: 1.5px solid rgba(255,255,255,.85);
  box-shadow: inset 0 2px 8px rgba(58,51,30,.14);
}
.count-item { position: absolute; font-size: 42px; animation: popItem .5s cubic-bezier(.22,1.6,.36,1) backwards; filter: drop-shadow(0 4px 6px rgba(58,51,30,.25)); }
@keyframes popItem { from { opacity: 0; transform: scale(0) rotate(-30deg); } to { opacity: 1; transform: none; } }
.num-opt { font-size: 30px; padding: 20px 10px; }
.num-opt small { display: block; font-size: 15px; color: #3f8f3a; font-weight: 700; }
.opt-btn.correct small { color: #eaffef; }

/* ---------- Find It / Flower Garden (seek scenes) ---------- */
.scene-field {
  position: relative; width: min(94vw, 420px); height: 320px;
  border-radius: var(--card-r); overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.5), rgba(255,252,240,.35) 60%), rgba(255,252,240,.4);
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: inset 0 2px 10px rgba(58,51,30,.16), 0 10px 22px rgba(58,51,30,.16);
}
.scene-field.garden { background: linear-gradient(180deg, rgba(216,238,190,.55), rgba(190,226,158,.55)); }
.scene-item {
  position: absolute; font-size: 40px; line-height: 1; cursor: pointer; user-select: none;
  transform: translate(-50%,-50%) scale(0);
  animation: sceneIn .45s cubic-bezier(.22,1.6,.36,1) both;
  filter: drop-shadow(0 4px 6px rgba(58,51,30,.28));
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
@keyframes sceneIn { from { transform: translate(-50%,-50%) scale(0) rotate(-25deg); opacity: 0; } to { transform: translate(-50%,-50%) scale(1) rotate(0); opacity: 1; } }
.scene-item:active { transform: translate(-50%,-50%) scale(.82); }
.scene-item.found { animation: foundPop .5s cubic-bezier(.22,1.8,.36,1) forwards; pointer-events: none; }
.scene-item.wrong { animation: itemShake .4s; }
@keyframes foundPop { 0% { transform: translate(-50%,-50%) scale(1); } 45% { transform: translate(-50%,-50%) scale(1.45) rotate(12deg); opacity: 1; } 100% { transform: translate(-50%,-50%) scale(0) rotate(20deg); opacity: 0; } }
@keyframes itemShake { 0%,100% { transform: translate(-50%,-50%) translateX(0); } 20%,60% { transform: translate(-50%,-50%) translateX(-8px); } 40%,80% { transform: translate(-50%,-50%) translateX(8px); } }

.flower-item {
  position: absolute; width: 52px; cursor: pointer; user-select: none;
  transform: translate(-50%,-50%) scale(0);
  animation: sceneIn .45s cubic-bezier(.22,1.6,.36,1) both;
  filter: drop-shadow(0 4px 6px rgba(58,51,30,.22));
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.flower-item svg { width: 100%; display: block; overflow: visible; }
.flower-item:active { transform: translate(-50%,-50%) scale(.82); }
.flower-item.found { animation: foundPop .5s cubic-bezier(.22,1.8,.36,1) forwards; pointer-events: none; }
.flower-item.wrong { animation: itemShake .4s; }

/* ---------- Balloon Pop ---------- */
.balloon-field { position: relative; width: min(94vw, 420px); height: 360px; overflow: hidden; }
.balloon {
  position: absolute; bottom: -140px; width: 78px;
  animation-name: rise; animation-timing-function: linear; animation-fill-mode: forwards;
}
@keyframes rise { from { transform: translateY(0); } to { transform: translateY(-620px); } }
.b-body {
  position: relative; width: 78px; height: 92px; margin: 0 auto;
  border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 8px 16px rgba(58,51,30,.28), inset -8px -10px 16px rgba(0,0,0,.12), inset 6px 8px 12px rgba(255,255,255,.35);
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.b-body:active { transform: scale(.92); }
.b-content { font-size: 30px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.b-knot { position: absolute; bottom: -6px; left: 50%; width: 11px; height: 11px; background: rgba(0,0,0,.18); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.b-string { position: absolute; bottom: -42px; left: 50%; width: 2px; height: 38px; background: rgba(255,255,255,.55); transform: translateX(-50%); }
.b-body.popped { animation: balloonPop .35s cubic-bezier(.22,1.6,.36,1) forwards; pointer-events: none; }
.b-body.wrong { animation: shake .4s; }
@keyframes balloonPop { 0% { transform: scale(1); opacity: 1; } 45% { transform: scale(1.35); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }

/* ---------- Colouring Book ---------- */
.colorbook-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(94vw, 420px); }
.colorbook-canvas {
  width: min(80vw, 300px); aspect-ratio: 1/1; border-radius: var(--card-r);
  background: rgba(255,252,240,.9); border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 24px rgba(58,51,30,.2); padding: 10px;
}
.colorbook-canvas svg { width: 100%; height: 100%; }
.colorbook-canvas path { cursor: pointer; transition: opacity .1s; }
.colorbook-canvas path:active { opacity: .8; }
.palette-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 320px; }
.palette-swatch {
  width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; cursor: pointer;
  box-shadow: 0 4px 8px rgba(58,51,30,.25); transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.palette-swatch.active { transform: scale(1.22); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--gold), 0 4px 8px rgba(58,51,30,.3); }
.palette-swatch:active { transform: scale(.9); }

/* ---------- Drag & Drop Matching ---------- */
.dragmatch-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(94vw, 420px); }
.dragmatch-board { display: flex; justify-content: space-between; gap: 24px; width: 100%; }
.dm-col { flex: 1; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.dm-tile {
  touch-action: none; cursor: grab; user-select: none;
  background: rgba(255,252,240,.95); border-radius: 20px; padding: 12px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100px;
  box-shadow: 0 6px 0 rgba(58,51,30,.18), 0 10px 18px rgba(58,51,30,.16);
  transition: box-shadow .15s;
}
.dm-tile.dragging { box-shadow: 0 14px 26px rgba(58,51,30,.35); cursor: grabbing; }
.dm-emoji { font-size: 38px; }
.dm-label { font-size: 13px; font-weight: 700; color: #3f8f3a; }
.dm-slot {
  width: 100px; height: 84px; border-radius: 20px;
  border: 3px dashed rgba(255,255,255,.7); background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
}
.dm-ghost { font-size: 34px; opacity: .3; filter: grayscale(1); }
.dm-slot.filled { border-style: solid; background: rgba(255,252,240,.95); animation: correctPop .5s cubic-bezier(.22,1.6,.36,1); }
.dm-slot.filled .dm-emoji { font-size: 38px; }

/* ---------- Path Picker ---------- */
.pathpick-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(94vw, 420px); }
.pp-walker { font-size: 56px; filter: drop-shadow(0 6px 10px rgba(58,51,30,.3)); }
.pp-lanes { display: flex; justify-content: center; gap: 18px; width: 100%; }
.pp-lane {
  flex: 1; max-width: 110px; border: none; cursor: pointer; background: transparent;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px;
}
.pp-track {
  width: 8px; height: 90px; border-radius: 999px;
  background: repeating-linear-gradient(180deg, var(--lane-color) 0 10px, transparent 10px 18px);
}
.pp-end {
  font-size: 40px; width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,252,240,.95); display: grid; place-items: center;
  box-shadow: 0 6px 0 rgba(58,51,30,.18), 0 10px 18px rgba(58,51,30,.16);
  border: 3px solid var(--lane-color);
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.pp-lane:active .pp-end { transform: scale(.9); }
.pp-lane.correct .pp-end { animation: correctPop .5s cubic-bezier(.22,1.6,.36,1); background: linear-gradient(180deg, #7ee08a, #38b24a); }
.pp-lane.wrong .pp-end { animation: shake .4s; opacity: .55; }

/* ---------- Size Picker ---------- */
.sizepick-wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; width: min(94vw, 420px); }
.sp-row { display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; min-height: 100px; }
.sp-item {
  border: none; background: transparent; cursor: pointer; line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(58,51,30,.25));
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.sp-item:active { transform: scale(.88); }
.sp-item.correct { animation: correctPop .5s cubic-bezier(.22,1.6,.36,1); }
.sp-item.wrong { animation: shake .4s; opacity: .5; }
.sp-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sp-bar-track { height: 14px; border-radius: 999px; background: linear-gradient(90deg, #ff9f43, #ffcf5c); box-shadow: 0 3px 6px rgba(58,51,30,.25); }
.sp-bar-emoji { font-size: 32px; }

/* ---------- Flying Bug Pop ---------- */
.flypop-field { position: relative; width: min(94vw, 420px); height: 320px; overflow: hidden; }
.fly-bug {
  position: absolute; right: -60px; font-size: 44px; cursor: pointer;
  filter: drop-shadow(0 4px 6px rgba(58,51,30,.25));
  animation-name: flyAcross; animation-timing-function: linear; animation-fill-mode: forwards;
}
@keyframes flyAcross { from { transform: translateX(0); } to { transform: translateX(-480px); } }
.fly-bug.caught { animation: bugPop .3s cubic-bezier(.22,1.6,.36,1) forwards; pointer-events: none; }
@keyframes bugPop { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
.fly-bug.wrong { filter: brightness(.6) saturate(2.4) hue-rotate(-20deg) drop-shadow(0 4px 6px rgba(58,51,30,.25)); }

/* ---------- Colour Sort ---------- */
.colorsort-wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; width: min(94vw, 420px); }
.cs-boxes { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.sort-box {
  width: 76px; height: 64px; border-radius: 14px 14px 4px 4px;
  background: var(--box-color); box-shadow: 0 6px 0 rgba(58,51,30,.2), 0 10px 18px rgba(58,51,30,.2), inset 0 -8px 12px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px; position: relative;
}
.sb-lid { position: absolute; top: -8px; left: -3px; right: -3px; height: 10px; border-radius: 6px; background: var(--box-color); filter: brightness(1.15); }
.cs-creatures { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; max-width: 340px; }
.sort-tile {
  touch-action: none; cursor: grab; user-select: none; font-size: 38px; line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(58,51,30,.25));
}
.sort-tile.dragging { cursor: grabbing; }
.sort-tile.sorted { font-size: 22px; filter: none; animation: correctPop .4s cubic-bezier(.22,1.6,.36,1); }

/* ---------- Pattern Match ---------- */
.pattern-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; width: min(94vw, 420px); }
.pattern-target {
  display: flex; gap: 10px; font-size: 44px; padding: 14px 22px; border-radius: 22px;
  background: rgba(255,252,240,.94); box-shadow: 0 8px 18px rgba(58,51,30,.2);
}
.pattern-options { display: flex; flex-direction: column; gap: 12px; }
.pattern-opt {
  display: flex; gap: 10px; font-size: 34px; padding: 10px 18px; border-radius: 20px; border: none; cursor: pointer;
  background: rgba(255,252,240,.9); box-shadow: 0 5px 0 rgba(58,51,30,.16), 0 9px 16px rgba(58,51,30,.14);
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.pattern-opt:active { transform: scale(.95); }
.pattern-opt.correct { animation: correctPop .5s cubic-bezier(.22,1.6,.36,1); background: linear-gradient(180deg, #7ee08a, #38b24a); }
.pattern-opt.wrong { animation: shake .4s; opacity: .5; }

.memory-grid { display: grid; gap: 10px; width: min(94vw, 420px); }
.mem-card {
  aspect-ratio: 3/3.6; perspective: 500px; cursor: pointer; border: none; background: transparent; padding: 0;
}
.mem-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.22,1.2,.36,1); }
.mem-card.flipped .mem-inner, .mem-card.matched .mem-inner { transform: rotateY(180deg); }
.mem-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
}
.mem-front { background: linear-gradient(145deg, #8d67c5, #6a3ce0); font-size: 30px; box-shadow: 0 5px 0 rgba(58,51,30,.25), 0 10px 18px rgba(58,51,30,.2); }
.mem-back { background: rgba(255,252,240,.94); transform: rotateY(180deg); font-size: clamp(30px, 9vw, 44px); box-shadow: 0 5px 0 rgba(58,51,30,.14), 0 10px 18px rgba(58,51,30,.14); }
.mem-card.matched .mem-back { background: linear-gradient(180deg, #7ee08a, #38b24a); animation: correctPop .5s cubic-bezier(.22,1.6,.36,1); }

.hint-line { font-size: 17px; font-weight: 700; color: rgba(255,255,255,.95); text-shadow: 0 1px 4px rgba(40,60,20,.5); text-align: center; min-height: 22px; }

/* ---------- Celebration ---------- */
#screen-celebrate { align-items: center; justify-content: center; }
.celebrate-card { border-radius: 40px; padding: 40px 44px; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 420px; width: min(92vw, 420px); }
.celebrate-emoji { font-size: 74px; }
.pop-in { animation: popIn .6s cubic-bezier(.22,1.8,.36,1); }
@keyframes popIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.celebrate-title { font-size: 40px; color: var(--coral-dark); }
.celebrate-sub { font-size: 20px; color: #3f8f3a; font-weight: 700; margin-bottom: 6px; }
.star-row { display: flex; gap: 10px; margin: 8px 0 4px; }
.star-row .star { font-size: 58px; opacity: 0; transform: scale(0) rotate(-40deg); filter: drop-shadow(0 6px 10px rgba(242,201,76,.5)); }
.star-row .star.on { animation: starPop .6s cubic-bezier(.22,1.8,.36,1) forwards; }
.star-row .star.dim { animation: starDim .4s forwards; }
@keyframes starPop { to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes starDim { to { opacity: .22; transform: scale(.8) grayscale(1); } }
.sticker-won { display: flex; flex-direction: column; align-items: center; gap: 2px; background: rgba(255,255,255,.85); border-radius: 20px; padding: 10px 26px; margin-top: 4px; }
.sticker-won .st-emoji { font-size: 46px; animation: wobble 2s ease-in-out infinite; }
@keyframes wobble { 0%,100% { transform: rotate(-6deg);} 50% { transform: rotate(6deg);} }
.sticker-won .st-name { font-size: 14px; font-weight: 800; color: var(--ink-soft); }
.dance-mascot { font-size: 64px; line-height: 1; margin: 2px 0; filter: drop-shadow(0 8px 12px rgba(58,51,30,.3)); }
.dance-mascot.dancing { animation: danceMove .6s ease-in-out infinite; }
@keyframes danceMove {
  0%,100% { transform: translateY(0) rotate(-10deg); }
  25% { transform: translateY(-16px) rotate(10deg); }
  50% { transform: translateY(0) rotate(-10deg); }
  75% { transform: translateY(-16px) rotate(10deg); }
}
.celebrate-actions { display: flex; gap: 12px; margin-top: 14px; }

/* ---------- Modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(40,60,20,.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .3s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  border-radius: 36px; padding: 30px 30px 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  max-width: 420px; width: min(92vw, 420px); max-height: 86vh; overflow-y: auto;
  animation: modalIn .45s cubic-bezier(.22,1.5,.36,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(.85); } to { opacity: 1; transform: none; } }
.modal-title { font-size: 26px; }
.intro-topic-icon { font-size: 84px; }
.intro-title { font-size: 30px; color: var(--coral-dark); }
.intro-hindi { font-size: 21px; color: #3f8f3a; font-weight: 700; }
.intro-tip { font-size: 16px; font-weight: 700; color: var(--ink-soft); text-align: left; }
.mascot-line { display: flex; align-items: center; gap: 10px; }
.intro-actions { display: flex; gap: 12px; margin-top: 8px; }

.stickers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
.sticker-cell {
  border-radius: 22px; padding: 12px 4px 9px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(255,255,255,.75); box-shadow: inset 0 2px 6px rgba(58,51,30,.08);
}
.sticker-cell .st-emoji { font-size: 36px; }
.sticker-cell .st-name { font-size: 10.5px; font-weight: 800; color: var(--ink-soft); text-align: center; line-height: 1.2; }
.sticker-cell.locked { opacity: .5; filter: grayscale(1); }
.sticker-cell.earned { background: linear-gradient(180deg, #fff6da, #ffe8ad); box-shadow: 0 6px 14px rgba(242,201,76,.4); animation: popIn .4s cubic-bezier(.22,1.6,.36,1) backwards; }

.pill-green { background: linear-gradient(180deg, #8fe08a, #4caf50); box-shadow: 0 4px 0 #338a3d; font-size: 19px; }

.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.game-cell {
  border: none; border-radius: 20px; cursor: pointer; font-family: var(--font);
  background: rgba(255,255,255,.85); padding: 12px 6px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  box-shadow: 0 4px 0 rgba(58,51,30,.14), 0 8px 14px rgba(58,51,30,.1);
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.game-cell:active { transform: scale(.92); }
.game-cell .g-icon { font-size: 34px; line-height: 1.1; }
.game-cell .g-name { font-size: 11px; font-weight: 800; color: var(--ink); text-align: center; line-height: 1.25; }
.game-cell .g-hindi { font-size: 10px; font-weight: 700; color: #3f8f3a; }

.parent-card { text-align: left; align-items: stretch; }
.parent-card .modal-title { text-align: center; }
.setting-row { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 17px; padding: 8px 2px; }
.parent-card hr { border: none; border-top: 2px dashed rgba(122,106,80,.3); margin: 8px 0; }
.parent-note { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.parent-card .btn { width: 100%; margin-top: 6px; }

.switch { position: relative; width: 54px; height: 32px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; border-radius: 999px; background: #d5d2c2; cursor: pointer; transition: background .25s; }
.slider::before {
  content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%;
  left: 3px; top: 3px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transition: transform .25s cubic-bezier(.22,1.4,.36,1);
}
.switch input:checked + .slider { background: #38b24a; }
.switch input:checked + .slider::before { transform: translateX(22px); }

@media (max-width: 380px) {
  .badge { width: 56px; height: 56px; }
  .badge .num { font-size: 26px; }
  .p-title { font-size: 12.5px; }
  .plaque { max-width: 150px; padding: 5px 10px 6px; }
  .options-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .opt-emoji { font-size: 36px; }
  .brand-title { font-size: 18px; }
}
@media (max-height: 720px) {
  .mem-card { aspect-ratio: 1/1.15; }
  .q-big { font-size: clamp(48px, 13vw, 72px); }
}

/* ---------- Balloon Pop ---------- */
.balloon-field {
  position: relative; width: min(94vw, 430px); height: 380px;
  border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, #8fd0ff 0%, #c9ecff 70%, #eaf9ff 100%);
  border: 3px solid #fff; box-shadow: 0 10px 24px rgba(58,51,30,.22);
}
.balloon-field::before { content: "⛅"; position: absolute; top: 10px; right: 14px; font-size: 36px; opacity: .9; z-index: 0; }
.balloon-field::after { content: "🌳"; position: absolute; bottom: -6px; left: 8px; font-size: 44px; z-index: 0; }
.balloon { position: absolute; bottom: -140px; width: 64px; height: 80px; animation: rise linear forwards; will-change: transform; z-index: 2; }
@keyframes rise { to { transform: translateY(-590px); } }
.b-body {
  width: 100%; height: 100%; border-radius: 50%; position: relative;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: inset -8px -10px 0 rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.12);
}
.b-content { font-size: 30px; font-weight: 800; color: #fff; text-shadow: 0 2px 3px rgba(0,0,0,.3); pointer-events: none; }
.b-knot { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border: 6px solid transparent; border-bottom: 9px solid rgba(0,0,0,.2); }
.b-string { position: absolute; top: calc(100% + 8px); left: 50%; width: 2px; height: 34px; background: rgba(255,255,255,.9); }
.b-body.popped { animation: popFade .35s ease-out forwards; }
@keyframes popFade { 0% { transform: scale(1); opacity: 1; } 45% { transform: scale(1.35); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.b-body.wrong { animation: shake .4s; }

/* ---------- Find It / scenes ---------- */
.scene-field {
  position: relative; width: min(94vw, 430px); height: 330px;
  border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, #bfe8ff 0 16%, #a8dd7c 16% 100%);
  border: 3px solid #fff; box-shadow: 0 10px 24px rgba(58,51,30,.22);
}
.scene-field.garden { background: linear-gradient(180deg, #9bd9f5 0 14%, #7cc35a 14% 100%); }
.scene-item {
  position: absolute; font-size: 40px; cursor: pointer; padding: 4px;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.25));
  animation: bob 2.4s ease-in-out infinite, cardIn .4s backwards;
}
@keyframes bob { 0%,100% { margin-top: 0; } 50% { margin-top: -6px; } }
.scene-item.found { animation: foundFly .55s ease-in forwards; pointer-events: none; }
@keyframes foundFly { 40% { transform: scale(1.3); } 100% { transform: translateY(-180%) scale(1.5); opacity: 0; } }
.scene-item.wrong { animation: shake .4s; }
.scene-item .sheru-face { position: absolute; right: 4px; bottom: 2px; font-size: 58px; }
.sheru-face { position: absolute; right: 6px; bottom: 4px; font-size: 62px; z-index: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }

/* ---------- Flower garden ---------- */
.flower-item { position: absolute; width: 62px; cursor: pointer; filter: drop-shadow(0 4px 5px rgba(0,0,0,.2)); }
.flower-item svg { display: block; }
.flower-item.found { animation: foundFly .55s ease-in forwards; pointer-events: none; }
.flower-item.wrong { animation: shake .4s; }

/* ---------- Shadow match ---------- */
.shadow-emoji { filter: brightness(0) opacity(.72); }
.shadow-emoji.revealed { filter: none; animation: popIn .5s cubic-bezier(.22,1.8,.36,1); }

/* ---------- Sequence (planting) ---------- */
.seq-strip {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,252,240,.85); border-radius: 22px; padding: 12px 16px;
  box-shadow: 0 6px 0 rgba(58,51,30,.14);
}
.seq-slot {
  width: 52px; height: 52px; border-radius: 16px;
  border: 2.5px dashed #c9b98a; display: grid; place-items: center;
  font-size: 30px; background: rgba(255,255,255,.6); transition: all .3s cubic-bezier(.22,1.6,.36,1);
}
.seq-slot.filled { border-style: solid; border-color: #38b24a; background: #eaffef; animation: popIn .4s cubic-bezier(.22,1.8,.36,1); }
.seq-sun { font-size: 36px; margin-left: 4px; }
.seq-tray { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.seq-card {
  width: 68px; height: 68px; border-radius: 20px; border: none; cursor: pointer;
  font-size: 36px; background: rgba(255,252,240,.94); font-family: var(--font);
  box-shadow: 0 6px 0 rgba(58,51,30,.18), 0 10px 18px rgba(58,51,30,.15);
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.seq-card:active { transform: scale(.9); }
.seq-card.used { opacity: .25; pointer-events: none; }
.seq-card.wrong { animation: shake .4s; }

/* ---------- Match rows (homes, letters) ---------- */
.match-row { display: flex; gap: 12px; justify-content: center; width: min(94vw, 430px); }
.match-card {
  flex: 1; max-width: 120px; aspect-ratio: 1/1.05; border: none; cursor: pointer;
  border-radius: 20px; border: 3px solid #fff;
  display: grid; place-items: center; font-family: var(--font);
  box-shadow: 0 5px 0 rgba(58,51,30,.16), 0 10px 16px rgba(58,51,30,.14);
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
  animation: cardIn .4s cubic-bezier(.22,1.4,.36,1) backwards;
}
.match-card:active { transform: scale(.93); }
.m-emoji { font-size: 44px; line-height: 1; pointer-events: none; }
.match-card.sel { outline: 4px solid var(--gold); transform: scale(1.06); }
.match-card.matched { outline: 4px solid #38b24a; animation: correctPop .5s; }
.match-card.wrong { animation: shake .4s; }

/* ---------- Halves ---------- */
.half-wrap { display: flex; gap: 26px; }
.half-col { display: flex; flex-direction: column; gap: 10px; }
.half-col .match-card { width: 108px; aspect-ratio: 1/0.82; }
.half-l .m-emoji { clip-path: inset(0 50% 0 0); }
.half-r .m-emoji { clip-path: inset(0 0 0 50%); }
.match-card.matched .m-emoji { clip-path: none; }

/* ---------- Case cards ---------- */
.case-card {
  flex: 1; max-width: 100px; aspect-ratio: 1/1; border: none; cursor: pointer;
  border-radius: 20px; background: #fff; border: 3px solid #dfe8f5;
  font-size: 44px; font-weight: 800; font-family: var(--font);
  display: grid; place-items: center;
  box-shadow: 0 5px 0 rgba(58,51,30,.14);
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
  animation: cardIn .4s cubic-bezier(.22,1.4,.36,1) backwards;
}
.case-card:active { transform: scale(.93); }
.case-card.sel { outline: 4px solid var(--gold); transform: scale(1.07); }
.case-card.matched { border-color: #38b24a; animation: correctPop .5s; }
.case-card.wrong { animation: shake .4s; }

/* ---------- Path trace ---------- */
.trace-field {
  width: min(94vw, 420px); border-radius: 24px; background: #fff;
  border: 3px solid #fff; box-shadow: 0 10px 24px rgba(58,51,30,.18);
  padding: 8px;
}
.trace-field svg { display: block; width: 100%; }
.trace-dot { fill: #e8e4da; stroke: #c9c2b2; stroke-width: 3; cursor: pointer; transition: fill .2s; }
.trace-dot.on { fill: var(--gold); stroke: #d9a12e; }
.trace-dot.wrong { fill: #ffb3b3; stroke: #e04848; }
.trace-field.done svg { animation: correctPop .6s; }

/* ---------- Shadow grid ---------- */
.shadow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(94vw, 400px); }
.shadow-cell {
  aspect-ratio: 1/0.9; border: none; cursor: pointer; border-radius: 18px;
  background: #fff; border: 3px solid #dfe8f5; display: grid; place-items: center;
  box-shadow: 0 4px 0 rgba(58,51,30,.12);
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.shadow-cell:active { transform: scale(.93); }
.shadow-cell .m-emoji { font-size: 46px; }
.shadow-cell.matched { border-color: #38b24a; animation: correctPop .5s; }
.shadow-cell.wrong { animation: shake .4s; }
.shadow-tray {
  display: flex; gap: 8px; width: min(94vw, 400px); justify-content: center;
  background: rgba(58,51,30,.28); border-radius: 20px; padding: 10px;
}
.tray-card { width: 54px; height: 54px; aspect-ratio: 1; border-radius: 14px; background: #fff; }
.tray-card .m-emoji { font-size: 30px; }
.tray-card.used { opacity: .25; pointer-events: none; }

/* ---------- Shape find ---------- */
.shape-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(94vw, 380px); }
.shape-cell {
  aspect-ratio: 1; border: none; cursor: pointer; border-radius: 16px;
  background: rgba(255,252,240,.94); font-size: 34px; display: grid; place-items: center;
  box-shadow: 0 4px 0 rgba(58,51,30,.14);
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.shape-cell:active { transform: scale(.9); }
.shape-cell.found { background: linear-gradient(180deg, #7ee08a, #38b24a); animation: correctPop .5s; }
.shape-cell.wrong { animation: shake .4s; }

/* ---------- Shape build ---------- */
.build-board {
  width: min(88vw, 320px); border-radius: 24px; padding: 10px;
  background: #f7efdd;
}
.build-board svg { display: block; width: 100%; }
.build-board.built { animation: correctPop .6s; }
.build-panel { display: flex; gap: 14px; }
.piece-btn {
  width: 74px; height: 74px; border: none; cursor: pointer; border-radius: 20px;
  background: #fff; padding: 8px;
  box-shadow: 0 5px 0 rgba(58,51,30,.16), 0 10px 16px rgba(58,51,30,.12);
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.piece-btn:active { transform: scale(.9); }
.piece-btn svg { width: 100%; height: 100%; }
.piece-btn.wrong { animation: shake .4s; }

/* ---------- Sequence numbered slots ---------- */
.seq-slot { position: relative; }
.seq-num {
  position: absolute; top: 3px; left: 6px;
  font-size: 13px; font-weight: 800; color: #c9b98a;
}
.seq-slot.filled .seq-num { display: none; }
.seq-emoji-fill { font-size: 30px; animation: popIn .4s cubic-bezier(.22,1.8,.36,1); }

/* ---------- Sound pads (Simon) ---------- */
.sound-pad {
  flex: 1; max-width: 96px; aspect-ratio: 1/1.15; border: none; cursor: pointer;
  border-radius: 50% 50% 18px 18px; background: var(--pc, #888);
  display: grid; place-items: center;
  box-shadow: 0 8px 0 rgba(0,0,0,.22), inset 0 -6px 0 rgba(0,0,0,.12);
  transition: transform .12s;
}
.sound-pad:active { transform: scale(.92); }
.sound-pad.lit { transform: scale(1.12) translateY(-6px); filter: brightness(1.35); box-shadow: 0 12px 24px rgba(0,0,0,.3); }
.sound-pad .m-emoji { font-size: 42px; }
.match-row.wrong .sound-pad { animation: shake .4s; }

/* ---------- Cone grid ---------- */
.cone-grid { grid-template-columns: repeat(3, 1fr) !important; width: min(94vw, 360px); }
.cone-grid .opt-emoji { font-size: 46px; }

/* ---------- Baby cards ---------- */
.baby-card .m-emoji { font-size: 30px; }

/* ---------- Fill shadows scene ---------- */
.fill-scene {
  width: min(92vw, 400px); border-radius: 24px; padding: 26px 20px;
  display: flex; justify-content: space-evenly; align-items: center;
}
.big-shadow { font-size: 76px; }
.big-card { width: 84px; height: 84px; }
.big-card .m-emoji { font-size: 46px; }

/* ---------- Ring stack ---------- */
.ring-peg {
  position: relative; width: 110px; height: 130px;
  background: linear-gradient(180deg, #ffb14d, #f59e0b);
  border-radius: 12px 12px 20px 20px;
  box-shadow: inset -8px 0 0 rgba(0,0,0,.12), 0 8px 16px rgba(58,51,30,.25);
}
.ring-peg::before {
  content: ""; position: absolute; left: 50%; top: -18px; transform: translateX(-50%);
  width: 22px; height: 130px; border-radius: 10px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.stacked-ring { position: absolute; left: 50%; transform: translateX(-50%); font-size: 34px; }
.ring-btn {
  width: 64px; height: 54px; border: none; cursor: pointer; border-radius: 50%;
  background: #fff; font-size: 32px; display: grid; place-items: center;
  box-shadow: 0 5px 0 rgba(58,51,30,.16);
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.ring-btn:active { transform: scale(.9); }
.ring-btn.used { opacity: .2; pointer-events: none; }
.ring-btn.wrong { animation: shake .4s; }

/* ---------- Shape-object cards ---------- */
.shape-obj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: min(94vw, 380px); }
.so-card {
  border: none; cursor: pointer; border-radius: 20px; background: #fff;
  border: 3px solid #dfe8f5; padding: 12px;
  display: flex; align-items: center; justify-content: space-evenly;
  box-shadow: 0 5px 0 rgba(58,51,30,.14);
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.so-card:active { transform: scale(.95); }
.so-shape { font-size: 42px; }
.so-q {
  width: 52px; height: 52px; border-radius: 14px; background: #eee;
  display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #b5b5b5;
}
.so-card.sel { outline: 4px solid var(--gold); }
.so-card.matched { border-color: #38b24a; animation: correctPop .5s; }
.so-card.matched .so-q { background: #eaffef; color: var(--ink); }

/* ---------- Dress-up grid ---------- */
.dress-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dress-acc-row { display: grid; grid-template-columns: 56px repeat(3, 74px); gap: 6px; }
.dress-head {
  height: 56px; display: grid; place-items: center;
  background: #fff; border-radius: 14px; font-size: 30px;
  box-shadow: 0 3px 0 rgba(58,51,30,.12);
}
.dress-mid { display: flex; gap: 6px; }
.dress-face-col { display: flex; flex-direction: column; gap: 6px; }
.dress-face-col .dress-head { height: 74px; width: 56px; }
.dress-cells { display: grid; grid-template-columns: repeat(3, 74px); grid-auto-rows: 74px; gap: 6px; }
.dress-cell {
  border: none; cursor: pointer; border-radius: 12px;
  background: #cdeffc; box-shadow: inset 0 2px 4px rgba(0,0,0,.08);
  transition: transform .12s;
}
.dress-cell:active { transform: scale(.93); }
.dress-cell.filled { background: #eaffef; outline: 3px solid #38b24a; animation: popIn .4s; }
.dress-cell.wrong { animation: shake .4s; }
.dress-combo { font-size: 24px; letter-spacing: -4px; }
.dress-samples { display: flex; flex-direction: column; gap: 8px; margin-left: 10px; }
.dress-sample {
  border: none; cursor: pointer; border-radius: 16px; background: #fff;
  padding: 8px 12px; box-shadow: 0 4px 0 rgba(58,51,30,.14);
  transition: transform .15s cubic-bezier(.22,1.6,.36,1);
}
.dress-sample:active { transform: scale(.94); }
.dress-sample.sel { outline: 4px solid var(--gold); transform: scale(1.06); }
.dress-sample.done { opacity: .45; }

/* ---------- Poke-able jungle decorations ---------- */
#world svg .poke, #world svg .poke * { cursor: pointer; pointer-events: all; transform-box: fill-box; transform-origin: center; }
#world svg .poke.poked { animation: pokePop .55s cubic-bezier(.22,1.6,.36,1); }
@keyframes pokePop { 0% { transform: scale(1); } 40% { transform: scale(1.55) rotate(14deg); } 100% { transform: scale(1); } }
#world svg .float-fast { animation: floatY 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
#world svg .float-slow { animation: floatY 4.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.poke-burst {
  position: fixed; z-index: 95; font-size: 24px; pointer-events: none;
  transform: translate(-50%, -50%);
  animation: burstUp .8s ease-out forwards;
}
@keyframes burstUp { to { transform: translate(-50%, -170%) scale(1.4); opacity: 0; } }

/* ---------- Teacher elephant ---------- */
#teacher {
  position: absolute; width: 96px; margin-left: -48px; margin-top: -122px;
  z-index: 4; pointer-events: none;
  transition: left 2.2s ease-in-out, top 2.2s ease-in-out;
}
#teacher svg { width: 100%; display: block; transform-origin: 50% 100%;
  filter: drop-shadow(0 6px 8px rgba(58,51,30,.3));
  animation: tIdle 3.2s ease-in-out infinite; }
@keyframes tIdle { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-4px); } }
#teacher.walking svg { animation: tWalk .45s ease-in-out infinite; }
@keyframes tWalk { 0%,100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-9px); } }
#teacher.dancing svg { animation: tDance .5s ease-in-out infinite; }
@keyframes tDance {
  0%,100% { transform: rotate(-12deg) translateY(0) scale(1.05); }
  25% { transform: rotate(0deg) translateY(-16px) scale(1.08); }
  50% { transform: rotate(12deg) translateY(0) scale(1.05); }
  75% { transform: rotate(0deg) translateY(-16px) scale(1.08); }
}
.teacher-bubble {
  position: absolute; bottom: 108%; left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 14px; padding: 6px 11px;
  font-size: 13px; font-weight: 800; white-space: nowrap; color: var(--ink);
  box-shadow: 0 4px 12px rgba(58,51,30,.25);
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.teacher-bubble.show { opacity: 1; }

/* ---------- Cat teacher: sing + thumbs ---------- */
#teacher.singing svg { animation: tSing .7s ease-in-out infinite; }
@keyframes tSing { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg) scale(1.04); } }
.sing-note {
  position: absolute; bottom: 72%; font-size: 20px; color: #e08c1f;
  animation: noteUp 1.25s ease-out forwards; pointer-events: none;
  text-shadow: 0 1px 3px #fff;
}
@keyframes noteUp { to { transform: translateY(-48px) rotate(18deg); opacity: 0; } }
.t-thumb {
  position: absolute; top: 2%; right: -14%; font-size: 36px; display: none;
  animation: thumbPop .5s cubic-bezier(.22,1.8,.36,1); z-index: 2;
}
#teacher.thumbs .t-thumb { display: block; }
@keyframes thumbPop { from { transform: scale(0) rotate(-30deg); } to { transform: scale(1) rotate(0); } }

/* ---------- Fruit star burst ---------- */
.star-fly {
  position: fixed; z-index: 96; pointer-events: none; font-size: 18px;
  animation: starFly .95s ease-out forwards;
}
@keyframes starFly {
  60% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.3) rotate(140deg); opacity: 0; }
}

/* ---------- Install pill ---------- */
.install-pill { font-size: 17px; padding: 12px 24px; animation: bounce 2.2s ease-in-out infinite; }

/* ---------- Twinkling stars ---------- */
#world svg .twinkle {
  transform-box: fill-box; transform-origin: center;
  animation: twinkleA 4s ease-in-out infinite; cursor: pointer;
}
@keyframes twinkleA {
  0%, 100% { opacity: .12; transform: scale(.55) rotate(-10deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(8deg); }
}

/* ---------- Picture-only UI (no text) ---------- */
.target-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 84px; padding: 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); border: 4px solid #fff;
  font-size: 42px; line-height: 1;
  box-shadow: 0 6px 0 rgba(58,51,30,.15), 0 12px 22px rgba(58,51,30,.18);
  animation: chipPulse 1.6s ease-in-out infinite;
}
.target-chip .opt-swatch { width: 44px; height: 44px; border-width: 3px; }
@keyframes chipPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* ---------- Node: emoji chip instead of text plaque ---------- */
.node-emoji {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--cream); border: 2.5px solid var(--cream-edge);
  display: grid; place-items: center; font-size: 24px;
  box-shadow: 0 4px 0 rgba(58,51,30,.14), 0 8px 14px rgba(58,51,30,.12);
  margin: 0 8px;
}
.node-stars { display: flex; gap: 1px; font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.node-stars .off { opacity: .3; }

/* ---------- Color Mixing ---------- */
.mix-field { position: relative; width: min(94vw, 420px); height: 380px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, #e8d8ff, #f4ecff); }
.cz-wrap { position: absolute; left: 50%; top: 24%; transform: translateX(-50%); width: 160px; }
.cz-wrap svg { width: 100%; display: block; }
.cz-wrap.shake { animation: shake .5s; }
.cz-smoke { position: absolute; top: -16px; left: 50%; font-size: 26px; opacity: 0; }
.cz-wrap.shake .cz-smoke { animation: smokeUp 1s ease-out; }
@keyframes smokeUp { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -55px); } }
.mix-result { position: absolute; top: 10px; left: 0; right: 0; display: grid; place-items: center; min-height: 96px; }
.mix-pot { position: absolute; width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff;
  font-size: 34px; display: grid; place-items: center; box-shadow: 0 6px 0 rgba(58,51,30,.2); }

/* ---------- Block Builder ---------- */
.build-field { position: relative; width: min(94vw, 430px); height: 370px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, #bfe8ff 0 55%, #a8dd7c 55% 100%); }
.bb-water { position: absolute; left: 0; right: 0; top: 60%; height: 40%; background: #5db7e8; }
.bb-fish { position: absolute; right: 18px; top: 14px; font-size: 26px; animation: floatY 3s ease-in-out infinite; }
.bb-pillar { position: absolute; width: 26px; height: 92px; background: #c98a3e; border-radius: 6px 6px 0 0;
  box-shadow: inset -6px 0 0 rgba(0,0,0,.12); }
.bb-ghost { position: absolute; width: 56px; height: 40px; border: 3px dashed #b9a98a; border-radius: 8px;
  background: rgba(255,255,255,.35); }
.bb-ghost.filled { border-style: solid; border-color: #38b24a; background: #b5793e; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.bb-block { width: 56px; height: 40px; border-radius: 8px; border: none; background: #c98a3e;
  box-shadow: 0 5px 0 rgba(58,51,30,.22), inset 0 3px 0 rgba(255,255,255,.25); }
.bb-block.fall { animation: bbFall .7s ease-in forwards; }
@keyframes bbFall { to { transform: translateY(230px) rotate(28deg); opacity: .15; } }
.bb-walker { position: absolute; font-size: 46px; transition: left 2.2s ease-in-out; z-index: 5; }

/* ---------- Monster ---------- */
.monster-field { position: relative; width: min(94vw, 420px); height: 380px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, #cdb4f4, #eee2ff); }
.monster { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); width: 155px;
  transition: transform .4s cubic-bezier(.22,1.6,.36,1); }
.monster svg { width: 100%; display: block; }
.mf-item { width: 62px; height: 62px; font-size: 36px; border-radius: 50%; border: 3px solid #fff;
  background: #fff; box-shadow: 0 5px 0 rgba(58,51,30,.16); }
.mf-item.spit { animation: spitBack .55s ease-in forwards; }
@keyframes spitBack { to { transform: translateY(170px) rotate(360deg); opacity: .4; } }

/* ---------- Pipes ---------- */
.pipe-field { position: relative; width: min(94vw, 400px); height: 300px; border-radius: 24px;
  background: #dfe8ee; box-shadow: inset 0 3px 8px rgba(58,51,30,.1); }
.pipe-cell { position: absolute; padding: 0; border: none; background: transparent; cursor: pointer; }
.pipe-cell svg { width: 100%; display: block; }

/* ---------- Garden ---------- */
.garden-field { position: relative; width: min(94vw, 420px); height: 330px; border-radius: 24px;
  background: linear-gradient(180deg, #bfe8ff 0 18%, #a8dd7c 18% 100%);
  display: flex; gap: 18px; align-items: flex-end; justify-content: center; padding-bottom: 84px; }
.garden-plot { width: 88px; height: 104px; background: #c98a3e; border-radius: 12px 12px 20px 20px;
  display: grid; place-items: center; cursor: pointer; border: none;
  box-shadow: inset 0 8px 0 #a86f38, 0 6px 0 rgba(58,51,30,.18); }
.g-empty { font-size: 30px; opacity: .55; }
.g-plant { animation: popIn .5s cubic-bezier(.22,1.8,.36,1); }
.garden-tools { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 18px; }
.g-tool { width: 58px; height: 58px; border-radius: 50%; border: none; font-size: 28px; background: #fff;
  box-shadow: 0 5px 0 rgba(58,51,30,.18); cursor: pointer; }
.g-tool:active { transform: scale(.88); }

/* ---------- Music garden ---------- */
.music-field { position: relative; width: min(94vw, 420px); height: 300px; border-radius: 24px;
  background: linear-gradient(180deg, #ffe6f7, #e0f4ff); }
.mg-row { display: flex; gap: 8px; justify-content: center; padding-top: 44px; }
.mg-flower { width: 54px; height: 66px; border: none; background: transparent; font-size: 46px;
  cursor: pointer; filter: drop-shadow(0 4px 5px rgba(0,0,0,.2)); }
.mg-flower.bounce { animation: bounce .5s; }
.mg-tools { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 18px; }

/* ---------- Magic trace ---------- */
.trace-magic { position: relative; width: min(92vw, 310px); border-radius: 24px; background: #fff;
  padding: 6px; touch-action: none; }
.trace-magic svg { width: 100%; display: block; touch-action: none; }

/* ---------- Animal doctor ---------- */
.doc-field { position: relative; width: min(94vw, 400px); height: 350px; border-radius: 24px;
  background: linear-gradient(180deg, #e0f4ff, #fff5e0); }
.doc-patient { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font-size: 112px; }
.doc-animal { display: inline-block; }
.doc-mood { position: absolute; top: 4%; right: 16%; font-size: 36px; }
.doc-spot { position: absolute; width: 46px; height: 46px; border: 3px dashed #e17055; border-radius: 50%;
  transform: translate(-50%, -50%); }
.doc-spot.healed { border: none; font-size: 30px; display: grid; place-items: center; animation: popIn .4s; }
.doc-tray { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 14px; }

/* ---------- v14: Level Up (coins, timer, store, toast) ---------- */
.level-chip {
  display: inline-block;
  background: rgba(255, 255, 255, .65);
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  color: #7a4b00;
}
.brand-wear { font-size: 14px; margin-left: 3px; }

.time-bar-wrap {
  position: absolute;
  top: 8px; left: 14px; right: 14px;
  height: 10px;
  background: rgba(0, 0, 0, .12);
  border-radius: 99px;
  overflow: hidden;
  z-index: 6;
}
.time-bar {
  height: 100%;
  width: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #43c96b, #ffd93b 60%, #ff6b6b);
  transition: width linear;
}

#fast-toast {
  position: fixed;
  top: 18%;
  left: 50%;
  transform: translateX(-50%) scale(.8);
  background: #2f3542;
  color: #ffd93b;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  z-index: 99;
  transition: all .25s cubic-bezier(.22, 1.6, .36, 1);
}
#fast-toast.show { opacity: 1; transform: translateX(-50%) scale(1); }

.celebrate-coins {
  font-size: 22px;
  font-weight: 800;
  color: #b8860b;
  min-height: 30px;
  margin-top: 4px;
}

.store-sheru-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 8px 0 12px;
}
.store-sheru { font-size: 56px; }
.store-balance { font-size: 22px; font-weight: 800; color: #b8860b; }
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 430px;
  margin: 0 auto 14px;
}
.store-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #ffffffb0;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 12px 6px;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.store-item:active { transform: scale(.94); }
.store-item .s-e { font-size: 34px; }
.store-item .s-n { font-size: 11px; font-weight: 700; color: #555; text-align: center; }
.store-item .s-p { font-size: 13px; font-weight: 800; color: #b8860b; }
.store-item.owned { border-color: #43c96b; }
.store-item.owned .s-p { color: #2e9e57; }
.store-item.equipped { border-color: #e84393; background: #ffe9f3; }
.store-item.equipped .s-p { color: #e84393; }

/* ---------- v15: Jungle Challenge ---------- */
.pill-challenge {
  background: linear-gradient(135deg, #ff6b6b, #ff9f43);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(255, 107, 107, .45);
  animation: chPulse 2.2s ease-in-out infinite;
}
.pill-challenge b { font-size: 15px; }
@keyframes chPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ---------- v16: Cartoon characters (Sheru + friends) ---------- */
.char { display: inline-block; line-height: 0; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.char svg { overflow: visible; }

/* Halka bounce — zinda lagne ke liye */
.char.idle { animation: charIdle 2.8s ease-in-out infinite; }
@keyframes charIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Palkein jhapakna */
.char-lid {
  transform-box: fill-box;
  transform-origin: center;
  transform: scaleY(0);
  animation: charBlink 4.2s infinite;
}
@keyframes charBlink {
  0%, 91%, 100% { transform: scaleY(0); }
  94%, 96% { transform: scaleY(1); }
}

/* Bolne waqt muh */
.char-mouth { opacity: 0; transform-box: fill-box; transform-origin: center top; }
.char.talking .char-mouth {
  opacity: 1;
  animation: charTalk .16s ease-in-out infinite alternate;
}
@keyframes charTalk {
  from { transform: scaleY(.35); }
  to { transform: scaleY(1); }
}

/* Nachna */
.char.dancing { animation: charDance .52s ease-in-out infinite alternate; }
@keyframes charDance {
  from { transform: rotate(-8deg) translateY(0); }
  to { transform: rotate(8deg) translateY(-10px); }
}

/* Haath hilana (wave) */
.char-arm { transform-box: fill-box; transform-origin: top center; }
.char.waving .char-arm-r { animation: charWave .55s ease-in-out 4; }
@keyframes charWave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-42deg); }
}

/* Poonch hamesha lehraye */
.char-tail { transform-box: fill-box; transform-origin: left center; animation: charWag 1.7s ease-in-out infinite; }
@keyframes charWag {
  0%, 100% { transform: rotate(7deg); }
  50% { transform: rotate(-9deg); }
}

/* Celebrate par jhoomna */
.char.cheer .char-arm-l { transform: rotate(36deg); }
.char.cheer .char-arm-r { transform: rotate(-36deg); }

/* Celebrate troupe: Sheru + dost */
.troupe { display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.troupe .char:nth-child(2) { margin: 0 6px; }
.troupe .wear { font-size: 22px; align-self: center; margin-left: 2px; }

/* Splash + intro me character */
.splash-char { display: flex; justify-content: center; margin-bottom: 6px; }
.intro-char { display: flex; justify-content: center; margin-bottom: 4px; }

/* ---------- v17: Official Lucas & Friends GIFs ---------- */
.lu-gif {
  width: 130px;
  border-radius: 18px;
  animation: sway 1.6s ease-in-out infinite alternate;
}
.lu-gif.small { width: 92px; margin-left: 8px; }
.troupe { display: flex; align-items: flex-end; justify-content: center; }
#teacher img, .mascot-big img, #intro-char img, #store-sheru img {
  width: 100%;
  display: block;
  border-radius: 20px;
}
.mascot-big { width: 170px; }
#intro-char { width: 112px; margin-bottom: 4px; }
#intro-char img { animation: sway 1.4s ease-in-out infinite alternate; }
#teacher img {
  width: 100%;
  animation: tIdle 3.2s ease-in-out infinite;
  filter: drop-shadow(0 6px 8px rgba(58,51,30,.3));
}
@keyframes sway {
  from { transform: rotate(-4deg); }
  to { transform: rotate(4deg); }
}
#store-sheru { display: flex; align-items: center; gap: 6px; }

/* ---------- v18: User ke diye character + backgrounds ---------- */
.map-bg {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}
.lu-char {
  border-radius: 18px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
  background: rgba(255,255,255,.75);
}
.lu-char.bounce { animation: charIdle 2.8s ease-in-out infinite; }
.lu-char.dance { animation: charDance .52s ease-in-out infinite alternate; }
.lu-char.sway { animation: sway 1.6s ease-in-out infinite alternate; }
/* gallery photos hatayi gayi — wapas code-drawn backgrounds */
