.tt-prize {
  display: block;
  max-width: 100%;
  height: auto;
  overflow: visible;
}
.tt-prize :is(.tt-monster-body,.tt-monster-piece,.tt-gift-lid,.tt-gift-ribbon,.tt-chest-lid,.tt-chip) {
  transform-box: fill-box;
  transform-origin: center bottom;
}
.tt-monster:not(.tt-won,.tt-giggle) .tt-monster-body {
  animation: tt-breathe 2.3s ease-in-out infinite;
}
.tt-giggle .tt-monster-body {
  animation: tt-giggle .55s ease-out;
}
.tt-won .tt-monster-piece {
  animation: tt-release .55s ease-in var(--delay) both;
}
.tt-won .tt-chip {
  animation: tt-chip-burst .95s ease-out both;
}
.tt-chest-interior,
.tt-gift-sparkles {
  opacity: 0;
}
.tt-open :is(.tt-chest-interior,.tt-gift-sparkles) {
  opacity: 1;
}
.tt-chest-lid {
  transition: transform .4s cubic-bezier(.2,.8,.25,1.22);
}
.tt-open .tt-chest-lid {
  transform: translateY(-16px) scaleY(.73);
}
.tt-gift-lid {
  transition: transform .4s cubic-bezier(.2,.8,.25,1.22);
}
.tt-open .tt-gift-lid {
  transform: translate(5px,-15px) rotate(11deg);
}
.tt-gift:not(.tt-open) .tt-gift-ribbon {
  animation: tt-ribbon 2.8s ease-in-out infinite;
}
@keyframes tt-breathe {
  50% {
    transform: translateY(-1px) scale(.99,1.02);
  }
}
@keyframes tt-giggle {
  0%,
  100% {
    transform: rotate(0);
  }
  22% {
    transform: translateY(-2px) rotate(-4deg) scale(1.04,.98);
  }
  52% {
    transform: translateY(-4px) rotate(3deg);
  }
  78% {
    transform: rotate(-2deg);
  }
}
@keyframes tt-release {
  to {
    transform: translate(var(--dx),36px) rotate(var(--spin)) scale(.6);
    opacity: 0;
  }
}
@keyframes tt-chip-burst {
  0% {
    transform: translate(0,10px) scale(.4);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx),var(--dy)) rotate(var(--spin));
    opacity: 0;
  }
}
@keyframes tt-ribbon {
  0%,
  72%,
  100% {
    transform: rotate(0);
  }
  80% {
    transform: rotate(-5deg);
  }
  90% {
    transform: rotate(4deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tt-prize *,
  .tt-prize {
    animation: none !important;
    transition: none !important;
  }
  .tt-won .tt-monster-piece {
    opacity: 0;
  }
}

.tt-monster-piece[data-piece="0"] { --dx: -68.75px; --spin: -40deg; --delay: 0ms; }
.tt-monster-piece[data-piece="1"] { --dx: 40px; --spin: 45deg; --delay: 8ms; }
.tt-monster-piece[data-piece="2"] { --dx: -60px; --spin: -40deg; --delay: 16ms; }
.tt-monster-piece[data-piece="3"] { --dx: 23.75px; --spin: 45deg; --delay: 24ms; }
.tt-monster-piece[data-piece="4"] { --dx: -47.5px; --spin: -40deg; --delay: 32ms; }
.tt-monster-piece[data-piece="5"] { --dx: 10px; --spin: 45deg; --delay: 40ms; }
.tt-monster-piece[data-piece="6"] { --dx: -50px; --spin: -40deg; --delay: 48ms; }
.tt-monster-piece[data-piece="7"] { --dx: 16.25px; --spin: 45deg; --delay: 56ms; }
.tt-monster-piece[data-piece="8"] { --dx: -21.25px; --spin: -40deg; --delay: 64ms; }
.tt-monster-piece[data-piece="9"] { --dx: -41.25px; --spin: -40deg; --delay: 72ms; }
.tt-chip[data-chip="0"] { --dx: -28px; --dy: -48px; --spin: -65deg; }
.tt-chip[data-chip="1"] { --dx: -20px; --dy: -28px; --spin: 65deg; }
.tt-chip[data-chip="2"] { --dx: -12px; --dy: -48px; --spin: -65deg; }
.tt-chip[data-chip="3"] { --dx: -4px; --dy: -28px; --spin: 65deg; }
.tt-chip[data-chip="4"] { --dx: 4px; --dy: -48px; --spin: -65deg; }
.tt-chip[data-chip="5"] { --dx: 12px; --dy: -28px; --spin: 65deg; }
.tt-chip[data-chip="6"] { --dx: 20px; --dy: -48px; --spin: -65deg; }
.tt-chip[data-chip="7"] { --dx: 28px; --dy: -28px; --spin: 65deg; }
