/* Kids · "Sunny playground": sky, sun, grass hills, toy-button tiles, rounded Fredoka type */
.t-kids {
  --sky: #8ed8ff; --sky-deep: #3fa9f5; --sun: #ffd23f; --grass: #7ed957; --berry: #ff5c8a; --grape: #9b5de5; --orange: #ff9f1c; --ink: #2d2a4a;
  --bg: #eaf7ff; --surface: #ffffff; --surface-2: #eef3ff; --text: var(--ink); --muted: #5e5a80; --line: rgba(45, 42, 74, .14);
  --primary: var(--berry); --primary-ink: #fff; --accent: var(--grape); --accent-ink: #fff; --good: #22b573; --bad: #ff5050;
  --radius: 22px; --radius-sm: 14px; --font-body: 'Fredoka', 'Lexend', 'Comic Sans MS', sans-serif; --font-head: 'Fredoka', 'Lexend', sans-serif;
  --top-bg: rgba(255, 255, 255, .88); --shadow: 0 8px 22px rgba(45, 42, 74, .12);
  --stage-bg: linear-gradient(#bfe9ff, #eaf8ff 55%, #f3fff0); --stage-head-bg: rgba(255, 255, 255, .85);
  font-size: 1.06rem;
}
.t-kids .mu-mark { background: var(--sun); color: var(--ink); }
.t-kids .btn { font-weight: 600; }
.t-kids .btn-lg { font-size: 1.25rem; padding: .9rem 1.6rem; }
.t-kids h2 { font-weight: 700; }

/* hero */
.k-hero { position: relative; overflow: hidden; background: linear-gradient(#7fd0ff, #b9e8ff 70%, #d6f3ff); padding: 2.2rem 0 4.4rem; }
.k-hero::before { content: ''; position: absolute; right: 7%; top: 14%; width: 110px; height: 110px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 18px rgba(255, 210, 63, .35), 0 0 0 40px rgba(255, 210, 63, .15); }
.clouds i { position: absolute; width: 140px; height: 44px; border-radius: 40px; background: #fff; opacity: .95; animation: drift 38s linear infinite; }
.clouds i::before, .clouds i::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.clouds i::before { width: 64px; height: 64px; left: 22px; top: -30px; }
.clouds i::after { width: 46px; height: 46px; left: 70px; top: -20px; }
.clouds i:nth-child(1) { top: 18%; left: -10%; }
.clouds i:nth-child(2) { top: 44%; left: 30%; transform: scale(.7); animation-duration: 52s; animation-delay: -20s; }
.clouds i:nth-child(3) { top: 10%; left: 60%; transform: scale(.85); animation-duration: 46s; animation-delay: -32s; }
@keyframes drift { from { translate: -20vw 0; } to { translate: 110vw 0; } }
.hills { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: radial-gradient(60% 120px at 20% 100%, #6fcf4f 98%, transparent 100%), radial-gradient(55% 110px at 75% 100%, #7ed957 98%, transparent 100%); }
.k-hero-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 2rem; }
.numi { flex: 0 0 auto; width: 190px; height: 190px; border: 0; background: none; padding: 0; animation: bob 3s ease-in-out infinite; }
.numi svg { width: 100%; height: 100%; overflow: visible; }
.numi:active { transform: scale(.95); }
@keyframes bob { 50% { transform: translateY(-10px); } }
.numi .eye { animation: blink 4.5s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.k-hero-text { flex: 1; min-width: 0; }
.bubble { position: relative; display: inline-block; background: #fff; padding: .8rem 1.2rem; border-radius: 22px; font-size: 1.2rem; font-weight: 500; box-shadow: 0 6px 0 rgba(45, 42, 74, .1); margin: 0 0 .8rem; max-width: 34rem; }
.bubble::before { content: ''; position: absolute; left: -12px; bottom: 16px; border: 10px solid transparent; border-right: 14px solid #fff; border-left: 0; }
.k-hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); color: #fff; margin: 0 0 .9rem; font-weight: 700; text-shadow: 0 4px 0 #3fa9f5, 0 8px 0 rgba(45, 42, 74, .15); letter-spacing: .01em; }
.k-controls { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.k-level { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: rgba(255, 255, 255, .7); padding: .45rem .5rem .45rem 1rem; border-radius: 999px; }
.k-level-label { font-weight: 600; font-size: .95rem; }
.k-level .seg { background: transparent; border: 0; padding: 0; }
.k-level .seg-btn { font-size: 1rem; padding: .45rem .9rem; color: var(--ink); background: #fff; }
.k-level .seg-btn.on { background: var(--berry); color: #fff; }
.sticker-btn { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 #e0a800; font-size: 1.05rem; }
.sticker-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #e0a800; }

/* activity tiles */
.t-kids .act-section-head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.t-kids .act-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; }
.t-kids .act-card { background: var(--c, #ffd23f); color: var(--ink); border: 0; border-radius: 28px; box-shadow: 0 8px 0 color-mix(in srgb, var(--c, #ffd23f) 62%, #2d2a4a); padding: 1.1rem 1.1rem 1.3rem; align-items: center; text-align: center; transition: transform .15s ease, box-shadow .15s ease; }
.t-kids .act-card:hover { transform: translateY(-4px) rotate(-1.2deg); }
.t-kids .act-card:active { transform: translateY(5px); box-shadow: 0 3px 0 color-mix(in srgb, var(--c, #ffd23f) 62%, #2d2a4a); }
.t-kids .act-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 255, 255, .75); font-size: 2.8rem; margin-bottom: .35rem; }
.t-kids .act-title { font-size: 1.3rem; font-weight: 700; }
.t-kids .act-desc { color: color-mix(in srgb, var(--ink) 80%, transparent); font-size: .95rem; }
.t-kids .act-tag { background: var(--ink); color: #fff; }

/* stage */
.zone-kids .mu-stage-title { font-size: 1.4rem; }
.zone-kids .mu-stage-body { padding-top: 1.6rem; }
.kid-mcq .mcq-prompt { font-size: 1.9rem; }
.kid-mcq .mcq-info { font-size: 1.1rem; }
.kq { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; }
.kq small { display: block; font-size: 1.1rem; font-weight: 500; color: var(--muted); }
.kid-choices .mcq-choice { border: 0; border-radius: 30px; font-weight: 700; color: #fff; box-shadow: 0 7px 0 rgba(45, 42, 74, .22); min-height: 104px; font-size: 2.6rem; }
.kid-choices .mcq-choice:nth-child(4n+1) { background: #ff5c8a; } .kid-choices .mcq-choice:nth-child(4n+2) { background: #3fa9f5; }
.kid-choices .mcq-choice:nth-child(4n+3) { background: #9b5de5; } .kid-choices .mcq-choice:nth-child(4n+4) { background: #ff9f1c; }
.kid-choices .mcq-choice:hover:not(:disabled) { transform: translateY(-4px) scale(1.03); }
.kid-choices .mcq-choice.good { background: var(--good) !important; }
.kid-choices .mcq-choice.bad { background: #b9b6cc !important; }
.kid-choices.light .mcq-choice { background: #fff !important; color: var(--ink); border: 4px solid #fff; }
.kid-choices.light .mcq-choice.good { border-color: var(--good); background: #eafff3 !important; }
.kid-choices.light .mcq-choice.bad { border-color: var(--bad); background: #fff0f0 !important; }
.kid-choices .mcq-choice small { font-size: 1rem; display: block; }

/* emoji groups */
.kgroup { display: inline-grid; grid-template-columns: repeat(5, auto); gap: .25rem .4rem; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; padding: .5rem .8rem; background: rgba(255, 255, 255, .7); border-radius: 22px; }
.kgroup.sm { font-size: 1.6rem; }
.kgroup .kg-item { animation: popIn .35s backwards; animation-delay: var(--d, 0s); }
.kgroup .kg-item.hl { filter: drop-shadow(0 0 6px #ffd23f); transform: scale(1.25); transition: transform .2s; }
@keyframes popIn { from { transform: scale(0); opacity: 0; } }
.eq-row { display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap; font-size: 2.6rem; font-weight: 700; }
.op { color: var(--berry); font-size: 2.8rem; font-weight: 700; }

/* numbers 1–20 */
.num-tiles { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .5rem; }
.num-tile { aspect-ratio: 1; border: 0; border-radius: 18px; font-size: clamp(1.2rem, 3.2vw, 2rem); font-weight: 700; color: #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, .15); }
.num-tile.on { outline: 4px solid var(--ink); outline-offset: 2px; }
.num-show { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center; background: #fff; border-radius: 30px; padding: 1.4rem; margin: 1.2rem 0; box-shadow: var(--shadow); }
.num-big { font-size: clamp(6rem, 18vw, 10rem); font-weight: 700; line-height: .9; color: var(--berry); text-shadow: 0 6px 0 rgba(45, 42, 74, .12); min-width: 1.2em; text-align: center; }
.num-word { font-size: 2.2rem; font-weight: 700; margin: 0; text-transform: capitalize; }
.num-hindi { font-size: 1.5rem; color: var(--grape); margin: 0 0 .5rem; }
@media (max-width: 640px) { .num-tiles { grid-template-columns: repeat(5, 1fr); } .num-show { grid-template-columns: 1fr; text-align: center; } }

/* shapes */
.shape-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .9rem; }
.shape-card { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .9rem .5rem; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 6px 0 rgba(45, 42, 74, .1); font-weight: 600; font-size: 1.1rem; }
.shape-card.on { outline: 4px solid var(--berry); }
.shape-show { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; background: #fff; border-radius: 30px; padding: 1.4rem; margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.shape-show svg { animation: wobble .7s; }
@keyframes wobble { 30% { transform: scale(1.15) rotate(-6deg); } 60% { transform: scale(.95) rotate(4deg); } }

/* abacus (rekenrek) */
.abacus { max-width: 640px; margin: 0 auto; background: #8b5a2b; border-radius: 22px; padding: 18px 60px 18px 26px; box-shadow: inset 0 0 0 6px #6b4220, 0 10px 0 rgba(0, 0, 0, .12); display: grid; gap: 10px; }
.ab-row { position: relative; aspect-ratio: 12.5; }
.ab-row::before { content: ''; position: absolute; left: -10px; right: -10px; top: 50%; height: 5px; margin-top: -2.5px; background: linear-gradient(#e6e6e6, #9a9a9a); border-radius: 3px; }
.bead { position: absolute; top: 4%; width: 7.4%; height: 92%; border-radius: 50%; border: 0; padding: 0; transition: left .28s cubic-bezier(.3, 1.4, .5, 1); box-shadow: inset -4px -5px 0 rgba(0, 0, 0, .18), inset 3px 3px 0 rgba(255, 255, 255, .35); }
.ab-total { font-size: 4rem; font-weight: 700; color: var(--berry); line-height: 1; }
.ab-rowsum { position: absolute; right: -48px; top: 50%; transform: translateY(-50%); color: #ffe9c7; font-weight: 700; font-size: 1.1rem; width: 40px; text-align: left; }

/* clock */
.clock-wrap { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 1.6rem; align-items: center; }
.clock-svg { width: 100%; touch-action: none; cursor: grab; filter: drop-shadow(0 10px 0 rgba(45, 42, 74, .12)); }
.clock-digital { font-size: 3.4rem; font-weight: 700; color: var(--grape); margin: 0; font-variant-numeric: tabular-nums; }
.clock-words { font-size: 1.6rem; font-weight: 600; margin: .2rem 0 1rem; }
@media (max-width: 700px) { .clock-wrap { grid-template-columns: 1fr; } }

/* tracing & mirror */
.trace-wrap { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 1.4rem; align-items: start; }
.trace-canvas, .mirror-canvas { width: 100%; aspect-ratio: 1; background: #fff; border-radius: 28px; box-shadow: 0 8px 0 rgba(45, 42, 74, .12); touch-action: none; cursor: crosshair; }
.swatches { display: flex; gap: .5rem; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.swatch.on { outline: 4px solid var(--ink); }
@media (max-width: 700px) { .trace-wrap { grid-template-columns: 1fr; } }

/* skip-counting frog */
.pond { position: relative; background: linear-gradient(#59c3f5, #3fa9f5); border-radius: 30px; padding: 70px 16px 26px; overflow: hidden; }
.pads { position: relative; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.pad { aspect-ratio: 1; border-radius: 50% 50% 46% 50%; background: radial-gradient(circle at 40% 35%, #8be66b, #45b03a); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: clamp(.8rem, 2.4vw, 1.3rem); box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.pad.visited { background: radial-gradient(circle at 40% 35%, #ffe066, #f4b400); color: var(--ink); }
.frog { position: absolute; top: 14px; font-size: clamp(2rem, 6vw, 3.2rem); transition: left .45s ease; transform: translateX(-50%); }
.frog.hop { animation: hop .45s ease; }
@keyframes hop { 50% { transform: translate(-50%, -38px) scale(1.15); } }
.skip-trail { font-size: 1.6rem; font-weight: 700; min-height: 2.2em; letter-spacing: .02em; }

/* bubbles */
.bub-area { position: relative; height: min(64vh, 560px); border-radius: 30px; overflow: hidden; background: linear-gradient(#bfeaff, #6cc8f5); touch-action: manipulation; }
.bub { position: absolute; left: 0; top: 0; width: 84px; height: 84px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: var(--ink); background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .95) 0 12%, rgba(255, 255, 255, .35) 13% 45%, var(--bc, rgba(255, 92, 138, .55)) 70%); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7); will-change: transform; }
.bub.popped { animation: burst .3s forwards; pointer-events: none; }
@keyframes burst { to { transform: var(--t) scale(1.8); opacity: 0; } }
.bub-target { font-size: 1.6rem; font-weight: 700; }

/* memory */
.mem-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; max-width: 640px; margin: 0 auto; perspective: 800px; }
.mem-card { position: relative; aspect-ratio: .85; border: 0; padding: 0; background: none; transform-style: preserve-3d; transition: transform .45s; }
.mem-card.open { transform: rotateY(180deg); }
.mem-face { position: absolute; inset: 0; border-radius: 20px; display: grid; place-items: center; backface-visibility: hidden; box-shadow: 0 6px 0 rgba(45, 42, 74, .15); }
.mem-back { background: var(--grape) repeating-linear-gradient(45deg, rgba(255, 255, 255, .12) 0 10px, transparent 10px 20px); color: #fff; font-size: 2.2rem; }
.mem-front { background: #fff; transform: rotateY(180deg); font-size: 2.6rem; font-weight: 700; padding: .3rem; }
.mem-front .kgroup { font-size: 1.15rem; padding: .2rem; background: none; gap: 0 .1rem; }
.mem-card.done .mem-front { background: #eafff3; box-shadow: 0 0 0 4px var(--good); }

/* monster */
.monster-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: center; }
.monster svg { width: 100%; }
.monster .mouth { transition: d .2s; transform-origin: center; transform-box: fill-box; }
.monster.chomp .mouth { animation: chomp .25s 3; }
@keyframes chomp { 50% { transform: scaleY(.15); } }
.plate { min-height: 120px; background: #fff; border-radius: 999px / 60px; padding: 1rem 1.5rem; box-shadow: inset 0 -8px 0 rgba(45, 42, 74, .08), 0 6px 0 rgba(45, 42, 74, .1); font-size: 2.4rem; display: flex; flex-wrap: wrap; gap: .1rem; align-items: center; justify-content: center; }
.say { font-size: 1.8rem; font-weight: 700; background: #fff; border-radius: 24px; padding: .7rem 1.1rem; display: inline-block; box-shadow: 0 5px 0 rgba(45, 42, 74, .1); }
@media (max-width: 700px) { .monster-wrap { grid-template-columns: 1fr; } .monster { max-width: 220px; margin: 0 auto; } }

/* train & pairs */
.train { display: flex; align-items: flex-end; justify-content: center; gap: .35rem; flex-wrap: wrap; }
.car { min-width: 74px; height: 64px; display: grid; place-items: center; border-radius: 12px 12px 6px 6px; color: #fff; font-size: 2rem; font-weight: 700; position: relative; box-shadow: 0 5px 0 rgba(0, 0, 0, .15); }
.car::after { content: ''; position: absolute; bottom: -12px; left: 10px; right: 10px; height: 16px; background: radial-gradient(circle at 10px 8px, #2d2a4a 7px, transparent 8px), radial-gradient(circle at calc(100% - 10px) 8px, #2d2a4a 7px, transparent 8px); }
.car.missing { background: #fff !important; color: var(--berry); border: 4px dashed var(--berry); }
.engine { font-size: 3.4rem; line-height: 1; }
.pairs { display: inline-flex; gap: .55rem; flex-wrap: wrap; justify-content: center; background: rgba(255, 255, 255, .7); padding: .8rem 1rem; border-radius: 22px; }
.pair { display: grid; gap: .3rem; }
.dot { width: 34px; height: 34px; border-radius: 50%; background: var(--grape); }
.pair.single .dot { background: var(--orange); }

/* tables */
.tbl-pick { display: flex; flex-wrap: wrap; gap: .5rem; }
.tbl-pick button { width: 58px; height: 58px; border: 0; border-radius: 18px; font-size: 1.5rem; font-weight: 700; background: #fff; box-shadow: 0 5px 0 rgba(45, 42, 74, .12); }
.tbl-pick button.on { background: var(--berry); color: #fff; }
.tbl-lines { display: grid; gap: .45rem; margin-top: 1rem; }
.tbl-line { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: center; background: #fff; border-radius: 18px; padding: .45rem 1rem; font-size: 1.5rem; font-weight: 700; transition: transform .2s, background .2s; }
.tbl-line.hl { background: #fff4c2; transform: scale(1.02); }
.tbl-line .groups { display: flex; flex-wrap: wrap; gap: .4rem; font-size: 1rem; }
.tbl-line .groups span { background: #eef3ff; border-radius: 10px; padding: .05rem .35rem; }

/* stickers */
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: .6rem; }
.sticker { aspect-ratio: 1; display: grid; place-items: center; font-size: 2.6rem; border-radius: 20px; background: #fff8dc; border: 3px dashed #f0c84a; }
.sticker.locked { background: #f1f1f6; border-color: #d8d8e6; filter: grayscale(1); opacity: .45; font-size: 1.8rem; }
.sticker-progress { height: 14px; border-radius: 99px; background: #eee; overflow: hidden; margin: .5rem 0 1rem; }
.sticker-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), var(--berry)); }

/* grown-ups */
.grownups { margin-top: 2.5rem; padding: 1.6rem; background: #fff; border-radius: 28px; box-shadow: var(--shadow); }
.grownups h2 { margin-bottom: .8rem; }
.gu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; color: var(--muted); }
.gu-grid b { display: block; color: var(--ink); }
@media (max-width: 860px) { .gu-grid { grid-template-columns: 1fr 1fr; } .k-hero-in { flex-direction: column; text-align: center; } .bubble::before { display: none; } .k-controls { justify-content: center; } .numi { width: 150px; height: 150px; } }
@media (max-width: 520px) { .gu-grid { grid-template-columns: 1fr; } }
