:root{--ink:#293661;--ink-soft:#657399;--blue:#327ee8;--cyan:#68d8f2;--pink:#f443a1;--yellow:#ffc638;--gold:#e9a827;--mint:#53cfac;--paper:#fffdfa;--shadow:0 17px 34px rgba(70,81,144,.15);--radius:28px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 6% 4%,#e8f8ff 0,transparent 37%),radial-gradient(ellipse at 89% 2%,#c2efff 0,transparent 32%),linear-gradient(180deg,#8cd9ff 0%,#d9f5ff 45%,#f7f9ff 100%);color:var(--ink);font-family:"Trebuchet MS",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-x:hidden;font-weight:600}button{font:inherit;color:inherit}button:focus-visible,[tabindex]:focus-visible{outline:4px solid #5d3fda;outline-offset:4px}button[disabled]{cursor:default}button:not([disabled]){cursor:pointer}.app-root{position:relative;z-index:1;min-height:100vh}.sky-decor{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}.cloud-decor{position:absolute;width:180px;height:46px;background:#fff;border-radius:100px;opacity:.63;filter:drop-shadow(0 8px 0 #d5f0ff)}.cloud-decor:before,.cloud-decor:after{content:"";position:absolute;background:#fff;border-radius:50%}.cloud-decor:before{width:90px;height:79px;left:30px;bottom:1px}.cloud-decor:after{width:70px;height:64px;right:22px;bottom:0}.cloud-one{top:85px;left:-55px;transform:scale(.8)}.cloud-two{right:-35px;top:245px;transform:scale(.67)}.cloud-three{left:5%;bottom:95px;transform:scale(.45)}.sky-star{position:absolute;color:#fff7b6;text-shadow:0 0 15px #fff;font-size:54px;opacity:.76}.star-one{top:115px;right:11%}.star-two{top:320px;left:7%;font-size:30px}.page-wrap{max-width:1240px;margin:0 auto;padding:18px 26px 68px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0 27px}.brand{display:flex;align-items:center;gap:12px;border:0;background:none;padding:0;text-align:left}.brand-mark{display:grid;place-items:center;position:relative;flex:0 0 auto;width:58px;height:58px;border:4px solid #fff;border-radius:18px;background:linear-gradient(135deg,#b0f0d4,#6ba9ff);box-shadow:0 6px 0 #468aca,0 12px 20px #3178bb38;transform:rotate(-7deg)}.brand-mark svg{width:49px;height:49px}.brand-name{font-weight:1000;line-height:1.02;letter-spacing:-.7px;color:#364a92;text-shadow:0 2px #fff;font-size:22px}.brand-name span{display:block;color:#f04f9f;font-size:16px;letter-spacing:1px}.nav-actions{display:flex;align-items:center;gap:10px}.nav-chip,.icon-nav{border:2px solid #fff;background:#ffffffdc;min-height:52px;border-radius:19px;box-shadow:0 5px 0 #b1d1ed;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:8px 14px;font-size:15px;font-weight:900;color:#38558a}.nav-chip strong{color:#f08c1e}.icon-nav{width:52px;padding:6px}.icon-nav svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}.hero{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);align-items:center;gap:4px;border:7px solid #ffe394;border-radius:39px;min-height:408px;position:relative;overflow:hidden;background:radial-gradient(circle at 80% 35%,#d6edff 0,transparent 52%),linear-gradient(125deg,#fffdf9 7%,#f7f4ff 60%,#e8f6ff 100%);box-shadow:0 10px 0 #eab44b,0 28px 55px rgba(64,100,150,.2),inset 0 0 0 5px #fff}.hero:before{content:"";position:absolute;inset:12px;border-radius:26px;border:2px dashed #ffe2b7;pointer-events:none}.hero-content{z-index:1;position:relative;padding:35px 0 38px 48px}.eyebrow{display:inline-flex;align-items:center;gap:8px;background:#fff4bd;border-radius:99px;color:#ba6f17;padding:10px 18px;font-size:13px;font-weight:1000;letter-spacing:.9px;text-transform:uppercase;border:2px solid #ffdf75}.hero h1{margin:16px 0 14px;font-size:clamp(32px,4.2vw,57px);line-height:1.08;font-weight:1000;letter-spacing:-1.5px;color:#344995;text-shadow:2px 4px 0 #c8d9ff}.hero h1 em{color:#f040a1;font-style:normal;text-shadow:2px 4px 0 #ffc6e1}.hero-desc{font-size:18px;line-height:1.55;color:#667194;font-weight:700;max-width:510px;margin:0 0 23px}.hero-art{width:100%;align-self:stretch;position:relative;display:grid;place-items:center;min-width:0}.hero-art:before{content:"";position:absolute;width:70%;aspect-ratio:1;max-height:335px;border-radius:50%;background:radial-gradient(circle,#fff4b0 0,#d6f5ff 59%,transparent 72%);filter:blur(3px)}.mascot-scene{position:relative;width:103%;max-width:520px;filter:drop-shadow(0 14px 12px rgba(77,115,163,.15))}.hero-buttons{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.primary-btn,.secondary-btn,.pink-btn,.soft-btn{border:0;display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:64px;border-radius:21px;padding:13px 27px;font-size:19px;font-weight:1000;white-space:normal;text-align:center;transition:transform .15s ease,filter .15s ease;user-select:none}.primary-btn:hover:not(:disabled),.secondary-btn:hover:not(:disabled),.pink-btn:hover:not(:disabled),.soft-btn:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.04)}.primary-btn:active:not(:disabled),.pink-btn:active:not(:disabled){transform:translateY(3px)}.primary-btn{background:linear-gradient(180deg,#36d3ac,#15ad92);color:#fff;border:3px solid #c9fff0;box-shadow:0 7px 0 #148d79,0 9px 16px #3dbaa051;text-shadow:0 2px 2px #108d71}.pink-btn{background:linear-gradient(180deg,#ff6fba,#f12891);color:#fff;border:3px solid #ffcae2;box-shadow:0 7px 0 #be1975,0 10px 18px #ef3a9750;text-shadow:0 2px 2px #bf176c}.secondary-btn{background:#fff;color:#5a68aa;border:3px solid #dce9ff;box-shadow:0 6px 0 #b7cdef}.soft-btn{background:#f7f3ff;color:#7458ba;border:2px solid #dfceff;box-shadow:0 5px 0 #d3bcef}.small-btn{min-height:56px;font-size:15px;padding:10px 18px}.mini-feature-row{display:flex;gap:20px;flex-wrap:wrap;margin:24px 0 0;color:#6b78a0;font-size:13px}.mini-feature-row span{display:flex;gap:7px;align-items:center}.mini-feature-row b{color:#ef8b2a}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:34px 0 18px}.section-head h2{font-size:29px;letter-spacing:-.8px;font-weight:1000;margin:0;color:#324b8c}.section-head p{margin:6px 0 0;color:#677ca0;font-size:14px}.section-tag{color:#4b7ba2;border-radius:99px;background:#eff9ff;padding:9px 13px;font-size:13px;font-weight:900;border:2px solid #ccecff}.chapter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.chapter-card{position:relative;min-width:0;min-height:270px;border:3px solid #fff;border-radius:26px;background:linear-gradient(180deg,#fff 0%,#f9fbff 100%);padding:14px 13px 18px;box-shadow:0 8px 0 #b5d4e6,0 14px 22px #558bb025;text-align:center;display:flex;flex-direction:column;align-items:center;transition:transform .15s;overflow:hidden}.chapter-card:not(.locked):hover{transform:translateY(-4px)}.chapter-card.locked{filter:saturate(.54);opacity:.82}.chapter-card:before{content:"";position:absolute;inset:0 0 auto;height:81px;background:linear-gradient(180deg,var(--chapterTint),transparent);opacity:.19}.chapter-card .chapter-emoji{display:grid;place-items:center;position:relative;width:94px;height:95px;border:3px solid #fff;background:#f0faff;border-radius:26px;box-shadow:0 5px 0 #e5e8f8;margin:5px 0 13px}.chapter-emoji svg{width:87px;height:87px}.chapter-card .chapter-id{position:absolute;top:8px;left:10px;background:var(--chapterTint);color:#fff;font-size:14px;border-radius:12px;min-width:30px;padding:5px}.chapter-card h3{margin:3px 0;font-size:19px;line-height:1.16;font-weight:1000;color:#354877;min-height:44px}.chapter-card p{margin:5px 0 13px;color:#7a86a2;font-size:12px;font-weight:700;line-height:1.35;flex:1}.chapter-card .card-foot{font-size:12px;font-weight:900;color:#54699c;border:2px solid #e8effc;background:#f8faff;border-radius:12px;padding:8px 10px;width:100%}.chapter-card.locked:after{content:"🔒";position:absolute;top:10px;right:9px;font-size:19px}.progress-panel{margin-top:32px;background:#fff;border:3px solid #fff;border-radius:22px;padding:19px 24px;box-shadow:0 8px 0 #c4e0ed;display:flex;align-items:center;gap:24px}.progress-panel strong{font-size:17px}.progress-panel p{font-size:13px;color:#7285a1;margin:4px 0 0}.progress-wrap{flex:1;min-width:100px}.progress-track{height:17px;background:#e9eef9;border-radius:99px;border:2px solid #dce8f8;overflow:hidden}.progress-fill{height:100%;border-radius:99px;background:linear-gradient(90deg,#50d9bb,#4db9f7,#b89aff);transition:width .25s}.progress-score{font-size:22px;color:#f0a82e;white-space:nowrap;font-weight:1000}.crumbs{display:flex;align-items:center;gap:8px;color:#6981a7;font-size:14px;margin:6px 0 20px;flex-wrap:wrap}.crumbs button{border:0;background:none;padding:8px;color:#4175b8;font-weight:900;font-size:14px}.chapter-title{display:flex;gap:22px;align-items:center;padding:27px 33px;background:#fffdfb;border:5px solid #ffdb89;box-shadow:0 8px 0 #e6b34f;border-radius:30px;margin-bottom:26px}.chapter-title .chapter-title-icon{display:grid;place-items:center;background:#f4f8ff;width:111px;height:111px;border-radius:25px;flex:none}.chapter-title h1{font-size:36px;line-height:1.12;margin:2px 0 10px;font-weight:1000}.chapter-title p{margin:0;color:#74829e}.lesson-list{display:grid;gap:13px;max-width:890px;margin:0 auto}.lesson-card{background:#fff;border:3px solid #fff;border-radius:24px;box-shadow:0 6px 0 #c6dfef,0 10px 18px #74a0bb18;display:grid;grid-template-columns:74px 100px 1fr auto;gap:14px;align-items:center;text-align:left;padding:13px 17px;min-height:113px;transition:transform .13s}.lesson-card:not(.locked):hover{transform:translateX(4px)}.lesson-card.locked{opacity:.65;filter:saturate(.6)}.lesson-number{display:grid;place-items:center;width:60px;height:60px;background:#e9f5ff;border:3px solid #d8ebff;color:#4f75b4;font-size:23px;font-weight:1000;border-radius:17px}.lesson-thumbnail{width:92px;height:83px;display:grid;place-items:center;background:#f9f6ff;border-radius:18px}.lesson-thumbnail svg{width:83px;height:76px}.lesson-info h3{margin:0 0 6px;font-size:20px;font-weight:1000;color:#3b4d81}.lesson-info p{margin:0;color:#7985a4;font-size:13px}.lesson-state{border-radius:12px;padding:9px 12px;color:#5372ad;background:#edf4ff;font-weight:900;white-space:nowrap;font-size:14px}.lesson-state.passed{background:#fff6cd;color:#bc8016}.lesson-state.lock{background:#edf1f7;color:#8997ad}.game-shell{background:linear-gradient(135deg,#fffefd,#fefeff);border:8px solid #ffdf8a;box-shadow:0 11px 0 #e4a93b,0 26px 48px rgba(55,96,157,.19),inset 0 0 0 4px #fff5df;border-radius:38px;padding:24px 32px 32px;max-width:1080px;margin:0 auto}.game-topline{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.lesson-tag{background:#f2edff;border:2px solid #d8c8ff;padding:8px 14px;border-radius:13px;color:#7a5cbb;font-size:14px}.question-position{color:#7a8ba5;font-size:15px}.question-progress{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:16px 0 23px}.question-progress span{height:13px;border-radius:20px;background:#e9eef7;border:2px solid #e1e8f4}.question-progress .past{background:#6bd4b0;border-color:#53c9a4}.question-progress .current{background:#ffd460;border-color:#ecb839}.question-heading{display:flex;justify-content:center;gap:13px;align-items:center;margin:0 auto 8px;max-width:870px}.question-heading h1{text-align:center;font-size:clamp(23px,3.5vw,34px);line-height:1.35;color:#364579;margin:0;font-weight:1000;letter-spacing:-.3px}.speak-btn{flex:0 0 auto;min-width:66px;min-height:66px;width:66px;height:66px;border-radius:50%;background:linear-gradient(160deg,#76eaff,#28baef);border:4px solid #fff;box-shadow:0 5px 0 #339bd0;display:grid;place-items:center;color:#fff}.speak-btn svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}.question-note{text-align:center;color:#8390aa;font-size:14px;margin:0 0 20px}.puzzle-stage{min-height:302px;padding:6px 0 12px}.choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;max-width:810px;margin:12px auto}.choice-card{min-height:190px;background:#fff;border:4px solid #e5ebf9;border-radius:23px;box-shadow:0 6px 0 #dce5f5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:14px 8px;position:relative;transition:transform .15s,border-color .15s}.choice-card:hover{transform:translateY(-3px)}.choice-card.selected,.choice-card[aria-pressed=true]{border-color:#37b8e5;background:#eafaff;box-shadow:0 6px 0 #5dbde8}.choice-card.selected:after{content:'✓';position:absolute;right:10px;top:10px;color:#fff;background:#39bcac;border-radius:50%;width:29px;height:29px;display:grid;place-items:center;font-size:18px}.choice-card .toy-svg{width:108px;height:108px;max-width:100%}.choice-card .item-label{font-size:16px;line-height:1.2;text-align:center;font-weight:1000}.choice-card.number-card{font-size:67px;font-weight:1000;color:#425eb3;min-height:142px}.number-card.selected{color:#0f9eaf}.count-scene{display:flex;gap:9px;justify-content:center;align-items:center;min-height:155px;margin:5px auto 18px;background:linear-gradient(180deg,#e8f7ff,#f5fff9);border:3px dashed #c0e4f0;border-radius:22px;max-width:810px;padding:17px;flex-wrap:wrap}.count-scene .toy-svg{width:89px;height:89px}.count-toy{position:relative;flex:0 0 auto}.count-toy.is-gone{opacity:.28;filter:grayscale(1)}.count-toy.is-gone:after{content:'✕';position:absolute;inset:0;display:grid;place-items:center;color:#d64885;font-size:48px}.count-plus{font-size:34px;color:#ee679e;font-weight:1000;margin:0 4px}.sort-layout{max-width:930px;margin:0 auto}.sort-buckets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:14px 0 18px}.sort-bucket{min-height:208px;position:relative;border:4px solid #b6e0ff;background:linear-gradient(180deg,#e6faff,#c4edff);border-radius:28px;overflow:hidden;padding:12px 12px 10px;display:flex;flex-direction:column;align-items:stretch;text-align:center;box-shadow:inset 0 -9px 0 #99dcef,0 6px 0 #9cd2ea;transition:transform .1s}.sort-bucket:nth-child(2){border-color:#f7bcdf;background:linear-gradient(180deg,#fff1fb,#d9f4ff);box-shadow:inset 0 -9px 0 #a4dff5,0 6px 0 #e9a8cd}.sort-bucket:hover{transform:translateY(-2px)}.sort-bucket.drop-target{outline:5px dashed #22b18f;outline-offset:2px}.sort-bucket.is-water:before{content:"";position:absolute;left:-10px;right:-10px;bottom:0;height:68%;background:repeating-linear-gradient(-13deg,#5ac9ed70 0px,#5ac9ed70 13px,#77d8f170 13px,#77d8f170 30px);border-radius:70% 30% 0 0/12% 12% 0 0;pointer-events:none}.bucket-title{z-index:1;position:relative;background:#fff;border-radius:15px;border:2px solid #d3e8ff;font-size:21px;font-weight:1000;color:#3d64a6;min-height:44px;padding:7px 11px;display:flex;align-items:center;justify-content:center;gap:10px}.sort-bucket:nth-child(2) .bucket-title{color:#c14993}.bucket-title .toy-svg{width:35px;height:35px}.bucket-items{z-index:1;position:relative;display:flex;justify-content:center;align-items:center;align-content:center;flex-wrap:wrap;gap:9px;min-height:114px;flex:1;padding:7px 0}.bucket-empty{font-size:13px;color:#5a8bb2;background:#ffffff77;padding:10px;border-radius:11px}.drag-hint{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:14px 0 10px;color:#788aa5;font-size:14px;font-weight:800}.sort-tray{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;min-height:128px;background:#f7faff;border:3px dashed #d5e3f7;border-radius:24px;padding:12px;position:relative}.sort-tray.pickable{border-color:#9d8ce7}.drag-card{border:3px solid #e7e3f4;background:#fff;box-shadow:0 5px 0 #d7dcef;border-radius:19px;width:140px;min-height:122px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px 7px;gap:1px;touch-action:none;user-select:none;transition:border-color .13s,background .13s}.drag-card .toy-svg{height:78px;width:78px}.drag-card span{font-size:13px;font-weight:900;line-height:1.15}.drag-card.picked{background:#fef7ca;border-color:#eec348;box-shadow:0 5px 0 #eccf73}.bucket-items .drag-card{width:115px;min-height:100px;padding:2px 5px}.bucket-items .drag-card .toy-svg{height:60px;width:60px}.drag-ghost{position:fixed;z-index:2000;pointer-events:none;transform:translate(-50%,-50%) scale(1.09);opacity:.93;border-color:#32c3b7;box-shadow:0 15px 22px #3c608f4b;max-width:140px}.sort-tray-tip{font-size:13px;color:#7484a3;font-weight:800}.match-board{display:grid;grid-template-columns:1fr 1fr;gap:22px;max-width:760px;margin:12px auto}.match-column{display:grid;gap:12px}.match-column h3{text-align:center;font-size:15px;color:#7182a4;margin:0}.match-card{min-height:86px;border:3px solid #dce7f9;background:#fff;border-radius:20px;display:flex;gap:15px;align-items:center;justify-content:flex-start;padding:8px 16px;font-weight:1000;font-size:15px;box-shadow:0 4px 0 #d3e0f4}.match-card .toy-svg{width:67px;height:67px;flex:none}.match-card.selected{border-color:#45b9ed;background:#e8f9ff}.match-card.matched{border-color:#8bdcbd;background:#edfff5;opacity:.77}.match-card.matched:after{content:'✓';font-size:26px;color:#21b292;margin-left:auto}.match-card:not(.matched):hover{border-color:#8dc5eb}.order-surface{max-width:800px;margin:auto}.order-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:8px 0 30px}.order-slot{min-height:137px;border:3px dashed #b8d8f2;background:#f2f9ff;border-radius:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:10px;font-size:13px}.order-slot .toy-svg{width:83px;height:83px}.order-slot .slot-index{color:#9aaeca}.order-slot.filled{border:3px solid #69c8ad;background:#ecfff8}.order-source{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}.order-source .choice-card{min-height:145px;min-width:166px;flex:0 1 200px}.order-source .choice-card .toy-svg{width:87px;height:87px}.order-source .choice-card.used{opacity:.33;filter:grayscale(.75)}.paint-board{max-width:800px;margin:8px auto;display:flex;flex-direction:column;align-items:center;gap:19px}.paint-canvas{position:relative;display:grid;place-items:center;width:210px;height:195px;border:4px dashed #c8def6;border-radius:26px;background:radial-gradient(circle at 50% 35%,#fff,#f0faff)}.paint-canvas .toy-svg{width:155px;height:155px}.paint-placeholder{font-size:12px;color:#7d9db8;position:absolute;bottom:7px}.swatch-row{display:flex;gap:19px;justify-content:center;flex-wrap:wrap}.swatch{display:flex;align-items:center;flex-direction:column;gap:8px;min-width:132px;min-height:117px;border:3px solid #e4e8f6;border-radius:20px;background:#fff;padding:10px;color:#66749c;font-weight:900;box-shadow:0 5px 0 #d8e2f3}.swatch.selected{border-color:#51b4e8;box-shadow:0 6px 0 #8fd2f0;background:#f1fcff}.swatch-dot{display:grid;place-items:center;width:59px;height:59px;background:var(--swatch);border:5px solid #fff;border-radius:50%;box-shadow:0 0 0 2px #d9dfee,0 4px 0 #c4c9d6;color:#fff;font-size:28px}.feedback{max-width:880px;margin:18px auto 0;border-radius:18px;padding:13px 18px;display:flex;align-items:center;gap:12px;font-size:16px;line-height:1.5;background:#fff4d5;border:2px solid #f7d583;color:#946c25;animation:pop-in .18s ease-out}.feedback.correct{background:#e5fff4;border-color:#91e1ba;color:#218c6f}.feedback .feedback-icon{font-size:27px}.game-footer{border-top:2px dashed #e8edf9;display:flex;justify-content:space-between;gap:18px;align-items:center;padding:24px 0 0;margin:22px auto 0;max-width:920px}.game-footer .pink-btn{min-width:220px}.game-footer .secondary-btn{min-width:155px}.game-footer .pink-btn:disabled{opacity:.58}.confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:9}.confetti-bit{position:absolute;left:var(--x);top:-40px;width:13px;height:23px;background:var(--c);border-radius:4px;animation:fall var(--duration) ease-in forwards;animation-delay:var(--delay);transform:rotate(var(--rot))}.game-screen{position:relative}.complete-screen{text-align:center;max-width:810px;margin:28px auto 0;background:linear-gradient(135deg,#fffefb,#fff4fc);border:8px solid #ffdb7e;border-radius:38px;box-shadow:0 10px 0 #e5ae47,var(--shadow);padding:36px 25px 43px;position:relative;overflow:hidden}.complete-icon .toy-svg{width:160px;height:160px}.complete-screen h1{margin:12px 0;font-size:40px;font-weight:1000;color:#4654a5}.complete-screen p{color:#75819f;font-size:18px}.big-stars{font-size:64px;letter-spacing:8px;color:#f8b82b;text-shadow:0 5px 0 #df8d25}.complete-buttons{display:flex;justify-content:center;flex-wrap:wrap;gap:16px;margin-top:27px}.complete-screen .sub-message{font-size:15px}.modal-backdrop{position:fixed;inset:0;z-index:110;display:grid;place-items:center;background:#24395777;backdrop-filter:blur(8px);padding:18px}.modal{background:#fffdf9;border:6px solid #ffe08d;border-radius:29px;max-width:530px;width:100%;padding:24px;box-shadow:0 18px 0 #a48b6180,0 30px 45px #2c416165}.modal h2{font-size:27px;color:#344c87;margin:5px 0 13px}.modal p{line-height:1.6;color:#6f7c9c;font-size:15px}.modal .settings-data{background:#f3f8ff;border:2px solid #dce8fc;border-radius:16px;padding:15px;margin:18px 0;font-size:14px;color:#53668f}.modal-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:11px}.danger-btn{min-height:53px;border:2px solid #ffd1d8;color:#c83458;background:#fff0f3;border-radius:16px;padding:10px 15px;font-size:15px;font-weight:1000}.storage-warning{margin:0 0 13px;padding:12px;border-radius:13px;background:#fff3d9;border:2px solid #f4dba4;color:#946a27;font-size:13px}.toast{position:fixed;z-index:2001;left:50%;bottom:28px;transform:translate(-50%,40px);opacity:0;pointer-events:none;background:#394978;border:2px solid #d6e3ff;color:#fff;box-shadow:0 10px 28px #37405a44;padding:14px 21px;border-radius:18px;font-weight:900;text-align:center;max-width:min(90vw,570px);transition:transform .2s,opacity .2s}.toast.show{opacity:1;transform:translate(-50%,0)}.noscript{max-width:500px;margin:20vh auto;background:#fff;padding:25px;border-radius:20px;text-align:center}.page-footer{text-align:center;color:#7588a7;font-size:12px;margin:40px 0 0}.tiny-note{font-size:12px;color:#8192ac}.storage-banner{background:#fff5da;border:2px solid #f9d890;color:#93722e;border-radius:15px;padding:11px 16px;margin-bottom:15px;text-align:center;font-size:13px}
@keyframes fall{to{top:105%;transform:translateX(var(--drift)) rotate(560deg);opacity:.1}}@keyframes pop-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media (max-width:1050px){.chapter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-content{padding:28px 0 32px 32px}.hero h1{font-size:clamp(31px,5vw,49px)}.game-shell{padding:23px 24px 28px}}
@media (max-width:720px){.page-wrap{padding:12px 13px 55px}.topbar{padding:7px 0 20px}.brand-name{font-size:17px}.brand-name span{font-size:12px}.brand-mark{width:48px;height:48px;border-radius:14px}.brand-mark svg{width:42px;height:42px}.nav-chip{font-size:12px;padding:6px 9px;min-height:47px}.icon-nav{width:47px;min-height:47px}.hero{grid-template-columns:1fr;border-width:5px;min-height:auto}.hero-content{padding:24px 24px 2px;text-align:center}.hero h1{font-size:clamp(33px,8vw,49px)}.hero-desc{font-size:15px;margin:9px auto 18px}.eyebrow{font-size:11px}.hero-buttons,.mini-feature-row{justify-content:center}.mini-feature-row{margin-top:19px;gap:11px}.hero-art{height:250px;overflow:hidden}.mascot-scene{width:min(95%,365px);align-self:start}.chapter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.chapter-card{min-height:233px;padding:10px}.chapter-card .chapter-emoji{width:75px;height:75px}.chapter-card .chapter-emoji svg{width:70px;height:70px}.chapter-card h3{font-size:17px;min-height:39px}.section-head h2{font-size:23px}.chapter-title{padding:16px;gap:13px}.chapter-title .chapter-title-icon{width:78px;height:78px}.chapter-title h1{font-size:27px}.lesson-card{grid-template-columns:55px 69px 1fr;gap:8px;padding:9px;min-height:102px}.lesson-number{width:50px;height:50px;font-size:19px}.lesson-thumbnail{width:66px;height:66px}.lesson-thumbnail svg{width:65px;height:65px}.lesson-info h3{font-size:16px}.lesson-info p{font-size:11px}.lesson-state{grid-column:3;font-size:12px;padding:6px 9px;justify-self:start}.game-shell{border-width:5px;border-radius:27px;padding:17px 12px 19px}.question-heading{flex-wrap:wrap;gap:8px}.question-heading h1{font-size:23px;order:2;width:100%}.speak-btn{order:1;width:59px;height:59px;min-height:59px}.puzzle-stage{min-height:270px}.choice-grid{gap:9px}.choice-card{min-height:152px;padding:9px 5px;border-radius:17px;border-width:3px}.choice-card .toy-svg{width:80px;height:80px}.choice-card .item-label{font-size:12px}.choice-card.number-card{font-size:50px;min-height:109px}.count-scene .toy-svg{width:67px;height:67px}.sort-buckets{gap:10px}.sort-bucket{min-height:178px;padding:8px 6px}.bucket-title{font-size:16px;min-height:38px}.bucket-title .toy-svg{width:28px;height:28px}.drag-card{width:105px;min-height:110px}.drag-card .toy-svg{width:68px;height:68px}.drag-card span{font-size:11px}.bucket-items .drag-card{width:91px;min-height:86px}.bucket-items .drag-card .toy-svg{width:53px;height:53px}.sort-tray{gap:8px}.match-board{gap:9px}.match-card{min-height:73px;padding:6px;gap:5px;font-size:11px}.match-card .toy-svg{width:52px;height:52px}.order-source .choice-card{min-width:96px;flex:0 1 31%;min-height:127px}.order-source .choice-card .toy-svg{width:65px;height:65px}.order-slot{min-height:105px;padding:5px;font-size:11px}.order-slot .toy-svg{width:68px;height:68px}.game-footer{gap:10px}.game-footer .pink-btn{min-width:0;flex:1}.game-footer .secondary-btn{min-width:0}.primary-btn,.secondary-btn,.pink-btn,.soft-btn{font-size:16px;padding:10px 14px;min-height:60px}.swatch{min-width:100px}.progress-panel{flex-wrap:wrap;gap:10px;padding:14px}.progress-wrap{order:3;flex-basis:100%}.big-stars{font-size:45px}.complete-screen h1{font-size:29px}}
@media (max-width:430px){.chapter-grid{gap:9px}.chapter-card{min-height:220px}.chapter-card .chapter-emoji{width:67px;height:67px}.chapter-card h3{font-size:15px}.nav-chip .long-label{display:none}.nav-chip{min-width:50px}.game-topline{gap:5px}.lesson-tag{font-size:12px}.sort-buckets{grid-template-columns:1fr}.sort-bucket{min-height:145px}.bucket-items{min-height:65px}.match-card .toy-svg{width:45px;height:45px}.match-card{font-size:10px}.game-footer .secondary-btn{font-size:13px}.order-source .choice-card{flex:0 1 30%;min-width:0}.swatch{min-width:90px}}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* V1.2: giỏ trống của bài số 0 và học liệu mở rộng */
.empty-count{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:9px 20px;color:#687ca1;font-size:17px;font-weight:1000}.empty-count .toy-svg{width:116px;height:116px}.lesson-card:focus-visible{outline:4px solid #6d58d7;outline-offset:4px}

/* V1.3: ba hoạt động mới — tìm hình lạc nhóm, chọn nhiều, điền quy luật. */
.lesson-section-divider{display:flex;align-items:center;justify-content:center;min-height:65px;padding:12px 18px;background:linear-gradient(110deg,#fff0c9,#fce0f1 51%,#d9f4ff);border:3px dashed #f5bd6b;border-radius:22px;color:#8a4b73;font-size:clamp(16px,2.4vw,22px);font-weight:1000;text-align:center;letter-spacing:.1px;margin-top:18px}
.odd-grid,.multi-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-width:920px;gap:13px}
.odd-grid .choice-card,.multi-grid .choice-card{min-height:178px;padding:11px 5px}
.odd-grid .choice-card .toy-svg,.multi-grid .choice-card .toy-svg{width:94px;height:94px}
.multi-instruction{max-width:730px;margin:0 auto 14px;padding:12px 16px;border-radius:19px;background:#fff0fa;color:#a33e78;text-align:center;font-size:17px;font-weight:1000}
.multi-card .multi-check{position:absolute;top:8px;right:9px;width:32px;height:32px;border:3px solid #9bb7db;color:#5386b6;background:#f1f8ff;border-radius:50%;display:grid;place-items:center;font-size:20px;font-weight:1000;line-height:1}
.multi-card.selected .multi-check{background:#32b4df;color:white;border-color:#168fbe}
.multi-card.selected::after{display:none}
.pattern-board{display:grid;gap:12px}
.pattern-example{display:flex;align-items:stretch;justify-content:center;gap:8px;max-width:100%;overflow-x:auto;padding:12px 7px 17px;scrollbar-width:thin}
.pattern-tile{flex:0 0 94px;min-height:114px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-radius:19px;border:3px solid #d9eafd;background:linear-gradient(170deg,#ffffff,#eff8ff);box-shadow:0 5px 0 #d7eaf5;text-align:center;font-size:12px;font-weight:900}
.pattern-tile .toy-svg{width:66px;height:66px}
.pattern-tile.question-mark{font-size:60px;color:#d354a7;border-style:dashed;background:#fff0fb}
.pattern-board .question-note{text-align:center;margin:0 auto 3px}
.pattern-board .choice-grid{margin-top:0}
@media(max-width:720px){
  .odd-grid,.multi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .odd-grid .choice-card,.multi-grid .choice-card{min-height:145px}
  .odd-grid .choice-card .toy-svg,.multi-grid .choice-card .toy-svg{width:80px;height:80px}
  .pattern-example{justify-content:flex-start;gap:6px}
  .pattern-tile{flex-basis:79px;min-height:100px;font-size:10px}
  .pattern-tile .toy-svg{width:57px;height:57px}
  .multi-instruction{font-size:15px}
}

.bucket-title.ready-to-place{background:#fff3c6;border-radius:14px;box-shadow:0 0 0 2px #f5c56a inset;animation:bucket-pulse 1.4s ease-in-out infinite}
@keyframes bucket-pulse{50%{box-shadow:0 0 0 4px #f5c56a inset}}
@media(prefers-reduced-motion:reduce){.bucket-title.ready-to-place{animation:none}}

/* Thẻ ghi nhớ v1.4: nút lớn, hỗ trợ chuột, cảm ứng, bàn phím. */
.memory-board{max-width:730px;margin:0 auto}.memory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px auto 4px;max-width:650px}.memory-card{position:relative;display:flex;align-items:center;justify-content:center;min-height:136px;border:4px solid #80bff0;border-radius:22px;background:linear-gradient(145deg,#8bd7f8,#4d8de9);box-shadow:0 7px 0 #3972ba;cursor:pointer;transition:transform .12s,background .15s}.memory-card:not(:disabled):active{transform:translateY(4px);box-shadow:0 3px 0 #3972ba}.memory-card.revealed{background:linear-gradient(145deg,#fffefa,#eaf8ff);border-color:#ffcb76}.memory-card.matched{background:#e4fff1;border-color:#77d4a3;box-shadow:0 5px 0 #5ebc94}.memory-back{font-size:67px;color:#fff1a8;text-shadow:0 5px 0 #4475c0}.memory-tick{position:absolute;right:12px;top:9px;border-radius:50%;background:#40b584;color:#fff;font-weight:900;padding:2px 8px}.memory-card .toy-svg{width:94px;height:94px}.memory-card:focus-visible{outline:4px solid #f68dc0;outline-offset:3px}@media(max-width:720px){.memory-grid{gap:9px}.memory-card{min-height:100px;border-radius:15px}.memory-card .toy-svg{width:77px;height:77px}.memory-back{font-size:49px}}@media(max-width:430px){.memory-card{min-height:88px}.memory-card .toy-svg{width:65px;height:65px}}

/* Bộ chọn 10 chặng – hiển thị gọn, điều hướng được bằng chuột, bàn phím và cảm ứng. */
.stage-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0 22px}
.stage-tab{border:2px solid #d8e5f6;background:#fff;border-radius:17px;min-height:73px;padding:10px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#344270;cursor:pointer;font:inherit;font-weight:850;box-shadow:0 4px 0 #d8e5f6;transition:background .15s,transform .15s}
.stage-tab small{font-size:12px;font-weight:700;color:#61729d}
.stage-tab.active{background:linear-gradient(155deg,#fff1aa,#ffe5b0);border-color:#ffba46;box-shadow:0 4px 0 #eaa644;transform:translateY(-2px)}
.stage-tab:focus-visible{outline:4px solid #6a84ff;outline-offset:3px}
.stage-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;border-radius:18px;background:#f6faff;padding:15px 19px;margin:0 0 18px;color:#354878}
.stage-heading>div{display:flex;flex-direction:column;gap:2px}.stage-heading strong{font-size:21px}.stage-heading span{font-size:13px;font-weight:750}
@media(max-width:760px){.stage-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stage-tab{min-height:65px;padding:7px 3px;font-size:13px}.stage-heading{align-items:flex-start;flex-direction:column;padding:12px 15px}.stage-heading strong{font-size:18px}}
@media(max-width:370px){.stage-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v2.0.1: Quy luật ba hình có 5 thẻ mẫu; ở điện thoại phải hiện cả ô '?' không cần cuộn ngang. */
@media(max-width:540px){
  .pattern-example{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-width:390px;margin:0 auto;overflow:visible;justify-content:center;padding:10px 4px 16px}
  .pattern-tile{width:100%;min-width:0;min-height:92px;flex-basis:auto;font-size:10px}
  .pattern-tile .toy-svg{width:50px;height:50px}
  .pattern-tile.question-mark{font-size:46px}
}
