.quran-contents,.progress-journal,.picture-match,.prophet-memory,.learning-quiz{max-width:1120px;margin:30px auto;padding:20px}
.chapter-grid,.activity-grid,.quiz-shelf,.progress-shelves{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:24px}
.chapter-grid>a,.chapter-grid>article,.activity-grid>a,.quiz-shelf>a,.quiz-shelf>article,.progress-shelf{background:#f8dfa0;border:2px solid #668f89;border-radius:26px;padding:20px;color:#214c60;text-decoration:none;box-shadow:0 6px 0 #6eabb343}
.chapter-grid>:nth-child(3n+2),.activity-grid>:nth-child(3n+2),.progress-shelf:nth-child(3n+2){background:#c0dec1}
.chapter-grid>:nth-child(3n),.activity-grid>:nth-child(3n),.progress-shelf:nth-child(3n){background:#d0c7e9}
.chapter-grid h2{font-size:1.4rem}.chapter-art{height:180px;overflow:hidden;border-radius:18px;background:#b9dce4}.chapter-art svg{width:100%;height:100%}
.chapter-art *{animation:none!important}.chapter-grid a:focus-visible,.activity-grid a:focus-visible{outline:4px solid #225d87;outline-offset:4px}
.quran-book-teaser{display:grid;grid-template-columns:1fr 1.2fr;align-items:center;gap:24px;background:#badbc0;padding:30px;border:2px solid #6e9187;border-radius:36px;margin:40px 0}
.quran-book-teaser>div>svg{width:100%;max-height:310px}.quran-home-activities{margin:50px 0}.quran-home-activities h2{text-align:center;margin-bottom:28px}
.quran-chapter{max-width:960px}.quran-chapter header h1{max-width:800px;margin-left:auto;margin-right:auto}
.chapter-tabs{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:24px 0}
.chapter-tabs a,.chapter-tabs button,.game-links a{background:#c2ded7;border:1px solid #789d91;border-radius:18px;padding:12px 16px;text-decoration:none;color:#214c60;font:inherit}
.quran-chapter .quran-spread{padding:30px 12px;min-height:280px;border-bottom:1px dashed #afac83;scroll-margin-top:24px}
.quran-chapter .quran-spread .prophet-margin-art{width:clamp(180px,37vw,350px);margin:8px 0 12px 24px}
.quran-chapter .quran-spread:nth-child(even) .prophet-margin-art{margin:8px 24px 12px 0}
.quran-spread p{font-size:1.2rem;line-height:1.85}.quran-chapter footer{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;padding:30px 0}.quran-chapter footer p{flex-basis:100%}
.prophet-story [data-living-passage] svg *{animation-play-state:paused!important}
.progress-shelf progress{display:block;width:100%;height:20px;accent-color:#307764;margin:20px 0}
.progress-shelf details{margin:16px 0}.progress-shelf ul{padding-left:22px;max-height:220px;overflow:auto}
.progress-journal .juz-progress{margin-bottom:30px}.progress-shelves{margin:24px 0}
.completed-ribbon,.book-read{display:inline-flex;background:#287554!important;color:#fff!important;padding:9px 14px!important;border-radius:15px;font-weight:800;gap:6px}
.surah-book:has(.book-read .icon-check),.surah-book:has(.illustrated-check){outline:3px solid #4a9874;outline-offset:3px}
.surah-book:has(.illustrated-check) .book-cover:after{content:"★ Completed!";position:absolute;top:10px;right:8px;background:#ffe291;color:#285d4e;border:2px solid #478363;border-radius:14px;padding:7px 10px;font-weight:800;font-size:14px}
.book-cover{position:relative}.learning-quiz{background:#f7dfaa;border:2px solid #789d91;border-radius:30px;max-width:760px;text-align:center;padding:30px}
.quiz-answers{display:grid;gap:16px}.quiz-answers button{white-space:normal;text-align:left;line-height:1.6;min-height:64px}.learning-quiz [hidden]{display:none}
.quiz-feedback{min-height:3em;font-weight:700}.quiz-flower svg{width:130px;height:140px}.quiz-shelf img{width:100%;height:120px;object-fit:cover;border-radius:14px}.quiz-shelf strong,.quiz-shelf span{display:block;margin-top:8px}
.game-links{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.learning-quiz>a{margin:6px}
.matching-board{display:grid;grid-template-columns:1fr 1fr;gap:35px;margin:20px 0}
.match-pictures,.match-words{display:grid;gap:14px}.match-picture,[data-drop-word]{position:relative;background:#ffe2a6;border:2px solid #6b9592;border-radius:22px;min-height:150px;padding:12px;color:#224d62}
.match-picture{touch-action:none;cursor:grab;display:flex;align-items:center;justify-content:center;gap:8px}.match-picture img{width:65%;max-height:140px;object-fit:contain;pointer-events:none}
.match-picture[aria-pressed=true]{outline:4px solid #235b82}.match-picture:disabled{opacity:.65}
[data-drop-word]{border:3px dashed #69958d;display:grid;place-content:center;gap:6px}[data-drop-word] b{font-family:Amiri,serif;font-size:2.6rem;font-weight:400}[data-drop-word] small{font-size:1rem}[data-drop-word]:disabled{background:#bfdfb7;opacity:1}
.memory-board{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.memory-board button{border:2px solid #517f91;background:#337298;color:#ffe19c;border-radius:18px;min-height:145px;display:grid;place-items:center;overflow:hidden;padding:8px}
.memory-board button.turned{background:#ffe3aa;color:#234e60}.memory-board button:disabled{background:#c0deb6;opacity:1}
.memory-board svg{width:100%;height:110px}.memory-board strong{font-size:1rem}.card-sprout{font-size:3rem}.memory-levels{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.memory-levels button{padding:12px 20px;border-radius:14px;border:2px solid #668e8e;background:#ffe2a6;font:inherit}.memory-levels [aria-pressed=true]{background:#285c81;color:#fff}
#garden-drawings{margin-top:60px;padding-top:35px;border-top:2px dashed #719d99}
@media(max-width:600px){.quran-contents,.picture-match,.prophet-memory,.progress-journal{padding:10px;margin:15px auto}.quran-book-teaser{grid-template-columns:1fr;padding:20px}.quran-book-teaser>div:first-child{max-height:190px;overflow:hidden}.chapter-grid,.activity-grid{grid-template-columns:1fr 1fr;gap:12px}.chapter-grid>a,.chapter-grid>article,.activity-grid>a{padding:12px}.chapter-art{height:125px}.chapter-grid h2,.activity-grid h3{font-size:1.08rem}.quran-chapter .quran-spread .prophet-margin-art,.quran-chapter .quran-spread:nth-child(even) .prophet-margin-art{width:48%;margin:6px 0 10px 14px;float:right}.quran-spread p{font-size:1.06rem}.memory-board{gap:8px}.memory-board button{min-height:110px;padding:5px}.memory-board svg{height:65px}.memory-board strong{font-size:.82rem}.matching-board{gap:12px}.match-picture{flex-direction:column;min-height:145px}.match-picture img{width:100%;height:90px}[data-drop-word]{min-height:145px;padding:8px}[data-drop-word] b{font-size:2.1rem}.learning-quiz{padding:20px 14px}}
@media(prefers-reduced-motion:reduce){.prophet-story svg *{animation:none!important;transition:none!important}}
