/* ===== دفعة الـ٢٠٠ (١٥ نوفمبر ٢٠٢٦) — كل فكرة عليها رقمها من docs/MOTION-IDEAS.md
   القاعدة: نفس مقاسات الموقع (tokens.css)، وكل حركة تطفي مع html.fxCalm (إعداد «الحركة» + تقليل الحركة في الجهاز). */

/* ===== #4 توحيد الحركة: ٤ سرعات + ٣ منحنيات ===== */
:root {
  --mo-1: 120ms; /* ضغطة، تلوين */
  --mo-2: 220ms; /* ظهور عنصر صغير */
  --mo-3: 320ms; /* نافذة، انتقال */
  --mo-4: 420ms; /* صفحة، لحظة كبيرة */
  --ease-out: cubic-bezier(0.2, 0, 0, 1); /* خروج ناعم */
  --ease-spring: linear(0, 0.2348 7.1%, 0.6566 15.6%, 0.8935 22.1%, 1.0289 29%, 1.0603 33.3%, 1.0558 37.1%, 1.0091 49.3%, 0.9958 59.6%, 1); /* زنبرك ٣٪ */
  --ease-pop: linear(0, 0.3036 6.8%, 0.8335 16.2%, 1.0911 23.2%, 1.1607 27.5%, 1.1614 31.4%, 1.0861 40.2%, 0.9773 53.2%, 0.9867 63.5%, 1.0026 77.9%, 1); /* احتفال ١٠٪ */
}
html.fxCalm {
  --mo-1: 1ms;
  --mo-2: 1ms;
  --mo-3: 1ms;
  --mo-4: 1ms;
}

/* ===== الإعدادات ===== */
/* #176 زر النسخ جنب الرمز */
html.ad1 #xv[data-ad="settings"] .st-cw {
  display: flex;
  align-items: center;
  gap: 8px;
}
html.ad1 #xv[data-ad="settings"] .st-cp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding-inline: 10px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--ad-mint);
  color: var(--st-on);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
html.ad1 #xv[data-ad="settings"] .st-cp svg {
  width: 16px;
  height: 16px;
}
html.ad1 #xv[data-ad="settings"] .st-cp:focus-visible {
  outline: 3px solid var(--st-on);
  outline-offset: 2px;
}
/* #178 تثبيت التطبيق بطاقة بارزة */
html.ad1 #xv[data-ad="settings"] .st-inst {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r-3xl);
  background: var(--c-green);
  box-shadow: var(--edge) var(--green-edge);
  color: #fff;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
html.ad1 #xv[data-ad="settings"] .st-inst .st-tx small {
  color: rgb(255 255 255 / 0.8);
}
html.ad1 #xv[data-ad="settings"] .st-inst b {
  font-size: 15px;
}
html.ad1 #xv[data-ad="settings"] .st-inI {
  font-size: 26px;
  line-height: 1;
}
html.ad1 #xv[data-ad="settings"] .st-inB {
  flex: none;
  padding: 6px 14px;
  border-radius: var(--r-md);
  background: var(--c-gold-2);
  box-shadow: 0 3px 0 var(--gold-edge);
  color: var(--c-brown-ink);
  font-size: 14px;
  font-weight: 700;
}
/* #177 الخروج بطاقة لحالها تحت بالأحمر · #236 تعبئة الضغط المطوّل */
html.ad1 #xv[data-ad="settings"] .st-outC {
  margin-top: 8px;
}
html.ad1 #xv[data-ad="settings"] .st-out {
  position: relative;
  overflow: hidden;
  color: var(--c-danger);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
html.ad1 #xv[data-ad="settings"] .st-out .st-ic {
  color: var(--c-danger);
}
html.ad1[data-theme="dark"] #xv[data-ad="settings"] .st-out,
html.ad1[data-theme="dark"] #xv[data-ad="settings"] .st-out .st-ic {
  color: #f4a39a;
}
html.ad1 #xv[data-ad="settings"] .st-hold {
  position: absolute;
  inset: 0;
  background: rgb(217 72 59 / 0.16);
  transform: scaleX(0);
  transform-origin: right;
  pointer-events: none;
}
html.ad1 #xv[data-ad="settings"] .st-out > :not(.st-hold) {
  position: relative;
}

