/**
 * Production loading overlay — full-viewport chrome + dismiss transition.
 *
 * All bull-charge animation rules (.stage, .bull-layer, keyframes, etc.)
 * come from styles/logo-intro-stage.css, the same file used by
 * brand/logo-splash.html. This keeps the homepage overlay and the public
 * shareable page pixel-identical and on a single source of truth.
 */
html.logo-splash-active,
body.logo-splash-active {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

#loading-overlay.logo-splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #07080f;
  opacity: 1;
  transition: opacity 0.25s ease;
  pointer-events: auto;
  overflow: hidden;
}

#loading-overlay.logo-splash-overlay.is-dismissed {
  opacity: 0;
  pointer-events: none;
}

#loading-overlay.logo-splash-overlay.is-gone {
  display: none;
}

#loading-overlay.logo-splash-overlay .stage {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
}

#loading-overlay.logo-splash-overlay .logo-wrap {
  width: min(92vw, 420px);
}

@media (prefers-reduced-motion: reduce) {
  #loading-overlay.logo-splash-overlay .stage * {
    animation: none !important;
  }

  #loading-overlay.logo-splash-overlay .logo-full {
    opacity: 1;
    filter: none;
  }
}
