/* الافتتاحية السينمائية — مستقلة عن تصميم الموقع */
html.splash-run { overflow: hidden; }
html.splash-run::before { content: ""; position: fixed; inset: 0; z-index: 2147483000; background: #030a1f; }

.splash {
  position: fixed; inset: 0; z-index: 2147483001;
  background: radial-gradient(120% 80% at 50% 42%, #0a1d46 0%, #030a1f 70%);
  transition: opacity 800ms cubic-bezier(0.23, 1, 0.32, 1), transform 800ms cubic-bezier(0.23, 1, 0.32, 1);
}
.splash > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.splash.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.splash.out.fast { transition-duration: 320ms; }

.splash-skip {
  position: absolute; z-index: 2; inset-block-end: max(20px, env(safe-area-inset-bottom)); inset-inline-end: max(20px, env(safe-area-inset-right));
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font: 500 14px/1 "IBM Plex Sans Arabic", system-ui, sans-serif; color: #dbe6ff;
  background: rgba(3, 10, 31, 0.55); border: 1px solid rgba(150, 185, 255, 0.32); cursor: pointer;
  opacity: 0; transition: opacity 400ms ease 900ms, background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}
.splash.live .splash-skip, .splash.in .splash-skip { opacity: 1; }
.splash-skip:focus-visible { outline: 2px solid #9cc0ff; outline-offset: 3px; opacity: 1; }
.splash-skip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .splash-skip:hover { background: rgba(20, 45, 110, 0.7); border-color: rgba(170, 205, 255, 0.6); }
}

/* الوضع البديل: أجهزة ضعيفة / تقليل الحركة */
.splash-static .splash-sky { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 30%; }
.splash-static .splash-logo {
  position: absolute; left: 50%; top: 46%; translate: -50% -50%;
  filter: drop-shadow(0 0 10px rgba(80, 150, 255, 0.85)) drop-shadow(0 0 28px rgba(40, 110, 255, 0.5));
  opacity: 0; transform: scale(0.96);
  transition: opacity 900ms cubic-bezier(0.23, 1, 0.32, 1), transform 900ms cubic-bezier(0.23, 1, 0.32, 1);
}
.splash-static.in .splash-logo { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .splash, .splash-static .splash-logo { transition-property: opacity; transform: none !important; }
}
