/* === CINEMATIC — vignette + slow-mo overlay during ship landings === */

body.cinematic-landing #game::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.35) 70%,
    rgba(0, 0, 0, 0.75) 100%);
  animation: cinematicVignetteIn 0.6s ease-out forwards;
}

@keyframes cinematicVignetteIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Soft top/bottom letterbox bars */
body.cinematic-landing #game::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 91;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.92) 6%, transparent 6%, transparent 94%, rgba(0,0,0,0.92) 94%, rgba(0,0,0,0.92) 100%);
  opacity: 0;
  animation: cinematicLetterbox 0.6s ease-out forwards;
}

@keyframes cinematicLetterbox {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Slow down the ship's return animation during cinematic for more drama */
body.cinematic-landing .luna-ship[data-ship-state="returning"] {
  animation-duration: 3.2s;
}

/* Make the landed ship's pulse more pronounced */
body.cinematic-landing .luna-ship[data-ship-state="landed"] {
  animation-duration: 1.2s;
}

/* Pulse the pad warning lights faster while cinematic */
body.cinematic-landing .base-svg circle[fill="#ff8833"] {
  animation-duration: 0.8s;
}
