.gift-mascot {
  position: relative;
  display: block;
  box-sizing: border-box;
  inline-size: 100%;
  aspect-ratio: 325 / 432;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  border-radius: 14%;
  appearance: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.gift-mascot:focus-visible {
  outline: 2px dashed var(--green, #205543);
  outline-offset: 3px;
}
.gift-mascot-stage {
  position: absolute;
  display: block;
  inset-inline-start: 8%;
  bottom: 1%;
  inline-size: 90%;
  aspect-ratio: 325 / 452;
  transform-origin: 54% 92%;
  pointer-events: none;
}
.gift-mascot-stage img {
  position: absolute;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  max-width: none;
  inset: 0;
  pointer-events: none;
  user-select: none;
}
.gift-mascot-stage .gift-mascot-parcel {
  inset: 41.15% auto auto 10.46%;
  inline-size: 40.62%;
  block-size: 30.75%;
  transform-origin: 60% 72%;
}
.gift-mascot-empty, .gift-mascot-parcel { visibility: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .gift-mascot[data-motion="peek"] .gift-mascot-stage { animation: croc-peek .65s ease-in-out both; }
  .gift-mascot[data-motion="hop"] .gift-mascot-stage { animation: croc-hop .79s ease-in-out both; }
  .gift-mascot[data-motion="shuffle"] .gift-mascot-stage { animation: croc-shuffle .94s ease-in-out both; }
  .gift-mascot[data-motion="wrap"] { --croc-time: 1.25s; }
  .gift-mascot[data-motion="offer"] { --croc-time: 1.4s; }
  .gift-mascot[data-motion="deliver"] { --croc-time: 1.6s; }
  .gift-mascot:is([data-motion="wrap"],[data-motion="offer"],[data-motion="deliver"]) .gift-mascot-empty { visibility: visible; }
  .gift-mascot:is([data-motion="wrap"],[data-motion="offer"],[data-motion="deliver"]) .gift-mascot-idle {
    animation: croc-hands var(--croc-time) step-end both;
  }
  .gift-mascot:is([data-motion="wrap"],[data-motion="offer"],[data-motion="deliver"]) .gift-mascot-parcel {
    animation: croc-hand-over var(--croc-time) ease-in-out both;
  }
  .gift-mascot:is([data-motion="offer"],[data-motion="deliver"]) .gift-mascot-stage { animation: croc-reach var(--croc-time) ease-in-out both; }
  .gift-mascot[data-motion="wrap"] .gift-mascot-stage { animation: croc-peek var(--croc-time) ease-in-out both; }
  .gift-mascot[data-motion="wrap"] .gift-mascot-parcel { animation-name: croc-wrap; }
  .gift-mascot[data-motion="deliver"] .gift-mascot-parcel { animation-name: croc-send; }
}
@keyframes croc-peek {
  0%, 100% { transform: none; }
  45% { transform: translate(-1%,-1%) rotate(-5deg); }
  75% { transform: rotate(1deg); }
}
@keyframes croc-shuffle {
  0%, 100% { transform: none; }
  18% { transform: translate(2%,-2%) rotate(4deg); }
  40% { transform: translate(-3%,0) rotate(-3deg); }
  60% { transform: translate(-7%,-4%) rotate(-4deg); }
  82% { transform: translate(-3%,0) rotate(2deg); }
}
@keyframes croc-hop {
  0%, 100% { transform: none; }
  18% { transform: scale(1.025,.95); }
  45% { transform: translateY(-7%) rotate(-3deg); }
  70% { transform: scale(1.02,.97); }
}
@keyframes croc-reach {
  0%, 100% { transform: none; }
  21% { transform: rotate(2deg); }
  47%, 64% { transform: translateX(-1.5%) rotate(-4deg); }
  86% { transform: rotate(1deg); }
}
@keyframes croc-hands {
  0%, 96%, 100% { opacity: 1; }
  15% { opacity: 0; }
}
@keyframes croc-hand-over {
  0%, 14%, 96%, 100% { visibility: hidden; opacity: 0; transform: none; }
  15% { visibility: visible; opacity: 1; transform: none; }
  43%, 65% { visibility: visible; opacity: 1; transform: translate(-32%,-13%) rotate(-9deg) scale(1.08); }
  95% { visibility: visible; opacity: 1; transform: none; }
}
@keyframes croc-wrap {
  0%, 14%, 96%, 100% { visibility: hidden; opacity: 0; transform: none; }
  15% { visibility: visible; opacity: 1; transform: none; }
  33% { visibility: visible; opacity: 1; transform: translate(-8%,-10%) rotate(-9deg); }
  51% { visibility: visible; opacity: 1; transform: translate(-3%,-4%) rotate(7deg); }
  71% { visibility: visible; opacity: 1; transform: translate(-2%,-9%) rotate(-4deg); }
  95% { visibility: visible; opacity: 1; transform: none; }
}
@keyframes croc-send {
  0%, 14%, 96%, 100% { visibility: hidden; opacity: 0; transform: none; }
  15% { visibility: visible; opacity: 1; transform: none; }
  38% { visibility: visible; opacity: 1; transform: translate(-18%,-23%) rotate(-9deg) scale(1.07); }
  66% { visibility: visible; opacity: 1; transform: translate(-39%,-74%) rotate(-15deg) scale(.78); }
  77% { visibility: visible; opacity: 0; transform: translate(-46%,-87%) rotate(-16deg) scale(.65); }
  81% { visibility: hidden; opacity: 0; transform: none; }
  95% { visibility: visible; opacity: 1; transform: none; }
}
