@font-face{font-family:QuranUnicode;src:url('./assets/fonts/unicode.ttf') format('truetype');font-display:block}
@font-face{font-family:SurahNames;src:url('./assets/fonts/surah.ttf') format('truetype');font-display:block}
.surah-calligraphy{font-family:SurahNames;direction:ltr;font-variant-ligatures:normal;font-feature-settings:'liga' 1;font-size:32px}
.stf__wrapper,.stf__block{height:100%!important;width:100%!important}
.quran-line,.quran-line.centered{column-gap:var(--word-gap,.15em)}
.opening-lines .quran-line{height:48px}
.opening-lines .surah-line{margin-bottom:18px}
.navigation-row{display:flex;width:100%;align-items:center;gap:14px;text-align:start;padding:13px 0;border-bottom:1px solid var(--border)}
.navigation-row>span:nth-child(2){flex:1}.navigation-row strong{display:block;font-size:16px;font-weight:500}.navigation-row small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.surah-number{width:33px;height:33px;border:1px solid var(--frame);border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0}
.surah-search,.page-form input{width:100%;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--ink);margin-bottom:15px}.page-form label{display:block;margin:15px 0;font-size:14px}.page-form .button{width:100%}
@media(max-width:600px){.brand>span:last-child{display:none}.brand-mark{font-size:31px}}
:root{color-scheme:light;--bg:#f1f1eb;--surface:#fafbf7;--page:#fffef7;--ink:#282f29;--muted:#778076;--border:#dddfd5;--accent:#355544;--accent-soft:#e5ece3;--frame:#909a7d;--quran-ink:#252d24;--selected:#e9dcb49c;--playing:#b6d2b18c;--shadow:0 20px 60px #26332715;--scrim:#17281d55;--error:#9d433d;--page-width:440px;--page-height:650px;font-family:"Segoe UI",Tahoma,Arial,sans-serif}
:root[data-theme=dark]{color-scheme:dark;--bg:#141b17;--surface:#1d2720;--page:#232d25;--ink:#eee9db;--muted:#a6b0a3;--border:#354236;--accent:#bed4a8;--accent-soft:#304434;--frame:#8b987a;--quran-ink:#efe9d5;--selected:#766446ad;--playing:#3f6246bf;--shadow:0 20px 60px #0005;--scrim:#050a0799;--error:#f1a198}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);height:100dvh;min-height:360px;overflow:hidden;transition:background .2s,color .2s}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}a{color:inherit}button{border:0;background:none;color:inherit}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}svg{width:22px;height:22px;flex-shrink:0}button svg{display:block}h2,h3,p{margin-top:0}.hidden{display:none!important}.muted{color:var(--muted);font-size:13px;line-height:1.8}.app-header{height:80px;padding:0 38px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;background:var(--surface);position:relative;z-index:20}.header-start,.header-end{display:flex;align-items:center;gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-family:QuranUnicode,"Traditional Arabic",serif;font-size:34px;line-height:1.1}.brand small{font-family:"Segoe UI",Arial,sans-serif;font-size:9px;letter-spacing:3px;font-weight:500;display:block;text-align:center;color:var(--muted);margin-top:4px}.brand-mark{font-family:serif;font-size:49px;color:var(--accent);line-height:1}.header-title{text-align:center;position:absolute;left:50%;transform:translateX(-50%);font-size:19px;font-weight:600}.header-title small{display:block;font-size:11px;font-weight:400;letter-spacing:.15px;color:var(--muted);margin-top:6px}.icon-button{display:inline-flex;width:40px;height:40px;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;transition:background .15s}.icon-button:hover{background:var(--accent-soft)}.reader{height:calc(100dvh - 80px);display:flex;flex-direction:column;padding:12px 0 0;position:relative}.reading-context{height:34px;display:flex;gap:12px;justify-content:center;align-items:center;color:var(--muted);font-size:12px;flex-shrink:0}.context-dot{opacity:.5}.book-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:6px 72px 12px;direction:ltr}.book{filter:drop-shadow(0 12px 20px #15231713);position:relative}.book::after{content:"";position:absolute;inset:0 49.7%;z-index:5;pointer-events:none;background:linear-gradient(90deg,transparent,#28382c20,transparent);width:.6%}.book.--portrait::after{display:none}.stf__wrapper{position:relative!important}.mushaf-page{background:var(--page);color:var(--quran-ink);overflow:hidden;box-shadow:inset -2px 0 0 #6d76531a;position:relative;direction:rtl}.mushaf-page:nth-child(2n){box-shadow:inset 2px 0 0 #6d76531a}.page-inner{width:440px;height:650px;position:absolute;top:0;left:0;transform-origin:top left;padding:29px 31px 23px;display:flex;flex-direction:column;user-select:none;-webkit-user-select:none}.page-frame{position:absolute;inset:16px;border:1px solid var(--frame);opacity:.75;pointer-events:none}.page-frame::before{content:"";position:absolute;inset:4px;border:1px solid var(--frame)}.page-frame::after{content:"";position:absolute;inset:8px;border:1px solid var(--frame);opacity:.4}.frame-corner{position:absolute;width:26px;height:26px;background:var(--page);color:var(--frame);z-index:1}.frame-corner.top-right{right:-10px;top:-10px}.frame-corner.top-left{left:-10px;top:-10px}.frame-corner.bottom-right{right:-10px;bottom:-10px}.frame-corner.bottom-left{left:-10px;bottom:-10px}.frame-corner svg{width:26px;height:26px;display:block}.page-heading{height:28px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--frame);padding:0 8px}.page-lines{height:540px;flex-shrink:0;position:relative;display:flex;flex-direction:column;justify-content:center;margin:0 3px}.quran-line{height:36px;display:flex;align-items:center;justify-content:space-between;direction:rtl;white-space:nowrap;width:100%;font-family:var(--quran-font);font-size:var(--quran-size,34px);font-weight:400;line-height:1.65;overflow:visible;flex-shrink:0;position:relative}.quran-line.centered{justify-content:center;gap:.14em}.quran-word{padding:0;margin:0;border:0;display:inline-block;border-radius:3px;background:transparent;color:inherit;font:inherit;line-height:inherit;position:relative;flex-shrink:0;white-space:pre;transition:background .12s}.quran-word.selected{background:var(--selected)}.quran-word.playing{background:var(--playing)}.quran-word:hover{background:var(--accent-soft)}.quran-word.selected.playing{box-shadow:inset 0 -2px var(--accent)}.surah-line{font-family:QuranUnicode,"Traditional Arabic",serif;font-size:24px;justify-content:center;height:36px}.surah-heading{border:1px solid var(--frame);border-radius:12px;padding:0 22px;line-height:1.4;min-width:190px;display:flex;justify-content:center;align-items:center;gap:15px;position:relative;color:var(--quran-ink)}.surah-heading::before,.surah-heading::after{content:"۞";font-family:serif;font-size:16px;color:var(--frame)}.basmala-line{font-family:QuranUnicode,"Traditional Arabic",serif;font-size:25px;justify-content:center}.page-number{height:28px;display:flex;align-items:center;justify-content:center;color:var(--frame);font-size:12px}.page-number::before,.page-number::after{content:"";width:30px;height:1px;background:var(--frame);margin:0 12px;opacity:.4}.page-placeholder{height:100%;display:flex;align-items:center;justify-content:center;color:var(--muted);font-family:serif;font-size:30px}.page-error{height:100%;padding:60px 45px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:15px;line-height:1.8;direction:rtl}.page-error .button{margin-top:14px}[data-style=clean] .page-frame{visibility:hidden}[data-style=clean] .surah-heading{border-color:transparent}[data-style=clean] .surah-heading::before,[data-style=clean] .surah-heading::after{visibility:hidden}[data-style=clean] .page-heading,[data-style=clean] .page-number{color:var(--muted)}.page-arrow{position:absolute;top:50%;transform:translateY(-50%);height:45px;width:45px;border:1px solid var(--border);border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface);z-index:10;transition:background .15s,transform .15s}.page-arrow:hover{background:var(--accent-soft)}.page-arrow-left{left:18px}.page-arrow-right{right:18px}.reader-bottom{height:51px;flex-shrink:0;padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:var(--muted);font-size:11px;position:relative}.page-jump{display:flex;align-items:center;gap:8px;padding:7px 13px;border:1px solid var(--border);border-radius:20px;background:var(--surface);color:var(--ink);font-size:11px}.page-jump svg{width:15px;height:15px}.reader-hint{position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:11px}.edition-badge{font-size:10px;letter-spacing:.6px}.edition-badge span{margin:0 8px}.reader-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--bg);z-index:11;direction:rtl;color:var(--muted)}.loading-rosette{font-size:55px;color:var(--accent);animation:breathe 1.6s infinite}.reader-loading p{font-size:15px;margin-top:10px}@keyframes breathe{50%{opacity:.4;transform:rotate(45deg)}}.backdrop{position:fixed;inset:0;background:var(--scrim);z-index:50;backdrop-filter:blur(3px)}.side-panel{position:fixed;top:0;bottom:0;inset-inline-start:0;width:380px;max-width:92vw;background:var(--surface);z-index:60;box-shadow:var(--shadow);display:flex;flex-direction:column;animation:panel-in .22s ease-out}.tafsir-panel{width:420px;direction:rtl}.panel-header{height:112px;flex-shrink:0;padding:27px 27px 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.panel-header small{font-size:10px;color:var(--muted);letter-spacing:1.1px}.panel-header h2{font-size:26px;margin:5px 0 0;font-weight:500}.panel-body{padding:24px 28px;overflow:auto;overscroll-behavior:contain;flex:1;min-height:0}.navigation-tabs{display:flex;gap:0;border-bottom:1px solid var(--border);padding:0 26px;flex-shrink:0}.navigation-tabs button{flex:1;padding:18px 0 14px;font-size:13px;border-bottom:2px solid transparent;color:var(--muted)}.navigation-tabs button.active{color:var(--accent);border-color:var(--accent)}.search-box{width:100%;border:1px solid var(--border);background:var(--bg);color:var(--ink);padding:11px 15px;border-radius:8px;font-size:13px;margin-bottom:14px}.surah-row,.juz-row{display:flex;width:100%;align-items:center;padding:13px 0;gap:13px;text-align:start;border-bottom:1px solid var(--border)}.surah-index{font-size:12px;color:var(--accent);height:33px;width:33px;background:var(--accent-soft);border-radius:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.surah-info{flex:1}.surah-info strong{font-size:17px;display:block;font-weight:500}.surah-info small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.surah-page{font-size:12px;color:var(--muted)}.surah-row:hover,.juz-row:hover{background:var(--accent-soft)}.page-form{display:flex;gap:10px}.page-input{width:120px;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--ink)}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid var(--border);padding:12px 18px;border-radius:8px;background:var(--surface);font-size:13px;font-weight:500}.button.primary{background:var(--accent);color:var(--page);border-color:var(--accent)}.button svg{width:18px;height:18px}.settings-panel{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:var(--surface);z-index:60;width:520px;max-width:94vw;max-height:90dvh;border-radius:18px;box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden}.settings-panel .panel-header{height:98px}.setting-group{padding-bottom:25px;margin-bottom:23px;border-bottom:1px solid var(--border)}.setting-group h3{font-size:14px;font-weight:500;margin-bottom:14px}.segmented{display:flex;padding:4px;background:var(--bg);border:1px solid var(--border);border-radius:10px;gap:4px}.segmented button{display:flex;flex:1;gap:8px;align-items:center;justify-content:center;font-size:12px;padding:11px 6px;border-radius:7px;white-space:nowrap}.segmented button svg{width:17px;height:17px}.segmented button.active{background:var(--surface);box-shadow:0 1px 6px #16231b15;color:var(--accent)}.style-options{display:flex;gap:14px}.style-options button{flex:1;border:1px solid var(--border);border-radius:10px;padding:12px;display:flex;flex-direction:column;align-items:center;gap:7px}.style-options button.active{border-color:var(--accent);background:var(--accent-soft)}.style-options strong{font-size:12px;font-weight:500}.style-options small{font-size:10px;color:var(--muted)}.style-preview{height:68px;width:51px;background:var(--page);color:var(--frame);border-radius:2px;box-shadow:0 2px 7px #13221918;display:flex;align-items:center;justify-content:center;font-size:28px;position:relative}.printed-preview::before{content:"";position:absolute;inset:4px;border:3px double var(--frame)}.language-setting{display:flex;justify-content:space-between;align-items:center}.language-setting h3{margin:0}.select{border:1px solid var(--border);background:var(--bg);color:var(--ink);padding:10px 12px;border-radius:8px;font-size:13px;max-width:100%}.offline-setting p{font-size:12px;color:var(--muted);line-height:1.8}.offline-setting .button{width:100%;font-size:12px}.offline-setting progress{width:100%;height:6px;accent-color:var(--accent);margin-top:17px}.offline-setting #offline-status{margin-top:10px;margin-bottom:0}.about-details{font-size:12px;color:var(--muted);line-height:1.9}.about-details summary{cursor:pointer;color:var(--ink);font-size:12px}.about-details p{margin:13px 0}.about-details a{color:var(--accent)}.ayah-menu{position:fixed;width:280px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);z-index:40;padding:12px;animation:menu-in .15s ease-out}.menu-caption{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);padding-bottom:9px;border-bottom:1px solid var(--border);margin-bottom:11px}.small-close{height:24px;width:24px;display:flex;align-items:center;justify-content:center}.small-close svg{width:15px;height:15px}.menu-reciter-label{font-size:10px;color:var(--muted);display:block;margin-bottom:6px}.ayah-menu .select{width:100%;margin-bottom:10px}.menu-action{display:flex;width:100%;align-items:center;gap:10px;border-radius:7px;padding:12px 8px;font-size:12px;text-align:start}.menu-action:hover{background:var(--accent-soft)}.menu-action svg{height:18px;width:18px;color:var(--accent)}.tafsir-panel .select{width:100%;direction:rtl}.tafsir-verse{font-family:QuranUnicode,"Traditional Arabic",serif;font-size:26px;line-height:1.9;margin-top:25px;padding-bottom:18px;border-bottom:1px solid var(--border);color:var(--quran-ink);text-align:justify}.tafsir-verse small{display:block;font-family:"Segoe UI",Tahoma,sans-serif;font-size:11px;color:var(--muted);margin-top:12px}.tafsir-content{font-size:17px;line-height:2.05;direction:rtl;text-align:justify;overflow-wrap:anywhere}.tafsir-content p{margin-bottom:14px}.tafsir-content h1,.tafsir-content h2,.tafsir-content h3{font-size:19px}.source-attribution{font-size:10px;line-height:1.8;color:var(--muted);border-top:1px solid var(--border);padding-top:18px;margin-top:24px}.audio-player{height:84px;position:fixed;bottom:0;inset-inline:0;background:var(--surface);border-top:1px solid var(--border);z-index:25;display:flex;align-items:center;gap:22px;padding:12px 32px;direction:rtl}.has-audio .reader{height:calc(100dvh - 164px)}.audio-description{display:flex;align-items:center;gap:12px;min-width:170px}.audio-description strong{display:block;font-size:13px;font-weight:500}.audio-description small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.audio-emblem{display:flex;width:42px;height:42px;border-radius:12px;background:var(--accent-soft);color:var(--accent);align-items:center;justify-content:center}.audio-controls{display:flex;align-items:center;gap:10px;direction:ltr}.audio-controls .icon-button{width:30px;height:30px}.audio-controls svg{width:17px;height:17px}.play-button{width:41px;height:41px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--accent);color:var(--page)}.play-button svg{width:19px;height:19px}.audio-timeline{flex:1;display:flex;align-items:center;gap:10px;direction:ltr;color:var(--muted);font-size:10px}.audio-timeline input{flex:1;min-width:30px;width:100%;accent-color:var(--accent);height:3px}.reciter-select{font-size:11px;border:1px solid var(--border);background:var(--bg);color:var(--ink);border-radius:8px;padding:9px 10px;max-width:160px}.audio-error{position:absolute;bottom:100%;inset-inline:0;padding:8px 16px;margin:0;font-size:12px;background:var(--surface);color:var(--error);text-align:center;border-top:1px solid var(--border)}.toast{position:fixed;bottom:80px;left:50%;transform:translateX(-50%);z-index:100;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--ink);padding:12px 20px;box-shadow:var(--shadow);font-size:13px;max-width:90vw;text-align:center}.has-audio .toast{bottom:100px}@keyframes panel-in{from{opacity:0;translate:20px 0}to{opacity:1;translate:0 0}}@keyframes menu-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.app-header{padding:0 22px;height:70px}.reader{height:calc(100dvh - 70px)}.has-audio .reader{height:calc(100dvh - 154px)}.header-start,.header-end{gap:12px}.brand{font-size:29px}.brand-mark{font-size:41px}.book-stage{padding-inline:56px}.page-arrow-left{left:9px}.page-arrow-right{right:9px}.page-arrow{width:34px;height:34px}.page-arrow svg{width:17px;height:17px}.reader-bottom{padding-inline:20px}.audio-player{padding-inline:18px;gap:15px}.audio-timeline{display:none}.audio-description{flex:1;min-width:130px}.edition-badge{display:none}.reader-hint{position:static;transform:none;font-size:10px}}
@media(max-width:600px){.app-header{height:64px;padding:0 12px}.header-start,.header-end{gap:3px}.brand{font-size:25px;gap:7px}.brand-mark{font-size:35px}.brand small{font-size:7px;letter-spacing:2px}.header-title{font-size:13px;max-width:130px}.header-title small{font-size:8px}.icon-button{width:34px;height:34px}.icon-button svg{width:20px;height:20px}.reader{height:calc(100dvh - 64px);padding-top:5px}.reading-context{height:29px;font-size:10px}.book-stage{padding:3px 25px 9px}.page-arrow{width:24px;height:37px;border:0;background:transparent;border-radius:0}.page-arrow-left{left:0}.page-arrow-right{right:0}.reader-bottom{height:45px;padding-inline:15px;gap:10px}.reader-hint{font-size:9px}.page-jump{padding:6px 10px;font-size:10px}.page-jump svg{width:12px;height:12px}.audio-player{height:115px;flex-wrap:wrap;gap:7px;padding:9px 15px;padding-bottom:max(9px,env(safe-area-inset-bottom))}.has-audio .reader{height:calc(100dvh - 179px)}.audio-description{min-width:140px}.audio-emblem{width:32px;height:32px;border-radius:8px}.audio-emblem svg{width:17px;height:17px}.audio-description strong{font-size:11px}.audio-description small{font-size:9px}.audio-controls{gap:5px}.reciter-select{order:5;max-width:130px;font-size:10px;padding:7px}.audio-timeline{display:flex;order:4;flex:1;min-width:40%;margin-inline-end:10px}.audio-player>#audio-stop{width:24px;height:24px}.audio-player>#audio-stop svg{width:15px;height:15px}.play-button{width:35px;height:35px}.tafsir-panel{width:100%;max-width:100%;top:18%;bottom:0;border-radius:20px 20px 0 0;animation:menu-in .2s ease}.tafsir-panel .panel-header{height:89px;padding-top:19px}.side-panel:not(.tafsir-panel){width:340px}.settings-panel{max-height:92dvh}.settings-panel .panel-header{height:85px}.settings-panel .panel-body{padding:20px}.settings-panel .panel-header h2{font-size:23px}.setting-group{padding-bottom:20px;margin-bottom:19px}.ayah-menu{width:270px}.toast{bottom:60px}.has-audio .toast{bottom:128px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.install-shortcut{display:flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 12px;border:1px solid var(--border);border-radius:8px;font-size:12px;color:var(--accent);background:var(--accent-soft);white-space:nowrap}.install-shortcut svg{width:18px;height:18px}.install-shortcut:hover{border-color:var(--accent)}.install-app-preview{display:flex;align-items:center;gap:16px;margin-bottom:20px}.install-app-preview img{border-radius:16px;flex-shrink:0}.install-app-preview strong{font-size:22px;font-weight:500}.install-app-preview strong small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.install-app-preview p,.install-setting p{font-size:12px;line-height:1.7;color:var(--muted);margin-bottom:0}.install-setting .button{margin-top:12px;width:100%}.install-panel #install-native{width:100%}.install-panel #install-status{font-size:12px;line-height:1.7}.install-guide{border-top:1px solid var(--border);padding-top:17px;margin-top:17px}.install-guide h3{font-size:14px;font-weight:500}.install-guide ol{padding-inline-start:22px;margin:0}.install-guide li,.install-guide p{font-size:13px;line-height:1.9;color:var(--muted);margin-bottom:7px}.install-offline-note{background:var(--accent-soft);color:var(--ink);border-radius:9px;padding:13px;font-size:12px;line-height:1.8;margin:20px 0 0}.header-title>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:600px){.install-shortcut{width:34px;height:34px;min-height:34px;padding:7px;border-color:transparent}.install-shortcut>[data-i18n]{display:none}.install-app-preview{gap:12px}.install-app-preview strong{font-size:20px}.install-panel .panel-header h2{font-size:21px}}
@media(max-width:380px){.header-title{max-width:75px}.header-title small{line-height:1.4}}

/* Reading fills the viewport; revealed controls overlay the same page geometry. */
/* Curl transforms extend beyond the book. Keep that overflow out of the RTL
   document's scroll area so mobile browsers cannot pan the entire spread. */
html{overflow:hidden;overscroll-behavior:none}
.book-stage{min-width:0;overflow:hidden;overflow:clip;overscroll-behavior:none}
.app-header{position:fixed;top:0;inset-inline:0;height:calc(80px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
.app-header,.page-arrow{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .5s ease,visibility 0s linear .5s}
.controls-visible .app-header,.controls-visible .page-arrow{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .5s ease,visibility 0s}
.reader{height:100dvh;padding:0}
.has-audio .reader{height:calc(100dvh - 84px)}
.book-stage{padding:max(4px,env(safe-area-inset-top)) max(4px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));touch-action:none}
.reader-controls-toggle{position:fixed;top:8px;left:50%;transform:translate(-50%,-200%);z-index:70;padding:12px 18px;background:var(--surface);border:1px solid var(--border);border-radius:8px}
.reader-controls-toggle:focus-visible{transform:translate(-50%,0)}
.book.stf__parent,.book .stf__block{touch-action:none}.quran-word{-webkit-touch-callout:none}
:root{--curl-cast-opacity:.78;--curl-fold-opacity:.6}
:root[data-theme=dark]{--curl-cast-opacity:1;--curl-fold-opacity:.75}
.book .stf__outerShadow{opacity:var(--curl-cast-opacity);pointer-events:none}
.book .stf__innerShadow{opacity:var(--curl-fold-opacity);pointer-events:none}
@media(max-width:900px){.app-header{height:calc(70px + env(safe-area-inset-top))}}
@media(max-width:600px){.app-header{height:calc(64px + env(safe-area-inset-top))}.has-audio .reader{height:calc(100dvh - 115px)}}
