/* The Ishra quiz (/quiz). The site's own night: black, Inter, the gold of the app, and the sky
   of the city pages drifting behind in the palette of a prayer. One column, thumb-first. */

/* the orb's glow is wider than a phone; clip it at the page, or a phone lays the page out wider */
html:has(.qz-body) { overflow-x: clip; }
.qz-body { min-height: 100dvh; background: var(--bg); color: var(--text); overflow-x: clip; }
.qz { overflow-x: clip; }
.qz-q:focus { outline: none; }

/* the sky, as on /prayer-times/<city>: three slow lights. --s1..3 are set per screen. */
.qz-sky { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
  --s1: #D08FB2; --s2: #6A66A6; --s3: #33406E;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 92%); mask-image: linear-gradient(#000 40%, transparent 92%); }
.qz-sky span { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: 0.42; will-change: transform; transition: opacity 1.2s; }
.qz-sky .s1 { left: -20vmax; top: -34vmax; background: radial-gradient(circle closest-side, color-mix(in srgb, var(--s1) 70%, transparent), transparent); animation: qzDrift1 26s ease-in-out infinite alternate; }
.qz-sky .s2 { right: -24vmax; top: -22vmax; background: radial-gradient(circle closest-side, color-mix(in srgb, var(--s2) 65%, transparent), transparent); animation: qzDrift2 32s ease-in-out infinite alternate; }
.qz-sky .s3 { left: 18%; top: 4vmax; width: 60vmax; height: 60vmax; opacity: 0.3;
  background: radial-gradient(circle closest-side, color-mix(in srgb, var(--s3) 70%, transparent), transparent); animation: qzDrift3 38s ease-in-out infinite alternate; }
.qz-body.quiet .qz-sky span { opacity: 0.22; }
@keyframes qzDrift1 { to { transform: translate(18vmax, 10vmax) scale(1.15); } }
@keyframes qzDrift2 { to { transform: translate(-20vmax, 14vmax) scale(0.9); } }
@keyframes qzDrift3 { to { transform: translate(-14vmax, -8vmax) scale(1.2); } }
.qz-dust { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
@media (prefers-reduced-motion: reduce) { .qz-sky span { animation: none; } }

/* top: back, the name, the language, and a hairline of progress */
.qz-top { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  max-width: 560px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px 10px; }
.qz-back, .qz-lang { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; }
.qz-back:hover, .qz-lang:hover { background: rgba(255,255,255,0.1); }
.qz-back[hidden] { display: grid; visibility: hidden; }
.qz-lang { justify-self: end; }
.qz-brand { justify-self: center; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--text); }
.qz-bar { grid-column: 1 / -1; height: 3px; margin-top: 12px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; transition: opacity 0.4s; }
.qz-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--gold); transition: width 0.45s cubic-bezier(.2,.7,.2,1); }
.qz-bar.off { opacity: 0; }

