.scene {
  pointer-events: none;
  isolation: isolate;
}

.reveal-plate,
.reveal-canvas {
  position: absolute;
  display: block;
}

.reveal-plate {
  top: var(--scene-poster-top, calc(164 * var(--unit)));
  left: var(--scene-poster-left, 0px);
  width: var(--scene-poster-width, 100%);
  max-width: none;
  aspect-ratio: 390 / 324;
  will-change: transform, opacity;
  isolation: isolate;
}

.reveal-canvas {
  inset: 0 auto auto 0;
  width: 100%;
  height: auto;
  will-change: opacity;
}

.reveal-dialog .result-header {
  animation-duration: 280ms;
  animation-timing-function: var(--ease);
}

.reveal-dialog .portrait {
  animation-duration: 280ms;
}

.reveal-dialog .has-photo .portrait-image {
  animation-duration: 310ms;
}

.reveal-dialog .show-letter .result-tail {
  animation-duration: 260ms;
}

.reveal-flare {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--flare-width);
  height: var(--flare-width);
  transform-origin: 0 0;
  mix-blend-mode: screen;
  opacity: 0;
  will-change: transform, opacity;
}
.reveal-flare::before, .reveal-flare::after {
  content: "";
  position: absolute;
  left: -50%;
  top: -50%;
  width: 100%;
  height: 100%;
}
.reveal-flare::before {
  background: radial-gradient(circle at center,
    #fff9d8 0, #fff0c1 1.2px, #ffcc75c9 2.8px, #eea54152 6px,
    #d9862125 12px, transparent 25px);
}
.reveal-flare::after {
  transform: rotate(-15deg);
  background: radial-gradient(ellipse 47% 1.6px at center, #ffd99491, #efab492b 52%, transparent 100%);
}
