@font-face{font-family:Bloom;src:url('/fonts/baloo-2-extrabold-latin.ttf')}*{box-sizing:border-box}body{margin:0;background:#f4fbf7;color:#173e50;font:18px/1.5 'Trebuchet MS',sans-serif;background-image:radial-gradient(#addfd14d 1.5px,transparent 1.5px);background-size:26px 26px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;min-height:54px;border-radius:18px;border:2px solid #dbe9e8;background:white;color:inherit;padding:12px 20px;font-weight:bold}button:hover,a.lesson-card:hover{border-color:#169b91;transform:translateY(-2px)}button:focus-visible,a:focus-visible{outline:4px solid #694bc5;outline-offset:4px}button:disabled{opacity:.5;cursor:default;transform:none}[hidden]{display:none!important}.top{max-width:1080px;margin:auto;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{font-family:Bloom,sans-serif;font-size:32px;text-decoration:none;color:#174b63}.brand span{color:#0c9995}.home-link{color:#245d6b;font-size:15px}main{max-width:1080px;margin:auto;padding:0 20px}h1,h2,h3{font-family:Bloom,'Trebuchet MS',sans-serif;line-height:1.15}h1{font-size:clamp(32px,5.5vw,56px);margin:12px 0}h2{font-size:30px}.eyebrow{font-weight:bold;font-size:13px;letter-spacing:.08em;color:#44717d}.hero{padding:35px;border-radius:32px;background:linear-gradient(115deg,#fff9db,#e0f6ec);display:grid;grid-template-columns:1.2fr 1fr;align-items:center;border:2px solid #fff;box-shadow:0 12px 32px #194b5c0c}.buddies{display:flex;justify-content:center;align-items:end}.buddies img{width:50%;max-width:180px;object-fit:contain}.primary{background:#087f7b;color:white;border-color:#087f7b;box-shadow:0 5px 0 #066562}.quiet{background:#fff;color:#315368}.sections{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.sections button{font-size:18px;text-align:left;border-bottom-width:5px}.sections button:nth-child(2){background:#fff2c8}.sections button:nth-child(3){background:#e9e0ff}.sections button:nth-child(4){background:#dff3ff}.sections button:nth-child(5){background:#ffe6e8}.sections button:nth-child(6){background:#e1f4df}.sections button[aria-pressed=true]{outline:3px solid #16877f;outline-offset:2px}.unit-title{margin:28px 0 14px}.lesson-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.lesson-card{text-decoration:none;color:inherit;padding:18px;background:white;border:2px solid #ddebe8;border-bottom:5px solid #bfdfd6;border-radius:20px;display:flex;gap:14px;align-items:center;transition:transform .15s}.lesson-card .icon{font-size:32px;min-width:42px;text-align:center}.lesson-card strong{font-size:18px}.lesson-card small{display:block;font-size:12px;color:#58727d;margin-top:4px}.lesson-card.done{border-color:#6fbca1}.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0}.tabs button{font-size:21px;border-bottom-width:5px}.tabs button[aria-pressed=true]{background:#ffdc77;border-color:#d1a443}.activity-card{border-radius:28px;padding:28px;background:#fff;box-shadow:0 12px 32px #194b5c0c;border:2px solid #e2ede6;text-align:center;min-height:330px}.instruction{font-size:24px;font-weight:bold;margin:6px 0 20px}.picture-row{display:flex;gap:15px;justify-content:center;flex-wrap:wrap;margin:20px 0}.picture{background:#f1f9fb;border-radius:22px;min-width:120px;padding:16px}.picture .emoji,.big-emoji{display:block;font-size:65px;line-height:1.4}.picture strong{display:block}.letter{font:110px/1.2 'Trebuchet MS',sans-serif;color:#7351ba;margin:10px}.counting{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:20px auto;max-width:600px}.count-object{font-size:54px;min-width:72px;padding:10px;background:#fff8dd;border:3px solid #efdba2;border-radius:22px}.count-object.counted{background:#c6f1de;border-color:#2d9673}.count-object small{display:block;font-size:21px}.shape{width:150px;height:150px;display:block;margin:auto}.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px auto;max-width:750px}.choice{font-size:24px;background:#f4f7ff;border-bottom-width:5px}.choice.correct{background:#d4f6df;border-color:#229567}.choice.retry{background:#fff2d7;border-color:#d89d30}.feedback{min-height:46px;font-size:22px;font-weight:bold;color:#11694a}.trace-wrap{max-width:600px;margin:20px auto}.trace-wrap canvas{display:block;width:100%;aspect-ratio:2.2;background:#fffcf1;border:3px dashed #d8c5a2;border-radius:20px;touch-action:none}.trace-actions{display:flex;gap:10px;justify-content:center;margin-top:12px}.trace-guide{font-size:15px;color:#5e707a}.lesson-controls{display:flex;justify-content:space-between;gap:15px;margin:22px 0}.badge{display:inline-block;background:#fff1bd;padding:8px 16px;border-radius:30px;font-weight:bold}.story{font-size:24px;max-width:650px;margin:15px auto}.step{border-radius:18px;background:#fff5d8;padding:18px;margin:12px auto;max-width:650px;font-size:22px}.read{font-size:16px;margin:12px}.celebrate{animation:pop .5s ease}footer{padding:36px 20px;text-align:center;color:#5d7480;font-size:14px}.parent-note{font-size:14px;color:#536c76;margin:14px auto;max-width:600px}@keyframes pop{50%{transform:scale(1.06)}}@media(max-width:700px){.hero{padding:24px;grid-template-columns:1fr}.buddies{margin-top:16px}.buddies img{max-width:115px}.sections{grid-template-columns:repeat(2,1fr)}.lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lesson-card{padding:12px;gap:8px}.lesson-card .icon{font-size:27px;min-width:30px}.lesson-card strong{font-size:16px}.activity-card{padding:20px 12px}.tabs{gap:7px}.tabs button{font-size:16px;padding:10px 4px}.choices{gap:8px}.choice{font-size:20px;padding:12px 7px}.choice .big-emoji{font-size:42px}.instruction{font-size:21px}.picture{min-width:100px;padding:12px}.lesson-controls button{font-size:15px;padding:12px}.top{padding:16px}.brand{font-size:28px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.trace-actions select{font:inherit;min-height:48px;max-width:160px;border:2px solid #dbe9e8;border-radius:14px;background:white;padding:8px;color:#173e50}.choice .shape{width:min(100%,125px);height:auto}.picture .shape{width:90px;height:90px}

.silhouette .emoji,.silhouette svg{filter:brightness(0);opacity:.75}

/* A gentle rainbow palette for our youngest explorers. */
body{min-height:100vh;background-color:#fffaf0;background-image:radial-gradient(circle at 10% 0,#ffe5be80,transparent 45%),radial-gradient(circle at 95% 25%,#e5dcff70,transparent 45%);background-size:100% 100%;background-repeat:no-repeat;background-attachment:fixed}
.hero{background:linear-gradient(120deg,#fff0b9,#ffe2d5 50%,#eee3ff);border-color:#fff;box-shadow:0 8px 0 #efd7b8,0 16px 32px #194b5c0c}
.eyebrow{color:#735181}.hero h1{color:#57437b}.hero .primary{background:#0a8581;border-color:#0a8581}
.unit-title{display:inline-block;padding:9px 18px;background:#fff0bc;border-radius:18px;color:#614a30}
.lesson-grid:nth-of-type(2n) .lesson-card:nth-child(3n+1),.lesson-card:nth-child(3n+2){background:#fff1e7;border-color:#f1ccad;border-bottom-color:#e7b58d}
.lesson-card:nth-child(3n+1){background:#f0ebff;border-color:#d9cdf1;border-bottom-color:#c1ace4}
.lesson-card:nth-child(3n){background:#e5f5f2;border-color:#b9e2d8;border-bottom-color:#8bcabc}
.lesson-card.done{border-color:#389778}.sections button:first-child{background:#fff0c2}
.tabs button{background:#fff5cf;border-color:#edd489;box-shadow:0 3px 0 #ddc47b}
.tabs button:nth-child(2){background:#eee6ff;border-color:#d3c1ee;box-shadow:0 3px 0 #bda3dc}
.tabs button:nth-child(3){background:#dff3ef;border-color:#aedbd1;box-shadow:0 3px 0 #8dc5b8}
.tabs button[aria-pressed=true]{outline:3px solid #306b70;outline-offset:3px;color:#163e50}
.activity-card{border-color:#e9d8ba;border-top:7px solid #f3cf72;background:linear-gradient(#fffdf5,#fff 170px)}
.picture:nth-child(3n+1){background:#fff1cf}.picture:nth-child(3n+2){background:#efe6ff}.picture:nth-child(3n){background:#e2f4ef}
.read{background:#eef6ff;border-color:#bfd6ee;color:#24506d}
.choice:nth-child(3n+1){background:#fff3d8;border-color:#ead29a}.choice:nth-child(3n+2){background:#eee7ff;border-color:#d0bfef}.choice:nth-child(3n){background:#e4f5f1;border-color:#b6ded4}
.choice.correct{background:#d4f6df;border-color:#229567}.choice.retry{background:#fff2d7;border-color:#d89d30}
.trace-wrap canvas{border-color:#c6a6dd;background:#fffaf1}
@media(max-width:420px){.tabs button{font-size:15px}.tabs{gap:9px}.hero{padding:20px}.lesson-card{padding:12px 9px}.lesson-card strong{font-size:15px}}

.trace-wrap{overscroll-behavior:contain}.trace-wrap canvas{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overscroll-behavior:none}html{overflow-anchor:none}

/* Follow the current spoken picture without changing card layout. */
.picture.speaking{outline:4px solid #e4a51d;outline-offset:3px;box-shadow:0 0 0 7px #fff0b8;background:#fff2ad}
.picture.speaking strong{color:#103f48;text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:5px}

/* Keep heading focus for screen readers without the browser's title outline. */
#lessonTitle:focus{outline:none}

/* A brief reward for every correct answer, without blocking the next question. */
.reward-burst{position:fixed;z-index:20;left:50%;top:40%;width:1px;height:1px;pointer-events:none;animation:reward-fade 1.6s linear forwards}
.reward-star{position:absolute;left:0;top:0;font-size:30px;line-height:1;animation:reward-scatter 1.6s ease-out forwards}
.choice.correct:disabled{opacity:1}
@keyframes reward-scatter{0%{opacity:0;transform:translate(-50%,-50%) scale(.3)}15%{opacity:1}75%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) rotate(var(--turn)) scale(1.1)}}
@keyframes reward-fade{to{visibility:hidden}}
@media(prefers-reduced-motion:reduce){.reward-burst{display:none}}

.trace-options{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:12px 0}.trace-options button{min-width:110px;font-size:16px;padding:9px 12px;background:#f4edff;border-color:#d1bce7}.trace-options button[aria-pressed=true]{background:#ffe58b;border-color:#bc9133;color:#173e50}

/* Follow narration without oversized frames or answer hints. */
.read-with-text{margin:12px auto;max-width:680px}.read-with-text .read{margin:0 0 10px}.read-along{font-size:clamp(21px,4vw,28px);font-weight:bold;line-height:1.8;padding:14px 18px;border:3px solid #e7d8ad;border-radius:20px;background:#fffaf0;overflow-wrap:anywhere;margin:0 auto 14px;text-align:center}.read-word{border-radius:7px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.spoken-word{background:#ffe16b;color:#173e50;box-shadow:0 0 0 3px #ffe16b;text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:5px}.read-along.speaking,.letter.speaking{background:#fff2ad;color:#173e50;outline:4px solid #d7a116;outline-offset:3px;border-radius:16px;box-shadow:0 0 0 7px #fff0b8}.instruction,.story,.step{width:fit-content;margin-inline:auto}.instruction{max-width:100%}.instruction.speaking,.story.speaking,.step.speaking{background:#fff3c7;color:#173e50;outline:none;box-shadow:none;border-radius:7px;text-decoration:none}.picture.speaking strong{text-decoration:none}


/* Keep letter highlights close to the glyphs, including on phones. */
.letter{display:table;width:fit-content;max-width:100%;margin:12px auto;padding:4px 14px;font-size:clamp(64px,15vw,96px);line-height:1.1}
.picture-word{display:block;font-size:16px;margin-top:4px}


/* Browsing never draws. The page stays locked for the whole intentional pen session. */
.trace-wrap canvas{touch-action:pan-y;cursor:auto}.trace-wrap.pen-enabled canvas{touch-action:none;cursor:crosshair;outline:3px solid #087f7b;outline-offset:3px}
.trace-tools{display:flex;gap:12px;justify-content:center;position:relative;z-index:2;margin:12px 0 6px}.trace-tools button{min-width:115px;touch-action:manipulation;transform:none}.trace-tools button[aria-pressed="true"]{background:#087f7b;border-color:#087f7b;color:white;box-shadow:0 3px 0 #065f5c}.trace-mode-hint{font-size:16px;color:#315368;margin:8px auto 14px;max-width:600px}.trace-wrap.pen-enabled .trace-mode-hint{font-weight:bold;color:#075f5b}

.trace-tools{scroll-margin-top:12px}

.friends-coloring{margin:22px auto 12px;max-width:660px;border:2px solid #d7e9e2;border-radius:24px;background:#f5fbf7;padding:18px 12px}.friends-coloring h2{font-size:27px;margin:4px 0 10px}.color-help,.color-feedback{font-size:16px;margin:8px auto 14px;max-width:550px}.color-feedback{min-height:25px;color:#0a716c;font-weight:bold}.color-palette,.color-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:center}.color-swatch{min-height:48px;width:48px;padding:0;overflow:hidden;font-size:0;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #9db5b3;transform:none!important}.color-swatch[aria-pressed="true"]{outline:4px solid #087f7b;outline-offset:2px;box-shadow:inset 0 0 0 3px white}.friends-color-picture{display:block;width:100%;height:auto;background:#fff;border-radius:18px;border:2px solid #d8e5e1;touch-action:pan-y;user-select:none;-webkit-user-select:none;margin:10px auto 14px}.friends-color-picture [role="button"]{cursor:pointer;outline:none}.friends-color-picture [role="button"]:focus-visible{stroke:#087f7b;stroke-width:8}.color-actions button{font-size:16px;min-height:46px}.color-own-drawing{margin-top:16px}.color-own-drawing>.quiet{font-size:16px}@media(max-width:420px){.friends-coloring{padding:16px 8px}.color-palette{gap:10px}.color-swatch{width:43px;min-height:43px}.friends-coloring h2{font-size:25px}}

/* Picture-led vocabulary for both kindergarten stages. */
.kg-art{display:block;flex:none;width:clamp(105px,25vw,170px);height:clamp(105px,25vw,170px);background-repeat:no-repeat;background-color:#fff;border-radius:17px;margin:0 auto;pointer-events:none}.picture{position:relative;min-width:0;padding:14px 10px 12px}.picture-row{align-items:stretch;gap:14px}.picture strong,.picture small{overflow-wrap:anywhere}.picture-listen{min-width:44px;min-height:44px;padding:6px 10px;margin:8px auto 0;background:#e6f8f4;color:#116d69;border:2px solid #b5e2d9;border-radius:50%;font-size:20px}.picture.speaking{outline:4px solid #f3bd36;box-shadow:0 0 0 8px #fff1af;transform:translateY(-3px)}.choice .kg-art{width:clamp(90px,23vw,150px);height:clamp(90px,23vw,150px)}.counting{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.counting>.kg-art,.count-object .kg-art{width:76px;height:76px}.count-object{display:flex;flex-direction:column;align-items:center;padding:8px}.kg-color{display:block;width:110px;height:110px;border:4px solid #d5e3e7;border-radius:25px;margin:18px auto}.kg-symbol{display:grid;place-items:center;width:140px;height:140px;font-size:80px;color:#168c84;margin:auto}.kg-calendar{width:clamp(105px,25vw,170px);min-height:140px;display:flex;flex-direction:column;justify-content:space-between;background:#fffbed;border:3px solid #f4bc69;border-radius:18px;overflow:hidden;text-align:center;margin:auto;color:#233f53}.kg-calendar>span:first-child{font-size:12px;font-weight:bold;background:#ef8395;color:#fff;padding:6px}.kg-calendar>strong{font-size:clamp(14px,3.7vw,22px);padding:12px 2px}.kg-calendar>span:last-child{font-size:26px;color:#178c83}.picture.hide-label strong{display:none}.choice:focus-visible,.picture-listen:focus-visible{outline:4px solid #7354b1;outline-offset:4px}@media(max-width:480px){.picture-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.picture-row>.picture:only-child{grid-column:1/-1;max-width:240px;width:100%;justify-self:center}.choices{gap:10px}.picture{padding:10px 6px}.picture strong{font-size:18px}}@media(prefers-reduced-motion:reduce){.picture.speaking{transform:none}}

.kg-art-pair{display:flex;align-items:center;justify-content:center;width:clamp(105px,25vw,170px);height:clamp(105px,25vw,170px);margin:auto}.kg-art-pair .kg-art{width:50%;height:50%;border-radius:8px}

/* Full-width answer cards keep picture options legible on narrow phones. */
@media(max-width:600px){
 .choices{grid-template-columns:minmax(0,1fr)}
 .choice{display:flex;align-items:center;gap:16px;width:100%;min-width:0;text-align:left}
 .choice>.kg-art,.choice>.kg-art-pair{width:80px;height:80px;margin:0;flex:none}
 .choice>.kg-calendar{width:90px;min-height:100px;margin:0;flex:none}
 .choice>.kg-symbol{width:80px;height:80px;font-size:54px;margin:0;flex:none}
 .choice>.kg-color{width:72px;height:72px;margin:0;flex:none}
 .choice>.shape{width:80px;max-width:80px;flex:none}
 .choice>span:last-child{flex:1;min-width:0;overflow-wrap:anywhere}
 .choice>span:only-child{text-align:center}
}

/* Geometry uses equal drawing bounds rather than uneven font glyphs. */
.kg-shape-art{display:block;flex:none;width:140px;height:140px;margin:auto}.counting>.kg-shape-art,.count-object .kg-shape-art{width:76px;height:76px}@media(max-width:600px){.choice>.kg-shape-art{width:80px;height:80px;margin:0}}

/* The same local articulated drawing stays visible at rest and in motion. */
.kg-action{display:block;width:clamp(125px,35vw,170px);max-width:100%;margin:auto}.kg-action-stage{display:block;width:100%;aspect-ratio:1;overflow:hidden;border-radius:17px;background:#eef9fc}.kg-action-svg{display:block;width:100%;height:100%}.kg-action-still{width:140px;height:140px;margin:auto;flex:none}.kg-action-play{display:block;min-height:44px;width:100%;padding:6px 8px;margin:5px 0 0;border-radius:13px;background:#f2fbf7;border:2px solid #c3e6d6;color:#185f57;font-size:14px;line-height:1.2}.kg-action-play:focus-visible{outline:3px solid #7354b1;outline-offset:2px}
@media(max-width:600px){.choice>.kg-action-still{width:80px;height:80px;margin:0}}


/* Sound-and-word practice uses the same compact picture speakers. */
.phonics-examples{margin:24px 0;padding:18px 12px;border:2px solid #b9e8df;border-radius:24px;background:linear-gradient(120deg,#effcf7,#fff7d9)}.phonics-examples h2{font-size:clamp(20px,5vw,26px);text-align:center;margin:0 0 14px;color:#176d67}.phonics-examples .picture{background:#fff;border-radius:20px}

/* Happy answer rewards and a bigger, child-friendly end-of-adventure moment. */
.reward-burst{inset:0;width:auto;height:auto;overflow:hidden;animation:reward-fade 2.8s linear forwards;contain:layout paint;pointer-events:none}
.reward-finale{animation-duration:3.5s}
.reward-star{left:50%;top:40%;font-size:clamp(24px,6vw,38px);animation-duration:2s}
.reward-toast{position:absolute;top:max(20px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:12px;width:max-content;max-width:calc(100% - 32px);padding:13px 24px;border:3px solid #fff;border-radius:999px;background:linear-gradient(115deg,#fff0a7,#fff9df);color:#64411e;box-shadow:0 9px 30px #88632628;font-family:Bloom,'Trebuchet MS',sans-serif;font-size:clamp(23px,6vw,32px);line-height:1.2;animation:reward-toast-pop 2.6s ease both}
.reward-toast-star,.reward-toast-sparkle{font-size:32px}
.reward-confetti{position:absolute;top:-28px;left:var(--x);width:11px;height:20px;border-radius:3px;background:var(--color);opacity:0;animation:reward-rain 2.4s var(--delay) cubic-bezier(.22,.5,.55,1) both;will-change:transform,opacity}
.reward-confetti.round{border-radius:50%;width:14px;height:14px}
.reward-finale .reward-confetti{animation-duration:3s}
.feedback.celebrate{width:fit-content;max-width:100%;margin:16px auto;padding:10px 22px;border-radius:18px;background:linear-gradient(110deg,#dcf8e6,#fff4ba);color:#17674f;box-shadow:0 4px 0 #c5e9d3;font-family:Bloom,'Trebuchet MS',sans-serif;font-size:clamp(24px,6vw,32px)}
.lesson-complete{background:radial-gradient(ellipse at top,#fff2c1,transparent 65%),linear-gradient(145deg,#fffef7,#edf9f4);border:3px solid #f0cf73;overflow:hidden}
.completion-panel{max-width:620px;margin:auto;padding:4px 0 14px}
.completion-ribbon{display:inline-block;margin:0 0 12px;padding:7px 20px;border-radius:999px;background:#e7def9;color:#614895;font-size:12px;font-weight:bold;letter-spacing:.12em}
.completion-stars{display:flex;align-items:center;justify-content:center;gap:13px;height:82px}
.completion-star{display:block;color:#efb420;font-size:65px;line-height:1;text-shadow:0 4px 0 #d98e27,0 7px 16px #edbe4466;animation:completion-star-in .65s var(--delay) cubic-bezier(.2,1.5,.4,1) both}
.completion-star:nth-child(2){font-size:83px;transform:translateY(-5px)}
.completion-friends{position:relative;display:flex;justify-content:center;align-items:flex-end;gap:54px;margin:8px auto 0;max-width:340px;min-height:140px}
.completion-friend{width:clamp(90px,22vw,128px);height:140px;object-fit:contain;filter:drop-shadow(0 6px 0 #cbe8df77);animation:completion-happy 1.5s ease-in-out 2}
.completion-friend:nth-child(2){animation-delay:.18s}
.completion-trophy{position:absolute;left:50%;bottom:0;transform:translateX(-50%);font-size:62px;line-height:1.2;filter:drop-shadow(0 5px 4px #b98a3333)}
.completion-title{font-size:clamp(30px,7vw,46px);color:#166f69;margin:17px 0 8px}
.completion-title:focus{outline:none}
.completion-lesson{margin:0;font-size:clamp(17px,4.8vw,23px);font-weight:bold;color:#7553a0;overflow-wrap:anywhere}
.completion-message{max-width:430px;margin:10px auto 16px;font-size:17px;color:#42626c;line-height:1.5}
.completion-badge{display:flex;align-items:center;justify-content:center;gap:10px;width:fit-content;max-width:100%;margin:12px auto 20px;padding:9px 22px;background:#fff0b3;border:2px solid #eac56b;border-radius:18px;color:#83531d;font-size:19px}
.completion-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:14px}.completion-actions button{min-width:180px}
@keyframes reward-rain{0%{opacity:0;transform:translate3d(0,-20px,0) rotate(0)}8%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translate3d(var(--drift),105vh,0) rotate(var(--spin))}}
@keyframes reward-toast-pop{0%{opacity:0;transform:translate(-50%,-25px) scale(.7)}15%,80%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-10px) scale(.95)}}
@keyframes completion-star-in{from{opacity:0;transform:translateY(20px) scale(.2) rotate(-20deg)}to{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
@keyframes completion-happy{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-9px) rotate(2deg)}}
@media(max-width:480px){.completion-panel{padding:0 0 8px}.completion-friends{min-height:118px;margin-top:4px;gap:42px}.completion-friend{height:118px}.completion-stars{height:72px}.completion-star{font-size:56px}.completion-star:nth-child(2){font-size:72px}.completion-trophy{font-size:54px}.completion-title{margin-top:12px}.completion-actions{gap:12px}.completion-actions button{width:100%;min-width:0}.completion-message{font-size:16px}.reward-toast{padding:12px 17px;gap:8px}.reward-toast-star,.reward-toast-sparkle{font-size:27px}}
@media(prefers-reduced-motion:reduce){.completion-star{opacity:1}.completion-friend{transform:none}.reward-burst{display:none}}

/* Complete mascot frames keep one coherent style from head to shoes. */
.kg-action-stage{background:#fff}.kg-action-svg{background:#fff;border-radius:16px}.kg-action-stage svg image{image-rendering:auto}


/* Short, varied practice games shared by KG1 and KG2. */
.play-journey{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin:8px auto 18px;max-width:680px}.journey-dot{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#eef0fa;color:#526279;font-size:20px}.journey-dot.earned{background:#fff0ad;color:#94610c}.kg-game{padding:20px;border:2px solid #cbece6;border-radius:26px;background:linear-gradient(145deg,#effcf7,#fffbea);text-align:center}.game-name{font-size:1.15rem;font-weight:800;color:#32566a;margin:0 0 10px}.game-help{font-size:1rem;line-height:1.6;color:#3e5367;max-width:560px;margin:16px auto}.kg-game .read{margin:8px}.game-tray,.game-counting{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:18px 0}.basket-object,.game-count-object{position:relative;display:grid;place-items:center;min-width:70px;min-height:76px;border:2px solid #cbdde5;border-radius:20px;background:white;padding:8px;cursor:pointer}.basket-object .shape,.game-count-object .shape{width:65px;height:65px}.basket-object .big-emoji,.game-count-object .big-emoji{font-size:42px}.basket-object.collected{opacity:.25;transform:scale(.85)}.game-drop{border:3px dashed #9c7bc9;background:#fff;color:#533e78;min-height:84px;min-width:84px;border-radius:20px;cursor:pointer}.basket-drop{width:min(100%,460px);padding:14px;margin:10px auto;display:block;background:#fff4d6;border-color:#c28d36}.basket-icon{font-size:52px}.basket-inside{display:flex;flex-wrap:wrap;gap:4px;justify-content:center}.basket-inside .shape{width:36px;height:36px}.basket-inside .big-emoji{font-size:30px}.basket-counter{font-size:1.5rem;font-weight:800;margin:8px;color:#715317}.game-puzzle{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin:16px 0}.game-puzzle>.shape{width:90px;height:90px}.match-letter{font-size:clamp(36px,8vw,68px);font-weight:800;color:#7251aa}.puzzle-symbol{font-size:48px}.puzzle-drop{font-size:38px;padding:12px}.puzzle-drop .shape{width:70px;height:70px}.puzzle-drop.filled{background:#dcf9e7;border:3px solid #35a97b}.sequence-tile{font-size:26px;font-weight:800;background:#e6e0fa;border-radius:12px;padding:12px;min-width:44px}.game-tiles{justify-content:center}.kg-game .choice{background:#fff;border:3px solid #d8e2f1;box-shadow:0 5px 0 #cfdfdf;cursor:pointer;min-width:90px;min-height:110px;transition:transform .15s}.kg-game .choice.selected{border-color:#8051bf;background:#f2e8ff;transform:translateY(-5px)}.kg-game .choice.correct{border-color:#30a778;background:#dcf9e7}.kg-game .choice.retry{opacity:.55;background:#fff2e4}.hunt-scene{position:relative;isolation:isolate;padding:26px 12px 60px;border-radius:24px;background:linear-gradient(#dcf4ff 0 65%,#cfeeb6 65%);gap:22px;overflow:hidden}.hunt-scene .choice{z-index:1;border-radius:45% 45% 22px 22px}.hunt-scenery{position:absolute;bottom:0;left:0;right:0;font-size:32px;letter-spacing:12px;pointer-events:none;z-index:-1}.count-number{position:absolute;right:0;top:0;background:#176d63;color:white;padding:4px 8px;border-radius:50%;font-size:18px}.game-count-object.counted{background:#dbf8e5;border-color:#37a77d}.kg-game button:focus-visible{outline:4px solid #6143ac;outline-offset:4px}.kg-game button:disabled{cursor:default}.kg-game .choice .shape{max-width:100%;width:100px;height:100px}.kg-game .feedback{min-height:1.8em}.kg-game .primary{margin:12px auto;max-width:100%}@media(max-width:480px){.kg-game{padding:14px 8px;border-radius:20px}.kg-game .choices{gap:12px}.kg-game .choice{padding:10px 6px;min-width:0}.kg-game .choice .shape{width:76px;height:76px}.game-tray{gap:8px}.basket-object{min-width:58px;min-height:66px}.basket-object .shape{width:48px;height:48px}.hunt-scene{padding:20px 8px 52px}.sequence-tile{padding:8px;min-width:34px}.game-puzzle{gap:6px}}@media(prefers-reduced-motion:reduce){.kg-game *{transition:none!important;animation:none!important}}
.basket-object .kg-art,.game-count-object .kg-art,.basket-object .kg-art-pair,.game-count-object .kg-art-pair{width:65px;height:65px}.basket-inside .kg-art,.basket-inside .kg-art-pair{width:36px;height:36px}.game-puzzle>.kg-art,.puzzle-drop .kg-art{width:80px;height:80px}@media(max-width:480px){.basket-object .kg-art,.basket-object .kg-art-pair{width:48px;height:48px}}

/* Interactive play: real containers, flying objects, memory and sorting. */
.game-picker{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:12px auto 18px;max-width:720px}.game-picker-button{font-size:.86rem!important;padding:8px 12px!important;border:2px solid #d6dfea!important;border-radius:999px!important;background:white!important;box-shadow:none!important;min-height:40px}.game-picker-button[aria-pressed=true]{background:#e5def9!important;border-color:#9776d0!important;color:#4b3377}.basket-drop{padding:8px 12px 12px;background:#fffbeb;border-style:solid;border-color:#e2b576;max-width:370px;overflow:visible}.basket-shell{position:relative;width:min(100%,340px);aspect-ratio:340/230;margin:auto;pointer-events:none}.basket-drawing{display:block;width:100%;height:100%}.basket-drop .basket-inside{position:absolute;inset:36% 16% 13%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-content:end;align-items:end;justify-items:center;gap:2px;overflow:hidden;z-index:2}.basket-slot{display:grid;place-items:center;width:100%;aspect-ratio:1;max-width:50px;transition:opacity .12s}.basket-slot.landing{opacity:0}.basket-slot .kg-art,.basket-slot .kg-art-pair,.basket-slot .shape,.basket-slot .kg-shape-art{width:100%!important;height:100%!important;border-radius:5px;background-color:transparent}.basket-slot .big-emoji{font-size:30px}.basket-counter{margin:0;font-size:1.35rem}.basket-object.collected{opacity:0;pointer-events:none;transform:scale(.4)}.basket-object{transition:opacity .2s,transform .2s}.flying-object{position:fixed;z-index:10000;display:grid;place-items:center;pointer-events:none;filter:drop-shadow(0 6px 5px #0003)}.flying-object>*{width:100%!important;height:100%!important}.cloud-drop{background:#f0fbff;border-color:#a6d4e9}.cloud-drop .basket-inside{inset:34% 16% 22%}.balloon-object{border-radius:50% 50% 46% 46%;background:var(--balloon-color)!important;border-color:#fff;box-shadow:inset -7px -4px 0 #0001;min-height:95px;position:relative;margin-bottom:15px}.balloon-object:after{content:'';position:absolute;height:16px;width:2px;background:#8d92a4;bottom:-17px;left:50%}.balloon-object>*{border-radius:50%!important;background-color:transparent!important}.balloon-object.collected{transform:scale(1.4);opacity:0}.memory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:600px;margin:15px auto}.memory-card{aspect-ratio:1;display:grid;place-items:center;background:linear-gradient(135deg,#8b6bcd,#5c9fd8);color:#fff;border:4px solid #d3c4f1;border-radius:20px;padding:10px;min-width:0;box-shadow:0 5px 0 #bbc9dc;transition:transform .2s,background .2s}.memory-back{font-size:48px}.memory-card.flipped{background:white;color:#24465b;transform:rotate(-2deg)}.memory-card.matched{background:#dff7df;border-color:#52b17b;opacity:1}.memory-card.retry{border-color:#ebb769}.memory-card .kg-art,.memory-card .kg-art-pair,.memory-card .shape{width:100%;height:100%;max-width:140px;max-height:140px}.memory-word{font-size:clamp(15px,2.3vw,26px);font-weight:800;overflow-wrap:anywhere}.mini-progress{display:inline-block;padding:7px 16px;border-radius:999px;background:#fff2bd;font-weight:800;color:#705325}.sort-tray{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:14px auto}.sort-item{border:3px solid #d5dff1;background:white;border-radius:20px;padding:10px;display:flex;flex-direction:column;align-items:center;gap:7px;min-width:85px}.sort-item>.kg-art,.sort-item>.kg-art-pair{width:90px;height:90px}.sort-item.selected{border-color:#8864c7;box-shadow:0 0 0 4px #e2d4fa}.sort-item.planted{opacity:.2}.sort-bins{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:600px;margin:20px auto}.flower-pot{display:flex;flex-direction:column;align-items:center;min-height:180px;border:3px solid #bf8661;border-radius:22px 22px 40% 40%;background:linear-gradient(#fff9e5 55%,#dca478 55%);padding:12px;position:relative}.pot-title{font-size:clamp(18px,3vw,28px);color:#5c417e}.pot-contents{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;min-height:70px;align-items:center}.planted-picture{display:block;width:65px;height:65px}.planted-picture>*{width:100%!important;height:100%!important}.pot-base{font-size:28px}.game-crayons{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:22px auto}.game-crayon{width:45px;height:75px;border:3px solid #fff;border-radius:50% 50% 8px 8px;box-shadow:0 4px 0 #0002;min-width:0}.game-crayon[aria-pressed=true]{outline:4px solid #4b3e72;outline-offset:3px;transform:translateY(-6px)}.paint-shapes{display:flex;justify-content:center;flex-wrap:wrap;gap:15px;margin:20px auto}.paint-shape{padding:10px;border:3px solid #d6dff0;border-radius:22px;background:white;min-width:100px}.paint-shape .shape{width:110px;height:110px}.paint-shape.correct{border-color:#35a77a;background:#e5f9eb}@media(max-width:480px){.game-picker{gap:6px;margin:10px auto}.game-picker-button{font-size:.74rem!important;padding:6px 9px!important}.basket-drop{max-width:300px}.game-tray{gap:8px;margin:10px auto}.basket-object{min-width:54px;min-height:58px}.balloon-object{min-height:72px}.memory-grid{gap:9px}.memory-card{padding:7px;border-width:3px}.memory-back{font-size:34px}.sort-item>.kg-art,.sort-item>.kg-art-pair{width:65px;height:65px}.sort-item{padding:7px;min-width:70px}.flower-pot{padding:8px;min-height:160px}.planted-picture{width:48px;height:48px}.paint-shape .shape{width:75px;height:75px}.paint-shape{min-width:80px;padding:7px}.game-crayons{gap:9px}.game-crayon{width:38px;height:60px}}@media(prefers-reduced-motion:reduce){.basket-slot.landing{opacity:1}.memory-card.flipped{transform:none}}
.basket-drop:not(.cloud-drop) .basket-inside{inset:25% 16% 20%;align-content:start;padding-top:3px}.basket-slot{max-width:60px}.basket-slot .kg-art-pair .kg-art{width:50%!important;height:50%!important}.basket-drop:not(.cloud-drop) .basket-shell:after{content:'';position:absolute;left:11%;right:11%;top:31%;height:17%;border-bottom:5px solid #99602c;border-radius:0 0 50% 50%;pointer-events:none;z-index:3}
.kg-playground{background:linear-gradient(135deg,#e5f7f2,#fff3d4);border:2px solid #d2e8df;border-radius:26px;padding:22px;margin:24px 0;scroll-margin-top:16px}.kg-playground h2{margin-top:0}.kg-game-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.kg-game-links a{display:flex;flex-direction:column;gap:8px;padding:18px;border:2px solid #d7dded;border-radius:20px;background:#fff;color:#26485d;text-decoration:none;box-shadow:0 5px 0 #d8e4df}.kg-game-links a>span{font-size:36px}.kg-game-links small{line-height:1.5}.kg-game-links a:focus-visible{outline:4px solid #9470c3;outline-offset:3px}@media(max-width:480px){.kg-playground{padding:16px}.kg-game-links{grid-template-columns:repeat(2,minmax(0,1fr))}.kg-game-links a{padding:13px;font-size:.95rem}}

.kg-world-link{display:block;text-align:center;margin:20px auto;padding:16px;border:2px solid #c8dfd6;border-radius:18px;background:#eaf7f0;color:#285d57;font-weight:800;text-decoration:none}.kg-world-link:focus-visible{outline:4px solid #9571c5;outline-offset:3px}
/* A colorful play shelf and toy-like activity pieces for both KG stages. */
.kg-playground{background:linear-gradient(120deg,#caefdf,#fff0bb 55%,#eddbfc);border:3px solid #abd6c8}.kg-game-links a:nth-child(5n+1){background:#fff0b9;border-color:#e5b959;box-shadow:0 5px 0 #d6af69}.kg-game-links a:nth-child(5n+2){background:#dff5ee;border-color:#7cc9b1;box-shadow:0 5px 0 #a3cdb7}.kg-game-links a:nth-child(5n+3){background:#ffe1ec;border-color:#e4a4bd;box-shadow:0 5px 0 #d5a4bc}.kg-game-links a:nth-child(5n+4){background:#dcedff;border-color:#91bce3;box-shadow:0 5px 0 #9cbad5}.kg-game-links a:nth-child(5n){background:#edddff;border-color:#b9a0d9;box-shadow:0 5px 0 #b8a1cf}.kg-game-links a>span{align-self:center;display:grid;place-items:center;background:#fff9;border-radius:22px;width:70px;height:70px;border:2px solid #fff}.kg-game{border:3px solid #8fcebd;background:linear-gradient(125deg,#def8ed,#fff2c3 65%,#ffe7d8);box-shadow:0 7px 0 #bed7ad}.game-name{color:#5e4283}.game-picker-button:nth-child(4n+1):not([aria-pressed=true]){background:#fff0c1!important;border-color:#e3bd6a!important}.game-picker-button:nth-child(4n+2):not([aria-pressed=true]){background:#def5ee!important;border-color:#85c6b1!important}.game-picker-button:nth-child(4n+3):not([aria-pressed=true]){background:#ffe2ed!important;border-color:#dda8bd!important}.game-picker-button:nth-child(4n):not([aria-pressed=true]){background:#e6e9ff!important;border-color:#a5b4e1!important}.game-picker-button[aria-pressed=true]{background:#16867e!important;border-color:#116d67!important;color:white}.kg-game .choice:not(.balloon-object):not(.correct):not(.wrong):nth-child(4n+1),.basket-object:nth-child(4n+1){background-color:#fff1bf;border-color:#dfb75b}.kg-game .choice:not(.balloon-object):not(.correct):not(.wrong):nth-child(4n+2),.basket-object:nth-child(4n+2){background-color:#e1f6ef;border-color:#75c3a9}.kg-game .choice:not(.balloon-object):not(.correct):not(.wrong):nth-child(4n+3),.basket-object:nth-child(4n+3){background-color:#ffe0ed;border-color:#de9db8}.kg-game .choice:not(.balloon-object):not(.correct):not(.wrong):nth-child(4n),.basket-object:nth-child(4n){background-color:#e5e8ff;border-color:#a3b0de}.memory-back{background:linear-gradient(135deg,#a1e5d1,#c9bcf1);border:3px solid #fff0aa;border-radius:16px;color:#57467c}.game-drop{background-color:#fff7d8;border-color:#ae85c7}.puzzle-drop.filled{background-color:#dcf5e6}.kg-world-link{background:linear-gradient(115deg,#e2f5de,#fff0b8);border-color:#adc88d}

/* Number words use the same letter tiles in lessons and in both games. */
.number-word-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin: .8rem 0;
}
.number-word-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.35rem, 2vw, .85rem);
  max-width: 100%;
  padding: .5rem .7rem;
  border: 2px solid #a4d8cb;
  border-radius: 18px;
  background: #edfaf5;
}
.number-word-digit {
  color: #145d68;
  font-size: clamp(2.1rem, 8vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
}
.number-word-spelling { min-width: 0; text-align: center; }
.number-word-print {
  display: block;
  color: #523c69;
  font-size: 1.08rem;
  font-weight: 750;
  margin-top: .2rem;
}
.number-word-letters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .28rem;
}
.number-word-tile {
  display: inline-grid;
  place-items: center;
  min-width: clamp(1.4rem, 6vw, 2.15rem);
  min-height: 2rem;
  padding: .15em .2em;
  font-size: clamp(1.12rem, 4.8vw, 1.7rem);
  font-weight: 900;
  line-height: 1;
  color: #43285e;
  background: #fff8da;
  border: 2px solid #e9c873;
  border-radius: 9px;
}
.number-word-bank { margin: .9rem 0; gap: .5rem; }
.number-word-bank button {
  min-width: 44px;
  min-height: 44px;
  box-shadow: 0 3px 0 #ddba64;
}
.number-word-bank button:disabled { opacity: .55; }
.number-word-tile.number-word-option {
  min-width: 88px;
  padding-inline: .65rem;
  text-transform: none;
}
.number-word-slots .number-word-tile {
  min-width: clamp(1.8rem, 7.5vw, 2.7rem);
  min-height: 2.5rem;
  background: #f6efff;
  border: 2px dashed #9b7bb9;
}
.number-word-slots.number-word-solved .number-word-tile,
.number-word-tile.correct {
  border-style: solid;
  border-color: #53a887;
  background: #dbf5e6;
  color: #275641;
}
.number-word-question { margin: .75rem 0; }
.number-word-practice { position: relative; text-align: center; }
.number-word-practice > h2:focus { outline: none; }
.number-word-picker-title {
  margin: .65rem 0 .45rem;
  font-weight: 800;
  color: #4c3563;
}
.number-word-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 380px);
  margin: 0 auto 1.15rem;
}
.number-word-pick {
  min-width: 0;
  min-height: 46px;
  padding: .2rem;
  font-size: clamp(1.05rem, 5vw, 1.45rem);
  font-weight: 900;
  color: #4c3167;
  border: 2px solid #c4afde;
  border-radius: 12px;
  background: #f7efff;
}
.number-word-pick[aria-pressed="true"] {
  border-color: #287e76;
  background: #d5f6e8;
  color: #184e4a;
  box-shadow: inset 0 0 0 2px #fff, 0 3px 0 #91cfba;
}
.number-word-listen {
  min-height: 44px;
  padding: .45rem .85rem;
  border: 2px solid #9dcbc0;
  border-radius: 12px;
  background: #e1f8ee;
  color: #265e54;
  font-weight: 850;
}
.kg-game-links .number-word-game-link > .number-word-art {
  align-self: stretch;
  width: auto;
  height: 82px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .38rem;
  border-radius: 16px;
  background: radial-gradient(circle at 15% 10%, #fff5ba, transparent 58%), linear-gradient(132deg, #ffc187, #eed9ff 72%, #c2efda);
}
.number-word-art b {
  display: grid;
  place-items: center;
  width: min(33%, 39px);
  height: 49px;
  font-size: 2rem;
  border: 2px solid #69ad98;
  color: #115d61;
  border-radius: 11px;
  background: #e1fbef;
  box-shadow: 0 3px 0 #7cbaad;
  transform: rotate(-8deg);
}
.number-word-art > span { display: flex; width: min(57%, 67px); gap: 2px; transform: rotate(5deg); }
.number-word-art i {
  display: grid;
  place-items: center;
  flex: 1;
  min-width: 0;
  height: 28px;
  font-size: .95rem;
  font-style: normal;
  font-weight: 900;
  border: 1px solid #c79a58;
  border-radius: 5px;
  background: #fff9dc;
  color: #553972;
  box-shadow: 0 3px 0 #cf9e6b;
}

.number-pairs-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(10px, 4vw, 30px);
  width: min(100%, 490px);
  margin: .85rem auto .4rem;
}
.number-pairs-column {
  display: grid;
  grid-auto-rows: minmax(44px, auto);
  gap: 7px;
}
.number-pairs-column h4 {
  margin: 0;
  align-self: center;
  font-size: 1.12rem;
  color: #573d73;
}
.number-pair-tile {
  min-width: 0;
  padding: .45rem .2rem;
  color: #4b3068;
  font-size: clamp(1rem, 4.4vw, 1.4rem);
  font-weight: 850;
  border: 2px solid #c9b1e3;
  border-radius: 12px;
  background: #f5ebff;
  box-shadow: 0 3px 0 #dfcef0;
}
.number-pairs-column[aria-label="Words"] .number-pair-tile {
  border-color: #e6c46e;
  background: #fff6d8;
  box-shadow: 0 3px 0 #f0dfac;
}
.number-pairs-board .number-pair-tile[aria-pressed="true"] {
  border-color: #7d53a8;
  background: #e9d6ff;
  outline: 2px solid #9f7ec7;
  outline-offset: 1px;
}
.number-pairs-board .number-pair-tile.correct {
  border-color: #56a88c;
  background: #d8f5e4;
  box-shadow: 0 3px 0 #a7dfc9;
  color: #265c4b;
  opacity: 1;
}
.number-pairs-progress { font-weight: 800; color: #416354; }
.number-word-practice [hidden] { display: none; }