/* a screen */
.qz { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; padding: 18px 20px calc(120px + env(safe-area-inset-bottom)); }
.qz-screen { animation: qzIn 0.42s cubic-bezier(.2,.7,.2,1) both; }
.qz-screen.out, .qz-foot.out { animation: qzOut 0.18s ease-in both; }
.qz-foot { animation: qzFade 0.42s ease both; }
@keyframes qzFade { from { opacity: 0; } }
@keyframes qzIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes qzOut { to { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .qz-screen, .qz-screen.out { animation: none; } }

.qz-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.qz-q { font-size: clamp(25px, 6.4vw, 32px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.16; }
.qz-hint { color: var(--muted); font-size: 15.5px; line-height: 1.5; margin-top: 10px; }

/* answers */
.qz-opts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.qz-opt { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  padding: 17px 18px; border-radius: 18px; font: inherit; font-size: 16.5px; font-weight: 500; color: var(--text);
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.09);
  transition: background 0.18s, border-color 0.18s, transform 0.12s; -webkit-tap-highlight-color: transparent; }
.qz-opt:hover { background: rgba(255,255,255,0.07); }
.qz-opt:active { transform: scale(0.985); }
.qz-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.qz-opt[aria-pressed="true"], .qz-opt[aria-checked="true"] { border-color: rgba(224,169,126,0.75); background: rgba(224,169,126,0.10); }
.qz-opt .t { flex: 1; min-width: 0; }
.qz-opt .t small { display: block; color: var(--muted); font-size: 13.5px; font-weight: 400; margin-top: 3px; line-height: 1.4; }
.qz-opt .g { flex: none; width: 28px; height: 28px; color: rgba(255,255,255,0.9); }
.qz-opt[aria-pressed="true"] .g { color: var(--gold); }
.qz-opt .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(255,255,255,0.28); display: grid; place-items: center; transition: background 0.15s, border-color 0.15s; }
.qz-opt[aria-checked="true"] .box { background: var(--gold); border-color: var(--gold); }
.qz-opt .box svg { width: 14px; height: 14px; color: #000; opacity: 0; }
.qz-opt[aria-checked="true"] .box svg { opacity: 1; }
.qz-opts.two { grid-template-columns: 1fr 1fr; }
.qz-opts.two .qz-opt { flex-direction: column; text-align: center; gap: 10px; padding: 22px 12px; }
.qz-opts.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qz-opts.chips li { flex: none; }
.qz-opts.chips .qz-opt { width: auto; padding: 12px 16px; border-radius: 999px; font-size: 15.5px; gap: 10px; }
.qz-opts.chips .qz-opt .box { width: 18px; height: 18px; border-radius: 50%; }
.qz-opts.chips .qz-opt .box svg { width: 11px; height: 11px; }

/* the button at the foot */
.qz-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; padding: 18px 20px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0,0,0,0.88) 38%); }
.qz-foot-in { max-width: 520px; margin: 0 auto; display: grid; gap: 10px; }
.qz-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 17px 22px; border-radius: 999px; border: none; cursor: pointer;
  font: inherit; font-size: 16.5px; font-weight: 600; color: var(--cta-ink); background: var(--cta); transition: opacity 0.2s, transform 0.12s; text-decoration: none; }
.qz-cta:active { transform: scale(0.985); }
.qz-cta[disabled] { opacity: 0.32; cursor: default; }
.qz-link { background: none; border: none; color: var(--muted); font: inherit; font-size: 14.5px; cursor: pointer; padding: 6px; text-align: center; }
.qz-link:hover { color: var(--text); }

/* the start and the reveal carry the landing orb */
.qz-orb { position: relative; width: min(230px, 58vw); aspect-ratio: 1; margin: 6px auto 0; }
.qz-orb::before { content: ""; position: absolute; left: 50%; top: 50%; width: 250%; height: 250%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle closest-side, rgba(224,169,126,0.18) 0%, rgba(255,122,77,0.07) 38%, transparent 100%); }
.qz-orb canvas { position: relative; width: 100%; height: 100%; display: block; }
.qz-orb.small { width: min(150px, 40vw); }
.qz-intro { text-align: center; padding-top: 4vh; }
.qz-intro .qz-q { font-size: clamp(30px, 8vw, 44px); margin-top: 18px; }
.qz-intro .qz-hint { max-width: 400px; margin: 14px auto 0; }
.qz-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.qz-facts span { font-size: 13px; color: var(--muted); padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }

