/* r3 chapters of the Follow group at Fajr: follow, offline and tafseer (ch-maghrib.js). The reader is the kit's (.zk-rtop, .zk-endbar) with its
   list drawn here at fixed points; Home's landing borrows the kit's header, doors and beam. */

.r3-follow-scr, .r3-offline-scr, .r3-tafseer-scr { background: #030405; }
.r3-follow-scr *, .r3-offline-scr *, .r3-tafseer-scr *, .r3-follow-pop *, .r3-offline-pop *, .r3-tafseer-pop * { box-sizing: border-box; }

/* ---- the reader while following -------------------------------------------------------------------------------- */
.r3-follow-rd { position: absolute; inset: 0; background: #030405; isolation: isolate; }
.zk-screen canvas.r3-follow-rlight, .zk-screen canvas.r3-follow-wall { left: 0; top: 0; width: 402px; height: 874px; }
.r3-follow-rd .zk-rtop .ttl i { gap: 6px; }
/* The header's place: one line, rolling up as the imam moves on (RollingPlace). */
.r3-follow-where { position: relative; display: inline-block; width: 42px; height: 16px; overflow: hidden; }
.r3-follow-where span { position: absolute; left: 0; top: 0; white-space: nowrap; }
/* The list: the passed ayah's last line sits in a long soft fade under the header. */
.r3-follow-verses { position: absolute; left: 0; right: 0; top: 150px; bottom: 120px; overflow: hidden; z-index: 6;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 12px, #000 66px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to bottom, transparent 0, transparent 12px, #000 66px, #000 calc(100% - 36px), transparent); }
.r3-follow-track { position: absolute; left: 16px; right: 16px; top: 0; height: 1px; }
.r3-follow-row { position: absolute; left: 0; right: 0; padding: 22px 18px 24px; }
/* An ayah's block, in the list and lifted out of it: the band, the Arabic word by word, Pickthall by phrase. */
.r3-follow-band { position: absolute; inset: 0; border-radius: 24px; background: rgba(255, 247, 234, 0.03);
  border: 1px solid rgba(255, 247, 234, 0.05); border-top-color: rgba(255, 247, 234, 0.18); }
.r3-follow-ar { position: relative; text-align: center; text-wrap: balance; font: 26px/56px var(--zk-arabic); color: #F4F5F7; }
/* The tide's crest: a warm light on the word being said (TideWord.tsx), --c 0..1. */
.r3-follow-w { display: inline-block;
  text-shadow: 0 0 14px rgba(243, 227, 204, calc(var(--c, 0) * 0.75)), 0 0 2px rgba(255, 247, 234, calc(var(--c, 0) * 0.6)); }
.r3-follow-tr { position: relative; margin-top: 10px; text-align: center; text-wrap: balance; font: 400 20px/31px var(--zk-text); }
/* End session where the band puts it: 44 tall, 24 off the foot (readerLayout.ts). */
.r3-follow-rd .zk-endbar.r3-follow-end { bottom: 24px; height: 44px; padding: 0 16px; gap: 8px; }

/* ---- follow: Home's landing and its lit page ---------------------------------------------------------------- */
.r3-follow-home { position: absolute; inset: 0; z-index: 2; }
.r3-follow-bism { position: absolute; left: 0; right: 0; top: 308px; height: 84px; text-align: center; direction: rtl;
  font: 42px/84px var(--zk-arabic); color: #F4F5F7; }
/* The live glow as the imam says each word: accent ink under a warm halo. */
.r3-follow-bism span { text-shadow: 0 0 12px rgba(255, 247, 234, calc(var(--c, 0) * 0.62)), 0 0 2px rgba(255, 247, 234, calc(var(--c, 0) * 0.5)); }
.r3-follow-btn { position: absolute; left: 87px; top: 648px; width: 228px; height: 56px; padding: 0 26px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: #15171B; display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/20px var(--zk-text); color: #F4F5F7; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(243, 227, 204, 0.30); }
.r3-follow-btn svg { position: relative; width: 18px; height: 18px; color: #F3E3CC; }
.r3-follow-btn > span:last-child { position: relative; }
.r3-follow-btnglow { position: absolute; inset: -1px; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 34px rgba(243, 227, 204, 0.26), inset 0 1px 0 rgba(243, 227, 204, 0.6), inset 0 0 18px rgba(243, 227, 204, 0.08); }
.r3-follow-exit { position: absolute; left: 24px; top: 60px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px;
  background: #15171B; border: 1px solid rgba(255, 255, 255, 0.12); border-top-color: rgba(243, 227, 204, 0.22); color: #C9CDD3; }
.r3-follow-exit svg { width: 20px; height: 20px; }

/* ---- follow: what lifts out ---------------------------------------------------------------------------------- */
.r3-follow-pop, .r3-offline-pop { font-family: var(--zk-text); color: #F4F5F7; -webkit-font-smoothing: antialiased; }
.r3-follow-arcs { position: absolute; top: 0; height: 874px; overflow: visible; fill: none; stroke-linecap: round; }
.r3-follow-arcs path { vector-effect: non-scaling-stroke; }
.r3-follow-lglow { left: 21px; top: 548px; width: 360px; height: 180px; }
/* The found moment, landing hard: a warm flash, the pill's edge of light and a wash, all from the lifted pill (201, 632). */
.r3-follow-wash { position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 72%, rgba(255, 247, 234, 0.22), rgba(243, 227, 204, 0.08) 45%, rgba(243, 227, 204, 0) 75%); }
.r3-glow.r3-follow-flash { left: 1px; top: 432px; width: 400px; height: 400px;
  background: radial-gradient(closest-side, rgba(255, 252, 245, 0.9), rgba(255, 247, 234, 0.45) 30%, rgba(243, 227, 204, 0.12) 65%, rgba(243, 227, 204, 0) 100%); }
/* The listening pill (FollowPill.tsx), 48 tall where Follow the imam stood; lifted, it wears glass and a deep shadow. */
.r3-follow-listen { position: absolute; left: 101px; top: 652px; width: 200px; height: 48px; }
.r3-follow-pill { position: absolute; inset: 0; border-radius: 14px; background: rgba(21, 23, 27, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 0 40px rgba(243, 227, 204, 0.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.r3-follow-lift-skin { position: absolute; inset: -1px; border-radius: 14px; border-top: 1px solid rgba(243, 227, 204, 0.42);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 10px 24px -12px rgba(0, 0, 0, 0.5), 0 0 48px rgba(243, 227, 204, 0.12); }
.r3-follow-ring { position: absolute; inset: -1px; border-radius: 15px; border: 1px solid rgba(255, 247, 234, 0.55);
  box-shadow: 0 0 22px 2px rgba(243, 227, 204, 0.32), inset 0 0 14px rgba(243, 227, 204, 0.18); }
.r3-follow-state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px;
  font: 600 16px/20px var(--zk-text); color: #ECEEF2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.r3-follow-s2 { gap: 10px; }
.r3-follow-bars { display: flex; align-items: center; gap: 3px; height: 18px; }
.r3-follow-bars i { display: block; width: 3px; height: 18px; border-radius: 2px; background: linear-gradient(#FFF7EA, #F3E3CC);
  box-shadow: 0 0 6px rgba(243, 227, 204, 0.55); }
.r3-follow-wdot { width: 8px; height: 8px; border-radius: 50%; background: #F3E3CC; box-shadow: 0 0 10px 3px rgba(243, 227, 204, 0.45); }
.r3-follow-note { position: absolute; top: 62px; left: -60px; right: -60px; display: flex; align-items: center; justify-content: center; gap: 6px;
  font: 400 13px/18px var(--zk-text); color: #8E939C; white-space: nowrap; }
.r3-follow-note svg { width: 12px; height: 12px; color: #A9ADB5; }
/* 67:1 lifted out of the band: the same block as the row in the phone (16 in, 228 down, 370 wide). */
.r3-follow-float { position: absolute; inset: 0; }
/* its light: wide enough to spill past the card's edges, beyond the phone */
.r3-glow.r3-follow-cglow { left: -149px; top: 116px; width: 700px; height: 460px;
  background: radial-gradient(closest-side, rgba(255, 247, 234, 0.34), rgba(243, 227, 204, 0.22) 60%, rgba(243, 227, 204, 0.08) 82%, rgba(243, 227, 204, 0) 100%); }
.r3-follow-card { position: absolute; left: 16px; top: 228px; width: 370px; padding: 22px 18px 24px; border-radius: 24px; }
.r3-follow-card .r3-follow-card-skin { inset: 0; }

/* ---- offline ------------------------------------------------------------------------------------------------- */
/* The airplane: centred on its group's point; 64 points drawn, scaled to the status bar's 15. */
.r3-offline-air { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.r3-offline-plane { position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; display: block; color: #F4F5F7;
}
.r3-offline-plane svg { display: block; width: 64px; height: 64px; }
.r3-offline-pglow { left: -150px; top: -150px; width: 300px; height: 300px; }
.r3-offline-glint { left: 306.5px; top: -0.5px; width: 56px; height: 56px; }
/* "Audio stays on this phone": a quiet glass line settling at the phone's foot. */
.r3-offline-lockwrap { position: absolute; inset: 0; }
.r3-offline-lock { position: absolute; left: 67px; top: 774px; width: 268px; height: 46px; display: flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 14px; font: 500 16px/20px var(--zk-text); color: #C9CDD3; white-space: nowrap;
  background: rgba(21, 23, 27, 0.82); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.10); border-top-color: rgba(243, 227, 204, 0.30);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 10px 24px -12px rgba(0, 0, 0, 0.5); }
.r3-offline-lock svg { width: 15px; height: 15px; color: #F3E3CC; flex: none; }

/* ---- tafseer ------------------------------------------------------------------------------------------------- */
/* Done's light as it is taken (the recite chapter's, on the kit's Done) */
.r3-tafseer-xglow { position: absolute; left: -42px; top: -38px; width: 156px; height: 120px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 247, 234, 0.32), rgba(243, 227, 204, 0.1) 55%, rgba(243, 227, 204, 0)); }
/* The saved card lifted out: a copy of Home's at the same place, on glass, a deep shadow, its top edge lit */
.r3-tafseer-float, .r3-tafseer-breath, .r3-tafseer-lift { position: absolute; inset: 0; }
.r3-tafseer-breath, .r3-tafseer-lift { transform-origin: 201px 686px; }
.r3-glow.r3-tafseer-glow { left: -59px; top: 556px; width: 520px; height: 260px; }
.r3-tafseer-lift .r3-tafseer-scard { opacity: 0; }
.r3-tafseer-scard .zks-home-sface { position: relative; }
.r3-tafseer-shadow { position: absolute; inset: 0; border-radius: 24px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 10px 24px -12px rgba(0, 0, 0, 0.5); }
.r3-tafseer-glass { position: absolute; inset: 0; border-radius: 23px; background: rgba(17, 18, 22, 0.84);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.r3-tafseer-sedge { position: absolute; left: 22px; right: 22px; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(243, 227, 204, 0), rgba(255, 247, 234, 0.8) 50%, rgba(243, 227, 204, 0));
  box-shadow: 0 0 12px rgba(255, 247, 234, 0.25); }
/* Read the meaning catching the light: a warm wash and a lit top edge on the pill */
.r3-tafseer-scard .pillr { position: relative; }
.r3-tafseer-scard .pillr > :not(.r3-tafseer-plight) { position: relative; }
/* the light comes first in the pill, so the kit's first-child / last-child glyph sizes are given again by type */
.r3-tafseer-scard .pillr svg:first-of-type { width: 14px; height: 14px; }
.r3-tafseer-scard .pillr svg:last-of-type { width: 6px; height: 10px; }
.r3-tafseer-plight { position: absolute; inset: -1px; border-radius: 14px; pointer-events: none; background: rgba(255, 247, 234, 0.08);
  box-shadow: 0 0 22px rgba(243, 227, 204, 0.32), inset 0 1px 0 rgba(243, 227, 204, 0.6); }


/* ---- follow, round 5: the hook, and the hold to focus on the lifted card ------------------------------------------ */
/* Follow the imam lifted out of the phone: the same button, glass-deep, over a swell of light. */
.r3-follow-btnlift { box-shadow: inset 0 1px 0 rgba(243, 227, 204, 0.5), 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 60px rgba(243, 227, 204, 0.25); }
.r3-glow.r3-follow-hookglow { left: -199px; top: 236px; width: 800px; height: 800px;
  background: radial-gradient(closest-side, rgba(255, 247, 234, 0.5), rgba(243, 227, 204, 0.2) 40%, rgba(243, 227, 204, 0.06) 70%, rgba(243, 227, 204, 0) 100%); }
/* The lifted card's edge answering the hold, and 67:2 in the same frame. */
.r3-follow-cedge { position: absolute; inset: -1px; border-radius: 24px; pointer-events: none; border: 1px solid rgba(255, 247, 234, 0.55);
  box-shadow: 0 0 34px rgba(243, 227, 204, 0.25), inset 0 0 26px rgba(243, 227, 204, 0.10); }
/* Focus (meaning) mode: the phrase being said wears the same warm crest as the Arabic's words. */
.r3-follow-card .r3-follow-ph { text-shadow: 0 0 14px rgba(243, 227, 204, calc(var(--c, 0) * 0.7)), 0 0 2px rgba(255, 247, 234, calc(var(--c, 0) * 0.5)); }
/* The hold: a soft light and a ring that closes round where the card is held (TRANSLATION_HOLD_MS). */
.r3-follow-press { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.r3-follow-pglow { left: -90px; top: -90px; width: 180px; height: 180px; }
.r3-follow-pring { position: absolute; left: -50px; top: -50px; width: 100px; height: 100px; overflow: visible; fill: none; }
.r3-follow-pring0 { stroke: rgba(255, 247, 234, 0.16); stroke-width: 2; }
.r3-follow-parc { stroke: #FFF7EA; stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(243, 227, 204, 0.8)); }
.r3-follow-at { display: grid; }
.r3-follow-at > span { grid-area: 1 / 1; white-space: nowrap; }
/* focus mode's card: the same height as 67:1's, the long ayah scrolling inside it, soft at its top and foot */
.r3-follow-card2 .r3-follow-view { position: relative; height: 176px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 84%, transparent); }
