/* Only the successful A3 submission and its whole-scene pullback to A4. */
body[data-letter-exit] #letterScene { z-index: 2; background: #060404; }
body[data-letter-exit] #stageScene {
  display: grid;
  position: fixed;
  inset: 0;
  min-height: 0;
  z-index: 1;
  pointer-events: none;
}
body[data-letter-exit] #stageVideo { transition: none; }
body[data-stage="A3_BLESSING"][data-letter-exit] :is(#letterForm, #mobileLetterForm).is-sealing {
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}
body[data-stage="A3_BLESSING"] .letter-film.is-receive-camera {
  position: fixed;
  inset: auto !important;
  left: var(--receive-x) !important;
  top: var(--receive-y) !important;
  width: var(--receive-w) !important;
  height: var(--receive-h) !important;
  margin: 0 !important;
  transform: none;
  transform-origin: 0 0;
  will-change: transform;
}
.letter-receive-retry {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 70; width: min(90vw, 420px);
  padding: 16px; text-align: center; color: #fff2dc; background: #39291f;
  border: 1px solid #d6b47b; border-radius: 12px;
}
.letter-receive-retry p { margin: 0 0 10px; }
.letter-receive-retry button { padding: 10px 24px; font: inherit; }
