/**
 * hud-opponents.css - Right Sidebar Opponents, Mini-cards, Victory Points, and Badges
 */

/* Right Sidebar (Opponents, Log, Chat) */
.hud-right {
  grid-area: right;
  width: auto;
  min-width: 0;
  background: oklch(0.165 0.012 264 / 0.86);
  backdrop-filter: blur(18px);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.opponents-section {
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.turn-of-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.turn-phase-status {
  font-size: 12px;
  font-weight: 550;
  color: var(--text-secondary);
  margin: 6px 0 4px;
  line-height: 1.35;
}

.opponent-mini-card {
  background: oklch(1 0 0 / 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.opponent-mini-card.is-active-turn {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--gold-primary);
  background: oklch(0.78 0.145 72 / 0.08);
}

.opponent-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.opponent-phase {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: inline-flex;
  align-items: center;
}

.opponent-mini-card.is-active-turn .opponent-phase {
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.opponent-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.opponent-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.opponent-mini-card.is-active-turn .opponent-avatar-img {
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--gold-primary);
}

.opponent-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.opponent-name {
  font-weight: 600;
}

.opponent-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.opponent-stat {
  font-size: 11px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.opponent-stat.is-title {
  color: var(--gold-primary);
  font-weight: 700;
}

.opponent-card-count {
  font-size: 11px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.opponent-progress-count {
  font-size: 11px;
  color: #c4b5fd;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: oklch(0.4 0.15 290 / 0.2);
  border: 1px solid oklch(0.6 0.15 290 / 0.35);
  padding: 1px 6px;
  border-radius: 999px;
}


.opponent-vp-badge {
  background: var(--gold-primary);
  color: var(--gold-foreground);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
}



.vp-count-text {
  font-weight: 800;
  font-size: 15px;
  color: var(--gold-primary);
}

.btn-has-badge {
  position: relative;
}

.badge-count.is-hidden,
.badge-count[hidden] {
  display: none;
}

