/* ── HUD OVERLAYS ─────────────────────────────────────────────── */
.hud-overlay {
  background: rgba(8,6,18,0.42);
  border: 1px solid rgba(255,215,0,0.22);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 260px;
  max-width: 310px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.7);
}
.hud-overlay.hud-sm { min-width: 160px; max-width: 200px; font-size: 0.82em; }
.hud-overlay.hud-lg { min-width: 280px; max-width: 380px; font-size: 1.12em; }

/* ── TOP-LEFT: WORLD INFO CARD ───────────────────────────────── */
.hud-world-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.hud-world-portrait-wrap {
  position: relative;
  flex-shrink: 0;
  margin-right: 12px;
}
.hud-world-portrait {
  width: 82px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255,215,0,0.4);
  box-shadow: 0 0 12px rgba(255,215,0,0.2);
}
.hud-world-info-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,215,0,0.15);
  border: 1px solid rgba(255,215,0,0.4);
  color: rgba(255,215,0,0.7);
  font-size: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hud-world-text { flex: 1; min-width: 0; padding-left: 4px; }
.hud-world-label {
  font-size: 0.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,215,0,0.5);
  font-weight: 700;
}
.hud-world-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255,215,0,0.4);
  line-height: 1.2;
}
.hud-world-tribe {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
  letter-spacing: 0.5px;
}
.hud-rlq-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold);
  width: fit-content;
}
.hud-rlq-icon { width: 16px; height: 16px; object-fit: contain; }

/* World info card progress bar */
.hud-progress-wrap { margin-top: 2px; }
.hud-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 3px;
}
.hud-progress-track {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.hud-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--level-color, #FFD700), #fff8);
  border-radius: 3px;
  transition: width 0.8s ease;
}

/* ── TOP-RIGHT: CLAN MIGHT & DISCIPLINE ──────────────────────── */
.hud-might-header {
  margin-bottom: 4px;
}
.hud-might-label {
  font-size: 0.5rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,100,30,0.6);
  font-weight: 700;
}
.hud-might-value-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.hud-might-icon { font-size: 0.9rem; }
.hud-might-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FF6B20;
  line-height: 1;
}
.hud-might-bar-wrap {
  height: 4px;
  background: rgba(80,30,10,0.6);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.hud-might-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8B2500, #FF6B20, #FFD700);
  border-radius: 2px;
  transition: width 0.8s ease;
}
.hud-might-rank {
  font-size: 0.58rem;
  color: rgba(180,100,40,0.7);
  font-style: italic;
  margin-bottom: 8px;
}
.hud-divider {
  height: 1px;
  background: rgba(255,215,0,0.1);
  margin: 6px 0;
}
.hud-disc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}
.hud-disc-label {
  font-size: 0.48rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,215,0,0.45);
  font-weight: 700;
}
.hud-disc-pct {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
}
.hud-disc-title {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
  font-style: italic;
}
.hud-disc-bar-wrap {
  height: 4px;
  background: rgba(26,26,40,0.91);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.hud-disc-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #4a0000, #ff4444, #ffaa00, #00ff88);
  background-size: 300% 100%;
  background-position: right center;
  transition: width 0.8s ease;
}

/* ── BOTTOM-LEFT: PROGRESS STATS ─────────────────────────────── */
.hud-progress-stat-row {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.hud-res-bar-wrap { margin-bottom: 4px; }
.hud-res-bar-labels { font-size: 0.58rem; color: rgba(255,255,255,0.6); margin-bottom: 3px; }
.hud-res-img-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.hud-res-icon { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; border: 1px solid rgba(255,215,0,0.2); }
.hud-res-pct { margin-left: auto; font-size: 0.6rem; color: rgba(255,215,0,0.6); font-weight: 700; }
.hud-res-track {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.hud-res-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--level-color, #FFD700), #fff8);
  border-radius: 3px;
  transition: width 0.8s ease;
}
.hud-res-status {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.6);
  margin: 4px 0 6px;
  font-style: italic;
}
.hud-rlq-gate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.62rem;
  background: rgba(255,215,0,0.05);
  border: 1px solid rgba(255,215,0,0.12);
  border-radius: 7px;
  padding: 3px 8px;
  margin-top: 2px;
}
.hud-rlq-gate-icon { color: rgba(255,215,0,0.8); }
.hud-rlq-gate-val { color: var(--gold); font-weight: 700; }

/* ── BOTTOM-RIGHT: TRADABLE CAPITAL ──────────────────────────── */
.hud-capital-label {
  font-size: 0.5rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,215,0,0.45);
  font-weight: 700;
  margin-bottom: 2px;
}
.hud-capital-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}
.hud-capital-sub {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.hud-capital-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 0.65rem;
}
