/* ==========================================================================
   Capsule machine (kawaii design)
   The machine and its coins, the reveal scene a capsule opens in, and the
   sticker book. Drawn in kawaii.html, driven by assets/js/gacha.js; uses
   the tokens and keyframes of kawaii.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Machine
   -------------------------------------------------------------------------- */

/* Overlays are placed in % of the artwork's 240 x 350 viewBox. */
.machine {
  position: relative;
  width: min(88vw, 370px);
  margin: 0 auto;
}

.machine__art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.machine__label {
  fill: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
}

.machine__price {
  fill: var(--accent-pink);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
}

/* Marquee bulbs: a slow twinkle at rest, a chase while the crank turns. */
.machine__bulb {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.8;
  animation: bulb-idle 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.34s);
}

.machine.is-spinning .machine__bulb {
  animation: bulb-chase 0.5s steps(1, end) infinite;
  animation-delay: calc(var(--i) * -0.07s);
}

.machine.is-golden .machine__bulb {
  animation: bulb-rainbow 1.2s steps(1, end) infinite;
  animation-delay: calc(var(--i) * -0.17s);
}

.machine.is-empty .machine__bulb {
  animation: none;
}

.machine__crank-ring {
  fill: var(--blush-soft);
}

.machine.has-coin .machine__crank-ring {
  animation: ring-glow 0.9s ease-in-out infinite alternate;
}

.machine__crank,
.machine__arrow {
  transform-box: view-box;
  transform-origin: 84px 280px;
}

.machine__arrow {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.machine.has-coin .machine__arrow {
  opacity: 1;
  animation: arrow-nudge 1.1s ease-in-out infinite;
}

.machine__led {
  fill: #c3cfe4;
  stroke: var(--ink);
  stroke-width: 1.6;
}

.machine.has-coin .machine__led {
  fill: #3fb5ff;
  animation: led-blink 0.8s steps(1, end) infinite;
}

.machine.is-coined .machine__art {
  animation: machine-bump 0.35s ease-out;
}

.machine__flap {
  transform-box: fill-box;
  transform-origin: 50% 0%;
}

.machine.is-chuting .machine__flap {
  animation: flap-swing 0.55s ease-out;
}

.pile__glow {
  opacity: 0.55;
}

.machine.is-golden .pile__glow {
  animation: glow-pulse 1.1s ease-in-out infinite alternate;
}

.sticker-slot--machine-heart {
  left: 12%;
  top: 55.5%;
  width: 12%;
  rotate: -14deg;
}

.sticker-slot--machine-sparkle {
  left: 66%;
  top: 14%;
  width: 9%;
  rotate: 12deg;
}

/* Lili sits on the machine's right shoulder, beside the dome. */
.mascot--gacha {
  left: 74%;
  top: 37.5%;
  width: 21%;
}

.mascot--gacha .speech {
  bottom: 94%;
  right: 34%;
  transform-origin: 88% 100%;
}

.speech--right::after {
  left: auto;
  right: 14px;
}

/* The knob is the drag handle: no page scroll starts on it. */
.machine__crank-hit {
  position: absolute;
  left: 21.25%;
  top: 70.57%;
  width: 27.5%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.machine__crank-hit:active {
  cursor: grabbing;
}

.machine__tray {
  position: absolute;
  left: 60%;
  top: 78.86%;
  width: 22.5%;
  height: 11.43%;
  display: grid;
  place-items: end center;
  padding: 0 0 6%;
  border: 0;
  border-radius: 14px;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.machine__tray .capsule-art {
  display: block;
  width: 64%;
  height: auto;
  overflow: visible;
}

.machine__tray.is-full .capsule-art {
  animation: tray-roll 0.7s var(--ease-back) both, tray-bob 1.5s ease-in-out 1s infinite;
}

.machine__tray.is-nudged .capsule-art {
  animation: wobble 0.5s ease-in-out;
}

/* --------------------------------------------------------------------------
   Coins and status
   -------------------------------------------------------------------------- */

.coins {
  margin-top: 16px;
  text-align: center;
}

/* Coins overlap like a little stack spread on the table. */
.coins__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  min-height: 46px;
  padding-left: 14px;
}

.coin {
  width: 42px;
  height: 42px;
  margin-left: -14px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  rotate: var(--tilt, 0deg);
  transition: translate 0.2s var(--ease-back);
  -webkit-tap-highlight-color: transparent;
}

.coin:hover {
  translate: 0 -4px;
}

.coin__art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.coin .coin__art {
  filter: drop-shadow(0 2px 0 color-mix(in srgb, var(--ink) 28%, transparent));
}

.coins.is-inviting .coin:last-child {
  animation: coin-hop 1.6s ease-in-out infinite;
}

.coin--gold {
  width: 58px;
  height: 58px;
  margin-left: -14px;
}

.coin--gold .coin__art {
  animation: coin-shine 1.4s ease-in-out infinite alternate;
}

.coins.is-nudged .coins__row {
  animation: wobble 0.45s ease-in-out;
}

.coins__label {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.machine__status {
  max-width: 22rem;
  min-height: 1.5em;
  margin: 6px auto 0;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  line-height: 1.35;
  text-align: center;
  color: var(--accent-pink);
}

/* A copy of a coin or sticker in flight between two places on screen. */
.flyer {
  position: fixed;
  z-index: 50;
  margin: 0;
  pointer-events: none;
  transform-origin: 50% 50%;
}

.flyer > * {
  display: block;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Sticker book
   -------------------------------------------------------------------------- */

.album {
  position: relative;
  z-index: 26;
  width: min(100%, 420px);
  margin: 46px auto 0;
  padding: 32px 16px 18px;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--tint) 30%, transparent) 1.4px, transparent 1.9px) 0 0 / 16px 16px,
    #fff;
  box-shadow: 0 6px 0 var(--ink);
}

.album__rings i {
  position: absolute;
  top: -15px;
  width: 14px;
  height: 30px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
}

.album__rings i:nth-child(1) { left: 20%; }
.album__rings i:nth-child(2) { left: calc(50% - 7px); }
.album__rings i:nth-child(3) { right: 20%; }

.album__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.album__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.album__count {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--accent-pink);
}

