:root{--ink:#163e36;--green:#116b58;--dark:#103e34;--muted:#647870;--cream:#f7f6ed;--gold:#c69f55;--line:#dfE7DC;--card:#fffef9;--radius:23px}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--cream);font-family:Tahoma,Arial,sans-serif;font-size:16px;line-height:1.65}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--green);text-decoration:none}button:disabled{cursor:default;opacity:.62}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:4px}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.2;letter-spacing:-.02em}h1{font-size:clamp(36px,5.5vw,68px);font-weight:700}h2{font-size:clamp(25px,3vw,36px)}h3{font-size:22px}p{color:var(--muted)}.skip{position:absolute;top:-100px;inset-inline-start:10px;background:#fff;padding:10px;z-index:10}.skip:focus{top:10px}.top{background:#fffef9;border-bottom:1px solid var(--line)}.top-inner{max-width:1180px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:14px 28px;gap:15px}.brand{display:flex;align-items:center;gap:13px;color:var(--ink);line-height:1.3}.brand img{object-fit:contain;width:64px;height:64px}.brand span{font-size:19px;direction:ltr}.brand b{display:block;font-size:14px;letter-spacing:.18em;text-transform:uppercase;color:var(--green)}.tools{display:flex;gap:20px;align-items:center;font-size:14px}.language{border:1px solid var(--line);border-radius:100px;padding:8px 15px}#nav{display:flex;max-width:1180px;margin:auto;padding:0 28px 12px;gap:5px;overflow:auto;scrollbar-width:thin}#nav a{padding:9px 15px;white-space:nowrap;border-radius:100px;font-size:14px;color:var(--muted)}#nav a[aria-current=page]{background:#e4eee6;color:var(--green);font-weight:bold}main{max-width:1180px;margin:0 auto;padding:35px 28px 65px;min-height:65vh}.eyebrow{font-size:13px;font-weight:bold;color:var(--green);letter-spacing:.06em;margin-bottom:20px}.hero{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:40px;padding:34px 0 52px}.hero-copy>p{max-width:530px;font-size:18px}.hero h1{max-width:580px;margin-bottom:24px}.hero-art{position:relative;min-height:370px;background:#e4ece0;border-radius:44% 46% 40% 49%;display:grid;place-items:center;overflow:hidden}.hero-art:before{content:'';position:absolute;inset:25px;border:1px solid #becbb7;border-radius:44% 46% 40% 49%;transform:rotate(10deg)}.art-tiles{position:relative;display:grid;grid-template-columns:repeat(2,100px);gap:16px;transform:rotate(-9deg)}.art-tile{display:flex;align-items:center;justify-content:center;height:100px;background:#fffef9;border-radius:22px;box-shadow:0 12px 28px #23472b10;font-family:Arial,Tahoma,sans-serif;font-size:64px;line-height:1;color:var(--green)}.art-tile.gold{background:#dec890;color:#634d22}.art-tile.deep{background:var(--green);color:#fff}.art-tile img{width:80px;height:80px;object-fit:contain}.art-star{position:absolute;top:34px;inset-inline-end:35px;color:var(--gold);font-size:30px}.pill{display:inline-flex;padding:6px 12px;background:#e8efe4;border-radius:100px;font-size:12px;color:var(--green)}.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.btn{border:1px solid var(--green);border-radius:100px;padding:12px 23px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:bold;background:var(--green);color:white;min-height:48px}.btn.secondary{background:transparent;color:var(--green);border-color:#cad8cb}.small-note{margin:20px 0 0;font-size:13px!important}.section-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:23px}.section-head h2{margin-bottom:8px}.section-head p{margin-bottom:0;font-size:14px}.filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:23px}.filters button{border:1px solid var(--line);background:none;border-radius:100px;padding:8px 17px;color:var(--muted)}.filters button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}.game-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.game-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:25px;display:flex;flex-direction:column}.game-card .illustration{height:165px;border-radius:17px;background:#e8ede1;display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:23px}.game-card h3{margin-bottom:13px}.game-card p{font-size:15px;min-height:73px}.game-card .btn{align-self:flex-start;margin-top:auto}.mini-letter{font-size:67px;line-height:1;color:var(--green);font-family:Arial,Tahoma,sans-serif}.word-art img{width:95px;height:95px;border-radius:15px}.mini-card{width:48px;height:66px;border-radius:10px;display:grid;place-items:center;background:#fff9e9;transform:rotate(-8deg);font-size:36px;color:var(--green)}.mini-card.back{background:var(--green);color:#d8c180;transform:rotate(8deg)}.game-card[data-game=words] .illustration{background:#f1e7d2}.game-card[data-game=memory] .illustration{background:#dde8e7}.tag-row{display:flex;justify-content:space-between;align-items:center;font-size:11px;gap:10px;margin-bottom:16px;color:var(--muted)}.cta-box{margin-top:35px;background:var(--dark);color:#fff;border-radius:var(--radius);padding:30px;display:flex;align-items:center;justify-content:space-between;gap:25px}.cta-box h3{margin-bottom:8px}.cta-box p{color:#d1e3d7;margin-bottom:0}.cta-box .btn{background:#d9bf86;border-color:#d9bf86;color:#244238;flex-shrink:0}.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:32px;margin-top:20px}.page-heading{max-width:750px;margin:25px 0 35px}.page-heading h1{font-size:clamp(32px,4vw,49px);margin-bottom:18px}.page-heading p{font-size:17px}.level-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.level{background:#fffef9;border:1px solid var(--line);border-radius:18px;padding:27px;text-align:start;color:var(--ink);min-height:150px}.level strong{display:block;font-size:23px;margin-bottom:12px}.level span{font-size:14px;color:var(--muted);display:block}.level .gold-stars{color:#a58237;letter-spacing:4px;font-size:18px;margin:15px 0 0}.round-top{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:22px}.round-top h2{margin:0;font-size:23px}.quiet{border:0;background:transparent;color:var(--green);font-weight:bold;text-decoration:underline;padding:8px}.game-panel{max-width:860px;margin:auto;text-align:center}.game-panel h1{font-size:27px;letter-spacing:0;margin-bottom:25px}.game-panel .question{font-size:clamp(35px,6vw,64px);font-family:Arial,Tahoma,sans-serif;line-height:1.7;color:var(--ink);margin:10px 0 18px}.letter-name{font-size:clamp(25px,5vw,45px);color:var(--green);line-height:1.8}.progress-bar{height:7px;border-radius:6px;background:#e8ece4;margin-bottom:30px;overflow:hidden}.progress-bar span{display:block;height:100%;background:var(--gold)}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:24px}.choice{border:2px solid var(--line);border-radius:18px;padding:20px 12px;background:#fff;color:var(--green);font-size:clamp(49px,8vw,72px);font-family:Arial,Tahoma,sans-serif;min-height:126px;line-height:1.5}.choice:hover:not(:disabled){border-color:var(--green);background:#f0f5ec}.choice img{width:100%;max-width:145px;height:130px;object-fit:contain;display:block;margin:auto}.choice.right{border-color:var(--green);background:#e6f3e6;opacity:1}.choice.wrong{border-color:#c29b66;background:#fff2dd;opacity:1}.feedback{min-height:110px;text-align:start;background:#f0f4e8;border-radius:16px;padding:18px;margin-top:24px}.feedback h3{font-size:19px;margin-bottom:8px}.feedback p{margin:0;color:var(--ink)}.feedback.idle{background:none;text-align:center;min-height:50px}.feedback.idle p{color:var(--muted);font-size:14px}.round-actions{display:flex;justify-content:center;gap:15px;margin-top:20px}.audio-note{font-size:12px;max-width:650px;margin:13px auto 0}.memory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;direction:ltr;max-width:670px;margin:25px auto}.memory-card{background:var(--green);border:2px solid var(--green);color:#dfc58c;border-radius:16px;min-height:106px;font-size:47px;font-family:Arial,Tahoma,sans-serif;line-height:1.4}.memory-card.open{background:#fff;color:var(--green);border-color:#cfdbc8}.memory-card.matched{background:#e3edda;color:var(--green);border-color:#a7bf9c;opacity:1}.memory-stats{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;color:var(--muted);font-size:14px}.result{text-align:center;max-width:780px;margin:auto}.result .big-star{font-size:58px;letter-spacing:10px;color:var(--gold);line-height:1.5}.result h1{font-size:clamp(30px,4vw,45px);margin-top:23px}.result .actions{justify-content:center;margin-top:28px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:25px 0}.stat{background:#fffef9;border:1px solid var(--line);border-radius:18px;padding:23px;text-align:center}.stat b{display:block;font-size:35px;color:var(--green)}.stat span{font-size:13px;color:var(--muted)}.progress-list{display:grid;gap:13px}.progress-item{display:flex;justify-content:space-between;gap:20px;align-items:center;border:1px solid var(--line);border-radius:16px;padding:20px}.progress-item p{margin:7px 0 0;font-size:13px}.gold-stars{color:#a58237;white-space:nowrap;letter-spacing:3px}.badge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.badge{border:1px solid var(--line);border-radius:20px;padding:30px;text-align:center;background:var(--card)}.badge-icon{width:75px;height:75px;display:grid;place-items:center;border-radius:100%;margin:0 auto 20px;background:#f0e5cb;color:#936c23;font-size:34px}.badge.locked{background:#efefe8}.badge.locked .badge-icon{background:#e1e6dd;color:#778578}.badge h3{font-size:21px}.badge p{font-size:14px}.setting{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:23px 0;border-bottom:1px solid var(--line)}.setting h3{font-size:20px;margin-bottom:8px}.setting p{margin:0;font-size:14px;max-width:700px}.setting input{width:24px;height:24px;accent-color:var(--green);flex-shrink:0}.danger{color:#8d4a30;border-color:#c3a18d;background:transparent}.prose{max-width:850px}.prose p{font-size:17px;line-height:1.9}.loading{text-align:center;margin:60px 0}#storage-note:not(:empty){max-width:1124px;margin:18px auto 0;padding:13px 20px;background:#fff0d6;color:#705324;border-radius:14px;font-size:13px}footer{max-width:1180px;margin:auto;border-top:1px solid var(--line);padding:25px 28px 40px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px;font-size:12px;color:var(--muted)}.status{min-height:24px;font-size:14px;margin-top:18px}.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}@media(max-width:900px){.hero{gap:20px}.hero-art{min-height:310px}.game-grid{gap:13px}.game-card{padding:20px}.game-card h3{font-size:20px}.game-card .illustration{height:135px}.level-grid{gap:12px}}@media(max-width:650px){.top-inner{padding:12px 18px}.brand img{width:52px;height:52px}.brand span{font-size:16px}.brand b{font-size:11px}.tools{gap:10px;font-size:12px}.language{padding:7px 10px}#nav{padding:0 14px 12px}#nav a{padding:8px 12px;font-size:12px}main{padding:23px 18px 40px}.hero{grid-template-columns:1fr;padding:15px 0 35px;gap:28px}.hero-art{min-height:260px;max-width:420px;width:100%;margin:auto;order:2}.art-tiles{grid-template-columns:repeat(2,83px);gap:13px}.art-tile{height:83px;font-size:52px}.art-tile img{width:67px;height:67px}.hero-copy>p{font-size:16px}.hero h1{font-size:42px}.game-grid{grid-template-columns:1fr}.game-card{padding:22px}.game-card p{min-height:0}.game-card .illustration{height:155px}.game-card h3{font-size:25px}.game-card .btn{margin-top:15px}.section-head{display:block}.cta-box{flex-direction:column;align-items:start;padding:25px}.level-grid{grid-template-columns:1fr}.level{min-height:0;padding:22px}.level strong{font-size:22px}.panel{padding:22px 16px}.choices{gap:10px;grid-template-columns:repeat(3,1fr)}.choice{min-height:90px;padding:12px 7px;font-size:48px}.choice img{height:85px}.game-panel h1{font-size:23px}.game-panel .question{font-size:44px}.memory-grid{gap:8px}.memory-card{min-height:77px;font-size:38px;border-radius:12px}.stats{gap:8px}.stat{padding:20px 8px}.stat b{font-size:28px}.stat span{font-size:11px}.badge-grid{grid-template-columns:1fr}.progress-item{align-items:start;padding:17px}.progress-item .gold-stars{font-size:14px}.setting{align-items:start}.page-heading{margin:15px 0 25px}.prose p{font-size:16px}.btn{padding:11px 18px;font-size:14px}footer{padding:23px 18px;font-size:11px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
[hidden]{display:none!important}
main:focus{outline:none}
#nav a,.filters button{min-height:44px;display:inline-flex;align-items:center;justify-content:center}

.builder-picture{width:140px;height:140px;object-fit:contain}.built-word{font-size:3rem;min-height:80px;padding:12px;border:2px dashed #a9bfb4;border-radius:16px;margin:20px 0}.letter-pool{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:20px 0}.token{min-width:64px;min-height:64px;font-size:2rem}.token:disabled{opacity:.35}

.missing-word{display:flex;justify-content:center;gap:12px;margin:24px 0;font-size:2.5rem;flex-wrap:wrap}.missing-word span{min-width:48px;padding:6px;border-bottom:2px solid #a9bfb4}.missing-word .gap{background:#fff1ce;border:2px dashed #a97715;border-radius:12px}

.reading-choices .choice{font-size:clamp(1.5rem,5vw,2.1rem);padding:18px 8px;min-width:0;overflow-wrap:anywhere}

.word-memory .memory-card{font-size:clamp(1rem,3.7vw,1.7rem);padding:8px;overflow-wrap:anywhere}.word-memory .memory-card img{width:100%;height:100%;max-height:90px;object-fit:contain}.word-memory .memory-card span{display:block}

.hero-mascot{height:300px;max-width:70%;object-fit:contain;position:relative;z-index:2}.hero-art .art-tiles{display:none}.mascot-feedback{display:flex;align-items:center;justify-content:center;gap:15px;padding:12px;margin:16px auto;background:#e4f2e9;border-radius:20px;max-width:650px;color:#164633}.mascot-feedback img{height:140px;width:110px;object-fit:contain}.mascot-feedback strong{font-size:1.3rem}.mascot-feedback.happy img{animation:wz-bounce .65s ease}.mascot-feedback.retry{background:#fff1d7}.mascot-feedback.retry img{animation:wz-wiggle .5s ease}.result-mascot{height:180px;object-fit:contain}#toggle-sound{border:1px solid #a6c6b6;background:#f5fbf7;color:#164633;border-radius:999px;padding:10px 15px;min-height:44px;white-space:nowrap;font:inherit;cursor:pointer}@keyframes wz-bounce{50%{transform:translateY(-10px)}}@keyframes wz-wiggle{25%{transform:rotate(-5deg)}75%{transform:rotate(5deg)}}@media(prefers-reduced-motion:reduce){.mascot-feedback img{animation:none!important}}

.game-panel{scroll-margin-top:16px}.mascot-feedback{position:sticky;top:8px;z-index:8;margin:0 auto 16px;padding:8px 16px;box-shadow:0 8px 24px #163e3614;min-height:86px}.mascot-feedback img{height:90px;width:65px}.hero-mascot,.result-mascot{animation:wz-float 3.5s ease-in-out infinite;transform-origin:50% 90%}.mascot-feedback.happy img{animation:wz-bounce .7s ease 3}.mascot-feedback.retry img{animation:wz-wiggle .65s ease 3}.tools>a:first-child{padding:10px 16px;border:1px solid #c69f55;border-radius:999px;background:#fff8e7;color:#163e36;font-weight:700}.game-panel h1{font-size:clamp(24px,4vw,38px)}.game-panel .feedback{padding:12px 16px}.game-panel .feedback p{margin-bottom:6px}.game-panel .builder-picture{width:125px;height:125px}.game-panel .built-word{margin:12px 0;min-height:64px;padding:8px}.game-panel .letter-pool{margin:12px 0}.game-panel>.small-note{font-size:12px;margin:8px 0}@keyframes wz-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-9px) rotate(1deg)}}@media(max-width:650px){.game-panel{padding:18px 14px}.mascot-feedback{top:4px}.mascot-feedback strong{font-size:1.1rem}.top-inner{padding:12px 16px;flex-wrap:wrap}.tools{flex-wrap:wrap}.game-panel .choices .choice img{height:80px}}@media(prefers-reduced-motion:reduce){.hero-mascot,.result-mascot{animation:none!important}}

.tajweed-section{margin-top:48px;padding-top:28px;border-top:1px solid #d9c79f;scroll-margin-top:20px}.tajweed-art{font-size:58px;color:#164633;background:linear-gradient(135deg,#e8f3ec,#fff4dc)}.tajweed-note{margin-top:20px;padding:20px;border:1px solid #d9c79f;border-radius:18px;background:#fff8e7}.tajweed-note p{margin-top:0}.tajweed-section .game-card .btn{margin-top:auto}.tajweed-section .game-card{display:flex;flex-direction:column}
.tajweed-panel{text-align:center}.tajweed-panel .feedback{text-align:start}.tajweed-question{font-size:clamp(20px,3vw,28px);line-height:1.7}.tajweed-example{font-family:Arial,sans-serif;font-size:clamp(26px,5vw,40px);line-height:1.8;padding:20px;margin:12px 0;background:#fff8e7;border:1px solid #d9c79f;border-radius:18px;overflow-wrap:anywhere}.rule-choices .choice{font-size:18px;line-height:1.6;min-height:74px;padding:16px}.tajweed-match-board{display:grid;grid-template-columns:1fr 1fr;gap:18px;direction:rtl;margin:20px 0}.match-column{display:flex;flex-direction:column;gap:12px}.match-column .choice{margin:0;min-height:86px;padding:12px;width:100%;font-size:20px;line-height:1.6}.match-column .tajweed-example{font-size:28px}.match-column .selected{outline:3px solid #bb8b34;outline-offset:2px;background:#fff0ca}.match-column .choice:disabled{opacity:.65;background:#e2f3e7;color:#164633}.wheel-wrap{position:relative;width:210px;margin:18px auto 24px}.wheel-pointer{position:absolute;top:-16px;inset-inline-start:calc(50% - 10px);z-index:1;color:#163e36;font-size:25px}.tajweed-wheel{height:210px;border-radius:50%;border:8px solid #c69f55;background:conic-gradient(#163e36 0deg 45deg,#eed39c 45deg 90deg,#41785d 90deg 135deg,#f7e8c8 135deg 180deg,#163e36 180deg 225deg,#eed39c 225deg 270deg,#41785d 270deg 315deg,#f7e8c8 315deg 360deg);box-shadow:0 10px 22px #163e3620;display:flex;align-items:center;justify-content:center}.tajweed-wheel span{display:grid;place-items:center;width:76px;height:76px;background:#fff8e7;border:3px solid #c69f55;border-radius:50%;font-size:36px;color:#163e36}.tajweed-wheel.spun{animation:wz-wheel-spin 1s ease-out both}@keyframes wz-wheel-spin{from{transform:rotate(0deg)}to{transform:rotate(var(--wheel-turn))}}@media(max-width:650px){.tajweed-match-board{gap:10px}.match-column .choice{font-size:15px;min-height:98px;padding:10px 6px}.match-column .tajweed-example{font-size:23px}.rule-choices{grid-template-columns:1fr}.wheel-wrap{width:168px}.tajweed-wheel{height:168px}.tajweed-section .section-head{align-items:start;gap:10px}}@media(prefers-reduced-motion:reduce){.tajweed-wheel.spun{animation:none;transform:rotate(var(--wheel-turn))}}

.game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.game-card{min-width:0;overflow-wrap:anywhere}.section-head>div{min-width:0}.section-head .pill{flex-shrink:0}@media(max-width:950px){.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.game-grid{grid-template-columns:minmax(0,1fr)}}