/* ===== أسئلة «قبل الدرس» ===== */
/* #152 النقاط كانت عرضها صفر داخل الصف (flex) — تاخذ المساحة الباقية */
html.ad1 body:not(.t2) .ptO .ptTop .ptDots {
  flex: 1;
  min-width: 0;
}
/* #154 «ما ينحسب عليك» شارة فوق السؤال */
html.ad1 body:not(.t2) .ptO .ptSafe {
  align-self: flex-start;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: #e3f5ec;
  color: #0b6b43;
  font-size: 12px;
  font-weight: 700;
}
html.ad1[data-theme="dark"] body:not(.t2) .ptO .ptSafe {
  background: #143526;
  color: #9fe0bd;
}
/* #155 العيون */
html.ad1 body:not(.t2) .ptO .ptEye {
  display: inline-block;
}
/* #190 الشرطات في النتيجة حسب الجواب · #244 تتعبّى وحدة وحدة */
html.ad1 body:not(.t2) .ptO .ptRd i.idk {
  background: var(--ad-mint);
}
html.ad1 body:not(.t2) .ptO .ptRd i.bad {
  background: #e8a79f;
}
html.ad1[data-theme="dark"] body:not(.t2) .ptO .ptRd i.bad {
  background: #8a3b33;
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.fxCalm) body:not(.t2) .ptO .ptRd i {
    transform-origin: right;
    animation: m2Fill var(--mo-2) var(--ease-out) calc(var(--k) * 160ms) both;
  }
  html:not(.fxCalm) body:not(.t2) .ptO .ptRes .ptHero {
    animation: m2Up var(--mo-4) var(--ease-spring) 700ms both;
  }
  /* #245 «ركّز عليه» تنختم بالترتيب */
  html:not(.fxCalm) body:not(.t2) .ptO .ptParts li .pt-tag {
    animation: m2Stamp 380ms cubic-bezier(0.5, 0, 0.6, 1.4) both;
  }
  html:not(.fxCalm) body:not(.t2) .ptO .ptParts li:nth-child(1) .pt-tag { animation-delay: 1000ms; }
  html:not(.fxCalm) body:not(.t2) .ptO .ptParts li:nth-child(2) .pt-tag { animation-delay: 1220ms; }
  html:not(.fxCalm) body:not(.t2) .ptO .ptParts li:nth-child(3) .pt-tag { animation-delay: 1440ms; }
  html:not(.fxCalm) body:not(.t2) .ptO .ptParts li:nth-child(4) .pt-tag { animation-delay: 1660ms; }
  html:not(.fxCalm) body:not(.t2) .ptO .ptParts li:nth-child(n + 5) .pt-tag { animation-delay: 1880ms; }
}
/* #191 حلقة «عرفت ١ من ٤» */
html.ad1 body:not(.t2) .ptO .ptRing {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--r-pill);
  background: conic-gradient(var(--c-gold-2) calc(var(--p) * 1%), rgb(255 255 255 / 0.25) 0);
}
html.ad1 body:not(.t2) .ptO .ptRing b {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: var(--r-pill);
  background: var(--lu-c, var(--c-green));
  font-family: Alexandria, "IBM Plex Sans Arabic", sans-serif;
  font-size: 18px;
  color: #fff;
}
/* #192 مدة الدرس داخل الزر */
html.ad1 body:not(.t2) .ptO .ptMin {
  opacity: 0.75;
}

/* ===== حركات مشتركة ===== */
@keyframes m2Fill {
  from { transform: scaleX(0); }
}
@keyframes m2Up {
  from { opacity: 0; transform: translateY(16px); }
}
@keyframes m2Stamp {
  from { opacity: 0; transform: scale(2.2) rotate(-10deg); }
  70% { opacity: 1; transform: scale(0.92); }
}
@keyframes m2Pop {
  from { transform: scale(0.4); }
}

/* ===== الجولة (أول مرة) ===== */
/* #230 ثلاث ميزات تحت أول جملة */
.pfFeat {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 12px;
}
.pfFeat span {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--pf-soft);
  color: var(--pf-g2);
  font-size: 13px;
  font-weight: 700;
}
.pfFeat span.g {
  background: color-mix(in srgb, var(--c-gold-2) 30%, transparent);
  color: var(--c-gold-text);
}
html[data-theme="dark"] .pfFeat span.g {
  color: var(--c-gold-2);
}
/* #228 شريط «١ من ٩» بدل النقاط */
.pfDots.pfProg {
  align-items: center;
  gap: 10px;
}
.pfPT {
  flex: 1;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--pf-line);
  overflow: hidden;
}
.pfPT i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--pf-g2);
  transition: width var(--mo-3) var(--ease-out);
}
.pfProg small {
  flex: none;
  font: 700 13px var(--pf-fd);
  color: var(--pf-mute);
}
/* #229 «تخطّي» رابط صغير فوق، بعيد عن «التالي» */
.pfTourB {
  position: relative;
}
.pfTourB .pfSkip {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  min-height: 32px;
  padding: 4px 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.88);
  color: var(--c-ink);
  font: 700 13px var(--pf-f);
  box-shadow: none;
}
.pfTourN .pfGo {
  flex: 1;
}

/* ===== حسابي ===== */
/* #168 أصفار الطالب الجديد تصير جملة */
.pf .pfMiniR.pfMiniZ {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #dbe8e3;
}
.pf .pfMiniR[hidden] {
  display: none;
}

/* ===== الألعاب ===== */
/* #163 كلمة توضح الرقمين فوق */
.games-streak .gbU {
  margin-inline-start: -2px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.75;
}

