@font-face{font-family:"TKufi";src:url(/static/fonts/kufi.woff?v=2f0e57907cb6) format("woff");font-weight:100 900;font-display:swap}
[hidden]{display:none !important}
@font-face{font-family:"TLit";src:url(/static/fonts/literata.woff?v=fdf686426169) format("woff");font-weight:200 900;font-display:swap}
@font-face{font-family:"TLit";src:url(/static/fonts/literata-italic.woff?v=e6e841e37a59) format("woff");font-weight:200 900;font-style:italic;font-display:swap}

/* brand v3 — the page is always the white sheet inside the slate frame, also in dark Telegram */
:root{
  color-scheme: light only;
  --slate:#4A6D86; --slate-dk:#22384A; --slate-pale:#E3E9EE;
  --paper:#FDFDFB; --ink:#1C1C1C; --grey:#70777C; --red:#C8372D; --rule:#DCDFE1; --pill:#D6D4C4;
  --ar:"TKufi","Segoe UI",Tahoma,sans-serif;
  --en:"TLit",Georgia,"Times New Roman",serif;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{background:var(--slate)}
body{margin:0;min-height:100vh;background:var(--slate);color:var(--ink);font-family:var(--ar);font-size:16px;line-height:1.7;
  padding:10px 10px calc(10px + env(safe-area-inset-bottom));-webkit-text-size-adjust:100%}
.sheet{position:relative;z-index:1;background:var(--paper);border-radius:14px;min-height:calc(100vh - 20px);
  padding:16px 20px 28px;max-width:640px;margin:0 auto;display:flex;flex-direction:column}
.en,bdi.lt{font-family:var(--en)}
.en{direction:ltr;unicode-bidi:isolate}
.muted{color:var(--grey)}
.center{text-align:center}
.pad{padding:48px 0}
button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer}

/* header strip, like the footer line of the PDF pages */
.top{display:flex;align-items:center;justify-content:space-between;padding-bottom:12px;border-bottom:1px solid var(--rule)}
.top-r{font-size:12.5px;color:var(--grey)}
.logo{height:22px;width:auto;display:block}

/* titles */
.hello{margin:22px 0 0;color:var(--grey);font-size:15px}
h1{font-family:var(--ar);font-weight:700;color:var(--slate-dk);font-size:30px;line-height:1.25;margin:2px 0 6px}
h2{font-family:var(--ar);font-weight:700;color:var(--slate-dk);font-size:24px;line-height:1.3;margin:18px 0 4px}
.lead{margin:0 0 18px;color:var(--grey);font-size:14.5px}
.label{font-size:13px;color:var(--grey);margin:26px 0 2px}

/* rows: structure from rules and type only */
.rows{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule)}
.row{display:flex;align-items:center;gap:14px;width:100%;text-align:right;padding:17px 2px;border-bottom:1px solid var(--rule);min-height:64px}
.row:active{background:var(--slate-pale)}
.row .main{flex:1;min-width:0}
.row .t{display:block;font-weight:700;font-size:19px;line-height:1.35}
.row .s{display:block;font-size:13.5px;color:var(--grey);margin-top:2px}
.row .num{font-family:var(--en);font-weight:700;color:var(--slate);font-size:17px;min-width:1.6em}
.row .go{color:var(--grey);font-family:var(--en);font-size:20px;line-height:1}
.row .score{font-family:var(--en);font-size:14px;color:var(--slate);white-space:nowrap}
.row.en-row .t{font-family:var(--en);font-weight:600;direction:ltr;text-align:right;font-size:17.5px}

