/* assets/splash.css - reusable splash layout + transitions */
#site-splash {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 9999;
  pointer-events: auto;
  background: radial-gradient(circle at 50% 80%, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.75) 60%);
  transition: opacity 1.6s ease, visibility 1.6s ease;
  opacity: 1;
  visibility: visible;
}

/* When hiding, fade and block pointer events */
#site-splash.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* content wrapper so theme CSS can style inner bits */
#site-splash .splash-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 12px 20px;
  max-width: 900px;
  width: calc(100% - 40px);
}

/* canvas for fireworks placed behind inner content */
#site-splash canvas.splash-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* sound control */
#site-splash .splash-audio-control {
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 3;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
  padding: 6px 10px;
  border-radius: 20px;
  cursor: pointer;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
}

/* accessible small skip button */
#site-splash .splash-skip {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: rgba(0,0,0,0.35);
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}
