/* zikrist.com round 4 · the light group (r3/SPEC.md): theme (More · 5:10 pm) and qibla (Home · 6:35 am).
   Points are the app's, on the phone's 402 x 874 screen. */

/* ---------------------------------------------------------------- theme: More, Dark and Light ------------------ */
.r3-theme-scr { background: #0B0C0F; }
/* The switch is drawn lifted (below), so the bar's own disc stays empty under it. */
.r3-theme-scr .zks-home-disc { visibility: hidden; }
/* Settings' lit Report a problem would only show cut off under the bar here */
.r3-theme-scr .zks-home-report { visibility: hidden; }

/* Points GSAP places; everything is centred on them. */
.r3-theme-hub { position: absolute; left: 201px; top: 437px; width: 0; height: 0; }
.r3-theme-lift, .r3-theme-m, .r3-theme-mf { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.r3-theme-disc { position: absolute; left: -145px; top: -145px; width: 290px; height: 290px; display: block; }
.r3-theme-warm { left: -170px; top: -170px; width: 340px; height: 340px; }
.r3-theme-pearl { left: -200px; top: -200px; width: 400px; height: 400px; }

/* The blast: light flooding out of the disc, and the logo's hexagon flying out with it. The flash is drawn at a
   quarter of its 920 pt and GSAP scales it up, and the ring at the size the phone shows it (r3.css, .r3-fxw), so a
   phone's browser keeps small pictures of both. */
.r3-theme-flash { position: absolute; left: -115px; top: -115px; width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(236, 241, 248, 0.7) 30%, rgba(196, 210, 228, 0.28) 60%, rgba(169, 186, 208, 0) 100%); }
.r3-theme-ring { position: absolute; left: 0; top: 0; width: calc(402px * var(--s)); height: calc(874px * var(--s));
  transform: scale(calc(1 / var(--s))); transform-origin: 0 0; overflow: visible; }
.r3-theme-ring path { fill: none; stroke-linejoin: round; }
.r3-theme-ring .halo { stroke: #DCE5F0; stroke-width: 12px; }
.r3-theme-ring .core { stroke: #FFFFFF; stroke-width: 1.6px; }

/* The app's screens, small phones in Light: a dark frame, the island, a deep soft shadow. Each is drawn at its own
   size (--ms, the chapter's s) inside the box GSAP moves, so that box is only as big as the mini shows. */
.r3-theme-mini { position: absolute; left: -201px; top: -437px; width: 402px; height: 874px; border-radius: 54px;
  transform: scale(var(--ms, 1));
  overflow: hidden; isolation: isolate; background: #FAFAF9; color: #14161A; font-family: var(--zk-sans);
  box-shadow: 0 0 0 10px #1C1E22, 0 0 0 11px rgba(255, 255, 255, 0.16), 0 50px 110px -20px rgba(0, 0, 0, 0.85); }
.r3-theme-mscr { position: absolute; inset: 0; overflow: hidden; background: #030405; color: #F4F5F7; }
.r3-theme-mscr canvas { position: absolute; display: block; pointer-events: none; }
.r3-theme-mscr .zk-page { position: absolute; inset: 0; transition: none; }
/* Round 2's Dark screens, turned to Light: night to paper, moonlight to ink; their wall light and stars left out. */
.r3-theme-inv { filter: invert(1) hue-rotate(180deg); }
.r3-theme-inv canvas.zk-wall, .r3-theme-inv canvas[class*="wall"], .r3-theme-inv .zk-starfield { display: none; }
.r3-theme-mini .zks-touch { display: none !important; }
/* A mini is a still: nothing in it moves or blurs what is behind it, so Safari draws it whole into the mini's own
   small picture (a moving part or a glass would lift the mini into a full-size one). */
.r3-theme-mini * { animation: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.r3-theme-mini canvas.r3-theme-mblob { left: 0; top: 760px; width: 402px; height: 114px; position: absolute; }
.r3-theme-island { position: absolute; left: 138px; top: 11px; width: 126px; height: 37px; border-radius: 19px; background: #000; }

/* ---------------------------------------------------------------- qibla: the Qibla Finder drawer in Dark -------- */
.r3-qibla-scr { background: #030405; color: #F4F5F7; font-family: var(--zk-sans); }
/* Round 2's Qibla moment lies under it (Home, dimmed); this drawer covers its own. */
.r3-qibla-sheet { position: absolute; left: 0; right: 0; top: 74px; bottom: 0; z-index: 6; border-radius: 24px 24px 0 0;
  background: #15171B; border: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 0; }
/* A sheet's top edge is its own to light: the bend's warm white, quiet, brightest at the middle. */
.r3-qibla-sheet::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px;
  background: linear-gradient(to right, rgba(243, 227, 204, 0), rgba(243, 227, 204, 0.42) 50%, rgba(243, 227, 204, 0)); }
.r3-qibla-grab { position: absolute; left: 50%; top: 8px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.16); }
.r3-qibla-title { position: absolute; left: 24px; right: 24px; top: 24px; height: 44px; display: flex; align-items: center;
  justify-content: space-between; }
.r3-qibla-title b { font: 400 22px/28px Georgia, "Times New Roman", serif; letter-spacing: -0.1px; color: #F4F5F7; }
.r3-qibla-done { min-width: 64px; height: 36px; padding: 0 16px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 600; font-size: 15px; line-height: 20px; color: #F4F5F7; background: #1D2025; }
/* The readout keeps its place whatever it says: the degrees and the side, or Facing Qibla; then the Kaaba. */
.r3-qibla-readout { position: absolute; left: 0; right: 0; top: 493px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.r3-qibla-big { position: relative; width: 100%; height: 38px; }
.r3-qibla-big span { position: absolute; left: 0; right: 0; top: 0; font: 400 32px/38px Georgia, "Times New Roman", serif;
  letter-spacing: -0.4px; color: #F4F5F7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r3-qibla-big .face { opacity: 0; color: #ECEEF2; }
.r3-qibla-small { position: relative; width: 100%; height: 20px; }
.r3-qibla-small span { position: absolute; left: 0; right: 0; top: 0; font-size: 15px; line-height: 20px; color: #8E939C; }
.r3-qibla-small .hold { opacity: 0; }
.r3-qibla-kaaba { margin-top: 16px; font-size: 14px; line-height: 20px; color: #8E939C; white-space: nowrap; }
.r3-qibla-story { position: absolute; left: 0; right: 0; top: 734px; display: flex; justify-content: center; align-items: center;
  gap: 6px; font-size: 14px; line-height: 20px; color: #8E939C; }
.r3-qibla-story svg { width: 12px; height: 12px; }

/* ---------------------------------------------------------------- qibla: the compass, lifted --------------------- */
.r3-qibla-lift, .r3-qibla-float { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.r3-qibla-compass { position: absolute; left: -214.5px; top: -214.5px; width: 429px; height: 429px; display: block; overflow: visible; }
/* A disc of Dark's glass under it, the warm bend on its top edge, a deep soft shade. */
.r3-qibla-plate { position: absolute; left: -140px; top: -140px; width: 280px; height: 280px; border-radius: 50%;
  background: rgba(21, 23, 27, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 10px 24px -12px rgba(0, 0, 0, 0.5); }
.r3-qibla-plate::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 1px; pointer-events: none;
  background: radial-gradient(150px 44px at 50% 0, rgba(243, 227, 204, 0.6), rgba(243, 227, 204, 0.16) 60%, rgba(243, 227, 204, 0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.r3-qibla-glow { left: -240px; top: -240px; width: 480px; height: 480px; }

/* ---------------------------------------------------------------- qibla: from fajr's last look ------------------- */
/* The Lock Screen's first light (as ch-morning.css draws it at fajr's end). */
.r3-qibla-dawn { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 52% at 50% 106%, rgba(243, 227, 204, 0.26), rgba(243, 227, 204, 0.08) 48%, rgba(243, 227, 204, 0) 76%),
    radial-gradient(70% 30% at 50% 100%, rgba(255, 184, 92, 0.10), rgba(255, 184, 92, 0) 70%); }
/* Fajr's notification where fajr leaves it, held a little out of the glass; its icon is the flyer below. */
.r3-qibla-nfloat { position: absolute; inset: 0; }
.r3-qibla-nglow { left: -29px; top: 622px; width: 460px; height: 210px;
  background: radial-gradient(closest-side, rgba(243, 227, 204, 0.26), rgba(243, 227, 204, 0.08) 55%, rgba(243, 227, 204, 0)); }
.r3-qibla-note { position: absolute; left: 12px; top: 676px; width: 378px; box-sizing: border-box; display: flex; gap: 12px;
  align-items: flex-start; padding: 14px 16px 15px 14px; border-radius: 26px; color: #fff; font-family: var(--zk-text);
  background: rgba(46, 50, 58, 0.66); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 0.5px solid rgba(255, 255, 255, 0.16); border-top-color: rgba(243, 227, 204, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 10px 24px -12px rgba(0, 0, 0, 0.5); }
.r3-qibla-nic { display: block; width: 40px; height: 40px; border-radius: 10px; flex: none; margin-top: 1px; visibility: hidden; }
.r3-qibla-ntx { flex: 1; min-width: 0; padding-top: 1px; }
.r3-qibla-nrow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.r3-qibla-nrow b { font-weight: 600; font-size: 17px; line-height: 22px; white-space: nowrap; }
.r3-qibla-nrow b [lang="ar"] { font-family: "SF Arabic", "Geeza Pro", "Amiri", var(--zk-text); font-weight: 600; }
.r3-qibla-nrow time { font-size: 14px; line-height: 18px; color: rgba(255, 255, 255, 0.52); flex: none; }
.r3-qibla-note p { margin: 1px 0 0; font-size: 17px; line-height: 22px; color: rgba(255, 255, 255, 0.92); }
/* The icon that travels: the app icon, its hexagon taking over (11 pt to a point at 40 pt, as icon-256.png). */
.r3-qibla-fly { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.r3-qibla-fglow { position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 247, 234, 0.55), rgba(243, 227, 204, 0.18) 50%, rgba(243, 227, 204, 0)); }
.r3-qibla-fimg { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 10px;
  background: #000 url("../kit/brand/icon-256.png") center / cover; }
.r3-qibla-fhex { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; overflow: visible; }
.r3-qibla-fhex path { fill: #040505; stroke: rgba(255, 240, 214, 0.7); stroke-width: 0.8px; }
/* Round 2's Qibla moment gives only Home and its dimming here; its own drawer stays hidden under this one. */
.r3-qibla-scr .zks-hive-sheet { visibility: hidden; }
