/* The day screens: Follow. Home's lit Bismillah page (LitCanvas.tsx, FollowPill.tsx) and the reader following
   (spec 0019 and 0020; ReaderTopRow, VerseBlock + followTide.ts, ui/chrome). The kit's .zk-rtop, .zk-verses,
   .zk-ayah, .zk-w, .zk-t and .zk-endbar draw the reader; these rules only add what the moments need. */
.zks-follow-home, .zks-follow-reader { position: absolute; inset: 0; }
/* The reader has Home's night under it, with no stars (they are Home's own sky). */
.zks-follow-reader { background: #030405; isolation: isolate; }
.zks-follow-page canvas.zks-follow-wall, .zks-follow-page canvas.zks-follow-rlight { left: 0; top: 0; width: 402px; height: 874px; }

/* The landing's Bismillah, lit word by word as the imam says it: the live glow, accent with a warm halo. */
.zks-follow-bism span { transition: color .3s, text-shadow .3s; }
.zks-follow-bism span.lit { color: #ECEEF2; text-shadow: 0 0 9px rgba(255, 247, 234, .55); }

/* The lit page's way out, top left: the ‹ square (ExitControl), where the reader's Done then stands. */
.zks-follow-exit { position: absolute; left: 24px; top: 60px; z-index: 8; width: 44px; height: 44px; box-sizing: border-box; display: grid; place-items: center;
  border-radius: 14px; background: #15171B; border: 1px solid rgba(255, 255, 255, .12); border-top-color: rgba(243, 227, 204, .22); color: #C9CDD3; opacity: 0; }
.zks-follow-exit svg { width: 20px; height: 20px; }

/* The follow pill over the lit page's footer (48 tall, 644 to 692), and its note 14 under it. */
.zks-follow-stack { position: absolute; left: 0; right: 0; top: 644px; z-index: 8; display: flex; flex-direction: column; align-items: center; gap: 14px; opacity: 0; }
.zks-follow-pill { height: 48px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 12px; padding: 0 22px 0 18px; border-radius: 14px;
  background: rgba(21, 23, 27, .86); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 40px rgba(243, 227, 204, .10);
  font: 600 16px/20px var(--zk-sans); color: #ECEEF2; white-space: nowrap; transition: border-color .3s, box-shadow .3s; }
/* Locating: a speech heard, a brighter rim and glow. */
.zks-follow-pill.locating { padding-left: 16px; border-color: rgba(255, 255, 255, .20); box-shadow: 0 0 40px rgba(243, 227, 204, .18); }
.zks-follow-bars { display: flex; align-items: center; gap: 3px; height: 18px; }
.zks-follow-bars i { width: 3px; border-radius: 2px; background: #ECEEF2; opacity: .45; animation: zks-follow-sweep 1.5s ease-in-out infinite; }
.zks-follow-bars i:nth-child(1) { height: 8px; animation-delay: -1.5s; }
.zks-follow-bars i:nth-child(2) { height: 14px; animation-delay: -1.2s; }
.zks-follow-bars i:nth-child(3) { height: 6px; animation-delay: -.9s; }
.zks-follow-bars i:nth-child(4) { height: 11px; animation-delay: -.6s; }
@keyframes zks-follow-sweep { 0%, 55%, 100% { opacity: .45; } 25% { opacity: 1; } }
.zks-follow-arc { display: none; width: 20px; height: 20px; animation: zks-follow-turn .9s linear infinite; }
.zks-follow-pill.locating .zks-follow-arc { display: block; }
.zks-follow-pill.locating .zks-follow-bars { display: none; }
@keyframes zks-follow-turn { to { transform: rotate(360deg); } }
.zks-follow-note { font: 400 13px/18px var(--zk-sans); color: #8E939C; }
/* Found, on the reader: the warm dot and the place, 714 to 762, in the slot over the band. */
.zks-follow-found { position: absolute; left: 50%; top: 714px; z-index: 10; transform: translateX(-50%); gap: 10px; padding-left: 16px;
  border-color: rgba(255, 255, 255, .20); box-shadow: 0 0 40px rgba(243, 227, 204, .14); font-variant-numeric: tabular-nums; opacity: 0; }
.zks-follow-wdot { width: 8px; height: 8px; border-radius: 50%; background: #F3E3CC; box-shadow: 0 0 10px 3px rgba(243, 227, 204, .45); }

/* The reader: words drawn by the moment (ink, the tide's fill and its crest), the list placed by it. */
.zks-follow-reader .zk-vtrack { transition: transform .3s cubic-bezier(.3, .7, .2, 1); }
.zks-follow-reader .zk-ayah { transition: opacity .35s; }
.zks-follow-reader .zk-w { color: var(--zk-ink); transition: none;
  text-shadow: 0 0 14px rgba(243, 227, 204, calc(var(--c, 0) * .75)), 0 0 2px rgba(255, 247, 234, calc(var(--c, 0) * .6)); }
.zks-follow-reader .zk-t { transition: color .3s; }
.zks-follow-reader .ttl .where { display: inline-block; }
.zks-follow-chrome { transition: opacity .2s; }
/* End session where the band puts it: a 44 pt pill centred in the 52 pt band, 20 pt off the foot (readerLayout.ts). */
.zks-follow-reader .zk-endbar { bottom: 24px; height: 44px; box-sizing: border-box; padding: 0 16px; gap: 8px; }

/* Back to the recited ayah: a floating pill 8 over the band (Pill.tsx: 44 tall, 15/20 semibold in the accent). */
.zks-follow-back { position: absolute; left: 50%; top: 750px; z-index: 10; height: 44px; box-sizing: border-box; padding: 0 16px; display: flex; align-items: center;
  border-radius: 14px; background: #15171B; border: 1px solid rgba(255, 255, 255, .12); border-top-color: rgba(243, 227, 204, .22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18); transform: translateX(-50%) scale(var(--sw, 1)); opacity: 0; }
.zks-follow-back b { display: flex; align-items: center; gap: 8px; font: 600 15px/20px var(--zk-sans); color: #ECEEF2; white-space: nowrap; }
.zks-follow-back svg { width: 12px; height: 14px; }

/* Reduce Motion: the bars rest at their own strengths and the arc's quarter rests at the top right. */
@media (prefers-reduced-motion: reduce) {
  .zks-follow-bars i, .zks-follow-arc { animation: none; }
  .zks-follow-bars i:nth-child(1) { opacity: .6; }
  .zks-follow-bars i:nth-child(2) { opacity: 1; }
  .zks-follow-bars i:nth-child(3) { opacity: .5; }
  .zks-follow-bars i:nth-child(4) { opacity: .8; }
}
