/* جيم مافيا — شكل ناعم (27/11): بدون زوايا مقصوصة وبدون كحلي.
   كل الأزرار والبطاقات بزوايا مدوّرة. آخر ملف بيتحمّل بصفحة الشاشة الكبيرة وصفحة اللاعب، فبيغلب على اللي قبله. */
:root{--mu-clip:none;--hm-notch:none;--rad:16px;--rad-b:999px}

/* الأزرار: حبة (زوايا مدوّرة كاملة) */
html body .btn,html body .rs-ok,html body .mbuy,html body .homeb,html body .chip,html body .stp button,html body .gsel button,
html body[data-edition="mafia"] .bar .homeb,html body #motiv .go,html body #motiv .skip{clip-path:none!important;border-radius:var(--rad-b)!important}
/* أزرار الأيقونات والشريط الجانبي */
html body .ib,html body[data-edition="mafia"] .dk,html body[data-edition="mafia"] .pt,html body .badge,html body .rc-r{clip-path:none!important;border-radius:14px!important}
/* البطاقات والنوافذ واللافتات */
html body .card,html body .stepbox,html body .res,html body .pl,html body .bang,html body .me,html body .cover,html body .rc,
html body .jm .jb,html body[data-edition="mafia"] .modal .box,html body[data-edition="mafia"] .hang-in,html body[data-edition="mafia"] .plq,
html body[data-edition="mafia"] .card.say,html body #motiv .sign .bd,html body[data-edition="mafia"] .arch .ar-tab,
html body .hm-plq,html body[data-edition="mafia"] .scn .res.clue{clip-path:none!important;border-radius:var(--rad)!important}
html body .hm-plq::before,html body[data-edition="mafia"] .scn:not(.ph-setup) .hang-in::before,html body[data-edition="mafia"] .scn .wall .plq::before{clip-path:none!important;border-radius:inherit!important}
html body .pl{border-radius:12px!important}

/* ===== الصفحة الأولى: «اختاروا نوع السهرة» (27/11) ===== */
html body[data-edition="mafia"] .ph-setup .sc-open.mh{width:min(1380px,94vw)!important;gap:clamp(12px,2.6vh,30px);justify-content:center}
html body[data-edition="mafia"] .mh-t{font-family:Amiri,Cairo,serif;font-weight:700;font-size:clamp(28px,5.4vh,58px);line-height:1.2;color:#F4EBDB;margin:0;text-shadow:none}
html[lang=en] body[data-edition="mafia"] .mh-t{font-family:Cairo,sans-serif;font-weight:800}
html body[data-edition="mafia"] .mh-g{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.6vw,24px);width:100%}
html body[data-edition="mafia"] .mh-c{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;text-align:start;gap:8px;
  min-height:clamp(130px,25vh,250px);padding:clamp(16px,3vh,32px) clamp(16px,1.8vw,30px);border-radius:24px;background:rgba(58,149,144,.95);color:#F4EBDB;
  font-family:Cairo,sans-serif;transition:background-color .2s,color .2s,transform .2s}
