:root{--bg:#f5ead3;--card:#fff6e4;--card2:#09263a;--gold:#b98421;--gold2:#b78426;--txt:#282419;--mut:#76674f;--line:#b38a3b66}
body{background:#f5ead3;color:#282419;background-image:repeating-linear-gradient(45deg,#b5944b06 0,#b5944b06 1px,transparent 1px,transparent 18px);border-inline:2px solid #bd9344;min-height:100dvh}
header{background:linear-gradient(120deg,#061825,#0b2d44);color:#efd699;border-bottom:2px solid #cfa851;padding:8px 12px}header h1{font-size:18px}.top button{background:none;color:#ebcb7d;font-size:22px;padding:0}
body:has(#v-home:not([hidden])){background:#051e30}body:has(#v-home:not([hidden]))>header{display:none}
.ornate-home{padding:0 12px 12px;max-width:700px;margin:auto;background:radial-gradient(ellipse at 50% 20%,#173752,#071e30 65%);min-height:calc(100dvh - 60px)}
.royal-header{position:relative;margin:0 -4px -1px}.royal-header>img{width:100%;height:auto;display:block}.menu-open{position:absolute;top:18px;right:12px;background:transparent;color:#f5dea2;font-size:24px;padding:0;min-width:36px}
.ornate-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ornate-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:125px;padding:9px 7px 11px;color:#292114;border-radius:20px;background:radial-gradient(ellipse at center,#fff8eb,#f3e3c8);border:3px double #b47e23;outline:1px solid #eed292;outline-offset:2px;box-shadow:inset 0 0 0 3px #fff6de,0 4px 5px #0006;margin:2px}.ornate-tile:before,.ornate-tile:after{content:'';position:absolute;width:11px;height:11px;border:1px solid #d2ae5a;transform:rotate(45deg);top:6px;right:6px;opacity:.55}.ornate-tile:after{top:auto;right:auto;bottom:6px;left:6px}.ornate-tile img{width:70px;height:49px;object-fit:contain;mix-blend-mode:multiply;margin-bottom:2px}.ornate-tile strong{font-size:19px;line-height:1.25;font-weight:700}.ornate-tile small{font-size:12px;line-height:1.4;color:#51422b}.ornate-tile:nth-child(1){grid-column:1;grid-row:1}.ornate-tile:nth-child(2){grid-column:2;grid-row:1}.gold-flourish{text-align:center;font-size:22px;color:#d4b266;margin:20px auto 10px}
#nav{background:linear-gradient(110deg,#061826,#0b3048,#061826);border-top:2px solid #d6ad55;border-radius:18px 18px 0 0;box-shadow:0 -2px 6px #0003}#nav button{color:#e8dfc6;font-size:11px;gap:0}#nav button.on{color:#ffe197;border:1px solid #d9b052;border-radius:14px 14px 0 0;background:radial-gradient(ellipse at 50% 0,#ffe08444,transparent 70%)}#nav button.on:before{display:none}.nav-symbol{font-size:25px;height:27px;line-height:27px}#nav button svg{width:24px;height:24px}
.section-mast{margin:-6px -12px 0;padding:18px 10px 30px;background:linear-gradient(#03182722,#071d32aa),url('art/mosque.webp') center bottom/cover no-repeat,#08273c;text-align:center;color:#f8eaca;border-bottom:3px double #d5af62;border-radius:0 0 20px 20px}.section-mast img{display:block;margin:0 auto;width:76px;height:49px;object-fit:contain;mix-blend-mode:screen}.section-mast h2{font-size:26px;margin:0;line-height:1.5}.section-mast p{margin:0;font-size:18px;color:#f8eaca}.listening-mast img{width:37px}.section-mast+input{margin-top:12px}
.library-tabs{margin:8px 0 4px;flex-wrap:nowrap;gap:5px}.library-tabs button{display:block;border-radius:20px;background:linear-gradient(#1e3d52,#031723);border:1px solid #d3b06c;color:#f6eedf;font-size:15px;min-height:35px}.library-tabs button.on,.listen-tabs button.on{background:linear-gradient(#ffe4a0,#e1a82d);color:#2c2414;border-color:#c49129}
.library-surah{display:flex;align-items:center;gap:14px;width:100%;text-align:right;border:3px double #d2b375;border-radius:12px;background:linear-gradient(#fff8e9,#f5e6cc);color:#211c13;margin:9px 0;padding:8px 12px;box-shadow:0 3px 5px #8b681d1c;min-height:60px}.library-surah b{font-size:24px;flex:1;font-family:'AmiriQ',serif;font-weight:400}.library-surah small{font-size:15px;white-space:nowrap}.surah-seal{width:31px;height:31px;display:grid;place-items:center;flex:none;clip-path:polygon(30% 0,70% 0,85% 15%,100% 30%,100% 70%,85% 85%,70% 100%,30% 100%,15% 85%,0 70%,0 30%,15% 15%);background:linear-gradient(135deg,#f7d96c,#b87916,#d6ac47);border:2px solid #a67726;color:white;font-size:16px;text-shadow:0 1px 2px #70420c}.mini-book{font-size:23px;color:#a16b1a}
input,select{background:#fff9eb;border:1px solid #c5a160;color:#30281a}input[type=search]{border-radius:22px}button{color:#fff4d9;background:linear-gradient(#17394f,#061e31);border:1px solid #b8934b50}button.on{background:linear-gradient(#ffe19a,#d5a43a);color:#302815}.card{background:linear-gradient(#fff8eb,#f5e7cf);border:1px solid #c9a667;box-shadow:0 3px 8px #8d66271c}.card h3{color:#78531c}.card p,.src{color:#75644b}li{background:linear-gradient(#fff9ec,#f3e3c8);border:1px solid #ccb075;color:#302516;border-radius:12px;box-shadow:0 3px 5px #79551d1c}li .n{color:#fff2c9;background:linear-gradient(#dbb65f,#a97720);border:1px solid #ad7920}li .nm small{color:#7d6b50}.reciterinfo p{color:#78674d}.reciterinfo a{color:#87611e}.listen-tabs a{background:#09283d;color:#f3e8cc}.listen-tabs{margin-top:10px}button.pl{background:linear-gradient(#fbe294,#b87d1d);color:#fff8e7;border-radius:50%;border:2px solid #9e6a1a;box-shadow:0 0 0 2px #f7d588}#v-surahs #list li .nm{font-size:19px}
footer#player{background:linear-gradient(#0c3048,#031725);border:3px double #d5ad54;color:#f8eed6;border-radius:20px 20px 0 0}.pinfo small,.ctl2{color:#c7bda6}.ctl .big{background:linear-gradient(#fff0b4,#d7a739);color:#061f32}.tools button{color:#f3e5c8}body.reading{border:0}body.reading .paper{border:0}.pt.nx{color:#9b6c13}.big{color:#9b6c13}
#royal-splash{position:fixed;inset:0;z-index:100;background:#041b2c;display:flex;align-items:center;justify-content:center}#royal-splash>img{height:100%;width:100%;object-fit:contain}#close-splash{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);background:#08243eee;color:#ffdc7c;border:1px solid #b99a50}#section-menu{position:fixed;inset:0;z-index:90;background:#061e30f9;color:#f6e6bd;padding:22px;overflow:auto}#section-menu button{display:block;width:100%;margin:10px 0;min-height:49px}#section-menu h2{text-align:center}#v-favorites button{margin:4px}a{color:#8d651e}.source{color:#8d651e}.note{color:#78674e}
@media(min-width:600px){.ornate-grid{grid-template-columns:repeat(2,1fr)}.royal-header{max-height:260px;overflow:hidden}.royal-header>img{height:260px;object-fit:cover}.ornate-home{max-width:650px}.ornate-tile{min-height:145px}}
@media(max-width:350px){.ornate-home{padding:0 9px 10px}.ornate-grid{gap:8px}.ornate-tile{min-height:119px;padding:7px 3px}.ornate-tile strong{font-size:17px}.ornate-tile small{font-size:10px}.ornate-tile img{height:44px;width:63px}.library-surah{gap:8px;padding:7px}.library-surah b{font-size:21px}li{padding:8px;gap:5px}li button{padding:7px;min-width:35px}}
/* Latest supplied nine-card composition, artwork retained verbatim. */
.nine-home{padding:0 6px 0;max-width:620px}.nine-home .royal-header{margin:0}.nine-home .royal-header>img{height:auto;max-height:none;object-fit:contain}.nine-home .menu-open{top:7px;right:4px;opacity:0;width:48px;height:48px}.nine-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));direction:ltr;gap:3px 2px;padding:0 4px}.nine-grid>button{padding:0;min-height:0;min-width:0;border:0;background:transparent;border-radius:15px;overflow:hidden;box-shadow:0 5px 6px #0004}.nine-grid>button>img{display:block;width:100%;height:auto}.nine-footer{display:block;width:100%;margin-top:3px}.nine-home .royal-header{max-height:none}#nav button{font-size:10px;line-height:1.4}#nav .nav-symbol{font-size:23px}#nav button svg{width:22px;height:22px}#nav button span:last-child{white-space:nowrap}.tasbih-card{text-align:center}#dhikr-display{font-family:'NaskhU';font-size:27px;line-height:1.8;color:#77591b;white-space:pre-wrap}#tasbih-count{width:175px;height:175px;border-radius:50%;font-size:62px;border:6px double #cfa94f;color:#ffe4a0;box-shadow:0 6px 20px #6b4c1722;background:radial-gradient(circle at 40% 30%,#20455e,#041a2d)}textarea{font:inherit;font-size:20px;background:#fff9eb;border:1px solid #bea05c;border-radius:12px;padding:10px;width:100%;margin:10px 0;color:#282419}#saved-dhikr button{display:block;margin:6px 0;width:100%;white-space:pre-wrap}.qibla-card{text-align:center}.qibla-dial{width:180px;height:180px;margin:18px auto;border:5px double #c9a451;border-radius:50%;position:relative;background:radial-gradient(#153b56,#041a2c);color:#f6d484}.north{position:absolute;top:8px;left:0;right:0}.qibla-arrow{position:absolute;left:calc(50% - 18px);top:29px;font-size:85px;line-height:112px;width:36px;height:112px;transform-origin:center;color:#eecb76}body.reading .paper{box-shadow:inset 0 0 0 2px #8a6a2255}
@media(max-width:350px){#nav button{font-size:9px}.nine-home{padding:0 3px}}
.nine-grid>button{width:100%;height:auto;display:block;overflow:visible;box-shadow:none;line-height:0;border-radius:12px}.nine-grid>button>img{height:auto;max-width:100%;min-width:0;object-fit:contain;aspect-ratio:258/227}.nine-footer{height:auto}.section-mast img{mix-blend-mode:multiply}.section-mast{background:linear-gradient(#06203755,#08273c66),url('art/mosque.webp') center bottom/cover no-repeat,#08273c}
#nav{gap:0}#nav button{border:0}#nav .royal-nav-icon{width:27px;height:27px;object-fit:contain;mix-blend-mode:screen}#nav button.on{border:1px solid #d9b052}.section-mast img{mix-blend-mode:normal}.nine-home{display:flex;flex-direction:column}.nine-home .royal-header{flex:none}.nine-home .nine-footer{margin-top:auto;padding-top:10px}.nine-grid{row-gap:9px;margin-bottom:12px}.nine-home .royal-header{padding-bottom:8px}
.home-prayer{margin:1px 9px 14px;padding:8px 11px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:1px 8px;background:linear-gradient(115deg,#0c2b41,#061a2c);border:1px solid #caa655;border-radius:13px;text-align:right;color:#f0d99c}.home-prayer>span{font-size:13px}.home-prayer b{direction:ltr;font-size:18px;font-weight:400;grid-column:2;grid-row:1/3}.home-prayer small{font-size:10px;color:#b9b6a5}
body.app-dark{--txt:#eee3c9;--mut:#c0b59e;--card:#112d43;background:#071c2d;color:#eee3c9}body.app-dark .card,body.app-dark li,body.app-dark .library-surah{background:linear-gradient(#123149,#092235);color:#f0e1c4;border-color:#997d46}body.app-dark .card h3{color:#e8c77d}body.app-dark .card p,body.app-dark .card .src,body.app-dark li .nm small,body.app-dark .reciterinfo p{color:#bbb09c}body.app-dark input,body.app-dark select,body.app-dark textarea{background:#0a263b;color:#f3e5c7;border-color:#a4874a}body.app-dark #dhikr-display{color:#f2d590}body.app-dark .pt.nx,body.app-dark .big{color:#f0d28a}body.app-dark .note,body.app-dark .reciterinfo a{color:#d4bd8c}body.app-dark .card a{color:#e6c67a}
body.reading{background:#071f32!important;padding:0!important}body.reading #v-mushaf{padding:0 8px 70px}#royal-reader-head{position:relative;margin:0 -8px}#royal-reader-head>img{display:block;width:100%;height:auto}#reader-home{position:absolute;top:18px;right:8px;background:none;border:0;color:#ffe8a0;font-size:32px}#reader-tabs{display:grid;grid-template-columns:repeat(6,1fr);gap:0;border:1px solid #bc9b52;border-radius:14px;overflow:hidden;margin:6px 0 10px}#reader-tabs button{font-size:12px;line-height:1.4;border-radius:0;min-width:0;padding:8px 3px;min-height:54px}#reader-tabs button:disabled{opacity:.45;cursor:not-allowed}body.reading .tools{position:relative;transform:none;visibility:visible;pointer-events:auto;top:auto;padding:5px 3px;background:#09243b;border:1px solid #be9a4c;border-radius:12px;margin:5px 0}body.reading .tools .row{flex-wrap:wrap}body.reading .tools button{font-size:12px}body.reading #pagebox{min-height:0;padding:0;margin:9px 0}body.reading .paper{min-height:60vh;margin:0;border:4px double #c8a758;border-radius:17px;padding:12px 14px;box-shadow:inset 0 0 0 3px #fff8e5;background:#fbefd4}body.reading .paper.n{background:#0d1c38}body.reading .sb{border:3px double #bd9a50;border-radius:24px;background:linear-gradient(90deg,#d5ba6915,#fff8e7,#d5ba6915)}#tafsir-panel{border:3px double #c7a050;border-radius:18px;overflow:hidden;background:#f7eacf;margin:14px 0;color:#282117}.tafsir-heading{display:flex;align-items:center;gap:5px;background:linear-gradient(#173e59,#061e31);padding:5px;color:#ffe3a0}.tafsir-heading select{flex:1;max-width:none;text-align:center;color:#f6d98d;background:transparent;border:0;font-size:19px}.tafsir-heading select option{color:#262019;background:#fff5df}.tafsir-heading button{min-width:34px;background:none;border:0;font-size:24px}#tafsir-content{padding:12px 14px}#tafsir-reference{color:#987226;font-size:14px;margin:0 0 7px}#tafsir-text{font-size:22px;line-height:1.9;white-space:pre-line;max-height:280px;overflow:auto}#tafsir-source{display:block;font-size:12px;margin-top:10px;color:#86601d}#reader-bottom{position:sticky;bottom:0;display:flex;gap:7px;align-items:center;justify-content:center;background:linear-gradient(#163a53,#051c2d);padding:10px 8px;border:2px solid #caa656;border-radius:17px;color:#f5dc96;z-index:15}#reader-bottom button{font-size:14px;padding:7px;min-width:35px;border:1px solid #c19c50}#reader-page{background:linear-gradient(#ffe4a4,#d2a145);color:#2d2513;flex:1}body.reading #nav{display:none}body.reading:not(.reader-controls) #royal-reader-head,body.reading:not(.reader-controls) #reader-tabs,body.reading:not(.reader-controls) .tools,body.reading:not(.reader-controls) #tafsir-panel,body.reading:not(.reader-controls) #reader-bottom{display:none!important}body.reading:not(.reader-controls) #v-mushaf{padding:0}body.reading:not(.reader-controls) .paper{min-height:100dvh;border-radius:0}body.app-dark #tafsir-panel{background:#0d293e;color:#f2e5c7}body.app-dark #tafsir-reference,body.app-dark #tafsir-source{color:#d5b56f}
/* Luminous metal and saturated night palette. */
.nine-home{background:radial-gradient(ellipse at 50% 12%,#214461 0,#0c2b43 37%,#031526 85%)}.nine-home .royal-header>img,.nine-footer{filter:saturate(1.24) contrast(1.07) brightness(1.06)}.nine-grid>button{filter:saturate(1.15) contrast(1.04);position:relative;box-shadow:0 0 5px #ffc94844,0 3px 7px #0007}.nine-grid>button:after{content:'';position:absolute;inset:2px;border-radius:16%;pointer-events:none;box-shadow:inset 0 1px 2px #fff2bd88}.home-prayer{box-shadow:0 0 8px #d9ac3c22;border-color:#f0cb68}.royal-header{filter:drop-shadow(0 0 4px #d7a24644)}#nav{box-shadow:0 -1px 6px #f1c35c77,inset 0 1px 2px #ffebaf88;border-color:#f7d67c}#nav button.on{background:radial-gradient(ellipse at 50% 0,#fff0a5aa,transparent 70%);box-shadow:inset 0 0 9px #f4c85755}button.on,.ctl .big,button.pl,#reader-page{background:linear-gradient(110deg,#c68a20 0,#f2c75a 25%,#fff2b3 43%,#efbd44 57%,#c99024 85%,#f5d77b);color:#35220a;box-shadow:inset 0 1px 2px #fff8cf,0 0 7px #f3bf4440}.section-mast{background:linear-gradient(#06203722,#08273c22),url('art/mosque.webp') center bottom/cover no-repeat,#08273c}.section-mast img{filter:drop-shadow(0 0 4px #edc56577)}
body.reading.reader-controls #pagebox{max-height:52dvh;overflow-y:auto;min-height:220px;border-radius:17px;overscroll-behavior:contain}body.reading.reader-controls .paper{min-height:52dvh}body.reading:not(.reader-controls) #pagebox{max-height:none;overflow:visible}#reader-bottom{position:relative;bottom:auto}body.reading #v-mushaf{padding-bottom:12px}#tafsir-text{max-height:210px}.home-prayer b{font-variant-numeric:tabular-nums;min-width:82px;text-align:left}
@font-face{font-family:CairoUI;src:url('fonts/Cairo.ttf') format('truetype');font-weight:200 1000;font-display:swap}body,button,input,select,textarea{font-family:CairoUI,system-ui,sans-serif;font-weight:600}h1,h2,h3,strong,b{font-weight:800}button{line-height:1.65}header h1{font-family:CairoUI;font-size:17px;font-weight:800}#nav button{font-size:9px;font-weight:700}.card p,.note{font-size:13px;line-height:1.95}.card h3{font-size:18px}.library-surah b{font-family:CairoUI;font-size:22px;font-weight:700}.section-mast h2{font-family:CairoUI;font-weight:800;font-size:24px}.section-mast p{font-size:16px}.tools button,#reader-tabs button{font-family:CairoUI;font-size:10px}#tafsir-text{font-family:CairoUI;font-size:18px;line-height:2.1;font-weight:600}#dhikr-display{font-family:CairoUI;font-weight:700}body.reading .paper,.pb,.pb .a,.pb .bs,.pb .sb{font-family:AmiriQ,serif;font-weight:400}body.reading .ph,body.reading .pf{font-family:NaskhU,serif}#royal-splash>img{object-fit:contain;height:auto;max-height:90dvh;width:100%;max-width:700px}.royal-header>.crisp-royal-logo{position:absolute;left:50%;top:0;transform:translateX(-50%);width:26%;height:auto;max-height:none;border-radius:17%;box-shadow:0 0 12px #d6ad4455;object-fit:contain}.home-prayer>span{font-size:11px}.home-prayer small{font-size:8px}.home-prayer b{font-size:17px;font-weight:600}.library-surah small{font-size:12px}.section-mast{min-height:155px}#v-mushaf .tools button{padding:6px;min-width:34px}.nine-grid>button:focus-visible{outline:2px solid #fff5bd;outline-offset:2px}
/* One saturated navy / luminous gold palette throughout. */
body,body.app-dark{background:radial-gradient(ellipse at 50% 0,#153c64 0,#051e38 45%,#020e22 100%);background-attachment:fixed;color:#fff0c2;--txt:#fff0c2;--mut:#ddc995;border-color:#e4b744}.section-mast{position:relative;margin-top:0;padding:125px 8px 16px;background:#061b33;border:1px solid #e7b644;box-shadow:0 0 15px #ffc43c44,inset 0 0 30px #041326;border-radius:17px;overflow:hidden;min-height:205px}.section-mast:before{content:'';position:absolute;inset:0 0 auto;height:132px;background:url('art/nine-header.webp') center top/100% auto no-repeat;filter:saturate(1.55) contrast(1.12) brightness(1.08)}.section-mast>img{display:none}.section-mast h2{position:relative;color:#ffda69;text-shadow:0 0 9px #ffc34366;margin-top:7px}.section-mast p{position:relative;color:#fff0bd}.card,body.app-dark .card{background:linear-gradient(135deg,#153d64,#061e3b 65%);border:2px solid #e7b94e;box-shadow:inset 0 1px 1px #fff0a777,0 0 12px #f2b33327;color:#fff0cd}.card h3,body.app-dark .card h3,#dhikr-display,body.app-dark #dhikr-display{color:#ffdc72;text-shadow:0 0 8px #f8bb3b55}.card p,.card .src,body.app-dark .card p,.note{color:#ead9b1}input,select,textarea,body.app-dark input,body.app-dark select,body.app-dark textarea{background:#041b35;border-color:#dba941;color:#ffefca}button{border-color:#c99436;background:linear-gradient(130deg,#1a4771,#061c36);box-shadow:inset 0 1px 1px #ffe9a535}header{background:linear-gradient(110deg,#04132b,#123c67,#04132b);border-color:#f8ca55;box-shadow:0 1px 9px #ffbd3555}header h1{color:#ffdb67;text-shadow:0 0 8px #ffbd3d55}#tasbih-count{background:radial-gradient(circle at 38% 25%,#2465a0,#071f40 65%);color:#ffe695;border-color:#ffd566;box-shadow:inset 0 0 15px #f3bf3f44,0 0 22px #e4aa3a55}#nav{background:linear-gradient(110deg,#04132b,#123b65,#04132b)}.nine-home{background:radial-gradient(ellipse at 50% 12%,#194c78 0,#08284b 37%,#020e22 85%)}.nine-home .royal-header>img,.nine-footer{filter:saturate(1.55) contrast(1.11) brightness(1.06)}.nine-grid>button{filter:saturate(1.32) contrast(1.09);box-shadow:0 0 8px #ffc23c66,0 3px 7px #0007}#reader-options{display:flex;gap:5px;flex-wrap:wrap;align-items:center;padding:6px;color:#ffdf83}#reader-options label{flex:1;display:flex;gap:6px;align-items:center;font-size:12px}#reader-options select{width:auto;flex:1;min-width:70px;padding:4px}#reader-options button{font-size:10px}#reader-juz{font-family:CairoUI;font-size:11px}body.reading:not(.reader-controls) #reader-options{display:none}.ph{cursor:pointer}.ztxt,.ztxt span{font-family:AmiriQ,serif;font-weight:400}body.app-dark li,.library-surah,li{border-color:#e4b34d}.reciterinfo p,.reciterinfo a,.source{color:#ebd296}#tafsir-panel{box-shadow:0 0 12px #f2b33344}body:not(.app-dark) #tafsir-panel{color:#29200c}#royal-reader-head>img{filter:saturate(1.5) contrast(1.1)}
.nine-home .royal-header>.crisp-royal-logo{filter:none}#reader-options select{margin:0}body.reading .tools .row[hidden]{display:none!important}
/* User-supplied palette, 24 November style guide. */
@font-face{font-family:AmiriTafsir;src:url('fonts/Amiri-Regular.ttf') format('truetype');font-weight:400;font-display:swap}:root{--royal-navy:#0b1f3f;--deep-navy:#061327;--mid-navy:#113b6a;--royal-blue:#1e5aa8;--ivory:#f8f3e6;--main-gold:#d4af37;--light-gold:#f6d472;--shine-gold:#ffe7a3;--beige:#ead8b8;--silver:#6b7280;--txt:#f8f3e6;--mut:#ead8b8;--gold:#d4af37;--gold2:#f6d472}body,body.app-dark{background-color:#061327;background-image:radial-gradient(ellipse at 50% 0,#113b6a55,transparent 50%),repeating-linear-gradient(45deg,#d4af3706 0,#d4af3706 1px,transparent 1px,transparent 23px),linear-gradient(#061327,#0b1f3f);color:#f8f3e6;font-weight:400;border-color:#d4af37}h1,h2,h3,strong,b{font-weight:700}button,label,.section-mast p{font-weight:600}header,#nav,footer#player{background:linear-gradient(110deg,#061327,#113b6a,#061327);border-color:#d4af37}.nine-home{background:radial-gradient(ellipse at 50% 12%,#113b6a,#0b1f3f 45%,#061327 85%)}.card,body.app-dark .card,li,body.app-dark li,.library-surah,body.app-dark .library-surah{background:linear-gradient(135deg,#f8f3e6,#ead8b8);border:2px solid #d4af37;box-shadow:inset 0 1px 2px #fff,0 0 9px #d4af3733;color:#0b1f3f}.card h3,body.app-dark .card h3{color:#0b1f3f;text-shadow:none}.card p,.card .src,body.app-dark .card p,body.app-dark .card .src{color:#55462e}.card a,body.app-dark .card a{color:#74560c}.card .note{color:#6b7280}.card label,.card .wrow>span{color:#0b1f3f}input,select,textarea,body.app-dark input,body.app-dark select,body.app-dark textarea{background:#f8f3e6;border-color:#d4af37;color:#0b1f3f}button{background:linear-gradient(115deg,#061327,#113b6a);color:#f8f3e6;border-color:#d4af37;box-shadow:inset 0 1px 1px #ffe7a355}button.on,button.pl,.ctl .big,#reader-page,.library-tabs button.on,.listen-tabs button.on{background:linear-gradient(105deg,#b8860b,#ffd772);color:#061327;border-color:#d4af37;box-shadow:inset 0 1px 2px #ffe7a3,0 0 10px #d4af3744}.section-mast{background:#061327;border-color:#d4af37}.section-mast h2{color:#f6d472;text-shadow:0 0 9px #d4af3766}.section-mast p{color:#ffe7a3}.section-mast:before{filter:saturate(1.35) contrast(1.08)}#tasbih-count{background:radial-gradient(circle at 38% 25%,#1e5aa8,#0b1f3f 70%);color:#ffe7a3;border-color:#d4af37;box-shadow:inset 0 0 14px #d4af3744,0 0 18px #d4af3744}#dhikr-display,body.app-dark #dhikr-display{color:#0b1f3f;text-shadow:none}.tafsir-heading{background:linear-gradient(115deg,#061327,#113b6a)}.tafsir-heading select{background:transparent!important;color:#f6d472!important}#tafsir-panel,body.app-dark #tafsir-panel{background:#f8f3e6;color:#0b1f3f;border-color:#d4af37}#tafsir-text{font-family:AmiriTafsir,serif;font-weight:400;font-size:23px;line-height:1.9}#tafsir-reference,#tafsir-source,body.app-dark #tafsir-reference,body.app-dark #tafsir-source{color:#74560c}body.app-dark .card,body.app-dark li,body.app-dark .library-surah{background:linear-gradient(135deg,#113b6a,#061327);color:#f8f3e6}body.app-dark .card h3,body.app-dark #dhikr-display,body.app-dark .card label,body.app-dark .card .wrow>span{color:#f6d472}body.app-dark .card p,body.app-dark .card .src,body.app-dark li .nm small{color:#ead8b8}body.app-dark input,body.app-dark select,body.app-dark textarea{background:#061327;color:#f8f3e6}#royal-reader-head,#reader-bottom{background:linear-gradient(115deg,#061327,#113b6a)}.reciterinfo p,.reciterinfo a,.source{color:#ead8b8}
/* One complete Quran page per screen. Controls overlay, never scroll the page. */
body.reading{height:100dvh;overflow:hidden!important}body.reading #v-mushaf{padding:0!important;height:100dvh;overflow:hidden}body.reading #pagebox,body.reading.reader-controls #pagebox,body.reading:not(.reader-controls) #pagebox{height:100dvh;max-height:100dvh;min-height:0;margin:0;padding:0;overflow:hidden!important;border-radius:0}body.reading #page{height:100dvh;min-height:0;max-height:100dvh;margin:0;padding:12px 14px;overflow:hidden;border-radius:0}body.reading #page .pb{font-size:var(--page-fit-fs,20px)!important;line-height:1.8!important}body.reading #page .bs{font-size:1.1em!important;line-height:1.9!important}body.reading #page .sb{font-size:1em!important;line-height:1.8!important;margin:4px 0;padding:2px}body.reading #page .ph,body.reading #page .pf{font-size:12px;margin:0;padding:2px 0}body.reading #royal-reader-head{position:fixed;top:0;left:0;right:0;margin:0;z-index:30;background:#061327}body.reading #royal-reader-head>img{height:70px;object-fit:cover}body.reading #reader-tabs{position:fixed;top:70px;left:7px;right:7px;z-index:30;background:#061327}body.reading .tools{position:fixed;top:133px;left:7px;right:7px;z-index:30;margin:0;background:#061327f5}body.reading #tafsir-panel{position:fixed;bottom:68px;left:7px;right:7px;margin:0;z-index:30;max-height:30dvh}body.reading #tafsir-content{max-height:21dvh;overflow:auto;padding:8px}body.reading #tafsir-text{max-height:none;font-size:20px}body.reading #reader-bottom{position:fixed;left:7px;right:7px;bottom:0;z-index:31;padding:7px}body.reading:not(.reader-controls) #page .a.sel{background:none}body.reading .page-turn-layer .paper{height:100dvh;overflow:hidden}

/* Natural Quran spacing, no stretched justification. Existing Amiri Quran retained. */
body.reading #page .pb{text-align:right!important;text-align-last:right!important;text-justify:none!important;word-spacing:normal!important;letter-spacing:normal!important;line-height:1.9!important}body.reading #page .a{word-spacing:normal!important;letter-spacing:normal!important}body.reading #page .bs{text-align:center!important}body.reading #page .sb{text-align:center!important}

body.reading #page .e.ayah-rosette{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;min-width:1.52em;height:1.52em;border:3px double #a57b20;border-radius:50%;font-family:AmiriTafsir,serif;font-size:.61em;line-height:1;white-space:nowrap;color:#8b6418;background:radial-gradient(circle,#fff9e8 40%,#f3e4bc 72%,#fff9e8 74%);margin:0 .15em;padding:.07em;box-shadow:0 0 0 1px #d8b968}body.reading #page .a{-webkit-text-stroke:0!important}body.reading #page .pb{-webkit-text-stroke:0!important}


.quran-fit-line{display:block;width:100%;white-space:nowrap;text-align:right;line-height:1.9}.quran-fit-inner{display:inline-block;width:max-content;white-space:nowrap;transform-origin:right center}.fit-word{white-space:pre;display:inline-block}.quran-fit-inner .a{display:inline}
