/* =========================================================
   الأخوان بربروسا | طبقة الحركة في CSS (الأرقام والقواعد في motion.js)
   هنا فقط العناصر اللي ترسمها الحركة: القذيفة، الشرر، الماء، الختم، اللافتة
   ========================================================= */
.mo-layer{position:fixed; inset:0; z-index:55; pointer-events:none; overflow:hidden;}
.mo-spark{position:absolute; width:9px; height:9px; border-radius:50%;}
.mo-spark.sq{width:11px; height:5px; border-radius:1px;}
.mo-ring{position:absolute; border:4px solid; border-radius:50%;}
.mo-drop{position:absolute; width:8px; height:11px; border-radius:60% 60% 60% 60%/70% 70% 40% 40%; background:linear-gradient(#EAF6F4,#7FC1C4);}
.mo-flash{position:absolute; mix-blend-mode:screen;}
.mo-float{position:absolute; font-family:"Lalezar","Thmanyah Sans","IBM Plex Sans Arabic",sans-serif; font-size:clamp(2rem,7vw,3.4rem); line-height:1;
  direction:ltr; white-space:nowrap; -webkit-text-stroke:5px #14100c; paint-order:stroke fill; text-shadow:0 4px 0 rgba(0,0,0,.35);}

/* القذيفة وذيلها */
.mo-shot{position:absolute; width:0; height:0;}
.mo-ball{position:absolute; left:0; top:0; display:block; width:20px; height:20px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #6b6660, #14110f 62%); box-shadow:0 0 0 2px rgba(0,0,0,.35), 0 0 18px 4px rgba(242,163,58,.55);}
.mo-ball.nade{width:20px; height:24px; border-radius:46% 46% 50% 50%; background:radial-gradient(circle at 35% 30%, #5d6b4b, #1a1f14 65%); box-shadow:0 0 0 2px rgba(0,0,0,.35), 0 0 12px 2px rgba(242,163,58,.35);}
.mo-ball.nade::before{content:""; position:absolute; top:-6px; left:6px; width:8px; height:7px; border-radius:2px; background:#2a2a24;}
.mo-ball.mega{width:30px; height:30px; background:radial-gradient(circle at 35% 30%, #FFE9A8, #F2A33A 40%, #B3261A 75%); box-shadow:0 0 0 2px rgba(0,0,0,.3), 0 0 30px 10px rgba(242,163,58,.75);}
.mo-ball.jam{width:26px; height:26px; background:#E11B1B; box-shadow:0 0 0 3px #fff, 0 0 14px rgba(0,0,0,.4);}
.mo-ball.jam::after{content:""; position:absolute; left:5px; right:5px; top:10px; height:6px; background:#fff; border-radius:1px;}
.mo-puff{position:absolute; width:16px; height:16px; border-radius:50%; background:radial-gradient(circle, rgba(240,236,224,.8), rgba(240,236,224,0) 70%);}

/* عنصر طائر (كرت مشترى / جندي منشق) */
.mo-fly{position:absolute; display:grid; place-items:center;}
.mo-fly > *{width:100%; height:100%;}
.mo-fly.man{border-radius:3px; background:var(--fc,#E8B84A); box-shadow:0 0 0 1.5px rgba(0,0,0,.45), 0 0 10px var(--fc,#E8B84A);}

/* الختم */
.mo-stamp{position:absolute; display:grid; place-items:center; padding:6px 18px; border:5px solid currentColor; border-radius:12px; color:#C21F12;
  font-family:"Lalezar","Thmanyah Sans","IBM Plex Sans Arabic",sans-serif; font-size:clamp(1.5rem,5vw,2.4rem); line-height:1.25; white-space:nowrap;
  background:rgba(243,235,221,.92); box-shadow:0 6px 0 rgba(0,0,0,.25), inset 0 0 0 2px rgba(194,31,18,.25);}
.mo-stamp.guard{color:#0E7FA6;}
.mo-stamp.gold{color:#8A5A00;}
.mo-stamp img{width:1.3em; height:1.3em; object-fit:contain; margin-inline-end:.3em; vertical-align:-.25em;}
.mo-stamp > span{display:flex; align-items:center;}

/* اللافتة الكبيرة: ضربة فرشاة تمسح الشاشة ثم اللافتة فوقها */
.mo-banner{position:fixed; inset:0; z-index:56; display:grid; place-items:center; pointer-events:none; overflow:hidden;}
.mb-stroke{position:absolute; left:-4%; right:-4%; top:50%; height:clamp(120px,24vh,210px); transform:translateY(-50%) rotate(-2.2deg);
  background:var(--bc); opacity:.92;
  -webkit-mask:linear-gradient(#000,#000); mask:linear-gradient(#000,#000);
  clip-path:inset(0 0 0 100%);
  filter:url(#brushEdge);
  box-shadow:0 0 0 2px rgba(0,0,0,.12);}
.mb-pill{position:relative; display:grid; justify-items:center; gap:0; padding:6px clamp(20px,5vw,44px); text-align:center; max-width:92vw; color:#F8F1E3;
  font-family:"Lalezar","Thmanyah Sans","IBM Plex Sans Arabic",sans-serif; text-shadow:0 3px 0 rgba(0,0,0,.4);}
.mb-pill .mb-k{font-family:"Thmanyah Sans","IBM Plex Sans Arabic",sans-serif; font-size:clamp(.9rem,2.4vw,1.1rem); font-weight:700; opacity:.92;}
.mb-pill b{font-weight:400; font-size:clamp(2rem,7.5vw,3.8rem); line-height:1.25;}

/* تموّج الحبر عند الضغط */
.mo-rip{position:absolute; z-index:0; margin:0; border-radius:50%; pointer-events:none; transform:translate(-50%,-50%) scale(0);
  background:radial-gradient(circle, rgba(255,255,255,.5), rgba(255,255,255,0) 70%); animation:moRip .55s cubic-bezier(.16,1,.3,1) forwards;}
@keyframes moRip{to{transform:translate(-50%,-50%) scale(1); opacity:0;}}

@media (prefers-reduced-motion: reduce){
  .mo-rip,.mo-shot,.mo-puff,.mo-spark,.mo-ring,.mo-drop,.mo-flash,.mo-fly{display:none !important;}
}