html body[data-edition="mafia"] .mh-c:hover{background:#43A39D}
html body[data-edition="mafia"] .mh-c:focus-visible{outline:3px solid #F6C453;outline-offset:3px}
html body[data-edition="mafia"] .mh-c.on{background:#F6C453;color:#3A2B3B}
html body[data-edition="mafia"] .mh-c b{font-family:Amiri,Cairo,serif;font-weight:700;font-size:clamp(24px,4.6vh,46px);line-height:1.15}
html[lang=en] body[data-edition="mafia"] .mh-c b{font-family:Cairo,sans-serif;font-weight:800;font-size:clamp(20px,3.6vh,34px)}
html body[data-edition="mafia"] .mh-s{font-size:clamp(14px,2.2vh,19px);font-weight:600;line-height:1.6;opacity:.95}
html body[data-edition="mafia"] .mh-m{margin-top:auto;width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;font-weight:800;font-size:clamp(14px,2.2vh,20px)}
html body[data-edition="mafia"] .mh-m>span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
html body[data-edition="mafia"] .mh-m svg{width:1.1em;height:1.1em;flex:none}
html body[data-edition="mafia"] .mh-go{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap}
html body[data-edition="mafia"] .ph-setup .mh .btn.mh-open{min-height:clamp(50px,8vh,66px)!important;padding:0 clamp(36px,4vw,64px)!important;font-size:clamp(18px,3vh,26px)!important;width:auto!important}
html body[data-edition="mafia"] .mh-own{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:8px;min-height:clamp(46px,7vh,58px);padding:0 24px;border-radius:999px;
  border:2px solid rgba(244,235,219,.6);color:#F4EBDB;font-family:Cairo,sans-serif;font-weight:700;font-size:clamp(15px,2.4vh,20px)}
html body[data-edition="mafia"] .mh-own:hover,html body[data-edition="mafia"] .mh-own:focus-visible{border-color:#F6C453;color:#F6C453}
html body[data-edition="mafia"] .mh-own.on{background:#F6C453;border-color:#F6C453;color:#3A2B3B}
html body[data-edition="mafia"] .mh-own svg{width:20px;height:20px}
/* الحارة ورا البطاقات: أهدى وأغمق شوي عشان الكلام يبين */
html body[data-edition="mafia"]:has(.mh) #scene::after{content:"";position:absolute;inset:0;background:rgba(74,56,74,.55);pointer-events:none;z-index:2}
@media (min-width:900px){html body[data-edition="mafia"]:has(.mh) #scene canvas{filter:blur(7px);transform:scale(1.05)}}
/* شاشة متوسطة: صفّين */
@media (max-width:900px),(max-height:520px) and (max-width:1100px){
  html body[data-edition="mafia"] .mh-g{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body[data-edition="mafia"] .mh-c{min-height:0;gap:4px}
  html body[data-edition="mafia"] .mh-s{display:none}}
/* جوال بالعرض (قصير): أربعة جنب بعض صغار */
@media (max-height:520px) and (min-width:700px){
  html body[data-edition="mafia"] .mh-g{grid-template-columns:repeat(4,minmax(0,1fr))}
  html body[data-edition="mafia"] .mh-c{padding:12px 14px;border-radius:18px}
  html body[data-edition="mafia"] .mh-c b{font-size:22px}
  html body[data-edition="mafia"] .mh-m{font-size:13px;flex-direction:column;align-items:flex-start;gap:2px}
  html body[data-edition="mafia"] .mh-t{font-size:24px}
  html body[data-edition="mafia"] .ph-setup .sc-open.mh{gap:8px}}
/* جوال بالطول: قائمة، كل سطر سهرة */
@media (max-width:560px){
  html body[data-edition="mafia"] .mh-g{grid-template-columns:1fr;gap:10px}
  html body[data-edition="mafia"] .mh-c{flex-direction:row;align-items:center;justify-content:space-between;padding:14px 18px;border-radius:18px;min-height:0}
  html body[data-edition="mafia"] .mh-c b{font-size:26px}
  html body[data-edition="mafia"] .mh-m{margin:0;width:auto;flex-direction:column;align-items:flex-end;gap:2px;font-size:14px}
  html body[data-edition="mafia"] .mh-go{flex-direction:column;width:100%}
  html body[data-edition="mafia"] .ph-setup .mh .btn.mh-open,html body[data-edition="mafia"] .mh-own{width:100%!important;justify-content:center}}
html body[data-edition="mafia"] .mh-lv{font-style:normal;font-size:.85em;font-weight:800;padding:2px 12px;border-radius:999px;background:rgba(244,235,219,.2)}
html body[data-edition="mafia"] .mh-c.on .mh-lv{background:rgba(58,43,59,.14)}

/* ===== جوال اللاعب (27/11): أخف وأوضح ===== */
.p2 .lob2{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;margin-top:6vh}
.p2 .lob2 h1{margin:0}
.p2 .lob2-n{font-weight:800;font-size:1.5rem;color:#3A2B3B;background:#F6C453;border-radius:999px;padding:8px 28px;margin:10px 0 6px}
.p2 .lnk2{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-top:18px}
.p2 .lnk2 button{all:unset;cursor:pointer;font-family:Cairo,sans-serif;font-weight:700;font-size:.95rem;color:#F4EBDB;padding:10px 16px;border-radius:999px;border:1.5px solid rgba(244,235,219,.45)}
.p2 .lnk2 button:focus-visible{outline:2px solid #F6C453}
/* النوافذ والإعدادات: زوايا مدوّرة */
html body .jm .jb{border-radius:22px!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
html body .jm .jb::before,html body .jm .jb::after{border-radius:inherit!important;clip-path:none!important}
html body .stabs button,html body .seg,html body .rs-x,html body .rs-n,html body .rs-i{border-radius:12px!important;clip-path:none!important}
html body .seg button{border-radius:10px!important;clip-path:none!important}
html body .sr,html body .rt2-i,html body .rl,html body .logl,html body .comp span{border-radius:14px!important;clip-path:none!important}
html body .modal .box input,html body .in{border-radius:14px!important}
html body[data-edition="mafia"] .mh-own .ic{width:20px;height:20px}
html body[data-edition="mafia"] .mh-n{font-style:normal;font-size:.8em;font-weight:800;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#F6C453;color:#3A2B3B;display:inline-grid;place-items:center}
@media (max-width:560px){
  html body[data-edition="mafia"] .mh-go{flex-direction:row;flex-wrap:wrap}
  html body[data-edition="mafia"] .ph-setup .mh .btn.mh-open{flex:1 1 100%}
  html body[data-edition="mafia"] .mh-go .mh-own{width:auto!important;flex:1 1 30%;padding:0 10px;font-size:14px;min-height:46px}
  html body[data-edition="mafia"] .mh-go .mh-own svg{display:none}}

/* ===== 27/11 (بعد الظهر): بدون غامق. الشريط فوق شفاف بحبات أوف وايت، وأشرطة اللعب أوف وايت ===== */
:root{--ow:#F4EBDB;--ink:#3A2B3B}
/* الشريط اللي فوق */
html body[data-edition="mafia"] .bar::before{background:transparent!important}
html body[data-edition="mafia"] .bar .homeb,html body[data-edition="mafia"] .bar .ib{background:var(--ow)!important;color:var(--ink)!important;border:0!important;border-radius:999px!important;padding:8px 16px!important;font-weight:700!important}
html body[data-edition="mafia"] .bar .homeb *,html body[data-edition="mafia"] .bar .ib *{color:inherit!important}
html body[data-edition="mafia"] .bar .mbuy{border-radius:999px!important}
/* بوابة «ادخل الحارة»: الاسم والزر على الحارة مباشرة، بدون لافتة */
html body[data-edition="mafia"] .ph-setup .sc-open.hm-gate{justify-content:flex-end!important;padding-bottom:clamp(20px,7vh,80px)!important;gap:clamp(10px,2.2vh,22px)!important;min-height:100%}
html body[data-edition="mafia"] .ph-setup .hm-gate .hm-ch,html body[data-edition="mafia"] .ph-setup .hm-gate .hs{display:none!important}
html body[data-edition="mafia"] .ph-setup .hm-gate .hm-hang{animation:none!important;transform:none!important;margin:0!important;padding:0!important}
html body[data-edition="mafia"] .ph-setup .hm-gate .hero.hm-sign{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;width:auto!important;max-width:none!important}
html body[data-edition="mafia"] .ph-setup .hm-gate .hero.hm-sign::before,html body[data-edition="mafia"] .ph-setup .hm-gate .hero.hm-sign::after,
html body[data-edition="mafia"] .ph-setup .hm-gate .sc-go::before,html body[data-edition="mafia"] .ph-setup .hm-gate .sc-go::after{display:none!important}
html body[data-edition="mafia"] .ph-setup .hm-gate .hero.hm-sign h1{color:#F6C453!important;font-size:clamp(64px,15vh,150px)!important;line-height:1!important;margin:0!important;text-shadow:none!important}
html body[data-edition="mafia"] .ph-setup .hm-gate .hero.hm-sign p{color:var(--ow)!important;font-size:clamp(18px,3.4vh,30px)!important;font-weight:700!important;margin:clamp(4px,1vh,10px) 0 0!important;opacity:1!important}
html body[data-edition="mafia"] .ph-setup .hm-gate .sc-go{background:#F6C453!important;color:var(--ink)!important;border:0!important;border-radius:999px!important;min-height:clamp(52px,8.5vh,72px)!important;padding:0 clamp(40px,4.5vw,70px)!important;font-size:clamp(18px,3vh,26px)!important;font-weight:800!important;width:auto!important}
html body[data-edition="mafia"] .ph-setup .hm-gate .sc-go span{color:inherit!important}
html body[data-edition="mafia"] .ph-setup .hm-gate .sc-go svg,html body[data-edition="mafia"] .ph-setup .hm-gate .sc-go .ic{display:none!important}
html body[data-edition="mafia"] .ph-setup .hm-gnote{background:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;color:var(--ow)!important;padding:0!important;font-weight:600!important;opacity:.85!important}
html body[data-edition="mafia"]:has(.hm-gate) #scene::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:2;background:linear-gradient(to top,rgba(74,56,74,.85) 0,rgba(74,56,74,.35) 50%,rgba(74,56,74,0) 78%)}
/* شريط المرحلة (فوق وقت اللعب) */
html body #pbar{background:var(--ow)!important;color:var(--ink)!important;border-radius:999px!important}
html body #pbar small{border-inline-start-color:rgba(58,43,59,.25)!important}
html body #pbar .tm{color:#2F7E79!important}
html body #pbar .dots i{border-color:var(--ink)!important}
html body #pbar .dots i.on{background:#3A9590!important;border-color:#3A9590!important}
/* كلام الراوي (تحت) */
html body #subt .bx,html body #subt.s3-lite .bx{background:rgba(244,235,219,.95)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-radius:18px!important}
html body #subt p{color:var(--ink)!important;font-weight:600!important}
/* الشريط الجانبي */
html body #mrail .rl-b{background:var(--ow)!important;color:var(--ink)!important;border-radius:14px!important}
html body #mrail .rl-b.on{background:#F6C453!important;color:var(--ink)!important}
html body #mrail .rl-b em{color:var(--ink)!important}
html body #mrail .rl-b .rs-off{color:#D9473A!important}
html body #mrail .rl-b.x{background:#E0533A!important;color:var(--ow)!important}
html body #mrail .rl-b:hover,html body #mrail .rl-b:focus-visible{background:#F6C453!important}
html body #mrail .rl-b::after{border-radius:999px}

/* ===== جوال اللاعب: الأسطح أوف وايت بدل الغامق (27/11) ===== */
html body.p2 .top{background:var(--ow)!important;color:var(--ink)!important;border-radius:999px!important;padding:4px 10px!important}
html body.p2 .top .homeb{background:#F6C453!important;color:var(--ink)!important;border-radius:999px!important}
html body.p2 .top .ib{background:transparent!important;color:var(--ink)!important;border:0!important}
html body.p2 .top .ib *,html body.p2 .top a{color:var(--ink)!important}
html body.p2 .card,html body.p2 .rc,html body.p2 .peek2,html body.p2 .sum2{background:var(--ow)!important;color:var(--ink)!important;border:0!important;border-radius:22px!important}
html body.p2 .card *:not(.ltr):not(.ltr *):not(.btn):not(.btn *){color:inherit}
html body.p2 .rc .rn,html body.p2 .rc p b,html body.p2 .rc summary,html body.p2 .card h2{color:#2F7E79!important}
html body.p2 .rc p,html body.p2 .rc .rd{color:var(--ink)!important}
html body.p2 .rc .tm{background:rgba(58,43,59,.08)!important;color:var(--ink)!important}
html body.p2 .rc .mates{color:var(--ink)!important}
html body.p2 .btn.alt,html body.p2 .who2,html body.p2 .lnk2 button{background:var(--ow)!important;color:var(--ink)!important;border:0!important;border-radius:999px!important}
html body.p2 .sub{color:var(--ow)!important}
html body.p2 .card .sub,html body.p2 .rc .sub{color:var(--ink)!important;opacity:.75}
html body.p2 .tbar{background:rgba(244,235,219,.35)!important;border-radius:999px!important}
html body.p2 .steps2 button,html body.p2 .vst2 span{background:var(--ow)!important;color:var(--ink)!important;border-radius:999px!important}
html body.p2 .steps2 button.on,html body.p2 .vst2 span.on{background:#F6C453!important}
html body.p2 .vst2 span.ok,html body.p2 .steps2 button.ok{background:#3A9590!important;color:var(--ow)!important}
html body.p2 .cta2{border-radius:999px!important}
html body.p2 .cta2:disabled{background:var(--ow)!important;color:var(--ink)!important;opacity:.85}
html body.p2 .cell .dr .nt{background:var(--ow)!important;color:var(--ink)!important;border-radius:10px!important}
html body.p2 input.in{background:var(--ow)!important;color:var(--ink)!important;border-color:transparent!important}
html body.p2 .whin{background:var(--ow)!important;color:var(--ink)!important}
html body.p2 .me{background:var(--ow)!important;color:var(--ink)!important}
html body.p2 .gsel button{background:var(--ow)!important;color:var(--ink)!important}
html body.p2 .gsel button.on{background:#F6C453!important}
html body.p2 .lob2-n{background:#F6C453!important;color:var(--ink)!important}
/* الليل يضل غامق عشان ضو الشاشة ما يفضح حدا، بس بلون الحارة مش كحلي */
html body.p2.sleep .card,html body.p2.sleep .sum2{background:rgba(244,235,219,.14)!important;color:var(--ow)!important}
/* الأشرطة السينمائية فوق وتحت (كانت غامقة) انشالت، والتغميق على الأطراف أخف */
html body #hmfx .lbx{display:none!important}
html body #hmfx .vig{background:radial-gradient(ellipse 85% 80% at 50% 48%,transparent 55%,rgba(74,56,74,.45) 100%)!important}
/* غرفة الانتظار على الشاشة الكبيرة: بطاقة الـQR وبطاقات اللاعبين أوف وايت */
html body[data-edition="mafia"] .scn .hang-in,html body[data-edition="mafia"] #scene ~ .wrap .stage.scn .sc-b .hang-in{background:var(--ow)!important;color:var(--ink)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html body[data-edition="mafia"] .scn .hang-in::before{border-color:rgba(58,43,59,.15)!important}
html body[data-edition="mafia"] .scn .hang-in *:not(.btn):not(.btn *){color:inherit}
html body[data-edition="mafia"] .scn .hang-in .code,html body[data-edition="mafia"] .scn .hang-in [class*="code"],html body[data-edition="mafia"] .scn .hang-in h1,html body[data-edition="mafia"] .scn .hang-in h2{color:#2F7E79!important}
html body[data-edition="mafia"] .scn .hang-in .qr{background:transparent!important}
html body[data-edition="mafia"] .scn .hang-in hr,html body[data-edition="mafia"] .scn .hang-in .sep{border-color:rgba(58,43,59,.15)!important;background:rgba(58,43,59,.15)!important}
html body[data-edition="mafia"] .dock::before{background:transparent!important}
html body[data-edition="mafia"] .dock .pt{background:var(--ow)!important;color:var(--ink)!important}
html body[data-edition="mafia"] .dock .pt *{color:inherit}
html body[data-edition="mafia"] .dock .pt svg{color:#5A465A!important}
html body[data-edition="mafia"] #scene ~ .wrap .stage.scn .hang-in .sc-count{color:var(--ink)!important}
html body[data-edition="mafia"] #scene ~ .wrap .stage.scn .hang-in .sc-count *{color:inherit!important}
html body.p2.sleep .top{background:rgba(244,235,219,.16)!important}
html body.p2.sleep .top .ib,html body.p2.sleep .top .ib *,html body.p2.sleep .top a{color:var(--ow)!important}
html body.p2 .act .btn.alt,html body.p2 .act .btn.alt.skip2,html body.p2 .act .who2{background:var(--ow)!important;color:var(--ink)!important;border:0!important}
html body.p2 .act .btn.alt.skip2.on{background:#F6C453!important;color:var(--ink)!important}
html body.p2 .act .btn.alt:hover,html body.p2 .act .btn.alt:focus,html body.p2 .act .btn.alt:active,html body.p2 .btn.alt:hover,html body.p2 .btn.alt:focus{background:var(--ow)!important;color:var(--ink)!important;border:0!important}
html body.p2 .sum2{background:var(--ow)!important;color:var(--ink)!important;border:0!important}
html body.p2 .sum2 *{color:inherit!important}
html body.p2 .fb2{background:var(--ow)!important;color:var(--ink)!important;border-radius:22px!important}
html body.p2 .fb2 small{color:var(--ink)!important;opacity:.7}
html body.p2 .fb2.out.sel{background:#E03131!important;color:var(--ow)!important;border-color:#E03131!important}
html body.p2 .fb2.stay.sel{background:#F6C453!important;color:var(--ink)!important;border-color:#F6C453!important}
html body.p2 .fb2.sel small{color:inherit!important;opacity:.85}
html body[data-edition="mafia"] .hm-bal .btn.alt{background:var(--ow)!important;color:var(--ink)!important;border:0!important;border-radius:999px!important}
html body[data-edition="mafia"] .hm-bal .sub{color:var(--ow)!important}

/* (28/11) بطاقات السهرة شفافة، والكبسة عليها بتفتح الغرفة */
html body[data-edition="mafia"] .mh-c{background:rgba(244,235,219,.13)!important;color:var(--ow)!important;border:2px solid rgba(244,235,219,.55)!important;transition:background-color .2s,border-color .2s,transform .2s}
html body[data-edition="mafia"] .mh-c:hover,html body[data-edition="mafia"] .mh-c:focus-visible{background:rgba(244,235,219,.22)!important;border-color:#F6C453!important;transform:translateY(-3px);outline:0}
html body[data-edition="mafia"] .mh-c:active{transform:scale(.98)}
html body[data-edition="mafia"] .mh-c.ld{border-color:#F6C453!important;background:rgba(246,196,83,.25)!important}
html body[data-edition="mafia"] .mh-c:disabled:not(.ld){opacity:.5;cursor:default}
html body[data-edition="mafia"] .mh-c .mh-lv{background:rgba(244,235,219,.22)!important;color:var(--ow)!important}
/* سطر المدة والصعوبة ما بيطلع برّا البطاقة */
html body[data-edition="mafia"] .mh-c{min-width:0;overflow:hidden}
html body[data-edition="mafia"] .mh-m{flex-wrap:wrap;row-gap:6px;min-width:0}
html body[data-edition="mafia"] .mh-m>span{white-space:nowrap;min-width:0}
html body[data-edition="mafia"] .mh-lv{white-space:nowrap}

/* ===== (28/11) النوافذ كلها أوف وايت: إعدادات، قواعد، ألعابي، الأدوار، الرسائل ===== */
html body .modal,html body .jm{background:rgba(74,56,74,.45)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
/* جوّا النوافذ: نفس الألوان مقلوبة (الغامق صار فاتح والفاتح صار غامق) */
html body .modal,html body .jm{--mu-ink:#F4EBDB;--mu-ink2:rgba(58,43,59,.07);--mu-ink3:rgba(58,43,59,.12);--mu-w:#3A2B3B;--mu-soft:rgba(58,43,59,.72);--hm-deep:#F4EBDB;--al-sky:#F4EBDB}
html body .modal .box,html body .jm .jb{background:#F4EBDB!important;color:#3A2B3B!important;border:0!important;outline:0!important}
html body .modal .box::before,html body .modal .box::after,html body .jm .jb::before,html body .jm .jb::after{display:none!important}
html body .modal h2,html body .modal h3,html body .modal dt,html body .jm h2,html body .jm h3,html body .jm .rp h3,html body .jm .rs-n,html body .jm .rs-t{color:#2F7E79!important}
html body .modal p,html body .modal li,html body .modal small,html body .jm p,html body .jm li,html body .jm small,html body .jm label{color:#3A2B3B}
html body .jm .rs-x,html body .modal .rs-x,html body .modal .my-x{background:rgba(58,43,59,.08)!important;color:#3A2B3B!important;border:0!important;border-radius:14px!important}
html body .jm .btn.alt,html body .modal .btn.alt{background:rgba(58,43,59,.08)!important;color:#3A2B3B!important;border:0!important}
html body .jm .btn.green,html body .modal .btn.green{background:#F6C453!important;color:#3A2B3B!important}
/* تبويبات وأزرار الاختيار بالإعدادات */
html body .jm .stabs button{background:rgba(58,43,59,.08)!important;color:#3A2B3B!important;border:0!important;box-shadow:none!important}
html body .jm .stabs button.on{background:#F6C453!important;color:#3A2B3B!important}
html body .jm .sr{background:rgba(58,43,59,.06)!important;color:#3A2B3B!important;border:0!important}
html body .jm .sr *:not(.btn):not(.btn *){color:inherit}
html body .jm .sr small,html body .jm .sr-h{color:rgba(58,43,59,.7)!important}
html body .jm .seg{background:rgba(58,43,59,.08)!important;border:0!important}
html body .jm .seg button,html body .jm .seg .btn{background:transparent!important;color:#3A2B3B!important;border:0!important;box-shadow:none!important}
html body .jm .seg button.on,html body .jm .seg .btn.on{background:#F6C453!important;color:#3A2B3B!important}

/* ===== ألعابي الجديدة ===== */
html body .modal .box:has(.my2){max-width:760px!important;width:min(760px,94vw)!important;padding:clamp(18px,3vh,30px) clamp(18px,2.6vw,34px)!important;border-radius:28px!important}
.my2{font-family:Cairo,sans-serif;color:#3A2B3B}
.my2 .my-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.my2 .my-h h2{font-family:Amiri,Cairo,serif;font-weight:700;font-size:clamp(28px,4.6vh,40px);color:#3A2B3B!important;margin:0}
html[lang=en] .my2 .my-h h2{font-family:Cairo,sans-serif;font-weight:800}
.my2 .my-x{all:unset;cursor:pointer;width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:rgba(58,43,59,.08);color:#3A2B3B}
.my2 .my-x .ic,.my2 .my-x svg{width:20px;height:20px}
.my2 .my-r{display:flex;align-items:center;gap:10px;padding:14px 4px;border-top:1px solid rgba(58,43,59,.12)}
.my2 .my-t{flex:1;min-width:0}
.my2 .my-t b{display:block;font-size:clamp(17px,2.6vh,21px);font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.my2 .my-t small{display:block;font-size:clamp(13px,2vh,15.5px);font-weight:600;color:rgba(58,43,59,.68)!important}
.my2 .my-go{all:unset;cursor:pointer;flex:none;background:#F6C453;color:#3A2B3B;font-weight:800;font-size:17px;padding:9px 24px;border-radius:999px}
.my2 .my-l{all:unset;cursor:pointer;flex:none;font-weight:700;font-size:15px;color:rgba(58,43,59,.7);padding:8px 10px;border-radius:999px}
.my2 .my-l:hover,.my2 .my-l:focus-visible{background:rgba(58,43,59,.07);color:#3A2B3B}
.my2 .my-l.red{color:#C9342B}
.my2 .my-l:disabled{opacity:.35;cursor:default;background:none}
.my2 .my-go:focus-visible,.my2 .my-x:focus-visible{outline:2px solid #2F7E79;outline-offset:2px}
.my2 .my-r.ed{background:rgba(58,43,59,.04);border-radius:14px}
.my2 .my-f{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;padding-top:10px;border-top:1px solid rgba(58,43,59,.12)}
.my2 .my-pg{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:rgba(58,43,59,.7)}
.my2 .my-e{color:rgba(58,43,59,.75);font-weight:600;line-height:1.8;margin:8px 0}
@media (max-width:560px){.my2 .my-r{flex-wrap:wrap}.my2 .my-t{flex:1 1 100%}.my2 .my-r .my-go{margin-inline-start:auto}}
/* (28/11) خلفية جوال اللاعب: الحارة أفتح، والتغميق خفيف بس فوق وتحت عشان الكلام يبين */
html body.p2::before{background:linear-gradient(180deg,rgba(74,56,74,.55) 0,rgba(74,56,74,.22) 30%,rgba(74,56,74,.3) 62%,rgba(74,56,74,.7) 100%),url(img/maf/alley.webp) center top/cover #6a5566!important}
/* أقوى من القواعد القديمة (الإطار النحاسي والمسامير) */
html body .modal .box:not(#_x),html body .jm .jb:not(#_x){background:#F4EBDB!important;background-image:none!important;color:#3A2B3B!important;border:0!important;outline:0!important;box-shadow:none!important;clip-path:none!important;border-radius:24px!important}
html body .modal .box:not(#_x)::before,html body .modal .box:not(#_x)::after,html body .jm .jb:not(#_x)::before,html body .jm .jb:not(#_x)::after{display:none!important}
html body .jm:not(#_x) .sr{background:rgba(58,43,59,.06)!important;color:#3A2B3B!important}
html body .jm:not(#_x) .sr b,html body .jm:not(#_x) .sr span:not(.btn):not(.btn *),html body .jm:not(#_x) .sr label{color:#3A2B3B!important}
html body .jm:not(#_x) .sr small,html body .jm:not(#_x) .sr .sr-h{color:rgba(58,43,59,.7)!important}
html body .jm:not(#_x) .stabs button{background:rgba(58,43,59,.08)!important;color:#3A2B3B!important;box-shadow:none!important;border:0!important}
html body .jm:not(#_x) .stabs button.on{background:#F6C453!important}
html body .jm:not(#_x) .seg{background:rgba(58,43,59,.08)!important;border:0!important}
html body .jm:not(#_x) .seg button:not(.on),html body .jm:not(#_x) .seg .btn:not(.on){background:transparent!important;color:#3A2B3B!important;box-shadow:none!important}
html body .jm:not(#_x) .seg button.on,html body .jm:not(#_x) .seg .btn.on{background:#F6C453!important;color:#3A2B3B!important}
html body .jm:not(#_x) .rs-x,html body .modal:not(#_x) .rs-x{background:rgba(58,43,59,.08)!important;color:#3A2B3B!important}
html body .jm:not(#_x) .btn.alt,html body .modal:not(#_x) .btn.alt{background:rgba(58,43,59,.08)!important;color:#3A2B3B!important;border:0!important}
html body .jm:not(#_x) .sr::before{background:#2F7E79!important}
/* بطاقات الأدوار بالإعدادات: فاتحة */
html body .jm:not(#_x) .rt2-i{background:rgba(58,43,59,.06)!important;color:#3A2B3B!important;border:0!important}
html body .jm:not(#_x) .rt2-i.on{background:rgba(246,196,83,.35)!important;outline:2px solid #F6C453!important}
html body .jm:not(#_x) .rt2-i b,html body .jm:not(#_x) .rt2-i span:not(.rt2-t){color:#3A2B3B!important}
html body .jm:not(#_x) .rt2-i small{color:#2F7E79!important;background:transparent!important}
html body .jm:not(#_x) .rt2-h{color:#2F7E79!important}
html body .jm:not(#_x) .rs-i{background:#F6C453!important;color:#3A2B3B!important}
html body .jm:not(#_x) .rs-i svg,html body .jm:not(#_x) .rs-i path{color:#3A2B3B!important}
html body .jm:not(#_x) small{color:rgba(58,43,59,.72)}
html body[data-edition="mafia"] #scene ~ .wrap .stage.scn .hang-in .btn:disabled{background:rgba(58,43,59,.1)!important;color:#3A2B3B!important;opacity:1!important}

/* (28/11 مساءً) ٣ سهرات: «اللعبة الكاملة» أكبر وأول وحدة، وعلى كل بطاقة صور الأدوار اللي فيها */
html body[data-edition="mafia"] .mh-g{grid-template-columns:1.35fr 1fr 1fr!important;width:min(1180px,100%)!important;margin-inline:auto}
html body[data-edition="mafia"] .mh-c.main{border-color:#F6C453!important;background:rgba(246,196,83,.16)!important}
html body[data-edition="mafia"] .mh-c.main:hover{background:rgba(246,196,83,.26)!important}
html body[data-edition="mafia"] .mh-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
html body[data-edition="mafia"] .mh-tag{font-style:normal;font-family:Cairo,sans-serif;font-weight:800;font-size:clamp(12px,1.9vh,15px);background:#F6C453;color:#3A2B3B;padding:3px 12px;border-radius:999px}
html body[data-edition="mafia"] .mh-ro{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 2px}
html body[data-edition="mafia"] .mh-ri{width:clamp(30px,4.6vh,40px);height:clamp(30px,4.6vh,40px);border-radius:50%;background:#F4EBDB;color:#3A2B3B;display:grid;place-items:center}
html body[data-edition="mafia"] .mh-ri svg,html body[data-edition="mafia"] .mh-ri .ic{width:58%;height:58%}
html body[data-edition="mafia"] .mh-s{opacity:.92}
@media (max-width:900px),(max-height:520px) and (max-width:1100px){
  html body[data-edition="mafia"] .mh-g{grid-template-columns:1fr 1fr!important}
  html body[data-edition="mafia"] .mh-c.main{grid-column:1/-1}
  html body[data-edition="mafia"] .mh-s{display:block!important;font-size:13px}}
@media (max-height:520px) and (min-width:700px){
  html body[data-edition="mafia"] .mh-g{grid-template-columns:1.35fr 1fr 1fr!important}
  html body[data-edition="mafia"] .mh-c.main{grid-column:auto}
  html body[data-edition="mafia"] .mh-s{display:none!important}
  html body[data-edition="mafia"] .mh-ri{width:26px;height:26px}}
@media (max-width:560px){
  html body[data-edition="mafia"] .mh-g{grid-template-columns:1fr!important}
  html body[data-edition="mafia"] .mh-c{flex-direction:column!important;align-items:flex-start!important}
  html body[data-edition="mafia"] .mh-c .mh-m{flex-direction:row!important;width:100%!important;justify-content:space-between!important}
  html body[data-edition="mafia"] .mh-s{display:none!important}
  html body[data-edition="mafia"] .mh-ri{width:28px;height:28px}}
@media (min-width:561px){html body[data-edition="mafia"] .mh-c .mh-m{flex-direction:column;align-items:flex-start;gap:8px}}
