[data-dress-role].canvas-layer { box-sizing:border-box; display:block; }
/* The Figma portrait is a photograph mounted on paper. Keep uploads in the
   1581 × 1807 aperture of the 1789 × 2342 scanned frame. */
.canvas-layer[data-dress-role=hero-photo] .dress-portrait-mount,
.canvas-layer[data-dress-role=hero-photo] .dress-portrait-paper {
  position:absolute; inset:0; width:100%; height:100%; pointer-events:none; object-fit:fill;
}
.canvas-layer[data-dress-role=hero-photo] .dress-portrait {
  position:absolute; left:5.87%; top:5.04%; width:88.37%; height:77.16%; object-fit:cover; z-index:1; pointer-events:none;
}
[data-dress-role].canvas-layer:not(.selected) { border:0; }
.canvas-layer[data-dress-role] .dress-image,.canvas-layer[data-dress-role] .dress-ink {
  display:block; position:absolute; inset:0; max-width:none; width:100%; height:100%; object-fit:fill; pointer-events:none;
}
.canvas-layer[data-dress-role] .dress-image[data-uploaded] { object-fit:contain; }
.canvas-layer:is([data-dress-role=hero-photo],[data-dress-role=dress-background]) .dress-image[data-uploaded] { object-fit:cover; }
.canvas-layer[data-dress-role] .dress-copy {
  display:block; width:100%; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.45; pointer-events:none;
}
.canvas-layer[data-dress-role="dress-letter-copy"] .dress-copy { line-height:1.32; }
#act-2 [data-dress-role][role="button"] { pointer-events:auto; cursor:pointer; }
#act-2 [data-dress-role][role="button"]:focus-visible { outline:3px solid #526a89; outline-offset:2px; }
#act-2 [data-dress-role]:is([data-dress-role=hat],[data-dress-role=glasses],[data-dress-role=cake])[role="button"] {
  touch-action:none; cursor:grab;
}
#act-2 [data-dress-role].dress-dragging { cursor:grabbing; z-index:35!important; }
#act-2 [data-dress-role].dress-snapped { cursor:default; }
#act-2.dress-celebrating [data-dress-role=dress-gift],#act-2.dress-celebrating [data-dress-role=dress-gift-copy],
#act-2.dress-celebrating [data-dress-role=dress-star]:not(.dress-landing) { visibility:hidden; }
#act-2 [data-dress-next] { left:4%; right:auto; }
#act-2.dress-opening-gift [data-dress-role=dress-gift] img { opacity:0; scale:1.12; transition:opacity .6s,scale .6s; }
@media (prefers-reduced-motion:no-preference) {
  #act-2[data-state-id=letter-opening] :is([data-dress-role=dress-envelope],[data-dress-role=hero-photo],[data-dress-role=dress-letter],[data-dress-role=dress-letter-copy]) > :first-child {
    animation:dress-open .65s ease backwards;
  }
  #act-2[data-state-id=letter-opening] [data-dress-role=hero-photo] > :first-child { animation-delay:.25s; }
  #act-2[data-state-id=letter-opening] :is([data-dress-role=dress-letter],[data-dress-role=dress-letter-copy]) > :first-child { animation-delay:.55s; }
  #act-2[data-state-id=letter-opening] :is([data-dress-role=hat],[data-dress-role=glasses],[data-dress-role=cake])[role="button"]:not(.dress-dragging):not(.dress-snapped) img { animation:wiggle .8s ease-in-out infinite; }
  #act-2 .dress-landing img { animation:dress-land 1.8s cubic-bezier(.18,.72,.22,1),dress-flash .72s ease-out 1.8s; }
  #act-2:not(.dress-celebrating) [data-dress-role=dress-gift] img { animation:pop .45s ease backwards; }
  #act-2:not(.dress-celebrating) [data-dress-role=dress-gift-copy] .dress-copy { animation:gift-copy .3s .35s ease backwards; }
}
@keyframes dress-open { from { translate:-3cqw 0; opacity:0; } }
@keyframes dress-land { from { translate:55cqw -13cqw; scale:2.7; rotate:20deg; } }
@keyframes dress-flash { 40% { filter:drop-shadow(0 0 1cqw #ffed9e) brightness(1.45); } }
