/* v49: preserve the original 1080x1920 character proportions instead of stretching them. */
.gift-paid-character {
  position: relative;
  width: min(100%, 150px);
  aspect-ratio: 450 / 750;
  overflow: hidden;
  margin-inline: auto;
}
.gift-paid-costume {
  position: absolute;
  z-index: 2;
  left: -73.333%;
  top: -148%;
  width: 240%;
  height: auto;
  max-width: none;
  pointer-events: none;
}
.gift-paid-face {
  position: absolute;
  z-index: 1;
  left: 46.11%;
  top: 27%;
  width: 42.89%;
  height: 20.4%;
  overflow: hidden;
  transform: translate(-50%,-50%);
  border-radius: 48% 48% 50% 50%;
  background: #f2c6a7;
}
.gift-paid-face img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: translate(-50%,-50%);
  transform-origin: center;
}
.mascot-stage.has-paid-photo .start-mascot { display: none !important; }
.mascot-stage .gift-paid-character { max-height: 16vh; }
.end-card.has-gift-character .end-present { display: none !important; }
.gift-paid-end-character {
  width: min(46%, 185px);
  max-height: 27vh;
  margin: 1% auto;
  animation: 1s ease-in-out infinite alternate present-float;
}
@media (height <= 700px) {
  .mascot-stage .gift-paid-character { max-height: 12vh; }
  .gift-paid-end-character { width: min(36%, 150px); max-height: 20vh; }
}

/* v50: use the exact same photo transform stored by the editor/gameplay. */
.gift-paid-face img { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; object-fit: contain !important; transform-origin: 50% 50% !important; }