/* quiz screen */
.qhead{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:16px}
.qhead .sec{font-family:var(--en);color:var(--slate);font-size:15px;direction:ltr;font-weight:600;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qhead .cnt{font-family:var(--en);color:var(--grey);font-size:14px;direction:ltr;white-space:nowrap}
.bar{height:2px;background:var(--rule);margin:8px 0 0;position:relative}
.bar i{position:absolute;right:0;top:0;bottom:0;background:var(--slate)}
.mode{font-size:12.5px;color:var(--grey);margin-top:6px}

.q{direction:ltr;text-align:left;font-family:var(--en);margin:26px 0 8px}
.stem{font-size:21px;line-height:1.55;margin:0;display:grid;grid-template-columns:auto 1fr;column-gap:10px}
.stem .n{color:var(--slate);font-weight:700}
.blank{display:inline-block;width:3.6em;border-bottom:1.5px solid var(--ink);transform:translateY(-.18em);margin:0 .1em}

.opts{list-style:none;margin:18px 0 0;padding:0;direction:ltr}
.opt{display:flex;align-items:center;gap:12px;width:100%;text-align:left;min-height:56px;padding:12px 6px;
  border-bottom:1px solid var(--rule);font-family:var(--en);font-size:19px;line-height:1.35}
.opts li:first-child .opt{border-top:1px solid var(--rule)}
.opt .l{color:var(--grey);font-size:16px;width:1.6em;flex:none}
.opt .w{position:relative;display:inline-block}
.opt:active:not([disabled]){background:var(--slate-pale)}
.opt[disabled]{cursor:default}
.answered .opt{color:var(--grey)}
/* the teacher's pen: slate ring round the right answer, red strike on the wrong choice */
.opt.ok{color:var(--ink);font-weight:600}
.opt.ok .w::after{content:"";position:absolute;inset:-7px -13px -6px -12px;border:2px solid var(--slate);border-radius:50%;transform:rotate(-3deg);pointer-events:none}
.opt.bad{color:var(--ink)}
.opt.bad .w{text-decoration:line-through;text-decoration-color:var(--red);text-decoration-thickness:2px}

.fb{margin:22px 0 0;padding-top:4px}
.verdict{font-weight:700;font-size:18px;margin:0}
.verdict.yes{color:var(--slate)}
.verdict .en{font-weight:700;color:var(--slate-dk)}
.meaning{margin:4px 0 0;font-size:16px;color:var(--grey)}
.meaning b{color:var(--ink);font-weight:700}
.reason{margin:14px 0 0;padding:2px 12px 2px 0;border-right:3px solid var(--pill);font-size:15.5px;line-height:1.9}
.reason bdi.lt{font-size:15.5px}
.tr-btn{display:inline-block;margin:14px 0 0;min-height:36px;padding:4px 14px;border:1px solid var(--pill);border-radius:18px;
  color:var(--slate-dk);font-size:14px;font-weight:700;touch-action:manipulation}
.tr-ar{margin:10px 0 0;font-size:16px;line-height:1.9;color:var(--ink)}
.tr-ar[hidden]{display:none}

.spacer{flex:1}
#view{display:flex;flex-direction:column;flex:1}
.btn{display:block;width:100%;margin-top:26px;min-height:54px;border-radius:10px;background:var(--slate);color:#fff;
  font-weight:700;font-size:17px;text-align:center}
.btn:active{background:var(--slate-dk)}
.btn.line{background:none;color:var(--slate);border:1.5px solid var(--slate)}
.foot{margin-top:28px;text-align:center;font-family:var(--en);font-size:12px;color:var(--grey);direction:ltr}

/* faint watermark over quiz screens */
.wm{position:fixed;inset:0;z-index:5;pointer-events:none;background-repeat:repeat;opacity:.07}

/* the brand stroke: the slate brush line under the TAMEM logo, used to mark the key word */
.mk{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 12 C 40 9, 90 10, 130 9.5 S 185 11, 197 8.5' stroke='%234A6D86' stroke-width='7' stroke-linecap='round' fill='none' opacity='.9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-size:100% .32em;background-position:0 96%;padding:0 .08em}

/* welcome page */
.welcome{padding-top:34px;text-align:center}
.logo-big{width:210px;max-width:62%;height:auto;display:block;margin:0 auto 30px}
.pkgline{font-size:26px;margin:0 0 22px}
.notice{margin:0 auto;max-width:30em;font-size:15.5px;line-height:1.95;color:var(--ink);text-align:right;
  border-right:3px solid var(--pill);padding:2px 12px 2px 0}
.contact{list-style:none;margin:26px 0 0;padding:14px 0 0;border-top:1px solid var(--rule);color:var(--grey);font-size:15px;line-height:2}
.contact bdi.lt{font-family:var(--en);color:var(--slate-dk)}

/* rows: sub row (continue), disabled row, last result */
.row.sub{min-height:48px;padding:10px 2px 12px;border-bottom:1px solid var(--rule)}
.row.sub .cont{color:var(--slate);font-size:14.5px}
.row.off{opacity:.45;cursor:default}
.row .s.last{color:var(--grey);font-size:13px}
.ttl-en{direction:ltr;text-align:right;font-family:var(--en)}
.qhead .sec.ar{font-family:var(--ar);direction:rtl}

/* exam: the chosen option gets the slate letter disc, like the answer key */
.opts.exam .opt.picked .l{background:var(--slate);color:#fff;border-radius:50%;width:1.7em;height:1.7em;
  display:inline-grid;place-items:center;font-weight:700;font-size:14px}
.opts.exam .opt.picked{color:var(--ink);font-weight:600}
.opts.exam .opt .l{width:1.7em;height:1.7em;display:inline-grid;place-items:center}
.pager{display:flex;gap:12px;margin-top:26px}
.pager .btn{margin-top:0}
.pager .btn.line{flex:0 0 34%}
.btn[disabled]{opacity:.35}
.answered-count{text-align:center;color:var(--grey);font-size:13.5px;margin:12px 0 0}
.link{color:var(--slate);text-decoration:underline;text-underline-offset:3px;font-size:13.5px}

/* result */
.big{font-family:var(--en);font-weight:700;color:var(--slate);font-size:46px;line-height:1.1;margin:14px 0 4px;direction:ltr;text-align:right}
.big .pct{font-size:20px;color:var(--grey);font-weight:400;margin-left:14px;display:inline-block}
.rev{padding:6px 0 22px;border-bottom:1px solid var(--rule)}
.rev .q{margin-top:18px}
.rev .opt{min-height:44px;font-size:17px}
.rev .stem{font-size:18.5px}

/* spot the mistake: the teacher's red pen above the struck word */
.spots{list-style:none;margin:6px 0 0;padding:0;border-top:1px solid var(--rule)}
.spots li{border-bottom:1px solid var(--rule);padding:6px 0 10px}
.spot{display:grid;grid-template-columns:2em 1fr;align-items:baseline;width:100%;text-align:left;direction:ltr;padding:26px 2px 6px;
  font-family:var(--en);font-size:19px;line-height:1.5}
.spot .n{color:var(--slate);font-weight:700;font-size:16px}
.spot s{color:var(--ink);text-decoration-color:var(--red);text-decoration-thickness:2px;position:relative}
.spot s::before{content:attr(data-c);position:absolute;left:50%;bottom:82%;transform:translateX(-50%) rotate(-3deg);
  color:var(--red);font-weight:700;font-size:16px;white-space:nowrap;text-decoration:none;display:inline-block}
.fixed{font-family:var(--en);color:var(--red);font-size:17px;margin:2px 0 0;text-align:left;padding-left:2em}
.fixbox .reason{margin-top:8px}

/* sales page for non-subscribers */
.sales{padding-top:30px}
.sales-text{white-space:pre-line;font-size:17px;line-height:2;margin:0;color:var(--ink)}
.sales-text .coupon{font-family:var(--en);font-weight:700;color:var(--slate-dk);direction:ltr;unicode-bidi:isolate}

/* games (العب وذاكر): same pen as the quizzes, slate ring = right, red strike = wrong */
.rows.after{border-top:0}
.facts{list-style:none;margin:6px 0 0;padding:0;color:var(--grey);font-size:15.5px;line-height:2}
.big .unit{font-family:var(--ar);font-size:22px;color:var(--grey);font-weight:400}
.mwords{list-style:none;margin:22px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;column-gap:16px;direction:ltr;border-top:1px solid var(--rule)}
.mw{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:54px;padding:8px 16px;border-bottom:1px solid var(--rule);
  font-family:var(--en);font-weight:600;font-size:18px;line-height:1.25;color:var(--slate-dk)}
.mdefs{list-style:none;margin:22px 0 0;padding:0;direction:ltr;border-top:1px solid var(--rule)}
.md{position:relative;display:block;width:100%;text-align:left;min-height:52px;padding:11px 16px;border-bottom:1px solid var(--rule);
  font-family:var(--en);font-size:16.5px;line-height:1.4}
.mw .w,.md .w,.dm-btn .w{position:relative;display:inline-block}
.md.sel .w{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 12 C 40 9, 90 10, 130 9.5 S 185 11, 197 8.5' stroke='%234A6D86' stroke-width='7' stroke-linecap='round' fill='none' opacity='.9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-size:100% .3em;background-position:0 100%}
.mw.ok .w::after,.md.ok .w::after,.dm-btn.ok .w::after{content:"";position:absolute;inset:-7px -12px -6px -11px;border:2px solid var(--slate);
  border-radius:50%;transform:rotate(-3deg);pointer-events:none}
/* وصّل: the ring stays inside its cell for one-line and two-line items (stadium shape, small tilt) */
.mw.ok .w::after,.md.ok .w::after{inset:-5px -13px -5px -13px;border-radius:999px;transform:rotate(-1.5deg)}
.mw.bad .w,.md.bad .w,.dm-btn.bad .w{text-decoration:line-through;text-decoration-color:var(--red);text-decoration-thickness:2px}
.mw.gone,.md.gone{opacity:.25;transition:opacity .4s;cursor:default}
.pen{color:var(--red);font-weight:700;direction:rtl;text-align:right;margin:6px 0 0;min-height:1.5em}
.pen bdi{font-family:var(--en)}
.stem.dm{display:block;font-size:22px}
.dm-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:28px;direction:ltr}
.dm-btn{min-height:68px;padding:10px 8px;border:1.5px solid var(--slate);border-radius:10px;font-family:var(--en);font-size:19px;
  font-weight:600;color:var(--slate-dk);line-height:1.3}
