/* Velvet Curtain: the curtains part, gathering to the left and right edges, the spotlight
   brightens on the stage and the card rises into it. */
:root { --wine: #560d20; --gold: #c9a05d; }
#opening { background: #2b0508; --seam-x: 50%; --seam-y: 50%; }
.envelope-flap { transform-origin: 0% 50%; }
.envelope-pocket { transform-origin: 100% 50%; z-index: 5; filter: none; }
.stage.is-opening .envelope-flap, .stage.is-opening .envelope-pocket {
  transform: scaleX(.18); transition: transform 1.7s cubic-bezier(.5,.05,.2,1);
}
.physical-card { transform: translateY(18%) scale(.82); opacity: 0; transition: none; }
.stage.is-emerging .physical-card, .stage.is-emerged .physical-card {
  transform: translateY(0) scale(1); opacity: 1;
  transition: transform 1.8s cubic-bezier(.24,.54,.25,1), opacity 1.2s ease;
}
.physical-card { top: 24%; }
.tap { background: #2b0508d9; }
@media (prefers-reduced-motion: reduce) {
  .stage.is-opening .envelope-flap, .stage.is-opening .envelope-pocket, .stage.is-emerging .physical-card { transition: none !important; }
}

/* Order style choices (Tokaan Studio) */
#dressCode { white-space: pre-line; }
.hero-art:has(#portrait[hidden]) { display: none; }
