/* Shoaib & Shifat · shared base (v3). Each page adds its own theme file. */
:root {
  --f-script: "Luxurious Script", "Pinyon Script", cursive;
  --f-serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --f-caps: "Cinzel", "Trajan Pro", serif;
  --f-quran: "Amiri Quran", "Amiri", serif;
  --f-ar: "Amiri", "Amiri Quran", serif;
  --f-ur: "Noto Nastaliq Urdu", serif;
  --ivory: #fbf6ea; --ivory-hi: #fffdf7; --ivory-lo: #efe4ca;
  --gold-1: #6f5119; --gold-2: #a8812f; --gold-3: #e3c47e; --gold-4: #fff3cf;
  --foil: linear-gradient(105deg, #7a5a1e 0%, #b48a3a 16%, #e6ca86 32%, #fff3cf 42%, #e2c47c 50%, #a37b30 64%, #e0c27a 80%, #7a5a1e 100%);
  --foil-deep: linear-gradient(105deg, #5a3f10 0%, #8d6a26 20%, #bd9442 38%, #e2c47c 47%, #a98034 58%, #775719 76%, #a27a30 90%, #5a3f10 100%);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --jali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='black' stroke-width='1'%3E%3Crect x='23' y='23' width='34' height='34'/%3E%3Crect x='23' y='23' width='34' height='34' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='7'/%3E%3Cpath d='M0 0l23 23M80 0L57 23M0 80l23-23M80 80L57 57M40 0v16M40 80V64M0 40h16M80 40H64'/%3E%3C/g%3E%3C/svg%3E");
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
[lang="ar"], [lang="ur"] { direction: rtl; unicode-bidi: isolate; }
/* nasheed toggle, bottom right; its bars move while it plays and it pulses until the first tap */
.music { position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  color: var(--music-ink, #8d5a4c); background: var(--music-bg, rgba(255, 252, 248, .82)); border: 1px solid var(--music-line, rgba(166, 134, 80, .45));
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35); }
.music::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid currentColor; opacity: 0; animation: music-ping 2.4s ease-out infinite; }
.music.on::after { animation: none; }
@keyframes music-ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
.music .bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.music .bars i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: 50% 100%; transform: scaleY(.3); }
.music.on .bars i { animation: music-bar 1s ease-in-out infinite alternate; }
.music.on .bars i:nth-child(2) { animation-delay: -.4s; } .music.on .bars i:nth-child(3) { animation-delay: -.7s; } .music.on .bars i:nth-child(4) { animation-delay: -.2s; }
@keyframes music-bar { 0% { transform: scaleY(.25); } 100% { transform: scaleY(1); } }
.nb { white-space: nowrap; }
html.is-locked, html.is-locked body { overflow: hidden; }
body { margin: 0; min-height: 100svh; overflow-x: clip; font-family: var(--f-serif); font-size: 20px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
svg { display: block; overflow: visible; }
p, h1, h2, h3 { margin: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.container { position: relative; width: min(100% - 40px, 540px); margin: 0 auto; }
.caps { font-family: var(--f-caps); font-weight: 600; font-size: 11.5px; line-height: 1.7; letter-spacing: .32em; text-transform: uppercase; padding-left: .32em; }
.foil, .foil-deep { background-size: 240% 100%; background-position: 0% 0; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.foil { background-image: var(--foil); }
.foil-deep { background-image: var(--foil-deep); }
.fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 90; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, transparent, var(--gold-2), var(--gold-3), var(--gold-2)); }

/* ornaments */
.divider { width: 230px; height: 24px; margin: 0 auto; color: var(--gold-2); }
.divider svg { width: 100%; height: 100%; }
.divider .ln { stroke: currentColor; stroke-width: 1; fill: none; }
.divider .dot, .divider .ros { fill: currentColor; }
.corner { position: absolute; width: 58px; height: 58px; z-index: 2; color: var(--gold-2); pointer-events: none; }
.corner svg { width: 100%; height: 100%; }
.corner.tl { left: 5px; top: 5px; } .corner.tr { right: 5px; top: 5px; } .corner.bl { left: 5px; bottom: 5px; } .corner.br { right: 5px; bottom: 5px; }
.corner.tr svg { transform: scaleX(-1); } .corner.bl svg { transform: scaleY(-1); } .corner.br svg { transform: scale(-1, -1); }
[data-rosette] svg { width: 100%; height: 100%; }

/* cards (ivory paper) */
.card-wrap { position: relative; }
.card { position: relative; text-align: center; color: var(--ink);
  background: radial-gradient(130% 80% at 50% 0%, var(--ivory-hi) 0%, var(--ivory) 55%, var(--ivory-lo) 100%); }
.card::after { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .45; mix-blend-mode: multiply; pointer-events: none; border-radius: inherit; }
.card-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.card-lines path { fill: none; stroke: var(--gold-2); vector-effect: non-scaling-stroke; }
.card-lines .l1 { stroke-width: 1.5; } .card-lines .l2 { stroke-width: .8; opacity: .75; }
.card-body { position: relative; z-index: 2; }
.card .caps { color: var(--gold-1); }

/* text bits */
.w { display: inline-block; }
.surah-band { position: relative; height: 54px; display: grid; place-items: center; }
.surah-band svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.surah-band .band-fill { fill: rgba(180, 138, 58, .12); }
.surah-band .band-line { fill: none; stroke: var(--gold-2); }
.surah-band .band-ros { fill: var(--gold-2); }
.surah-name { position: relative; font-family: var(--f-quran); font-size: 25px; line-height: 1; color: var(--gold-1); padding-top: 6px; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--f-caps); font-weight: 600; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--btn-ink);
  border: 1px solid var(--btn-line); overflow: hidden; isolation: isolate; transition: color .4s var(--ease), border-color .4s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--foil); background-size: 200% 100%; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover, .btn:focus-visible { color: #24180a; border-color: var(--gold-3); outline: none; }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.solid { color: #24180a; border-color: var(--gold-3); }
.btn.solid::before { transform: none; }

/* countdown */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 420px; margin: 0 auto; }
.cd-cell { position: relative; padding: 20px 0 14px; border-radius: 999px 999px 8px 8px; border: 1px solid var(--cd-line); background: var(--cd-bg); }
.cd-cell::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--cd-line); opacity: .45; border-radius: inherit; }
.cd-num { position: relative; height: 1.15em; overflow: hidden; perspective: 300px; font-family: var(--f-serif); font-weight: 600; font-size: clamp(32px, 9.2vw, 46px); line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; color: var(--cd-ink); text-align: center; }
.cd-num span { display: block; transform-origin: 50% 50%; }
.cd-lab { display: block; font-family: var(--f-caps); font-weight: 600; font-size: 9px; letter-spacing: .28em; padding-left: .28em; color: var(--cd-lab); margin-top: 4px; text-align: center; }

/* map window */
.map-frame { position: relative; width: 100%; aspect-ratio: 4 / 3.4; border-radius: 160px 160px 10px 10px; overflow: hidden; border: 1px solid var(--gold-3); background: var(--map-bg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.map-frame::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--gold-3); border-radius: 154px 154px 6px 6px; pointer-events: none; opacity: .6; }
/* the map sits a little taller than its arch so Google's corner buttons stay tucked above the curve */
.map-frame iframe { position: absolute; left: 0; top: -56px; width: 100%; height: calc(100% + 56px); border: 0; }
.map-pin { position: absolute; left: 50%; top: calc(50% - 28px); width: 34px; height: 46px; margin: -46px 0 0 -17px; pointer-events: none; z-index: 2; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); }


.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