.album__count b {
  font-size: 1.25rem;
}

.album__bar {
  height: 14px;
  margin: 10px 0 16px;
  padding: 2px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--page);
}

.album__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: repeating-linear-gradient(-45deg, var(--accent-pink) 0 6px, var(--tint) 6px 12px);
  transition: width 0.7s var(--ease-out);
}

.album__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 460px) {
  .album__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  padding: 10px 3px 6px;
  border: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.slot:disabled {
  cursor: default;
}

/* The book's slots pop in one after another when it scrolls into view. */
.has-motion .album.reveal .slot {
  opacity: 0;
  scale: 0.7;
  transition: opacity 0.5s ease, scale 0.7s var(--ease-back);
  transition-delay: calc(0.3s + var(--n, 0) * 0.05s);
}

.has-motion .album.reveal.is-visible .slot {
  opacity: 1;
  scale: none;
}

.slot.is-filled {
  border: 2.5px solid var(--ink);
  background: #fff;
  box-shadow: 0 3px 0 var(--ink);
}

.slot--rare.is-filled {
  background: linear-gradient(135deg, #fff0f7, #f1eaff 55%, #e7f4ff);
}

.slot__no {
  position: absolute;
  top: 2px;
  left: 6px;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.slot__art {
  display: block;
  width: 74%;
  aspect-ratio: 1;
}

.slot__art .sticker {
  width: 100%;
  height: 100%;
}

/* Not found yet: a faint silhouette of who is hiding there. */
.slot:not(.is-filled) .sticker,
.album__secret:not(.is-filled) .sticker {
  filter: brightness(0) opacity(0.12);
}

.slot__name {
  min-height: 1.2em;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.slot:not(.is-filled) .slot__name {
  color: var(--ink-soft);
}

.slot.is-new .slot__art {
  animation: stick 0.7s var(--ease-back) 0.4s both;
}

.album__secret {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  border: 2.5px dashed #e8b04a;
  border-radius: 16px;
  background: #fffaf0;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.album__secret:disabled {
  cursor: default;
}

.album__secret.is-ready {
  border-style: solid;
  animation: secret-glow 1.2s ease-in-out infinite alternate;
}

.album__secret.is-filled {
  border: 2.5px solid var(--ink);
  background: linear-gradient(135deg, #fff6d6, #ffe59a);
  box-shadow: 0 3px 0 var(--ink);
}

.album__secret-art {
  flex: none;
  display: block;
  width: 56px;
  aspect-ratio: 1;
}

.album__secret.is-new .album__secret-art {
  animation: stick 0.7s var(--ease-back) 0.4s both;
}

.album__secret-text {
  display: grid;
  gap: 1px;
}

.album__secret-text b {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
}

.album__secret-text span {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Over the end of the full progress bar, where nothing is left to read. */
.album__stamp {
  position: absolute;
  top: 58px;
  right: -12px;
  padding: 3px 12px 4px;
  border: 3px solid var(--ribbon);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ribbon);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  rotate: 12deg;
  animation: stamp-in 0.5s var(--ease-back) both;
}

.album.is-complete {
  animation: pulse 0.7s var(--ease-back);
}

.album__reset {
  display: block;
  margin: 16px auto 0;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}

.album__reset.is-confirming {
  color: var(--ribbon);
}

/* --------------------------------------------------------------------------
   Reveal scene: the capsule opens in front of everything
   -------------------------------------------------------------------------- */

.scene {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  padding: max(18px, env(safe-area-inset-top, 0px)) var(--pad-right) max(18px, env(safe-area-inset-bottom, 0px)) var(--pad-left);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-tap-highlight-color: transparent;
}

.scene__backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, #ffd9e8, #9db8f0 50%, #2f2d5e 100%);
  animation: fade-in 0.3s ease both;
}

.scene--rare .scene__backdrop {
  background: radial-gradient(ellipse at 50% 30%, #e8d6ff, #a07cde 48%, #402e60 100%);
}

.scene--secret .scene__backdrop {
  background: radial-gradient(ellipse at 50% 30%, #fff0be, #f0b048 48%, #68401a 100%);
}

/* While a scene is open the confetti canvas moves in here, between the backdrop and the
   card, so bursts fly around the prize without covering the words. */
.scene .confetti-layer {
  z-index: 0;
}

.scene.is-out {
  animation: fade-out 0.26s ease forwards;
}

.scene__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 400px);
  margin: auto;
}

.scene__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(64vw, 250px);
  aspect-ratio: 1;
}

.scene__rays {
  position: absolute;
  inset: -36%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.5) 0deg 8deg, rgba(255, 255, 255, 0) 8deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 16%, transparent 66%);
  mask: radial-gradient(circle, #000 16%, transparent 66%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  animation: rays-spin 18s linear infinite;
}

/* Rare: pastel rainbow rays, pink, sky and butter in turn. */
.scene--rare .scene__rays {
  background: repeating-conic-gradient(
    rgba(255, 196, 228, 0.9) 0deg 7deg, rgba(255, 255, 255, 0) 7deg 15deg,
    rgba(207, 232, 255, 0.9) 15deg 22deg, rgba(255, 255, 255, 0) 22deg 30deg,
    rgba(255, 240, 179, 0.9) 30deg 37deg, rgba(255, 255, 255, 0) 37deg 45deg
  );
  animation-duration: 12s;
}

.scene--secret .scene__rays {
  background: repeating-conic-gradient(rgba(255, 240, 179, 0.85) 0deg 7deg, rgba(255, 214, 107, 0) 7deg 16deg);
  animation-duration: 10s;
}

.scene.is-wiggling .scene__rays {
  opacity: 0.35;
}

.scene.is-open .scene__rays,
.scene.is-review .scene__rays {
  opacity: 1;
}

.scene__flash {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 30%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  pointer-events: none;
}

.scene.is-open .scene__flash {
  animation: flash 0.6s ease-out;
}

.scene__capsule {
  position: relative;
  z-index: 2;
  width: 58%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.scene__capsule .capsule-art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.scene.is-in .scene__capsule {
  animation: scene-drop 0.65s var(--ease-back) both;
}

.scene.is-wiggling .scene__capsule .capsule-art {
  animation: wiggle 0.42s ease-in-out infinite;
}

.scene--rare.is-wiggling .scene__capsule .capsule-art,
.scene--secret.is-wiggling .scene__capsule .capsule-art {
  animation-duration: 0.26s;
}

.scene.is-open .scene__capsule {
  pointer-events: none;
}

.scene.is-review .scene__capsule {
  display: none;
}

.cap__top,
.cap__bottom {
  transform-box: fill-box;
}

.cap__top {
  transform-origin: 0% 100%;
}

.cap__bottom {
  transform-origin: 100% 0%;
}

.scene.is-open .cap__top {
  animation: cap-top-off 0.7s var(--ease-out) forwards;
}

.scene.is-open .cap__bottom {
  animation: cap-bottom-off 0.7s ease-in forwards;
}

.scene__prize {
  position: absolute;
  z-index: 3;
  width: 62%;
  aspect-ratio: 1;
  opacity: 0;
  transform: scale(0.3);
  pointer-events: none;
}

.scene__prize .sticker {
  width: 100%;
  height: 100%;
}

.scene.is-open .scene__prize {
  animation: prize-pop 0.7s var(--ease-back) 0.12s forwards, prize-float 2.6s ease-in-out 0.9s infinite alternate;
}

.scene.is-review .scene__prize {
  opacity: 1;
  transform: none;
  animation: prize-float 2.6s ease-in-out infinite alternate;
}

.scene__card {
  position: relative;
  z-index: 4;
  width: 100%;
  margin-top: 4px;
  padding: 18px 20px 20px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 6px 0 var(--ink);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
}

.scene.is-card .scene__card {
  visibility: visible;
  animation: card-up 0.5s var(--ease-back) forwards;
}

.scene__badge {
  display: inline-block;
  margin: 0;
  padding: 3px 12px 4px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--page);
  color: var(--accent-pink);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.scene--rare .scene__badge {
  background: linear-gradient(90deg, #ffd1e1, #e2d4ff, #cfe8ff, #bde8d4);
  color: var(--ink);
}

.scene--secret .scene__badge {
  background: linear-gradient(90deg, #fff0b3, #ffd66b);
  color: #7a4b10;
}

.scene__name {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.scene__title {
  margin: 2px 0 8px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}

.scene__text {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  line-height: 1.45;
}

.scene__close {
  margin-top: 16px;
  padding: 12px 24px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--accent-pink);
  box-shadow: 0 4px 0 var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.scene__close:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes bulb-idle {
  0%, 100% { fill: var(--paper); }
  50% { fill: var(--blush-soft); }
}

@keyframes bulb-chase {
  0% { fill: #ffe59a; }
  50% { fill: var(--paper); }
}

@keyframes bulb-rainbow {
  0% { fill: #ff9cbf; }
  20% { fill: #ffe59a; }
  40% { fill: #bde8d4; }
  60% { fill: #cfe8ff; }
  80% { fill: #e2d4ff; }
}

@keyframes ring-glow {
  from { fill: var(--blush-soft); }
  to { fill: #fff2b3; }
}

@keyframes arrow-nudge {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(8deg); }
}

@keyframes led-blink {
  50% { fill: var(--tint-soft); }
}

@keyframes machine-bump {
  40% { transform: translateY(2px) scaleY(0.99); }
}

@keyframes flap-swing {
  0%, 100% { transform: scaleY(1); }
  30% { transform: scaleY(0.2); }
}

@keyframes glow-pulse {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

/* Out of the chute, a bounce, then it settles. */
@keyframes tray-roll {
  0% { opacity: 0; transform: translate(-40%, -70%) rotate(-160deg) scale(0.7); }
  55% { opacity: 1; transform: translate(6%, 0) rotate(20deg) scale(1); }
  75% { transform: translate(0, -14%) rotate(-6deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes tray-bob {
  0%, 100% { transform: none; }
  50% { transform: translateY(-8%) rotate(-6deg); }
}

@keyframes wobble {
  0%, 100% { transform: none; }
  25% { transform: translateX(-6px) rotate(-4deg); }
  75% { transform: translateX(6px) rotate(4deg); }
}

@keyframes coin-hop {
  0%, 70%, 100% { translate: 0 0; }
  80% { translate: 0 -9px; }
  90% { translate: 0 0; }
  95% { translate: 0 -3px; }
}

@keyframes coin-shine {
  from { filter: drop-shadow(0 2px 0 color-mix(in srgb, var(--ink) 28%, transparent)) drop-shadow(0 0 0 rgba(255, 214, 107, 0)); }
  to { filter: drop-shadow(0 2px 0 color-mix(in srgb, var(--ink) 28%, transparent)) drop-shadow(0 0 10px rgba(255, 214, 107, 0.95)); }
}

@keyframes stick {
  from { opacity: 0; transform: scale(1.7) rotate(-16deg); }
  60% { opacity: 1; transform: scale(0.92) rotate(4deg); }
  to { opacity: 1; transform: none; }
}

@keyframes secret-glow {
  from { box-shadow: 0 0 0 rgba(255, 214, 107, 0); }
  to { box-shadow: 0 0 18px rgba(255, 200, 80, 0.75); }
}

@keyframes stamp-in {
  from { opacity: 0; scale: 1.8; }
  to { opacity: 1; scale: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes fade-out {
  to { opacity: 0; }
}

@keyframes rays-spin {
  to { transform: rotate(360deg); }
}

@keyframes flash {
  0% { opacity: 0; transform: scale(0.3); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.8); }
}

@keyframes scene-drop {
  from { opacity: 0; transform: translateY(-70%) scale(0.5) rotate(-30deg); }
  to { opacity: 1; transform: none; }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg) scale(1.03); }
  75% { transform: rotate(10deg) scale(1.03); }
}

@keyframes cap-top-off {
  to { opacity: 0; transform: translate(-40%, -150%) rotate(-50deg); }
}

@keyframes cap-bottom-off {
  to { opacity: 0; transform: translate(30%, 140%) rotate(30deg); }
}

@keyframes prize-pop {
  from { opacity: 0; transform: scale(0.3) rotate(-20deg); }
  to { opacity: 1; transform: none; }
}

@keyframes prize-float {
  from { translate: 0 -5px; rotate: -3deg; }
  to { translate: 0 5px; rotate: 3deg; }
}

@keyframes card-up {
  to { opacity: 1; transform: none; }
}