/* a pause between questions: a verse or a thought, nothing to answer */
.qz-pause { text-align: center; padding-top: 9vh; }
.qz-pause blockquote { margin: 0; font-size: clamp(24px, 6vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.qz-pause blockquote em { font-style: normal; color: var(--gold); }
.qz-pause cite { display: block; margin-top: 16px; font-style: normal; font-size: 13.5px; color: var(--faint); }
.qz-pause p { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 420px; margin: 34px auto 0; }

/* making the setup: four steps that fill, and real reviews from Google Play */
.qz-make { padding-top: 3vh; text-align: center; }
.qz-steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; text-align: left; }
.qz-steps li { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 15px; color: var(--muted); }
.qz-steps li.on { color: var(--text); }
.qz-steps li b { font-weight: 500; font-variant-numeric: tabular-nums; }
.qz-steps .ln { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.qz-steps .ln i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 3px; }
.qz-rvh { margin-top: 34px; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.qz-review { margin-top: 10px; padding: 20px; border-radius: 20px; text-align: left; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); min-height: 150px; }
.qz-review p { font-size: 15.5px; line-height: 1.5; }
.qz-review .by { margin-top: 12px; font-size: 13px; color: var(--faint); display: flex; justify-content: space-between; gap: 10px; }

/* the result */
.qz-result { padding-top: 2vh; }
.qz-type { text-align: center; }
.qz-type .qz-q { margin-top: 10px; }
.qz-type .qz-hint { max-width: 440px; margin: 12px auto 0; }
.qz-facts2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 26px; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,0.08); }
.qz-facts2 div { background: #0b0b0b; padding: 14px 12px; text-align: center; }
.qz-facts2 small { display: block; font-size: 12px; color: var(--faint); letter-spacing: 0.02em; }
.qz-facts2 b { display: block; font-size: 15px; font-weight: 600; margin-top: 4px; line-height: 1.25; }
.qz-year { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: rgba(224,169,126,0.08); border: 1px solid rgba(224,169,126,0.22); font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.86); }
.qz-year b { color: var(--gold); font-weight: 600; }
.qz-h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin: 38px 0 14px; }
.qz-plan { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; border-radius: 20px; overflow: hidden; background: rgba(255,255,255,0.07); }
.qz-plan li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 16px 18px; background: #090909; }
.qz-plan .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,0.06); color: var(--gold); }
.qz-plan .ic svg { width: 18px; height: 18px; }
.qz-plan b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.qz-plan span:not(.qz-tag):not(.ic) { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 3px; }
.qz-tag { display: inline-block; vertical-align: 2px; margin-left: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold);
  padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(224,169,126,0.4); }
.qz-today { margin-top: 18px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 16px 6px 12px; border-radius: 18px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.qz-today p { grid-column: 1 / -1; text-align: center; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.qz-today div { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.qz-today svg { width: 24px; height: 24px; color: rgba(255,255,255,0.85); margin-bottom: 3px; }
.qz-today b { font-size: 13.5px; font-weight: 600; color: var(--text); }
.qz-today .next svg, .qz-today .next b { color: var(--gold); }

/* the email */
.qz-mail { margin-top: 26px; }
.qz-field { display: block; width: 100%; padding: 17px 20px; border-radius: 16px; font: inherit; font-size: 16.5px; color: var(--text);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); }
.qz-field:focus { outline: none; border-color: rgba(224,169,126,0.6); }
.qz-fine { color: var(--faint); font-size: 13px; line-height: 1.5; margin-top: 12px; }
.qz-fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.qz-err { color: #F2A07B; font-size: 14px; margin-top: 10px; min-height: 20px; }

/* get it */
.qz-get { text-align: center; padding-top: 3vh; }
.qz-stores { display: grid; gap: 10px; margin-top: 26px; }
.qz-store { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 20px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; }
.qz-store.main { background: #fff; color: #000; }
.qz-store.alt { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid rgba(255,255,255,0.1); }
.qz-store svg { width: 18px; height: 20px; }
.qz-how { list-style: none; counter-reset: s; padding: 0; margin: 30px 0 0; text-align: left; display: grid; gap: 14px; }
.qz-how li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,0.86); }
.qz-how li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #000; background: var(--gold); }
.qz-noscript { position: relative; z-index: 2; max-width: 520px; margin: 40px auto; padding: 0 20px; color: var(--muted); }

@media (min-width: 720px) {
  .qz { padding-top: 34px; }
  .qz-foot { background: none; position: static; padding: 30px 0 0; }
  .qz-foot-in { max-width: none; }
  .qz { padding-bottom: 80px; }
}

.qz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the free ebook */
.qz-book { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; margin-top: 22px; padding: 14px; border-radius: 20px; text-align: left;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); }
.qz-book img { width: 92px; height: auto; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.55); }
.qz-book b { display: block; font-size: 17px; font-weight: 600; margin-top: 8px; }
.qz-book span:not(.qz-tag) { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 4px; }
.qz-book .qz-tag { margin-left: 0; }
.qz-dl { display: inline-block; margin-top: 12px; padding: 10px 16px; border-radius: 999px; background: var(--gold); color: #000; font-size: 14px; font-weight: 600; text-decoration: none; }
.qz-sent { text-align: center; font-size: 13.5px; color: var(--gold); margin-bottom: 4px; }