/* ===== عناصر الحركات اللي يضيفها m200.js (الرئيسية) ===== */
.m2fx { pointer-events: none; }
/* #97 فقاعة الفصل المقفول */
.m2bub {
  position: fixed;
  z-index: 60;
  max-inline-size: 240px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--ad-ink, #1f3a36);
  color: var(--ad-card, #fff);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.18);
}
/* #104 ✓ خطة الأسبوع + الختم */
.m2ck { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.m2ck path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.m2stamp {
  position: absolute;
  inset-block-start: 6px;
  inset-inline-end: 10px;
  padding: 3px 10px;
  border: 2px solid var(--ad-g, #1f9d6b);
  border-radius: 8px;
  color: var(--ad-g, #1f9d6b);
  font-size: 12px;
  font-weight: 800;
  background: var(--ad-card, #fff);
}
/* #93 خط على الدرس المنتهي */
.m2strike { position: absolute; inset-inline: 0; inset-block-start: 50%; inline-size: 100%; block-size: 10px; margin-block-start: -5px; overflow: visible; }
.m2strike path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: 0.55; }
/* #10 نقاط أجزاء الدرس */
.m2parts { display: inline-flex; gap: 3px; margin-inline-start: 8px; vertical-align: middle; }
.m2parts i { inline-size: 12px; block-size: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.35); }
.m2parts i.ok { background: #fff; }
.m2parts i.now { background: #f5c542; }
/* #160 نقاط تحت صف المختبر */
.m2ldots { position: relative; display: flex; justify-content: center; gap: 5px; block-size: 6px; margin-block: -2px -12px; }
.m2ldots i { inline-size: 6px; block-size: 6px; border-radius: 3px; background: var(--ad-line, #d7e3df); transition: inline-size var(--mo-2), background-color var(--mo-2); }
.m2ldots i.on { inline-size: 16px; background: var(--ad-g, #1f9d6b); }
/* #100 الدودة بين نقاط الفصول */
.m2worm { position: absolute; inset-block-start: 50%; block-size: 8px; margin-block-start: -4px; border-radius: 4px; background: var(--ad-g, #1f9d6b); pointer-events: none; }
/* #108 «اسألني!» */
.m2say {
  position: absolute;
  inset-block-end: 40px;
  inset-inline-start: 16px;
  z-index: 3;
  padding: 3px 9px;
  border-radius: 10px 10px 2px 10px;
  background: #fff;
  color: #4b3fa8;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.15);
}
/* #113 #114 خطوط الرحلة والخريطة */
.m2path, .m2map { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; z-index: 2; overflow: visible; }
.m2path path { fill: none; stroke: rgb(255 255 255 / 0.7); stroke-width: 2; stroke-dasharray: 4 5; }
.m2map path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 5 4; stroke-linecap: round; }
.m2map circle { fill: #fff; }
/* #116 السلسلة الغذائية */
.m2chain {
  position: absolute;
  inset-block-end: 44px;
  inset-inline-end: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.9);
  font-size: 16px;
}
.m2chain .a { font-size: 12px; color: #2f7a4f; font-weight: 800; }
/* #105 السهم */
.m2arrow { position: absolute; inset-block-start: 50%; inset-inline-end: 100%; inline-size: 28px; block-size: 8px; margin-block-start: -4px; overflow: visible; z-index: 2; }
.m2arrow path { fill: none; stroke: #d64545; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
/* #159 */
html.ad1 #hx .ds3Lv > b::before { content: "🦠"; margin-inline-end: 3px; }
html.ad1 #hx .ds3Lv > span::after { content: "🔍"; margin-inline-start: 3px; opacity: 0.6; filter: grayscale(0.6); }

/* ===== غلاف الدرس ===== */
/* #141 «تنجح» و«تخلّص» كبسولتين في سطر واحد */
html.ad1 body:not(.t2) #lpHero.luCh .ds3Pass,
html.ad1 body:not(.t2) #lpHero .luEta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 12px 0 0;
  margin-inline-end: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
}
/* #143 شريط التقدّم داخل «كمّل» */
html.ad1 body:not(.t2) .luGo.m2prog {
  position: relative;
  overflow: hidden;
}
html.ad1 body:not(.t2) .luGo.m2prog::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: calc(var(--m2p, 0) * 100%);
  block-size: 5px;
  background: rgb(42 30 0 / 0.45);
  transition: inline-size var(--mo-4) var(--ease-out);
}
/* #30 الخط الذهبي تحت العنوان */
.m2gold { position: absolute; inset-inline: 0; inset-block-end: -4px; block-size: 3px; border-radius: 2px; background: #ffd166; transform-origin: right; }
/* #145 «ستتعلم» بطاقات مرقّمة */
html.ad1 body:not(.t2) #lpHero ul.m2learn {
  counter-reset: m2l;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
html.ad1 body:not(.t2) #lpHero ul.m2learn li {
  position: relative;
  counter-increment: m2l;
  margin: 0;
  padding: 10px 12px;
  padding-inline-start: 42px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--lu-c, #b4531f) 9%, transparent);
  list-style: none;
}
html.ad1 body:not(.t2) #lpHero ul.m2learn li::before {
  content: counter(m2l);
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 11px;
  display: grid;
  place-items: center;
  inline-size: 22px;
  block-size: 22px;
  border-radius: 50%;
  background: var(--lu-c, #b4531f);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
html.ad1 body:not(.t2) #lpHero ul.m2learn .m2t {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
html.ad1 body:not(.t2) #lpHero ul.m2learn.m2open .m2t { display: block; }
.m2more { margin: 0; padding: 4px 0; border: 0; background: none; color: var(--lu-c, #b4531f); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
/* #148 «بعد الدرس جرّب» بطاقات كبيرة */
html.ad1 body:not(.t2) #luAfter #mxLesson {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
html.ad1 body:not(.t2) #luAfter #mxLesson a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-block-size: 96px;
  margin: 0;
  padding: 10px 6px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.35;
  text-align: center;
}
html.ad1 body:not(.t2) #luAfter #mxLesson a em {
  inline-size: 44px;
  block-size: 44px;
  font-size: 26px;
}
html.ad1 body:not(.t2) #luAfter #mxLesson a em svg { inline-size: 26px; block-size: 26px; }
/* #149 مسار الفصل جنب «الرئيسية» */
.m2crumb { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 4px; }
.m2crumb i { font-style: normal; opacity: 0.45; }
.m2crumb u { text-decoration: none; color: var(--ad-g, #1f9d6b); }

/* ===== داخل الدرس ===== */
/* #193 اسم الجزء تحت رقمه بدل الشارة المكررة */
html.ad1 body:not(.t2) #lpPart.m2hide { display: none; }
html.ad1 body:not(.t2) #prog.m2named { margin-block-end: 18px; }
html.ad1 body:not(.t2) #prog.m2named .dt { position: relative; }
.m2pn {
  position: absolute;
  inset-block-start: calc(100% + 3px);
  inset-inline-start: 50%;
  translate: 50% 0;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ad-muted, #4f6b66);
  pointer-events: none;
}
html.ad1 body:not(.t2) #prog .dt.cur .m2pn { color: var(--lu-c, var(--ad-g)); }
/* #195 مدة الجزء + «كمّل من» على صورة الفيديو */
.luPoster .luPDur {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgb(0 0 0 / 0.6);
  color: #fff;
  font: 700 12.5px Alexandria, "IBM Plex Sans Arabic", sans-serif;
}
.luPoster .luPRes { position: absolute; inset: auto 0 0; z-index: 3; }
.luPoster .luPRes b {
  position: absolute;
  inset-block-end: 14px;
  inset-inline-end: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #f5c542;
  color: #12261f;
  font-size: 12.5px;
  font-weight: 700;
}
.luPoster .luPRes i { display: block; block-size: 5px; background: rgb(255 255 255 / 0.25); }
.luPoster .luPRes u { display: block; block-size: 100%; background: #f5c542; }
.luPoster [hidden] { display: none; }
/* #197 عدد الملاحظات شارة في زاوية الزر */
html.ad1 body:not(.t2) .luCine.nsOn .luQN { position: relative; overflow: visible; }
html.ad1 body:not(.t2) .luCine.nsOn .nsN {
  position: absolute;
  inset-block-start: -8px;
  inset-inline-end: -8px;
  background: #e5484d;
  color: #fff;
  box-shadow: 0 0 0 2px var(--ad-card, #fff);
}
/* #198 دوائر الأسئلة */
html.ad1 body:not(.t2) #qsAfter.m2qdOn > svg:last-of-type { display: none; }
.m2qd { display: flex; gap: 4px; align-items: center; flex: none; }
.m2qd i { inline-size: 12px; block-size: 12px; border: 2px solid currentColor; border-radius: 50%; opacity: 0.75; }
/* #226 وسوم الملاحظة */
.m2tags { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 8px; }
.m2tags button {
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lu-c, var(--ad-g, #1f9d6b)) 10%, transparent);
  color: var(--ad-ink, #12261f);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
/* #227 قائمة الملاحظات الفاضية */
html.ad1 body:not(.t2) .nsIn .luNl:empty::before {
  content: "⏱ ملاحظاتك تطلع هنا مع دقيقتها، تضغطها ويرجع الفيديو لها";
  display: block;
  margin-block-start: 12px;
  padding: 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ad-ink, #12261f) 5%, transparent);
  color: var(--ad-muted, #4f6b66);
  font-size: 13px;
  list-style: none;
}
/* #262 الورقة الطايرة */
.m2paper {
  position: fixed;
  z-index: 80;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff8e1;
  color: #12261f;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.15);
  pointer-events: none;
}
/* #15 «يفكر…» يلمع */
.m2think {
  background-image: linear-gradient(90deg, transparent 0 30%, rgb(255 255 255 / 0.55) 50%, transparent 70% 100%);
  background-size: 250% 100%;
  animation: m2Shim 1.1s linear infinite;
  color: var(--ad-muted, #4f6b66);
}
@keyframes m2Shim { from { background-position: 100% 0; } to { background-position: -150% 0; } }
html.fxCalm .m2think { animation: none; }

/* ===== الأسئلة ===== */
/* #1(أ) الخيار ينغرس في حافته وقت الضغط */
html.ad1:not(.fxCalm) body:not(.t2):not(.tq) #quiz .lesson-quiz-option:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--lu-c, var(--c-green)), inset 0 0 0 1px var(--lu-c, var(--c-green));
}
.m2ink {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  background: rgb(31 138 87 / 0.22);
  pointer-events: none;
}
.lesson-quiz-option > span { position: relative; z-index: 1; }
/* #71 قلم أحمر على الغلط */
.m2pen { position: absolute; inset-inline: -4px; inset-block-start: 50%; inline-size: calc(100% + 8px); block-size: 12px; margin-block-start: -5px; overflow: visible; pointer-events: none; }
.m2pen path { fill: none; stroke: #d64545; stroke-width: 2.5; stroke-linecap: round; }

/* ===== ورقة الفصل ===== */
/* #203 «ابدأ» كبسولة بلون الفصل */
.chapter-sheet-panel .lc > .r.m2go {
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--m2c, var(--ad-g, #1f9d6b)) 14%, transparent);
  color: var(--m2c, var(--ad-g, #1f9d6b));
  font-weight: 700;
  font-size: 12.5px;
}
html[data-theme="dark"] .chapter-sheet-panel .lc > .r.m2go { background: color-mix(in srgb, var(--m2c, #9ee6c4) 30%, transparent); color: #fff; }
/* ===== الاختبار النهائي ===== */
.m2open { display: inline-block; padding: 2px 9px; border-radius: 999px; background: rgb(16 48 42 / 0.06); font-weight: 700; font-size: 12px; }
html[data-theme="dark"] .m2open { background: rgb(255 255 255 / 0.08); }
.m2shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.4) 50%, transparent 70%); }
/* ===== الإعدادات ===== */
/* #17 المفاتيح بزنبرك، والزر يتمدد وقت الضغط */
html.ad1 #xv[data-ad="settings"] .st-tr i { transition: inset-inline-start var(--mo-3) var(--ease-spring), inline-size var(--mo-2) var(--ease-out); }
html.ad1:not(.fxCalm) #xv[data-ad="settings"] .st-sw:active .st-tr i { inline-size: 30px; }
html.ad1:not(.fxCalm) #xv[data-ad="settings"] .st-sw[aria-checked="true"]:active .st-tr i { inset-inline-start: 18px; }

/* ===== الألعاب ===== */
/* #125 شريط «تحدي اليوم» */
.games-challenge-info:has(.m2bar) { position: relative; }
.m2bar { position: absolute; inset-inline: 16px; inset-block-end: 7px; display: block; block-size: 4px; border-radius: 2px; background: var(--ad-line, #d7e3df); overflow: hidden; }
.m2bar i { display: block; block-size: 100%; border-radius: 3px; background: #f5a524; transform-origin: right; }

/* ===== الألعاب من الداخل ===== */
.m2swT { position: absolute; inset-block-start: 8px; inset-inline-start: 50%; translate: 50% 0; padding: 3px 12px; border: 2px solid; border-radius: 10px; background: var(--ad-card, #fff); font-weight: 800; font-size: 15px; opacity: 0; pointer-events: none; z-index: 3; }
.m2swH { display: block; margin-block: 4px 8px; color: var(--ad-muted, #4f6b66); font-size: 12px; text-align: center; }
.m2fly { position: fixed; z-index: 90; padding: 4px 10px; border-radius: 10px; background: #1f8a57; color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; pointer-events: none; }
.blank.m2fill { color: #1f8a57; font-weight: 700; }
#xv[data-ad="order"] .order-list li { touch-action: none; transition: transform var(--mo-2) var(--ease-out); }
#xv[data-ad="order"] .order-list li.m2drag { position: relative; z-index: 2; transition: none; box-shadow: 0 10px 24px rgb(0 0 0 / 0.18); cursor: grabbing; }
.m2line { position: fixed; inset: 0; inline-size: 100vw; block-size: 100vh; z-index: 60; pointer-events: none; overflow: visible; }
.m2line path { fill: none; stroke: #1f8a57; stroke-width: 3; stroke-linecap: round; }
/* #89 المؤقت دائرة */
html.ad1 body:not(.t2) #xv:is([data-ad="match"], [data-ad="duel"]) #g2Time.m2ring { display: inline-grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 50%; background: radial-gradient(closest-side, var(--ad-card, #fff) 76%, transparent 78% 100%), conic-gradient(#1f8a57 calc(var(--m2t, 1) * 100%), var(--ad-line, #d7e3df) 0); font-weight: 800; }
html.ad1 body:not(.t2) #xv:is([data-ad="match"], [data-ad="duel"]) #g2Time.m2ring.m2warn { background: radial-gradient(closest-side, var(--ad-card, #fff) 76%, transparent 78% 100%), conic-gradient(#d64545 calc(var(--m2t, 1) * 100%), var(--ad-line, #d7e3df) 0); color: #d64545; }
/* #189 شرائح الدروس */
#xv select.m2selHide, .m2selHide { position: absolute; inset-block-start: 0; inset-inline-start: 0; inline-size: 1px; min-inline-size: 0; max-inline-size: 1px; block-size: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
.p2-lbl:has(.m2selHide) { position: relative; }
.m2chips { display: flex; gap: 6px; overflow-x: auto; padding-block: 2px 6px; scrollbar-width: none; }
.m2chips button { flex: none; padding: 7px 13px; border: 1.5px solid var(--ad-line, #d7e3df); border-radius: 999px; background: var(--ad-card, #fff); color: var(--ad-ink, #12261f); font: inherit; font-size: 13px; font-weight: 700; }
.m2chips button[aria-checked="true"] { border-color: var(--ad-g, #1f9d6b); background: color-mix(in srgb, var(--ad-g, #1f9d6b) 12%, transparent); color: var(--ad-g, #1f9d6b); }

/* ===== تقدّمي ===== */
.p2-steps.m2steps > li > span:first-child { position: relative; }
.p2-steps.m2steps > li:not(:last-child) > span:first-child::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 100%;
  inline-size: 0;
  block-size: 30px;
  border-inline-start: 2px dashed var(--ad-line, #d7e3df);
  translate: 50% 0;
}
.m2here { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; background: #ffd166; color: #2a1e00; font-size: 11px; font-weight: 700; vertical-align: middle; }
.m2ghostW { position: relative; display: grid; place-items: center; }
.m2ghost { display: grid; gap: 10px; inline-size: 100%; opacity: 0.35; filter: grayscale(1); pointer-events: none; }
.m2gs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m2gs i { display: grid; gap: 4px; padding: 8px; border-radius: 10px; background: var(--ad-line, #d7e3df); }
.m2gs b { display: block; inline-size: 40%; block-size: 14px; border-radius: 4px; background: var(--ad-muted, #4f6b66); }
.m2gs s { display: block; inline-size: 70%; block-size: 8px; border-radius: 4px; background: var(--ad-muted, #4f6b66); opacity: 0.5; }
.m2gc { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.m2gc i { block-size: 18px; border-radius: 5px; background: var(--ad-line, #d7e3df); }
.m2gl { position: absolute; padding: 6px 12px; border-radius: 999px; background: var(--ad-card, #fff); color: var(--ad-ink, #12261f); font-weight: 700; font-size: 13px; box-shadow: 0 4px 12px rgb(0 0 0 / 0.08); }

/* ===== حسابي ===== */
.pfTl.cert.m2empty .pfTlN { display: none; }
.m2scroll { display: inline-block; font-size: 22px; line-height: 1; opacity: 0.45; filter: grayscale(0.4); }
.pfTlBar.m2sh { gap: 2px; }
.pfTlBar.m2sh i { display: grid; place-items: center; inline-size: auto; block-size: auto; background: none; font-size: 11px; font-style: normal; line-height: 1; filter: brightness(0); opacity: 0.25; }
.pfTlBar.m2sh i:is(.on, .ok, .dn) { filter: none; opacity: 1; }
#pfHab .pfLnk.m2seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ad-ink, #12261f) 7%, transparent); }
#pfHab .pfLnk.m2seg span { padding: 3px 9px; border-radius: 999px; font-size: 12px; }
#pfHab .pfLnk.m2seg span.on { background: var(--ad-card, #fff); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
.m2story ol { --m2h: 100%; position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.m2story ol::before { content: ""; position: absolute; inset-inline-start: 17px; inset-block-start: 18px; block-size: calc(var(--m2h) - 36px); border-inline-start: 2px dashed var(--ad-line, #d7e3df); }
@property --m2h { syntax: "<percentage>"; inherits: true; initial-value: 100%; }
.m2story li { position: relative; display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; }
.m2story li i { grid-row: span 2; display: grid; place-items: center; inline-size: 36px; block-size: 36px; border-radius: 50%; background: var(--ad-bg, #f1f6f3); font-style: normal; font-size: 18px; }
.m2story li.on i { background: #ffd166; }
.m2story li:not(.on) { opacity: 0.6; }
.m2story li small { color: var(--ad-muted, #4f6b66); font-size: 12px; }

/* ===== بطاقتي ===== */
.m2ch { display: inline-block; }
/* #181 «فعّل الدخول ببصمتك» الزر الأساسي العريض */
.pfIdc ~ .pfGrid.g2:has([data-c="pk"]) { grid-template-columns: 2fr 1fr; }
.pfIdc ~ .pfGrid.g2 [data-c="pk"] { order: -1; border-color: transparent; background: var(--c-green, #0d4f3c); color: #fff; box-shadow: 0 4px 0 #082f24; }
.pfIdc ~ .pfGrid.g2 [data-c="save"] { font-size: 0.875rem; }
/* ===== مختبر كائنك ===== */
.sx-pts.m2hidePts { display: none; }
.m2gem { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-block: 10px 4px; padding: 10px 14px; border-radius: 16px; background: color-mix(in srgb, #4aa3df 12%, var(--ad-card, #fff)); }
.m2gemN { font-weight: 800; cursor: pointer; }
.m2gem small { flex: 1; color: var(--ad-muted, #4f6b66); font-size: 12px; }
.m2gem a { color: var(--ad-g, #1f9d6b); font-weight: 700; font-size: 13px; text-decoration: none; }
.sx-pr.m2lack { color: var(--ad-muted, #4f6b66); opacity: 0.85; }
.m2drop { position: fixed; z-index: 90; inline-size: 16px; block-size: 16px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 10px currentColor; }
.m2ringB { position: fixed; z-index: 90; inline-size: 60px; block-size: 60px; border: 3px solid; border-radius: 50%; pointer-events: none; }
.m2gemF { position: fixed; z-index: 90; font-size: 16px; pointer-events: none; }
#sxRoot .sx-pts.m2hidePts { display: none; }
/* #185 الألوان بثلاث أعمدة */
html.ad1 #xv[data-ad="shop"] #sxBody .sx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html.ad1 #xv[data-ad="shop"] #sxBody .sx-it { padding: 10px 6px; font-size: 13px; }
html.ad1 #xv[data-ad="shop"] #sxBody .sx-it b { font-size: 13px; }
html.ad1 #xv[data-ad="shop"] #sxBody .sx-it small { font-size: 11px; }
html.ad1 #xv[data-ad="shop"] #sxBody .sx-pr { font-size: 11px; white-space: nowrap; }

/* ===== البحث ===== */
.m2sug { display: none; padding: 14px 4px 4px; }
body.srOpen .m2sug:not([hidden]) { display: block; }
.m2sug[hidden] { display: none; }
.m2sug > b { display: block; margin-block: 4px 8px; font-size: 13px; color: var(--ad-muted, #4f6b66); }
.m2sug > div { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 14px; }
.srch .m2sug button { min-block-size: 0; box-shadow: none; padding: 7px 13px; border: 1px solid var(--ad-line, #d7e3df); border-radius: 999px; background: var(--ad-card, #fff); color: var(--ad-ink, #12261f); font: inherit; font-size: 14px; }
.m2tabs { display: flex; gap: 6px; margin-block: 6px 10px; }
html.ad1 body.srOpen:not(.t2) #srchRes .m2tabs button, #srchRes .m2tabs button { display: inline-flex; flex-direction: row; align-items: center; block-size: auto; line-height: 1.4; border-radius: 999px; inline-size: auto; box-shadow: none; border-bottom: 0; padding: 6px 13px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--ad-ink, #12261f) 6%, transparent); color: var(--ad-ink, #12261f); font: inherit; font-size: 13px; font-weight: 700; }
html.ad1 body.srOpen:not(.t2) #srchRes .m2tabs button[aria-selected="true"], #srchRes .m2tabs button[aria-selected="true"] { background: var(--c-green, #0d4f3c); color: #fff; }
.m2lch { display: inline-block; margin-block-start: 4px; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--m2c, #1f9d6b) 14%, transparent); color: var(--m2c, #1f9d6b); font-weight: 700; font-size: 12px; }
.adz-r.m2clamp .adz-d { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
::highlight(m2s) { background-color: rgb(245 197 66 / 0.45); color: inherit; }
/* ===== الإشعارات ===== */
html.ad1 body:not(.t2) #xv[data-ad="notifs"] .nf-push.m2slim { flex-direction: row; position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 40px 10px 12px; padding-inline: 12px 40px; }
html.ad1 body:not(.t2) #xv[data-ad="notifs"] .nf-push.m2slim .nf-push-row { margin: 0; flex: 1; min-inline-size: 0; }
html.ad1 body:not(.t2) #xv[data-ad="notifs"] .nf-push.m2slim .nf-push-row p { margin: 0; font-size: 13.5px; font-weight: 700; }
html.ad1 body:not(.t2) #xv[data-ad="notifs"] .nf-push.m2slim .nf-push-btn { margin: 0; flex: none; inline-size: auto; min-block-size: 36px; padding-inline: 14px; }
html.ad1 body:not(.t2) #xv[data-ad="notifs"] .nf-push .m2x { position: absolute; inset-inline-end: 8px; inset-block-start: 50%; translate: 0 -50%; inline-size: 28px; block-size: 28px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.15); color: inherit; font-size: 14px; }

/* ===== القضية ===== */
.lb-cr .file .lbl.m2tab { display: inline-block; padding: 3px 10px; border-radius: 8px 8px 0 0; background: rgb(232 181 74 / 0.18); color: #e8b54a; font-weight: 700; letter-spacing: 0.02em; }
.lb-cr .score:has(.m2seg6) { flex-wrap: wrap; }
.m2seg6 { flex-basis: 100%; min-inline-size: 90px; display: flex; gap: 3px; margin-block-start: 5px; }
.m2seg6 i { flex: 1; block-size: 5px; border-radius: 3px; background: #e8b54a; transition: opacity var(--mo-3), background-color var(--mo-3); }
.m2seg6 i.off { background: rgb(255 255 255 / 0.15); }
.lb-evc.m2ev { position: relative; }
.lb-evc.m2ev::after { content: "🔒"; position: absolute; inset-block-start: 6px; inset-inline-end: 8px; font-size: 12px; opacity: 0.7; pointer-events: none; }
.lb-evc.m2ev.open::after { content: "✓"; color: #6fd39b; font-weight: 800; opacity: 1; }
/* ===== الخريطة ===== */
.m2cnt { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.92); color: #12261f; font-weight: 800; font-size: 13px; box-shadow: 0 2px 8px rgb(0 0 0 / 0.1); }
#mxColl.m2grouped { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.m2grp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.m2grp > b { font-size: 13px; color: var(--ad-ink, #12261f); }
.m2grp > div { display: contents; }
#mxColl .m2lk { min-inline-size: 44px; padding-inline: 10px; }
#mxColl .m2lk.m2num::after { font-size: 12px; opacity: 0.7; }
#mxColl .m2num::after { content: attr(data-m2n); margin-inline-start: 2px; opacity: 0.55; font-size: 11px; }
#mxSpec .m2q { display: block; margin-block-end: 4px; font-size: 34px; filter: grayscale(1); opacity: 0.55; }
#mxSpec .m2open { margin-block-start: 8px; padding: 6px 14px; border: 0; border-radius: 999px; background: var(--c-green, #0d4f3c); color: #fff; font: inherit; font-size: 13px; font-weight: 700; }
.m2next { display: inline-block; margin-block-start: 6px; }

/* ===== أساسيات ===== */
.m2tabInd { position: absolute; z-index: 0; border-radius: 999px; background: var(--c-green, #0d4f3c); pointer-events: none; }
.m2top { position: fixed; inset-inline-end: 16px; inset-block-end: calc(84px + env(safe-area-inset-bottom)); z-index: 40; display: grid; place-items: center; inline-size: 44px; block-size: 44px; border: 0; border-radius: 50%; background: var(--ad-card, #fff); color: var(--ad-ink, #12261f); box-shadow: 0 4px 14px rgb(0 0 0 / 0.16); }
.m2top[hidden] { display: none; }
/* #200 نقطة المزامنة في الرأس */
html.m2syncDot #duSyncBar { display: none; }
.home-rank-ring { position: relative; }
.m2sync { position: absolute; inset-block-start: -2px; inset-inline-end: -2px; z-index: 2; display: grid; place-items: center; inline-size: 14px; block-size: 14px; padding: 0; border: 2px solid var(--ad-bg, #f1f6f3); border-radius: 50%; background: #f08a24; color: #fff; font-size: 9px; font-weight: 800; line-height: 1; }
.m2sync[hidden] { display: none; }
.m2sync.up { background: #4aa3df; }
.m2sync.ok { background: #1f8a57; }
.m2sync::before { content: ""; position: absolute; inset: -14px; }
/* #58 */
img.m2blur { filter: blur(10px); transition: filter var(--mo-4) var(--ease-out); }
img.m2blur.m2in { filter: none; }
/* #9 قلم التظليل */
.games-term.m2hl { background-image: linear-gradient(transparent 60%, rgb(255 209 102 / 0.75) 60%); background-repeat: no-repeat; background-size: 100% 40%; background-position: 100% 100%; }
/* #24 التحميل بشريط DNA بدل الدائرة */
html #gate.lab .duSpinner { position: relative; border: 0; animation: none; inline-size: 22px; }
html #gate.lab .duSpinner::before, html #gate.lab .duSpinner::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 50%; inline-size: 7px; block-size: 7px; margin: -3.5px; border-radius: 50%; background: #fff; animation: m2Dna 0.9s ease-in-out infinite; }
html #gate.lab .duSpinner::after { background: #ffd166; animation-delay: -0.45s; }
@keyframes m2Dna { 0%, 100% { transform: translateX(-8px) scale(0.7); } 50% { transform: translateX(8px) scale(1.15); } }
html.fxCalm #gate.lab .duSpinner::before, html.fxCalm #gate.lab .duSpinner::after { animation: none; }
.m2chips { contain: inline-size; inline-size: 100%; min-inline-size: 0; }

/* #7 تسليم الاختبار بالضغط المطوّل: الزر يمتلي */
html body #xv #tmEnd.tmHold { background-image: linear-gradient(rgb(255 255 255 / 0.3), rgb(255 255 255 / 0.3)); background-repeat: no-repeat; background-position: right center; background-size: 0% 100%; }

/* ===================== الجولة الثانية (m200b.js) ===================== */
/* #11 هيكل يلمع وقت تحميل الدوري */
#lgB > p.m2skelP { position: relative; min-block-size: 168px; color: transparent; }
#lgB > p.m2skelP::before { content: ""; position: absolute; inset: 0; border-radius: 14px; background: repeating-linear-gradient(to bottom, var(--ad-line, #e3ebe7) 0 48px, transparent 48px 60px); -webkit-mask-image: linear-gradient(90deg, #000 30%, rgb(0 0 0 / 0.45) 50%, #000 70%); -webkit-mask-size: 250% 100%; mask-image: linear-gradient(90deg, #000 30%, rgb(0 0 0 / 0.45) 50%, #000 70%); mask-size: 250% 100%; animation: m2Mask 1.2s linear infinite; }
@keyframes m2Mask { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: -150% 0; mask-position: -150% 0; } }
html.fxCalm #lgB > p.m2skelP::before { animation: none; }
#lgB .league-row { position: relative; }
/* #64 النجوم */
.m2stars { display: flex; justify-content: center; gap: 6px; margin-block: 6px 2px; font-size: 26px; line-height: 1; }
.m2stars i { font-style: normal; color: var(--ad-line, #d7e3df); }
.m2stars i.on { color: #f5c542; text-shadow: 0 2px 0 #c99a1c; }
/* #77 سهم التغيّر */
.teacher-card .m2tr { display: block; font-style: normal; font-size: 11px; font-weight: 700; }
.teacher-card .m2tr.up { color: #1f8a57; }
.teacher-card .m2tr.dn { color: #c2412d; }
/* #36 الواجب */
#assignBox .assignment-row { position: relative; overflow: hidden; }
.m2hwBar { position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 4px; background: rgb(0 0 0 / 0.06); }
.m2hwBar u { display: block; block-size: 100%; background: #f5a524; transform-origin: right; }
.assignment-row.late .m2hwBar u { background: #c2412d; }
#assignBox .assignment-row.m2done > span { opacity: 0; }
.m2stampHW { position: absolute; inset-block-start: 50%; margin-block-start: -14px; inset-inline-end: 16px; padding: 1px 8px; border: 2px solid #1f8a57; border-radius: 8px; color: #1f8a57; font-style: normal; font-weight: 800; font-size: 13px; transform: rotate(-12deg); }
/* #37 خط «رسائل جديدة» */
.m2newL { display: flex; align-items: center; gap: 8px; margin-block: 10px; color: #c2412d; font-size: 12px; font-weight: 700; }
.m2newL::before, .m2newL::after { content: ""; flex: 1; border-block-start: 1.5px solid currentColor; opacity: 0.5; }
/* #70 */
.m2wsFly { position: fixed; z-index: 95; display: grid; justify-items: center; gap: 2px; padding: 8px 12px; border-radius: 12px; background: var(--ad-card, #fff); box-shadow: 0 8px 24px rgb(0 0 0 / 0.18); pointer-events: none; }
.m2wsFly b { font-size: 28px; line-height: 1; }
.m2wsFly small { color: #1f8a57; font-weight: 700; font-size: 12px; white-space: nowrap; }
/* #84 اسحب للحذف */
.askO .y.m2yHide { display: none; }
.m2slide { --m2f: 0; position: relative; display: flex; align-items: center; justify-content: center; block-size: 52px; margin-block: 14px 8px; border-radius: 999px; background: linear-gradient(to left, rgb(194 65 45 / calc(0.15 + var(--m2f) * 0.6)) calc(var(--m2f) * 100%), color-mix(in srgb, #c2412d 10%, transparent) 0); color: #c2412d; font-weight: 700; font-size: 14px; touch-action: none; user-select: none; }
.askO .m2slide button { min-inline-size: 0; min-block-size: 0; padding: 0; box-shadow: none; position: absolute; inset-inline-start: 4px; inset-block-start: 4px; inline-size: 44px; block-size: 44px; border: 0; border-radius: 50%; background: #c2412d; color: #fff; font-size: 18px; transition: transform var(--mo-3) var(--ease-spring); }
.m2slide span { padding-inline-start: 40px; }
/* #2 #94 */
.m2flood { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
/* #44 */
#bNav .nvPill { transform-origin: center; }
/* #20 اسحب للتحديث */
.m2ptr { position: fixed; inset-block-start: 8px; inset-inline: 0; margin-inline: auto; z-index: 130; display: grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 50%; background: var(--ad-card, #fff); box-shadow: 0 4px 14px rgb(0 0 0 / 0.16); pointer-events: none; }
.m2ptr img { inline-size: 28px; block-size: 28px; border-radius: 8px; }
.m2ptr.ready { box-shadow: 0 0 0 3px #f5c542, 0 4px 14px rgb(0 0 0 / 0.16); }
.m2ptr.go img { animation: m2spin 0.7s linear infinite; }
@keyframes m2spin { to { transform: rotate(360deg); } }
/* #68 */
.m2bub2 { position: absolute; inset-block-end: 30%; inline-size: 6px; block-size: 6px; border: 1.5px solid currentColor; border-radius: 50%; pointer-events: none; opacity: 0; }
/* #69 العدسة */
.m2lens { position: fixed; z-index: 140; inline-size: 140px; block-size: 140px; border: 4px solid #fff; border-radius: 50%; background-color: #fff; background-repeat: no-repeat; box-shadow: 0 8px 24px rgb(0 0 0 / 0.3); pointer-events: none; }
/* #79 */
.m2plane { position: fixed; z-index: 140; color: #0d4f3c; font-size: 22px; pointer-events: none; }
html[data-theme="dark"] .m2plane { color: #f5c542; }
