.rabbit--produced {
  animation: rabbit-produced-exit 620ms cubic-bezier(.2,.8,.25,1) forwards;
}

.rabbit-drop {
  position: absolute;
  width: 7.2%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  translate: -50% -68%;
  transform: scale(.72);
  transform-origin: 50% 88%;
  opacity: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rabbit-drop.is-ready {
  opacity: 1;
  transform: scale(1);
  transition: opacity 180ms ease-out, transform 360ms cubic-bezier(.2,1.55,.35,1);
}

.rabbit-drop:focus-visible {
  outline: 4px solid rgba(255, 247, 185, .96);
  outline-offset: 5px;
  border-radius: 38%;
}

.rabbit-drop__halo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2%;
  height: 39%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 251, 190, .84) 0 14%,
      rgba(255, 225, 84, .58) 38%,
      rgba(255, 202, 53, .2) 62%,
      transparent 73%);
  filter: drop-shadow(0 0 9px rgba(255, 218, 61, .55));
  animation: rabbit-drop-halo 1.35s ease-in-out infinite;
}

.rabbit-drop__crate {
  position: absolute;
  width: 92%;
  height: 78%;
  left: 4%;
  bottom: 0;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 4px 3px rgba(69, 45, 11, .32));
}

.rabbit-drop__prompt {
  position: absolute;
  left: 50%;
  bottom: 74%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  min-width: 0;
  pointer-events: auto;
  transform: translateX(-50%);
  padding-bottom: 0;
  animation: rabbit-collect-bob .88s ease-in-out infinite;
}

.rabbit-drop__marker {
  flex: 0 0 auto;
  width: 5.8cqw;
  max-width: 24px;
  min-width: 16px;
  height: auto;
  filter: drop-shadow(0 1px 1px rgba(41, 74, 108, .28));
}

.rabbit-drop__label {
  margin: 0 0 1px;
  color: #fff6cf;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(8px, 2cqw, 11px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  text-shadow:
    -1px -1px 0 #77501d,
    1px -1px 0 #77501d,
    -1px 1px 0 #77501d,
    1px 1px 0 #77501d,
    0 2px 2px rgba(75, 48, 11, .35);
}

.rabbit-drop.is-collecting { pointer-events: none; }
.rabbit-drop.is-collecting .rabbit-drop__prompt { opacity: .52; }

.rabbit-drop.is-collected {
  animation: rabbit-crate-collected 420ms cubic-bezier(.3,.75,.35,1) forwards;
}

.rabbit-drop__fur-pop {
  position: absolute;
  z-index: 4;
  left: 25%;
  bottom: 26%;
  width: 54%;
  height: 54%;
  object-fit: contain;
  pointer-events: none;
  animation: rabbit-fur-pop 420ms cubic-bezier(.16,.85,.32,1) forwards;
}

.rabbit-toasts {
  position: absolute;
  z-index: 2200;
  top: max(104px, calc(env(safe-area-inset-top, 0px) + 96px));
  left: 50%;
  width: min(86%, 340px);
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
}

.rabbit-toast {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 7px 16px 7px 8px;
  border: 2px solid rgba(255, 235, 153, .96);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(91, 62, 26, .96), rgba(55, 35, 16, .95));
  color: #fff7d5;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(13px, 2.25vw, 22px);
  font-weight: 850;
  box-shadow: 0 5px 14px rgba(45, 29, 11, .3), inset 0 1px rgba(255,255,255,.22);
  opacity: 0;
  transform: scale(.96);
  transition: opacity 180ms ease-out, transform 240ms cubic-bezier(.2,1.2,.3,1);
}

.rabbit-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.rabbit-toast img { width: 40px; height: 40px; object-fit: contain; }
.rabbit-toast--error { border-color: #ffc0a9; background: rgba(117, 46, 25, .96); }

@keyframes rabbit-collect-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8%); }
}

@keyframes rabbit-drop-halo {
  0%, 100% { opacity: .58; transform: scale(.88); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes rabbit-produced-exit {
  0% { opacity: 1; transform: scale(1); filter: brightness(1); }
  45% { opacity: 1; transform: translateY(-5%) scale(1.07); filter: brightness(1.28); }
  100% { opacity: 0; transform: translateY(-18%) scale(.55); filter: brightness(1.75); }
}

@keyframes rabbit-crate-collected {
  0% { opacity: 1; transform: scale(1); }
  60% { opacity: 1; transform: translateY(-4%) scale(.9); }
  100% { opacity: 0; transform: translateY(-16%) scale(.46); }
}

@keyframes rabbit-fur-pop {
  0% { opacity: 0; transform: translateY(22%) scale(.35); }
  42% { opacity: 1; transform: translateY(-16%) scale(1.06); }
  100% { opacity: 0; transform: translateY(-90%) scale(.72); }
}

@media (prefers-reduced-motion: reduce) {
  .rabbit-drop__prompt,
  .rabbit-drop__halo { animation: none; }
  .rabbit--produced,
  .rabbit-drop.is-collected,
  .rabbit-drop__fur-pop { animation-duration: 1ms; }
}
