/* The parent dialog supplies this area's height. Each drop owns three nodes. */
.poop-batch-rain {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.poop-batch-drop {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translate3d(0, -180px, 0);
  will-change: transform, opacity;
  transform-origin: 50% 45%;
}

.poop-batch-drop img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  -webkit-user-drag: none;
}

.poop-batch-drop-label {
  display: block;
  max-width: 140%;
  margin-top: -7px;
  padding: 3px 7px;
  overflow: hidden;
  border: 1px solid #dedfcba6;
  border-radius: 999px;
  background: #fffcf0ed;
  color: #798369;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poop-batch-drop.is-rare {
  z-index: 2;
}

.poop-batch-drop[data-kind="gold"] img {
  filter: drop-shadow(0 0 8px #ebba5580);
}

.poop-batch-drop[data-kind="gold"] .poop-batch-drop-label {
  padding: 4px 10px;
  border-color: #d6ad63;
  background: #fff0bd;
  color: #9b6419;
  font-size: 11px;
}

.poop-batch-drop[data-kind="rainbow"] {
  z-index: 3;
}

.poop-batch-drop[data-kind="rainbow"] img {
  filter: drop-shadow(0 0 9px #caa6d985);
}

.poop-batch-drop[data-kind="rainbow"] .poop-batch-drop-label {
  padding: 4px 10px;
  border-color: #cbb1d5;
  background: linear-gradient(100deg, #f7e0ef, #fcf0cb 42%, #dbf3e7 72%, #e6dcfa);
  color: #805695;
  font-size: 11px;
}

/* Batch trigger themes let the surrounding dialog tint the rain area. */
.poop-batch-rain[data-trigger-kind="gold"] {
  background: radial-gradient(circle at 50% 12%, #ffe49a38, transparent 58%);
}

.poop-batch-rain[data-trigger-kind="rainbow"] {
  background: radial-gradient(circle at 50% 12%, #e8c9f344, transparent 62%);
}

@media (max-width: 370px) {
  .poop-batch-drop-label {
    padding: 2px 5px;
    font-size: 8px;
  }

  .poop-batch-drop.is-rare .poop-batch-drop-label {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poop-batch-drop {
    will-change: auto;
  }
}
