html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: system-ui, sans-serif;
}

#stage {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mediaWrap {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 0.2s ease;
}

.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

video.layer {
  opacity: 0;
  z-index: 1;
}

video.layer.visible {
  opacity: 1;
}

.photo {
  opacity: 0;
  z-index: 2;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.photo.show {
  opacity: 1;
}

#debug {
  position: fixed;
  left: 12px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  z-index: 9;
  max-width: 60%;
  pointer-events: none;
}
