@font-face{font-family:Nunito;src:url(nunito.woff2) format("woff2");font-style:normal;font-weight:200 1000;font-display:swap}
:root{--ink:#322342;--muted:#665d70;--line:#493452;--purple:#653aaa;--paper:#fffaf0;--lav:#e7dcfe;--mint:#caf0d9;--pink:#ffddd0;--sun:#ffcf57;font-family:Nunito,ui-rounded,system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;background-image:radial-gradient(#c9bda557 .9px,transparent 1px);background-size:17px 17px;min-height:100vh;display:flex;flex-direction:column}
button,a{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
button{cursor:pointer}a{text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #7140b4;outline-offset:4px}
.frame{width:min(1120px,calc(100% - 64px));margin-inline:auto}
header{background:#fffcf5;border-bottom:2px solid var(--line)}.top{min-height:75px;display:flex;align-items:center;gap:28px}.brand{font-size:1.55rem;letter-spacing:-1.3px;font-weight:1000;display:flex;align-items:center;gap:10px;white-space:nowrap}
nav{display:flex;gap:8px;margin:auto}nav a,.sound,.chip,.back,.textbtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:.94rem;font-weight:850}
nav a{padding:9px 14px;border-radius:12px}nav a.active{background:#ede5ff;color:#55348e}.sound{border:1.6px solid var(--line);background:white;border-radius:24px;padding:8px 15px;box-shadow:0 2px var(--line)}
svg.ico{width:1.2em;height:1.2em;vertical-align:-.18em;flex:none}i[data-icon]{display:contents}
main{padding:28px 0 42px;flex:1;outline:0}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.08;font-weight:1000;letter-spacing:-.04em}
.hero{isolation:isolate;position:relative;display:grid;grid-template-columns:1.03fr 1fr;align-items:center;min-height:275px;overflow:hidden;background:#e5d6fc;border:2px solid var(--line);border-radius:24px;box-shadow:0 4px var(--line)}
.hero-copy{padding:30px 8px 32px 40px;z-index:2}.hero h1{font-size:clamp(2.6rem,4.25vw,3.9rem);margin:12px 0 10px;line-height:.99;letter-spacing:-.055em}
.hero h1 em{font-style:normal;color:#6540a0}.hero p{max-width:385px;font-size:1.03rem;line-height:1.48;font-weight:650}.chip{font-size:.78rem;letter-spacing:.03em;background:#fff1b5;border:1.5px solid var(--line);border-radius:30px;padding:4px 11px;gap:6px}
.island{width:100%;height:100%;min-height:100%;position:absolute;right:0;top:0;width:48%;object-fit:cover;object-position:center 50%;mask-image:linear-gradient(to right,transparent,#000 12%)}.hero-sticker{position:absolute;left:48%;top:13%;font-size:2rem;color:#9771c4;transform:rotate(12deg)}
.layout{display:grid;grid-template-columns:254px minmax(0,1fr);gap:30px;margin-top:32px;align-items:start}
.filters{background:#fffdf8;border:1.8px solid var(--line);border-radius:20px;padding:21px 19px 23px;box-shadow:0 3px #ded2c1}
.filter-title{display:flex;align-items:center;gap:9px;font-size:1.16rem;letter-spacing:-.035em;font-weight:1000;margin-bottom:15px}.filter-title .ico{color:#7344ae}
fieldset{border:0;padding:0;margin:0;min-width:0}fieldset+fieldset{margin-top:18px;padding-top:15px;border-top:1px dashed #cbbccd}
legend{padding:0;font-size:.88rem;font-weight:850;margin-bottom:8px}fieldset+fieldset legend{float:left;width:100%}
.switch{display:flex;gap:6px;clear:both}.switch button{min-height:41px;border:1.4px solid #cbbecf;background:#fffefa;border-radius:10px;flex:1;font-size:.89rem;font-weight:850}.switch button[aria-pressed=true]{border-color:var(--line);background:var(--lav);box-shadow:0 2px var(--line)}.switch.sem button[aria-pressed=true]{background:#ffdf89}
.section-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.section-top h2{font-size:clamp(1.55rem,2.6vw,2rem)}.section-top small,.eyebrow{font-size:.83rem;font-weight:800;color:var(--muted)}
.subject-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.subject{position:relative;isolation:isolate;min-height:185px;padding:19px 17px 16px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;border:2px solid var(--line);border-radius:19px;background:var(--pink);box-shadow:0 4px var(--line);overflow:hidden;transition:transform .18s,box-shadow .18s}.subject.green{background:var(--mint)}.subject:hover,.chapter:hover,.bigbtn:hover{transform:translateY(-2px)}
.subject h3{font-size:clamp(1.35rem,2vw,1.75rem);max-width:68%;position:relative;z-index:1}.subject .eyebrow{color:#60444c;margin-top:6px}.subject img{position:absolute;z-index:-1;right:0;bottom:12px;width:43%;height:75%;object-fit:contain;transform:rotate(3deg)}.subject .cardbtn{font-weight:900;font-size:.82rem;border:1.5px solid var(--line);border-radius:20px;background:#fffaf2;padding:5px 11px}.subject.green .eyebrow{color:#375848}
footer{border-top:1px dashed #cbbdca;display:flex;align-items:center;justify-content:space-between;padding:16px 0 20px;color:#655c69}footer span{display:flex;align-items:center;gap:6px;font-size:.86rem;font-weight:950}footer img{width:24px}footer small{font-size:.82rem}
.back,.textbtn{background:none;border:0;padding:5px 0;color:#664190}.back{margin-bottom:14px}.back .ico{width:1em}.inner{max-width:790px;margin:0 auto}.sheet,.chapter{border:1.8px solid var(--line);border-radius:19px;background:#fffefa;box-shadow:0 3px var(--line)}
.sheet{padding:clamp(20px,4vw,38px)}.sheet h1,.view-title{font-size:clamp(2rem,4.2vw,3.1rem);margin:9px 0 12px}.context{font-weight:850;color:var(--purple);font-size:.91rem}.intro{font-size:1.08rem;line-height:1.55}.chapter-list{display:grid;gap:13px;margin-top:18px}.chapter{padding:18px 20px;display:flex;align-items:center;gap:16px;transition:transform .18s}.chapter-mark{background:#eee2fe;border-radius:13px;display:grid;place-items:center;width:48px;height:48px;flex:none}.chapter:nth-child(2n) .chapter-mark{background:#ffe2a3}.chapter h2{font-size:1.28rem;margin:4px 0}.chapter .tail{margin-left:auto}.meta{font-size:.85rem;color:var(--muted);font-weight:750}.summary{padding:17px 19px;margin:22px 0;border-radius:15px;background:#f0e9fd}.summary b{display:block;margin-bottom:4px}.summary p,.feedback p,.review p{line-height:1.55}.actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.bigbtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--sun);border:1.8px solid var(--line);border-radius:13px;box-shadow:0 3px var(--line);padding:11px 19px;font-size:1rem;font-weight:950;transition:transform .18s}.bigbtn.light{background:#fffaf2}
.quiz-head,.scoreline{display:flex;align-items:center;justify-content:space-between;gap:10px}.scoreline{font-weight:900;font-size:.9rem;margin-top:20px}.track{height:11px;border-radius:20px;background:#e8e3ec;margin:9px 0 22px;overflow:hidden}.track span{display:block;height:100%;background:#9575d7;border-radius:inherit;transition:width .25s}.sheet .question{font-size:clamp(1.4rem,3vw,2rem);line-height:1.28;letter-spacing:-.03em;margin:0 0 20px}.answers{display:grid;gap:10px}.answer{text-align:left;display:flex;gap:12px;align-items:center;border:1.6px solid #a492ad;background:white;border-radius:14px;padding:11px 13px;font-size:1.04rem;font-weight:750;line-height:1.36}.answer:not([disabled]):hover{background:#f3edff;border-color:var(--purple)}.letter{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#eee7f9;font-size:.91rem;font-weight:950;flex:none}.answer:disabled{opacity:1;cursor:default;color:var(--ink)}.answer.good{border-color:#39815e;background:#def5e6}.answer.miss{border-color:#a55b44;background:#fff0e9}.answer .ico:last-child{margin-left:auto}.feedback{margin-top:18px;background:#eaf6ee;border-radius:14px;padding:15px 18px}.feedback.try{background:#fff0d7}.feedback strong{font-size:1.08rem}.feedback+.actions{margin-top:18px}
.result{text-align:center;position:relative;overflow:hidden}.mascot{width:74px;animation:bob 2.5s ease-in-out infinite}.points{font-size:3.5rem;font-weight:1000;line-height:1.1;color:#6a40a0;margin:12px 0 2px}.stars{font-size:1.4rem;letter-spacing:.12em;color:#765210}.result .actions{justify-content:center;margin-top:20px}.review{margin:19px 0}.review summary{font-weight:900;cursor:pointer}.review ol{padding-left:22px}.review li{padding:8px 0}.review small{font-size:.87rem;color:var(--muted)}.confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}.confetti i{position:absolute;top:-20px;left:var(--x);width:9px;height:14px;background:var(--c);animation:fall 2.6s var(--d) both;opacity:0}.confetti i:nth-child(even){border-radius:50%}
.empty{margin:20px 0 0;padding:20px 0}.empty p{margin-bottom:15px}.collection{display:grid;gap:12px;margin-top:18px}.record{padding:16px;background:#f2eafa;border-radius:13px;display:flex;justify-content:space-between;align-items:center;gap:10px}.record span{white-space:nowrap;font-weight:900}.skip{position:absolute;left:-9999px;top:0;z-index:10;background:white;padding:10px}.skip:focus{left:0}
@keyframes bob{50%{transform:translateY(-5px) rotate(4deg)}}@keyframes fall{0%{opacity:1;transform:translateY(-12px) rotate(0)}90%{opacity:1}100%{opacity:0;transform:translate(25px,450px) rotate(320deg)}}
@media(min-width:1200px){main{padding-top:34px}.hero{min-height:292px}.subject{min-height:196px}.layout{gap:32px}}
@media(max-width:850px){.frame{width:calc(100% - 36px)}.top{gap:12px}.brand{font-size:1.32rem}.brand img{width:35px}nav a{padding:8px}.layout{grid-template-columns:1fr;gap:20px;margin-top:23px}.filters{display:flex;align-items:center;gap:20px;padding:13px 17px}.filter-title{margin:0}.filters fieldset{margin:0;border:0;padding:0;flex:1}.filters legend{float:none;width:auto;margin-bottom:4px}.hero-copy{padding-left:27px}.subject{min-height:165px}}
@media(max-width:620px){.frame{width:calc(100% - 28px)}.top{flex-wrap:wrap;gap:0;justify-content:space-between;padding-top:10px}.brand{font-size:1.36rem}.brand img{width:35px;height:35px}.sound{font-size:.8rem;padding:7px 11px}nav{order:3;width:100%;justify-content:center;gap:12px;margin:9px 0 8px}nav a{font-size:.85rem;padding:6px 12px}.hero{min-height:194px;border-radius:18px;grid-template-columns:1.08fr 1fr}.hero-copy{padding:19px 0 20px 16px}.hero h1{font-size:clamp(1.8rem,6.8vw,2.6rem);margin:8px 0}.hero p{font-size:.86rem;line-height:1.35}.hero .chip{font-size:.68rem;padding:2px 8px}.hero-sticker{display:none}.island{width:45%;object-position:50% 50%}.filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-radius:15px}.filter-title{grid-column:1/-1;font-size:1rem}.switch button{font-size:.78rem}.section-top{align-items:flex-start;flex-wrap:wrap;margin-bottom:10px}.section-top small{font-size:.78rem}.subject-grid{gap:12px}.subject{min-height:188px;padding:13px 12px;border-radius:16px}.subject h3{font-size:1.19rem;max-width:100%;line-height:1.1}.subject img{height:47%;width:61%;right:0;bottom:20px}.subject .eyebrow{font-size:.76rem}.subject .cardbtn{font-size:.74rem;padding:4px 9px}.chapter{padding:13px;gap:10px}.chapter h2{font-size:1.11rem}.chapter-mark{width:35px;height:40px}.sheet{padding:20px 16px}main{padding:18px 0 32px}.record{align-items:flex-start}.quiz-head{align-items:flex-start}.quiz-head .chip{white-space:nowrap}footer{gap:8px}.record span{font-size:.87rem}}
@media(max-width:360px){.filters{grid-template-columns:1fr}.filter-title{grid-column:auto}.subject-grid{grid-template-columns:1fr}.subject{min-height:140px}.subject img{width:35%;height:82%;bottom:4px}.subject h3{max-width:68%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important;scroll-behavior:auto!important}.confetti{display:none}}


.skill-list,.practice{border:1px solid #cbbdce;border-radius:14px;padding:13px 17px}
.skill-list summary,.practice summary,.listening summary{cursor:pointer;font-weight:850}
.skill-list ul{padding-left:20px;line-height:1.6;margin:10px 0 2px}
.choose-title{font-size:1.4rem;margin:22px 0 12px}
.level-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.level-option{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;line-height:1.33;padding:12px;border:1.6px solid #b8abbc;border-radius:14px;background:#fff}
.level-option b{font-size:1.03rem}.level-option span,.level-option small{font-size:.87rem}
.level-option small{font-weight:850}.level-option[aria-pressed=true]{background:#eadfff;border:2px solid #583878;box-shadow:0 2px #583878}
.round-info{margin:17px 0 14px;line-height:1.5}.practice{margin-top:24px}.practice .meta{margin:10px 0}
.practice h3{font-size:1.1rem;margin:16px 0 7px}.practice p,.practice label{line-height:1.5}
.practice textarea{display:block;width:100%;resize:vertical;border:1.5px solid #9986a0;border-radius:10px;padding:10px;font:inherit;margin:8px 0 3px}
.quiz-badges,.submit-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.timer{background:#e0f3ed;color:#254d44;border:1.5px solid #507668;border-radius:20px;font-size:.86rem;font-weight:850;padding:4px 10px;white-space:nowrap}
.timer b{font-variant-numeric:tabular-nums}.timer.urgent{color:#6c3026;background:#ffe3d2;border-color:#a65838}
.time-note:not(:empty){margin:8px 0;color:#753b2e;font-size:.88rem;font-weight:850}
.skill-name{font-size:.88rem;color:var(--purple);font-weight:850;margin:0 0 7px}
.answer-rule{font-weight:800;margin:8px 0 10px;color:var(--muted);font-size:.94rem}.answer.picked{background:#eee6ff;border-color:#6a4698}.answer.picked .letter{background:#654490;color:#fff}
.submit-row{margin-top:15px}.submit-row span{color:var(--muted);font-size:.87rem}.bigbtn:disabled{box-shadow:none;background:#eee9e1;color:#685e6b;cursor:default;transform:none}
.visual-data,.listening{padding:12px 15px;background:#f2f0fa;border-radius:12px;margin:10px 0 16px}.visual-data table{border-collapse:collapse;width:100%;font-size:.95rem}.visual-data caption{text-align:left;font-weight:950;padding-bottom:5px}
.visual-data td,.visual-data th{padding:5px 6px;text-align:left;border-bottom:1px solid #c9bbcf}.bars{color:#6f49a3;letter-spacing:.10em}.listening audio{display:block;width:100%;max-width:450px;margin:7px 0}.listening p{margin-top:5px}
.result-star{font-weight:950;color:#765210;font-size:1.2rem;margin:9px 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:620px){.level-grid{grid-template-columns:1fr}.level-option{display:grid;grid-template-columns:1fr auto;gap:4px 8px}.level-option span{grid-column:1/-1;grid-row:2}.level-option small{align-self:center}.quiz-head{flex-direction:column;gap:8px}.visual-data{padding:10px 6px}.round-info{font-size:.95rem}.quiz-badges{justify-content:space-between;width:100%}}

.catalog-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:28px;margin:26px 0}
.study-controls{border:1.7px solid var(--line);border-radius:18px;background:#fffdf8;padding:18px;height:max-content;display:grid;gap:15px}
.study-controls h2,.profile-box h2,.profile-list h2{font-size:1.25rem}
.pick-grade,.library-controls label,.player-form label{display:grid;gap:5px;font-size:.91rem;font-weight:850}
select,.search-box,.player-form input{font:inherit;min-height:42px;color:var(--ink);background:#fff;border:1.4px solid #ad9eb5;border-radius:10px;padding:8px 11px;min-width:0;max-width:100%}
select{width:100%}.search-box{width:100%}select:focus-visible,input:focus-visible{outline:3px solid #7c53a4;outline-offset:2px}
.study-link,.source-links a,.player-note a,.identity-summary a,.related-books a{color:#5e3786;font-weight:850;text-decoration:underline;text-underline-offset:3px}
.study-link{display:flex;align-items:center;gap:7px;font-size:.93rem}.identity-summary{border-top:1px dashed #c9bbcc;padding-top:12px;display:grid;gap:2px}
.filter-chips,.profile-list{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:12px 0}
.filter-chips button,.profile-list button{border:1.2px solid #b8a8be;border-radius:18px;padding:6px 11px;background:#fffdf8;font-size:.85rem;font-weight:850}
.filter-chips button[aria-pressed=true],.profile-list button[aria-pressed=true]{background:#e9dcff;color:#482773;border-color:#6b438b}
.found-count{margin:12px 0 8px}.course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.course,.book-row{display:flex;align-items:center;gap:12px;border:1.5px solid var(--line);border-radius:13px;padding:11px 13px;background:#fffcf5;line-height:1.25}
.course:hover,.book-row:hover{background:#f2eafa}.course b,.book-row b{font-size:1.04rem}.course small,.book-row small{display:block;margin-top:4px;color:var(--muted);font-weight:700}
.course-icon{width:46px;height:46px;flex:none;display:grid;place-items:center;background:#ffdfaf;border-radius:12px;font-size:1.45rem;font-weight:950}.course:nth-child(3n + 1) .course-icon{background:#d8f0df}.course:nth-child(3n + 2) .course-icon{background:#e7dcf9}.course-icon img{width:44px;height:42px;object-fit:contain}
.book-list{display:grid;gap:7px}.book-row{border-color:#c9bbce;overflow-wrap:anywhere}.library-controls{display:grid;grid-template-columns:1fr 2fr;gap:12px;margin:18px 0}
.profile-box{border-radius:13px;background:#eee9fb;padding:16px;margin:17px 0;overflow-wrap:anywhere}.profile-box p,.player-note,.source-links{margin:8px 0;line-height:1.5}.profile-box h3{margin:14px 0 5px}.profile-box .actions{margin-top:13px}.profile-list h2{width:100%;margin-bottom:5px}
.player-form{margin:18px 0}.player-form>div{display:flex;flex-wrap:wrap;gap:10px}.player-form label{margin-bottom:5px}.player-form input{flex:1}.source-links,.player-note{font-size:.9rem}.related-books,.regional-actions{margin-top:16px}
@media(max-width:800px){.catalog-layout{grid-template-columns:1fr;gap:17px}.study-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}.study-controls h2{width:100%}.study-controls label,.study-controls fieldset{flex:1;min-width:134px}.identity-summary{border:0;padding:0;min-width:130px}.top{gap:6px}.top nav{gap:2px}.top nav a{padding:6px 8px}}
@media(max-width:620px){.course-grid{grid-template-columns:1fr}.library-controls{grid-template-columns:1fr}.study-controls{padding:13px}.study-controls .study-link,.study-controls .identity-summary{font-size:.83rem}.top nav{width:100%;justify-content:space-between}.top nav a{font-size:.78rem;gap:4px;padding:6px}.course{min-height:58px}.library-controls select{max-width:100%}.player-form .bigbtn{font-size:.9rem}}

.reading-notes{margin-bottom:9px}.reading-notes article{margin:14px 0}.reading-notes h3{font-size:1.08rem}.reading-notes a{font-weight:750;color:var(--purple);text-decoration:underline}.summary p{white-space:pre-line}
[lang=ar]{font-family:"Noto Naskh Arabic","Traditional Arabic","Geeza Pro","Segoe UI",Tahoma,serif;font-size:1.13em;line-height:1.85;letter-spacing:normal;font-weight:500}
.answer-text{min-width:0;overflow-wrap:anywhere;text-align:start}
.islam-course{margin:1.35rem 0}.islam-course h2{font-size:1.2rem;margin-bottom:.5rem}.islam-course .book-row{display:flex;justify-content:space-between;align-items:center;margin:.4rem 0;gap:.6rem}
.sheet h1.question{font-size:clamp(1.34rem,2.5vw,1.95rem);line-height:1.45;overflow-wrap:anywhere}
.problem-context{display:block;white-space:pre-line;font-size:1rem;line-height:1.6;font-weight:650;letter-spacing:normal;margin-bottom:1rem}
.visual-data{max-width:100%;overflow-x:auto}.visual-data th,.visual-data td{overflow-wrap:anywhere;vertical-align:top}
