* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: #000;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

.stage {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s ease;
}

.stage.fade-out {
  opacity: 0;
}

.canvas {
  position: relative;
  width: min(92vw, 1280px);
  aspect-ratio: 1280 / 720;
}

.frame {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.frame.show {
  opacity: 1;
}

#f-hg {
  transition: opacity 2.8s ease;
}

@media (prefers-reduced-motion: reduce) {
  .frame {
    transition: none;
    opacity: 1;
  }
  .stage {
    transition: none;
  }
}
