/* الشريط العلوي الموحّد: قائمة «الألعاب» + إنستغرام (+ «عندي كود» بالرئيسية) — بكل الصفحات */
html body header nav .hgm.hgm.hgm{position:relative!important;display:flex!important;align-items:center!important;flex:none!important}
html body header nav .hgm.hgm.hgm .hgmb{display:inline-flex!important;align-items:center!important;gap:8px!important;background:none!important;border:0!important;padding:4px 0!important;margin:0!important;cursor:pointer;font:600 clamp(1.05rem,1.55vw,1.75rem)/1.2 Cairo,Tahoma,sans-serif!important;color:#1f1b16!important;box-shadow:none!important;white-space:nowrap}
html body header.top.jhd nav .hgm.hgm.hgm .hgmb{font:600 clamp(15px,calc(1.46vw + 1px),32px)/1.2 Cairo,Tahoma,sans-serif!important}
html body header nav .hgm.hgm.hgm .hgmb svg{width:.62em;height:.42em;transition:transform .2s}
html body header nav .hgm.hgm.hgm .hgmb[aria-expanded=true] svg{transform:rotate(180deg)}
html body header nav .hgm.hgm.hgm .hgmb:focus-visible{outline:3px solid #1f1b16;outline-offset:4px;border-radius:6px}
html body header nav .hgm.hgm.hgm .hgmp{position:absolute!important;top:calc(100% + 34px)!important;right:-10px!important;left:auto!important;transform:none!important;width:290px!important;background:#fff!important;border:2px solid #e6e0d2!important;border-radius:20px!important;padding:8px!important;z-index:200!important;display:flex!important;flex-direction:column!important;gap:2px!important;box-shadow:none!important;margin:0!important}
html body header nav .hgm.hgm.hgm .hgmp[hidden]{display:none!important}
html body header nav .hgm.hgm.hgm .hgmp a{display:flex!important;align-items:center!important;gap:12px!important;padding:8px!important;margin:0!important;border-radius:14px!important;text-decoration:none!important;color:#1f1b16!important;font:inherit!important;background:transparent!important;height:auto!important;white-space:normal!important}
html body header nav .hgm.hgm.hgm .hgmp a::after,html body header nav .hgm.hgm.hgm .hgmp a::before{display:none!important}
html body header nav .hgm.hgm.hgm .hgmp a:hover,html body header nav .hgm.hgm.hgm .hgmp a:focus-visible{background:#F4F3F0!important;outline:0;text-decoration:none!important}
html body header nav .hgm.hgm.hgm .hgmp a span{display:flex!important;flex-direction:column!important;gap:2px!important;text-align:start!important}
html body header nav .hgm.hgm.hgm .hgmp a b{font:700 1rem/1.25 Cairo,Tahoma,sans-serif!important;color:#1f1b16!important}
html body header nav .hgm.hgm.hgm .hgmp a small{font:600 .8rem/1.25 Cairo,Tahoma,sans-serif!important;color:#6b6459!important}
html body header nav .hgm.hgm.hgm .hgmp .mt{flex:none!important;width:58px!important;height:48px!important;border-radius:12px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;font-style:normal!important;overflow:hidden!important}
html body header nav .hgm.hgm.hgm .hgmp .mt img{display:block!important;height:auto!important;max-height:none!important}
html body header nav .hgm.hgm.hgm .hgmp .mt-jj{background:#e8432f!important}
html body header nav .hgm.hgm.hgm .hgmp .mt-jj img{width:74%!important}
html body header nav .hgm.hgm.hgm .hgmp .mt-mf{background:#1f1b16!important}
html body header nav .hgm.hgm.hgm .hgmp .mt-ev{background:#6a35d6!important}
html body header nav .hgm.hgm.hgm .hgmp .mt-mf img:first-child,html body header nav .hgm.hgm.hgm .hgmp .mt-ev img{width:46%!important}
html body header nav .hgm.hgm.hgm .hgmp .mt-mf img+img{width:84%!important}
html body header nav .hgm.hgm.hgm .hgmp .mt em{font:800 .6rem/1 Cairo,Tahoma,sans-serif!important;color:#fff!important;letter-spacing:.04em;font-style:normal!important}
/* الترتيب بشريط الصفحات الرئيسية: العملة/اللغة، ثم الألعاب، ثم الروابط */
html body header:not(.jhd) nav .hgm.hgm.hgm{order:1!important}
html body header:not(.jhd) nav a.nl{order:2!important}
html body header:not(.jhd) nav span.hsoc.hsoc{order:3!important}
/* إنستغرام: على الشاشات الكبيرة بس، واليوتيوب مخفي بالشريط */
html body header nav span.hsoc.hsoc{display:none!important}
@media (hover:hover) and (min-width:901px) and (min-height:561px){
html body header nav span.hsoc.hsoc{display:inline-flex!important;align-items:center;margin:0!important;flex:none}
html body header nav span.hsoc.hsoc a.soc[data-ch]{display:none!important}
html body header nav span.hsoc.hsoc a.soc{display:inline-flex!important;align-items:center;justify-content:center;width:40px!important;height:40px!important;border-radius:50%!important;border:2px solid #1f1b16!important;background:transparent!important;color:#1f1b16!important;transform:none!important;text-decoration:none!important;padding:0!important}
html body header nav span.hsoc.hsoc a.soc:hover{background:#f8bf4f!important;color:#1f1b16!important;transform:none!important}
html body header nav span.hsoc.hsoc a.soc svg{width:20px!important;height:20px!important}
}
/* زر «عندي كود» يرجع للرئيسية (أي كود: جيم جواب أو مافيا أو إيفنت) */
html body header .hbuy button.hrdm.hrdm{display:inline-flex!important}
@media (max-width:700px){html body header nav .hgm.hgm.hgm{display:none!important}}
@media (max-height:560px){html body header nav .hgm.hgm.hgm .hgmb{font-size:.92rem!important}html body header nav .hgm.hgm.hgm .hgmp{top:calc(100% + 36px)!important;width:250px!important;padding:6px!important}html body header nav .hgm.hgm.hgm .hgmp a{padding:6px!important;gap:10px!important}html body header nav .hgm.hgm.hgm .hgmp .mt{width:48px!important;height:40px!important}html body header nav .hgm.hgm.hgm .hgmp a b{font-size:.9rem!important}html body header nav .hgm.hgm.hgm .hgmp a small{font-size:.72rem!important}}
/* الجوال بالعرض: الشريط مزحوم. اسم الحساب بيختفي (الرصيد وصورة الحساب بيضلوا)، وروابط الشريط إلها مساحة لمس أطول */
@media (orientation:landscape) and (max-height:520px) and (pointer:coarse){
html body #pickscreen header#phdr .faid .faname.faname,html body header .faid .faname.faname{display:none!important}
html body header nav a.nl,html body header nav .hgm.hgm.hgm .hgmb{padding-block:10px!important;margin-block:-6px!important}
html body header nav a.nl::after{bottom:0!important}
html body header .hcurb .hcc{font-size:11px!important}
}
/* الجوال بالعرض: زر «ثبّت التطبيق» بالشريط بيختفي (نافذة التثبيت بتطلع لحالها)، عشان صورة الحساب وزر الدخول ما يطلعوا برّا الشاشة */
@media (orientation:landscape) and (max-height:520px) and (pointer:coarse){html body header #pwab.pwab,html body header #pwab{display:none!important}}

/* «عندي كود» بشريط EVENTS وYOUR GAME، بنفس شكل الرئيسية */
html body header.jhd .jhrdm{display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 16px;border:0;border-radius:999px;background:#f8bf4f;color:#1f1b16;font:700 .9rem/1 Cairo,Tahoma,sans-serif;cursor:pointer;white-space:nowrap;box-shadow:none;flex:none}
html body header.jhd .jhrdm .hri{width:1.5em;height:1.15em;flex:none}
@media (max-width:760px){html body header.jhd .jhrdm{height:36px;padding:0 12px;font-size:.82rem}}
html body header.jhd .fabtn{white-space:nowrap}
html body header.jhd .jhrdm{font-size:.85rem}
@media (max-width:780px){html body header.top.jhd > nav{gap:14px!important}html body header.jhd nav>a,html body header.jhd .hgmb{font-size:.86rem!important}html body header.jhd .jhrdm{padding:0 10px;gap:5px}}
/* الجوال بالعرض: محتوى كل الأقسام يبعد عن النوتش متل الهيدر (ما بيتغير شي إذا ما في نوتش) */
@media (pointer:coarse) and (orientation:landscape) and (max-width:1060px){html body section .wrap:not(.price),html body main .wrap:not(.price){margin-left:var(--sal,env(safe-area-inset-left,0px))!important;margin-right:var(--sar,env(safe-area-inset-right,0px))!important}}

/* ===== الشريط زي سين جيم (نوفمبر 2026) =====
   «العب» · «تواصل معنا» · «ألعابي» (للمسجّلين)، والصفحة الحالية حبّة صفرا. بدون خط ملوّن تحت الشريط.
   الزائر بيشوف «تسجيل الدخول | إنشاء حساب جديد» بس، والمسجّل بيشوف العملة و«عندي كود» و«اشترِ لعبة جديدة» واسمه وصورته */
html body header:not(#_a):not(#_b):not(#_c):not(.jmf){border-image:none!important;border-bottom:0!important}
html body header:not(#_a):not(#_b):not(#_c) nav a.hplay{order:1!important}
html body header:not(#_a):not(#_b):not(#_c) nav a.hwa{order:2!important}
html body header:not(#_a):not(#_b):not(#_c) nav a.hmg{order:3!important}
html body header:not(#_a):not(#_b):not(#_c) nav a.nl.hplay,html body header:not(#_a):not(#_b):not(#_c) nav a.nl.hwa,html body header:not(#_a):not(#_b):not(#_c) nav a.nl.hmg{display:inline-flex!important;align-items:center;border-radius:999px!important;padding:.32em .85em!important;margin-inline:-.35em!important;transition:background .15s}
html body header:not(#_a):not(#_b):not(#_c) nav a.nl.hplay::after,html body header:not(#_a):not(#_b):not(#_c) nav a.nl.hwa::after,html body header:not(#_a):not(#_b):not(#_c) nav a.nl.hmg::after,html body header:not(#_a):not(#_b):not(#_c) nav a.nl.hplay::before,html body header:not(#_a):not(#_b):not(#_c) nav a.nl.hwa::before,html body header:not(#_a):not(#_b):not(#_c) nav a.nl.hmg::before{display:none!important}
html body header:not(#_a):not(#_b):not(#_c) nav a.nl.hplay:hover,html body header:not(#_a):not(#_b):not(#_c) nav a.nl.hwa:hover,html body header:not(#_a):not(#_b):not(#_c) nav a.nl.hmg:hover{background:rgba(31,27,22,.07)!important;text-decoration:none!important}
html body header:not(#_a):not(#_b):not(#_c) nav a.nl.on.on{background:#FBC14F!important;color:#1F1B16!important;font-weight:800!important}
html:not(.fa-in) body header:not(#_a):not(#_b):not(#_c) nav a.hmg{display:none!important}
/* الاسم بس جنب الصورة (الرصيد صار بـ«حسابي») */
html body header:not(#_a):not(#_b):not(#_c) .faid .fabal{display:none!important}
/* الزائر: بدون عملة ولا «عندي كود» ولا زر الشراء */
html.fa-out body header:not(#_a):not(#_b):not(#_c) .hcur,html.fa-out body header:not(#_a):not(#_b):not(#_c) .hrdm,html.fa-out body header:not(#_a):not(#_b):not(#_c) .jhrdm,html.fa-out body header:not(#_a):not(#_b):not(#_c) #buybtn,html.fa-out body header:not(#_a):not(#_b):not(#_c) .buyb{display:none!important}
html body header:not(#_a):not(#_b):not(#_c) .faguest{display:inline-flex;align-items:center;gap:clamp(10px,1.4vw,22px);white-space:nowrap}
html body header:not(#_a):not(#_b):not(#_c) .faguest button{all:unset;cursor:pointer;font:600 clamp(15px,calc(1.46vw + 1px),30px)/1.2 Cairo,Tahoma,sans-serif;color:#1F1B16;padding:.32em .7em;border-radius:999px;transition:background .15s}
html body header:not(#_a):not(#_b):not(#_c) .faguest button:hover{background:rgba(31,27,22,.07)}
html body header:not(#_a):not(#_b):not(#_c) .faguest button.on{background:#FBC14F}
html body header:not(#_a):not(#_b):not(#_c) .faguest button:focus-visible{outline:2px solid #1F1B16;outline-offset:2px}
html body header:not(#_a):not(#_b):not(#_c) .faguest i{width:1.5px;height:1.2em;background:#c9c3b6;flex:none}
@media (orientation:landscape) and (max-height:520px){html body header:not(#_a):not(#_b):not(#_c) .faguest{gap:6px}html body header:not(#_a):not(#_b):not(#_c) .faguest button{font-size:.82rem;padding:.4em .6em}}
/* زر اللغة ع/EN بالشريط مكان إنستغرام (إنستغرام ضل بالفوتر) */
html body header:not(#_a):not(#_b):not(#_c) .hsoc.hlang{display:inline-flex!important;align-items:center}
html body header:not(#_a):not(#_b):not(#_c) .hsoc.hlang a.soc{display:none!important}
html body header:not(#_a):not(#_b):not(#_c) .hsoc.hlang .jjlang{display:inline-flex!important;margin:0!important}
/* الجوال: الشريط ما بيطلع برّا الشاشة. «إنشاء حساب جديد» بتنوصل من نافذة الدخول */
@media (max-width:600px){
html body header:not(#_a):not(#_b):not(#_c) .faguest{gap:0}
html body header:not(#_a):not(#_b):not(#_c) .faguest i,html body header:not(#_a):not(#_b):not(#_c) .faguest button+i+button{display:none!important}
html body header:not(#_a):not(#_b):not(#_c) .faguest button{font-size:14px!important;padding:.3em .6em}
html body header:not(#_a):not(#_b):not(#_c) nav a.nl.hplay,html body header:not(#_a):not(#_b):not(#_c) nav a.nl.hwa,html body header:not(#_a):not(#_b):not(#_c) nav a.nl.hmg{font-size:14px!important;padding:.3em .6em!important}
html body header:not(#_a):not(#_b):not(#_c) .hsoc.hlang .jjlang{transform:scale(.82);margin:0 -6px!important}
}

/* «اشترِ ألعاب»: الكلمة بنص الزر بالزبط بكل الصفحات (علامة + مثبتة على الزاوية فما بتحتاج مسافة) */
html body header:not(#_a):not(#_b):not(#_c) .buyb.buyb{justify-content:center!important;text-align:center!important;padding-inline:clamp(12px,1.4vw,22px)!important}
html body header:not(#_a):not(#_b):not(#_c) .buyb.buyb .bl{margin:0!important;text-align:center!important}
