:root{--arabic-size:34px;color-scheme:light;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#163e37;background:#e9f2ec}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-underline-offset:4px}button,select{font:inherit;min-height:48px;border:1px solid #829e93;border-radius:14px;padding:10px 18px;background:#fff;color:#143c35;cursor:pointer}button:hover{background:#e3f2e8}button:disabled{opacity:.5;cursor:default}:focus-visible{outline:3px solid #a06400;outline-offset:4px}header,main,footer{max-width:940px;margin:auto;padding:24px}header{padding-top:32px}.links,.controls,.pages{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.hero{position:relative;isolation:isolate;overflow:hidden;padding:44px 28px 190px;border-radius:28px;margin-top:24px;background:#133b3e;color:#ffe5a0;border:1px solid #c7a862}.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(#031d32f2,#062b3daa,#052e3720);z-index:-1}h1{font-size:clamp(30px,5vw,48px);line-height:1.4;margin:0 0 12px}h2{font-size:23px;line-height:1.6}h3{font-size:23px;margin:26px 0 12px}p{line-height:1.9;font-size:18px}.hero p{max-width:660px;font-size:21px}main{padding-top:0}.controls{background:#fff9e9;border:1px solid #d5bc81;border-radius:22px;padding:20px;margin:20px 0}progress{width:100%;height:15px;accent-color:#227154}.pages{background:#164d43;color:#fff4cf;border-radius:18px;padding:14px;margin:24px 0;scroll-margin-top:15px}.pages label{display:flex;gap:8px;align-items:center}.pages select{max-width:180px}.lesson{border:1px solid #c5ac6d;border-radius:26px;overflow:hidden;margin:32px 0 52px;box-shadow:0 14px 40px #143e3214;scroll-margin-top:20px;background:#fffcf4}.reading{position:relative;isolation:isolate;background:#0b2f2c;color:#ffe5a0;padding-top:140px}.scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.reading:before{content:"";position:absolute;inset:0;background:linear-gradient(#042a2930,#062c2bcf 140px,#062c2bf5 65%);z-index:-1}.reading-inner{padding:28px}.badge{display:inline-block;padding:7px 15px;border-radius:30px;border:1px solid #bba565;background:#082f2c;font-weight:700}.arabic{font-family:"Traditional Arabic","Noto Naskh Arabic",serif;font-size:var(--arabic-size);font-weight:700;line-height:2.1;color:#ffe5a0;text-align:center;text-shadow:0 2px 3px #000;margin:30px 0;overflow-wrap:anywhere}.translation{background:#082c2eef;border:1px solid #b9aa6d66;border-radius:18px;padding:18px;margin:14px 0;color:#fff0c6}.translation p{font-size:20px;margin:8px 0}.translation b{font-size:15px;color:#f4d17d}.source{margin-top:20px}.source a{color:#ffe7a5}.learning{padding:28px}.learning>details{border:1px solid #b6cbbc;border-radius:16px;background:#f2f8ef;padding:16px;margin:12px 0}summary{cursor:pointer;font-weight:750;font-size:19px;line-height:1.7}details[open]>summary{margin-bottom:12px}.word-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.word{background:#e6f1e6;border:1px solid #8bac97;border-radius:18px;padding:18px;text-align:center}.word:nth-child(3n+2){background:#e5f1f5}.word:nth-child(3n){background:#fff0d5}.word summary{display:grid;gap:6px}.word summary span{font-size:42px;color:#377658}.word strong{font-size:25px}.word small{font-size:14px;font-weight:500}.word p{font-size:17px}.meaning-path{display:flex;flex-direction:column;align-items:center;gap:8px}.meaning-path span:not([aria-hidden]){padding:15px;background:#fff;border:1px solid #b3cbb7;border-radius:16px;text-align:center}.quiz,.counter{border:1px solid #d7bd7d;border-radius:20px;padding:20px;margin:24px 0;background:#fff7df}.answers{display:grid;gap:10px}.answers button{text-align:start;line-height:1.7}.feedback:empty{display:none}.celebrate{display:block;padding:16px;background:#d8f0dd;color:#145331;font-size:21px;font-weight:800;border-radius:16px;animation:glow .6s ease}.retry{border-color:#9a6500;background:#fff0ce}.count-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:15px 0;border-bottom:1px solid #d7c891}.count-row span{width:100%}output{font-size:28px;font-weight:800;min-width:100px}.quiet{margin-top:15px}.complete{background:#1b6552;color:#fff5d8;width:100%;font-size:20px;font-weight:750}.complete:hover{background:#124c3d}.complete.finished{background:#e1efcf;color:#214f2f}.count-feedback{color:#195e37;font-weight:700}footer{font-size:15px;padding-bottom:50px}footer p{font-size:15px}#storage{font-size:15px}#progress{font-weight:750}#filter-wrap{width:100%}#filter-wrap label{display:flex;flex-wrap:wrap;gap:10px;align-items:center}@keyframes glow{50%{transform:scale(1.025)}}@media(max-width:600px){header,main,footer{padding:14px}.hero{padding:28px 20px 160px}.hero p{font-size:18px}.reading-inner,.learning{padding:20px 16px}.word-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pages{gap:8px;padding:12px}.pages button{padding:8px 12px}.pages label{font-size:14px}.pages select{max-width:140px;padding:8px}.arabic{font-size:var(--arabic-size);line-height:2}.translation p{font-size:18px}.quiz,.counter{padding:15px}.word{padding:12px}.lesson{border-radius:20px}.controls button{width:100%}}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;scroll-behavior:auto!important}}@media print{button,.pages,.controls,.links,.scene,.hero img{display:none!important}.reading,.reading-inner,.translation{background:white;color:black}.arabic{color:black;text-shadow:none}.lesson{break-inside:avoid;box-shadow:none}}

.photo-credit{font-size:12px;line-height:1.5;color:#f8e6b8}.photo-credit a{color:inherit}
