.loyalty-motion {
  min-width: 0;
  width: 100%;
  container-type: inline-size;
}
.loyalty-motion .loyalty-image {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  overflow: hidden;
  border-radius: .3rem;
  box-shadow: 0 .45rem 1rem #41110e55;
}
.loyalty-motion .loyalty-image img { box-shadow: none; }
.loyalty-motion-art { position: relative; }
.loyalty-motion-stage,
.loyalty-motion-result {
  position: absolute;
  pointer-events: none;
}
.loyalty-motion-stage { inset: 0; width: 100%; height: 100%; }
.loyalty-motion-result {
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  isolation: isolate;
  border-radius: .3rem;
  color: #78271e;
  text-align: center;
  opacity: 0;
}
.loyalty-motion-result::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse 52% 56% at 50% 50%, #fff8e9 0%, #fff8e9 42%, #fff8e9e8 63%, #fff8e983 83%, transparent 100%);
}
.loyalty-motion-sparks {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.loyalty-motion-gift {
  position: relative;
  display: block;
  width: 57%;
  aspect-ratio: 300 / 236;
}
.loyalty-motion-envelope {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 1px #70462945);
}
.loyalty-motion-character {
  position: absolute;
  width: 42%;
  aspect-ratio: 128 / 112;
  inset: auto 2% 12% auto;
  transform-origin: 50% 87%;
  filter: drop-shadow(0 1px 1px #744b2b40);
}
.loyalty-motion-bao, .loyalty-motion-poses { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.loyalty-motion-poses { visibility: hidden; overflow: hidden; }
.loyalty-gesturing .loyalty-motion-bao { visibility: hidden; }
.loyalty-gesturing .loyalty-motion-poses { visibility: visible; }
.loyalty-motion-message {
  position: relative;
  max-width: 90%;
  font: normal 1.2rem/1.05 var(--serif, Georgia, serif);
  font-size: clamp(1.05rem, 7.1cqi, 2rem);
  text-wrap: balance;
  isolation: isolate;
  -webkit-text-stroke: .09em #fff8e9;
  paint-order: stroke fill;
  text-shadow: 0 0 .22em #fff7e6;
}
.loyalty-motion-message::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -.18em -.85em;
  background: radial-gradient(ellipse, #fff8e9 50%, #fff8e9dd 70%, transparent 100%);
  filter: blur(.14em);
}
@media (min-width: 621px) and (max-width: 880px) {
  .loyalty-motion { max-width: 15rem; }
}
@media (max-width: 440px) {
  .loyalty-motion { width: min(100%, 16rem); }
}
@media print {
  .loyalty-motion-stage, .loyalty-motion-result { display: none; }
}

.loyalty-caption .loyalty-receipt-note {display:block;margin-block-start:.5rem;color:#fff4df;font-size:.81rem;line-height:1.45;text-wrap:pretty}
