/* جيم مافيا — تنسيق الشاشة الكبيرة (mafia.html)، الجزء الثاني بعد mafiap.a.css.
   كان أربع ملفات (mafiap.b + mafia-fx + scene2 + mafia-home)، وصار ملف واحد بنفس الترتيب، فالنتيجة على الشاشة نفسها. */

/* ===================== لوحات المراحل والأزرار ===================== */
@keyframes bdIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes kidsw{0%,to{transform:rotate(-8deg)}50%{transform:rotate(8deg) scale(1.06)}}@keyframes kidsb{30%{transform:scale(1.1) rotate(-3deg)}60%{transform:scale(.96) rotate(2deg)}}html body #bdrop#bdrop#bdrop#bdrop[data-ed]{padding:18px 16px 16px;width:min(420px,calc(100vw - 16px));direction:rtl}html body #bdrop#bdrop#bdrop#bdrop[data-ed] .bdh{display:flex;align-items:center;gap:12px;margin:0 0 14px;flex-wrap:wrap}html body #bdrop#bdrop#bdrop#bdrop[data-ed] .bdh b{font-size:1.25rem;font-weight:800;line-height:1.3;margin:0;flex:1;min-width:0}html body #bdrop#bdrop#bdrop#bdrop[data-ed] .bdart{width:46px;height:46px;flex:none;display:grid;place-items:center}html body #bdrop#bdrop#bdrop#bdrop[data-ed] .bdart svg{width:100%;height:100%}html body #bdrop#bdrop#bdrop#bdrop[data-ed] .rdm-btn{display:inline-block;width:auto;margin:0;flex:none;font:inherit;font-weight:800;font-size:.85rem;padding:8px 14px;cursor:pointer;border-radius:999px;border:2px solid currentColor;background:0 0}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts{display:flex;flex-direction:column;gap:10px;margin:0}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .opt{position:relative;display:grid;grid-template-columns:1fr auto auto;grid-template-areas:"t p b";align-items:center;column-gap:12px;row-gap:3px;padding:12px;border-radius:18px;text-align:start}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .opt .ico{grid-area:i;display:grid;place-items:center;width:64px;height:56px}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .opt .ico svg{width:100%;height:100%;display:block;overflow:visible}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .opt .t{grid-area:t;font-size:1.05rem;font-weight:800}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .opt .p{grid-area:p;font-size:1.25rem;font-weight:800;white-space:nowrap}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .opt .p s{font-size:.85rem;margin-inline-end:6px}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .opt small{display:none}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .opt .sv{grid-area:sv;justify-self:start;margin:0;font-size:.74rem;font-weight:800;border-radius:999px;padding:2px 10px}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .opt button.ord{grid-area:b;margin:0;width:auto;min-width:76px;padding:11px 18px;font:inherit;font-weight:800;font-size:.98rem;border:0;cursor:pointer;border-radius:14px;transition:transform .12s,box-shadow .12s}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .opt button.ord:active{transform:translateY(2px)}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .badge{inset-inline-start:auto;width:auto;right:auto;top:-11px;inset-inline-end:14px;font-size:.72rem;font-weight:800;padding:2px 11px;border-radius:999px}html body #bdrop#bdrop#bdrop#bdrop[data-ed] .cpn{display:flex;margin:14px 0 6px;gap:0;overflow:hidden}html body #bdrop#bdrop#bdrop#bdrop[data-ed] .cpn input{flex:1;min-width:0;border:0;background:0 0;font:inherit;padding:11px 16px;text-align:start;direction:rtl;text-transform:none}html body #bdrop#bdrop#bdrop#bdrop[data-ed] .cpn input:focus{outline:0}html body #bdrop#bdrop#bdrop#bdrop[data-ed] .cpn button{border:0;font:inherit;font-weight:800;padding:0 20px;cursor:pointer}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #cpnmsg{min-height:0;margin:0;font-size:.85rem;text-align:center}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #cpnmsg:empty{display:none}html body #bdrop#bdrop#bdrop#bdrop[data-ed] .secure{margin:10px 0 0;font-size:.78rem;text-align:center;display:flex;align-items:center;justify-content:center;gap:6px}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .opt .pp{fill:var(--pp,#ffd23f);stroke:var(--ps,#2a2a2a);stroke-width:1.3}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .opt .pl{stroke:var(--pl,#1546d6);stroke-width:1.5;stroke-linecap:round;fill:none}html body #bdrop#bdrop#bdrop#bdrop[data-ed]:not([hidden]) #opts .opt{animation:bdIn .35s ease both}html body #bdrop#bdrop#bdrop#bdrop[data-ed]:not([hidden]) #opts .opt:nth-child(2){animation-delay:.05s}html body #bdrop#bdrop#bdrop#bdrop[data-ed]:not([hidden]) #opts .opt:nth-child(3){animation-delay:.1s}html body #bdrop#bdrop#bdrop#bdrop[data-ed]:not([hidden]) #opts .opt:nth-child(4){animation-delay:.15s}@media (prefers-reduced-motion:reduce){
html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .opt{animation:none!important}
}@media (max-width:400px){
html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .opt{grid-template-columns:1fr auto;grid-template-areas:"t p""b b"}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .opt .ico{width:52px}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .opt button.ord{width:100%}
}html body #bdrop#bdrop#bdrop#bdrop[data-ed=jj]{background:#fff;color:#2a2a2a;border-radius:26px;box-shadow:none}#bdrop#bdrop#bdrop#bdrop[data-ed=jj] #opts .opt{background:#fff;border:2px solid #efe6cf;box-shadow:none}#bdrop#bdrop#bdrop#bdrop[data-ed=jj] #opts .opt.best{background:linear-gradient(135deg,#fff8dc,#ffeaa1);border-color:#ffd23f;box-shadow:none}#bdrop#bdrop#bdrop#bdrop[data-ed=jj] #opts .opt .p,#bdrop#bdrop#bdrop#bdrop[data-ed=jj] .rdm-btn{color:#1546d6}#bdrop#bdrop#bdrop#bdrop[data-ed=jj] #opts .opt .p s{color:#a09a8a}#bdrop#bdrop#bdrop#bdrop[data-ed=jj] #opts .badge,#bdrop#bdrop#bdrop#bdrop[data-ed=jj] #opts .opt .sv{background:#2a2a2a;color:#ffd23f}#bdrop#bdrop#bdrop#bdrop[data-ed=jj] #opts .opt button.ord{background:#1546d6;color:#fff;box-shadow:none}#bdrop#bdrop#bdrop#bdrop[data-ed=jj] #opts .opt.best button.ord{background:#1546d6;color:#fff;box-shadow:none}#bdrop#bdrop#bdrop#bdrop[data-ed=jj] .cpn{border:2px solid #efe6cf;border-radius:999px;background:#fffdf6}#bdrop#bdrop#bdrop#bdrop[data-ed=jj] .cpn button{background:#2a2a2a;color:#fff}#bdrop#bdrop#bdrop#bdrop[data-ed=jj] .secure{color:#8a8574}#bdrop .bdgames{margin-top:16px;padding-top:14px;border-top:2px dashed #efe6cf}#bdrop .bdg-h{margin:0 0 10px;text-align:start}#bdrop .bdg-h b{font-size:.95rem;font-weight:800;color:#6b6552}#bdrop .bdg-g{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}#bdrop .gt{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;aspect-ratio:1/.92;border-radius:20px;text-decoration:none;color:#fff;overflow:hidden;box-shadow:none;transition:transform .15s,box-shadow .15s}#bdrop .gt:hover{transform:translateY(-3px);box-shadow:none}#bdrop .gt-mafia{background:linear-gradient(160deg,#2b2b2b,#050505)}#bdrop .gt-t{display:flex;flex-direction:column;align-items:center;gap:3px;width:78%}#bdrop .gt-t img{width:70%;height:auto;max-height:34px;object-fit:contain;display:block}#bdrop .gt-t .gt-l{width:92%;max-height:26px}#bdrop .gt-mafia .gt-t img+img{width:96%;max-height:30px}#bdrop .gt-c{position:absolute;bottom:5px;inset-inline-end:7px;width:18px;height:18px;border-radius:50%;background:rgba(255,255,255,.9);color:#2a2a2a;display:grid;place-items:center}#bdrop .gt-c svg{width:11px;height:11px}html body #bdrop#bdrop#bdrop#bdrop[data-ed=kids]{background:#fffdf3;color:#2f6f73;border:4px solid #2f6f73;border-radius:30px;box-shadow:none;font-family:Cairo,Tahoma,sans-serif}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] .bdh b{font-size:1.4rem}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] .bdart{animation:kidsw 2.4s ease-in-out infinite}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] .rdm-btn{color:#2f6f73;background:#fff;border-width:3px}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] #opts .opt{border:3px solid #2f6f73;box-shadow:none;border-radius:22px;background:#e8f7ff;--pp:#ffc933;--ps:#2f6f73}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] #opts .opt:nth-child(2){background:#ffecec}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] #opts .opt:nth-child(3){background:#eefbe7}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] #opts .opt:nth-child(4){background:#f2ebff}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] #opts .opt.best{background:#fff3c4}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] #opts .opt .ico svg .pp{stroke-width:1.6}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] #opts .opt .p{color:#e8503a}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] #opts .opt .p s{color:#8a99b3}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] #opts .badge,#bdrop#bdrop#bdrop#bdrop[data-ed=kids] #opts .opt .sv{background:#ff7a59;color:#fff;border:2px solid #2f6f73}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] #opts .opt button.ord{background:#22b573;color:#fff;border:3px solid #2f6f73;box-shadow:none;border-radius:999px;padding:9px 20px}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] #opts .opt:hover button.ord{animation:kidsb .6s ease}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] #opts .badge{transform:rotate(-4deg)}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] .cpn{border:3px solid #2f6f73;border-radius:999px;background:#fff}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] .cpn button{background:#ffc933;color:#2f6f73;border-inline-start:3px solid #2f6f73}#bdrop#bdrop#bdrop#bdrop[data-ed=kids] .secure{color:#6b7da0}html body #bdrop#bdrop#bdrop#bdrop[data-ed=students]{background:#fdfbf2 repeating-linear-gradient(transparent 0 31px,#d9e4f5 31px 32px);color:#2f6f73;border:1px solid #c9d4ea;border-radius:10px 22px 22px 10px;box-shadow:none;padding-inline-start:30px}#bdrop#bdrop#bdrop#bdrop[data-ed=students]:before{content:"";position:absolute;inset-block:0;inset-inline-start:20px;width:2px;background:#e57373;opacity:.75;border-radius:2px}#bdrop#bdrop#bdrop#bdrop[data-ed=students] .bdh b{color:#2f6f73;font-size:1.3rem}#bdrop#bdrop#bdrop#bdrop[data-ed=students] .rdm-btn{color:#1f3a8a;background:#fff}#bdrop#bdrop#bdrop#bdrop[data-ed=students] #opts .opt{background:#fff;border:1.5px solid #c9d4ea;border-radius:6px 16px 16px 6px;box-shadow:none;--pp:#fff;--ps:#1f3a8a;--pl:#e57373}#bdrop#bdrop#bdrop#bdrop[data-ed=students] #opts .opt .ico svg .pp{fill:#fff;stroke:#1f3a8a;stroke-width:1.5}#bdrop#bdrop#bdrop#bdrop[data-ed=students] #opts .opt:nth-child(odd) .ico svg .pp{fill:#e8eefc}#bdrop#bdrop#bdrop#bdrop[data-ed=students] #opts .opt.best{background:linear-gradient(transparent 55%,#fff3a6 55%,#fff3a6 92%,transparent 92%),#fff;border-color:#1f3a8a}#bdrop#bdrop#bdrop#bdrop[data-ed=students] #opts .opt .p{color:#1f3a8a}#bdrop#bdrop#bdrop#bdrop[data-ed=students] #opts .opt .p s{color:#9aa6c4}#bdrop#bdrop#bdrop#bdrop[data-ed=students] #opts .opt .sv{background:#e57373;color:#fff;border-radius:4px;transform:rotate(-2deg)}#bdrop#bdrop#bdrop#bdrop[data-ed=students] #opts .opt button.ord{background:#1f3a8a;color:#fff;border-radius:8px;box-shadow:none}#bdrop#bdrop#bdrop#bdrop[data-ed=students] #opts .badge{background:#e57373;color:#fff;border-radius:4px;transform:rotate(-3deg)}#bdrop#bdrop#bdrop#bdrop[data-ed=students] .cpn{border:1.5px solid #c9d4ea;border-radius:8px;background:#fff}#bdrop#bdrop#bdrop#bdrop[data-ed=students] .cpn button{background:#1f3a8a;color:#fff}#bdrop#bdrop#bdrop#bdrop[data-ed=students] .secure{color:#7a87aa}html body #bdrop#bdrop#bdrop#bdrop[data-ed=mafia]{background:linear-gradient(180deg,#3a2b3b,#0b090d);color:#f0e6cf;border:1px solid #c9a24a;border-radius:22px;box-shadow:0 0 0 1px #000}#bdrop#bdrop#bdrop#bdrop[data-ed=mafia] .bdh b{color:#e9c76d;letter-spacing:.02em}#bdrop#bdrop#bdrop#bdrop[data-ed=mafia] .rdm-btn{color:#e9c76d}#bdrop#bdrop#bdrop#bdrop[data-ed=mafia] #opts .opt{background:linear-gradient(135deg,#3f2f40,#382a39);border:1px solid #4a3d22;border-radius:14px;--pp:#c9a24a;--ps:#6b5420;--pl:#6b5420}#bdrop#bdrop#bdrop#bdrop[data-ed=mafia] #opts .opt .ico svg .pp{fill:#c9a24a;stroke:#3a2c0c}#bdrop#bdrop#bdrop#bdrop[data-ed=mafia] #opts .opt .ico svg .pl{stroke:#3a2c0c;stroke-dasharray:2 2}#bdrop#bdrop#bdrop#bdrop[data-ed=mafia] #opts .opt.best{border-color:#c9a24a;background:linear-gradient(135deg,#2a1519,#161015);box-shadow:none}#bdrop#bdrop#bdrop#bdrop[data-ed=mafia] #opts .opt.best .ico svg .pp{fill:#a31621;stroke:#e9c76d}#bdrop#bdrop#bdrop#bdrop[data-ed=mafia] #opts .opt .p{color:#e9c76d}#bdrop#bdrop#bdrop#bdrop[data-ed=mafia] #opts .opt .p s{color:#7a6c4a}#bdrop#bdrop#bdrop#bdrop[data-ed=mafia] #opts .opt .sv{background:#a31621;color:#fff}#bdrop#bdrop#bdrop#bdrop[data-ed=mafia] #opts .opt button.ord{background:linear-gradient(180deg,#e9c76d,#b88a2e);color:#17110a;box-shadow:none;border-radius:10px}#bdrop#bdrop#bdrop#bdrop[data-ed=mafia] #opts .badge{background:#a31621;color:#fff;border:1px solid #e9c76d}#bdrop#bdrop#bdrop#bdrop[data-ed=mafia] .cpn{border:1px solid #4a3d22;border-radius:12px;background:#352836}#bdrop#bdrop#bdrop#bdrop[data-ed=mafia] .cpn input{color:#f0e6cf}#bdrop#bdrop#bdrop#bdrop[data-ed=mafia] .cpn button{background:#c9a24a;color:#17110a}#bdrop#bdrop#bdrop#bdrop[data-ed=mafia] .secure{color:#8a7c5a}html body #bdrop#bdrop#bdrop#bdrop[data-ed] #opts .opt .t{color:inherit}html body #bdrop#bdrop#bdrop#bdrop[data-ed=students] .bdh b{font-size:1.12rem}html body .hero#top,html body .hero#top[data-th]{background:radial-gradient(ellipse 30% 38%at 50% 24%,rgba(255,236,170,.45)0,rgba(255,236,170,0) 70%),linear-gradient(160deg,#ffd877 0,#fbbe3d 42%,#f5a320 72%,#ef8f0f 100%)!important}html body .hero#top .hfx,html body .hero#top .pth,html body .hero#top .wvx,html body header .hcurb i{display:none!important}html body .hero#top .pthc svg path:last-child{display:none}html body .hero#top h1.wm{animation:none!important;transform:none!important;width:clamp(150px,min(20vw,30vh),300px)!important;height:clamp(150px,min(20vw,30vh),300px)!important;margin-top:clamp(8px,1.6vh,22px)!important}html body .hero#top h1.wm *{animation:none!important}html body .hero p.wel{font-size:clamp(.95rem,1.3vw,1.3rem)!important;font-weight:600!important;margin-top:clamp(4px,1vh,12px)!important}html body .hero p.meta{font-size:clamp(.8rem,1vw,1.02rem)!important;margin-top:4px!important;opacity:.92}html body .hero p.meta,html body .hero p.wel{color:#fff!important;text-shadow:0 1px 3px rgba(150,75,0,.45)!important}html body .hero .wrap.tiles{margin-top:clamp(28px,4.5vh,60px)!important}@media (max-height:560px) and (min-width:701px){
html body .hero#top h1.wm{width:clamp(80px,18vh,130px)!important;height:clamp(80px,18vh,130px)!important}
}@media (max-width:700px){
html body .hero#top h1.wm{width:clamp(150px,44vw,220px)!important;height:clamp(150px,44vw,220px)!important}html body .hero p.wel{font-size:.98rem!important}html body .hero p.meta{font-size:.82rem!important}
}html body .hero .tiles .tile{box-shadow:none!important;border-bottom:0!important;filter:none!important}html body .hero .tiles .tile .edsn,html body .hero .tiles .tile .soon,html body .hero .tiles .tile::after,html body .hero .tiles .tile::before{box-shadow:none!important}html body .hero .tiles .tile:not(.t-hid)::after{display:none!important}html body .hero .t-buy .bpl,html body .hero .t-play .pb{box-shadow:none!important;border:0!important}html body .hero .tiles .t-buy{outline:2px solid rgba(31,27,22,.08);outline-offset:-2px} html body #bdrop .gt,html body #opts .opt button.ord,html body #qview #back,html body #qview #lock,html body #qview #rep,html body #qview #show,html body #teamscreen #go,html body #teamscreen .ht,html body .btn,html body .buyb,html body .cpn button,html body .cta,html body .fabtn,html body .fav>button,html body .home,html body .homeb,html body .mbuy,html body .pk-rand,html body .rdm-btn,html body a.btn,html body button,html body header nav a.admlink {box-shadow:none!important;text-shadow:none!important}html body header .buyb .bp{text-shadow:none!important}html body .btn:active,html body .btn:hover,html body .buyb:active,html body .buyb:hover,html body .buyb[aria-expanded=true],html body .cta:hover,html body button:active,html body button:hover,html body header .hrdm{box-shadow:none!important}html body .buyb:hover,html body .buyb[aria-expanded=true],html body .hcurb:hover,html body .hcurb[aria-expanded=true],html body .hrdm:active,html body .hrdm:hover{transform:none!important}html body .buyb{transition:filter .15s,background .15s!important}html body .buyb:hover{filter:brightness(1.05)}html body header .hrdm{--hrc:#1F1B16;background:#f8bf4f!important;color:#1f1b16!important;border:0!important}html body header .hrdm .hri{color:#fff!important}html body header .hrdm .hri path:first-child{stroke:#1f1b16!important}html body header .hrdm:hover{background:#fbca62!important}html body header .buyb{background:#16a34a!important;color:#fff!important;box-shadow:none!important;border:0!important}html body header .buyb:hover,html body header .buyb[aria-expanded=true]{background:#13893f!important;filter:none}html body header .buyb .bp{background:#fff!important;color:#16a34a!important;border:0!important;box-shadow:none!important}html body header .hcurb{width:clamp(34px,2.5vw,40px)!important;height:clamp(34px,2.5vw,40px)!important;border:0!important;box-shadow:none!important;background:0 0!important}html body header .hcurb img{box-shadow:0 0 0 1px rgba(31,27,22,.12)}html body header .hcurb:hover img{box-shadow:0 0 0 2px #1f1b16}html body .fav>button{border:2px solid rgba(31,27,22,.12)!important}@media (max-width:640px){
html body header .hcurb{width:30px!important;height:30px!important}
}html body .btn:focus-visible,html body a:focus-visible,html body button:focus-visible{outline:3px solid #1f1b16;outline-offset:2px}html body #pickscreen header#phdr .buyb,html body #pickscreen header#phdr .buyb:hover,html body #pickscreen header#phdr .buyb[aria-expanded=true]{background:#16a34a!important;color:#fff!important;box-shadow:none!important;border:0!important;transform:none!important}html body #pickscreen header#phdr .buyb .bp{background:#fff!important;color:#16a34a!important;box-shadow:none!important;border:0!important}html body #pickscreen header#phdr .hrdm{background:#f8bf4f!important;color:#1f1b16!important;border:0!important;box-shadow:none!important;transform:none!important}html body #pickscreen header#phdr .hcurb{box-shadow:none!important;border:0!important;background:0 0!important;transform:none!important}html body[data-edition="mafia"] .sc-t,html body[data-edition="mafia"] .ph-end .sc-open .hero h1{font-family:Cairo,sans-serif!important;font-weight:800!important}html body[data-edition="mafia"] .tm.pend{opacity:.35;color:var(--mu-w)!important;animation:none!important}html body[data-edition="mafia"] .bartm.pend{opacity:.35}html body[data-edition="mafia"] .sc-need{display:block;color:var(--mu-soft);font-size:clamp(.82rem,2.1vh,1rem);font-weight:600;margin-top:-4px}html body[data-edition="mafia"] .pt .kick{width:36px;height:36px;font-size:1.25rem}html body[data-edition="mafia"] .pt .vc{position:absolute;top:0;inset-inline-end:0;min-width:clamp(28px,5vh,44px);height:clamp(28px,5vh,44px);padding:0 6px;display:grid;place-items:center;background:var(--mu-r);color:#fff;font:800 clamp(1rem,3.2vh,1.55rem)/1 Cairo,sans-serif;animation:vcin .35s cubic-bezier(.2,.9,.3,1.4) both;z-index:2}@keyframes vcin{from{opacity:0;scale:.3}to{opacity:1;scale:1}}

/* ===================== مؤثرات الشاشة ===================== */
/* ===== جيم مافيا: مؤثرات الحارة (نوفمبر 2026) =====
   أبواب اللاعبين بالمشهد، الكاميرا، ظل المافيا، الخطر، مصاريع الليل، الخشب والختم، أوراق التصويت، جريدة الصباح.
   بدون ظلال ولا توهّج. ملف لحاله بعد تنسيقات الصفحة. *//* ---------- أبواب اللاعبين بالمشهد ---------- */#scene .pd .pk{opacity:0;transform-box:fill-box}#scene .pd.out .pk{animation:mfxPk .35s ease-in both}@keyframes mfxPk{0%{opacity:0;transform:translateY(-26px)}70%{opacity:1;transform:translateY(2px)}100%{opacity:1;transform:none}}#scene .pd.np .dpl{display:none}#scene .pd .pd-o{transition:fill .6s}#scene .pd.out .pd-o{fill:#4b4656;fill-opacity:1}#scene .pd.spk .pd-o{fill:#FFD23F;fill-opacity:1}#scene .pd.out .dpl text{fill:#9a94a8}#scene .pd.knock .pd-o{animation:mfxKnock .25s steps(2) 5}@keyframes mfxKnock{50%{fill:#8a7a9a}} #scene.walking .fig {display:none}#scene.on-focus~.wrap .wall{opacity:0}html body[data-edition="mafia"] .wall{transition:opacity .6s}/* ---------- الخطر: ضباب، عتمة، مطر ---------- */ #scene .rain {position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity 2.5s}#scene[data-t="3"]:not([data-mood="day"]) .rain{opacity:1}#scene .rain{overflow:hidden}#scene .rain i{position:absolute;top:-60px;width:2px;height:34px;background:rgba(205,210,255,.45);animation:mfxRain linear infinite}@keyframes mfxRain{from{transform:translate(0,0) rotate(12deg)}to{transform:translate(-150px,115vh) rotate(12deg)}}#scene .fl{transition:opacity 1.5s}/* ---------- شريط اللاعبين ---------- */html body[data-edition="mafia"] .pt>span,html body[data-edition="mafia"] .pt>small,html body[data-edition="mafia"] .pt>.seat{position:relative;z-index:2}html body[data-edition="mafia"] .pt.lift{transform:translateY(-10px);transition:transform .35s cubic-bezier(.2,.9,.3,1.3),background-color .25s,color .25s}/* مصاريع الليل: بتتسكّر على كل لاعب بعده باللعبة، والاسم بيضل مكتوب عليها */html body[data-edition="mafia"] .pt .sh{position:absolute;top:0;bottom:0;width:50%;z-index:1;pointer-events:none;background:repeating-linear-gradient(0deg,#2c3a3e 0 6px,#1f2a2d 6px 8px);transition:transform .6s cubic-bezier(.5,0,.3,1) var(--d,0s)}html body[data-edition="mafia"] .pt .sh.r{right:0;transform:translateX(102%)}html body[data-edition="mafia"] .pt .sh.l{left:0;transform:translateX(-102%)}html body[data-edition="mafia"] .ph-night .pt:not(.dead) .sh{transform:none}html body[data-edition="mafia"] .ph-night .pt:not(.dead)>span{color:#e8e4f0}/* اللي خرج: خشب وختم */html body[data-edition="mafia"] .pt .pk{position:absolute;left:6%;width:88%;height:12%;min-height:5px;z-index:1;background:#8A6A45;pointer-events:none;transform:rotate(var(--r))}html body[data-edition="mafia"] .pt .pk:nth-of-type(1){top:22%;--r:-7deg}html body[data-edition="mafia"] .pt .pk:nth-of-type(2){top:46%;--r:5deg;background:#7A5C3A}html body[data-edition="mafia"] .pt .pk:nth-of-type(3){top:70%;--r:-3deg}html body[data-edition="mafia"] .pt .stp2{position:absolute;top:3px;inset-inline-end:3px;z-index:3;padding:0 5px;border:2px solid var(--mu-r);color:var(--mu-r);background:#F1E6D0;font:800 clamp(.55rem,1.5vh,.78rem)/1.5 Cairo,sans-serif;transform:rotate(-12deg);pointer-events:none}html body[data-edition="mafia"] .pt.fresh .pk{animation:mfxPlank .35s ease-in both}html body[data-edition="mafia"] .pt.fresh .pk:nth-of-type(2){animation-delay:.25s}html body[data-edition="mafia"] .pt.fresh .pk:nth-of-type(3){animation-delay:.5s}html body[data-edition="mafia"] .pt.fresh .stp2{animation:mfxStamp .45s ease-out .8s both}@keyframes mfxPlank{0%{transform:translateY(-30px) rotate(var(--r));opacity:0}70%{transform:translateY(2px) rotate(var(--r));opacity:1}100%{transform:rotate(var(--r));opacity:1}}@keyframes mfxStamp{0%{transform:scale(2.6) rotate(-12deg);opacity:0}60%{transform:scale(.9) rotate(-12deg);opacity:1}100%{transform:rotate(-12deg);opacity:1}}/* ورقة التصويت بتنزل على اللي صوّت */html body[data-edition="mafia"] .pt .slip{position:absolute;top:0;left:50%;margin-left:-8px;width:16px;height:20px;z-index:3;background:#F1E6D0;border:2px solid #2f5f63;pointer-events:none;animation:mfxSlip .55s ease-in both}@keyframes mfxSlip{0%{transform:translateY(-110px) rotate(-30deg);opacity:0}30%{opacity:1}100%{transform:translateY(18px) rotate(8deg);opacity:0}}/* دخول اللاعبين للغرفة */html body[data-edition="mafia"] .pt.in.fresh{animation:mfxDrop .6s cubic-bezier(.2,.9,.3,1.25) both}@keyframes mfxDrop{0%{transform:translateY(-120px) rotate(-8deg);opacity:0}60%{opacity:1;transform:translateY(5px) rotate(3deg)}100%{transform:none}}/* ---------- آخر 30 ثانية ---------- */html body[data-edition="mafia"] .hang-in.w30 .tm{color:var(--mu-r)}html body[data-edition="mafia"] .hang-in.shk{animation:mfxShake .45s ease-in-out 4}@keyframes mfxShake{0%,100%{transform:translateX(0)}20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)}}/* ---------- جريدة الصباح ---------- */#mpaper{position:fixed;z-index:30;top:max(76px,12vh);left:50%;width:min(460px,78vw);margin-left:calc(min(460px,78vw)/-2);background:#F1E6D0;color:#2f5f63;padding:clamp(10px,2.4vh,18px) clamp(14px,2vw,22px);border:3px solid #2f5f63;display:flex;flex-direction:column;gap:clamp(4px,1.2vh,10px);text-align:start;direction:rtl;font-family:Cairo,Tahoma,sans-serif;pointer-events:none}#mpaper.in{animation:mfxPaperIn .9s cubic-bezier(.2,.8,.25,1.1) both}#mpaper.out{animation:mfxPaperOut .5s ease-in both}@keyframes mfxPaperIn{0%{transform:translateY(-120vh) rotate(-18deg)}70%{transform:translateY(10px) rotate(3deg)}100%{transform:rotate(-2deg)}}@keyframes mfxPaperOut{to{transform:translateY(-120vh) rotate(10deg)}}#mpaper .mast{font-size:clamp(1.2rem,4.4vh,2rem);font-weight:800;text-align:center;border-bottom:4px double #2f5f63;line-height:1.3;padding-bottom:4px;display:flex;flex-direction:column}#mpaper .mast small{display:flex;justify-content:space-between;font-size:clamp(.62rem,1.7vh,.82rem);font-weight:600;color:#5E6B34;border-top:1px solid #2f5f63;margin-top:4px;padding-top:2px}#mpaper .head{font-size:clamp(1.5rem,6.2vh,2.9rem);font-weight:800;color:#B5532A;line-height:1.15}#mpaper .head.calm{color:#5E6B34}#mpaper p{font-size:clamp(.85rem,2.6vh,1.2rem);font-weight:600;line-height:1.6;margin:0}#mpaper .brk{border-top:2px solid #2f5f63;padding-top:6px;font-size:clamp(.78rem,2.2vh,1rem);font-weight:600}#mpaper .brk b{color:#5E6B34;margin-inline-end:6px}@media (prefers-reduced-motion:reduce){
html body[data-edition="mafia"] .pt.fresh .pk,html body[data-edition="mafia"] .pt.fresh .stp2,html body[data-edition="mafia"] .pt .slip,html body[data-edition="mafia"] .pt.in.fresh,#mpaper.in,#mpaper.out,html body[data-edition="mafia"] .hang-in.shk{animation:none}#scene .rain i{animation:none;display:none}
}/* ---------- تصليحات بعد التجربة ---------- *//* صفّين لاعبين: البطاقة ما بترتفع (كانت تغطّي اللي فوقها)، والخشب بيروح وبيضل الختم والاسم المشطوب */html body[data-edition="mafia"] .dock.many .pt.lift{transform:none}html body[data-edition="mafia"] .dock.many .pt .pk{display:none}/* زر الطرد بالغرفة أصغر وعلى طرف البطاقة، والاسم ما بيلزق فيه */html body[data-edition="mafia"] .dock.many .pt .kick{width:22px;height:22px;font-size:.85rem;line-height:22px;padding:0}html body[data-edition="mafia"] .dock.many .pt.in>span{max-width:calc(100% - 26px)}/* جريدة الصباح أصغر على الشاشات القصيرة (الجوال بالعرض) */@media (max-height:520px){
#mpaper{width:min(340px,52vw);margin-left:calc(min(340px,52vw)/-2);top:64px}
}/* أثر الليلة *//* أثر الليلة: أهم معلومة بالنهار، فبيطلع بخط كبير يقرأه اللي قاعد بآخر الغرفة */html body .res.clue{background:#FFD23F!important;border:0!important;color:#3a2b3b;padding:12px 16px!important}html body .res.clue b{display:block;color:#3a2b3b;font-size:clamp(13px,1vw,17px);letter-spacing:.02em;opacity:.8}html body .res.clue small{display:block;margin-top:2px;font-weight:800;opacity:1;color:#3a2b3b;font-size:clamp(17px,1.55vw,28px);line-height:1.5}

/* ===================== الحارة المسطحة (أجهزة بلا WebGL) ===================== */
/* مشهد الحارة الجديد (scene2.js). الألوان حسب الوقت: المغرب (الأساسي)، الليل، النهار. بدون أبيض ولا أسود ولا توهّج */#scene.s3{--wall:#7A5F7C;--wall2:#6A516D;--sky:#4a374a;--floor:#8C7088;--fl2:#7E6279;--arch:#3F5C60;--arch2:#4D6B6E;--win:#F6C453;--winoff:#5f4b5f;--haze:rgba(74,56,74,.2);--fig:#3f2f40;background:var(--sky);overflow:hidden}#scene.s3[data-mood="night"]{--wall:#5f4b5f;--wall2:#5a465a;--sky:#3a2b3b;--floor:#54445E;--fl2:#4A3B55;--arch:#2F4448;--arch2:#38504F;--win:#E9B348;--winoff:#4a384a;--haze:rgba(58,43,59,.3)}#scene.s3[data-mood="day"]{--wall:#B8957A;--wall2:#A6836A;--sky:#7FA9C4;--floor:#B29A80;--fl2:#A08870;--arch:#3F6E6A;--arch2:#4E807B;--win:#5C7F86;--winoff:#5C7F86;--haze:rgba(240,220,190,.14)}#scene.s3 .s3-fit{position:absolute;left:50%;top:50%;width:1440px;height:900px;transform-origin:50% 50%}#scene.s3 .s3-cam{position:absolute;inset:0;perspective:720px;perspective-origin:50% 40%;transform-style:preserve-3d;animation:s3sway 26s ease-in-out infinite}@keyframes s3sway{0%,100%{perspective-origin:49% 40%}50%{perspective-origin:51.5% 41.5%}}#scene.s3 .s3-tun{position:absolute;left:0;top:0;width:1440px;height:900px;transform-style:preserve-3d;transform-origin:0 0 0;transform:translate3d(0,0,0) rotateY(0deg) translate3d(0,0,0);transition:transform 2.2s cubic-bezier(.6,0,.2,1)}#scene.s3.s3-idle .s3-tun{animation:s3dolly 22s linear infinite}@keyframes s3dolly{from{transform:translateZ(0)}to{transform:translateZ(520px)}}#scene.s3 .s3-back{position:absolute;left:300px;top:0;width:840px;height:900px;transform:translateZ(-3600px);background:var(--sky)}#scene.s3 .s3-moon{position:absolute;left:470px;top:150px;width:90px;height:90px;border-radius:50%;background:#F1E4C6;opacity:0;transition:opacity 2s}#scene.s3[data-mood="night"] .s3-moon{opacity:.85}#scene.s3 .s3-floor{position:absolute;left:300px;top:900px;width:840px;height:4240px;transform-origin:50% 0;transform:translateZ(640px) rotateX(-90deg);background-color:var(--floor);background-image:repeating-linear-gradient(0deg,transparent 0 98px,var(--fl2) 98px 100px),repeating-linear-gradient(90deg,transparent 0 138px,var(--fl2) 138px 140px)}#scene.s3 .s3-wall{position:absolute;top:0;width:4240px;height:900px;background-color:var(--wall);background-image:repeating-linear-gradient(0deg,transparent 0 58px,var(--wall2) 58px 60px)}#scene.s3 .s3-wl{left:300px;transform-origin:0 50%;transform:translateZ(640px) rotateY(90deg)}#scene.s3 .s3-wr{left:-3100px;transform-origin:100% 50%;transform:translateZ(640px) rotateY(-90deg)}/* الأبواب */#scene.s3 .s3-door{position:absolute;top:380px;width:170px;height:520px;background:var(--arch);border-radius:85px 85px 0 0;overflow:hidden}#scene.s3 .s3-door>i{position:absolute;left:20px;right:20px;top:20px;bottom:0;border-radius:65px 65px 0 0;background:var(--arch2)}#scene.s3 .s3-door.knock{animation:s3knock .5s ease 2}@keyframes s3knock{0%,100%{transform:none}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}#scene.s3 .s3-door .pk{position:absolute;left:-14px;width:198px;height:24px;background:#8E7A92;transform:scaleX(0);transition:transform .4s cubic-bezier(.3,1.4,.5,1)}#scene.s3 .s3-door .p1{top:150px;--r:28deg}#scene.s3 .s3-door .p2{top:150px;--r:-28deg;transition-delay:.25s}#scene.s3 .s3-door .p3{top:340px;--r:6deg;transition-delay:.5s}#scene.s3 .s3-door.out .pk{transform:scaleX(1) rotate(var(--r))}#scene.s3 .s3-step{position:absolute;top:884px;width:200px;height:16px;background:var(--fl2)}#scene.s3 .s3-win{position:absolute;top:110px;width:100px;height:170px;border-radius:50px 50px 0 0;background:var(--win)}#scene.s3 .s3-win b{position:absolute;left:48px;top:0;bottom:0;width:4px;background:var(--wall2)}#scene.s3 .s3-win u{position:absolute;left:0;right:0;top:92px;height:4px;background:var(--wall2)}#scene.s3 .s3-sill{position:absolute;top:288px;width:120px;height:10px;background:var(--wall2)}#scene.s3.s3-idle .s3-win{animation:s3wave 16s steps(1) infinite;animation-delay:var(--wd)}@keyframes s3wave{0%{background:var(--win)}42%{background:var(--winoff)}80%{background:var(--win)}}/* يافطة رقم اللاعب */#scene.s3 .s3-pl{position:absolute;top:318px;width:124px;height:50px;background:#FFD23F;color:#3a2b3b;border:4px solid #3a2b3b;box-sizing:border-box;font:800 30px/42px Cairo,sans-serif;text-align:center;transition:background .4s,color .4s}#scene.s3 .s3-pl.np{display:none}#scene.s3 .s3-pl.out{background:#5a465a;color:#B9A9C9;text-decoration:line-through;text-decoration-color:#E0533A;text-decoration-thickness:4px}#scene.s3 .s3-pl.spk{background:#E0533A;color:#F1E4C6}/* ظل بيطلّ من الباب */#scene.s3 .s3-pk{position:absolute;bottom:0;left:30px;width:100px;height:230px;fill:var(--fig);opacity:0;animation:s3peek 16s ease-in-out infinite}#scene.s3 .s3-pk .ey{fill:#FFD23F}@keyframes s3peek{0%,44%{opacity:0;transform:translateX(-70px)}52%,68%{opacity:1;transform:none}76%,100%{opacity:0;transform:translateX(-70px)}}#scene.s3 .s3-door:not(.np) .s3-pk,#scene.s3[data-mood="day"] .s3-pk,#scene.s3 .s3-door.out .s3-pk,#scene.s3.on-focus .s3-pk{display:none}#scene.s3 [data-p="1"] .s3-pk{animation-delay:-3s}#scene.s3 [data-p="7"] .s3-pk{animation-delay:-7s}#scene.s3 [data-p="16"] .s3-pk{animation-delay:-11s}#scene.s3 [data-p="22"] .s3-pk{animation-delay:-14s}/* القناطر والفوانيس */#scene.s3 .s3-span{position:absolute;left:300px;top:0;width:840px;height:900px}#scene.s3 .s3-span svg{width:840px;height:900px;display:block}#scene.s3 .s3-span .sp{fill:var(--wall2)}#scene.s3 .s3-span .sp2{fill:none;stroke:var(--wall);stroke-width:6}#scene.s3 .s3-lan{position:absolute;left:403px;top:80px;width:34px;transform-origin:17px 0;animation:s3swing 3.6s ease-in-out infinite alternate}@keyframes s3swing{from{transform:rotate(-5deg)}to{transform:rotate(5deg)}}#scene.s3 .s3-lan i{display:block;width:3px;height:70px;margin:0 auto;background:#3a2b3b}#scene.s3 .s3-lan em{display:block;width:34px;height:48px;background:var(--win);border:4px solid #3a2b3b;box-sizing:border-box;border-radius:6px 6px 12px 12px;transition:background 1.2s}#scene.s3[data-t="2"] .s3-span:nth-of-type(odd) .s3-lan em,#scene.s3[data-t="3"] .s3-lan em{background:var(--winoff)}#scene.s3 .s3-haze{position:absolute;left:300px;top:0;width:840px;height:900px;background:var(--haze);pointer-events:none}#scene.s3[data-t="3"] .s3-haze{background:rgba(58,43,59,.36)}/* ظل المافيا */#scene.s3 .s3-fig{position:absolute;left:650px;top:520px;width:140px;height:380px;opacity:0}#scene.s3 .s3-fig svg{width:140px;height:380px;display:block;fill:var(--fig)}#scene.s3 .s3-fig.mv svg{animation:s3bob .55s ease-in-out infinite alternate}@keyframes s3bob{from{transform:translateY(0)}to{transform:translateY(-7px)}}/* ضباب على الأرض */#scene.s3 .s3-fog{position:absolute;height:22vh;border-radius:50%;background:rgba(210,180,220,.12);filter:blur(28px);pointer-events:none;animation:s3fog 18s ease-in-out infinite alternate}#scene.s3 .s3-fog.a{left:-8%;bottom:6vh;width:70%}#scene.s3 .s3-fog.b{right:-10%;bottom:1vh;width:80%;animation-duration:23s}@keyframes s3fog{from{transform:translateX(-5%)}to{transform:translateX(8%)}}#scene.s3[data-mood="day"] .s3-fog{opacity:.35}#scene.s3 .s3-dim{position:absolute;inset:0;background:rgba(50,37,51,.0);transition:background 2s;pointer-events:none}#scene.s3[data-t="3"] .s3-dim{background:rgba(50,37,51,.25)}@media (max-width:700px){
#scene.s3.s3-idle .s3-tun{animation:none}#scene.s3 .s3-cam{animation:none}#scene.s3 .s3-fog{animation:none}
}@media (prefers-reduced-motion:reduce){
#scene.s3 *{animation:none!important;transition:none!important}
}#scene.s3 .s3-gate{position:absolute;left:330px;bottom:0;width:180px;height:330px;border-radius:90px 90px 0 0;background:var(--wall2)}#scene.s3 .s3-gate b{position:absolute;left:24px;right:24px;top:24px;bottom:0;border-radius:66px 66px 0 0;background:var(--win)}#scene.s3[data-mood="day"] .s3-gate b{background:#9CC1D6}/* ===== إضافات المراجعة ===== *//* التصويت: بدل الوهج الأحمر (كان يطلع خمري على البنفسجي)، الفوانيس بتتمرجح أسرع والحارة بتغمق شوي */#scene.s3 .alarm{display:none}#scene.s3.on-alarm .s3-lan{animation-duration:1.4s}#scene.s3.on-alarm .s3-dim{background:rgba(50,37,51,.18)}/* يافطات الأرقام: بتبين بس على الباب اللي الكاميرا مقرّبة عليه، أو على باب خرج صاحبه (بالخط عليه). غير هيك كانت تطلع مربعات صغيرة طايرة جنب اللوحات */#scene.s3 .s3-pl{opacity:0;transition:opacity .5s}#scene.s3 .s3-pl.fc,#scene.s3 .s3-pl.out{opacity:1}/* غرفة الانتظار: الشبابيك مطفية، وكل لاعب بيدخل بيضوي شباكه */#scene.s3.s3-lob .s3-win{background:var(--winoff);animation:none}#scene.s3.s3-lob .s3-win.lit{background:var(--win)}#scene.s3 .s3-win.pop{animation:s3pop .9s cubic-bezier(.3,1.5,.5,1)}@keyframes s3pop{0%{background:var(--winoff);transform:scale(.9)}35%{background:var(--win)}60%{transform:scale(1.06)}100%{transform:none}}/* رقم واسم اللاعب كبار لما الكاميرا تقرّب على بابه */#scene.s3 .s3-tag{position:absolute;left:50%;bottom:calc(18vh + 24px);transform:translateX(-50%);display:flex;align-items:stretch;gap:0;opacity:0;pointer-events:none;transition:opacity .5s .9s}#scene.s3 .s3-tag.on{opacity:1}#scene.s3 .s3-tag b{min-width:1.6em;padding:2px 16px;background:#FFD23F;color:#3a2b3b;border:5px solid #3a2b3b;font:800 clamp(40px,5vw,84px)/1.05 Cairo,sans-serif;text-align:center}#scene.s3 .s3-tag span{display:flex;align-items:center;max-width:30vw;padding:4px 22px;background:#3a2b3b;color:#FFD23F;font:800 clamp(20px,2.2vw,36px)/1.4 Cairo,sans-serif;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#scene.s3 .s3-tag span:empty{display:none}#scene.s3.on-focus .s3-tag{transition-delay:1.4s}body.ph-setup #scene.s3 .s3-tag,body.ph-lobby #scene.s3 .s3-tag{display:none}/* نهاية اللعبة: أبواب المافيا بتنفتح وحدة ورا وحدة، ووراها عيون صفرا */#scene.s3 .s3-in{position:absolute;left:20px;right:20px;top:20px;bottom:0;border-radius:65px 65px 0 0;background:#3f2f40 linear-gradient(#FFD23F,#FFD23F) 38px 150px/14px 6px no-repeat;opacity:0}#scene.s3 .s3-in::after{content:"";position:absolute;left:78px;top:150px;width:14px;height:6px;background:#FFD23F}#scene.s3 .s3-door{perspective:600px}#scene.s3 .s3-door>i{transform-origin:0 50%;transition:transform 1.2s cubic-bezier(.3,.8,.2,1)}#scene.s3 .s3-door.mfo{overflow:visible}#scene.s3 .s3-door.mfo>i{transform:rotateY(-78deg);transition-delay:var(--od,0s)}#scene.s3 .s3-door.mfo .s3-in{opacity:1;transition:opacity .3s;transition-delay:var(--od,0s)}/* جولة بطيئة بالحارة بالنهاية: الكاميرا بتمشي قدّام الأبواب المفتوحة ورجوع */#scene.s3.s3-tour .s3-tun{animation:s3tour 34s ease-in-out infinite alternate}@keyframes s3tour{from{transform:translateZ(0)}to{transform:translateZ(2300px)}}/* حركة الكاميرا مطفأة من الإعدادات */#scene.s3.s3-still .s3-cam,#scene.s3.s3-still.s3-idle .s3-tun,#scene.s3.s3-still.s3-tour .s3-tun,#scene.s3.s3-still .s3-lan,#scene.s3.s3-still .s3-fog{animation:none}/* الوضع الخفيف للأجهزة الضعيفة */#scene.s3.s3-lite .s3-haze,#scene.s3.s3-lite .s3-fog{display:none}#scene.s3.s3-lite .s3-cam,#scene.s3.s3-lite .s3-lan,#scene.s3.s3-lite .s3-pk{animation:none}#scene.s3.s3-lite .s3-pk{display:none}body:has(#scene.s3-lite) #hmfx .dust{display:none}/* الباب اللي الكاميرا عليه: ضرفته بتضوي، فبيتميّز عن جيرانه من أول نظرة */#scene.s3 .s3-door.fc>i{background:var(--win);transition:background .6s .8s}#scene.s3 .s3-door.fc .s3-pk{display:none}/* وقت التقريب على باب: القناطر والغبشة بتختفي عشان ما يقطعوا الكادر */#scene.s3.on-focus .s3-span,#scene.s3.on-focus .s3-haze{opacity:0;transition:opacity .8s}#scene.s3 .s3-span,#scene.s3 .s3-haze{transition:opacity .8s}/* ===== رسم الحارة الجديد ===== *//* حجر: مداميك بأطوال مختلفة، وكم حجر أغمق وأفتح، وخط رطوبة تحت */#scene.s3 .s3-wall{background-image:linear-gradient(transparent 86%,rgba(58,43,59,.16) 86%),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22480%22 height=%22240%22 viewBox=%220 0 480 240%22%3E%3Crect x=%22-20%22 y=%220%22 width=%2284%22 height=%2260%22 fill=%22rgba(241,228,198,0.06)%22/%3E%3Crect x=%2262%22 y=%220%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%2242%22 y=%2227%22 width=%224%22 height=%223%22 fill=%22rgba(58,43,59,0.2)%22/%3E%3Crect x=%22158%22 y=%220%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%22160%22 y=%220%22 width=%2284%22 height=%2260%22 fill=%22rgba(58,43,59,0.07)%22/%3E%3Crect x=%22242%22 y=%220%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%22244%22 y=%220%22 width=%2270%22 height=%2260%22 fill=%22rgba(58,43,59,0.07)%22/%3E%3Crect x=%22312%22 y=%220%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%22382%22 y=%220%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%22338%22 y=%2230%22 width=%229%22 height=%223%22 fill=%22rgba(58,43,59,0.2)%22/%3E%3Crect x=%22506%22 y=%220%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%220%22 y=%2257%22 width=%22480%22 height=%223%22 fill=%22rgba(58,43,59,0.3)%22/%3E%3Crect x=%2243%22 y=%2260%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%22-7%22 y=%2279%22 width=%227%22 height=%223%22 fill=%22rgba(58,43,59,0.2)%22/%3E%3Crect x=%22127%22 y=%2260%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%22251%22 y=%2260%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%22213%22 y=%2288%22 width=%229%22 height=%223%22 fill=%22rgba(58,43,59,0.2)%22/%3E%3Crect x=%22253%22 y=%2260%22 width=%2284%22 height=%2260%22 fill=%22rgba(241,228,198,0.06)%22/%3E%3Crect x=%22335%22 y=%2260%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%22405%22 y=%2260%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%22515%22 y=%2260%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%220%22 y=%22117%22 width=%22480%22 height=%223%22 fill=%22rgba(58,43,59,0.3)%22/%3E%3Crect x=%2288%22 y=%22120%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%2290%22 y=%22120%22 width=%2296%22 height=%2260%22 fill=%22rgba(58,43,59,0.07)%22/%3E%3Crect x=%22184%22 y=%22120%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%22131%22 y=%22132%22 width=%228%22 height=%223%22 fill=%22rgba(58,43,59,0.2)%22/%3E%3Crect x=%22280%22 y=%22120%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%22282%22 y=%22120%22 width=%22140%22 height=%2260%22 fill=%22rgba(241,228,198,0.06)%22/%3E%3Crect x=%22420%22 y=%22120%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%22422%22 y=%22120%22 width=%2270%22 height=%2260%22 fill=%22rgba(58,43,59,0.07)%22/%3E%3Crect x=%22490%22 y=%22120%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%220%22 y=%22177%22 width=%22480%22 height=%223%22 fill=%22rgba(58,43,59,0.3)%22/%3E%3Crect x=%22-48%22 y=%22180%22 width=%2296%22 height=%2260%22 fill=%22rgba(58,43,59,0.07)%22/%3E%3Crect x=%2246%22 y=%22180%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%22116%22 y=%22180%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%2293%22 y=%22208%22 width=%226%22 height=%223%22 fill=%22rgba(58,43,59,0.2)%22/%3E%3Crect x=%22212%22 y=%22180%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%22336%22 y=%22180%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%22235%22 y=%22220%22 width=%226%22 height=%223%22 fill=%22rgba(58,43,59,0.2)%22/%3E%3Crect x=%22446%22 y=%22180%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%22387%22 y=%22210%22 width=%228%22 height=%223%22 fill=%22rgba(58,43,59,0.2)%22/%3E%3Crect x=%22586%22 y=%22180%22 width=%223%22 height=%2260%22 fill=%22rgba(58,43,59,0.28)%22/%3E%3Crect x=%220%22 y=%22237%22 width=%22480%22 height=%223%22 fill=%22rgba(58,43,59,0.3)%22/%3E%3C/svg%3E");background-size:100% 100%,480px 240px}#scene.s3 .s3-floor{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22280%22 height=%22200%22 viewBox=%220 0 280 200%22%3E%3Crect x=%22-12%22 y=%223%22 width=%2256%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.09)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%2250%22 y=%223%22 width=%2242%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.06)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%2298%22 y=%223%22 width=%2257%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.06)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22161%22 y=%223%22 width=%2258%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.09)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22225%22 y=%223%22 width=%2240%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.09)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22271%22 y=%223%22 width=%2238%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.06)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22-13%22 y=%2243%22 width=%2255%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.03)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%2248%22 y=%2243%22 width=%2244%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.09)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%2298%22 y=%2243%22 width=%2253%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.09)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22157%22 y=%2243%22 width=%2264%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.09)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22227%22 y=%2243%22 width=%2253%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.06)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22-37%22 y=%2283%22 width=%2242%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.03)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%2211%22 y=%2283%22 width=%2258%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.03)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%2275%22 y=%2283%22 width=%2254%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.06)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22135%22 y=%2283%22 width=%2261%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.03)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22202%22 y=%2283%22 width=%2259%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.03)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22267%22 y=%2283%22 width=%2243%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.09)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%221%22 y=%22123%22 width=%2247%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.03)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%2254%22 y=%22123%22 width=%2264%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.06)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22124%22 y=%22123%22 width=%2253%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.09)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22183%22 y=%22123%22 width=%2261%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.06)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22250%22 y=%22123%22 width=%2260%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.06)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22-22%22 y=%22163%22 width=%2261%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.09)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%2245%22 y=%22163%22 width=%2252%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.03)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22103%22 y=%22163%22 width=%2249%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.03)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22158%22 y=%22163%22 width=%2239%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.03)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22203%22 y=%22163%22 width=%2253%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.03)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3Crect x=%22262%22 y=%22163%22 width=%2246%22 height=%2234%22 rx=%229%22 fill=%22rgba(241,228,198,0.09)%22 stroke=%22rgba(58,43,59,0.3)%22 stroke-width=%223%22/%3E%3C/svg%3E");background-size:280px 200px}/* الباب: ضرفة حديد بحشوات ومسامير، وقنطرة حجر فوقه */#scene.s3 .s3-door>i{color:rgba(58,43,59,.42)}#scene.s3 .s3-door>i .s3-lf{position:absolute;inset:0;width:100%;height:100%}#scene.s3 .s3-door.fc>i{color:rgba(58,43,59,.5)}#scene.s3 .s3-arc{position:absolute;top:300px;width:170px;height:120px;color:var(--wall2)}#scene.s3 .s3-arc svg{width:170px;height:120px;display:block}/* حماية حديد على الشبابيك بدل الصليب */#scene.s3 .s3-win{color:rgba(58,43,59,.6)}#scene.s3 .s3-win .s3-gr{position:absolute;inset:0;width:100%;height:100%}#scene.s3 .s3-win b,#scene.s3 .s3-win u{display:none}/* فوق الحارة: أسلاك كهربا ومناشر غسيل */#scene.s3 .s3-ov{position:absolute;left:300px;top:0;width:840px;height:900px;pointer-events:none}#scene.s3 .s3-ov svg{width:840px;height:900px;display:block}#scene.s3.on-focus .s3-ov{opacity:0;transition:opacity .8s}/* كتابات الحيطان: دهان باهت بألوان الحارة */#scene.s3 .s3-gf{position:absolute;max-width:88px;text-align:center;white-space:nowrap;font:800 24px/1.15 Cairo,sans-serif;pointer-events:none}#scene.s3 .s3-gf.rk{font-family:Rakkas,Cairo,sans-serif;font-weight:400}#scene.s3 .s3-gf.g1{color:rgba(241,228,198,.5)}#scene.s3 .s3-gf.g2{color:rgba(246,196,83,.55)}#scene.s3 .s3-gf.g3{color:rgba(77,156,147,.75)}#scene.s3 .s3-gf.g4{color:rgba(224,83,58,.55)}#scene.s3[data-mood="night"] .s3-gf{opacity:.75}#scene.s3.s3-lite .s3-ov{display:none}#scene.s3 .s3-gf.near{max-width:210px;font-size:44px;line-height:1.1}/* الألواح بتندق بعد ما الكاميرا توصل للباب، مش قبل */#scene.s3 .s3-door.out .p1{transition-delay:1.5s}#scene.s3 .s3-door.out .p2{transition-delay:2.15s}#scene.s3 .s3-door.out .p3{transition-delay:2.8s}

