
/* === Splash overlay: white to match your video === */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;             /* WHITE to match your welcome.mp4 */
  display: grid;
  place-items: center;             /* centers the video */
  opacity: 1;
  transition: opacity 2200ms ease;  /* keep in sync with JS FADE_MS */
}

/* Fade the splash out */
.splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Responsive video sizing (Option 2) */
.splash video {
  width: 60vw;                     /* scales with viewport width */
  max-width: 500px;                /* cap on large screens */
  min-width: 300px;                /* floor on small phones */
  height: auto;                    /* maintain aspect ratio */
  background: #ffffff;             /* white behind video frame */
}

/* Optional: ensure it never becomes too tall on very wide screens */
@media (min-aspect-ratio: 16/9) {
  .splash video {
    max-height: 70vh;
  }
}

/* === Main app fades in underneath the splash === */
#app {
  opacity: 0;
  transition: opacity 2200ms ease;  /* keep in sync with JS FADE_MS */
}
#app.app-visible {
  opacity: 1;
}

/* when skipping splash (subsequent visits), show immediately */
.skip-splash #app {
  opacity: 1;
  transition: none;                /* disables the long fade on subsequent visits */
}


/* Skip button layout & style (unchanged, if you had it already) */
.splash-controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: .5rem;
}
.splash-skip {
  appearance: none;
  border: none;
  border-radius: 8px;
  padding: .6rem .9rem;
  background: rgba(0,0,0,0.08);
  color: #111;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}
.splash-skip:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* Reduce motion users: remove transitions */
@media (prefers-reduced-motion: reduce) {
  .splash,
  #app {
    transition: none;
  }
}

/* Lock scroll while splash is visible */
.no-scroll {
  overflow: hidden;
  height: 100%;
}
