/* L-1134 tutorial (tut.js): one plain card beside the real control, a thin gold line to it, a thin gold outline on it. No dimming, no
   shadow glow, no pill. Page colour, 12px corners, one line of text, "1 of 4", a text Skip, an ink Next where a tap cannot do the job.
   Tokens are taaj.css's (--page, --ink, --muted, --edge, --gold, --ui). */
.tut{position:fixed;inset:0;z-index:60;pointer-events:none}
.tut-ring{position:fixed;border:1.5px solid var(--gold);border-radius:12px;box-sizing:border-box}
.tut-line{position:fixed;width:1.5px;margin-left:-.75px;background:var(--gold)}
.tut-card{position:fixed;left:0;top:0;box-sizing:border-box;width:min(320px,calc(100vw - 32px));padding:14px 16px 4px;border:1px solid var(--edge);border-radius:12px;
  background:var(--page,var(--bg));color:var(--ink);font-family:var(--ui);pointer-events:auto;text-align:start}
.tut-t{margin:0;font-size:16px;font-weight:600;line-height:1.4;letter-spacing:-.1px}
.tut-foot{display:flex;align-items:center;gap:4px;margin-top:2px}
.tut-n{flex:1;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.tut-skip,.tut-next{min-height:48px;padding:0 10px;border:0;background:none;font:inherit;font-size:15px;cursor:pointer}
.tut-skip{color:var(--muted);font-weight:500}
.tut-next{margin-inline-start:4px;min-height:40px;margin-block:4px;padding:0 18px;border-radius:12px;background:var(--ink);color:var(--bg);font-weight:600}
.tut-skip:focus-visible,.tut-next:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
[dir=rtl] .tut-t{letter-spacing:0;line-height:1.55}
/* the Resume card waits until the cards end */
html.tut-on.tut-on .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>:is(.resume-chip,.hb-x),html.tut-on .practice-bar>:is(.resume-chip,.hb-x){display:none!important}
/* PM L-1163/L-1164 trial (tutfocus.js): Surah Al-Ikhlas cut out alone on plain ground in the app's own colour. Everything else (the other
   surahs, the page, the app's header and buttons) is not drawn at all and takes no touch: hidden, the surah's own lines shown again
   (visibility comes back on a child). One band of plain text at the bottom (page colour, no card); Skip in the corner; one gold arrow. */
html.tf-on body>:not(#app):not(.tf):not(.tf-arrow):not(.ti):not(.consent):not(script),html.tf-on #app{visibility:hidden;pointer-events:none}
html.tf-on .practice-screen .ln.tf-keep{visibility:visible}
html.tf-on .practice-screen .mushaf{touch-action:none;overscroll-behavior:none}
html.tf-on .practice-screen .ln.tf-keep{cursor:pointer}
.mushaf .w.tf-gold{color:var(--gold-lo)}
:root[data-theme=dark] .mushaf .w.tf-gold{color:var(--gold)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .mushaf .w.tf-gold{color:var(--gold)}}
.mushaf .w.tf-hide{position:relative}
.mushaf .w.tf-hide,.mushaf .w.tf-hide *{color:transparent!important}
.mushaf .w.tf-hide::after{content:'';position:absolute;inset-inline:.18em;bottom:.32em;height:2px;border-radius:1px;background:var(--line)}
.tf{position:fixed;inset-inline:0;bottom:0;z-index:900;padding:16px 20px max(18px,env(safe-area-inset-bottom));background:var(--page,var(--bg));color:var(--ink);font-family:var(--ui)}
.tf-foot{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:440px;margin:0 auto;text-align:center}
.tf-t{margin:0;font-size:18px;font-weight:600;line-height:1.4;letter-spacing:-.2px;text-wrap:balance}
[dir=rtl] .tf-t{letter-spacing:0;line-height:1.6}
.tf-mic{display:inline-flex;align-items:center;gap:6px;color:var(--gold-lo)}
.tf-mic svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tf-go{min-height:52px;width:100%;border:0;border-radius:14px;background:var(--ink);color:var(--bg);font:inherit;font-size:17px;font-weight:600;cursor:pointer}
.tf-again{min-height:44px;padding:0 12px;border:0;background:none;color:var(--ink);font:inherit;font-size:16px;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.tf-skip{position:fixed;top:max(10px,env(safe-area-inset-top));inset-inline-end:12px;z-index:901;min-height:44px;padding:0 10px;border:0;border-radius:12px;background:var(--page,var(--bg));color:var(--muted);font:500 15.5px var(--ui);cursor:pointer}
.tf :focus-visible,.tf-skip:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
:root[data-theme=dark] .tf-mic{color:var(--gold)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .tf-mic{color:var(--gold)}}
.tf [hidden]{display:none!important}
/* a failed test: Try again is the filled button, Next the quiet link; a computer: the line right under An-Nasr; dark: dimmer around it */
.tf.tf-fail .tf-again{order:1;min-height:52px;width:100%;border-radius:14px;background:var(--ink);color:var(--bg);text-decoration:none}
.tf.tf-fail .tf-go{order:2;min-height:44px;width:auto;padding:0 12px;background:none;color:var(--muted);font-weight:500}
.tf.tf-fail .tf-t{order:0}
.tf.tf-near{inset-inline:auto;bottom:auto;padding:0;background:none}
.tf.tf-near .tf-t{font-size:21px}
.tf.tf-near .tf-foot{max-width:none}
.tf.tf-near .tf-go,.tf.tf-near.tf-fail .tf-again{max-width:320px}
/* the arrow: gold, one round stroke and an open head, its tip on the thing to tap, never on a word; a calm drift toward it */
.tf-arrow{position:fixed;z-index:902;display:block;width:44px;transform-origin:22px 100%;color:var(--gold-lo);cursor:pointer;pointer-events:auto}
.tf-arrow[hidden]{display:none}
.tf-arrow svg{display:block;width:100%!important;height:100%!important;fill:none;stroke:currentColor;stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round;animation:tf-nudge 1.4s ease-in-out infinite alternate}
.tf-arrow[data-dir=up]{rotate:180deg}
.tf-arrow[data-dir=left]{rotate:90deg}
.tf-arrow[data-dir=right]{rotate:-90deg}
@keyframes tf-nudge{from{translate:0 -7px}to{translate:0 0}}
@media (prefers-reduced-motion:reduce){.tf-arrow svg{animation:none}}
:root[data-theme=dark] .tf-arrow{color:var(--gold)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .tf-arrow{color:var(--gold)}}
.mushaf .w.tf-later{opacity:.3}
/* Memorise leaves room beside it for the arrow */
.tf.tf-point .tf-go{width:calc(100% - 96px);margin-inline-start:84px}
/* the test: the mic mark and the four live bars large under the line, so it is plain that it is listening (no pulse, the bars are the voice) */
.tf-mic{gap:10px;margin-top:2px}
.tf-mic svg{width:34px!important;height:34px!important;stroke-width:1.6}
.tf-mic .vu{width:34px;height:28px}
.tf-mic .vu>i{width:4px;border-radius:2px}
/* PM L-1169: the words with the arrow to choose a surah: in gold in place of the header's page line (a phone), or beside Surahs (a computer) */
.tut-sa{color:var(--gold-lo);font-weight:600}
:root[data-theme=dark] .tut-sa{color:var(--gold)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .tut-sa{color:var(--gold)}}
.tut-sa.tut-sa-free{position:fixed;z-index:902;font:600 16px var(--ui);white-space:nowrap;pointer-events:none}
.tf-arrow[data-dir=up]:not(.tf .tf-arrow){pointer-events:auto}
/* PM L-1341: his turn in the trial is the repeat box, the same look as the lesson's: gold edge, a light gold fill, big ink words, the mic
   and its live bars inside, 14 px corners, no shadow */
.tf.tf-turn .tf-foot{padding:16px 20px 14px;border-radius:14px;background:color-mix(in srgb,var(--gold) 16%,var(--surface,var(--page)));border:2px solid var(--gold);gap:8px}
.tf.tf-turn .tf-t,.tf.tf-near.tf-turn .tf-t{font-size:26px;font-weight:750;line-height:1.25;color:var(--ink)}
[dir=rtl].tf.tf-turn .tf-t{font-size:27px;line-height:1.5}
.tf.tf-turn .tf-mic{color:var(--ink)}