/* ===================== التصميم الحالي: الشاشة الأولى، اليافطة، الشريط الجانبي، الكتاب، الإعدادات، الجوال بالعرض ===================== */
/* جيم مافيا: الشاشة الأولى (قبل فتح الغرفة) بالتصميم الجديد.
   لافتة مينا معلّقة بسلسلتين للعنوان، وأزرار على شكل لافتات شوارع بإطار مزدوج وبراغي نحاس،
   ونبض قلب على أطراف الشاشة، وغبرة بتطفو، وشبابيك الحارة بتنطفي بموجة من آخر الحارة لقدّام.
   بدون ظلال ولا توهّج ولا أبيض ولا أسود. كله محصور بـ .ph-setup (المرحلة الأولى بس). */:root{--hm-deep:#3a2b3b;--hm-teal:#3F5C60;--hm-y:#FFD23F;--hm-cream:#F1E4C6;--hm-brass:#C9A44C;--hm-brass2:#7A6328;
  --hm-notch:polygon(14px 0,calc(100% - 14px) 0,100% 14px,100% calc(100% - 14px),calc(100% - 14px) 100%,14px 100%,0 calc(100% - 14px),0 14px)}/* ===== اللافتة (قطعة مشتركة) ===== */.hm-plq{position:relative;clip-path:var(--hm-notch)!important;border:0!important;box-shadow:none!important}.hm-plq::before{content:"";position:absolute;inset:6px;z-index:1;background:none;border:2px solid currentColor;clip-path:var(--hm-notch);pointer-events:none;opacity:.95}.hm-plq::after{content:"";position:absolute;inset:11px;z-index:1;background:none;box-shadow:none;animation:none;border:1px solid currentColor;opacity:.4;pointer-events:none}.hm-plq > *{position:relative;z-index:2}.hm-plq > i.hs{position:absolute;z-index:3;width:8px;height:8px;border-radius:50%;background:linear-gradient(45deg,transparent 40%,var(--hm-brass2) 40% 60%,transparent 60%),var(--hm-brass)}.hm-plq > i.hs.a{top:16px;right:16px}.hm-plq > i.hs.b{top:16px;left:16px}.hm-plq > i.hs.c{bottom:16px;right:16px}.hm-plq > i.hs.d{bottom:16px;left:16px}/* ===== العنوان: لافتة معلّقة ===== */.hm-hang{position:relative;padding-top:clamp(26px,6vh,58px);transform-origin:50% 0;animation:hmHang 1.5s cubic-bezier(.2,.9,.25,1) .35s both,hmSway 6s ease-in-out 1.9s infinite alternate}.hm-ch{position:absolute;top:0;width:4px;height:calc(clamp(26px,6vh,58px) + 8px);background:repeating-linear-gradient(0deg,var(--hm-deep) 0 7px,transparent 7px 10px)}.hm-ch.r{right:22%}.hm-ch.l{left:22%}@keyframes hmHang{from{transform:translateY(-120%) rotate(-4deg)}to{transform:none}}@keyframes hmSway{from{transform:rotate(-1.1deg)}to{transform:rotate(1.1deg)}}html body[data-edition="mafia"] .hero.hm-sign{background:var(--hm-deep);color:var(--hm-y);padding:clamp(14px,3vh,30px) clamp(34px,6vw,74px) clamp(14px,3vh,28px)}html body[data-edition="mafia"] .hero.hm-sign::before{inset:7px}html body[data-edition="mafia"] .hero.hm-sign h1{font-family:Rakkas,Cairo,sans-serif!important;font-weight:400!important;font-size:clamp(2.6rem,14vh,7.4rem)!important;line-height:1.05;margin:0;padding:0;
  background:none;-webkit-text-fill-color:var(--hm-y);color:var(--hm-y);filter:none!important;text-shadow:none!important}html body[data-edition="mafia"] .hero.hm-sign p{margin:clamp(2px,.8vh,8px) 0 0;color:var(--hm-cream);font-weight:700;font-size:clamp(.9rem,2.6vh,1.3rem);text-shadow:none}/* ===== زر «افتح الغرفة»: لافتة صفرا ===== */html body[data-edition="mafia"] .ph-setup .btn.sc-go.hm-plq{background:var(--hm-y);color:var(--hm-deep);display:inline-flex;align-items:center;gap:12px;
  padding:clamp(12px,2.6vh,22px) clamp(34px,5vw,60px);font-size:clamp(1.15rem,3.4vh,1.7rem);transition:transform .3s cubic-bezier(.2,.9,.25,1);animation:hmUp .9s cubic-bezier(.2,.9,.25,1) 1.1s backwards}html body[data-edition="mafia"] .ph-setup .btn.sc-go.hm-plq > i.hs{background:linear-gradient(45deg,transparent 40%,var(--hm-brass) 40% 60%,transparent 60%),var(--hm-teal)}html body[data-edition="mafia"] .ph-setup .btn.sc-go.hm-plq:hover{transform:translateY(-4px) rotate(-.6deg)}html body[data-edition="mafia"] .ph-setup .btn.sc-go.hm-plq .ic{width:1.3em;height:1.3em}/* ===== أزرار الشريط: لافتات شوارع ===== */html body[data-edition="mafia"] .dk.hm-plq{background:var(--hm-teal);color:var(--hm-y)!important;
  transition:transform .3s cubic-bezier(.2,.9,.25,1);animation:hmUp .9s cubic-bezier(.2,.9,.25,1) backwards}html body[data-edition="mafia"] .dk.hm-plq:nth-child(1){animation-delay:1.25s}html body[data-edition="mafia"] .dk.hm-plq:nth-child(2){animation-delay:1.35s}html body[data-edition="mafia"] .dk.hm-plq:nth-child(3){animation-delay:1.45s}html body[data-edition="mafia"] .dk.hm-plq:hover,html body[data-edition="mafia"] .dk.hm-plq:focus-visible{transform:translateY(-4px) rotate(-.8deg);background:var(--hm-teal)!important;color:var(--hm-y)!important}html body[data-edition="mafia"] .dk.hm-plq span,html body[data-edition="mafia"] .dk.hm-plq .ic{color:var(--hm-y)}@keyframes hmUp{from{transform:translateY(80px);opacity:0}to{transform:none;opacity:1}}/* ===== بطاقة «لديك لعبة غير مكتملة» ===== *//* ===== مؤثرات الشاشة الأولى (طبقة ثابتة فوق الحارة وتحت الأزرار) ===== */#hmfx{position:fixed;inset:0;pointer-events:none;z-index:2;display:none}body.ph-setup #hmfx,body.ph-tense #hmfx{display:block}body.ph-tense:not(.ph-setup) #hmfx .dust,body.ph-tense:not(.ph-setup) #hmfx .lbx{display:none}#hmfx .vig{position:absolute;inset:0;background:radial-gradient(ellipse 78% 72% at 50% 48%,transparent 46%,rgba(50,37,51,.78) 100%);animation:hmBeat 1.1s ease-out infinite}@keyframes hmBeat{0%{opacity:.72}8%{opacity:1}18%{opacity:.8}28%{opacity:1}55%,100%{opacity:.72}}#hmfx .dust{position:absolute;width:3px;height:3px;border-radius:50%;background:var(--hm-cream);opacity:0;animation:hmDust 10s linear infinite}@keyframes hmDust{0%{opacity:0;transform:translate(0,0)}15%{opacity:.4}85%{opacity:.3}100%{opacity:0;transform:translate(40px,-170px)}}#hmfx .lbx{position:absolute;left:0;right:0;height:12vh;background:var(--hm-deep);z-index:3;transform:scaleY(0)}body.ph-setup.hm-intro #hmfx .lbx{animation:hmLbx 1.5s cubic-bezier(.7,0,.2,1) .25s both}#hmfx .lbx.t{top:0;transform-origin:50% 0}#hmfx .lbx.b{bottom:0;transform-origin:50% 100%}@keyframes hmLbx{from{transform:scaleY(1)}to{transform:scaleY(0)}}/* الشبابيك بتنطفي بموجة من آخر الحارة لقدّام، وبترجع */body.ph-setup #scene .pw .pd-o{animation:hmLamp 16s steps(1) infinite}@keyframes hmLamp{0%{fill-opacity:.9}42%{fill-opacity:.12}80%{fill-opacity:.9}}@media (max-height:520px){
