/* Анимация вылета лута при HACK (rAF + гравитация) */
.loot-fly-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  overflow: hidden;
}

/* Частицы вспышки в точке старта */
.loot-burst {
  position: absolute;
  width: 14px; height: 14px;
  margin-left: -7px; margin-top: -7px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffd652 40%, rgba(255,214,82,0) 75%);
  box-shadow: 0 0 12px #ffd652, 0 0 24px #ffd652;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Предмет — контейнер (иконка + счётчик), летит по rAF-траектории */
.loot-fly {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  /* Transform задаётся JS-ом каждый кадр — здесь только базовая точка привязки */
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  pointer-events: none;
}

.loot-fly__icon {
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  filter: drop-shadow(0 0 10px currentColor);
}
.loot-fly__icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,214,82,.9)) drop-shadow(0 0 16px rgba(255,214,82,.5));
}

.loot-fly__label {
  font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #e4f1ee;
  background: #061018cc;
  border: 1px solid #f0c04a88;
  padding: 2px 8px;
  white-space: nowrap;
  text-transform: uppercase;
}

/* Цвет иконки по типу предмета */
.loot-fly[data-type="1"] .loot-fly__icon { color: #f0c04a; }
.loot-fly[data-type="2"] .loot-fly__icon { color: #4ade80; }
.loot-fly[data-type="3"] .loot-fly__icon { color: #ffbb00; }
.loot-fly[data-type="4"] .loot-fly__icon { color: #ff6b6b; }
.loot-fly[data-type="5"] .loot-fly__icon { color: #c380ff; }
.loot-fly[data-type="6"] .loot-fly__icon { color: #4a9eff; }
.loot-fly[data-type="7"] .loot-fly__icon { color: #c380ff; }
