.machine-entrance-screen {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* Apply capture-time slip to real outgoing elements. A snapshot pseudo-element
   cannot reliably resolve an SVG filter in the document's rendering tree. */
:root[data-entrance="studio"]:not([data-vibe="studio"]) [data-machine-slip] {
  filter: var(--machine-slip-filter);
}

@media (prefers-reduced-motion: no-preference) {
  :root[data-entrance="studio"]::view-transition-old(root) {
    z-index: 2;
    mix-blend-mode: normal;
    animation: machine-release-picture var(--entrance-duration) steps(1, end) both;
  }

  :root[data-entrance="studio"]::view-transition-new(root) {
    z-index: 1;
    mix-blend-mode: normal;
    animation: none;
    opacity: 1;
  }
}

/* Release the outgoing frame behind the opaque character plate. The canvas
   scan head alone controls which incoming pixels are visible during the wipe. */
@keyframes machine-release-picture {
  0% { opacity: 1; }
  36%, 100% { opacity: 0; }
}

