/* الشريط ثابت أعلى الشاشة بأمر المالك 2026-10-24 (يلغي «ضمن التدفق» 10-23): سفاري آيفون ٢٦ يلوّن منطقة الساعة بلون الشريط الثابت
   بدل ضباب فاتح فوق الشريط الداكن عند التمرير. */
html { scroll-padding-top: 64px; }  /* التمرير إلى عنصر يتركه تحت الشريط الثابت لا خلفه (رحلة فحص الإتاحة 2026-10-24) */
.home-nav { box-sizing: border-box; position: sticky; top: 0; z-index: 90; display: flex; align-items: center; gap: 10px; width: 100%; flex: none; min-height: 44px; direction: rtl; font-family: "Tajawal", system-ui, sans-serif; }
/* ترتيب الشريط يتبع لغة الصفحة، والعلامة العربية تحتفظ باتجاهها الصريح. */
html[dir="ltr"] .home-nav { direction: ltr; }
.home-nav .home-link { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 72px; min-height: 44px; padding: 0 6px; text-decoration: none; color: #FBAC28; background: transparent; border: 0; border-radius: 8px; margin: 0; }
.home-nav .home-link > img { width: 72px; height: 38px; object-fit: contain; }
.home-nav .home-link .live-logo { width: 72px; height: auto; aspect-ratio: 3.0083; min-height: 0; }   /* الارتفاع من نسبة الشعار: 44 ثابتة أنزلت اللؤلؤ تحت الحروف (ملاحظة المالك 2026-10-26)؛ مساحة اللمس 44 على الرابط */
.game-name { font: 800 16px/1.25 "Tajawal", sans-serif; flex: 1; white-space: nowrap; }
.game-nav-context { display: flex; align-items: center; justify-content: center; gap: 10px; flex: 1; min-width: 0; }
.game-nav-context:empty, #nav-back-slot:empty { display: none; }
#nav-menu-slot { flex: none; margin-inline-start: auto; }
.game-nav #game-menu-btn, .game-nav .setup-menu > summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0 !important; margin: 0; }
.game-nav #game-menu-btn .game-menu-label { display: none; }
.game-nav #game-menu-btn .game-menu-icon { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.home-nav .home-link:active, .home-nav button:active { transform: scale(.97); }
.home-nav :focus-visible:where(html.keyboard-nav *), .home-confirm button:focus-visible:where(html.keyboard-nav *) { outline: 3px solid #FBAC28; outline-offset: 3px; }
.home-nav [hidden] { display: none !important; }
@media (max-width: 280px) { .home-nav { flex-wrap: wrap; } .game-name { white-space: normal; } }  /* تكبير الصفحة 200% على جوال صغير (مراجعة آبل 2026-11-04) */
:where(html:not(.keyboard-nav) :focus) { outline: none; }
.doc-nav { gap: 12px; }
.doc-nav { padding: 6px max(16px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left)); background: #0D1326; color: #F5EEDC; }
.doc-nav .doc-home { margin-inline-start: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: #FBAC28; font-weight: 800; text-decoration: none; }
.home-confirm-layer { position: fixed; inset: 0; z-index: 200; display: flex; padding: 16px; background: #080B1BD9; }
.home-confirm { box-sizing: border-box; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; margin: auto; border: 2px solid #FBAC28; border-radius: 20px; padding: 24px; background: #1B2039; color: #F5EEDC; font: 700 19px/1.6 "Tajawal", system-ui, sans-serif; box-shadow: 0 14px 40px #0006; }

.home-confirm p { margin: 0 0 20px; }
.home-confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-confirm button { box-sizing: border-box; flex: 1; min-height: 44px; padding: 10px 16px; border: 1px solid #AAB0CC; border-radius: 999px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.home-confirm button[data-home-confirm] { background: var(--saffron-tex, none) center / 360px, #FBAC28; color: #1B1633; border-color: #FBAC28; }
@media (prefers-reduced-motion: no-preference) { .home-confirm-layer .home-confirm { animation: home-enter 180ms var(--ease-out); } }
@keyframes home-enter { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .home-nav .home-link, .home-nav .game-menu-button { transition: none; } }


.game-nav .setup-menu > summary { background: transparent; color: var(--text, #F5EEDC); border: 2px solid var(--line-strong, #AAB0CC); border-radius: 50%; }
.game-nav .setup-menu > summary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
