/* Startup only: the original movie supplies the unmodified forward Y spin. */
#ehcb-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0e14;
  pointer-events: none;
}
#ehcb-splash .ehcb-mark {
  position: absolute;
  width: 240px;
  height: 240px;
  left: calc(50% - 120px);
  top: calc(50% - 120px);
  display: grid;
  place-items: center;
  mix-blend-mode: lighten;
}
#ehcb-splash video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}
#ehcb-splash.playing video { opacity: 1; }
#ehcb-splash.playing img { visibility: hidden; }
/* The fixed overlay creates its own stacking context. During the handoff,
   blend that WHOLE context with Flutter's canvas, not just the nested video:
   otherwise the video's black rectangle is flattened into the overlay before
   it reaches the gradient behind the login card. */
#ehcb-splash.revealing {
  background: transparent;
  mix-blend-mode: lighten;
}
@media (prefers-reduced-motion: reduce) {
  #ehcb-splash video { display: none; }
  #ehcb-splash.playing img { visibility: visible; }
}