#hmfx .dust{display:none}.ph-setup .hm-hang{animation:hmHang 1.2s cubic-bezier(.2,.9,.25,1) .2s both}
}@media (prefers-reduced-motion:reduce){
.ph-setup .hm-hang,#hmfx .vig,#hmfx .dust,body.ph-setup #scene .pw .pd-o,html body[data-edition="mafia"] .ph-setup .btn.sc-go.hm-plq,html body[data-edition="mafia"] .dk.hm-plq{animation:none!important}body.ph-setup.hm-intro #hmfx .lbx{animation:none}
}/* ===== أثناء اللعب: اللوحات بنفس روح اللافتات (بنفسجي غامق وإطار أصفر داخلي) ===== */html body[data-edition="mafia"] .scn:not(.ph-setup) .hang-in,html body[data-edition="mafia"] .scn .wall .plq{background:var(--hm-deep);position:relative}html body[data-edition="mafia"] .scn:not(.ph-setup) .hang-in::before,html body[data-edition="mafia"] .scn .wall .plq::before{content:"";position:absolute;inset:6px;border:2px solid var(--hm-y);opacity:.85;pointer-events:none;clip-path:var(--hm-notch)}html body[data-edition="mafia"] .scn:not(.ph-setup) .hang-in > *,html body[data-edition="mafia"] .scn .wall .plq > *{position:relative;z-index:1}/* أثر الليلة: لوحة صفرا بخط كبير، أهم معلومة بالنهار */html body[data-edition="mafia"] .scn .res.clue{background:#FFD23F!important;border:0!important;clip-path:var(--hm-notch)!important;color:#3a2b3b!important;font-size:1rem;padding:10px 16px!important}html body[data-edition="mafia"] .scn .res.clue b{display:block;color:#3a2b3b;font-size:clamp(13px,1vw,17px);opacity:.75}html body[data-edition="mafia"] .scn .res.clue small{display:block;color:#3a2b3b!important;font-weight:800;font-size:clamp(18px,1.6vw,30px);line-height:1.5;margin-top:2px}/* ===== فيلم القضية ===== */.mfilm{position:fixed;inset:0;z-index:85;background:#4a374a;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(8px,2vh,18px);padding:2vh 3vw}.mf-strip{position:relative;width:min(1180px,100%);height:min(560px,64vh);background:var(--hm-deep);overflow:hidden}.mf-holes{position:absolute;left:-60px;right:-60px;height:44px;display:flex;gap:26px;padding:0 13px;animation:mfRoll 2.4s linear infinite}.mf-holes i{flex:none;width:34px;height:22px;margin-top:11px;background:#5a465a;border-radius:4px}.mf-holes.t{top:0}.mf-holes.b{bottom:0}@keyframes mfRoll{from{transform:translateX(0)}to{transform:translateX(60px)}}.mf-fr{position:absolute;left:3%;right:3%;top:54px;bottom:54px;background:#4a374a;display:flex;align-items:center;overflow:hidden}.mf-sc{display:flex;align-items:center;gap:clamp(20px,4vw,56px);padding:0 clamp(20px,4vw,64px);width:100%}.mf-tile{flex:none;width:clamp(110px,26vh,260px);aspect-ratio:1;display:flex;align-items:center;justify-content:center;background:#F6C453;color:var(--hm-deep);outline:4px solid var(--hm-teal);outline-offset:-14px;animation:mfTin 1s cubic-bezier(.3,1.3,.45,1) both}.mf-sc[data-end] .mf-tile{background:var(--hm-deep);color:#E0533A;outline-color:#E0533A}.mf-tile .ic{width:48%;height:48%}@keyframes mfTin{from{transform:perspective(900px) rotateY(90deg) scale(.9);opacity:0}to{transform:none;opacity:1}}.mf-tx{flex:1;min-width:0}.mf-tx small{display:block;color:var(--hm-y);font:800 clamp(.9rem,2.4vh,1.2rem) Cairo,sans-serif;animation:mfIn .7s ease .2s both}.mf-tx h2{margin:6px 0 0;color:var(--hm-cream);font:800 clamp(1.4rem,5vh,2.8rem)/1.45 Cairo,sans-serif;animation:mfIn .8s ease .5s both}.mf-cast{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;animation:mfIn .8s ease 1s both}.mf-cast span{background:#E0533A;color:var(--hm-cream);font:800 clamp(.85rem,2.2vh,1.05rem) Cairo,sans-serif;padding:3px 12px}@keyframes mfIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}.mf-prog{display:flex;gap:6px;width:min(1180px,100%)}.mf-prog i{flex:1;height:6px;background:#5a465a}.mf-prog i.on{background:var(--hm-y)}.mf-btns{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}@media (prefers-reduced-motion:reduce){
.mf-holes,.mf-tile,.mf-tx small,.mf-tx h2,.mf-cast{animation:none}
}/* ===== الحارة: قناطر وفوانيس بتتمرجح، ظلال بتطلّ من الأبواب، وكاميرا بتمشي لجوّا ===== */#scene .hl{transform-box:fill-box;transform-origin:50% 0;animation:hlSw 3.6s ease-in-out infinite alternate}@keyframes hlSw{from{transform:rotate(-5deg)}to{transform:rotate(5deg)}}#scene .pkr{opacity:0;transform-box:fill-box;animation:pkPeek 16s ease-in-out infinite}@keyframes pkPeek{0%,40%{opacity:0;transform:translateX(8px)}48%,66%{opacity:1;transform:none}74%,100%{opacity:0;transform:translateX(8px)}}#scene[data-mood="day"] .pkr,#scene .pd.out .pkr,#scene.on-focus .pkr{display:none}body.ph-setup #scene .cam{animation:hmDolly 26s ease-in-out infinite alternate}@keyframes hmDolly{from{transform:scale(1)}to{transform:scale(1.12) translateY(1.2%)}}@media (max-width:700px){
body.ph-setup #scene .cam{animation:none}
}@media (prefers-reduced-motion:reduce){
#scene .hl,#scene .pkr,body.ph-setup #scene .cam{animation:none}#scene .pkr{opacity:0}
}/* بوابة «ادخل الحارة» */.hm-gate{gap:18px}.hm-gate .hm-gnote{margin:0;padding:4px 14px;background:#3a2b3b;color:#F6C453;font:800 clamp(13px,1.1vw,17px)/1.6 Cairo,sans-serif}#scene.s3.s3-enter .s3-tun{animation:s3enter 1.8s cubic-bezier(.5,0,.2,1)!important}@keyframes s3enter{from{transform:translateZ(-420px)}to{transform:translateZ(0)}}/* نهاية اللعبة: العنوان على لافتة معلّقة زي الشاشة الأولى (بدل الهالة الغامقة والتدرّج) */html body[data-edition="mafia"] .ph-end .hero.hm-sign h1{font-family:Cairo,sans-serif!important;font-weight:800!important;font-size:clamp(2rem,10vh,5rem)!important;white-space:nowrap}html body[data-edition="mafia"] .sc-open .hero.hm-sign::before{background:none;inset:7px}/* النوافذ (الإعدادات، القواعد، الأدوار): لون الحارة الغامق بدل الأسود، وزر إغلاق واضح بحجم يُكبس (كان زر رمادي صغير بدون تنسيق) */html body[data-edition="mafia"] .modal .box{background:#4a374a!important}html body .rs-x{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;background:#5a465a;color:#FFD23F;border:0;border-radius:0;padding:0;cursor:pointer;flex:none;margin-inline-start:auto}html body .rs-x .ic{width:22px;height:22px}html body .rs-x:hover,html body .rs-x:focus-visible{background:#FFD23F;color:#3a2b3b}/* «ألعابي»: عدد الألعاب غير المكتملة على الزر، وقائمة مرتبة: اسم السهرة، وتحته عدد اللاعبين والمرحلة والتاريخ */.dk .mg-n{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 6px;margin-inline-start:8px;background:#FFD23F;color:#3a2b3b;font:800 .85rem/1 Cairo,sans-serif;font-style:normal}html body .modal .mg{display:flex;flex-direction:column;gap:8px;margin:6px 0 12px;max-height:60vh;overflow:auto}/* اسم السهرة بغرفة الانتظار: تحت رمز الغرفة، وبالكبس عليه بيتغيّر */html body .sc-title{display:block;margin:6px auto 0;max-width:100%;padding:4px 14px;background:#5a465a;color:#F1E4C6;border:0;font:800 clamp(.9rem,1.2vw,1.15rem)/1.5 Cairo,sans-serif;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}html body .sc-title:hover,html body .sc-title:focus-visible{background:#FFD23F;color:#3a2b3b}html body .modal input.sname{width:100%;box-sizing:border-box;margin:6px 0 14px;padding:12px 14px;background:#3a2b3b;color:#F1E4C6;border:2px solid #FFD23F;border-radius:0;font:800 1.15rem Cairo,sans-serif;text-align:center}html body .modal input.sname:focus{outline:none;border-color:#F6C453}html body .sc-title{display:flex;align-items:center;justify-content:center;gap:8px}html body .sc-title svg{width:16px;height:16px;flex:none}html body .sc-title span{overflow:hidden;text-overflow:ellipsis}/* فرز الأصوات: ثلاث نقاط بتنبض بدل الأرقام */.sc-dots{display:flex;justify-content:center;gap:10px;margin-top:10px}.sc-dots i{width:14px;height:14px;background:#FFD23F;animation:scDot 1.2s ease-in-out infinite}.sc-dots i:nth-child(2){animation-delay:.2s}.sc-dots i:nth-child(3){animation-delay:.4s}@keyframes scDot{0%,100%{opacity:.25;transform:scale(.8)}50%{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){
.sc-dots i{animation:none;opacity:.8}
}/* ملء الشاشة: شريط الموقع بيطلع لفوق، وبيطلّ لما الماوس يقرّب منه */body.mf-full .bar{position:fixed!important;top:0;left:0;right:0;margin:0 auto;max-width:min(1240px,100%);box-sizing:border-box;padding-inline:16px;background:#3a2b3b;z-index:70;transform:translateY(-100%);transition:transform .35s cubic-bezier(.3,.8,.2,1)}body.mf-full.mf-peek .bar,body.mf-full .bar:hover,body.mf-full .bar:focus-within{transform:none}body.mf-full #jfoot,body.mf-full footer{display:none!important}#fsbtn .ic{width:20px;height:20px}/* ===== النوافذ بستايل الحارة (الإعدادات، كيف نلعب، ألعابي، شرح الدور) =====
   لافتة: إطار أصفر مزدوج وبراغي بالزوايا، أقسام على شرائط، وبتنزل وبتتمرجح لما تنفتح */html body[data-edition="mafia"] .modal .box,html body[data-edition="mafia"] .jm .jb{
  background:radial-gradient(circle at 16px 16px,#B08A3E 0 4px,transparent 5px),radial-gradient(circle at calc(100% - 16px) 16px,#B08A3E 0 4px,transparent 5px),radial-gradient(circle at 16px calc(100% - 16px),#B08A3E 0 4px,transparent 5px),radial-gradient(circle at calc(100% - 16px) calc(100% - 16px),#B08A3E 0 4px,transparent 5px),#4a374a!important;
  border:3px solid #FFD23F!important;outline:2px solid #FFD23F;outline-offset:-11px;border-radius:0!important;box-shadow:none!important;clip-path:none!important;
  padding:26px 28px;transform-origin:50% -40px;animation:jmSign .9s cubic-bezier(.2,.9,.25,1) both}@keyframes jmSign{0%{transform:translateY(-36px) rotate(-2.5deg);opacity:0}45%{opacity:1}65%{transform:rotate(1.2deg)}82%{transform:rotate(-.5deg)}100%{transform:none}}@media (prefers-reduced-motion:reduce){
html body[data-edition="mafia"] .modal .box,html body[data-edition="mafia"] .jm .jb{animation:none}
}html body[data-edition="mafia"] .modal{background:rgba(58,43,59,.82)}/* العنوان */html body[data-edition="mafia"] .jm .rs-n,html body[data-edition="mafia"] .modal .box>h2{font:800 1.7rem/1.25 Cairo,sans-serif;color:#FFD23F!important}html body[data-edition="mafia"] .jm .rs-i{width:52px;height:52px;border-radius:0;border:0;background:#FFD23F;color:#3a2b3b}html body[data-edition="mafia"] .jm .rs-i .ic{width:28px;height:28px}/* التبويبات: بلاطات */html body[data-edition="mafia"] .stabs{gap:6px;margin:14px 0 10px}html body[data-edition="mafia"] .stabs button{background:#5a465a;color:#F1E4C6;min-height:46px;border-bottom:4px solid #3a2b3b}html body[data-edition="mafia"] .stabs button.on{background:#FFD23F;color:#3a2b3b;border-bottom-color:#B08A3E}/* أسطر الإعدادات: شرائط */html body[data-edition="mafia"] .sbody{display:flex;flex-direction:column;gap:6px}html body[data-edition="mafia"] .sr{background:#5a465a;border:0!important;padding:10px 14px!important}html body[data-edition="mafia"] .sr>b{color:#F1E4C6;font-size:1.02rem}html body[data-edition="mafia"] .seg{gap:4px}html body[data-edition="mafia"] .seg button{background:#3a2b3b;color:#F1E4C6;min-height:40px}html body[data-edition="mafia"] .seg button.on{background:#FFD23F;color:#3a2b3b}html body[data-edition="mafia"] .sr .sc-need{color:#F6C453!important}html body[data-edition="mafia"] .rs-ok{min-height:50px;margin-top:14px}/* كيف نلعب */html body[data-edition="mafia"] .jm .ri{background:#5a465a;color:#F1E4C6;border:0;border-radius:0;margin-bottom:4px}html body[data-edition="mafia"] .jm .ri.on{background:#FFD23F!important;color:#3a2b3b!important}html body[data-edition="mafia"] .jm .rp h3{font:800 1.6rem/1.3 Cairo,sans-serif!important;color:#FFD23F}html body[data-edition="mafia"] .jm .rp p{background:#5a465a;padding:12px 16px;color:#F1E4C6}html body[data-edition="mafia"] .jm .rp-i{color:#FFD23F}/* الأدوار بالإعدادات: كل الأدوار، كل واحد ببلاطة */html body[data-edition="mafia"] .rt2{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}html body[data-edition="mafia"] .rt2-h{grid-column:1/-1;margin:8px 0 0;color:#F6C453;font:800 .95rem Cairo,sans-serif}html body[data-edition="mafia"] .rt2-i{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 8px 10px;background:#5a465a;color:#F1E4C6;border:0;border-radius:0;font-family:Cairo,sans-serif;text-align:center;cursor:default}html body[data-edition="mafia"] .rt2-i .rt2-t{width:54px;height:54px;display:flex;align-items:center;justify-content:center}html body[data-edition="mafia"] .rt2-i .rt2-t .ic{width:30px;height:30px}html body[data-edition="mafia"] .rt2-i .tm{background:#E0533A;color:#F1E4C6}html body[data-edition="mafia"] .rt2-i .tt{background:#F6C453;color:#3a2b3b}html body[data-edition="mafia"] .rt2-i .tj{background:#4D6B6E;color:#F1E4C6}html body[data-edition="mafia"] .rt2-i b{font-size:1rem;font-weight:800}html body[data-edition="mafia"] .rt2-i small{font-size:.8rem;font-weight:700;color:#F6C453;line-height:1.4}html body[data-edition="mafia"] .rt2-i.opt{cursor:pointer}html body[data-edition="mafia"] .rt2-i.opt small{background:#3a2b3b;padding:1px 10px}html body[data-edition="mafia"] .rt2-i.opt.on{background:#FFD23F;color:#3a2b3b}html body[data-edition="mafia"] .rt2-i.opt.on small{background:#3a2b3b;color:#FFD23F}html body[data-edition="mafia"] .rt2-i.opt:focus-visible{outline:3px solid #FFD23F;outline-offset:2px}/* زر «إعدادات اللعبة» بالشاشة الأولى: بيتمرجح ويطلع فوقه «اضبطها قبل اللعب» أول ما تدخل */@keyframes hmNudge{0%,100%{transform:none}12%{transform:translateY(-6px) rotate(-3deg)}24%{transform:translateY(0) rotate(2.5deg)}36%{transform:rotate(-1.5deg)}48%{transform:none}}html body[data-edition="mafia"] .ph-setup .dk.hm-nudge{animation:hmNudge 1.8s cubic-bezier(.3,.8,.3,1) .6s 2 both;overflow:visible;clip-path:none!important}html body[data-edition="mafia"] .ph-setup .dk .hm-tip{position:absolute;bottom:calc(100% + 12px);left:50%;transform:translateX(-50%);z-index:5;white-space:nowrap;background:#FFD23F;color:#3a2b3b;font:800 .95rem/1.6 Cairo,sans-serif;padding:4px 14px;pointer-events:none;animation:hmTip 6s ease .4s both}html body[data-edition="mafia"] .ph-setup .dk .hm-tip::after{content:"";position:absolute;top:100%;left:50%;transform:translateX(-50%);border:8px solid transparent;border-top-color:#FFD23F}@keyframes hmTip{0%{opacity:0;transform:translate(-50%,8px)}10%,85%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,-4px)}}@media (prefers-reduced-motion:reduce){
html body[data-edition="mafia"] .ph-setup .dk.hm-nudge,html body[data-edition="mafia"] .ph-setup .dk .hm-tip{animation:none}
}/* ===== وقت اللعب: بدون شريط فوق، عمود أدوات على الجنب، وشعار صغير بالزاوية ===== */body.mf-play .bar{display:none!important}body.mf-play #jfoot{display:none!important}#mlogo{position:fixed;top:12px;right:16px;z-index:60;pointer-events:none}#mlogo img{height:clamp(40px,6.5vh,70px);width:auto;display:block}#mrail{position:fixed;left:12px;top:50%;transform:translateY(-50%);z-index:65;display:flex;flex-direction:column;gap:6px}#mrail .rl-b{position:relative;width:clamp(38px,5.2vh,48px);height:clamp(38px,5.2vh,48px);display:flex;align-items:center;justify-content:center;background:#5a465a;color:#FFD23F;border:0;border-radius:0;padding:0;cursor:pointer}#mrail .rl-b .ic{width:52%;height:52%}#mrail .rl-b .rs-off{position:absolute;inset:0;margin:auto;width:70%;height:70%;color:#E0533A}#mrail .rl-b em{position:absolute;bottom:1px;left:0;right:0;font:800 9px/1 Cairo,sans-serif;font-style:normal;color:#F1E4C6;text-align:center}#mrail .rl-b:has(em) .ic{transform:translateY(-3px)}#mrail .rl-b.on{background:#FFD23F;color:#3a2b3b}#mrail .rl-b.x{background:#E0533A;color:#F1E4C6}#mrail .rl-b:hover,#mrail .rl-b:focus-visible{background:#FFD23F;color:#3a2b3b;outline:0}#mrail .rl-b::after{content:attr(data-l);position:absolute;left:calc(100% + 8px);top:50%;transform:translate(-6px,-50%);white-space:nowrap;background:#FFD23F;color:#3a2b3b;font:800 .9rem/1.6 Cairo,sans-serif;padding:3px 12px;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s}#mrail .rl-b:hover::after,#mrail .rl-b:focus-visible::after{opacity:1;transform:translate(0,-50%)}body.mf-play .wrap{padding-top:0!important}/* ===== الكروت ما بتغطي الحارة (كل مراحل اللعب ما عدا الانتظار والنهاية) =====
   فوق بالنص: لافتة صغيرة للمرحلة والعداد. تحت: جملة الراوي زي ترجمة الأفلام. والأزرار بزاوية صغيرة بتطلع عند الحاجة */body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .sc-c:has(.sc-b){position:relative;align-items:flex-start}body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .sc-b{display:block;width:100%;height:100%;perspective:none}body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .hang{width:min(430px,34vw);margin:0 auto}body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .hang-in{padding:clamp(6px,1.2vh,14px) clamp(12px,1.4vw,22px)}body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .hang .sc-t{font-size:clamp(1.2rem,3.6vh,2rem)!important}body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .hang .tm{font-size:clamp(2rem,7vh,3.6rem)!important}body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .wall{position:absolute;transform:none!important;padding:0}/* جملة الراوي: ترجمة تحت */body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .wr{left:50%;bottom:clamp(8px,2vh,20px);width:min(940px,78vw);transform:translateX(-50%)!important;justify-content:center}body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .wr .plq{background:rgba(58,43,59,.88)!important;clip-path:none!important;padding:clamp(6px,1.2vh,12px) clamp(14px,2vw,28px)!important;gap:8px}body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .wr .plq::before,body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .wr .plq::after{display:none}body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .wr .sc-say{font-size:clamp(1.05rem,3.2vh,1.75rem)!important;color:#F1E4C6;margin:0}/* حالة المرحلة والأزرار: زاوية صغيرة تحت (عكس الشعار)، والأزرار بتطلع عند الحاجة */body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .wl{left:12px;top:12px;bottom:auto;width:auto;max-width:min(340px,27vw);justify-content:flex-start}body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .wl .plq{background:#4a374a!important;clip-path:none!important;padding:8px 12px!important;align-items:flex-start;text-align:start;gap:6px}body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .wl .plq::before,body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .wl .plq::after{display:none}body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .wl .sc-big{font-size:clamp(1rem,2.6vh,1.4rem)!important}body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .wl .sc-mini{display:flex;flex-wrap:wrap;gap:4px;max-height:0;overflow:hidden;opacity:0;transition:max-height .3s,opacity .25s}body.mf-play.mf-act .stage.scn:not(.ph-lobby):not(.ph-end) .wl .sc-mini,body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .wl:focus-within .sc-mini{max-height:200px;opacity:1}body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .wl .sc-mini .btn{min-height:36px;font-size:.85rem!important;padding:0 10px!important;width:auto}@media (max-width:760px){
body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .hang{width:min(320px,46vw)}body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .wl{max-width:40vw}body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .wr{width:min(560px,62vw)}
}body.mf-play .jjbt{display:none!important}#mrail{top:auto;bottom:clamp(90px,16vh,190px);transform:none}@media (max-height:520px){
#mrail{gap:3px;top:6px;bottom:auto}#mrail .rl-b{width:26px;height:26px}body.mf-play .stage.scn .dock .pt{height:62px;justify-content:flex-start;padding-top:4px}
}/* ===== دفتر الراوي (كيف نلعب والأدوار): كتاب مفتوح بصفحتين، الفهرس يمين والشرح يسار، والصفحة بتنقلب ===== */html body[data-edition="mafia"] .jm .jb:has(.rules){max-width:1080px!important;background:#5a465a!important;border:0!important;outline:0;padding:14px 16px 18px!important;animation:bkOpen .7s cubic-bezier(.2,.9,.25,1) both}@keyframes bkOpen{from{transform:perspective(1400px) rotateY(-24deg) scale(.94);opacity:0}to{transform:none;opacity:1}}html body[data-edition="mafia"] .jm .rules .rd-h{display:flex;align-items:flex-end;gap:10px;margin-bottom:0}html body[data-edition="mafia"] .jm .rules .stabs{margin:0;gap:4px}html body[data-edition="mafia"] .jm .rules .stabs button{flex:0 0 auto;min-height:40px;padding:0 22px;background:#6A516D;color:#F1E4C6;border:0}html body[data-edition="mafia"] .jm .rules .stabs button.on{background:#EAD9B5;color:#5a465a}html body[data-edition="mafia"] .jm .rules .rs-x{background:#6A516D;color:#F1E4C6}html body[data-edition="mafia"] .jm .rules .rdr{position:relative;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:0;background:#EAD9B5 repeating-linear-gradient(transparent 0 33px,#D9C49B 33px 34px);min-height:min(66vh,560px);max-height:72vh}html body[data-edition="mafia"] .jm .rules .rdr::after{content:"";position:absolute;top:0;bottom:0;left:calc(57.5% - 3px);width:6px;background:#C9B07E}html body[data-edition="mafia"] .jm .rules .rd-i{padding:18px 22px;overflow:auto;counter-reset:rk;border:0;background:none}html body[data-edition="mafia"] .jm .rules .ri:not(.rtile){counter-increment:rk;display:flex;align-items:center;gap:10px;width:100%;min-height:34px;margin:0;padding:0 6px;background:none;color:#5a465a!important;border:0;border-bottom:2px dotted #B99D6C;font:800 1rem Cairo,sans-serif;text-align:start}html body[data-edition="mafia"] .jm .rules .ri:not(.rtile)::before{content:counter(rk);min-width:24px;color:#8E7A92;font-weight:800}html body[data-edition="mafia"] .jm .rules .ri:not(.rtile) .ri-i{color:#6A516D}html body[data-edition="mafia"] .jm .rules .ri:not(.rtile):hover{background:#E1CC9E!important}html body[data-edition="mafia"] .jm .rules .ri:not(.rtile).on{background:#F6C453!important;color:#3a2b3b!important}html body[data-edition="mafia"] .jm .rules [data-rl="roles"] h4{color:#6A516D}html body[data-edition="mafia"] .jm .rules .rd-p{padding:22px 30px;overflow:auto;perspective:1600px}html body[data-edition="mafia"] .jm .rules .rp{color:#4a374a}html body[data-edition="mafia"] .jm .rules .rp:not([hidden]){transform-origin:100% 50%;animation:pgTurn .55s cubic-bezier(.3,.8,.25,1) both}@keyframes pgTurn{from{transform:rotateY(-70deg);opacity:0}to{transform:none;opacity:1}}html body[data-edition="mafia"] .jm .rules .rp h3{color:#5a465a!important;font:800 1.9rem/1.3 Cairo,sans-serif!important;margin:6px 0 6px}html body[data-edition="mafia"] .jm .rules .rp small{display:inline-block;background:#5a465a;color:#F6C453;padding:0 10px;font-weight:800}html body[data-edition="mafia"] .jm .rules .rp p{background:none;padding:0;color:#4a374a!important;font-size:1.1rem;line-height:34px;margin-top:6px}html body[data-edition="mafia"] .jm .rules .rp-i{color:#6A516D}html body[data-edition="mafia"] .jm .rules .rp-i .ic{width:56px;height:56px}@media (max-width:760px){
html body[data-edition="mafia"] .jm .rules .rdr{grid-template-columns:1fr;max-height:76vh}html body[data-edition="mafia"] .jm .rules .rdr::after{display:none}html body[data-edition="mafia"] .jm .rules .rd-i{max-height:30vh;border-bottom:4px solid #C9B07E}
}@media (prefers-reduced-motion:reduce){
html body[data-edition="mafia"] .jm .rules .rp:not([hidden]),html body[data-edition="mafia"] .jm .jb:has(.rules){animation:none}
}/* ===== لوحة مفاتيح الحارة (الإعدادات): لوح حديد بلون الأبواب، وكل إعداد مفتاح بيطقطق ===== */html body[data-edition="mafia"] .jm .jb:has(.setpanel){background:radial-gradient(circle at 16px 16px,#2F4448 0 5px,transparent 6px),radial-gradient(circle at calc(100% - 16px) 16px,#2F4448 0 5px,transparent 6px),radial-gradient(circle at 16px calc(100% - 16px),#2F4448 0 5px,transparent 6px),radial-gradient(circle at calc(100% - 16px) calc(100% - 16px),#2F4448 0 5px,transparent 6px),#3F5C60!important;border:4px solid #2F4448!important;outline:0}html body[data-edition="mafia"] .jm .jb:has(.setpanel) .rs-n{background:#FFD23F;color:#3a2b3b!important;padding:2px 16px;display:inline-block}html body[data-edition="mafia"] .jm .jb:has(.setpanel) .rs-i{background:#2F4448;color:#FFD23F}html body[data-edition="mafia"] .jm .jb:has(.setpanel) .rs-x{background:#2F4448;color:#F1E4C6}html body[data-edition="mafia"] .setpanel .stabs button{background:#2F4448;color:#F1E4C6;border-bottom:4px solid #24363A}html body[data-edition="mafia"] .setpanel .stabs button.on{background:#F1E4C6;color:#2F4448;border-bottom-color:#C9B07E}html body[data-edition="mafia"] .setpanel .sr{background:#2F4448!important}html body[data-edition="mafia"] .setpanel .sr>b{display:flex;align-items:center;gap:10px}html body[data-edition="mafia"] .setpanel .sr>b::before{content:"";width:10px;height:10px;border-radius:50%;background:#F6C453;flex:none}html body[data-edition="mafia"] .setpanel .seg{background:#3a2b3b;padding:4px;gap:4px}html body[data-edition="mafia"] .setpanel .seg button{position:relative;background:#24363A;color:#F1E4C6;border-bottom:4px solid #1A282B;transition:transform .08s,background .15s}html body[data-edition="mafia"] .setpanel .seg button.on{background:#FFD23F;color:#3a2b3b;border-bottom-color:#B08A3E;transform:translateY(2px)}html body[data-edition="mafia"] .setpanel .seg button:active{transform:translateY(3px)}html body[data-edition="mafia"] .setpanel .stp button{background:#24363A!important;border-bottom:4px solid #1A282B!important}html body[data-edition="mafia"] .setpanel .rt2-i{background:#2F4448}html body[data-edition="mafia"] .setpanel .rt2-i.opt.on{background:#FFD23F}html body[data-edition="mafia"] .jm .jb:has(.setpanel) .rs-ok{background:#FFD23F!important;color:#3a2b3b!important}/* ===== أرشيف السهرات (ألعابي): كل سهرة ملف بلسانه فوق ===== */html body[data-edition="mafia"] .modal .box:has(.arch){max-width:760px;width:min(760px,94vw)}html body[data-edition="mafia"] .arch .ar-h{display:flex;align-items:center;gap:14px;margin-bottom:16px}html body[data-edition="mafia"] .arch .ar-h h2{margin:0;color:#FFD23F;font:800 1.7rem/1.2 Cairo,sans-serif}html body[data-edition="mafia"] .arch .ar-h small{color:#F1E4C6;font-weight:600}html body[data-edition="mafia"] .arch .ar-i{width:52px;height:52px;display:flex;align-items:center;justify-content:center;background:#FFD23F;color:#3a2b3b;flex:none}html body[data-edition="mafia"] .arch .ar-i .ic{width:28px;height:28px}html body[data-edition="mafia"] .arch .ar-g{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px 14px;max-height:62vh;overflow:auto;padding-top:22px}html body[data-edition="mafia"] .arch .ar-f{position:relative;background:#E3C98F;color:#4a374a;animation:arIn .5s cubic-bezier(.3,1.2,.5,1) var(--d) both}@keyframes arIn{from{transform:translateY(14px);opacity:0}to{transform:none;opacity:1}}html body[data-edition="mafia"] .arch .ar-tab{position:absolute;bottom:100%;inset-inline-start:0;max-width:85%;background:#E3C98F;color:#4a374a;font:800 1.05rem/1.5 Cairo,sans-serif;padding:4px 16px 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;clip-path:polygon(0 0,calc(100% - 14px) 0,100% 100%,0 100%)}html body[data-edition="mafia"] .arch .ar-in{padding:14px 16px;display:flex;flex-direction:column;gap:12px;border-top:3px solid #C9AE72}html body[data-edition="mafia"] .arch .ar-m{display:flex;flex-wrap:wrap;gap:6px 14px;font-weight:600;font-size:.95rem}html body[data-edition="mafia"] .arch .ar-m b{color:#5a465a;font-weight:800}html body[data-edition="mafia"] .arch .ar-b{display:flex;gap:6px;flex-wrap:wrap}html body[data-edition="mafia"] .arch .ar-b .btn{width:auto;min-height:40px;padding:0 14px;font-size:.92rem}html body[data-edition="mafia"] .arch .ar-b .btn.alt{background:#5a465a!important;color:#F1E4C6!important}html body[data-edition="mafia"] .arch .ar-e{background:#5a465a;color:#F1E4C6;padding:14px 16px;margin:0}@media (prefers-reduced-motion:reduce){
html body[data-edition="mafia"] .arch .ar-f{animation:none}
}/* ===== لافتة وحدة وقت اللعب ===== */body.mf-play .stage.scn .sc-b.one .wl{display:none}body.mf-play .stage.scn .sc-b.one .sc-st{display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:2px;padding-top:6px;border-top:2px solid #5a465a;width:100%}body.mf-play .stage.scn .sc-b.one .sc-st .sc-big,body.mf-play .stage.scn .sc-b.one .sc-st .sc-count,body.mf-play .stage.scn .sc-b.one .sc-st .sc-now{font-size:clamp(.9rem,2.2vh,1.2rem)!important;color:#F6C453}body.mf-play .stage.scn .sc-b.one .sc-st .sc-need{font-size:.8rem;color:#F1E4C6}body.mf-play .stage.scn .sc-b.one .sc-st .sc-mini{display:none}/* جملة الراوي: بس وهو بيحكي */body.mf-play .stage.scn .sc-b.one .wr{transition:opacity .4s}body.mf-play.mf-voice:not(.speaking) .stage.scn .sc-b.one .wr .sc-say{display:none}body.mf-play.mf-voice:not(.speaking) .stage.scn .sc-b.one .wr:not(:has(.res,.clue)){opacity:0;pointer-events:none}/* أزرار المضيف بالعمود */#mrail .rl-b.hb{background:#FFD23F;color:#3a2b3b}#mrail .rl-b.hb:hover{background:#F1E4C6}/* صحيفة البلد: ورق رملي، وأوطى من اللافتة */#mpaper{background:#E3C98F!important;top:max(150px,24vh)!important}/* ===== بدون شريط اللاعبين وقت اللعب: الأسماء على يافطات الأبواب، والحالة بالشبابيك ===== */body.mf-play:has(#scene.s3d) .stage.scn:not(.ph-lobby):not(.ph-end) .dock{display:none!important}/* الحارة المسطحة (أجهزة بلا WebGL): شريط اللاعبين يرجع، بزجاج مغبّش بدل الخلفية الداكنة */body.mf-play .stage.scn .dock::before{background:rgba(58,43,59,.55);-webkit-backdrop-filter:blur(10px) saturate(1.1);backdrop-filter:blur(10px) saturate(1.1)}body.mf-play .stage.scn .dock .pt{background:rgba(90,70,90,.72)}#scene.s3d{background:#5a465a}#scene.s3d .s3d-cv{position:absolute;inset:0;width:100%!important;height:100%!important;display:block}#scene.s3d .s3-tag{position:absolute;left:50%;bottom:calc(10vh + 24px);transform:translateX(-50%);display:flex;align-items:stretch;opacity:0;pointer-events:none;transition:opacity .5s 1.4s;z-index:2}#scene.s3d .s3-tag.on{opacity:1}#scene.s3d .s3-tag b{min-width:1.6em;padding:2px 16px;background:#FFD23F;color:#3a2b3b;border:5px solid #3a2b3b;font:800 clamp(40px,5vw,84px)/1.05 Cairo,sans-serif;text-align:center}#scene.s3d .s3-tag span{display:flex;align-items:center;max-width:30vw;padding:4px 22px;background:#3a2b3b;color:#FFD23F;font:800 clamp(20px,2.2vw,36px)/1.4 Cairo,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#scene.s3d .s3-tag span:empty{display:none}/* مراجعة الموقع الحي */#scene.s3d .s3-tag{display:none!important}/* بالحارة الثلاثية اليافطة على الباب بتكفي */body.mf-play .stage.scn .sc-b.one .sc-vc{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 12px;margin-top:4px;color:#F1E4C6;font-weight:800;font-size:clamp(.85rem,2vh,1.1rem)}body.mf-play .stage.scn .sc-b.one .sc-vc small{width:100%;text-align:center;color:#F6C453;font-size:.8em}body.mf-play .stage.scn .sc-b.one .sc-vc b{color:#FFD23F}html body[data-edition="mafia"] .qr{background:#F1E4C6}html body[data-edition="mafia"] .qr svg rect[fill="#fff"]{fill:#F1E4C6}html body[data-edition="mafia"] .arch .ar-all{display:flex;justify-content:flex-end;margin-top:12px}html body[data-edition="mafia"] .arch .ar-all .btn{width:auto;min-height:38px;padding:0 14px;font-size:.88rem}/* غرفة الانتظار بلافتة وحدة */body.mf-play .stage.scn.ph-lobby .sc-c:has(.sc-b){position:relative;align-items:flex-start}body.mf-play .stage.scn.ph-lobby .sc-b.lob{display:block;width:100%;perspective:none}body.mf-play .stage.scn.ph-lobby .sc-b.lob .hang{width:min(400px,34vw);margin:0 auto}body.mf-play .stage.scn.ph-lobby .sc-b.lob .hang .qr{width:clamp(110px,26vh,230px)!important}body.mf-play .stage.scn.ph-lobby .sc-b.lob .sc-st{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;margin-top:4px;padding-top:8px;border-top:2px solid #5a465a}body.mf-play .stage.scn.ph-lobby .sc-b.lob .sc-st .sc-big{font-size:clamp(1.1rem,3vh,1.6rem)!important;color:#FFD23F}body.mf-play .stage.scn.ph-lobby .sc-b.lob .sc-st .sc-go{width:100%;min-height:clamp(42px,6.5vh,60px);font-size:clamp(1rem,2.6vh,1.3rem)}#mrail .rl-b.hb.lb{background:#5a465a;color:#FFD23F}#mrail .rl-b.hb.lb:hover{background:#FFD23F;color:#3a2b3b}/* ===== الشاشة الأولى مرتّبة: لافتة وزر بنفس العرض، وكل إشي ثاني صغير وهادي تحتهم ===== */html body[data-edition="mafia"] .ph-setup{--hw:min(500px,58vw)}html body[data-edition="mafia"] .ph-setup .sc-open{gap:clamp(8px,2vh,20px);width:var(--hw)!important;justify-content:center}html body[data-edition="mafia"] .ph-setup .hm-hang{width:100%;padding-top:clamp(14px,4vh,44px)}html body[data-edition="mafia"] .ph-setup .hero.hm-sign{width:100%;box-sizing:border-box;padding:clamp(12px,2.6vh,28px) clamp(18px,3vw,40px) clamp(14px,3vh,30px)!important;display:flex;flex-direction:column;align-items:center}html body[data-edition="mafia"] .ph-setup .hero.hm-sign h1{font-size:clamp(2.2rem,11vh,5.8rem)!important;line-height:1.15!important}html body[data-edition="mafia"] .ph-setup .hero.hm-sign p{position:relative;margin:clamp(6px,1.4vh,14px) 0 0!important;font-size:clamp(.85rem,2.4vh,1.25rem)!important;line-height:1.5}html body[data-edition="mafia"] .ph-setup .btn.sc-go.hm-plq{width:100%!important;box-sizing:border-box;min-height:clamp(46px,8vh,72px)!important;font-size:clamp(1rem,3vh,1.5rem)!important;justify-content:center}html body[data-edition="mafia"] .ph-setup .hm-gnote{background:none!important;padding:0!important;color:#F1E4C6!important;font-size:clamp(.78rem,2vh,1rem)!important;opacity:.85}html body[data-edition="mafia"] .ph-setup .hm-bal{margin:0!important;gap:8px;align-items:center;flex-wrap:nowrap}html body[data-edition="mafia"] .ph-setup .hm-bal .sub{font-size:clamp(.78rem,2vh,.95rem)!important;color:#F1E4C6}html body[data-edition="mafia"] .ph-setup .hm-bal .btn{min-height:32px!important;padding:0 12px;font-size:clamp(.75rem,1.9vh,.9rem)!important;width:auto!important}@media (max-height:520px){
html body[data-edition="mafia"] .ph-setup{--hw:min(380px,50vw)}html body[data-edition="mafia"] .ph-setup .hm-hang{padding-top:10px}
}/* ===== لوحات اللعب شفافة (زجاج غبش)، والكتابة واضحة فوقها ===== */body.mf-play .stage.scn .sc-b.one .hang-in,body.mf-play .stage.scn .sc-b.one .wr .plq{background:rgba(58,43,59,.55)!important;-webkit-backdrop-filter:blur(10px) saturate(1.1);backdrop-filter:blur(10px) saturate(1.1)}body.mf-play .stage.scn .sc-b.one .hang::before{border-color:rgba(58,43,59,.7)}body.mf-play .stage.scn .sc-b.one .hang-in .sc-t,body.mf-play .stage.scn .sc-b.one .hang-in .tm{color:#FFD23F!important}body.mf-play .stage.scn .sc-b.one .hang-in .sc-st{border-top-color:rgba(241,228,198,.25)!important}body.mf-play .stage.scn .sc-b.one .wr .sc-say{color:#FFF6DE!important}#mrail .rl-b:not(.hb):not(.x){background:rgba(90,70,90,.6);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}/* الأجهزة الضعيفة: بدون غبش، ولوحة أغمق شوي عشان الكتابة تضل واضحة */#scene.s3-lite~.wrap .sc-b.one .hang-in,#scene.s3-lite~.wrap .sc-b.one .wr .plq{background:rgba(58,43,59,.78)!important;-webkit-backdrop-filter:none;backdrop-filter:none}html body[data-edition="mafia"] .ph-setup .hm-gnote{background:rgba(58,43,59,.55)!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);padding:3px 14px!important;opacity:1}/* بالإنجليزي: العدّاد يُقرأ من اليسار (5 of 10 بدل of 10 5) */html[lang=en] .sc-count,html[lang=en] .sc-need,html[lang=en] .sc-vc{direction:ltr;unicode-bidi:isolate}/* خط عناوين اليافطة: Amiri (نسخ حاد قريب من Lyon Arabic). النص الصغير والراوي بيضلوا Cairo */@font-face{font-family:"Amiri";src:url(fonts/Amiri-700.woff2) format("woff2");font-weight:700;font-display:swap}html body .stage.scn .sc-b .sc-t,html body .sc-title span{font-family:"Amiri",Cairo,serif!important;font-weight:700!important;letter-spacing:0!important}html body .stage.scn .sc-b .sc-t{line-height:1.25!important}/* Amiri أصغر بصرياً من Cairo بنفس الحجم، فنكبّره */body.mf-play .stage.scn .sc-b.one .hang .sc-t{font-size:clamp(1.7rem,5.2vh,2.9rem)!important}html body .sc-title span{font-size:1.2em}/* الشريط الجانبي بعيد عن سماعة/نوتش الآيفون بالعرض */#mrail{left:max(12px,calc(env(safe-area-inset-left,0px) + 6px))}/* الشاشات القصيرة (جوال بالعرض): شريط اللاعبين صف واحد بيتمرر بالعرض، عشان ما يغطي زر «وزّع الأدوار» وما تنزل الصفحة */@media (max-height:520px){
body.mf-play .stage.scn .dock,body.mf-play .stage.scn .dock.many{flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;justify-content:flex-start;scrollbar-width:none;padding-inline:max(8px,env(safe-area-inset-right,0px)) max(8px,calc(env(safe-area-inset-left,0px) + 44px));padding-block:4px}body.mf-play .stage.scn .dock::-webkit-scrollbar{display:none}body.mf-play .stage.scn .dock .pt,body.mf-play .stage.scn .dock.many .pt{flex:0 0 72px;max-width:72px!important;height:54px!important;padding-top:3px}
}/* الجوال بالعرض وقت اللعب: بدون فوتر تحت اللعبة، فما في تمرير للصفحة */html body.mf-play footer#jfoot#jfoot:not(#_):not(#__){display:none!important}/* نتائج الصبح والتصويت داخل اليافطة: أسطر خفيفة على الزجاج بدل كروت حمرا ضخمة بتغطي الأبواب والأسماء */body.mf-play .stage.scn .sc-b.one .res:not(.clue){background:transparent!important;clip-path:none!important;color:#F1E4C6!important;padding:3px 6px;font-size:clamp(1rem,2.6vh,1.45rem)!important;line-height:1.35;border-top:1px solid rgba(241,228,198,.18)!important}body.mf-play .stage.scn .sc-b.one .res:not(.clue):first-of-type{border-top:0!important}body.mf-play .stage.scn .sc-b.one .res.bad{color:#F08A6E!important}body.mf-play .stage.scn .sc-b.one .res.good{color:#8BD6A2!important}body.mf-play .stage.scn .sc-b.one .res:not(.clue) small{display:block;color:#F6C453!important;font-size:.68em;margin-top:0}/* وقفة التشويق (النقاط): بدون مربع أسود */body.mf-play .stage.scn .sc-b.one .res:has(.sc-dots){border:0!important;padding:2px!important}body.mf-play .stage.scn .sc-b.one .sc-dots i{width:11px;height:11px}/* لما الكاميرا تقرّب على باب: اليافطة بتصغر وبتطلع لفوق، عشان الباب ويافطته يبانوا كاملين */body.mf-play .stage.scn:not(.ph-lobby):not(.ph-end) .hang{transition:transform .7s cubic-bezier(.3,.9,.3,1)}body.mf-play:has(#scene.on-focus) .stage.scn:not(.ph-lobby):not(.ph-end) .hang{transform:translateX(calc(50vw - 50% - 150px)) scale(.56);transform-origin:100% 0}body.mf-play .stage.scn .sc-b.one .res.susp{border:0!important;padding:6px!important;min-height:0!important;display:flex;justify-content:center;gap:12px}body.mf-play .stage.scn .sc-b.one .res.susp i{width:12px!important;height:12px!important;background:#F6C453;border-radius:0}/* أثر الليلة داخل اليافطة: سطر واضح على الزجاج (العنوان أصفر صغير، والجملة كبيرة بلون فاتح) بدل مربع أصفر بكلام باهت */body.mf-play .stage.scn .sc-b.one .res.clue{background:transparent!important;clip-path:none!important;border-top:2px solid #FFD23F!important;padding:8px 8px 4px!important;margin-top:6px}body.mf-play .stage.scn .sc-b.one .res.clue b{color:#FFD23F!important;opacity:1!important;font-size:clamp(.9rem,2.2vh,1.15rem)!important}body.mf-play .stage.scn .sc-b.one .res.clue small{color:#F1E4C6!important;opacity:1!important;font-weight:800;font-size:clamp(1.1rem,3vh,1.7rem)!important;line-height:1.5}/* عنوان اليافطة (Amiri) بنص المسافة بين الشريطين: الخط إله رؤوس حروف عالية، فبنعطيه نفَس فوق وتحت */body.mf-play .stage.scn .sc-b.one .hang .sc-t{line-height:1.5!important;padding-top:.12em!important;margin-top:0!important;margin-bottom:.05em!important}

/* وقت التقريب على باب: اليافطة بتصغر وبتنزلق للزاوية اللي فوق على اليمين (جنب اللوغو)، والباب ويافطته بنص الشاشة. على الجوال بالعرض أصغر */
@media (max-height:520px){body.mf-play:has(#scene.on-focus) .stage.scn:not(.ph-lobby):not(.ph-end) .hang{transform:translateX(calc(50vw - 50% - 70px)) scale(.5)}}
/* عبارة الحارة فوق البوابة بآخر الحارة */@font-face{font-family:'Aref Ruqaa';src:url(fonts/ArefRuqaa-700-ar.woff2) format('woff2');font-weight:700;font-display:swap}#scene.s3 .s3-mural{position:absolute;left:0;right:0;bottom:360px;margin:0;text-align:center;font:700 118px/1.15 'Aref Ruqaa',Cairo,serif;color:rgba(241,228,198,.82);pointer-events:none}#scene.s3 .s3-mural span{display:block;font-size:92px;color:rgba(246,196,83,.85)}#scene.s3[data-mood="day"] .s3-mural{color:rgba(63,92,96,.8)}#scene.s3[data-mood="day"] .s3-mural span{color:rgba(140,90,40,.8)}
/* زلمة المافيا المرسوم بالوضع الخفيف: رجلين وإيدين بيتحركوا بالمشي، والإيد اليمين بتدق ع الباب */#scene.s3 .s3-fig .wk{fill:none}#scene.s3 .s3-fig.mv svg{animation:s3bob .3s ease-in-out infinite alternate}#scene.s3 .s3-fig .lg{transform-box:fill-box;transform-origin:50% 0}#scene.s3 .s3-fig .ar{transform-box:fill-box;transform-origin:50% 4%}#scene.s3 .s3-fig.mv .lgL,#scene.s3 .s3-fig.mv .arR{animation:s3swA .6s ease-in-out infinite alternate}#scene.s3 .s3-fig.mv .lgR,#scene.s3 .s3-fig.mv .arL{animation:s3swB .6s ease-in-out infinite alternate}@keyframes s3swA{from{transform:rotate(-9deg)}to{transform:rotate(9deg)}}@keyframes s3swB{from{transform:rotate(9deg)}to{transform:rotate(-9deg)}}#scene.s3 .s3-fig.kn .arR{animation:s3knk .28s ease-in-out 4}@keyframes s3knk{0%,100%{transform:rotate(-120deg)}50%{transform:rotate(-150deg)}}@media (prefers-reduced-motion:reduce){#scene.s3 .s3-fig *{animation:none!important}}
/* صحيفة البلد: لما تنزل، يافطة المرحلة بتختفي تحتها، فما في تداخل. وبترجع بعد ما الصحيفة تطلع */body.mf-play .stage.scn .hang{transition:opacity .45s,transform .7s cubic-bezier(.3,.8,.25,1)}body:has(#mpaper.in) .stage.scn .hang{opacity:0}
/* فرز الأصوات: أوراق بتنزل بصندوق الاقتراع (بدون أي أعداد) */.sc-urn{position:relative;width:150px;height:150px;margin:10px auto 0}.sc-urn b{position:absolute;left:15px;right:15px;bottom:0;height:78px;background:#3F5C60;border:5px solid #3a2b3b;box-sizing:border-box}.sc-urn b u{position:absolute;left:22%;right:22%;top:-5px;height:7px;background:#3a2b3b}.sc-urn i{position:absolute;left:50%;top:0;width:44px;height:30px;margin-left:-22px;background:#F1E4C6;border:3px solid #3a2b3b;box-sizing:border-box;opacity:0;animation:urnp 1.5s ease-in infinite}.sc-urn i:nth-child(1){--x:-46px;--r:-16deg}.sc-urn i:nth-child(2){--x:38px;--r:12deg;animation-delay:.3s}.sc-urn i:nth-child(3){--x:-20px;--r:8deg;animation-delay:.6s}.sc-urn i:nth-child(4){--x:52px;--r:-10deg;animation-delay:.9s}.sc-urn i:nth-child(5){--x:-58px;--r:18deg;animation-delay:1.2s}@keyframes urnp{0%{opacity:0;transform:translate(var(--x,0),-46px) rotate(var(--r,-14deg))}15%{opacity:1}75%{opacity:1;transform:translate(0,58px) rotate(0)}100%{opacity:0;transform:translate(0,74px) scaleY(.2)}}@media (prefers-reduced-motion:reduce){.sc-urn i{animation:none;opacity:1;transform:translate(0,40px)}}

/* اسم الغرفة فاضي: خانة واضحة إنها للكتابة */html body .sc-title.empty{background:transparent;border:2px dashed #F6C453;color:#F6C453}html body .sc-title.empty span{font-family:Cairo,sans-serif!important;font-weight:700!important}
html body .modal .sname.bad{outline:2px solid #E0533A}html body .modal .sname-err{color:#F08A6E;font:700 .9rem/1.4 Cairo,sans-serif;margin:6px 0 0;text-align:center}
/* نهاية لعبة التجربة المجانية */html body .tr-end{display:flex;flex-direction:column;align-items:center;gap:6px;margin:10px auto 4px;padding:12px 22px;background:rgba(47,111,115,.94);border-radius:12px;color:#F2E6CB;font-family:Cairo,sans-serif;text-align:center;max-width:min(520px,90vw)}html body .tr-end b{color:#F6C453;font:800 clamp(1.05rem,2.8vh,1.5rem)/1.4 Cairo,sans-serif}html body .tr-end span{font:600 clamp(.9rem,2.1vh,1.1rem)/1.6 Cairo,sans-serif}html body .tr-end .btn{margin-top:6px}

/* الصف الثابت تحت فاضي: ما بيبين كشريط غامق أسفل الشاشة على الجوال (26/11) */
html body[data-edition="mafia"] .dock:empty,html body .dock:empty{display:none!important}
/* زر «إعدادات اللعبة» بيضل ينبض لحد ما ينفتح (26/11): نبضة حجم خفيفة بدون ضو ولا ظل */
@keyframes hmNudge2{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
html body[data-edition="mafia"] .ph-setup .dk.hm-nudge{animation:hmNudge2 1.25s ease-in-out infinite!important}
@media (prefers-reduced-motion:reduce){html body[data-edition="mafia"] .ph-setup .dk.hm-nudge{animation:none!important}}
/* جوّا المتصفحات الداخلية الموقع ملفوف بإطار، والنوتش على الجنب مش فوق: بدون فراغ النوتش فوق الشريط (26/11) */
html.jjrot body .wrap,html.jjrot body[data-edition="mafia"] .wrap{padding-top:16px!important}
