@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap');

:root { --forest: #123c32; --forest-2: #1b5748; --mint: #dceee4; --paper: #f6f4ed; --white: #fffefa; --gold: #d99b48; --ink: #17352d; --muted: #789087; --line: #dce5df; --shadow: 0 16px 40px rgba(25, 69, 56, .09); }
* { box-sizing: border-box; }
*[hidden] { display: none !important; }
body { margin: 0; background: #dbe8df; color: var(--ink); font-family: 'DM Sans', sans-serif; }
body.dark-theme { --paper: #17221f; --white: #22302b; --mint: #29483d; --ink: #edf5ef; --muted: #9db3a8; --line: #385148; --shadow: 0 16px 40px rgba(0, 0, 0, .24); background: #0f1715; }
body.dark-theme .quick-stats > div, body.dark-theme .ramadan-dates > div, body.dark-theme .streak-pill { background: #20312b; }
body.dark-theme .bottom-nav { background: rgba(23, 34, 31, .97); }
body.dark-theme .search-field, body.dark-theme .auth-form input, body.dark-theme .voice-select { background: var(--white); color: var(--ink); }
body.dark-theme .settings-list, body.dark-theme .setting-row, body.dark-theme .account-links, body.dark-theme .account-link { background: var(--white); }
body.dark-theme .about-note { background: #29483d; }
button { font: inherit; border: 0; cursor: pointer; }
.app-shell { min-height: 100vh; max-width: 620px; margin: 0 auto; background: var(--paper); position: relative; padding-bottom: 96px; overflow: hidden; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; background: var(--forest); color: white; }
.brand-lockup, .welcome-row, .view-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #e2b66d; color: var(--forest); font-family: 'Fraunces', serif; font-size: 25px; margin-right: 11px; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; }
.topbar .eyebrow { color: #9fc4b2; }
h1, h2, h3, p { margin-top: 0; } h1 { font: 600 26px 'Fraunces', serif; margin: 0; letter-spacing: .01em; } h2 { font: 600 30px 'Fraunces', serif; margin: 0; } h3 { font: 600 20px 'Fraunces', serif; margin: 0; }
.icon-button, .profile-button { width: 40px; height: 40px; border-radius: 50%; color: white; background: rgba(255,255,255,.12); font-size: 20px; }
.profile-button { background: #e1b76e; color: var(--forest); font-weight: 700; font-size: 14px; }
.user-glyph { width: 21px; height: 21px; display: block; position: relative; margin: auto; border: 1.5px solid currentColor; border-radius: 50%; }
.user-glyph::before { content: ''; position: absolute; top: 3px; left: 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.user-glyph::after { content: ''; position: absolute; left: 3px; bottom: 3px; width: 12px; height: 6px; border-radius: 8px 8px 4px 4px; background: currentColor; }
.account-initial { display: grid; place-items: center; font: 600 14px 'Fraunces', serif; }
main { padding: 28px 18px 24px; } .view { display: none; animation: appear .35s ease both; } .view.active { display: block; } @keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.welcome-row { align-items: flex-end; margin-bottom: 20px; } .streak-pill { display: grid; grid-template-columns: 18px 1fr; align-items: center; column-gap: 2px; background: #edf3ec; border: 1px solid var(--line); padding: 7px 10px; border-radius: 12px; color: var(--gold); } .streak-pill strong { font-size: 16px; color: var(--forest); line-height: 1; } .streak-pill small { grid-column: 2; color: var(--muted); font-size: 9px; }
.mode-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 16px; padding: 0 18px 3px; } .mode-strip::-webkit-scrollbar { display:none; } .mode-button { white-space: nowrap; padding: 9px 13px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 12px; } .mode-button.active { color: var(--white); background: var(--forest); border-color: var(--forest); }
.counter-card { background: var(--forest); color: white; border-radius: 24px; padding: 19px 18px 14px; box-shadow: var(--shadow); } .counter-meta { display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 700; color: #a9c8ba; } .progress-track { height: 4px; background: rgba(255,255,255,.15); border-radius: 4px; margin-top: 11px; overflow: hidden; } .progress-track span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .25s ease; }
.counter-stage { height: 296px; display: grid; place-items: center; position: relative; } .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(212, 229, 218, .18); } .ring-outer { width: 246px; height: 246px; } .ring-inner { width: 205px; height: 205px; border-color: rgba(212, 229, 218, .09); } .count-display { position: absolute; top: 65px; display: flex; flex-direction: column; align-items: center; } .count-display span { font: 500 62px 'Fraunces', serif; line-height: 1; } .count-display small { color: #a9c8ba; font-size: 10px; margin-top: 5px; }
.tap-button { width: 142px; height: 142px; border-radius: 50%; background: #e1b76e; color: var(--forest); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 28px; box-shadow: 0 8px 0 #b9853d, 0 16px 24px rgba(0,0,0,.16); position: relative; z-index: 2; transition: transform .1s, box-shadow .1s; } .tap-button span { font: 600 26px 'Fraunces', serif; } .tap-button small { font-size: 10px; color: #496652; } .tap-button:active { transform: translateY(5px); box-shadow: 0 3px 0 #b9853d, 0 8px 13px rgba(0,0,0,.16); }
.counter-actions { border-top: 1px solid rgba(255,255,255,.14); padding-top: 13px; display: flex; align-items: center; justify-content: space-between; } .text-action { background: none; color: #c1d5ca; font-size: 12px; } .reset-action { background: rgba(255,255,255,.1); color: white; border-radius: 8px; padding: 8px 11px; font-size: 11px; }
.intention-panel { padding: 22px 2px 15px; border-bottom: 1px solid var(--line); } .intention-panel h3 { direction: rtl; font-size: 23px; } .intention-panel > p { color: var(--muted); font-size: 12px; margin: 5px 0 0; } .verified-dot { width: 22px; height: 22px; border-radius: 50%; color: var(--forest); background: #c9e3d0; display: grid; place-items: center; font-size: 12px; }
.quick-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 16px; } .quick-stats > div { display: flex; align-items: center; gap: 10px; padding: 12px; background: #eff3ed; border-radius: 13px; } .stat-icon { color: var(--gold); font-size: 21px; } .quick-stats strong { display:block; font: 600 18px 'Fraunces', serif; } .quick-stats small { display:block; color: var(--muted); font-size: 10px; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(620px, 100%); height: 78px; padding: 9px 30px calc(9px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,254,250,.96); border-top: 1px solid var(--line); z-index: 5; } .nav-item { background: none; color: #9aa9a2; display: flex; align-items: center; flex-direction: column; gap: 4px; font-size: 20px; } .nav-item small { font-size: 10px; font-weight: 600; } .nav-item.active { color: var(--forest); }
.view-heading { align-items: flex-end; margin-bottom: 22px; } .date-label { color: var(--muted); font-size: 11px; } .summary-card { display: flex; align-items: center; justify-content: space-between; background: var(--forest); color: white; border-radius: 18px; padding: 18px; margin-bottom: 22px; } .summary-card .eyebrow { color: #9fc4b2; } .summary-card strong { font: 600 32px 'Fraunces', serif; display: inline-block; margin-right: 5px; } .summary-card span { color: #a9c8ba; font-size: 11px; } .mini-bars { height: 54px; display: flex; gap: 7px; align-items: flex-end; } .mini-bars i { width: 8px; background: #dca355; border-radius: 4px 4px 0 0; display:block; }
.history-list { display: grid; gap: 9px; } .history-item { background: var(--white); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; } .history-item strong { display:block; font: 600 16px 'Fraunces', serif; } .history-item small { color: var(--muted); font-size: 10px; } .history-count { color: var(--forest); font-weight: 700; font-size: 13px; }
.settings-list { background: var(--white); border: 1px solid var(--line); border-radius: 15px; overflow:hidden; } .setting-row { width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 17px 15px; background: var(--white); border-bottom: 1px solid var(--line); color: var(--ink); } .setting-row:last-child { border-bottom: 0; } .setting-row strong, .setting-row small { display:block; } .setting-row strong { font-size: 13px; } .setting-row small { color: var(--muted); font-size: 10px; margin-top: 4px; } .button-row b { color: var(--muted); font-size: 23px; font-weight: 400; }.switch { display:none; } .switch + i { width: 39px; height: 23px; border-radius: 15px; background: #ccd7d0; position: relative; transition: background .2s; } .switch + i:after { content:''; position:absolute; width:17px; height:17px; border-radius:50%; background:white; top:3px; left:3px; transition: left .2s; box-shadow: 0 1px 3px #999; } .switch:checked + i { background: var(--forest-2); } .switch:checked + i:after { left:19px; }
.about-note { display:flex; gap:12px; align-items:center; margin-top:22px; padding:16px; border-radius:14px; background: var(--mint); } .about-note > span { font: 24px 'Fraunces', serif; color: var(--forest); } .about-note strong { font: 600 15px 'Fraunces', serif; } .about-note p { margin:4px 0 0; color: #5c776b; font-size:11px; }.toast { position: fixed; bottom: 93px; left: 50%; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; background: var(--ink); color: white; padding: 11px 15px; border-radius: 10px; font-size: 12px; z-index: 10; transition: .25s; } .toast.show { opacity: 1; transform: translate(-50%, 0); }
.primary-small, .audio-button, .outline-button { border-radius: 8px; padding: 9px 12px; font-size: 11px; font-weight: 700; }
.quran-hero { display:flex; justify-content:space-between; align-items:center; padding:19px; color:white; background:var(--forest); border-radius:18px; margin-bottom:12px; } .quran-hero .eyebrow { color:#a9c8ba; } .quran-hero h3 { margin-bottom:4px; } .quran-hero p:last-child { margin:0; color:#c1d5ca; font-size:11px; } .primary-small { background:var(--gold); color:var(--forest); }
.quran-tools { display:flex; gap:8px; margin-bottom:13px; } .search-field { display:flex; align-items:center; gap:6px; background:white; border:1px solid var(--line); border-radius:10px; padding:0 11px; flex:1; color:var(--muted); } .search-field input { border:0; outline:0; width:100%; background:transparent; padding:10px 0; font:inherit; font-size:12px; } .audio-button { background:var(--mint); color:var(--forest); white-space:nowrap; } .surah-list { display:grid; gap:7px; } .surah-row { display:flex; align-items:center; gap:11px; background:var(--white); border:1px solid var(--line); border-radius:12px; padding:12px; text-align:left; color:var(--ink); } .surah-row > span:not(.surah-number) { flex:1; } .surah-number { width:27px; height:27px; display:grid; place-items:center; background:var(--mint); color:var(--forest); border-radius:50%; font-size:11px; } .surah-row strong, .surah-row small { display:block; } .surah-row strong { font:600 15px 'Fraunces', serif; } .surah-row small { color:var(--muted); font-size:10px; margin-top:3px; } .surah-row b { direction:rtl; font-family:serif; font-size:16px; font-weight:400; } .loading-state { padding:22px 8px; text-align:center; color:var(--muted); font-size:12px; }
.voice-select { border:1px solid var(--line); border-radius:8px; padding:0 8px; min-width:130px; background:var(--white); color:var(--ink); font:inherit; font-size:10px; }
.reader-panel { margin-top:14px; scroll-margin-top:16px; } .reader-heading { display:flex; align-items:center; gap:10px; margin-bottom:14px; } .reader-heading > div { flex:1; } .back-button { background:none; color:var(--forest); font-size:22px; } .reader-heading h3 { margin:0; } .ayah-list { display:grid; gap:9px; } .ayah { background:var(--white); border:1px solid var(--line); border-radius:13px; padding:14px; } .ayah-topline { display:flex; align-items:center; justify-content:space-between; } .ayah-arabic { direction:rtl; text-align:right; font:24px/1.9 serif; margin:10px 0 8px; } .ayah-translation { color:var(--muted); font:13px/1.55 'DM Sans', sans-serif; margin:0; } .ayah-number { width:25px; height:25px; display:grid; place-items:center; border-radius:50%; background:var(--mint); color:var(--forest); font-size:10px; } .ayah-audio { background:var(--mint); color:var(--forest); border-radius:7px; padding:6px 8px; font-size:10px; font-weight:700; }
.prayer-card { background:var(--forest); color:white; border-radius:18px; padding:18px; margin-bottom:12px; } .card-topline { display:flex; justify-content:space-between; align-items:flex-start; } .prayer-card .eyebrow { color:#a9c8ba; } .prayer-card h3 { margin:0; } .prayer-clock { color:var(--gold); font-size:26px; } .prayer-times { display:grid; grid-template-columns:repeat(5,1fr); gap:5px; margin:19px 0 14px; } .prayer-times span { color:#a9c8ba; font-size:9px; text-align:center; } .prayer-times b { display:block; color:white; font-size:11px; margin-top:5px; } .prayer-actions { display:flex; gap:8px; flex-wrap:wrap; } .outline-button { color:white; border:1px solid rgba(255,255,255,.27); background:transparent; } .worship-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; } .worship-card { background:var(--white); border:1px solid var(--line); border-radius:15px; padding:15px; min-height:210px; } .fasting-card { grid-column:1 / -1; min-height:0; } .fasting-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; } .fasting-heading .feature-icon { margin-bottom:7px; } .ramadan-day { padding:6px 8px; border-radius:8px; background:var(--mint); color:var(--forest-2); font-size:9px; font-weight:700; white-space:nowrap; } .fasting-card > p:not(.eyebrow) { margin:0 0 15px; } .fasting-times { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin-bottom:17px; } .fasting-times > div { padding:10px; border:1px solid var(--line); border-radius:10px; } .fasting-times span, .fasting-times small, .ramadan-dates span { display:block; color:var(--muted); font-size:9px; } .fasting-times strong { display:block; color:var(--forest); font:600 18px 'Fraunces',serif; margin:5px 0 3px; } .fasting-checklist { border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:14px 0; margin-bottom:14px; } .fasting-checklist .eyebrow { margin-bottom:9px; } .fasting-checklist label { display:flex; align-items:center; gap:8px; color:var(--ink); font-size:11px; margin:8px 0; } .fasting-check { accent-color:var(--forest-2); } .ramadan-dates { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-bottom:15px; } .ramadan-dates > div { padding:10px; background:#eff3ed; border-radius:10px; } .ramadan-dates strong { display:block; color:var(--forest); font-size:11px; margin-top:4px; } .feature-icon { display:block; color:var(--gold); font-size:23px; margin-bottom:12px; } .worship-card h3 { font-size:18px; margin-bottom:6px; } .worship-card p:not(.eyebrow) { color:var(--muted); font-size:11px; line-height:1.5; } .text-link { padding:0; background:none; color:var(--forest-2); font-size:11px; font-weight:700; } .qibla-compass { width:62px; height:62px; border:1px solid var(--line); border-radius:50%; display:grid; place-items:center; margin:11px 0; background:radial-gradient(circle, var(--mint) 0 35%, transparent 36%); } .qibla-compass span { color:var(--gold); font-size:27px; transition:transform .35s; } .qibla-card p { margin-bottom:8px; }
.adhan-controls { display:flex; align-items:end; gap:8px; flex-wrap:wrap; margin-top:12px; padding-top:12px; border-top:1px solid rgba(255,255,255,.14); } .adhan-controls label { display:grid; gap:5px; color:#a9c8ba; font-size:10px; font-weight:700; } .adhan-controls .voice-select { min-height:32px; }
.account-card { display:flex; align-items:center; gap:13px; background:var(--mint); border-radius:16px; padding:17px; margin-bottom:17px; } .account-avatar { width:46px; height:46px; border-radius:50%; background:var(--forest); color:white; display:grid; place-items:center; font:600 20px 'Fraunces',serif; } .account-card h3 { font-size:18px; margin:0 0 4px; } .account-card p { margin:0; color:#5c776b; font-size:11px; } .account-meta { display:block; color:#5c776b; font-size:10px; margin-top:5px; } .auth-form { display:grid; gap:12px; } .auth-mode { display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; background:#edf3ec; border-radius:10px; } .auth-mode-button { padding:9px 6px; border-radius:7px; background:transparent; color:var(--muted); font-size:11px; font-weight:700; } .auth-mode-button.active { background:var(--white); color:var(--forest); box-shadow:0 1px 4px rgba(25,69,56,.08); } .auth-form label { display:grid; gap:6px; color:var(--ink); font-size:11px; font-weight:700; } .auth-form input { border:1px solid var(--line); border-radius:9px; padding:12px; font:inherit; font-size:12px; background:var(--white); outline-color:var(--forest-2); } .field-hint { color:var(--muted); font-size:10px; font-weight:400; } .auth-submit { border-radius:9px; padding:12px; background:var(--forest); color:white; font-weight:700; font-size:12px; } .forgot-password { justify-self:end; padding:0; background:none; color:var(--forest-2); font-size:10px; font-weight:700; } .divider { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:10px; margin:18px 0 12px; } .divider:before, .divider:after { content:''; height:1px; background:var(--line); flex:1; } .social-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; } .social-button { display:flex; align-items:center; justify-content:center; gap:7px; background:var(--white); border:1px solid var(--line); border-radius:9px; padding:11px; color:var(--ink); font-size:12px; } .social-button b { display:inline-grid; place-items:center; width:17px; height:17px; margin:0; font-family:Arial,sans-serif; font-size:15px; line-height:1; } .google-mark { color:#4285f4; font-weight:700; } .apple-mark { position:relative; width:17px !important; height:17px !important; color:var(--ink); font-size:0 !important; } .apple-mark:before { content:''; position:absolute; left:2px; bottom:1px; width:13px; height:12px; background:currentColor; border-radius:48% 48% 45% 45%; } .apple-mark:after { content:''; position:absolute; top:0; right:1px; width:6px; height:4px; background:currentColor; border-radius:100% 0; transform:rotate(-35deg); } .auth-note { color:var(--muted); font-size:10px; line-height:1.5; margin:17px 3px; } .sign-out { color:var(--forest); border:1px solid var(--line); border-radius:9px; background:transparent; padding:10px 13px; font-size:11px; }
.account-links { margin-top: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.view-back { margin-right: 10px; }
.account-link { width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 17px 15px; background: var(--white); color: var(--ink); }
.account-link strong, .account-link small { display: block; }
.account-link strong { font-size: 13px; }
.account-link small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.account-link b { color: var(--muted); font-size: 23px; font-weight: 400; }
.feedback-form { display:grid; gap:12px; margin-top:14px; padding:15px; background:var(--white); border:1px solid var(--line); border-radius:15px; }
.feedback-form label { display:grid; gap:6px; color:var(--ink); font-size:11px; font-weight:700; }
.feedback-form select, .feedback-form textarea { width:100%; border:1px solid var(--line); border-radius:9px; padding:10px; background:var(--paper); color:var(--ink); font:inherit; font-size:12px; resize:vertical; }
.feedback-form > div { display:flex; align-items:center; gap:12px; }
.cancel-link { padding:0; background:none; color:var(--muted); font-size:11px; }
@media (min-width: 700px) { body { padding: 24px 0; } .app-shell { min-height: calc(100vh - 48px); border-radius: 28px; box-shadow: 0 20px 70px rgba(22, 64, 51, .16); } .bottom-nav { bottom: 24px; border-radius: 0 0 28px 28px; } }
.modal-open { overflow: hidden; }
.phone-verification { display:grid; gap:10px; margin-top:14px; padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--mint); }
.phone-verification p { margin:0; color:var(--forest); font-size:11px; }
.phone-verification label { display:grid; gap:6px; color:var(--ink); font-size:11px; font-weight:700; }
.phone-verification input { border:1px solid var(--line); border-radius:9px; padding:12px; font:inherit; font-size:14px; letter-spacing:3px; background:var(--white); }
.audio-button, .ayah-audio { display:inline-flex; align-items:center; justify-content:center; gap:6px; border:1px solid rgba(18,60,50,.08); box-shadow:0 5px 12px rgba(25,69,56,.08); transition:transform .2s, box-shadow .2s, background .2s; }
.audio-button:hover, .ayah-audio:hover { transform:translateY(-1px); box-shadow:0 8px 16px rgba(25,69,56,.14); background:#c9e6d7; }
.audio-button:active, .ayah-audio:active { transform:translateY(0); }
.reader-heading .audio-button:first-of-type { background:var(--forest); color:white; border-color:var(--forest); }
.reader-heading .audio-button:last-of-type { width:34px; padding:9px 0; background:var(--gold); color:var(--forest); }
.ayah-audio { min-width:79px; }
.qibla-card { position:relative; overflow:hidden; background:linear-gradient(145deg, var(--white) 0%, var(--mint) 160%); }
.qibla-card:after { content:'QIBLA'; position:absolute; right:-13px; bottom:18px; color:rgba(18,60,50,.07); font:600 39px 'Fraunces', serif; letter-spacing:2px; transform:rotate(-90deg); }
.qibla-compass { width:78px; height:78px; border:2px solid var(--forest-2); box-shadow:inset 0 0 0 5px var(--white), inset 0 0 0 7px var(--mint), 0 8px 18px rgba(25,69,56,.1); background:radial-gradient(circle, var(--gold) 0 5%, var(--mint) 6% 34%, transparent 35%); }
.qibla-compass span { position:relative; z-index:1; color:var(--forest); font-size:31px; text-shadow:0 2px 0 var(--white); }
.qibla-modal { position:fixed; inset:0; z-index:30; display:grid; place-items:center; padding:20px; }
.qibla-backdrop { position:absolute; inset:0; background:rgba(8,30,24,.72); backdrop-filter:blur(8px); }
.qibla-dialog { position:relative; width:min(100%, 430px); padding:22px; border:1px solid rgba(255,255,255,.4); border-radius:24px; background:var(--paper); color:var(--ink); box-shadow:0 25px 80px rgba(0,0,0,.28); animation:compass-in .28s ease-out; }
.qibla-dialog-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }
.qibla-dialog h2 { margin:2px 0 0; font:600 25px 'Fraunces', serif; }
.qibla-close { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:var(--mint); color:var(--forest); font-size:24px; line-height:1; }
.compass-large { position:relative; width:min(72vw, 280px); aspect-ratio:1; margin:25px auto 19px; border:2px solid var(--forest-2); border-radius:50%; background:radial-gradient(circle, var(--gold) 0 3%, var(--mint) 3.5% 23%, var(--paper) 23.5% 70%, var(--mint) 70.5% 71%, var(--paper) 71.5%); box-shadow:inset 0 0 0 9px var(--paper), inset 0 0 0 11px var(--line), 0 18px 36px rgba(25,69,56,.15); }
.compass-large:before, .compass-large:after { content:''; position:absolute; inset:10%; border:1px dashed rgba(18,60,50,.18); border-radius:50%; }
.compass-large:after { inset:49% 10%; border-width:1px 0 0; border-style:solid; border-color:rgba(18,60,50,.16); border-radius:0; }
.compass-mark { position:absolute; z-index:2; color:var(--forest); font-size:12px; font-weight:700; }
.compass-north { top:17px; left:50%; transform:translateX(-50%); color:var(--gold); }.compass-east { top:50%; right:18px; transform:translateY(-50%); }.compass-south { bottom:17px; left:50%; transform:translateX(-50%); }.compass-west { top:50%; left:18px; transform:translateY(-50%); }
.compass-ticks { position:absolute; inset:5%; border-radius:50%; background:repeating-conic-gradient(from 0deg, rgba(18,60,50,.3) 0deg 1deg, transparent 1deg 15deg); mask:radial-gradient(transparent 0 83%, #000 84% 87%, transparent 88%); }
.compass-needle { position:absolute; z-index:3; inset:17%; display:grid; place-items:center; transform-origin:center; transition:transform .6s cubic-bezier(.2,.8,.2,1); }
.compass-needle:before { content:''; width:4px; height:86%; border-radius:4px; background:linear-gradient(var(--gold) 0 50%, var(--forest) 50%); box-shadow:0 0 0 2px rgba(255,255,255,.35); }
.compass-needle span { position:absolute; color:var(--gold); font-size:22px; transform:rotate(45deg); text-shadow:0 1px 2px rgba(0,0,0,.15); }
.compass-center { position:absolute; z-index:4; inset:calc(50% - 18px); display:grid; place-items:center; border:3px solid var(--paper); border-radius:50%; background:var(--forest); color:white; font:20px 'Fraunces', serif; box-shadow:0 3px 8px rgba(0,0,0,.2); }
.compass-reading { margin:0; text-align:center; color:var(--forest); font:600 20px 'Fraunces', serif; }.compass-hint { margin:6px 0 0; text-align:center; color:var(--muted); font-size:10px; }
@keyframes compass-in { from { opacity:0; transform:translateY(12px) scale(.97); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (max-width: 520px) { .quran-tools { flex-wrap:wrap; } .quran-tools .search-field { flex-basis:100%; } .reader-heading { flex-wrap:wrap; } .reader-heading > div { min-width:120px; } .reader-heading .audio-button:first-of-type { margin-left:auto; } .reader-heading .audio-button:last-of-type { order:4; width:auto; padding:8px 10px; } .qibla-dialog { padding:18px; } }
