/* R24: all postal illustrations are baked from the editable three-dimensional
   models in three/postal-props.js. Only the brief opening sequence animates. */
#game-stage .mailbox .postal-box-opening { display:none; }
#game-stage .gm-send-scene:is([data-phase="deposit"],[data-phase="pickup"]) .mailbox[data-motion-ready] .postal-box-opening { display:block; }
#game-stage .gm-send-scene:is([data-phase="deposit"],[data-phase="pickup"]) .mailbox[data-motion-ready] .postal-box-still { visibility:hidden; }
#game-stage .gm-send-scene:is([data-phase="deposit"],[data-phase="pickup"]) .mailbox[data-motion-ready] .postal-box-motion { animation:postal-box-open .62s steps(1,end) both; }
#game-stage #app .has-postal-art,
#game-stage #app .receive-delivery .receive-envelope-art.has-postal-art { background:transparent; border-color:transparent; box-shadow:none; }
#game-stage #app .has-postal-art > :is(.entry-envelope-back,.entry-envelope-flap,.entry-envelope-front,.receive-envelope-paper,.receive-envelope-front,.receive-envelope-flap,.receive-envelope-seal) { display:none; }
#game-stage #app .postal-envelope-layer { position:absolute; width:160%; aspect-ratio:640/420; left:-30%; bottom:-24px; pointer-events:none; }
#game-stage #app .postal-envelope-still { display:block; width:100%; height:100%; object-fit:contain; }
#game-stage #app .postal-envelope-motion { display:none; position:absolute; inset:0; background-size:600% 400%; background-repeat:no-repeat; }
#game-stage #app .receive-delivery .receive-envelope.opening,
#game-stage #app .receive-delivery .receive-envelope.opening .has-postal-art { animation:none; opacity:1; }
#game-stage #app .receive-envelope.opening .postal-envelope-motion,
#game-stage #app.intro-open .entry-envelope .postal-envelope-motion { display:block; animation:postal-envelope-open .85s steps(1,end) both; }
#game-stage #app .receive-envelope.opening .postal-envelope-still,
#game-stage #app.intro-open .entry-envelope .postal-envelope-still { visibility:hidden; }
#game-stage #app .receive-envelope.opening :is(.receive-envelope-name,.receive-envelope-action,.letter-envelope-trim,.letter-finish-applique) { visibility:hidden; }
#game-stage #app .has-postal-art .receive-envelope-name { left:22px; right:22px; top:24px; bottom:auto; color:#2f502f; text-shadow:none; }
#game-stage #app .has-postal-art .receive-envelope-action { right:22px; bottom:10px; min-height:34px; padding:6px 12px; background:#355633; color:#fff4d7; }
#game-stage #app.intro-closed .entry-envelope.has-postal-art { background:none; border:0; box-shadow:none; }
#game-stage #app .entry-envelope.has-postal-art > .postal-envelope-layer { bottom:-22px; }
#game-stage #app.intro-closed .entry-envelope.has-postal-art .entry-seal { top:55%; left:40%; width:20%; height:max(44px,calc(44px / var(--stage-scale,1))); border:0; border-radius:0; background:none; box-shadow:none; transform:none; color:#355633; }
#game-stage #app.intro-closed .entry-envelope.has-postal-art .entry-seal > span:first-child { display:none; }
#game-stage #app.intro-closed .entry-envelope.has-postal-art .entry-seal-action { padding-top:40px; font-size:14px; white-space:nowrap; }
#game-stage #app.intro-open .entry-envelope.has-postal-art > .postal-envelope-layer { z-index:4; animation:postal-invitation-away .85s linear both; }
#game-stage #app .receive-read-pocket.has-postal-art { background:none; border:0; overflow:hidden; }
#game-stage #app .receive-read-pocket.has-postal-art .postal-envelope-layer { bottom:-5px; width:156%; left:-28%; }
#game-stage #app .receive-read-pocket.has-postal-art > :is(.receive-pocket-seal,.receive-postmark) { z-index:1; position:relative; }
#game-stage .letter-shop .letter-shop-envelope-art { filter:none; }
#game-stage #app :is(.receive-mailbox,.gm-send-mailbox,.entry-postbox),
#game-stage #app .receive-mailbox svg.mailbox { filter:none; }
@keyframes postal-invitation-away { 0%,75% { opacity:1; } 100% {opacity:0;visibility:hidden;} }
@keyframes postal-envelope-open {
  0.0000% { background-position:0.0000% 0.0000%; }
  4.3478% { background-position:20.0000% 0.0000%; }
  8.6957% { background-position:40.0000% 0.0000%; }
  13.0435% { background-position:60.0000% 0.0000%; }
  17.3913% { background-position:80.0000% 0.0000%; }
  21.7391% { background-position:100.0000% 0.0000%; }
  26.0870% { background-position:0.0000% 33.3333%; }
  30.4348% { background-position:20.0000% 33.3333%; }
  34.7826% { background-position:40.0000% 33.3333%; }
  39.1304% { background-position:60.0000% 33.3333%; }
  43.4783% { background-position:80.0000% 33.3333%; }
  47.8261% { background-position:100.0000% 33.3333%; }
  52.1739% { background-position:0.0000% 66.6667%; }
  56.5217% { background-position:20.0000% 66.6667%; }
  60.8696% { background-position:40.0000% 66.6667%; }
  65.2174% { background-position:60.0000% 66.6667%; }
  69.5652% { background-position:80.0000% 66.6667%; }
  73.9130% { background-position:100.0000% 66.6667%; }
  78.2609% { background-position:0.0000% 100.0000%; }
  82.6087% { background-position:20.0000% 100.0000%; }
  86.9565% { background-position:40.0000% 100.0000%; }
  91.3043% { background-position:60.0000% 100.0000%; }
  95.6522% { background-position:80.0000% 100.0000%; }
  100.0000% { background-position:100.0000% 100.0000%; }
}
@keyframes postal-box-open {
  0.0000% { transform:translate(0px,0px); }
  9.0909% { transform:translate(-220px,0px); }
  18.1818% { transform:translate(-440px,0px); }
  27.2727% { transform:translate(-660px,0px); }
  36.3636% { transform:translate(-880px,0px); }
  45.4545% { transform:translate(-1100px,0px); }
  54.5455% { transform:translate(0px,-260px); }
  63.6364% { transform:translate(-220px,-260px); }
  72.7273% { transform:translate(-440px,-260px); }
  81.8182% { transform:translate(-660px,-260px); }
  90.9091% { transform:translate(-880px,-260px); }
  100.0000% { transform:translate(-1100px,-260px); }
}
@media (prefers-reduced-motion:reduce) { #game-stage #app .postal-envelope-motion,#game-stage .postal-box-motion { animation-duration:.001ms!important; } #game-stage #app.intro-open .postal-envelope-layer { animation-duration:.001ms!important; } }
