@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
[hidden]{display:none!important}
:root{font-family:'DM Sans',sans-serif;color:#142e54;background:#f5f9ff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 85% 23%,#eaf2ff 0,transparent 40%),#f5f9ff;min-height:100vh}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #f4b849;outline-offset:5px}header{height:108px;max-width:1180px;margin:auto;display:flex;align-items:center;gap:28px;border-bottom:1px solid #e2eaf5}.brand{text-decoration:none;font-family:Manrope,sans-serif;font-size:30px;font-weight:800;color:#153367;letter-spacing:-1.2px;display:flex;align-items:center}.brand>span:last-child{color:#2563eb}.brand-icon{display:grid;place-items:center;background:#2563eb;color:white;width:39px;height:43px;border-radius:13px;margin-right:11px;font-size:30px;transform:rotate(-5deg)}.tagline{font-size:12px;color:#7e8ea7;border-left:1px solid #dce5f1;padding-left:27px;letter-spacing:.3px}.sound{margin-left:auto;border:1px solid #dce6f3;background:#fff;border-radius:50%;height:42px;width:42px;color:#597397;display:grid;place-items:center}svg.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}main{max-width:1000px;margin:0 auto;padding:49px 0 55px}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:32px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:#477acc;display:flex;align-items:center;gap:8px}.eyebrow:before{content:'';height:6px;width:6px;background:#6596ea;border-radius:50%}h1{font-family:Manrope,sans-serif;font-size:35px;font-weight:800;letter-spacing:-1.3px;margin:15px 0 10px;line-height:1.3}.intro p{font-size:15px;color:#8190a5;margin:0}.mascot-wrap{position:relative;width:190px;height:160px;margin-right:16px}.fox{width:100%;height:100%;overflow:visible}.hello{position:absolute;right:156px;top:27px;white-space:nowrap;border:1px solid #e0e9f6;background:white;border-radius:12px 12px 0 12px;padding:9px 14px;font-size:11px;transform:rotate(-5deg);color:#6680a2}.table-panel{background:rgba(255,255,255,.85);border:1px solid #e2eaf5;border-radius:23px;padding:27px 28px 22px;box-shadow:0 7px 30px #1e4a8e03}.panel-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.panel-label{font-weight:700;font-size:14px}.panel-note{font-size:11px;color:#8c9bb1}.grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.table{position:relative;min-height:140px;border:1px solid #dce8fa;border-radius:14px;background:#edf4ff;color:#416ca9;transition:transform .2s,box-shadow .2s;text-align:left;padding:18px}.table:hover{transform:translateY(-4px);box-shadow:0 8px 15px #164fa51a}.number{font-family:Manrope,sans-serif;font-size:37px;font-weight:800;letter-spacing:-1px;display:block}.number small{font-size:24px;font-weight:500;margin-left:3px;opacity:.7}.table-status{display:block;font-size:10px;margin-top:17px;color:#8298b7}.table.active{background:#2563eb;color:#fff;border-color:#2563eb;box-shadow:0 5px 12px #2563eb30}.table.active .table-status{color:#d9e7ff}.table.learning{background:#dceaff;color:#2861b8}.table.mastered{background:#d0e3ff;color:#245bb0}.star{position:absolute;right:13px;top:14px;color:#eeb449;font-size:18px}.card-arrow{position:absolute;right:15px;bottom:16px;font-size:15px}.table-decoration{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;color:#a4b4ca;font-size:11px;text-align:center}.tiny-stars{font-size:30px;color:#b8ccee;letter-spacing:8px;transform:rotate(-12deg)}.legend{display:flex;gap:22px;justify-content:center;margin-top:23px;font-size:10px;color:#8393aa}.legend span{display:flex;align-items:center;gap:6px}.dot{height:7px;width:7px;border-radius:50%;background:#e2edfd}.dot.medium{background:#a8cafa}.dot.strong{background:#3674e8}.legend .gold{color:#e9b44e}.continue{display:flex;align-items:center;justify-content:center;gap:13px;background:#2563eb;color:white;border:none;border-radius:13px;padding:19px 34px;font-size:15px;font-weight:700;box-shadow:0 7px 17px #2563eb22;margin:28px auto 12px;min-width:348px}.continue:hover{background:#1e55d0}.continue .arrow{margin-left:20px;font-size:20px;font-weight:400}.under-button{text-align:center;color:#8a9ab0;font-size:11px}.how{display:flex;justify-content:center;align-items:center;gap:24px;margin-top:40px;color:#798ba5;font-size:11px}.how span{display:flex;align-items:center;gap:8px}.how svg{width:16px;height:16px}.how b{font-weight:400;color:#c3cfe0}footer{max-width:1180px;margin:0 auto;border-top:1px solid #e2eaf5;padding:23px 0 26px;font-size:11px;color:#8b9ab0;display:flex;align-items:center;gap:8px}.footer-fox{color:#98b4dc;font-size:18px}.footer-right{margin-left:auto;font-size:9px;letter-spacing:1.8px}.lesson-top{display:flex;align-items:center;justify-content:space-between;margin:4px 0 24px}.back,.secondary{border:0;background:none;color:#577398;padding:10px;font-size:14px}.lesson-progress{font-size:12px;color:#7b8ba3}.progress-line{height:4px;background:#e2ebf9;border-radius:10px;margin-bottom:25px;overflow:hidden}.progress-line div{height:100%;background:#3b82f6;transition:width .3s}.learning-card{position:relative;background:white;border:1px solid #e0e9f5;border-radius:25px;min-height:460px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;box-shadow:0 12px 35px #18427705}.speaker-badge{color:#6f9ee9;background:#eff5ff;padding:14px;border-radius:50%;display:flex}.equation{font-family:Manrope,sans-serif;font-size:68px;font-weight:800;letter-spacing:-3px;margin:24px 0 28px}.mic{border:0;background:#2563eb;color:white;width:76px;height:76px;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 9px #edf3ff}.mic svg{width:30px;height:30px}.listening{animation:pulse 1.5s infinite}.prompt{font-size:14px;color:#69809f;margin:20px 0 0}.lesson-fox{position:absolute;bottom:17px;right:25px;width:110px;height:115px}.answer-form{display:flex;gap:8px;margin-top:22px}.answer-form input{width:120px;border:1px solid #dbe6f5;border-radius:9px;padding:10px;text-align:center;font:inherit;color:#183663}.answer-form button{border:0;background:#eaf2ff;color:#2563eb;border-radius:9px;padding:10px 13px}.typed-toggle{border:none;background:none;color:#8b9bb1;font-size:11px;margin-top:22px;text-decoration:underline;text-underline-offset:4px}.controls{display:flex;justify-content:center;gap:30px;margin-top:23px}.controls button{display:flex;align-items:center;gap:8px}.correct{color:#34946e}.almost{color:#ce8175}.feedback-title{font-family:Manrope,sans-serif;font-size:30px;font-weight:800;margin:16px 0 0}.finish-copy{color:#7388a4;text-align:center;line-height:1.8}.result-star{font-size:55px;color:#eeb449}.pause-overlay{position:absolute;inset:0;background:#fffffff5;border-radius:25px;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2}@keyframes pulse{50%{box-shadow:0 0 0 16px #edf3ff,0 0 0 25px #f6f9ff}}@media(min-width:1450px){main{padding-top:65px;padding-bottom:65px}.intro{margin-bottom:38px}.table{min-height:150px}}@media(max-width:1250px){header,footer{margin-left:5%;margin-right:5%}main{margin-left:auto;margin-right:auto;width:86%}}@media(max-width:760px){header{height:85px}.tagline{display:none}main{width:90%;padding-top:30px}.intro{align-items:flex-start;margin-bottom:25px}h1{font-size:27px;max-width:300px}.intro p{font-size:13px;max-width:220px;line-height:1.6}.mascot-wrap{width:120px;min-width:100px;height:130px;margin-right:0;margin-top:15px}.hello{display:none}.grid{grid-template-columns:repeat(3,1fr);gap:10px}.table-panel{padding:19px 15px}.table{min-height:116px;padding:14px}.number{font-size:32px}.panel-note{font-size:9px}.legend{gap:12px;font-size:9px}.continue{min-width:0;width:100%;font-size:14px}.how{gap:12px;margin-top:30px;font-size:10px}.how span{gap:4px}.footer-right{display:none}.equation{font-size:52px}.lesson-fox{width:70px;height:80px;right:8px;bottom:8px}.learning-card{min-height:450px}.eyebrow{font-size:9px;letter-spacing:1.5px}}

.prompt{max-width:480px;text-align:center;line-height:1.6;padding:0 12px}

.voice-mode{font-size:10px;color:#8092ad;margin:14px 0 0;text-align:center;max-width:280px}
.reciter-entry{display:block;margin:18px auto 0;color:#2563eb}.table-select{display:flex;align-items:center;gap:12px;font-size:13px;color:#69809f;margin-top:16px}.table-select select{font:inherit;border:1px solid #dce6f3;border-radius:9px;padding:10px;color:#153367;background:#f5f9ff}

.brand{position:relative;display:block;flex:none;width:232px;height:78px;overflow:hidden;mix-blend-mode:multiply}.brand-logo{position:absolute;width:256px;height:128px;max-width:none;left:-12px;top:-25px}@media(max-width:760px){.brand{width:205px;height:69px}.brand-logo{width:226px;height:113px;left:-10px;top:-22px}}

.auth{max-width:440px;margin:30px auto 0;text-align:center}.auth h1{margin-top:4px}.auth .finish-copy{margin:0 0 6px}.auth-fox{position:static;width:110px;height:110px;margin:0 auto}
.auth-form{display:flex;flex-direction:column;gap:14px;width:100%;max-width:340px;margin-top:18px;text-align:left}.auth-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#416ca9}.auth-form input{border:1px solid #dbe6f5;border-radius:11px;padding:13px 14px;font:inherit;font-size:15px;color:#183663;background:#fbfdff}.auth-form input:focus{outline:2px solid #2563eb33;border-color:#2563eb}.auth-form .continue{min-width:0;width:100%;margin:6px 0 0}.auth-form .continue:disabled{opacity:.6;cursor:wait}
@media(max-width:760px){.auth{margin-top:10px}}

.mic.live{animation:none;box-shadow:0 0 0 calc(9px + var(--level,0) * 22px) #dce9ff;transition:box-shadow .08s}
.auth-form label[hidden]{display:none}#auth-forgot{margin-top:14px}
.home-actions{display:flex;justify-content:center;gap:14px;margin:4px 0 26px}.home-actions .continue{margin:0;min-width:0;flex:0 1 300px}
.listen-button{display:flex;align-items:center;justify-content:center;gap:10px;flex:0 1 300px;border:2px solid #2563eb;background:#fff;color:#2563eb;border-radius:13px;padding:17px 26px;font:inherit;font-size:15px;font-weight:700;cursor:pointer}.listen-button:hover{background:#eef4ff}.listen-button .icon{width:20px;height:20px}
.under-button{margin-top:22px}
@media(max-width:760px){.home-actions{flex-direction:column;gap:10px}.home-actions .continue,.listen-button{flex:none;width:100%}}
.tabbar{position:fixed;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:20;display:flex;gap:4px;width:min(420px,calc(100% - 32px));box-sizing:border-box;padding:6px;background:#ffffffeb;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid #dfe8f5;border-radius:22px;box-shadow:0 14px 34px #18427724}
.tabbar[hidden]{display:none}
.tabbar button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:none;color:#7a8ca6;font:inherit;font-size:11px;font-weight:700;padding:8px 4px;border-radius:16px;cursor:pointer;transition:background .15s,color .15s}
.tabbar .icon{width:22px;height:22px}
.tabbar button.active{background:#2563eb;color:#fff;box-shadow:0 6px 14px #2563eb33}
.tabbar button:not(.active):hover{color:#2563eb;background:#eef4ff}
body:has(.tabbar:not([hidden])){padding-bottom:100px}
.progress-page{display:flex;flex-direction:column;gap:16px;max-width:640px;margin:0 auto}
.progress-hero{display:flex;align-items:center;gap:26px;background:#fff;border:1px solid #e0e9f5;border-radius:25px;padding:24px 28px;box-shadow:0 12px 35px #18427705}
.progress-hero h1{margin:0 0 4px}.progress-hero .finish-copy{text-align:left;margin:0;line-height:1.5}
.hero-detail{margin:10px 0 0;font-size:13px;color:#69809f}.hero-detail b{color:#142e54}
.progress-ring{width:132px;height:132px;flex:none}
.ring-track{fill:none;stroke:#e7eefb;stroke-width:12}
.ring-value{fill:none;stroke:#2563eb;stroke-width:12;stroke-linecap:round;transition:stroke-dasharray .6s ease}
.ring-number{font-family:Manrope,sans-serif;font-size:26px;font-weight:800;fill:#142e54;text-anchor:middle}
.ring-label{font-size:10px;fill:#69809f;text-anchor:middle}
.stat-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.stat-tile{background:#fff;border:1px solid #e0e9f5;border-radius:18px;padding:16px 10px;display:flex;flex-direction:column;align-items:center;gap:2px}
.stat-icon{width:64px;height:64px;display:grid;place-items:center;font-size:30px;line-height:1}.stat-icon-3d{width:64px;height:64px;display:block}.stat-tile b{font-family:Manrope,sans-serif;font-size:28px;color:#142e54}.stat-tile span:last-child{font-size:11px;color:#69809f;text-align:center}
.panel{background:#fff;border:1px solid #e0e9f5;border-radius:20px;padding:18px 20px}
.panel .panel-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.review-button{border:0;background:#eaf2ff;color:#2563eb;border-radius:10px;padding:8px 12px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.review-button:hover{background:#dbe8ff}
.week-strip{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,1fr);gap:6px;text-align:center;font-size:11px;color:#69809f}
.week-strip li{display:flex;flex-direction:column;align-items:center;gap:6px}
.week-dot{width:34px;height:34px;border-radius:50%;background:#f1f5fb;border:2px solid #e3eaf5;display:grid;place-items:center;box-sizing:border-box}
.week-strip .done .week-dot{background:#2563eb;border-color:#2563eb;color:#fff}.week-dot .icon{width:16px;height:16px;stroke-width:2.4}
.week-strip .today span:last-child{color:#142e54;font-weight:800}.week-strip .today:not(.done) .week-dot{border-color:#2563eb;border-style:dashed}
.bar-legend{display:flex;align-items:center;gap:6px;font-size:11px;color:#69809f}.key{display:inline-block;width:10px;height:10px;border-radius:3px;margin-left:6px}
.key.remembered,.bar.remembered{background:#2563eb}.key.learning,.bar.learning{background:#93b8f6}
.table-bars{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.table-bars button{width:100%;display:grid;grid-template-columns:44px 1fr 86px;align-items:center;gap:12px;border:0;background:none;padding:8px 6px;border-radius:12px;font:inherit;color:#142e54;cursor:pointer;text-align:left}
.table-bars button:hover{background:#f3f7ff}
.bar-name{font-family:Manrope,sans-serif;font-weight:800;font-size:16px}
.bar-track{display:flex;gap:2px;height:12px;background:#eef3fb;border-radius:6px;overflow:hidden}
.bar{height:100%;border-radius:4px}
.bar-value{font-size:12px;color:#516a8c;text-align:right;font-weight:600}
.panel-note-bottom,.empty-progress{font-size:12px;color:#69809f;margin:12px 0 0;text-align:center}
.panel .continue{min-width:0;width:100%;margin:14px 0 0}
.account-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#69809f;padding:4px 4px 0}
.account-row .listen-button{flex:none;padding:10px 20px;font-size:13px}
@media(max-width:760px){.progress-hero{flex-direction:column;text-align:center;gap:12px;padding:22px 18px}.progress-hero .finish-copy{text-align:center}.stat-tile b{font-size:24px}.panel{padding:16px 14px}.table-bars button{grid-template-columns:36px 1fr 78px;gap:8px}.account-row{flex-direction:column}.account-row .listen-button{width:100%}}
.voice-card{display:flex;align-items:center;gap:22px;background:#fff;border:1px solid #e0e9f5;border-radius:22px;padding:18px 24px;margin:0 0 18px;box-shadow:0 12px 35px #18427705}
.voice-card b{display:block;font-family:Manrope,sans-serif;font-size:22px;font-weight:800;color:#142e54}
.voice-card p{margin:4px 0 0;font-size:13px;color:#69809f;line-height:1.5}
.command-mic{flex:none;width:64px;height:64px;cursor:pointer;margin:9px}.command-mic svg{width:26px;height:26px}
.account-buttons{display:flex;gap:8px;align-items:center}
@media(max-width:760px){.voice-card{gap:14px;padding:14px 16px}.voice-card b{font-size:19px}.command-mic{width:56px;height:56px}.account-buttons{width:100%}.account-buttons .listen-button{flex:1}}
.music{margin-left:auto}.music+.sound{margin-left:10px}.sound.music.on{background:#2563eb;border-color:#2563eb;color:#fff}.sound .icon{width:19px;height:19px}
.play-all{margin:4px auto 0;flex:none;padding:12px 22px;font-size:14px}
.all-progress{width:min(360px,100%);height:8px;background:#eef3fb;border-radius:4px;overflow:hidden;margin:6px 0 0}.all-progress span{display:block;height:100%;background:#2563eb;border-radius:4px;transition:width .4s ease}
.more-practice{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 22px}
.practice-card{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:14px;align-items:center;text-align:left;background:#fff;border:1px solid #e0e9f5;border-radius:18px;padding:16px 18px;font:inherit;color:#142e54;cursor:pointer;box-shadow:0 8px 24px #18427706;transition:transform .15s,box-shadow .15s}
.practice-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px #1842770f}
.practice-sign{grid-row:1/3;width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-family:Manrope,sans-serif;font-size:30px;font-weight:800;color:#fff;background:#2563eb}
.practice-card.sub .practice-sign{background:#0f766e}
.practice-card b{font-family:Manrope,sans-serif;font-size:17px}.practice-card span:last-child{font-size:12px;color:#69809f}
.sums-menu .level-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;max-width:440px;margin:18px 0 8px}
.level{display:flex;flex-direction:column;gap:4px;align-items:flex-start;background:#f3f7ff;border:1px solid #dce8fa;border-radius:16px;padding:16px;font:inherit;color:#142e54;cursor:pointer;text-align:left}
.level:hover{background:#e8f0ff;border-color:#bcd2f3}.level b{font-family:Manrope,sans-serif;font-size:18px}.level span{font-size:12px;color:#69809f}
@media(max-width:760px){.more-practice{grid-template-columns:1fr}.sums-menu .level-grid{grid-template-columns:1fr}}

.quiz-panel .quiz-rules{font-size:12px;color:#69809f;margin:0 0 12px;line-height:1.5}
.quiz-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.quiz-level{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;background:#f3f7ff;border:1px solid #dce8fa;border-radius:16px;padding:14px;font:inherit;color:#142e54;cursor:pointer}
.quiz-level:hover{background:#e8f0ff;border-color:#bcd2f3}.quiz-level b{font-family:Manrope,sans-serif;font-size:16px}.quiz-level span{font-size:11px;color:#69809f}
.quiz-level em{font-style:normal;font-weight:700;font-size:13px;color:#2563eb;margin-top:4px}.quiz-level.done em{color:#34946e}
.quiz-stats{font-size:12px;color:#516a8c;margin:12px 0 0;text-align:center}
.quiz-winners{margin-top:10px;background:#fff8e6;border:1px solid #f3e2b0;border-radius:12px;padding:10px 14px;font-size:12px;color:#5c4a12}.quiz-winners span{font-weight:700}.quiz-winners ul{margin:4px 0 0;padding-left:18px}
.countdown{width:64px;height:64px;margin-bottom:4px}.countdown-track{fill:none;stroke:#e7eefb;stroke-width:6}
.countdown-value{fill:none;stroke:#2563eb;stroke-width:6;stroke-linecap:round;transition:stroke-dashoffset .1s linear,stroke .3s}.countdown-value.hurry{stroke:#d9534f}
.countdown text{font-family:Manrope,sans-serif;font-size:18px;font-weight:800;fill:#142e54;text-anchor:middle}
.equation.word-problem{font-size:22px;letter-spacing:0;font-weight:700;max-width:520px;text-align:center;line-height:1.45;margin:14px 0 18px}
.leaderboard{list-style:none;margin:16px 0 8px;padding:0;width:100%;max-width:440px}
.leaderboard li{display:grid;grid-template-columns:40px 1fr 56px 52px;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;font-size:14px}
.leaderboard li:nth-child(odd){background:#f6f9ff}.leaderboard li.me{background:#e6efff;font-weight:700}.leaderboard li.empty{display:block;text-align:center;color:#69809f;background:none}
.leaderboard .rank{text-align:center;font-weight:800}.leaderboard .score{font-weight:700;color:#2563eb;text-align:right}.leaderboard .time{color:#69809f;font-size:12px;text-align:right}
.leaderboard-page{max-width:560px;margin:0 auto;display:flex;flex-direction:column;align-items:center}
.board-tabs{display:flex;gap:6px;background:#f1f5fb;border-radius:12px;padding:4px;margin-top:6px}.board-tabs button{border:0;background:none;padding:8px 16px;border-radius:9px;font:inherit;font-size:13px;font-weight:700;color:#516a8c;cursor:pointer}.board-tabs button.active{background:#fff;color:#2563eb;box-shadow:0 2px 6px #1842770f}
@media(max-width:760px){.quiz-levels{grid-template-columns:1fr}.equation.word-problem{font-size:19px}}

.unlock-row{display:grid;grid-template-columns:1fr 120px 40px;align-items:center;gap:10px;font-size:13px;color:#142e54;margin:8px 0}.unlock-row b{text-align:right;color:#2563eb}
.unlock-bar{display:block;height:8px;background:#eef3fb;border-radius:4px;overflow:hidden}.unlock-bar span{display:block;height:100%;background:#2563eb;border-radius:4px}
#homework-panel .continue{min-width:0;width:100%;margin:6px 0 0}
.homework{justify-content:flex-start;min-height:520px}
.chat{list-style:none;margin:10px 0;padding:0;width:100%;max-width:560px;display:flex;flex-direction:column;gap:10px;max-height:52vh;overflow-y:auto}
.chat li{max-width:85%;padding:12px 16px;border-radius:18px;font-size:15px;line-height:1.5;white-space:pre-wrap}
.fox-says{align-self:flex-start;background:#eef4ff;color:#142e54;border-bottom-left-radius:6px}
.me-says{align-self:flex-end;background:#2563eb;color:#fff;border-bottom-right-radius:6px}
.me-says.photo{padding:4px;background:#e0e9f5}.me-says.photo img{display:block;max-width:220px;max-height:220px;border-radius:14px}
.hw-photo{display:flex;align-items:center;gap:10px;margin:4px 0}.hw-photo img{max-width:120px;max-height:120px;border-radius:12px;border:1px solid #e0e9f5}
.hw-form{display:flex;align-items:center;gap:8px;width:100%;max-width:560px;margin-top:6px}
.hw-form input{flex:1;min-width:0;border:1px solid #dbe6f5;border-radius:24px;padding:13px 16px;font:inherit;font-size:15px;color:#183663}
.hw-camera{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#eef4ff;font-size:22px;cursor:pointer;flex:none}
.hw-mic{width:46px;height:46px;box-shadow:0 0 0 5px #edf3ff;flex:none}.hw-mic svg{width:20px;height:20px}
.hw-send{width:46px;height:46px;border-radius:50%;border:0;background:#2563eb;color:#fff;font-size:18px;cursor:pointer;flex:none}.hw-send:disabled{opacity:.5}
@media(max-width:760px){.unlock-row{grid-template-columns:1fr 70px 34px}.chat{max-height:46vh}}

/* ===== 3D buttons =====
   Raised look: a solid "edge" shadow below, a soft drop shadow and a top highlight.
   Hover lifts and sweeps a shine across; pressing pushes the button down into its edge. */
:root{--blue:#2563eb;--blue-light:#4f8ff7;--blue-edge:#1a4fc4;--white-edge:#c8d7ee;--teal:#0f766e;--teal-edge:#0b5650}
.continue,.listen-button,.secondary,.review-button,.answer-form button,.hw-send,.hw-camera,.sound,.level,.quiz-level,.practice-card,.table,.board-tabs button,.tabbar button,#confirmation button{
  position:relative;overflow:hidden;cursor:pointer;
  transition:transform .14s cubic-bezier(.3,.7,.4,1.4),box-shadow .14s ease,filter .2s ease,background-color .2s ease}
/* Blue (primary) */
.continue,.hw-send,.table.active,.sound.music.on,.tabbar button.active{
  background:linear-gradient(180deg,var(--blue-light) 0%,var(--blue) 55%,#1f5be0 100%);color:#fff;border:0;
  box-shadow:inset 0 2px 0 #ffffff40,0 6px 0 var(--blue-edge),0 12px 22px #2563eb38}
.continue:hover,.hw-send:hover,.table.active:hover{transform:translateY(-2px);filter:brightness(1.06);
  box-shadow:inset 0 2px 0 #ffffff48,0 8px 0 var(--blue-edge),0 16px 28px #2563eb44}
.continue:active,.hw-send:active,.table.active:active,.tabbar button.active:active{transform:translateY(5px);
  box-shadow:inset 0 2px 0 #ffffff30,0 1px 0 var(--blue-edge),0 4px 10px #2563eb30}
/* White (secondary) */
.listen-button,.secondary,.review-button,.answer-form button,.hw-camera,.sound,.level,.quiz-level,.practice-card,.table,#confirmation button,.board-tabs button.active{
  background-image:linear-gradient(180deg,#ffffff 0%,#f4f8ff 100%);
  box-shadow:inset 0 2px 0 #fff,0 5px 0 var(--white-edge),0 10px 18px #1842770f}
.table:not(.active):not(.mastered),.level,.quiz-level{background-image:linear-gradient(180deg,#f7faff 0%,#e9f1ff 100%)}
.table.mastered{background-image:linear-gradient(180deg,#e3eeff 0%,#c9dcfb 100%);box-shadow:inset 0 2px 0 #ffffffa0,0 5px 0 #a9c4ee,0 10px 18px #1842770f}
.listen-button:hover,.secondary:hover,.review-button:hover,.answer-form button:hover,.hw-camera:hover,.sound:hover,.level:hover,.quiz-level:hover,.practice-card:hover,.table:not(.active):hover,#confirmation button:hover{
  transform:translateY(-2px);box-shadow:inset 0 2px 0 #fff,0 7px 0 var(--white-edge),0 14px 24px #18427718}
.listen-button:active,.secondary:active,.review-button:active,.answer-form button:active,.hw-camera:active,.sound:active,.level:active,.quiz-level:active,.practice-card:active,.table:not(.active):active,#confirmation button:active,.board-tabs button:active{
  transform:translateY(4px);box-shadow:inset 0 2px 0 #fff,0 1px 0 var(--white-edge),0 3px 8px #1842770f}
.secondary{border-radius:14px;padding:11px 18px;color:#2f5584;font-weight:700;display:inline-flex;align-items:center;gap:8px}
.controls{gap:16px;flex-wrap:wrap}
.review-button{border:0;border-radius:12px}
.answer-form button,#confirmation button{border:0;border-radius:12px;padding:11px 16px;font-weight:700;color:var(--blue)}
.answer-form input{box-shadow:inset 0 2px 4px #1842770d}
/* Teal subtraction sign and blue addition sign look like little 3D tiles too */
.practice-sign{box-shadow:inset 0 2px 0 #ffffff40,0 4px 0 var(--blue-edge)}
.practice-card.sub .practice-sign{box-shadow:inset 0 2px 0 #ffffff40,0 4px 0 var(--teal-edge)}
/* The big round mic: a glossy dome with an edge, keeping its listening rings */
.mic{background:radial-gradient(circle at 35% 30%,#7fb0ff 0%,var(--blue) 45%,#1d4fc4 100%);
  box-shadow:inset 0 -5px 0 #1a46b0,inset 0 3px 6px #ffffff55,0 6px 14px #2563eb40,0 0 0 9px #edf3ff;
  transition:transform .14s cubic-bezier(.3,.7,.4,1.4),box-shadow .14s}
.mic:hover{transform:translateY(-2px) scale(1.03)}
.mic:active{transform:translateY(3px) scale(.97);box-shadow:inset 0 -2px 0 #1a46b0,inset 0 3px 6px #ffffff55,0 2px 6px #2563eb40,0 0 0 9px #edf3ff}
.mic:disabled{filter:grayscale(.4) brightness(.95);cursor:default;transform:none}
@keyframes pulse{0%,100%{box-shadow:inset 0 -5px 0 #1a46b0,inset 0 3px 6px #ffffff55,0 6px 14px #2563eb40,0 0 0 9px #edf3ff}
  50%{box-shadow:inset 0 -5px 0 #1a46b0,inset 0 3px 6px #ffffff55,0 6px 14px #2563eb40,0 0 0 16px #edf3ff,0 0 0 25px #f6f9ff}}
.mic.live{box-shadow:inset 0 -5px 0 #1a46b0,inset 0 3px 6px #ffffff55,0 6px 14px #2563eb40,0 0 0 calc(9px + var(--level,0) * 22px) #dce9ff}
/* Tab bar: tabs press down; the current one is a raised blue key */
.tabbar button:not(.active):active{transform:translateY(2px);background:#eef4ff}
.tabbar button.active{box-shadow:inset 0 2px 0 #ffffff40,0 4px 0 var(--blue-edge),0 8px 14px #2563eb38}
/* Shine sweep on hover */
.continue::after,.listen-button::after,.secondary::after,.practice-card::after,.level::after,.quiz-level::after,.table::after,.hw-send::after,.review-button::after{
  content:'';position:absolute;top:0;left:-75%;width:50%;height:100%;pointer-events:none;
  background:linear-gradient(105deg,transparent 0%,#ffffff70 50%,transparent 100%);transform:skewX(-18deg);opacity:0}
.continue:hover::after,.listen-button:hover::after,.secondary:hover::after,.practice-card:hover::after,.level:hover::after,.quiz-level:hover::after,.table:hover::after,.hw-send:hover::after,.review-button:hover::after{
  animation:shine .7s ease forwards}
@keyframes shine{0%{left:-75%;opacity:1}100%{left:130%;opacity:0}}
/* The main call-to-action shimmers now and then to invite a tap */
.home-actions .continue::before,#quiz-go::before,#homework-open::before{
  content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:linear-gradient(105deg,transparent 30%,#ffffff45 50%,transparent 70%) -200% 0/200% 100% no-repeat;
  animation:shimmer 4.5s ease-in-out 1.5s infinite}
@keyframes shimmer{0%,70%{background-position:-200% 0}100%{background-position:200% 0}}
/* Buttons pop in gently when a screen appears */
.home-actions>*,.practice-card,.quiz-level,.level{animation:pop-in .38s cubic-bezier(.3,.7,.4,1.4) both}
.home-actions>:nth-child(2),.practice-card.sub,.quiz-level:nth-child(2),.level:nth-child(2){animation-delay:.05s}
.quiz-level:nth-child(3),.level:nth-child(3){animation-delay:.1s}.level:nth-child(4){animation-delay:.15s}
@keyframes pop-in{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}
/* Text links: just a small press */
.back:active,.typed-toggle:active{transform:translateY(1px);opacity:.8}
button:disabled{cursor:default}
.continue:disabled{filter:saturate(.6) brightness(.95);transform:translateY(3px);box-shadow:inset 0 2px 0 #ffffff30,0 3px 0 var(--blue-edge)}
button:focus-visible{outline:3px solid #93b8f6;outline-offset:3px}
@media (prefers-reduced-motion:reduce){
  .continue,.listen-button,.secondary,.review-button,.answer-form button,.hw-send,.hw-camera,.sound,.level,.quiz-level,.practice-card,.table,.mic,.tabbar button{transition:none}
  .continue::after,.listen-button::after,.secondary::after,.practice-card::after,.level::after,.quiz-level::after,.table::after,.hw-send::after,.review-button::after,
  .home-actions .continue::before,#quiz-go::before,#homework-open::before{animation:none;display:none}
  .home-actions>*,.practice-card,.quiz-level,.level{animation:none}
}

/* ===== Homework Hero popup ===== */
.promo-backdrop{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:90px 18px 24px;overflow-y:auto;
  background:radial-gradient(circle at 50% 30%,#2563eb66 0%,#0b1d4acc 70%);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);animation:promo-fade .25s ease both}
.promo-backdrop.leaving{animation:promo-fade .2s ease reverse both}
@keyframes promo-fade{from{opacity:0}to{opacity:1}}
.promo{position:relative;width:min(420px,100%);border-radius:30px;padding:120px 26px 26px;color:#fff;text-align:center;
  background:linear-gradient(160deg,#ff3d8b 0%,#ff7a2f 48%,#ffc53d 100%);
  box-shadow:inset 0 3px 0 #ffffff70,inset 0 -6px 0 #d94f1a55,0 12px 0 #c43d6e,0 26px 50px #0b1d4a80;
  animation:promo-pop .55s cubic-bezier(.2,1.4,.4,1) both}
@keyframes promo-pop{from{opacity:0;transform:translateY(40px) scale(.85) rotate(-2deg)}to{opacity:1;transform:none}}
/* Art bursting out of the top of the card */
.promo-art{position:absolute;left:50%;top:-82px;width:190px;height:190px;transform:translateX(-50%) rotate(-4deg);border-radius:34px;overflow:hidden;
  background:linear-gradient(160deg,#4f8ff7,#1f4fd1);border:5px solid #fff;
  box-shadow:0 8px 0 #1a3fa8,0 18px 30px #0b1d4a66;animation:promo-bob 3.2s ease-in-out infinite}
.promo-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.promo-art-placeholder{position:absolute;inset:10px;border:3px dashed #ffffffa0;border-radius:24px;display:grid;place-content:center;gap:4px;color:#fff}
.promo-art-placeholder span{font-size:64px;line-height:1}.promo-art-placeholder small{font-size:12px;font-weight:700;opacity:.9}
@keyframes promo-bob{0%,100%{transform:translateX(-50%) rotate(-4deg) translateY(0)}50%{transform:translateX(-50%) rotate(-1deg) translateY(-8px)}}
/* Speech bubble poking out of the right edge */
.promo-bubble{position:absolute;right:-26px;top:66px;background:#fff;color:#c4316c;font-family:Manrope,sans-serif;font-weight:800;font-size:13px;line-height:1.25;
  padding:10px 14px;border-radius:18px;box-shadow:0 5px 0 #f3c9d9,0 10px 18px #0b1d4a40;transform:rotate(6deg);animation:promo-wiggle 2.6s ease-in-out infinite;z-index:2}
.promo-bubble::after{content:'';position:absolute;left:14px;bottom:-9px;border:9px solid transparent;border-top-color:#fff;border-bottom:0}
@keyframes promo-wiggle{0%,100%{transform:rotate(6deg)}50%{transform:rotate(-2deg) scale(1.05)}}
/* Ribbon over the top-left corner */
.promo-ribbon{position:absolute;left:-14px;top:22px;background:linear-gradient(180deg,#2d6bff,#1f4fd1);color:#fff;font-family:Manrope,sans-serif;font-weight:800;font-size:11px;letter-spacing:1px;
  padding:8px 14px 8px 18px;border-radius:0 12px 12px 0;box-shadow:0 4px 0 #1a3fa8;transform:rotate(-6deg);z-index:2}
.promo-ribbon::before{content:'';position:absolute;left:0;bottom:-10px;border-top:10px solid #0f2f86;border-left:14px solid transparent}
.promo-close{position:absolute;right:14px;top:14px;width:36px;height:36px;border-radius:50%;border:0;background:#ffffff40;color:#fff;font-size:16px;font-weight:800;cursor:pointer;box-shadow:0 3px 0 #00000020;z-index:3}
.promo-close:active{transform:translateY(2px)}
/* Floating stickers breaking out of the card */
.promo-float{position:absolute;font-size:40px;filter:drop-shadow(0 6px 0 #00000026);animation:promo-float 3.6s ease-in-out infinite;z-index:2}
.promo-float.f1{left:-30px;top:150px}.promo-float.f2{right:-26px;top:290px;animation-delay:-1s}
.promo-float.f3{left:-18px;bottom:96px;font-size:34px;animation-delay:-2s}
.promo-float.f4{right:-20px;top:158px;animation-delay:-.5s}
.promo-grade{font-family:Manrope,sans-serif;font-weight:900;font-size:24px;color:#fff;background:linear-gradient(160deg,#22c55e,#15803d);border-radius:14px;padding:6px 10px;box-shadow:0 4px 0 #0f5f2d}
@keyframes promo-float{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-12px) rotate(6deg)}}
.promo-spark{position:absolute;color:#fff7c2;font-size:22px;animation:promo-twinkle 1.8s ease-in-out infinite;text-shadow:0 0 12px #fff}
.promo-spark.s1{left:22px;top:96px}.promo-spark.s2{right:40px;top:120px;animation-delay:-.6s;font-size:16px}.promo-spark.s3{right:70px;bottom:40px;animation-delay:-1.2s}
@keyframes promo-twinkle{0%,100%{opacity:.2;transform:scale(.7)}50%{opacity:1;transform:scale(1.2) rotate(20deg)}}
/* Text and perks */
.promo-kicker{font-size:11px;font-weight:800;letter-spacing:2px;opacity:.95}
.promo h2{font-family:Manrope,sans-serif;font-size:31px;line-height:1.1;font-weight:900;margin:6px 0 16px;text-shadow:0 3px 0 #c43d6e70}
.promo h2 span{display:inline-block;color:#fff7c2;transform:rotate(-2deg)}
.promo-perks{list-style:none;padding:0;margin:0 0 16px;display:grid;gap:9px;text-align:left}
.promo-perks li{display:flex;align-items:center;gap:12px;background:#ffffff2a;border-radius:16px;padding:10px 12px;font-weight:700;font-size:14px;box-shadow:inset 0 2px 0 #ffffff40,0 3px 0 #00000014}
.promo-perks b{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:12px;background:#fff;font-size:20px;box-shadow:0 3px 0 #f3c9d9}
/* Progress toward the unlock */
.promo-progress{background:#ffffff26;border-radius:18px;padding:12px 14px;margin-bottom:16px;box-shadow:inset 0 2px 0 #ffffff40}
.promo-meter{display:grid;grid-template-columns:1fr 90px 40px;align-items:center;gap:10px;font-size:12px;font-weight:700;text-align:left;margin:5px 0}
.promo-meter div{height:12px;background:#ffffff45;border-radius:6px;overflow:hidden;box-shadow:inset 0 2px 3px #0000001f}
.promo-meter i{display:block;height:100%;background:linear-gradient(90deg,#fff7c2,#ffffff);border-radius:6px;animation:promo-fill 1s .5s cubic-bezier(.2,.8,.2,1) both}
@keyframes promo-fill{from{width:0}}
.promo-meter b{text-align:right}
.promo-note{margin:6px 0 0;font-size:13px;font-weight:700}
/* The gold call to action */
.promo-cta{position:relative;overflow:hidden;display:block;width:100%;border:0;border-radius:18px;padding:17px 18px;cursor:pointer;
  font-family:Manrope,sans-serif;font-size:18px;font-weight:900;color:#6b3a00;
  background:linear-gradient(180deg,#fff3a6 0%,#ffd43b 45%,#ffb800 100%);
  box-shadow:inset 0 3px 0 #ffffffb0,0 7px 0 #c47f00,0 14px 24px #6b3a0060;
  animation:promo-cta-bounce 2.4s ease-in-out 1s infinite;transition:transform .14s cubic-bezier(.3,.7,.4,1.4),box-shadow .14s}
.promo-cta::after{content:'';position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(105deg,transparent,#ffffffb0,transparent);transform:skewX(-18deg);animation:promo-cta-shine 2.4s ease-in-out 1.4s infinite}
.promo-cta:hover{transform:translateY(-2px);box-shadow:inset 0 3px 0 #ffffffb0,0 9px 0 #c47f00,0 18px 30px #6b3a0070}
.promo-cta:active{animation:none;transform:translateY(6px);box-shadow:inset 0 3px 0 #ffffffb0,0 1px 0 #c47f00,0 4px 10px #6b3a0050}
@keyframes promo-cta-bounce{0%,80%,100%{transform:translateY(0)}86%{transform:translateY(-6px) scale(1.02)}92%{transform:translateY(0)}}
@keyframes promo-cta-shine{0%,60%{left:-60%}100%{left:130%}}
.promo-later{margin-top:12px;border:0;background:none;color:#fff;font:inherit;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:4px;opacity:.9;cursor:pointer}
.promo-open{margin-top:10px}
@media(max-width:480px){.promo{padding:138px 18px 22px}.promo-ribbon{top:98px;left:-10px;font-size:10px;padding:6px 12px 6px 14px}.promo h2{font-size:26px}.promo-art{width:160px;height:160px;top:-70px}.promo-bubble{right:-10px;top:60px}.promo-float{font-size:32px}.promo-float.f1{left:-14px}.promo-float.f2{right:-12px}.promo-meter{grid-template-columns:1fr 70px 36px}}
@media (prefers-reduced-motion:reduce){.promo,.promo-art,.promo-bubble,.promo-float,.promo-spark,.promo-cta,.promo-cta::after,.promo-meter i,.promo-backdrop{animation:none}}

.promo-slide{opacity:0;transform:scale(1.12);transition:opacity .7s ease,transform 3.2s ease-out}
.promo-slide.on{opacity:1;transform:scale(1)}
.promo-dots{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:center;gap:6px;z-index:2}
.promo-dots i{width:7px;height:7px;border-radius:50%;background:#ffffff80;box-shadow:0 1px 2px #0000004d;transition:width .3s,background .3s}
.promo-dots i.on{width:18px;border-radius:4px;background:#fff}
@media (prefers-reduced-motion:reduce){.promo-slide{transition:none;transform:none}}

.consent{display:flex;align-items:flex-start;gap:10px;font-size:13px;font-weight:500!important;color:#516a8c!important;flex-direction:row!important;line-height:1.5;cursor:pointer}
.consent input{width:20px;height:20px;flex:none;margin-top:1px;accent-color:#2563eb}.consent a{color:#2563eb}
.footer-link{color:#7a8ca6;font-size:11px;margin-left:auto;margin-right:18px}.footer-link+.footer-right{margin-left:0}

/* ===== Celebrations, buddies, mission, stickers ===== */
.confetti{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:70}
.toast{position:fixed;left:50%;top:18px;transform:translateX(-50%);z-index:80;background:linear-gradient(180deg,#fff3a6,#ffd43b);color:#5c3a00;font-family:Manrope,sans-serif;font-weight:800;font-size:15px;
  padding:12px 20px;border-radius:16px;box-shadow:inset 0 2px 0 #ffffffb0,0 5px 0 #c47f00,0 12px 24px #0b1d4a40;animation:toast-in .4s cubic-bezier(.2,1.4,.4,1) both;max-width:calc(100% - 32px);text-align:center}
.toast.leaving{animation:toast-in .3s ease reverse both}
@keyframes toast-in{from{opacity:0;transform:translate(-50%,-20px) scale(.9)}to{opacity:1;transform:translate(-50%,0)}}
.buddy-art{display:block;width:100%;height:100%;aspect-ratio:1;border-radius:28%;overflow:hidden;border:4px solid #fff;box-shadow:0 5px 0 #c8d7ee,0 10px 18px #1842771a;box-sizing:border-box;background:#e8f0ff}
.buddy-art img{display:block;width:100%;height:100%;object-fit:cover}
.buddy-art.cheer{animation:buddy-cheer .8s cubic-bezier(.3,1.6,.5,1) 2}
@keyframes buddy-cheer{0%,100%{transform:none}40%{transform:translateY(-10px) rotate(-6deg) scale(1.05)}70%{transform:translateY(0) rotate(4deg)}}
.buddy-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.buddy-choice{display:flex;flex-direction:column;align-items:center;gap:6px;border:2px solid transparent;border-radius:18px;padding:10px 6px;font:inherit;font-size:12px;color:#142e54;cursor:pointer}
.buddy-choice img,.buddy-classic{width:64px;height:64px;border-radius:20px;object-fit:cover;display:block}
.buddy-classic .fox{width:64px;height:64px}
.buddy-choice.chosen{border-color:#2563eb;background-image:linear-gradient(180deg,#eef4ff,#dbe8ff)}
.buddy-choice.chosen b::after{content:' ✓';color:#2563eb}
.mission-card{display:flex;align-items:center;gap:18px;background:linear-gradient(135deg,#fff 0%,#fff8e6 100%);border:1px solid #f3e2b0;border-radius:22px;padding:16px 20px;margin:0 0 18px;box-shadow:inset 0 2px 0 #fff,0 5px 0 #f0dca6,0 12px 24px #18427708;animation:pop-in .4s cubic-bezier(.3,.7,.4,1.4) both}
.mission-card.done{background:linear-gradient(135deg,#f0fff6 0%,#dcfce7 100%);border-color:#a7e3bd;box-shadow:inset 0 2px 0 #fff,0 5px 0 #9fd8b4,0 12px 24px #18427708}
.mission-ring{--p:0;flex:none;width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#ffb800 calc(var(--p)*1%),#f3e7c4 0);position:relative}
.mission-card.done .mission-ring{background:conic-gradient(#22c55e 100%,#22c55e 0)}
.mission-ring span{width:48px;height:48px;border-radius:50%;background:#fff;display:grid;place-items:center;font-family:Manrope,sans-serif;font-weight:800;font-size:14px;color:#6b3a00}
.mission-card.done .mission-ring span{color:#15803d;font-size:22px}
.mission-text{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}
.mission-text b{font-family:Manrope,sans-serif;font-size:17px;color:#142e54}
.mission-step{font-size:13px;color:#69809f}.mission-step.ok{color:#15803d;font-weight:700}.mission-step em{font-style:normal;color:#2563eb;font-weight:700;margin-left:4px}
.mission-go{flex:none;min-width:0!important;margin:0!important;padding:13px 18px!important;font-size:14px!important}
.more-practice{grid-template-columns:repeat(3,1fr)}
.practice-card.div .practice-sign{background:#7c3aed;box-shadow:inset 0 2px 0 #ffffff40,0 4px 0 #5b21b6}
.sticker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px}
.sticker{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;padding:12px 8px;border-radius:16px;background:#f3f6fb;color:#8a9ab0;border:1px dashed #d5deeb}
.sticker-icon{font-size:30px;filter:grayscale(1);opacity:.55}
.sticker b{font-size:12px;color:#6b7c94}.sticker small{font-size:10px;line-height:1.3}
.sticker.earned{background:linear-gradient(160deg,#fff7d6,#ffe59a);border:0;color:#6b4a00;box-shadow:inset 0 2px 0 #fff,0 4px 0 #e6c25a;animation:sticker-in .5s cubic-bezier(.2,1.4,.4,1) both}
.sticker.earned .sticker-icon{filter:none;opacity:1;animation:sticker-wobble 3s ease-in-out infinite}
.sticker.earned b{color:#5c3a00}
@keyframes sticker-in{from{transform:scale(.6) rotate(-8deg);opacity:0}to{transform:none;opacity:1}}
@keyframes sticker-wobble{0%,90%,100%{transform:none}94%{transform:rotate(-12deg) scale(1.1)}97%{transform:rotate(10deg)}}
.share-row{display:flex;gap:12px;flex-wrap:wrap}
.share-row .continue{flex:1;min-width:0;margin:0;font-size:15px}.install-button{flex:none}
@media(max-width:760px){.more-practice{grid-template-columns:1fr}.buddy-grid{grid-template-columns:repeat(2,1fr)}.mission-card{flex-wrap:wrap}.mission-go{width:100%}}
@media (prefers-reduced-motion:reduce){.buddy-art.cheer,.sticker.earned,.sticker.earned .sticker-icon,.mission-card,.toast{animation:none}}
/* ===== Classroom ===== */
.class-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:14px;background:#f6f9ff;margin-bottom:8px}
.class-row small{display:block;font-size:12px;color:#69809f;margin-top:2px}.class-row code{font-weight:800;color:#2563eb;letter-spacing:1px}
.class-actions{display:flex;align-items:center;gap:10px}.class-actions .typed-toggle{margin:0}
.class-join{display:flex;gap:10px;margin-top:6px}.class-join input{flex:1;min-width:0;border:1px solid #dbe6f5;border-radius:12px;padding:12px 14px;font:inherit;text-transform:none}
.class-join .continue{min-width:0;margin:0;padding:12px 20px;font-size:14px}
#class-code{text-transform:uppercase;letter-spacing:2px;font-weight:700}
.teacher-zone{margin-top:12px;border-top:1px dashed #dbe6f5;padding-top:10px}.teacher-zone summary{cursor:pointer;font-weight:700;color:#2f5584;font-size:13px;margin-bottom:8px}
.class-code-box{display:flex;align-items:center;gap:14px;background:linear-gradient(180deg,#fff7d6,#ffe59a);border-radius:16px;padding:12px 16px;box-shadow:inset 0 2px 0 #fff,0 4px 0 #e6c25a;margin:6px 0 10px}
.class-code-box span{font-size:12px;font-weight:700;color:#6b4a00}.class-code-box b{font-family:Manrope,sans-serif;font-size:26px;letter-spacing:4px;color:#5c3a00}
.dashboard-page{max-width:900px;margin:0 auto}.table-scroll{overflow-x:auto;width:100%}
.dashboard{width:100%;border-collapse:collapse;font-size:13px;min-width:560px}.dashboard th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:#69809f;padding:8px 10px;border-bottom:2px solid #e0e9f5}
.dashboard td{padding:10px;border-bottom:1px solid #eef3fb;color:#142e54}.dashboard tr:nth-child(even) td{background:#f8fbff}
.class-board .score{color:#b07800}

/* ===== Preview bar and paused popup ===== */
.preview-bar{position:fixed;left:50%;top:12px;transform:translateX(-50%);z-index:45;display:flex;align-items:center;gap:10px;padding:10px 18px;border-radius:999px;
  background:linear-gradient(180deg,#ffffff,#eef4ff);color:#142e54;font-size:13px;box-shadow:inset 0 2px 0 #fff,0 4px 0 #c8d7ee,0 10px 22px #1842771f;max-width:calc(100% - 32px)}
.preview-bar b{font-family:Manrope,sans-serif;font-size:18px;color:#2563eb;font-variant-numeric:tabular-nums}
.preview-bar small{color:#69809f}.preview-bar.hurry b{color:#d9534f;animation:promo-twinkle 1s ease-in-out infinite}
@media(max-width:600px){.preview-bar small{display:none}}
.paused-backdrop{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:90px 18px 24px;overflow-y:auto;
  background:radial-gradient(circle at 50% 30%,#7c3aed55 0%,#0b1d4add 70%);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:promo-fade .25s ease both}
.paused-backdrop.leaving{animation:promo-fade .2s ease reverse both}
.paused{position:relative;width:min(400px,100%);border-radius:30px;padding:96px 26px 24px;text-align:center;color:#2b1a5c;
  background:linear-gradient(170deg,#ffffff 0%,#f3edff 60%,#e7dcff 100%);
  box-shadow:inset 0 3px 0 #fff,0 10px 0 #b9a3f2,0 26px 50px #0b1d4a80;animation:promo-pop .5s cubic-bezier(.2,1.4,.4,1) both}
.paused-art{position:absolute;left:50%;top:-64px;width:140px;height:140px;transform:translateX(-50%) rotate(3deg);border-radius:30px;border:5px solid #fff;overflow:hidden;
  background:linear-gradient(160deg,#ffd43b,#ffb800);box-shadow:0 7px 0 #c9a3f7,0 16px 28px #0b1d4a55;filter:saturate(.75)}
.paused-art img{width:100%;height:100%;object-fit:cover}
.paused-lock{position:absolute;right:-6px;bottom:-6px;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font-size:26px;background:#fff;box-shadow:0 4px 0 #d9ccf7}
.paused-art .paused-lock{right:6px;bottom:6px}
.paused-z{position:absolute;font-family:Manrope,sans-serif;font-weight:900;color:#8b5cf6;opacity:.0;animation:paused-z 3s ease-in-out infinite}
.paused-z.z1{right:70px;top:10px;font-size:16px}.paused-z.z2{right:52px;top:-6px;font-size:22px;animation-delay:.6s}.paused-z.z3{right:30px;top:-26px;font-size:30px;animation-delay:1.2s}
@keyframes paused-z{0%{opacity:0;transform:translateY(8px)}30%{opacity:.9}100%{opacity:0;transform:translateY(-14px) rotate(10deg)}}
.paused-kicker{font-size:11px;font-weight:800;letter-spacing:2px;color:#7c3aed}
.paused h2{font-family:Manrope,sans-serif;font-size:26px;line-height:1.15;margin:6px 0 10px;color:#2b1a5c}
.paused p{font-size:15px;line-height:1.55;color:#4a3d73;margin:0 0 16px}
.paused-contact{display:flex;flex-direction:column;gap:2px;background:#fff;border-radius:16px;padding:10px 14px;margin-bottom:16px;box-shadow:inset 0 2px 0 #fff,0 3px 0 #ddd0fa}
.paused-contact span{font-size:11px;font-weight:800;letter-spacing:1px;color:#8b7bb5}.paused-contact a{font-weight:800;color:#6d28d9;word-break:break-all}
.paused-cta{display:block;text-decoration:none;border-radius:16px;padding:15px;font-family:Manrope,sans-serif;font-size:17px;font-weight:900;color:#fff;
  background:linear-gradient(180deg,#a78bfa,#7c3aed);box-shadow:inset 0 2px 0 #ffffff60,0 6px 0 #5b21b6,0 12px 22px #5b21b650;transition:transform .14s cubic-bezier(.3,.7,.4,1.4),box-shadow .14s}
.paused-cta:hover{transform:translateY(-2px)}.paused-cta:active{transform:translateY(5px);box-shadow:inset 0 2px 0 #ffffff60,0 1px 0 #5b21b6}
.paused-ok{margin-top:12px;border:0;background:none;color:#6d28d9;font:inherit;font-weight:800;font-size:14px;cursor:pointer;padding:8px 20px}
@media (prefers-reduced-motion:reduce){.paused,.paused-z,.paused-backdrop{animation:none}.paused-z{opacity:.7}}

/* ===== Admin dashboard ===== */
.admin-open{min-width:0;width:100%;margin:0;background:linear-gradient(180deg,#a78bfa,#7c3aed)!important;box-shadow:inset 0 2px 0 #ffffff50,0 6px 0 #5b21b6,0 12px 22px #5b21b640!important}
.admin{max-width:1000px;margin:0 auto;display:flex;flex-direction:column;gap:16px}
.admin-head{display:flex;align-items:center;gap:14px}.admin-head h1{margin:2px 0 0}
.admin-badge{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;font-size:28px;background:linear-gradient(180deg,#a78bfa,#7c3aed);box-shadow:inset 0 2px 0 #ffffff50,0 5px 0 #5b21b6}
.admin-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.admin-tile{background:#fff;border:1px solid #e0e9f5;border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:2px;box-shadow:inset 0 2px 0 #fff,0 4px 0 #dbe5f3}
.admin-tile span{font-size:18px}.admin-tile b{font-family:Manrope,sans-serif;font-size:24px;color:#142e54}.admin-tile small{font-size:11px;color:#69809f}
.admin-tabs{align-self:flex-start;flex-wrap:wrap}
.admin-tools{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:10px}
.admin-tools input{flex:1;min-width:200px;border:1px solid #dbe6f5;border-radius:12px;padding:11px 14px;font:inherit}
.admin-filters{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.admin-filters button{border:1px solid #dbe6f5;background:#fff;border-radius:999px;padding:7px 12px;font:inherit;font-size:12px;font-weight:700;color:#516a8c;cursor:pointer}
.admin-filters button.on{background:#2563eb;border-color:#2563eb;color:#fff}.admin-filters em{font-style:normal;opacity:.8;margin-left:2px}
.admin-allow-all{min-width:0;margin:4px 0 8px;font-size:14px;padding:12px 18px}
.admin-table td small{display:block;color:#69809f;font-size:11px;margin-top:2px}
.pill{display:inline-block;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.pill.active{background:#dcfce7;color:#15803d}.pill.paused{background:#fee2e2;color:#b91c1c}.pill.waiting{background:#fef3c7;color:#92400e}.admin-pill{background:#ede9fe;color:#6d28d9}
.admin-actions{white-space:nowrap;display:flex;align-items:center;gap:6px}
.admin-actions .continue,.admin-actions .secondary{min-width:0;margin:0;padding:8px 12px;font-size:12px}
.admin-more{position:relative}.admin-more summary{list-style:none;cursor:pointer;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;font-weight:900;color:#516a8c;background:#f1f5fb}
.admin-more summary::-webkit-details-marker{display:none}
.admin-more div{position:absolute;right:0;top:36px;z-index:5;background:#fff;border:1px solid #e0e9f5;border-radius:14px;padding:6px;min-width:230px;box-shadow:0 12px 26px #18427726;display:flex;flex-direction:column}
.admin-more div button,.admin-more div a{border:0;background:none;text-align:left;padding:9px 10px;border-radius:9px;font:inherit;font-size:13px;color:#142e54;cursor:pointer;text-decoration:none}
.admin-more div button:hover,.admin-more div a:hover{background:#f1f5fb}
.secondary.danger{color:#b91c1c}
.winner-level{font-family:Manrope,sans-serif;font-size:16px;margin:14px 0 0;color:#142e54}
.leaderboard .who small{display:block;font-size:11px;font-weight:400}
.admin-list{list-style:none;padding:0;margin:0 0 12px;display:flex;flex-direction:column;gap:8px}
.admin-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f6f9ff;border-radius:14px;padding:10px 12px}
.admin-list small{display:block;color:#69809f;font-size:11px}.admin-list em{font-style:normal;font-size:12px;color:#7c3aed;font-weight:800}
.hw-top-actions{display:flex;gap:8px}
#homework-card{position:relative}

.hw-math{margin:10px 0 2px;padding:12px 16px;border-radius:14px;background:#14284d;color:#f4f8ff;font-family:'Cascadia Mono',Consolas,'Courier New',monospace;font-size:18px;line-height:1.55;white-space:pre;overflow-x:auto;
  box-shadow:inset 0 2px 0 #ffffff14,0 4px 0 #0b1a36;tab-size:4}
/* Profile page: plain, flat buttons. Only the homework helper button stays 3D and shimmering. */
.progress-page :is(.continue,.review-button,.listen-button,.secondary,.quiz-level,.install-button):not(#homework-open){
  transform:none;filter:none;box-shadow:none;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.progress-page :is(.continue,.review-button,.listen-button,.secondary,.quiz-level,.install-button):not(#homework-open)::after{display:none}
.progress-page .continue:not(#homework-open){background:var(--blue);border:0}
.progress-page .continue:not(#homework-open):hover{background:#1d4fd0}
.progress-page .continue:not(#homework-open):active{background:#1a46b8}
.progress-page :is(.review-button,.listen-button,.secondary,.install-button){background:#fff;background-image:none;border:1px solid #d3e0f3}
.progress-page .quiz-level{background:#f5f9ff;background-image:none;border:1px solid #d3e0f3}
.progress-page :is(.review-button,.listen-button,.secondary,.quiz-level,.install-button):hover{background:#eef4ff;border-color:#b9cdee}
.progress-page :is(.review-button,.listen-button,.secondary,.quiz-level,.install-button):active{background:#e3ecfb}
.progress-page .quiz-level{animation:none}
/* Text boxes next to a button: the box takes the room, the button stays its natural size. */
.class-join{align-items:stretch}
.class-join input{flex:1 1 auto;min-width:0;min-height:48px;font-size:16px;padding:12px 14px;background:#fff;color:#142e54}
.class-join input:focus{outline:none;border-color:#7aa7f0;box-shadow:0 0 0 3px #dbe8ff}
.panel .class-join .continue,.class-join .continue{flex:0 0 auto;width:auto;min-width:96px;margin:0;padding:12px 18px}
@media(max-width:420px){.class-join{flex-direction:column}.panel .class-join .continue,.class-join .continue{width:100%}}
#class-code::placeholder{text-transform:none;letter-spacing:normal;font-weight:400}.class-join input::placeholder{color:#8aa0c0}
.hw-solution{color:#142e54;background:#fff;padding:18px;border-radius:14px}.hw-step{font-size:16px;line-height:1.6;margin:22px 0 12px;font-weight:600}.hw-step:first-child{margin-top:0}.hw-equation{text-align:center;font-family:Georgia,serif;font-size:24px;line-height:1.8;margin:20px 0;overflow-wrap:anywhere}.hw-explanation{line-height:1.7}.hw-final{border:1px solid #92b5ee;border-radius:10px;padding:10px;background:#f0f6ff}.hw-fraction{display:inline-flex;vertical-align:middle;flex-direction:column;text-align:center;line-height:1.3;margin:0 .2em}.hw-fraction>span:first-child{border-bottom:1px solid currentColor;padding:0 .2em}.hw-fraction>span:last-child{padding:0 .2em}.fox-says details{font-size:13px;margin-top:14px;color:#577398}.fox-says details p{line-height:1.7}

/* NumbaFox wordmark: preserve the full supplied logo at its natural ratio. */
.brand{mix-blend-mode:normal}
.brand-logo{position:static;width:100%;height:100%;max-width:100%;object-fit:contain}

/* One idea at a time, with equal groups connected to the equation. */
.concept-card{gap:18px;padding:36px 24px}.concept-card h1{font-size:clamp(28px,5vw,40px)}
.concept-equation{font-size:clamp(28px,6vw,44px);line-height:1.6;font-weight:700;color:#0f2a5f}
.number-groups{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin:18px auto;max-width:560px}
.number-group{display:grid;grid-template-columns:repeat(5,10px);gap:6px;align-content:center;justify-content:center;padding:16px;border:2px solid #93b8f5;border-radius:16px;background:#eff6ff;min-height:62px}
.number-group i{width:10px;height:10px;border-radius:50%;background:#2563eb}
.learning-card>.eyebrow{margin-top:12px}.hw-help-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
@media(max-width:480px){.number-groups{gap:8px}.number-group{padding:10px;gap:4px;grid-template-columns:repeat(5,8px)}.number-group i{width:8px;height:8px}}

#billing-panel{padding:28px;max-width:1000px;margin:auto}#billing-panel h1{font-size:32px}#billing-panel h2{font-size:22px;margin:20px 0 10px}#billing-panel p{line-height:1.65;margin:14px 0}#billing-panel li{margin:10px 0}.bill-plans{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.bill-plan{padding:20px;border:1px solid #bfdbfe;background:#f5f9ff;border-radius:18px}.bill-plan .continue{font-size:15px;padding:12px;width:100%}.bill-balance{display:flex;flex-wrap:wrap;gap:20px;color:#0f2a5f;font-size:20px}.bill-warning{color:#854d0e}#bill-code{overflow-wrap:anywhere}#bill-join input{display:block;max-width:100%;padding:10px;margin:10px 0}#billing-panel button:disabled{opacity:.55;cursor:not-allowed}@media(max-width:760px){.bill-plans{grid-template-columns:1fr}}

.homework-quick{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 22px}.homework-quick .secondary{display:inline-flex;align-items:center;gap:10px;color:#2563eb}.homework-quick>span{font-size:13px;color:#637894}.homework-quick .icon{width:20px;height:20px}.homework-entry h1{font-size:32px}.homework-entry{gap:18px}.tabbar{width:min(480px,calc(100% - 24px))}.tabbar button{min-width:0}@media(max-width:480px){.homework-quick{gap:8px}.homework-quick>span{width:100%;padding-left:4px}.tabbar button{font-size:10px;padding:8px 2px}}
.premium-invitation{box-sizing:border-box;width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #dbeafe;border-radius:24px;padding:32px;background:white;color:#0f2a5f;text-align:center;box-shadow:0 24px 80px #0f2a5f30}.premium-invitation::backdrop{background:#0f2a5f66;backdrop-filter:blur(3px)}.premium-invitation .speaker-badge{margin:0 auto 18px}.premium-invitation h2{font-size:28px;line-height:1.25;margin:12px 0 16px}.premium-invitation p{font-size:15px;line-height:1.65}.premium-invitation .eyebrow{font-size:11px}.premium-parent-note{color:#637894;font-size:13px!important;margin:18px 0 24px}.premium-invitation .continue{width:100%;justify-content:center}.premium-invitation .typed-toggle{display:block;margin:18px auto 0}.premium-close{position:absolute;right:14px;top:10px;border:0;background:transparent;color:#637894;font-size:28px;cursor:pointer;padding:6px 10px}.premium-close:focus-visible,#available-plans:focus-visible{outline:2px solid #2563eb;outline-offset:4px}
