@font-face{font-family:Baloo;src:url('fonts/baloo2-latin.woff2') format('woff2');font-display:swap;font-weight:400 800}@font-face{font-family:Naskh;src:url('fonts/NotoNaskhArabic.ttf') format('truetype');font-display:swap;font-weight:400 700}
:root{--ink:#203d36;--green:#215e4d;--deep:#174637;--gold:#ad6e27;--paper:#faf8ef;--line:#dddcc9;--muted:#64716a;--cream:#f1ead8;--rose:#a94c36;font-family:Baloo,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.38}button:focus-visible,a:focus-visible,video:focus-visible{outline:3px solid #c47f22;outline-offset:4px}button{touch-action:manipulation}a{color:inherit}button{color:inherit}button svg{width:22px;height:22px}svg path{stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}.app-shell{max-width:1600px;padding:0 48px;margin:auto}.topbar{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:15px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:26px;font-weight:700;line-height:1}.brand svg{width:43px;height:43px;color:var(--green)}.brand-360{color:var(--gold)}.brand small{display:block;font-weight:400;font-size:13px;line-height:1.6;letter-spacing:.01em}.header-actions{display:flex;align-items:center;gap:18px}.wallet{display:flex;align-items:center;gap:9px;font-size:20px;background:#efeedb;border:1px solid #dad9b9;padding:7px 15px;border-radius:100px}.wallet>span{color:#a96b20}.wallet small{font-size:14px;font-weight:500}.icon-button{border:1px solid #cfceba;background:transparent;border-radius:100%;width:37px;height:37px;font-size:21px;line-height:1}.garden{display:grid;grid-template-columns:minmax(320px,.95fr) minmax(430px,1fr);gap:clamp(35px,5.8vw,90px);padding:34px 0 24px;align-items:start}.story-stage{position:relative;isolation:isolate;border-radius:200px 200px 25px 25px;overflow:hidden;aspect-ratio:2/3;max-height:790px;width:100%;background:#d7aa62;box-shadow:0 18px 50px -30px #60452755;border:1px solid #d8caa8}.art-layer{position:absolute;inset:0;transform-origin:50% 70%;animation:breathe 12s ease-in-out infinite}.art-layer img{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .2s}.stage-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(24,43,26,.75) 0,transparent 20%,transparent 65%,rgba(255,238,188,.08))}.stage-heading{position:absolute;z-index:2;text-align:center;top:10%;left:10%;right:10%;color:#3d3421}.stage-kicker{font-size:12px;font-weight:650;letter-spacing:.18em}.stage-heading p{font-size:clamp(22px,2.3vw,34px);font-weight:600;margin:13px 0 0}.stage-arabic{font:700 clamp(55px,6vw,84px)/1.5 Naskh,serif;color:#923f29;margin:-8px 0 -12px}.stage-heading>span:last-child{font-size:21px}.floating-leaf{position:absolute;color:#ffedab;font-size:26px;animation:float 6s ease-in-out infinite;opacity:.8}.leaf-one{left:9%;top:48%}.leaf-two{right:9%;top:41%;animation-delay:-3s}.stage-bottom{position:absolute;bottom:23px;left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;color:#fff4d6;gap:10px}.stage-label{font-size:15px;display:flex;align-items:center;gap:10px}.stage-audio{border:1px solid #fff7d666;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#fff4d61a;color:inherit;flex-shrink:0}.stage-audio svg{fill:none;stroke:currentColor;stroke-width:1.7}.sound-wave{height:16px;display:flex;align-items:center;gap:3px}.sound-wave i{width:2px;height:5px;background:currentColor;border-radius:3px}.sound-wave i:nth-child(2){height:12px}.sound-wave i:nth-child(3){height:9px}.sound-wave.playing i{animation:wave .7s ease-in-out infinite alternate}.sound-wave.playing i:nth-child(2n){animation-delay:-.3s}.lesson-panel{min-width:0;padding:11px 0}.lesson-meta{display:flex;align-items:center;gap:13px;font-size:14px;color:var(--muted)}.pill{font-size:12px;font-weight:700;letter-spacing:.12em;color:var(--green);background:#e5ebdc;padding:5px 10px;border-radius:5px;display:inline-block}h1{font-size:clamp(35px,3.4vw,51px);line-height:1.08;font-weight:600;letter-spacing:-.035em;margin:23px 0 13px}h1 em{font-style:normal;color:var(--gold)}.intro{font-size:17px;color:var(--muted);margin:0 0 24px;line-height:1.5}.tabs{display:flex;border-bottom:1px solid var(--line);gap:22px;margin-bottom:22px}.tabs button{background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;padding:10px 0 11px;color:#6d746a;font-size:15px;white-space:nowrap}.tabs button[aria-selected=true]{color:var(--green);border-bottom-color:var(--green);font-weight:650}.root-row{display:flex;align-items:center;gap:13px;font-size:14px;color:var(--muted);margin-bottom:19px}.root-letters{display:flex;gap:7px}.root-letters span{font:600 29px/1.2 Naskh,serif;width:35px;height:37px;display:grid;place-items:center;background:#efe4c8;border:1px solid #dfd0ab;border-radius:9px;color:#8c4d28}.text-button{background:none;border:0;padding:5px 0;color:var(--green);text-decoration:underline;text-underline-offset:4px;font-size:14px}.root-row>.text-button{margin-left:auto}.word-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:15px}.word-steps button{border:1px solid var(--line);background:#f8f5e9;border-radius:12px;font:600 24px/1.7 Naskh,serif;position:relative;padding:4px 0;min-width:0}.word-steps button[aria-current=true]{border-color:var(--green);background:#e9eee3;color:var(--deep);box-shadow:inset 0 -2px var(--green)}.word-steps button.visited:after{content:'';width:4px;height:4px;background:var(--green);border-radius:50%;position:absolute;bottom:4px;left:calc(50% - 2px)}.word-card{border:1px solid #ded9c4;border-radius:20px;background:linear-gradient(140deg,#fffdf7,#f2eddd);padding:20px 23px 23px;text-align:center;box-shadow:0 3px 0 #e7e2cf55;min-height:308px}.word-card-top{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:600;letter-spacing:.12em;color:#7b7d6b;min-height:23px}.seen-badge{color:var(--green);background:#e7eddf;padding:2px 9px;border-radius:99px;font-size:11px;letter-spacing:0}.word-arabic{font:650 69px/1.45 Naskh,serif;color:var(--deep);margin:-2px 0 -14px}.transliteration{color:var(--gold);font-size:17px}h2{font-size:27px;line-height:1.2;font-weight:600;margin:13px 0 9px}.word-card h2{font-size:27px;margin:6px 0 0}.word-card p{font-size:15px;line-height:1.4;color:var(--muted);margin:3px 0 20px;min-height:21px}.audio-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.primary,.secondary,.next-button{border-radius:10px;padding:10px 15px;font-size:15px;font-weight:600;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.primary{color:#fff9e9;background:var(--green);border:1px solid var(--green);box-shadow:0 3px 0 #113a2d}.primary:hover{background:#184a3c}.secondary{color:var(--green);background:#fffdf4;border:1px solid #c9ccb9}.secondary:hover{background:#ebefdf}.pace{border:1px solid #d5d2be;border-radius:10px;padding:8px 10px;background:transparent;font-size:14px}.pace[aria-pressed=true]{color:var(--green);background:#dfe9d9;border-color:#93a38a}.lesson-nav{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:18px 0 9px}.lesson-nav>span{font-size:13px;color:var(--muted)}.next-button{background:#e8eddc;border:1px solid #d8dfca;color:var(--green)}.next-button span{font-size:21px;font-weight:400}.gentle-note{font-size:13px;text-align:center;color:#707868;margin:15px 0}.panel-footer{border-top:1px solid var(--line);margin-top:22px;padding-top:15px;display:flex;align-items:center;justify-content:space-between;color:#798172;font-size:12px;gap:10px}.panel-footer .text-button{font-size:12px}.page-footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;padding:17px 0 21px;color:#858876;font-size:12px}.watch-header h2{margin:0;font-size:25px}.watch-header p{font-size:15px;color:var(--muted);margin:8px 0 16px}video{display:block;background:#ece2c6;border:1px solid #e0d3b4;width:100%;max-height:440px;border-radius:15px;object-fit:contain;aspect-ratio:9/16}.download-link{display:block;text-align:center;margin-top:15px;font-size:14px;text-underline-offset:4px}.quiz-intro,.quiz-result{text-align:center;padding:8px 8px 12px}.quiz-flower,.result-flower{display:block;font-size:70px;line-height:1.2;color:#bf8437;margin:5px 0 12px}.quiz-intro p,.quiz-result p{color:var(--muted);font-size:16px;line-height:1.5}.reward-note{padding:13px 18px;background:#f1ead2;border:1px solid #e1d3a9;border-radius:11px;font-size:15px;margin:25px 0 20px}.wide{width:100%}.quiz-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px;letter-spacing:.08em}.quiz-question{text-align:center;font-size:19px;margin:23px 0 0}.quiz-arabic{font:650 79px/1.65 Naskh,serif;text-align:center;color:var(--green);margin-bottom:15px}.quiz-options{display:grid;gap:12px}.quiz-options button{border:1px solid #d8d5bf;background:#fffdf5;border-radius:13px;min-height:58px;padding:13px 20px;text-align:left;font-size:18px;display:flex;justify-content:space-between;gap:10px}.quiz-options button:hover{border-color:#8c9c83;background:#f0f3e6}.quiz-options button.correct{background:#dfeddb;border-color:#70966b;opacity:1}.quiz-options button.wrong{background:#fbefe1;border-color:#cda16d;opacity:1}.quiz-feedback{min-height:24px;text-align:center;font-size:15px;color:var(--green);margin:16px 0}.quiz-result .pill{margin:0;font-size:10px}.quiz-result h2{font-size:45px;margin:15px 0 2px}.quiz-result>p{margin:6px 0}.reward-number{font-size:69px;color:#ad7924;line-height:1.2;font-weight:650;margin:15px 0 4px}.result-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:20px 0}.storage-note{font-size:13px;color:#965726}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);background:#203d36;color:white;border-radius:12px;padding:12px 22px;opacity:0;pointer-events:none;transition:.2s;max-width:90vw;z-index:50;font-size:15px;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #d5cfb6;border-radius:23px;background:#fcf9ed;color:var(--ink);padding:28px;max-width:620px;width:calc(100% - 28px);max-height:85dvh;overflow-y:auto}dialog::backdrop{background:#19352acc;backdrop-filter:blur(4px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:15px}dialog h2{font-size:31px;margin-top:22px}dialog p{font-size:16px;line-height:1.55}dialog [lang=ar]{font-family:Naskh;font-size:1.25em}.source-links{font-size:13px!important;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip{position:fixed;top:-100px;left:12px;background:var(--green);color:white;padding:12px 18px;z-index:99;border-radius:8px}.skip:focus{top:12px}.noscript{padding:20px;background:#fff3d9}.confetti{position:fixed;pointer-events:none;z-index:100;top:-15px;width:8px;height:12px;border-radius:2px;animation:fall 3s ease-in forwards}
@keyframes breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.025) translateY(-.4%)}}@keyframes float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-12px) rotate(16deg)}}@keyframes wave{to{height:16px}}@keyframes fall{to{transform:translateY(110vh) rotate(500deg);opacity:0}}
@media(min-width:1500px){.garden{grid-template-columns:minmax(320px,565px) minmax(430px,1fr);gap:90px}.lesson-panel{padding-top:24px}}@media(max-width:1100px){.app-shell{padding:0 27px}.garden{gap:32px;grid-template-columns:minmax(270px,.85fr) minmax(380px,1fr)}.tabs{gap:15px}.tabs button{font-size:14px}h1{font-size:39px}.word-card{padding:16px}.audio-actions{gap:6px}.primary,.secondary{font-size:14px;padding:10px 11px}.stage-kicker{font-size:10px}.stage-heading p{font-size:27px}.stage-arabic{font-size:65px}.stage-label{font-size:12px}.stage-bottom{left:17px;right:17px}}@media(max-width:800px){.app-shell{padding:0 22px}.topbar{height:85px}.garden{grid-template-columns:1fr;max-width:580px;margin:auto;padding-top:25px;gap:21px}.story-stage{aspect-ratio:4/3;max-height:390px;border-radius:130px 130px 20px 20px}.art-layer{inset:-5% -2% -80%}.stage-heading{top:9%;left:8%;right:8%;text-align:left;width:48%}.stage-kicker{font-size:9px;letter-spacing:.1em}.stage-heading p{font-size:24px;margin:10px 0 0}.stage-arabic{font-size:60px;line-height:1.3;margin:0 0 -3px;text-align:left;direction:rtl}.stage-heading>span:last-child{font-size:16px}.stage-shade{background:linear-gradient(0deg,#19352a80,transparent 30%),linear-gradient(90deg,#f6d99ba6,transparent 65%)}.stage-bottom{bottom:17px}.stage-heading{background:#ffe5acaa;border-radius:20px;padding:14px}.art-layer img{object-position:center 60%}.lesson-panel{padding:0}h1{font-size:42px;line-height:1.1;margin:20px 0 10px}.intro{margin-bottom:20px}.tabs{gap:0;justify-content:space-between}.tabs button{font-size:15px}.word-card{padding:19px 22px}.audio-actions{gap:9px}.primary,.secondary{font-size:15px}.root-row{margin-bottom:16px}.page-footer{margin-top:10px;flex-wrap:wrap}.lesson-meta{font-size:13px}.brand{font-size:24px}.brand small{font-size:11px}.wallet{padding:7px 11px;gap:7px}.wallet small{display:none}.header-actions{gap:10px}video{max-height:520px}}@media(max-width:380px){.app-shell{padding:0 14px}.brand{font-size:22px;gap:7px}.brand svg{width:33px}.brand small{font-size:10px}.topbar{height:76px}.wallet{padding:5px 9px;font-size:17px}.icon-button{width:33px;height:33px}.garden{padding-top:18px}.story-stage{border-radius:95px 95px 18px 18px;aspect-ratio:1.25}.stage-heading{top:7%;left:6%;width:53%;padding:10px}.stage-arabic{font-size:49px}.stage-heading p{font-size:22px}.stage-label{font-size:11px}.stage-audio{width:37px;height:37px}h1{font-size:35px}.tabs button{font-size:13px}.root-row{gap:8px}.root-letters{gap:5px}.root-letters span{width:29px}.word-card{padding:16px 12px}.audio-actions{gap:7px}.pace{padding:8px}.primary,.secondary{font-size:14px;padding:10px}.word-steps button{font-size:21px}.lesson-nav{gap:7px}.next-button{font-size:14px;padding:9px 11px}.page-footer{font-size:11px}}
.icon-button,.stage-audio{min-width:44px;min-height:44px}.word-card p{font-size:16px}.text-button{min-height:44px}.tabs button{min-height:44px}.word-steps button{min-height:46px}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.topic-choices{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.topic-choices button{border:1px solid #cfd3be;background:#fffdf4;min-height:44px;border-radius:100px;padding:8px 19px;font-size:15px}.topic-choices button[aria-pressed=true]{background:#215e4d;color:#fff9e9;border-color:#215e4d}.topic-title{font-size:23px;margin:0 0 6px}.topic-note{font-size:16px;line-height:1.4;color:var(--muted);margin:0 0 16px}.lesson-meta{flex-wrap:wrap}.story-stage{position:sticky;top:24px}@media(max-width:800px){.story-stage{position:relative;top:auto}.art-layer{inset:-18% -2% -68%}.stage-heading{background:#fff0cfde}.topic-choices button{flex:1;padding:8px 12px}}
@media(max-width:800px){.story-stage{aspect-ratio:4/5;max-height:600px}.art-layer{inset:0}.art-layer img{object-position:center 65%}.stage-heading{top:6%;left:10%;right:10%;width:80%;text-align:center;background:transparent;padding:0}.stage-heading p{margin-top:5px;font-size:24px}.stage-arabic{text-align:center;font-size:52px;line-height:1.3}.stage-heading>span:last-child{font-size:15px}.stage-shade{background:linear-gradient(0deg,#19352a99,transparent 22%)}}
@media(max-width:600px){.topic-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.topic-choices button{width:100%}}
.stage-heading{top:6%}.stage-heading p{margin-top:7px}.stage-arabic{font-size:clamp(48px,5vw,72px);line-height:1.2;margin:0 0 -3px}.stage-heading>span:last-child{font-size:18px}
@media(max-width:800px){.story-stage{aspect-ratio:2/3;max-height:none}.stage-heading{top:6%}.stage-heading p{font-size:24px}.stage-arabic{font-size:48px;line-height:1.2}.stage-heading>span:last-child{font-size:15px}}
