:root{--purple:#6548cf;--dark:#292445;--muted:#78758b;--teal:#159f89;--line:#e9e5f3;--paper:#fff;--bg:#f7f5fc;--shadow:0 10px 32px #3c24630a;font-family:ui-rounded,'SF Pro Rounded',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--dark);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #f0b341;outline-offset:4px}a{color:inherit;text-decoration:none}button{min-height:44px}h1,h2,h3,p{margin-top:0}h2{font-size:1.5rem;letter-spacing:-.6px}p{line-height:1.65}.topbar{max-width:1040px;margin:auto;padding:20px 28px;display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{display:flex;align-items:center;gap:12px;font-size:17px;letter-spacing:1px}.brand-icon{width:48px;height:48px;background:var(--purple);color:white;border-radius:15px;display:grid;place-items:center;font:36px serif;box-shadow:0 4px 0 #e6def9}.brand small{display:block;font-size:10px;letter-spacing:.2px;color:var(--muted);margin-top:4px}.header-actions{display:flex;align-items:center;gap:10px}.icon-button{border:1px solid var(--line);background:white;border-radius:50%;width:44px;font-size:20px}.star-pill{background:#fff3ca;border:1px solid #f5e6ab;border-radius:25px;padding:9px 14px;font-size:14px;font-weight:750;white-space:nowrap}main{max-width:1000px;margin:auto;padding:10px 28px 30px}.hero{border-radius:28px;padding:36px 42px;background:linear-gradient(115deg,#43328b,#7657d6);color:white;position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:0 12px 35px #6548cf26}.hero:after{content:'';position:absolute;right:-80px;bottom:-160px;width:450px;height:450px;border:55px solid #ffffff08;border-radius:50%;pointer-events:none}.eyebrow{font-size:10px;letter-spacing:2.5px;font-weight:800;color:#d3c7fc;margin-bottom:15px}.hero h1{font-size:clamp(29px,4.4vw,44px);line-height:1.18;letter-spacing:-1.4px;margin-bottom:14px}.hero p{color:#e4dcfa;font-size:14px;margin:0}.hero-art{min-width:120px;text-align:center;position:relative;z-index:1}.book{font-size:74px;filter:drop-shadow(0 12px 5px #21194c33)}.arab-pill{font:20px serif;border:1px solid #ffffff36;display:inline-block;padding:6px 16px;border-radius:20px;background:#ffffff12}.spark{position:absolute;font-size:24px;color:#ffe58f;top:-5px;right:2px}.profile-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:26px 0 20px}.profile-row label{font-weight:700;font-size:14px}.profile-row input{width:180px;background:white;border:1px solid var(--line);border-radius:12px;padding:12px;color:var(--dark)}.age-chips{display:flex;gap:5px;margin-left:auto;background:#efebf8;padding:4px;border-radius:12px}.chip{border:0;border-radius:9px;padding:8px 12px;background:transparent;color:var(--muted);font-size:12px;min-height:36px}.chip.active{background:white;color:var(--purple);font-weight:750;box-shadow:0 2px 6px #2924450a}.overview{display:flex;align-items:center;gap:16px;margin:20px 0;background:#edf8f5;padding:18px 20px;border-radius:18px;border:1px solid #d9eee7}.overview .plant{font-size:29px}.overview h3{font-size:14px;margin:0 0 4px}.overview p{font-size:12px;margin:0;color:#50746b}.overview button{margin-left:auto;flex-shrink:0}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:28px 0 15px;gap:20px}.section-heading h2{margin:0 0 5px}.section-heading p{color:var(--muted);font-size:13px;margin:0}.tiny-tag{font-size:11px;background:#ede7fc;color:var(--purple);padding:8px 12px;border-radius:20px;white-space:nowrap}.modules{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.module{display:flex;flex-direction:column;text-align:left;position:relative;border:1px solid var(--line);background:white;padding:23px;border-radius:20px;box-shadow:var(--shadow);transition:transform .18s,border .18s}.module:hover{transform:translateY(-3px);border-color:#c5b6ef}.module .emoji{font-size:27px;background:var(--tint);width:54px;height:54px;display:grid;place-items:center;border-radius:16px;margin-bottom:20px}.module h3{font-size:15px;line-height:1.4;margin-bottom:7px}.module p{font-size:12px;color:var(--muted);flex:1;min-height:40px;margin-bottom:19px}.module .meta{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:750;color:var(--purple)}.mini-track,.track{background:#efebf7;height:5px;border-radius:20px;overflow:hidden;margin:15px 0 0}.mini-track i,.track i{display:block;height:100%;background:linear-gradient(90deg,#18b399,#7657d6);border-radius:20px;transition:width .4s}.module:last-child{background:#fffcf5}.back{background:white;border:1px solid var(--line);border-radius:12px;padding:10px 15px;font-size:13px;font-weight:700}.page-top{display:flex;justify-content:space-between;align-items:center;margin:12px 0 25px;gap:10px}.level-hero{text-align:center;margin:20px 0 30px}.level-hero .emoji{font-size:45px;display:block;margin-bottom:12px}.level-hero p{color:var(--muted);font-size:14px}.levels{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.level{border:1px solid var(--line);background:white;border-radius:18px;padding:20px 8px;box-shadow:var(--shadow);color:var(--dark)}.level strong{display:block;font-size:24px;margin:8px 0}.level small{font-size:11px;color:var(--muted)}.level .level-stars{color:#c1bacd;font-size:16px;letter-spacing:3px}.level.done{border-color:#b7dfd3;background:#f3fcf8}.level.done .level-stars{color:#c18c17}.band-label{margin:22px 0 12px;font-size:13px;color:var(--muted)}.quiz-wrap{max-width:650px;margin:auto}.quiz-stats{display:flex;justify-content:space-between;font-size:12px;margin:15px 0;color:var(--muted)}.track{height:8px;margin:0 0 25px}.question-card{border:1px solid var(--line);background:white;border-radius:24px;padding:30px;box-shadow:var(--shadow)}.question-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.question-top .tag{font-size:11px;color:var(--purple);background:#f1ecfc;border-radius:7px;padding:7px 10px;font-weight:700}.question-card h2{font-size:19px;line-height:1.5}.arabic{font-family:'Noto Naskh Arabic','Geeza Pro','Traditional Arabic',serif;direction:rtl;unicode-bidi:isolate}.prompt{font-size:74px;text-align:center;margin:26px 0 32px;line-height:1.8;color:#392d69}.prompt.word{font-size:48px}.prompt.sentence{direction:ltr;font-family:inherit;font-size:26px;line-height:1.5;font-weight:750;padding:12px 0}.answers{display:grid;grid-template-columns:1fr 1fr;gap:10px}.answer{background:#fcfbff;border:2px solid #eeeaf5;border-radius:15px;padding:16px 10px;color:var(--dark);font-size:15px;font-weight:650;min-height:65px}.answer.arabic{font-size:30px}.answer:hover:enabled{background:#f2ecff;border-color:#baaaea}.answer.correct{border-color:#18a589;background:#eaf9f3;opacity:1}.answer.wrong{border-color:#d97f86;background:#fff0f1;opacity:1}.feedback{border-radius:14px;padding:16px;margin-top:20px;background:#eaf8f2;color:#246b57;font-size:14px;line-height:1.6}.feedback.bad{background:#fff3ec;color:#954e2f}.feedback .arabic{font-size:23px}.primary,.secondary,.danger{border:0;border-radius:12px;padding:12px 18px;font-size:13px;font-weight:750;min-height:44px}.primary{background:var(--purple);color:white}.primary:hover:enabled{background:#5335b9}.primary.teal{background:var(--teal)}.secondary{background:#f0edf7;color:var(--purple)}.danger{background:#fff0f1;color:#b13e4d}.next{width:100%;margin-top:18px}.notice{font-size:12px;color:var(--muted);line-height:1.7}.keypad{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;direction:rtl;margin:14px 0}.key{background:#f3effb;border:1px solid #e1d9f1;border-radius:10px;min-width:45px;font-size:25px;padding:8px;color:#3d3068}.typed{font-size:30px;border:2px solid var(--line);padding:14px;text-align:center;width:100%;border-radius:12px;background:#fdfcff;color:var(--dark)}.answer-zone{min-height:90px;background:#f7f4fd;border:2px dashed #ded5f0;border-radius:15px;padding:13px;display:flex;direction:rtl;gap:8px;flex-wrap:wrap}.token{font-size:25px;padding:8px 12px;border:1px solid #ded5f0;border-radius:10px;background:#eee7fc;color:#392d69}.word-bank{display:flex;flex-wrap:wrap;direction:rtl;justify-content:center;gap:8px;padding:20px 0}.actions{display:flex;gap:10px;justify-content:space-between;margin-top:14px}.draw-area{position:relative;height:230px;margin:15px 0;border:2px dashed #d8cdee;border-radius:15px;background:linear-gradient(transparent 73%,#ede8f6 73%,#ede8f6 74%,transparent 74%);overflow:hidden}.trace{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;color:#dfd7ef;font-size:155px;user-select:none}.draw-area canvas{position:relative;display:block;width:100%;height:100%;touch-action:none}.result{text-align:center;padding:36px 25px;background:white;border:1px solid var(--line);border-radius:26px;max-width:650px;margin:25px auto}.result .trophy{font-size:70px}.result .earned{font-size:40px;letter-spacing:10px;margin:20px 0}.result p{color:var(--muted)}.result .actions{justify-content:center;flex-wrap:wrap}.install-note{background:#fff9e8;border-radius:14px;padding:16px;font-size:13px;line-height:1.7;color:#685328;margin-top:14px}.hidden{display:none!important}footer{text-align:center;font-size:12px;color:#847d99;padding:25px 20px 35px;line-height:1.8}footer span{font-size:11px}dialog{border:1px solid var(--line);border-radius:22px;padding:28px;width:min(460px,92vw);color:var(--dark);box-shadow:0 25px 80px #30204244}dialog::backdrop{background:#25203577}dialog p{font-size:13px}dialog .close{float:right;background:#f0edf7;border:0;border-radius:50%;width:40px}dialog .secondary{display:block;margin:10px 0;width:100%;text-align:center}hr{border:0;border-top:1px solid var(--line);margin:22px 0}.toggle{display:flex;gap:10px;align-items:center;font-size:14px;margin:20px 0}.toggle input{width:20px;height:20px;accent-color:var(--purple)}.muted{color:var(--muted)}.file-button{cursor:pointer}.file-button input{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#292445;color:white;padding:13px 20px;border-radius:15px;box-shadow:var(--shadow);font-size:13px;z-index:99;max-width:90vw;width:max-content;display:none}#toast.show{display:block}@media(min-width:800px){.modules .module:last-child{grid-column:span 3;display:grid;grid-template-columns:70px 1fr 180px;align-items:center;gap:15px}.module:last-child .emoji{grid-row:span 2;margin:0}.module:last-child h3{margin:0}.module:last-child p{grid-column:2;min-height:0;margin:0}.module:last-child .meta{grid-column:3;grid-row:1/3}.module:last-child .mini-track{display:none}}@media(max-width:650px){.topbar{padding:16px}.brand{font-size:14px;gap:9px}.brand small{font-size:9px}.brand-icon{width:42px;height:42px;font-size:32px}.star-pill{font-size:12px;padding:8px 10px}.header-actions{gap:7px}main{padding:5px 16px 20px}.hero{padding:27px 23px;border-radius:23px;gap:8px}.hero h1{font-size:31px}.hero p{font-size:12px}.hero-art{min-width:76px}.book{font-size:57px}.arab-pill{font-size:16px;padding:4px 11px}.eyebrow{font-size:8px;letter-spacing:2px}.profile-row{gap:10px;margin-top:22px}.profile-row input{flex:1;max-width:210px}.age-chips{margin-left:0}.modules{grid-template-columns:1fr 1fr;gap:12px}.module{padding:17px;border-radius:17px}.module .emoji{margin-bottom:15px;width:47px;height:47px;font-size:24px}.module h3{font-size:14px}.module p{font-size:11px}.module .meta{font-size:10px;gap:8px}.module:last-child{grid-column:span 2}.overview{padding:14px;gap:10px;flex-wrap:wrap}.overview button{font-size:11px;padding:9px 13px}.section-heading h2{font-size:20px}.tiny-tag{font-size:10px;padding:7px 9px}.levels{grid-template-columns:repeat(5,1fr);gap:8px}.level{padding:14px 3px;border-radius:13px}.level strong{font-size:21px}.level small{font-size:9px}.level .level-stars{font-size:11px;letter-spacing:1px}.question-card{padding:22px 19px;border-radius:20px}.prompt{font-size:66px;margin:18px 0 23px}.prompt.word{font-size:41px}.prompt.sentence{font-size:23px}.question-card h2{font-size:17px}.answer{font-size:13px;padding:15px 8px}.answer.arabic{font-size:26px}.question-top{margin-bottom:15px}.token{font-size:23px}.notice{font-size:11px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Readable labels and body copy at phone and desktop sizes. */
.hero p,.module p,.level-hero p,dialog p{font-size:16px}
.profile-row label,.chip,.overview h3,.section-heading p,.module .meta,.back,.primary,.secondary,.danger,.quiz-stats,.question-top .tag,.notice,.toggle,.band-label,.level small,.tiny-tag{font-size:14px}
.overview p,.overview button,.module:last-child p,.module:last-child .meta{font-size:14px}
.module h3{font-size:17px}.module p{min-height:60px}.module .meta{gap:8px;flex-wrap:wrap}.brand small{font-size:12px}
.brand-icon{object-fit:contain}.level small{font-size:12px}.level .level-stars{font-size:14px}
@media(max-width:650px){.module{padding:16px}.module h3{font-size:16px}.module p{font-size:15px;min-height:72px}.module .meta{font-size:12px}.age-chips{flex-wrap:wrap}.hero p{font-size:15px}.overview p{font-size:14px}.tiny-tag{white-space:normal;text-align:center;font-size:12px}.brand small{font-size:10px}.section-heading{align-items:flex-start}.level small{font-size:11px}.question-card h2{font-size:18px}.answer{font-size:16px}.prompt.word{font-size:40px}}

.voice-welcome{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#eee8fc;border:1px solid #dfd2fa;padding:19px 21px;border-radius:18px;margin:18px 0}.voice-welcome strong{font-size:17px}.voice-welcome p{font-size:14px;margin:7px 0 0;color:#5e537c}.voice-welcome button{flex-shrink:0}.listen-button{border:0;background:#6548cf;color:white;border-radius:12px;padding:12px 19px;font-weight:750;font-size:16px}.question-top{flex-wrap:wrap;gap:9px}.question-top .tag{margin-right:auto}.speech-status{background:#f4f0fc;border-radius:10px;padding:12px;min-height:44px}.voice-label{display:block;font-size:14px;margin:15px 0 8px}#settings select{width:100%;padding:12px;border:1px solid #ded5ed;background:white;border-radius:10px;color:#292445;font-size:16px}@media(max-width:500px){.voice-welcome{flex-wrap:wrap}.voice-welcome button{width:100%}.question-top .tag{width:100%;margin:0}.listen-button{flex:1}.question-top .secondary{font-size:14px}}
