.battle-stage {
  position: relative;
  height: clamp(265px, 39vh, 355px);
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  background-color: #061024;
  background-image:
    linear-gradient(180deg, rgba(4, 10, 26, 0.72) 0%, rgba(4, 10, 26, 0.14) 36%, rgba(4, 10, 26, 0.16) 70%, rgba(4, 10, 26, 0.68) 100%),
    var(--arena-bg, url("../assets/arenas/nono_vip.png"));
  background-size: cover;
  background-position: center 58%;
  overflow: hidden;
  box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.65), 0 8px 26px rgba(0, 0, 0, 0.55);
  transition: background-image 0.35s ease;
}

.seer-hud {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(220px, 340px) minmax(250px, 1fr);
  align-items: start;
  gap: 12px;
  padding: 9px 14px 4px;
}

.hud-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(6, 17, 40, 0.88), rgba(14, 34, 72, 0.82));
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  padding: 7px 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 6px 18px rgba(0, 0, 0, 0.52);
}

.hud-card.hud-right {
  flex-direction: row-reverse;
  border-color: var(--border-crimson);
  text-align: right;
}

.hud-avatar {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.35), rgba(6, 16, 38, 0.95));
  border: 2px solid var(--p1-main);
  box-shadow: 0 0 12px var(--p1-glow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hud-right .hud-avatar {
  background: radial-gradient(circle, rgba(255, 92, 124, 0.35), rgba(24, 8, 22, 0.95));
  border-color: var(--p2-main);
  box-shadow: 0 0 12px var(--p2-glow);
}

.hud-avatar img {
  width: 125%;
  height: 125%;
  object-fit: contain;
  transform: translateY(3px);
}

.hud-left .hud-avatar img {
  transform: scaleX(-1) translateY(3px);
}

.hud-info {
  flex: 1;
  min-width: 0;
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.hud-right .hud-header { flex-direction: row-reverse; }

.spirit-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-size: 0.96rem;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hud-right .spirit-title { flex-direction: row-reverse; }

.elem-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px 1px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
}

.elem-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

.lv-tag {
  font-size: 0.73rem;
  color: var(--gold);
  font-weight: 800;
}

.hp-track {
  position: relative;
  height: 16px;
  background: rgba(2, 7, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  overflow: hidden;
  transform: skewX(-14deg);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
}

.hp-fill {
  position: relative;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #00c853, #69f0ae);
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s;
}

.hp-fill::after {
  content: "";
  position: absolute;
  inset: 0 0 55% 0;
  background: rgba(255, 255, 255, 0.28);
}

.hud-right .hp-fill { margin-left: auto; }
.hp-fill.warn { background: linear-gradient(90deg, #ff8f00, #ffd54f); }
.hp-fill.low { background: linear-gradient(90deg, #d50000, #ff5252); }

.hp-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  text-shadow: 0 1px 3px #000, 0 0 6px #000;
  transform: skewX(14deg);
}

.energy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  gap: 8px;
}

.hud-right .energy-row { flex-direction: row-reverse; }

.en-pips { display: flex; gap: 4px; }

.en-pip {
  width: 17px;
  height: 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 213, 79, 0.38);
  transform: skewX(-14deg);
  transition: all 0.2s ease;
}

.en-pip.filled {
  background: linear-gradient(135deg, #fff176, #ff9800);
  border-color: #ffffff;
  box-shadow: 0 0 9px rgba(255, 202, 40, 0.9);
}

.buff-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.68rem;
}

.buff-chip {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.22);
  border: 1px solid rgba(0, 229, 255, 0.55);
  color: #d8f8ff;
  font-weight: 800;
}

.buff-chip.debuff {
  background: rgba(255, 82, 82, 0.28);
  border-color: rgba(255, 82, 82, 0.65);
  color: #ffd6d6;
}

.hud-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.vs-crest {
  padding: 2px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 213, 79, 0.24), rgba(255, 111, 0, 0.24));
  border: 1px solid rgba(255, 213, 79, 0.65);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffe082;
  text-shadow: 0 0 12px rgba(255, 202, 40, 0.9);
}

.matchup-pill {
  font-size: 0.71rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(6, 16, 36, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e3f0ff;
}

.battle-log-bar {
  width: 100%;
  font-size: 0.73rem;
  line-height: 1.32;
  color: #e4f2ff;
  background: rgba(4, 12, 28, 0.84);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(120, 185, 255, 0.35);
  border-radius: 7px;
  padding: 4px 9px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
