#f08-ending-root {
  position: absolute;
  z-index: 43;
  inset: 0;
  display: grid;
  overflow: hidden;
  place-items: stretch;
  background: #000;
  isolation: isolate;
  pointer-events: none;
}

#f08-ending-root[hidden] {
  display: none !important;
}

#f08-ending-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#f08-ending-blackout {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  background: #000;
  pointer-events: none;
}

.viewport-root.f08-ending-active #visual-root.is-interactive {
  z-index: 45;
  display: block;
  visibility: visible;
  opacity: 1;
  background: transparent;
  pointer-events: auto;
}

.viewport-root.f08-ending-active #visual-root.is-interactive > * {
  visibility: hidden;
}

.viewport-root.f08-ending-active #hud-root {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.viewport-root.f08-ending-visual #dialogue-root,
.viewport-root.f08-ending-outro #dialogue-root {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.viewport-root.f08-ending-line #dialogue-root {
  z-index: 46;
  visibility: visible;
  opacity: 1;
}

.viewport-root.f08-ending-active #visual-root,
.viewport-root.f08-ending-active #dialogue-root .tap-zone,
.viewport-root.f08-ending-active #livestream-ui-root {
  pointer-events: none;
}

.viewport-root.f08-ending-active #livestream-ui-root {
  z-index: 44;
}

.viewport-root.f08-ending-third-shot #livestream-ui-root,
.viewport-root.f08-ending-line #livestream-ui-root,
.viewport-root.f08-ending-outro #livestream-ui-root {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  #f08-ending-root,
  #f08-ending-root * {
    animation: none !important;
    transition: none !important;
  }
}

.viewport-root.f08-ending-active[data-f08-motion="reduced"] #livestream-ui-root *,
.viewport-root.f08-ending-active[data-f08-motion="reduced"] #livestream-ui-root *::before,
.viewport-root.f08-ending-active[data-f08-motion="reduced"] #livestream-ui-root *::after,
.viewport-root.f08-ending-active[data-f08-motion="off"] #livestream-ui-root *,
.viewport-root.f08-ending-active[data-f08-motion="off"] #livestream-ui-root *::before,
.viewport-root.f08-ending-active[data-f08-motion="off"] #livestream-ui-root *::after {
  animation: none !important;
  transition: none !important;
}
