/**
 * G2 combat floats + champion feed (WoW-lite juice).
 */

.combat-float-layer {
  position: fixed;
  inset: 0;
  z-index: 12600;
  pointer-events: none;
  overflow: hidden;
}

.combat-float {
  position: fixed;
  transform: translate(-50%, -20%) scale(0.85);
  font-family: "Courier New", Courier, monospace;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.85),
    0 2px 0 #000;
  opacity: 0;
  transition:
    opacity 0.18s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  pointer-events: none;
  z-index: 12601;
}

.combat-float.is-on {
  opacity: 1;
  transform: translate(-50%, -72px) scale(1.05);
}

.combat-float.is-out {
  opacity: 0;
  transform: translate(-50%, -110px) scale(0.95);
}

.combat-float--crit {
  color: #ffd24a;
  font-size: 1.15rem;
  text-shadow:
    0 0 12px rgba(255, 200, 40, 0.75),
    0 2px 0 #000;
}

.combat-float--hit {
  color: #7dffb0;
}

.combat-float--graze {
  color: #b8c8a8;
  font-size: 0.85rem;
}

.combat-float--miss {
  color: #ff8a7a;
}

.combat-float--dmg {
  color: #ff5a5a;
  font-size: 1.05rem;
}

.combat-float--heal {
  color: #5dff9a;
  font-size: 1.05rem;
}

.combat-float--xp {
  color: #7ec8ff;
  font-size: 1rem;
}

.combat-float--level {
  color: #ffd700;
  font-size: 1.2rem;
}

.combat-float--form {
  color: #c9a0ff;
}

.combat-float--info {
  color: #c8e8d0;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Rolling log under champion dock */
.combat-feed {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.25rem 0.2rem 0.15rem;
  border-top: 1px solid rgba(0, 255, 136, 0.18);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.52rem;
  line-height: 1.25;
  color: #9fdfb0;
  max-height: 5.2rem;
  overflow: hidden;
  text-align: left;
}

.combat-feed[hidden] {
  display: none !important;
}

.combat-feed__line {
  margin: 0.12rem 0;
  opacity: 0.92;
  word-break: break-word;
}

.combat-feed__line--crit {
  color: #ffd24a;
  font-weight: 700;
}

.combat-feed__line--hit {
  color: #8fefb8;
}

.combat-feed__line--bad {
  color: #ff9a8a;
}

.combat-feed__line--xp,
.combat-feed__line--level {
  color: #9ad0ff;
  font-weight: 700;
}

.combat-feed__line--info {
  color: #7aaa88;
}
