:root{color-scheme:light;--primary: #2563eb;--primary-deep: #1d4ed8;--primary-soft: #e8f0ff;--accent: #f59e0b;--accent-soft: #fff4dd;--ink: #16223d;--ink-soft: #2b3c5e;--muted: #63748c;--line: #e2eaf5;--surface: #f6f9ff;--card: #ffffff;--radius-lg: 28px;--radius-md: 20px;--radius-sm: 14px;--shadow-sm: 0 2px 10px rgba(22, 34, 61, .05);--shadow-md: 0 12px 30px rgba(22, 34, 61, .08);--shadow-lg: 0 26px 60px rgba(22, 34, 61, .14);--font-body: "Cairo", Tahoma, "Segoe UI", system-ui, sans-serif;--font-rounded: "Baloo Bhaijaan 2", "Cairo", Tahoma, system-ui, sans-serif;font-family:var(--font-body);font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;color:var(--ink);background-color:var(--surface);background-image:radial-gradient(circle at 88% -10%,#d9e7ff 0,#d9e7ff00 42%),radial-gradient(circle at 2% 6%,#fff1d2 0,#fff1d200 36%),radial-gradient(circle at 50% 120%,#e6f7ff 0,#e6f7ff00 46%);background-attachment:fixed;line-height:1.7}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}:focus-visible{outline:3px solid var(--accent)!important;outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-shell{min-height:100vh;display:flex;flex-direction:column;overflow:hidden}.site-header{position:sticky;top:0;z-index:6;background:#ffffffe0;border-bottom:1px solid rgba(226,234,245,.9);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.header-inner{max-width:1160px;margin:0 auto;min-height:82px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:inline-flex;align-items:center;gap:12px;flex-shrink:0}.brand-mark{width:46px;height:46px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(150deg,#4f8dff,#2563eb);color:#fff;font:800 24px var(--font-rounded);box-shadow:0 8px 18px #2563eb52}.brand-text strong,.brand-text small{display:block}.brand-text strong{font:800 19px var(--font-rounded);color:var(--ink)}.brand-text small{margin-top:-4px;color:var(--muted);font-size:11px;letter-spacing:.02em}.main-nav{display:flex;align-items:center;gap:6px}.nav-link{display:inline-flex;align-items:center;gap:7px;padding:10px 16px;border-radius:14px;font-size:14px;font-weight:600;color:#55647c;transition:background .2s ease,color .2s ease,transform .2s ease}.nav-icon{font-size:15px}.nav-link:hover{background:#eff4fd;color:var(--primary);transform:translateY(-1px)}.nav-link.active{background:var(--primary-soft);color:var(--primary-deep)}.header-badge{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border:1px solid #f6e2b5;border-radius:999px;background:#fffaed;color:#a97516;font-size:12px;font-weight:600;white-space:nowrap}.header-actions{display:inline-flex;align-items:center;gap:10px;flex-shrink:0}.theme-toggle{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 13px;border:1px solid #dbe5f4;border-radius:14px;background:#fff;color:#46586f;font:700 13px var(--font-rounded);transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease}.theme-toggle:hover{border-color:#b9cff0;background:#eff4fd;color:var(--primary-deep);transform:translateY(-1px)}.theme-toggle-icon{font-size:16px;line-height:1}.theme-toggle-text{white-space:nowrap}.page-main{width:100%;max-width:1160px;flex:1;margin:0 auto;padding:34px 24px 60px}.site-footer{margin-top:auto;border-top:1px solid var(--line);background:#ffffffb3}.footer-inner{max-width:1160px;margin:0 auto;padding:22px 24px 8px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.footer-brand{display:inline-flex;align-items:center;gap:11px}.footer-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:var(--primary-soft);color:var(--primary-deep);font:800 20px var(--font-rounded)}.footer-brand strong{display:block;font:700 15px var(--font-rounded);color:var(--ink-soft)}.footer-brand p{margin:1px 0 0;color:var(--muted);font-size:12px}.footer-nav{display:flex;gap:6px;flex-wrap:wrap}.footer-nav a{padding:7px 13px;border-radius:11px;color:var(--muted);font-size:13px;transition:background .2s ease,color .2s ease}.footer-nav a:hover{background:var(--primary-soft);color:var(--primary-deep)}.footer-copy{max-width:1160px;margin:0 auto;padding:4px 24px 22px;color:#93a1b6;font-size:12px;text-align:center}.footer-copy span{color:#e9a43c}.button-link{display:inline-flex}.button-link button{border-radius:14px;font-weight:700}.button-link>button[class*=fui-Button]{min-height:44px;padding-inline:20px}.hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:330px;padding:40px 54px;overflow:hidden;border:1px solid #e3ecff;border-radius:var(--radius-lg);background:linear-gradient(118deg,#eef4ff,#f8fbff 45%,#fff8e9);box-shadow:var(--shadow-sm)}.hero-glow{position:absolute;inset-inline-start:-70px;bottom:-110px;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,#2563eb29,#2563eb00);pointer-events:none}.hero-copy{position:relative;z-index:1;max-width:560px}.eyebrow{display:inline-flex;align-items:center;gap:5px;color:#6f7f98;font-size:13px;font-weight:700;letter-spacing:.01em}.eyebrow span{color:var(--accent)}.hero h1{margin:12px 0 10px;color:#16294d;font:800 clamp(30px,4vw,44px)/1.35 var(--font-rounded)}.hero h1 span{color:var(--primary)}.hero-copy>p{max-width:470px;margin:0 0 22px;color:var(--muted);font-size:15.5px;line-height:1.95}.hero-actions{display:flex;flex-wrap:wrap;gap:12px}.hero-stats{display:flex;flex-wrap:wrap;gap:10px;margin:26px 0 0;padding:0;list-style:none}.hero-stat{display:flex;align-items:baseline;gap:7px;padding:8px 15px;border:1px solid #e6eefb;border-radius:14px;background:#ffffffd1;box-shadow:0 3px 10px #16223d0a}.hero-stat-value{color:var(--primary-deep);font:800 20px var(--font-rounded)}.hero-stat-label{color:var(--muted);font-size:12px}.hero-art{position:relative;z-index:1;width:min(36%,330px);flex-shrink:0}.hero-art img{width:100%;display:block;filter:drop-shadow(0 16px 18px rgba(102,137,181,.22))}.art-note{position:absolute;inset-inline-start:-10px;bottom:2px;width:82px;height:82px;display:grid;place-content:center;gap:1px;transform:rotate(-8deg);border:2px solid #e5eeff;border-radius:24px;background:#fff;box-shadow:0 10px 22px #3341551f;color:var(--primary);font:700 17px var(--font-rounded);text-align:center}.art-note b{color:#ef9c1b;font-size:22px}.hero-doodle{position:absolute;inset-inline-end:46%;top:26px;color:#f7c65c;font-size:26px;opacity:.75}.section-block{margin-top:52px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:20px}.section-heading h2,.page-intro h1{margin:4px 0 0;color:var(--ink);font:800 27px var(--font-rounded)}.heading-sub{margin:4px 0 0;color:var(--muted);font-size:13px}.heading-note{color:#8b99ad;font-size:12px;white-space:nowrap}.heading-note span{color:#f0a52a;font-size:19px}.tone-blue,.blue{--tone: #2563eb;--tone-soft: #e7efff}.tone-coral,.coral{--tone: #e86a80;--tone-soft: #ffe9ed}.tone-mint,.mint{--tone: #12a06a;--tone-soft: #e2f7ee}.tone-yellow,.yellow{--tone: #d18f08;--tone-soft: #fff5da}.tone-lavender,.lavender{--tone: #7b6ade;--tone-soft: #efeaff}.tone-sky,.sky{--tone: #2b93d5;--tone-soft: #e3f4ff}.tone-rose,.rose{--tone: #dd5488;--tone-soft: #ffe7f0}.table-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.table-card{position:relative;padding:20px 20px 46px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--card);box-shadow:var(--shadow-sm);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.table-card:before{content:"";position:absolute;inset-inline:24px;top:0;height:4px;border-radius:0 0 999px 999px;background:var(--tone, var(--primary));opacity:.55}.table-card:hover{transform:translateY(-4px);border-color:#d3e0f5;box-shadow:var(--shadow-md)}.table-art{width:50px;height:50px;display:grid;place-items:center;margin-bottom:12px;border-radius:16px;background:var(--tone-soft, var(--primary-soft));font-size:25px}.table-kicker{margin:0;color:#8d99ac;font-size:11.5px}.table-card h3{margin:-2px 0 4px;color:var(--ink);font:800 26px var(--font-rounded)}.table-example{margin:0 0 8px;color:#4e5f7c;font:600 15px var(--font-rounded)}.table-example b{color:var(--primary)}.table-hint{min-height:34px;margin:0 0 8px;color:#78849a;font-size:11.5px;line-height:1.6}.table-hint span{color:#e9a52c}.table-status{margin:0;color:#4f8f70;font-size:11px}.table-status span{margin-left:5px;font-size:8px;color:#63bb8b}.table-action{position:absolute;inset-inline-start:12px;bottom:10px;color:var(--primary-deep)!important;font-size:12.5px;font-weight:700}.steps-block{margin-top:52px}.step-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0;padding:0;list-style:none}.step-card{padding:22px 20px;border:1px dashed #d7e3f6;border-radius:var(--radius-md);background:linear-gradient(160deg,#fbfdff,#f1f7ff)}.step-number{display:inline-grid;place-items:center;width:34px;height:34px;margin-bottom:10px;border:1px solid #e2ecfb;border-radius:11px;background:#fff;color:var(--primary-deep);font:800 17px var(--font-rounded);box-shadow:var(--shadow-sm)}.step-card h3{margin:0 0 4px;color:var(--ink-soft);font:700 17px var(--font-rounded)}.step-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.85}.activity-strip{display:flex;align-items:center;gap:16px;margin-top:44px;padding:20px 26px;border:1px solid #f6e3b8;border-radius:var(--radius-md);background:linear-gradient(120deg,#fffdf5,#fff5e0);box-shadow:var(--shadow-sm)}.strip-icon{width:54px;height:54px;flex-shrink:0;display:grid;place-items:center;border-radius:18px;background:#fff0cc;font-size:26px}.activity-strip>div{flex:1}.activity-strip h2{margin:0 0 3px;color:#6b4f12;font:700 18px var(--font-rounded)}.activity-strip p{margin:0;color:#8d7a55;font-size:13px}.activity-strip button{border-color:#eccb7d!important;color:#7c5a13!important}.activity-page{padding:10px 0 20px}.page-intro{margin-bottom:24px;text-align:center}.page-intro h1{font-size:34px}.page-intro h1 span{font-size:26px}.page-intro p{margin:6px 0 0;color:var(--muted);font-size:14px}.activity-card{border:1px solid var(--line);border-radius:var(--radius-md);background:var(--card);box-shadow:var(--shadow-sm)}.activity-card [class*=cardHeader]{padding:20px 23px 0}.card-title{display:flex;align-items:center;gap:8px;margin:0;color:var(--ink-soft);font:700 19px var(--font-rounded)}.card-icon{font-size:17px}.card-note{color:var(--muted);font-size:12px}.activity-content{padding:16px 24px 24px}.practice-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;max-width:900px;margin:0 auto 18px;padding:12px 16px;border:1px solid var(--line);border-radius:16px;background:#ffffffe0;box-shadow:var(--shadow-sm)}.toolbar-label{color:var(--ink-soft);font-size:13px;font-weight:700}.table-chips{display:flex;flex-wrap:wrap;gap:6px}.chip{min-width:38px;height:34px;padding:0 12px;border:1px solid #dbe5f4;border-radius:11px;background:#fff;color:#55647c;font:700 13px var(--font-rounded);transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}.chip:hover{border-color:#b9cff0;color:var(--primary-deep);transform:translateY(-1px)}.chip.active{border-color:transparent;background:var(--primary);color:#fff;box-shadow:0 6px 14px #2563eb47}.practice-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:900px;margin:0 auto}.practice-visual{min-height:284px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;border-radius:18px;background:radial-gradient(circle at 50% 0%,#f0f6ff,#f9fcff 72%)}.group-row{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.dot-group{width:76px;min-height:68px;padding:8px;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:3px;border:1px dashed #b9cdec;border-radius:14px;background:#fff;font-size:13px}.practice-visual>p{margin:14px 0 10px;color:var(--muted);font-size:13px}.equation,.quiz-equation{direction:ltr;color:#1f3357;font:800 32px var(--font-rounded)}.equation span,.quiz-equation span{margin-inline:7px;color:#8ea0b8}.equation b{color:var(--accent)}.practice-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.practice-choices .choice-button{width:100%;min-width:0;min-height:66px;border-radius:16px;font-size:22px!important}.practice-choices .choice-button:disabled{opacity:1}.practice-choices .choice-button:disabled.is-muted{opacity:.5}.feedback{min-height:44px;margin:10px 0 4px;padding:10px 13px;border-radius:12px;color:#63748b;font-size:13px;line-height:1.75}.feedback.correct{color:#1f7a52;background:#e9f9f0}.feedback.incorrect{color:#9a5d19;background:#fff4e2}.practice-actions{display:flex;align-items:center;gap:4px;margin-top:2px}.practice-actions button{border-radius:11px;font-size:13px}.practice-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0 0;padding:12px 0 0;border-top:1px dashed var(--line)}.practice-stats dt{color:var(--muted);font-size:11px}.practice-stats dd{margin:2px 0 0;color:var(--primary-deep);font:800 19px var(--font-rounded)}.practice-progress{max-width:900px;margin:20px auto 0}.progress-track{height:9px;overflow:hidden;border-radius:999px;background:#e4ecf8}.progress-fill{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#5a95ff,#2563eb);transition:width .35s ease}.progress-note{margin:8px 0 0;color:#8b99ad;text-align:center;font-size:12px}.quiz-progress{display:flex;align-items:center;gap:12px;max-width:620px;margin:0 auto 16px}.quiz-progress .progress-track{flex:1}.quiz-progress-note{color:#8b99ad;font-size:12px;white-space:nowrap}.quiz-page>.activity-card{position:relative;z-index:1;max-width:620px;margin:0 auto}.quiz-content{text-align:center}.score-pill{display:inline-flex;align-items:center;gap:6px;margin-bottom:14px;padding:7px 14px;border:1px solid #f7e4b8;border-radius:999px;background:#fff8e6;color:#8a6517;font-size:12.5px;font-weight:600}.quiz-equation{font-size:44px}.quiz-hint{margin:6px 0 18px;color:var(--muted);font-size:13px}.choice-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.choice-button{min-width:92px;min-height:78px;border:1px solid #d5e0ef!important;border-radius:18px!important;background:#fbfdff!important;color:#24406c!important;font:700 27px var(--font-rounded)!important;transition:transform .18s ease,background .18s ease,border-color .18s ease}.choice-button:hover:not(:disabled){border-color:var(--primary)!important;background:#f0f6ff!important;transform:translateY(-2px)}.choice-button.is-correct{border-color:#6fbd8b!important;background:#e9f9f0!important;color:#1f7a52!important}.choice-button.is-wrong{border-color:#e9a19c!important;background:#fff0ef!important;color:#a54f49!important}.choice-button.is-muted{opacity:.5}.quiz-feedback{margin:16px 0 6px}.quiz-explanation{margin:0 0 14px;color:#5d6d86;font:600 14px var(--font-rounded);line-height:1.9}.quiz-explanation b{color:var(--primary-deep)}.quiz-explanation span{color:#e9a52c}.quiz-content>button{min-height:44px;border-radius:12px}.quiz-finished{padding:6px;text-align:center}.finish-star{font-size:58px;line-height:1.2}.quiz-finished h2{margin:4px 0;color:var(--ink);font:800 27px var(--font-rounded)}.quiz-medal-title{margin:0 0 6px;color:var(--primary-deep);font:700 17px var(--font-rounded)}.quiz-finished p{color:var(--muted);line-height:1.85}.quiz-medal-note{font-size:13px}.quiz-finished-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:8px}.quiz-finished-actions button{min-height:44px;border-radius:12px}.quiz-decoration{width:132px;margin:18px auto 0;opacity:.75}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;padding:18px;background:#14213d73;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:fade-in .18s ease}.lesson-dialog{position:relative;width:min(100%,470px);max-height:min(92vh,800px);overflow:auto;padding:26px 24px 24px;border-radius:26px;background:#fff;text-align:center;box-shadow:var(--shadow-lg);animation:pop-in .22s ease}.dialog-close{position:absolute;top:12px;inset-inline-end:14px;width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:50%;background:#f3f7fd;color:#6b7890;font-size:22px;line-height:1}.dialog-close:hover{background:#e7eefa;color:var(--ink-soft)}.lesson-head{display:flex;flex-direction:column;align-items:center;gap:4px}.lesson-emoji{width:58px;height:58px;display:grid;place-items:center;border-radius:19px;background:var(--tone-soft, var(--primary-soft));font-size:28px}.lesson-dialog h2{margin:8px 0 0;color:var(--ink);font:800 22px var(--font-rounded)}.muted{margin:0;color:var(--muted);font-size:13px}.lesson-tip{display:flex;gap:10px;margin:16px 0 4px;padding:12px 14px;border:1px solid #f7e4b8;border-radius:16px;background:#fffaf0;text-align:start}.tip-icon{font-size:18px;line-height:1.4}.lesson-tip strong{display:block;color:#8a6517;font-size:12.5px}.lesson-tip p{margin:2px 0 0;color:#7d6c4c;font-size:12.5px;line-height:1.85}.table-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0;padding:0;list-style:none}.table-facts li{display:flex;justify-content:space-between;padding:9px 12px;border-radius:11px;background:#f5f8fd;color:#53647d;direction:ltr;font:600 13.5px var(--font-rounded)}.table-facts li b{color:var(--primary-deep)}.lesson-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.lesson-actions button{min-height:42px;border-radius:12px}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes pop-in{0%{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}@media(max-width:1020px){.table-grid{grid-template-columns:repeat(3,1fr)}.header-badge{display:none}}@media(max-width:860px){.hero{padding:30px 28px}.hero-art{width:32%}.step-list{grid-template-columns:1fr}.footer-inner{flex-direction:column;align-items:flex-start;gap:10px}}@media(max-width:700px){.header-inner{min-height:70px;padding-inline:16px;gap:10px}.theme-toggle{height:38px;padding:0 10px}.theme-toggle-text{display:none}.brand-mark{width:40px;height:40px;border-radius:14px;font-size:21px}.brand-text strong{font-size:16px}.brand-text small{display:none}.main-nav{gap:2px}.nav-link{padding:9px 10px;font-size:12.5px;border-radius:11px}.nav-icon{display:none}.page-main{padding:22px 16px 44px}.hero{flex-direction:column;align-items:flex-start;gap:18px;min-height:unset;padding:26px 22px;border-radius:22px}.hero h1{font-size:clamp(25px,6vw,34px)}.hero-copy>p{font-size:14px;line-height:1.85}.hero-art{width:58%;align-self:center}.art-note{width:64px;height:64px;border-radius:18px;font-size:13px}.art-note b{font-size:17px}.hero-doodle{display:none}.section-heading{align-items:flex-start;flex-direction:column}.heading-note{display:none}.table-grid{grid-template-columns:repeat(2,1fr);gap:11px}.table-card{padding:16px 14px 44px}.table-hint{font-size:11px}.activity-strip{flex-wrap:wrap;padding:17px}.practice-layout{grid-template-columns:1fr;gap:15px}.practice-visual{min-height:230px}.quiz-equation{font-size:36px}}@media(max-width:430px){.header-inner{flex-wrap:wrap;justify-content:center;padding-block:9px}.brand{margin-inline-end:auto}.main-nav{order:2;width:100%;justify-content:space-between}.nav-link{flex:1;justify-content:center}.hero{padding:22px 17px}.hero h1{font-size:25px}.hero-stats{gap:7px}.hero-stat{padding:6px 11px}.eyebrow{font-size:11.5px}.table-grid{gap:9px}.table-example{font-size:13px}.choice-button{min-width:74px;min-height:66px;font-size:23px!important}.practice-choices{gap:7px}.practice-choices .choice-button{min-height:58px;font-size:20px!important}.table-facts{grid-template-columns:1fr}.practice-stats dd{font-size:16px}.quiz-progress{flex-direction:column;align-items:stretch;gap:6px;text-align:center}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}[data-theme=dark]{color-scheme:dark;--primary: #5b9bff;--primary-deep: #a7c8ff;--primary-soft: rgba(91, 155, 255, .16);--accent: #ffc861;--accent-soft: rgba(255, 200, 97, .14);--ink: #e9f0fb;--ink-soft: #d3e0f4;--muted: #a6b6cd;--line: #22314a;--surface: #0a1220;--card: #121d31;--shadow-sm: 0 2px 10px rgba(0, 0, 0, .45);--shadow-md: 0 14px 32px rgba(0, 0, 0, .5);--shadow-lg: 0 26px 60px rgba(0, 0, 0, .6)}[data-theme=dark] body{color:var(--ink);background-color:#0a1220;background-image:radial-gradient(circle at 88% -10%,#3b82f647 0,#3b82f600 42%),radial-gradient(circle at 2% 6%,#f59e0b26 0,#f59e0b00 36%),radial-gradient(circle at 50% 120%,#2dd4bf21 0,#2dd4bf00 46%)}[data-theme=dark] .app-shell{background-color:#0a1220;background-image:radial-gradient(circle at 88% -10%,#3b82f633 0,#3b82f600 42%),radial-gradient(circle at 2% 6%,#f59e0b1c 0,#f59e0b00 36%),radial-gradient(circle at 50% 120%,#2dd4bf1c 0,#2dd4bf00 46%)}[data-theme=dark] .site-header{background:#0a1220e0;border-bottom-color:#22314af2}[data-theme=dark] .brand-mark{background:linear-gradient(150deg,#3d7bee,#1f4fb8);box-shadow:0 8px 18px #143c8c8c}[data-theme=dark] .nav-link{color:#b6c6da}[data-theme=dark] .nav-link:hover{background:#ffffff12;color:var(--primary)}[data-theme=dark] .nav-link.active{background:#5b9bff2e;color:#cfe1ff}[data-theme=dark] .header-badge{border-color:#ffc86157;background:#ffc8611a;color:#ffd48a}[data-theme=dark] .theme-toggle{border-color:#2b3d59;background:#16233a;color:#d3e0f4}[data-theme=dark] .theme-toggle:hover{border-color:var(--primary);background:#1b2b46;color:#cfe1ff}[data-theme=dark] .site-footer{background:#0a1220b8}[data-theme=dark] .footer-copy{color:#8fa0b8}[data-theme=dark] .footer-copy span{color:#ffc861}[data-theme=dark] .hero{border-color:#5b9bff38;background:linear-gradient(118deg,#131f36,#101a2c 45%,#1c2036)}[data-theme=dark] .hero-glow{background:radial-gradient(circle,#5b9bff38,#5b9bff00)}[data-theme=dark] .eyebrow{color:#a6b6cd}[data-theme=dark] .hero h1{color:var(--ink)}[data-theme=dark] .hero-copy>p{color:#b4c3d8}[data-theme=dark] .hero-stat{border-color:#5b9bff38;background:#121d31d9;box-shadow:0 3px 10px #0006}[data-theme=dark] .hero-stat-value{color:var(--primary-deep)}[data-theme=dark] .art-note{border-color:#5b9bff47;background:#16233a;box-shadow:0 12px 26px #0000008c;color:var(--primary)}[data-theme=dark] .hero-art img{filter:drop-shadow(0 16px 20px rgba(0,0,0,.5))}[data-theme=dark] .hero-doodle{color:#ffc861;opacity:.6}[data-theme=dark] .heading-note,[data-theme=dark] .table-kicker,[data-theme=dark] .table-hint,[data-theme=dark] .progress-note,[data-theme=dark] .quiz-progress-note{color:#8fa0b8}[data-theme=dark] .table-example{color:#c3d2e6}[data-theme=dark] .table-status{color:#7fd3a6}[data-theme=dark] .table-card:hover{border-color:#5b9bff6b}[data-theme=dark] .step-card{border-color:#5b9bff3d;background:linear-gradient(160deg,#131f36,#0f1930)}[data-theme=dark] .step-number{border-color:#5b9bff4d;background:#16233a;color:var(--primary-deep)}[data-theme=dark] .activity-strip{border-color:#ffc8614d;background:linear-gradient(120deg,#1a2135,#241f2e)}[data-theme=dark] .strip-icon{background:#ffc86129}[data-theme=dark] .activity-strip h2{color:#ffd48a}[data-theme=dark] .activity-strip p{color:#d0bf9c}[data-theme=dark] .activity-strip button{border-color:#ffc8616b!important;color:#ffd48a!important}[data-theme=dark] .practice-toolbar{background:#121d31e6}[data-theme=dark] .chip{border-color:#2b3d59;background:#16233a;color:#c3d2e6}[data-theme=dark] .chip:hover{border-color:var(--primary);color:#cfe1ff}[data-theme=dark] .chip.active{border-color:transparent;background:#2f6fe0;color:#fff;box-shadow:0 6px 16px #00000080}[data-theme=dark] .practice-visual{background:radial-gradient(circle at 50% 0%,#16233c,#101a2c 72%)}[data-theme=dark] .dot-group{border-color:#5b9bff52;background:#16233a}[data-theme=dark] .equation,[data-theme=dark] .quiz-equation{color:#e6eefb}[data-theme=dark] .equation span,[data-theme=dark] .quiz-equation span{color:#7e8ea6}[data-theme=dark] .equation b{color:var(--accent)}[data-theme=dark] .feedback{color:#a6b6cd}[data-theme=dark] .feedback.correct{color:#8ce8bb;background:#34c77b24}[data-theme=dark] .feedback.incorrect{color:#ffc98a;background:#ffb05224}[data-theme=dark] .progress-track{background:#1d2c44}[data-theme=dark] .progress-fill{background:linear-gradient(90deg,#4a86ff,#2f6fe0)}[data-theme=dark] .choice-button{border:1px solid #2c3f5e!important;background:#16233a!important;color:#dbe7f7!important}[data-theme=dark] .choice-button:hover:not(:disabled){border-color:var(--primary)!important;background:#1b2b46!important}[data-theme=dark] .choice-button.is-correct{border-color:#3f9c69!important;background:#34c77b2e!important;color:#8ce8bb!important}[data-theme=dark] .choice-button.is-wrong{border-color:#b3564f!important;background:#eb57572e!important;color:#ffb1ab!important}[data-theme=dark] .score-pill{border-color:#ffc86152;background:#ffc8611a;color:#ffd48a}[data-theme=dark] .quiz-explanation{color:#b7c6da}[data-theme=dark] .quiz-explanation span{color:#ffc861}[data-theme=dark] .quiz-medal-title{color:var(--primary-deep)}[data-theme=dark] .dialog-backdrop{background:#03070ead}[data-theme=dark] .lesson-dialog{border:1px solid var(--line);background:var(--card)}[data-theme=dark] .dialog-close{background:#1b2942;color:#b7c6da}[data-theme=dark] .dialog-close:hover{background:#22334f;color:#e9f0fb}[data-theme=dark] .lesson-tip{border-color:#ffc8614d;background:#ffc86114}[data-theme=dark] .lesson-tip strong{color:#ffd48a}[data-theme=dark] .lesson-tip p{color:#d3c3a0}[data-theme=dark] .table-facts li{background:#182642;color:#c8d6e8}[data-theme=dark] .tone-blue,[data-theme=dark] .blue{--tone: #6ea8ff;--tone-soft: rgba(37, 99, 235, .2)}[data-theme=dark] .tone-coral,[data-theme=dark] .coral{--tone: #ff8fa3;--tone-soft: rgba(232, 106, 128, .2)}[data-theme=dark] .tone-mint,[data-theme=dark] .mint{--tone: #45d492;--tone-soft: rgba(18, 160, 106, .2)}[data-theme=dark] .tone-yellow,[data-theme=dark] .yellow{--tone: #f7c048;--tone-soft: rgba(209, 143, 8, .2)}[data-theme=dark] .tone-lavender,[data-theme=dark] .lavender{--tone: #a99bff;--tone-soft: rgba(123, 106, 222, .22)}[data-theme=dark] .tone-sky,[data-theme=dark] .sky{--tone: #5cc0f5;--tone-soft: rgba(43, 147, 213, .2)}[data-theme=dark] .tone-rose,[data-theme=dark] .rose{--tone: #ff8fbb;--tone-soft: rgba(221, 84, 136, .2)}[data-theme=dark] ::selection{background:#5b9bff59;color:#f4f8ff}[data-theme=dark] ::-webkit-scrollbar{width:12px;height:12px}[data-theme=dark] ::-webkit-scrollbar-track{background:#0a1220}[data-theme=dark] ::-webkit-scrollbar-thumb{border:3px solid #0a1220;border-radius:999px;background:#2b3d59}[data-theme=dark] ::-webkit-scrollbar-thumb:hover{background:#3a5273}.activity-page{padding:0 0 12px}.activity-page .page-intro{margin-bottom:16px}.activity-page .page-intro .eyebrow{margin-bottom:2px}.activity-page .page-intro h1{margin-bottom:0;font-size:30px;line-height:1.3}.activity-page .page-intro p{margin-top:2px;font-size:13.5px}.activity-page .activity-content{padding:12px 22px 20px}.has-answer-bar{padding-bottom:150px}.quiz-equation{line-height:1.25;margin:2px 0}.quiz-hint{margin:4px 0 14px}.choice-button{box-shadow:0 3px #d5e0ef}.choice-button:active:not(:disabled){transform:translateY(2px);box-shadow:none}.choice-button.is-correct{animation:choice-pop .45s ease;box-shadow:0 3px #6fbd8b}.choice-button.is-wrong{animation:choice-shake .4s ease;box-shadow:0 3px #e9a19c}@keyframes choice-pop{0%{transform:scale(1)}40%{transform:scale(1.12)}to{transform:scale(1)}}@keyframes choice-shake{0%,to{transform:translate(0)}20%{transform:translate(-6px)}40%{transform:translate(6px)}60%{transform:translate(-4px)}80%{transform:translate(4px)}}.practice-hint{margin:12px 0 0;color:var(--muted);font-size:13px;text-align:center}.practice-actions{justify-content:center;margin-top:4px}.practice-visual{min-height:240px}.answer-bar{position:fixed;inset-inline:0;bottom:0;z-index:20;padding:0 16px calc(14px + env(safe-area-inset-bottom));pointer-events:none;transform:translateY(110%);transition:transform .32s cubic-bezier(.2,.9,.3,1.2)}.answer-bar.is-open{transform:translateY(0);pointer-events:auto}.answer-bar-inner{max-width:760px;margin:0 auto;display:flex;align-items:center;gap:16px;padding:12px 16px;border:2px solid var(--line);border-radius:24px;background:var(--card);box-shadow:var(--shadow-lg)}.answer-bar.correct .answer-bar-inner{border-color:#8fd3a9;background:linear-gradient(180deg,#f1fcf5,var(--card))}.answer-bar.incorrect .answer-bar-inner{border-color:#f3c98a;background:linear-gradient(180deg,#fff8ec,var(--card))}.answer-bar-face{width:76px;height:76px;flex-shrink:0;object-fit:cover;object-position:50% 22%;border-radius:50%;border:3px solid #fff;box-shadow:0 6px 16px #16223d2e;animation:face-bounce .5s ease}.answer-bar.correct .answer-bar-face{outline:3px solid #6fbd8b}.answer-bar.incorrect .answer-bar-face{outline:3px solid #f0b35c}@keyframes face-bounce{0%{transform:scale(.4) rotate(-12deg);opacity:0}60%{transform:scale(1.08) rotate(3deg);opacity:1}to{transform:scale(1) rotate(0)}}.answer-bar-text{flex:1;min-width:0}.answer-bar-message.feedback{min-height:0;margin:0;padding:0;background:none!important;font:800 18px var(--font-rounded);line-height:1.5}.answer-bar-detail{margin:2px 0 0;color:var(--muted);font-size:13px;line-height:1.6}.answer-bar-detail b{color:var(--primary-deep)}.answer-bar-action{flex-shrink:0;min-height:54px;padding-inline:26px!important;border-radius:16px!important;font:800 17px var(--font-rounded)!important;box-shadow:0 4px 0 var(--primary-deep),0 10px 20px #2563eb4d}.answer-bar.correct .answer-bar-action{background:#16a34a!important;box-shadow:0 4px #11803a,0 10px 20px #16a34a4d}.answer-bar.correct .answer-bar-action:hover{background:#15913f!important}.answer-bar-action:active{transform:translateY(3px);box-shadow:none!important}[data-theme=dark] .answer-bar.correct .answer-bar-inner{border-color:#45d49280;background:linear-gradient(180deg,rgba(18,160,106,.18),var(--card))}[data-theme=dark] .answer-bar.incorrect .answer-bar-inner{border-color:#f7c04880;background:linear-gradient(180deg,rgba(209,143,8,.16),var(--card))}[data-theme=dark] .answer-bar-face{border-color:#121d31}[data-theme=dark] .choice-button{box-shadow:0 3px #22314a}@media(max-height:760px){.activity-page .page-intro p,.activity-page .page-intro .eyebrow{display:none}.activity-page .page-intro h1{font-size:26px}.page-main{padding-top:18px}}@media(max-width:700px){.activity-page .page-intro{margin-bottom:12px}.activity-page .page-intro p{display:none}.activity-page .page-intro h1{font-size:24px}.practice-toolbar{flex-wrap:nowrap;overflow-x:auto;padding:8px 10px;scrollbar-width:none}.practice-toolbar::-webkit-scrollbar{display:none}.table-chips{flex-wrap:nowrap}.chip{flex-shrink:0}.practice-visual{min-height:0;padding:12px}.dot-group{width:62px;min-height:52px;font-size:11px}.practice-visual>p{margin:8px 0 4px}.equation{font-size:28px}.answer-bar{padding-inline:8px}.answer-bar-inner{flex-wrap:wrap;gap:10px 12px;padding:12px;border-radius:20px}.answer-bar-face{width:56px;height:56px}.answer-bar-message.feedback{font-size:16px}.answer-bar-detail{font-size:12px}.answer-bar-action{width:100%;min-height:52px}.has-answer-bar{padding-bottom:190px}}@media(max-width:700px){.activity-page .card-note{display:none}.activity-page .activity-card [class*=cardHeader]{padding:14px 16px 0}.activity-page .activity-content{padding:10px 14px 16px}.activity-page .card-title{font-size:17px}.practice-layout{gap:12px}}html[data-answer] body,html[data-answer] .app-shell,html[data-answer] .site-header,html[data-answer] .site-footer{transition:background-color .3s ease}html[data-answer=correct] body,html[data-answer=correct] .app-shell,html[data-answer=correct][data-theme=dark] .app-shell{background-color:#4ade80!important;background-image:none!important}html[data-answer=incorrect] body,html[data-answer=incorrect] .app-shell,html[data-answer=incorrect][data-theme=dark] .app-shell{background-color:#f87171!important;background-image:none!important}html[data-answer=correct] .site-header,html[data-answer=correct] .site-footer{background:#dcfce7eb!important}html[data-answer=incorrect] .site-header,html[data-answer=incorrect] .site-footer{background:#fee2e2eb!important}html[data-answer] .activity-page .page-intro h1,html[data-answer] .activity-page .page-intro p,html[data-answer] .activity-page .page-intro .eyebrow,html[data-answer] .progress-note,html[data-answer] .quiz-progress-note{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.25)}html[data-answer] .progress-track{background:#ffffff73}html[data-answer] .practice-toolbar{background:#ffffffeb}[data-theme=dark][data-answer=correct] body,[data-theme=dark][data-answer=correct] .app-shell{background-color:#166534!important}[data-theme=dark][data-answer=incorrect] body,[data-theme=dark][data-answer=incorrect] .app-shell{background-color:#991b1b!important}[data-theme=dark][data-answer=correct] .site-header,[data-theme=dark][data-answer=correct] .site-footer{background:#14532deb!important}[data-theme=dark][data-answer=incorrect] .site-header,[data-theme=dark][data-answer=incorrect] .site-footer{background:#7f1d1deb!important}[data-theme=dark][data-answer] .practice-toolbar{background:#121d31eb}.pictures-toggle{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;height:34px;margin-inline-start:auto;padding:0 12px;border:1px solid #f7e4b8;border-radius:11px;background:#fff8e6;color:#8a6517;font:700 13px var(--font-rounded);white-space:nowrap;transition:background .18s ease,transform .18s ease}.pictures-toggle:hover{transform:translateY(-1px);background:#fff1cc}.pictures-toggle.is-off{border-color:#b9cff0;background:var(--primary-soft);color:var(--primary-deep)}[data-theme=dark] .pictures-toggle{border-color:#ffc86159;background:#ffc8611f;color:#ffd48a}[data-theme=dark] .pictures-toggle.is-off{border-color:#5b9bff66;background:#5b9bff29;color:#cfe1ff}.pictures-hidden .practice-visual{min-height:0;padding:36px 16px}.pictures-hidden .equation{font-size:46px}@media(max-width:700px){.pictures-hidden .practice-visual{padding:18px 12px}.pictures-hidden .equation{font-size:36px}}.profile-chip{display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 8px 0 12px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink-soft);font:700 13px var(--font-rounded);transition:border-color .18s ease,transform .18s ease}.profile-chip:hover{border-color:var(--primary);transform:translateY(-1px)}.profile-chip-avatar{font-size:20px;line-height:1}.profile-chip-gear{font-size:13px;opacity:.7}.theme-toggle.icon-only{width:40px;padding:0;justify-content:center}.settings-dialog{text-align:start}.settings-title{display:flex;align-items:center;gap:8px;margin:0 0 6px;color:var(--ink);font:800 22px var(--font-rounded)}.settings-section{padding:14px 0;border-top:1px dashed var(--line)}.settings-section h3{margin:0 0 10px;color:var(--ink-soft);font:700 15px var(--font-rounded)}.profile-list{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px;padding:0;list-style:none}.profile-list li{display:inline-flex;align-items:center;gap:2px}.profile-pick{display:inline-flex;align-items:center;gap:7px;height:44px;padding:0 14px;border:2px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink-soft);font:700 14px var(--font-rounded)}.profile-list li.active .profile-pick{border-color:var(--primary);background:var(--primary-soft);color:var(--primary-deep)}.profile-avatar{font-size:22px;line-height:1}.profile-check{color:var(--primary)}.profile-remove{width:32px;height:32px;border:0;border-radius:10px;background:transparent;opacity:.6}.profile-remove:hover{opacity:1;background:#fff0ef}.profile-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.profile-form input{flex:1 1 160px;height:42px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink)}.avatar-picker{display:flex;flex-wrap:wrap;gap:4px;width:100%}.avatar-picker button{width:38px;height:38px;border:2px solid transparent;border-radius:12px;background:var(--surface);font-size:20px;line-height:1}.avatar-picker button.active{border-color:var(--primary);background:var(--primary-soft)}.segmented{display:inline-flex;gap:4px;padding:4px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}.segmented button{min-height:38px;padding:0 16px;border:0;border-radius:10px;background:transparent;color:var(--muted);font:700 13.5px var(--font-rounded);transition:background .18s ease,color .18s ease}.segmented button b{margin-inline-start:4px;font-size:15px}.segmented button.active{background:var(--card);color:var(--primary-deep);box-shadow:var(--shadow-sm)}.chip-mistakes{border-color:#f3c98a;background:#fff8ec;color:#9a5d19}.chip-mistakes.active{background:#f59e0b;color:#fff;box-shadow:0 6px 14px #f59e0b4d}.answer-mode{display:flex;width:fit-content;margin:0 auto 12px}.typing-form{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px}.typing-input{width:150px;height:70px;border:2px solid #d5e0ef;border-radius:18px;background:#fbfdff;color:#24406c;font:800 34px var(--font-rounded);text-align:center;box-shadow:0 3px #d5e0ef}.typing-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 4px var(--primary-soft)}.typing-input.correct{border-color:#6fbd8b;background:#e9f9f0;color:#1f7a52}.typing-input.incorrect{border-color:#e9a19c;background:#fff0ef;color:#a54f49;animation:choice-shake .4s ease}.typing-form button{min-height:56px;border-radius:16px!important;font:800 17px var(--font-rounded)!important}.typing-error{width:100%;margin:0;color:#a54f49;font-size:13px;text-align:center}.empty-state{max-width:520px;margin:10px auto;padding:34px 24px;text-align:center;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--card);box-shadow:var(--shadow-sm)}.empty-emoji{display:block;font-size:54px;line-height:1.2}.empty-state h2{margin:6px 0;color:var(--ink);font:800 22px var(--font-rounded)}.empty-state p{color:var(--muted)}.table-stars{display:flex;align-items:center;gap:8px;margin:0}.table-stars .stars{display:inline-flex;gap:1px;font-size:17px;line-height:1;color:#d6deea}.table-stars .stars .on{color:#f5b301;text-shadow:0 1px 3px rgba(245,179,1,.45)}.stars-count{color:var(--muted);font-size:11.5px;font-weight:700}.mistakes-strip{margin:26px 0 0;border-color:#f3c98a}.mistakes-strip button{border-color:transparent!important;color:#fff!important}.finish-hero{position:relative;width:120px;height:120px;margin:0 auto 6px}.finish-hero img{width:100%;height:100%;object-fit:cover;object-position:50% 22%;border:4px solid #fff;border-radius:50%;outline:4px solid #f5b301;box-shadow:var(--shadow-md);animation:face-bounce .6s ease}.finish-medal{position:absolute;bottom:-6px;inset-inline-end:-10px;font-size:42px;animation:choice-pop .6s ease .3s both}.confetti-canvas{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;width:100vw;height:100vh;pointer-events:none}.speed-page>.activity-card{max-width:620px;margin:0 auto}.speed-ready,.speed-play{text-align:center}.speed-clock{font-size:64px;line-height:1.2;animation:choice-pop 1.2s ease infinite}.speed-ready p{color:var(--muted)}.speed-hud{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.speed-hud .score-pill{margin:0}.speed-time{color:var(--primary-deep);font:800 22px var(--font-rounded)}.speed-time.is-low{color:#dc2626;animation:choice-pop 1s ease infinite}.speed-track{margin-bottom:14px}.speed-track .progress-fill{transition:width .2s linear}.speed-choices{display:grid;grid-template-columns:repeat(2,1fr);max-width:360px;margin:14px auto 0}.speed-choices .choice-button{width:100%}[data-theme=dark] .chip-mistakes{border-color:#f7c04866;background:#d18f0829;color:#ffd48a}[data-theme=dark] .typing-input{border-color:#2a3b57;background:#162238;color:#e6eefb;box-shadow:0 3px #22314a}[data-theme=dark] .table-stars .stars{color:#2a3b57}[data-theme=dark] .profile-remove:hover{background:#dc26262e}@media(max-width:1020px){.profile-chip-name,.profile-chip-gear{display:none}.profile-chip{width:40px;padding:0;justify-content:center}}@media(max-width:860px){.brand-text{display:none}.nav-link{padding:9px 11px}}@media(max-width:700px){.profile-chip,.theme-toggle.icon-only{width:36px;height:36px}.header-actions{gap:6px}.typing-input{width:120px;height:60px;font-size:28px}}@media(max-width:430px){.brand-text{display:block}.nav-link{padding:8px 4px;font-size:12px}}.table-card .table-stars{position:absolute;top:16px;inset-inline-end:16px;flex-direction:column;align-items:center;gap:0}.table-stars .stars{color:#cbd5e3}@media(max-width:700px){.table-card .table-stars{top:12px;inset-inline-end:10px}.table-stars .stars{font-size:14px}.activity-strip>div{flex:1 1 calc(100% - 64px)}.activity-strip .button-link,.activity-strip .button-link button{width:100%}}
