/* ── COMBAT POPUPS (Damage/Healing) ─────────────────────── */
.pop-text {
  position: absolute;
  font-family: var(--px);
  font-size: 14px;
  font-weight: bold;
  pointer-events: none;
  z-index: 1500;
  text-align: center;
  transform: translate(-50%, -50%);
  animation: popUp 1.2s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  white-space: nowrap;
}

.pop-dmg   { color: #ff4d4d; text-shadow: 0 0 10px rgba(255, 77, 77, 0.6); font-size: 20px; }
.pop-heal  { color: #00ff6a; text-shadow: 0 0 10px rgba(0, 255, 106, 0.6); }
.pop-miss  { color: #948db8; font-size: 12px; }
.pop-crit  { color: #ffcf5c; font-size: 24px; text-shadow: 0 0 15px #ffcf5c80; }
.pop-magic { color: #80c8ff; text-shadow: 0 0 10px rgba(128, 200, 255, 0.6); }
.pop-regen { color: #40ffb0; text-shadow: 0 0 10px rgba(64, 255, 176, 0.6); font-size: 13px; }
.pop-steal { color: #c080ff; text-shadow: 0 0 10px rgba(192, 128, 255, 0.6); }

.elem-fire     { color: #ff5e3a !important; text-shadow: 0 0 10px #ff5e3a80 !important; }
.elem-ice      { color: #4ecfff !important; text-shadow: 0 0 10px #4ecfff80 !important; }
.elem-electric { color: #f1c40f !important; text-shadow: 0 0 10px #f1c40f80 !important; }
.elem-wind     { color: #00ffca !important; text-shadow: 0 0 10px #00ffca80 !important; }
.elem-water    { color: #3498db !important; text-shadow: 0 0 10px #3498db80 !important; }
.elem-holy     { color: #fff !important; text-shadow: 0 0 15px #fff !important; }
.elem-dark     { color: #b864ff !important; text-shadow: 0 0 15px #b864ff !important; }

/* AI Speech Bubbles in Battle */
.ai-pop {
  background: linear-gradient(135deg, rgba(10, 15, 30, 0.92), rgba(5, 8, 20, 0.95));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 255, 202, 0.6);
  border-left: 3px solid #00ffca;
  padding: 8px 14px;
  border-radius: 6px;
  color: #00ffca !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 255, 202, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), inset 0 0 12px rgba(0, 255, 202, 0.15);
  z-index: 1600;
}

@keyframes popUp {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  15% { transform: translate(-50%, -100%) scale(1.2); opacity: 1; }
  80% { transform: translate(-50%, -150%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -200%) scale(0.8); opacity: 0; }
}