.dm-btn:active:not([disabled]){background:var(--slate-pale)}
.answered .dm-btn{color:var(--grey);border-color:var(--rule)}
.answered .dm-btn.ok,.answered .dm-btn.bad{color:var(--ink);border-color:var(--slate)}
.dm-btn .w[dir=rtl]{font-family:var(--ar);font-size:16px}
.qhead .cnt.ar{direction:rtl;font-family:var(--ar)}
/* وصّل: word first. The selected word is filled in slate until a definition is tapped or it is tapped again */
.msteps{margin:14px 0 0;font-size:15px;font-weight:700;color:var(--slate-dk)}
.mw{transition:background-color .12s,color .12s}
.mw.sel{background:var(--slate);color:#fff;border-radius:8px}
.mhint{min-height:1.6em;margin:6px 0 0;color:var(--red);font-size:14px;font-weight:700}
.mwords.shake{animation:shake .32s cubic-bezier(.36,.07,.19,.97)}
@keyframes shake{20%{transform:translateX(-6px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(2px)}}
@media (prefers-reduced-motion:reduce){.mwords.shake{animation:none}.mw{transition:none}}

/* =====================================================================================================
   v4 look: Apple-clean in the brand. One accent (slate), type does the hierarchy, thin rules, white space.
   No cards with shadows, no gradients, no pills, no blur. Press response on pointer-down (.is-pressed).
   ===================================================================================================== */
.v4{--ease-out:cubic-bezier(.2,.8,.2,1)}
.v4 .press{transition:transform .16s var(--ease-out),background-color .16s var(--ease-out),opacity .16s}
.v4 .press.is-pressed{transform:scale(.985);transition-duration:0s}
.v4 .opt.press.is-pressed{background:var(--slate-pale)}

/* package page */
.p4-hello{margin:22px 0 0;color:var(--grey);font-size:14.5px}
.p4-title{font-family:var(--ar);font-weight:800;color:var(--slate-dk);font-size:28px;line-height:1.25;letter-spacing:-.01em;margin:2px 0 22px}
.p4-resume{display:block;width:100%;text-align:right;background:var(--slate);color:#fff;border-radius:14px;padding:16px 18px 18px;margin:0 0 10px}
.p4-resume.is-pressed{background:var(--slate-dk)}
.p4-resume .k{display:block;font-size:12.5px;opacity:.82;font-weight:600}
.p4-resume .t{display:block;font-size:18px;font-weight:700;line-height:1.45;margin-top:2px}
.p4-resume .t bdi.lt{font-family:var(--en);font-weight:600}
.p4-resume .s{display:block;font-size:13px;opacity:.85;margin-top:2px}
.p4-resume .ln{display:block;height:3px;background:rgba(255,255,255,.28);border-radius:2px;margin-top:12px;overflow:hidden}
.p4-resume .ln b{display:block;height:100%;background:#fff;margin-right:0;margin-left:auto}
.p4-anchor{display:block;height:0}
.p4-part{margin-top:18px;border-top:1px solid var(--rule);padding-bottom:6px}
.p4-row{display:flex;align-items:center;gap:12px;width:100%;text-align:right;padding:18px 0 8px}
.p4-row .main{flex:1;min-width:0}
.p4-row .t{display:block;font-weight:800;font-size:23px;line-height:1.3;color:var(--ink)}
.p4-row .s{display:block;font-size:13px;color:var(--grey);margin-top:3px}
.p4-row .pct{font-family:var(--en);color:var(--slate);font-size:28px;font-weight:600;line-height:1;direction:ltr;white-space:nowrap}
.p4-row .pct small{font-size:15px;color:var(--grey);font-weight:400;margin-left:1px}
.p4-row .go{color:var(--grey);font-family:var(--en);font-size:20px;line-height:1}
.p4-cap{font-size:12px;color:var(--grey);margin:6px 0 8px}
.p4-units{list-style:none;margin:0 0 10px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:10px 14px;direction:ltr}
.p4-units.grammar{grid-template-columns:1fr}
.p4-units li{min-width:0}
.p4-units .u{display:block;font-family:var(--en);font-size:11.5px;color:var(--grey);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5}
/* grammar: the full rule name, wrapped (one bar per line, so a rule of 100 letters takes two lines on a phone) */
.p4-units.grammar .u{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.4}
.p4-units .ln{display:block;height:3px;background:var(--rule);border-radius:2px;overflow:hidden;margin-top:2px}
.p4-units .ln b{display:block;height:100%;background:var(--slate);border-radius:2px}
.p4-label{font-size:13px;color:var(--grey);font-weight:700;margin:28px 0 0}
.p4-list{list-style:none;margin:6px 0 0;padding:0;border-top:1px solid var(--rule)}
.p4-list.after{margin-top:22px}
.p4-item{display:flex;align-items:center;gap:12px;width:100%;text-align:right;padding:14px 0;border-bottom:1px solid var(--rule);min-height:62px}
.p4-item.is-pressed{background:var(--slate-pale)}
.p4-item .main{flex:1;min-width:0}
.p4-item .t{display:block;font-weight:700;font-size:18px;line-height:1.35}
.p4-item .s{display:block;font-size:13px;color:var(--grey);margin-top:1px}
.p4-item .b{font-family:var(--en);font-size:16px;color:var(--slate);white-space:nowrap;direction:ltr}
.p4-item .b.new{font-family:var(--ar);font-size:13px;color:var(--grey)}
.p4-item .cnt{font-family:var(--en);font-size:24px;color:var(--slate);font-weight:600}
.p4-item .cnt.zero{color:var(--rule)}
.p4-item[disabled]{cursor:default}
.p4-item.off{opacity:.45}
.p4-faq{display:flex;align-items:center;justify-content:space-between;width:100%;margin:26px 0 6px;padding:12px 0;color:var(--slate);font-weight:700;font-size:15.5px}
.p4-faq .go{font-family:var(--en);font-size:20px}

/* reels: one question per full screen */
.reel-view{margin:-16px -20px -28px}
.reel{position:relative;height:calc(100vh - 20px);height:calc(100dvh - 20px);overflow:hidden;border-radius:14px}
.reel-track{height:100%;will-change:transform}
.card4{height:100%;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:18px 20px 20px;display:flex;flex-direction:column;background:var(--paper)}
.card4.ghost{visibility:hidden}
.c4-seg{display:flex;gap:5px;direction:rtl}
.c4-seg i{flex:1;height:3px;border-radius:2px;background:var(--rule)}
.c4-seg i.r{background:var(--slate)}
.c4-seg i.w{background:var(--red)}
.c4-seg i.now{background:var(--slate-pale)}
.c4-meta{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:14px}
.c4-title{color:var(--slate);font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c4-title.en{direction:ltr}
.c4-count{color:var(--grey);font-size:14px;direction:ltr;white-space:nowrap}
.c4-meta2{display:flex;justify-content:space-between;align-items:center;min-height:26px;margin-top:2px}
.c4-mode{font-size:12.5px;color:var(--grey);font-weight:600}
.combo{font-size:14px;font-weight:800;color:var(--slate);opacity:0;transform:scale(.9);transition:opacity .18s,transform .18s var(--ease-out)}
.combo.on{opacity:1;transform:none}
.combo.pop{animation:pop .36s var(--ease-out)}
@keyframes pop{0%{transform:scale(.86)}55%{transform:scale(1.12)}100%{transform:scale(1)}}
.c4-q{margin:34px 0 4px}
.c4-q .stem{font-size:23px;line-height:1.5}
.opts4{margin-top:24px}
.opts4 .opt{min-height:60px;font-size:20px;padding:12px 8px;transition:background-color .16s}
.opts4 .opt .l{font-size:15px;width:1.5em}
.opts4 .opt.ok .w::after{animation:ring .26s var(--ease-out)}
@keyframes ring{from{transform:rotate(-3deg) scale(.86);opacity:0}to{transform:rotate(-3deg) scale(1);opacity:1}}
.c4-fb .fb{margin-top:18px}
.c4-fb .verdict{font-size:19px}
.c4-foot{margin-top:auto;padding-top:22px}
.q4-report{display:block;margin:0 auto 14px;color:var(--grey);font-size:13px;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--rule)}
.btn4{display:block;width:100%;min-height:54px;border-radius:12px;background:var(--slate);color:#fff;font-weight:700;font-size:17px;text-align:center}
.btn4.is-pressed{background:var(--slate-dk)}
.btn4[disabled]{background:var(--slate-pale);color:var(--grey)}
.c4-hint{text-align:center;color:var(--grey);font-size:12.5px;margin:10px 0 0;opacity:0;transition:opacity .2s}
.can-go .c4-hint{opacity:1}

/* bite summary card (same feed) */
.card4.bite{justify-content:center;text-align:right}
.b4-mid{width:100%}
.b4-segs{width:40%;margin:0 0 22px}
.b4-mid .btn4{margin-top:40px}
.b4-k{font-size:15px;color:var(--grey);font-weight:700;margin:0}
.b4-score{font-family:var(--en);font-size:72px;line-height:1;color:var(--slate);font-weight:600;margin:14px 0 0;direction:ltr;text-align:right}
.b4-score span{font-size:30px;color:var(--grey);font-weight:400}
.b4-combo{font-size:17px;font-weight:700;color:var(--slate-dk);margin:18px 0 0}
.b4-total{font-size:14px;color:var(--grey);margin:8px 0 0}
.b4-stop{display:block;width:100%;min-height:50px;margin-top:8px;color:var(--slate);font-weight:700;font-size:16px}

/* guided tour: the spotlight moves; the page is dimmed, not blurred */
.tour{position:fixed;inset:0;z-index:40;touch-action:none}
.tour-hole{position:absolute;left:0;top:0;width:0;height:0;border-radius:14px;box-shadow:0 0 0 200vmax rgba(26,38,49,.64);pointer-events:none}
.tour-bubble{position:absolute;left:16px;right:16px;top:0;max-width:520px;margin:0 auto;background:var(--paper);border-radius:14px;padding:16px 18px 12px}
.tour-bubble.swap .tour-t{animation:fadein .22s var(--ease-out)}
@keyframes fadein{from{opacity:0}to{opacity:1}}
.tour-n{margin:0;font-size:12px;color:var(--grey);direction:ltr;text-align:right}
.tour-t{margin:4px 0 0;font-size:16px;line-height:1.85;color:var(--ink)}
.tour-btns{display:flex;align-items:center;gap:8px;margin-top:12px}
.tour-next{flex:1;min-height:46px;border-radius:10px;background:var(--slate);color:#fff;font-weight:700;font-size:15.5px}
.tour-next.is-pressed{background:var(--slate-dk);transform:scale(.985)}
.tour-skip{min-height:46px;padding:0 14px;color:var(--grey);font-size:14.5px}
.tour.out{opacity:0;transition:opacity .18s}

#view.enter4{animation:fadein .18s ease-out}
@media (prefers-reduced-motion:reduce){
  .v4 .press,.combo,.c4-hint,.opts4 .opt{transition:none}
  .combo.pop,.opts4 .opt.ok .w::after,.tour-bubble.swap .tour-t{animation:none}
  .tour.out{transition:none}
}

/* report sheet: anchored to the bottom, dims the page (a modal task) */
.sheet4-wrap{position:fixed;inset:0;z-index:45}
.sheet4-scrim{position:absolute;inset:0;background:rgba(26,38,49,.5);animation:fadein .2s}
.sheet4-wrap.out .sheet4-scrim{opacity:0;transition:opacity .2s}
.sheet4{position:absolute;left:0;right:0;bottom:0;max-width:640px;margin:0 auto;background:var(--paper);border-radius:16px 16px 0 0;
  padding:18px 20px calc(18px + env(safe-area-inset-bottom));font-family:var(--ar)}
.s4-t{margin:0 0 8px;font-weight:800;font-size:19px;color:var(--slate-dk)}
.s4-ch{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule)}
.s4-ch label{display:flex;align-items:center;gap:12px;min-height:50px;border-bottom:1px solid var(--rule);font-size:16px;cursor:pointer}
.s4-ch label.is-pressed{background:var(--slate-pale)}
.s4-ch input{width:20px;height:20px;accent-color:var(--slate);margin:0}
.sheet4 textarea{display:block;width:100%;margin-top:14px;border:1px solid var(--rule);border-radius:10px;padding:10px 12px;
  font:inherit;font-size:16px;color:var(--ink);background:#fff;resize:none}
.sheet4 textarea:focus{outline:2px solid var(--slate-pale);border-color:var(--slate)}
.s4-n{margin:4px 0 0;font-size:12px;color:var(--grey);text-align:left}
.s4-msg{margin:6px 0 0;min-height:1.5em;font-size:14.5px;font-weight:700}
.s4-msg.ok{color:var(--slate)}
.s4-msg.bad{color:var(--red)}
.s4-btns{display:flex;gap:10px;align-items:center;margin-top:8px}
.s4-btns .btn4{flex:1}
.s4-x{min-height:54px;padding:0 16px;color:var(--grey);font-size:15px}
.btn4{display:block;width:100%;min-height:54px;border-radius:12px;background:var(--slate);color:#fff;font-weight:700;font-size:17px;text-align:center}
.btn4[disabled]{background:var(--slate-pale);color:var(--grey)}
.press.is-pressed{transform:scale(.985)}
.q4-report{display:block;margin:18px auto 0;color:var(--grey);font-size:13px;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--rule)}
.rev .q4-report{margin:10px 0 0}
.c4-foot .q4-report{margin:0 auto 14px}
/* owner reports page */
.p4-faq.own{margin-top:0;border-top:1px solid var(--rule);color:var(--slate);font-weight:700;font-size:15px}
.reps{list-style:none;margin:18px 0 0;padding:0;border-top:1px solid var(--rule)}
.reps li{padding:14px 0;border-bottom:1px solid var(--rule)}
.rp-meta{margin:0;font-size:12.5px;color:var(--grey)}
.rp-q{margin:6px 0 0;font-size:17px;line-height:1.5;text-align:left}
.rp-a{margin:4px 0 0;font-size:14.5px;color:var(--slate-dk)}
.rp-c{margin:4px 0 0;font-size:14.5px}
.rp-c b{color:var(--red)}
@media (prefers-reduced-motion:reduce){.sheet4-scrim{animation:none}}

/* FAQ */
.f4-h{margin-top:22px}
.faq4{list-style:none;margin:14px 0 0;padding:0;border-top:1px solid var(--rule)}
.faq4>li{padding:16px 0;border-bottom:1px solid var(--rule)}
.fq{margin:0;font-weight:800;font-size:17px;color:var(--slate-dk);line-height:1.5}
.fa{margin:6px 0 0;font-size:15.5px;line-height:1.9;color:var(--ink)}
.f4c{margin:6px 0 0;padding:0;border:0}
#replay{margin-top:26px}

/* =====================================================================================================
   D9: the remaining screens in the approved look (body.v4). Texts and structure unchanged; type, spacing,
   one accent, press response on pointer-down.
   ===================================================================================================== */
body.v4 .is-pressed{transition-duration:0s}
body.v4 .row,body.v4 .opt,body.v4 .btn,body.v4 .mw,body.v4 .md,body.v4 .dm-btn,body.v4 .spot{transition:transform .16s cubic-bezier(.2,.8,.2,1),background-color .16s}
body.v4 .row.is-pressed,body.v4 .opt.is-pressed:not([disabled]),body.v4 .md.is-pressed,body.v4 .spot.is-pressed{background:var(--slate-pale)}
body.v4 .btn.is-pressed,body.v4 .dm-btn.is-pressed{transform:scale(.985)}
body.v4 .btn.is-pressed:not(.line){background:var(--slate-dk)}
body.v4 h1{font-weight:800;letter-spacing:-.01em;font-size:28px}
body.v4 h2{font-weight:800;letter-spacing:-.01em;font-size:25px;margin-top:22px}
body.v4 h2 .mk,body.v4 h1:not(.pkgline) .mk{background:none;padding:0}
body.v4 .lead{font-size:14px;margin-bottom:20px}
body.v4 .label{font-weight:700;margin-top:28px}
body.v4 .row{padding:16px 0;min-height:66px}
body.v4 .row .t{font-weight:800;font-size:19.5px}
body.v4 .row .s{font-size:13px}
body.v4 .row.sub .cont{font-weight:700}
body.v4 .btn{border-radius:12px;min-height:54px}
body.v4 .btn.line{border-width:1.5px}
body.v4 .stem{font-size:22px}
body.v4 .opt{min-height:58px;font-size:19.5px}
body.v4 .qhead .sec{font-size:15px}
body.v4 .big{font-size:64px;font-weight:600;margin-top:18px}
body.v4 .big .pct{font-size:22px}
body.v4 .verdict{font-size:19px}
body.v4 .facts{font-size:15px}
body.v4 .mw{border-radius:10px}
body.v4 .dm-btn{border-radius:12px;min-height:72px}
body.v4 .welcome .pkgline{font-weight:800}
body.v4 .notice{line-height:2}
body.v4 .sales-text{font-size:17.5px}
body.v4 .hello{font-size:14.5px}
@media (prefers-reduced-motion:reduce){
  body.v4 .row,body.v4 .opt,body.v4 .btn,body.v4 .mw,body.v4 .md,body.v4 .dm-btn,body.v4 .spot{transition:none}
  #view.enter4{animation:none}
}

/* iPhone fix (2026-10-20): taps are taps (no double-tap zoom wait), the tapped option shows at once while the
   answer travels, and a lost answer gets one short line + "جرّب مرة ثانية" in place */
button,label,.opt,.btn,.btn4{touch-action:manipulation}
.opt.chosen{background:var(--slate-pale)}
.neterr{margin:18px 0 0;text-align:center}
.neterr p{margin:0;color:var(--red);font-weight:700;font-size:15px}
.neterr .btn{margin-top:12px}
