/* ============================================================
   CLASH — In-Game HUD, Abilities Bar, Minimap & Status
   File: css/hud.css
   ============================================================ */

/* ── Player HUD (Unified MOBA Dashboard) ────────────────── */
.player-hud {
  position: fixed;
  bottom: var(--hud-bottom);
  background: linear-gradient(135deg, rgba(2, 10, 22, 0.2) 0%, rgba(1, 4, 9, 0.45) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(0, 163, 224, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 20px rgba(0, 163, 224, 0.12);
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: var(--hud-padding);
  gap: var(--hud-gap);
  z-index: 10;
  transition: all 0.3s var(--ease-out);
}

/* ── HUD Controls Group & Action Buttons ───────────────── */
.hud-controls-group {
  position: absolute;
  top: -28px;
  right: 16px;
  display: flex;
  align-items: center;
  background: rgba(2, 10, 22, 0.9);
  border: 1.5px solid rgba(0, 163, 224, 0.35);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.65);
  z-index: 20;
  overflow: hidden;
}

.player-hud.p2-side .hud-controls-group {
  border-color: rgba(239, 68, 68, 0.4);
}

.hud-ctrl-btn {
  width: 32px;
  height: 26px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.18s var(--ease-out);
  outline: none;
  position: relative;
}

.hud-ctrl-btn:last-child {
  border-right: none;
}

.hud-ctrl-btn:hover {
  background: rgba(0, 163, 224, 0.25);
  color: var(--gold);
}

.player-hud.p2-side .hud-ctrl-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.hud-ctrl-btn.active {
  color: #38bdf8;
}

.hud-ctrl-btn.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.player-hud.p2-side .hud-ctrl-btn.active {
  color: #f87171;
}

.player-hud.p2-side .hud-ctrl-btn.active::after {
  background: #f87171;
  box-shadow: 0 0 6px #f87171;
}

.hud-drag-handle {
  cursor: grab;
  user-select: none;
}

.hud-drag-handle:active {
  cursor: grabbing;
}

.hud-ctrl-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease-out);
}

/* Rotate arrow when minimized to point up */
.player-hud.minimized .hud-toggle-btn svg {
  transform: rotate(180deg);
}

/* ── HUD Minimized States ── */
.player-hud.minimized {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.player-hud.minimized::before {
  display: none !important;
}

.player-hud.pos-bottom-center.minimized,
.player-hud.centered.minimized {
  bottom: 0 !important;
  transform: translateX(-50%) translateY(calc(100% - 30px)) scale(0.78) !important;
}

.player-hud.pos-bottom-left.minimized,
.player-hud.p1-side.minimized {
  bottom: 0 !important;
  transform: translateY(calc(100% - 30px)) scale(0.78) !important;
}

/* Only in bottom-left or bottom-center does the minimize button appear */
.player-hud.pos-custom .hud-toggle-btn {
  display: none !important;
}

.player-hud.pos-custom .hud-ghost-btn {
  border-right: none !important;
}

.player-hud.minimized .hud-controls-group {
  top: -26px;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 163, 224, 0.3);
}

.player-hud.minimized .respawn-indicators {
  top: -22px;
}

.player-hud::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, var(--blue-hex-subtle), transparent 70%);
  pointer-events: none;
}

/* ── HUD Placement Configurations on PC ── */
/* 1. Bottom-Left (Recommended: leaves bottom frog & center river 100% clear) */
.player-hud.pos-bottom-left {
  left: 20px;
  right: auto;
  bottom: var(--hud-bottom);
  top: auto;
  transform: scale(0.78);
  transform-origin: bottom left;
  width: auto;
  max-width: 650px;
}

/* 2. Bottom-Center (Classic MOBA Dashboard) */
.player-hud.pos-bottom-center,
.player-hud.centered {
  left: 50%;
  right: auto;
  bottom: var(--hud-bottom);
  top: auto;
  transform: translateX(-50%) scale(0.78);
  transform-origin: bottom center;
  width: calc(100% - 40px);
  max-width: 680px;
}

/* 4. Custom Draggable Mode */
.player-hud.pos-custom {
  bottom: auto;
  right: auto;
  transform: scale(0.78);
  transform-origin: top left;
  width: auto;
  max-width: 680px;
}

/* ── Smart Auto-Dodge & Combat Ghosting ── */
/* When hero fights at bottom frog pit with centered HUD, smoothly slide to the left */
.player-hud.hud-auto-dodged {
  transform: translateX(calc(-50% - 330px)) scale(0.78) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 163, 224, 0.3) !important;
}

/* Combat Ghosting: see-through and click-through when hero/frog is occluded behind HUD */
.player-hud.combat-ghost {
  opacity: 0.22 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(2, 10, 22, 0.15) !important;
  border-color: rgba(0, 163, 224, 0.18) !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.player-hud.combat-ghost .bar-val,
.player-hud.combat-ghost .portrait-level-badge,
.player-hud.combat-ghost .abil .k {
  opacity: 0.95 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}

.player-hud.combat-ghost:hover {
  opacity: 0.82 !important;
  pointer-events: auto !important;
}

/* ── Manual Ghost Mode (matches pos-custom minimized: ghosted & slightly smaller) ── */
.player-hud.ghost-mode {
  opacity: 0.3 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: all 0.25s var(--ease-out) !important;
}

.player-hud.ghost-mode::before {
  display: none !important;
}

.player-hud.pos-bottom-left.ghost-mode {
  transform: scale(0.65) !important;
  transform-origin: bottom left !important;
}

.player-hud.pos-bottom-center.ghost-mode,
.player-hud.centered.ghost-mode {
  transform: translateX(-50%) scale(0.65) !important;
  transform-origin: bottom center !important;
}

.player-hud.pos-custom.ghost-mode {
  transform: scale(0.65) !important;
  transform-origin: top left !important;
}

.player-hud.pos-bottom-left.ghost-mode.minimized,
.player-hud.p1-side.ghost-mode.minimized {
  bottom: 0 !important;
  transform: translateY(calc(100% - 30px)) scale(0.65) !important;
}

.player-hud.pos-bottom-center.ghost-mode.minimized,
.player-hud.centered.ghost-mode.minimized {
  bottom: 0 !important;
  transform: translateX(-50%) translateY(calc(100% - 30px)) scale(0.65) !important;
}

.player-hud.ghost-mode:hover {
  opacity: 0.85 !important;
}

.player-hud.ghost-mode .hud-controls-group {
  opacity: 0.85;
}

.player-hud.ghost-mode .hud-controls-group:hover {
  opacity: 1;
}

/* Team Styling Variants */
.player-hud.p1-side {
  border-color: rgba(0, 163, 224, 0.28);
}

.player-hud.p2-side {
  border-color: rgba(239, 68, 68, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 20px rgba(239, 68, 68, 0.15);
}

/* ── HUD Placement Popover Menu (PC) ── */
.hud-pos-popover {
  position: fixed;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(8, 20, 32, 0.96) 0%, rgba(2, 8, 16, 0.98) 100%);
  border: 1.5px solid rgba(0, 163, 224, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 163, 224, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 12px 14px;
  min-width: 260px;
  color: var(--text-primary);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: hudPopoverFadeIn 0.18s ease-out;
}

@keyframes hudPopoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hud-pos-title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 700;
  border-bottom: 1px solid rgba(200, 155, 60, 0.25);
  padding-bottom: 6px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-pos-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  outline: none;
}

.hud-pos-opt:hover {
  background: rgba(0, 163, 224, 0.18);
  border-color: rgba(0, 163, 224, 0.5);
  color: #fff;
  transform: translateX(2px);
}

.hud-pos-opt.active {
  background: rgba(0, 163, 224, 0.25);
  border-color: #00a3e0;
  box-shadow: 0 0 10px rgba(0, 163, 224, 0.25);
}

.hud-pos-icon {
  font-size: 16px;
  color: var(--gold-light);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.hud-pos-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.hud-pos-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-light);
}

.hud-pos-desc {
  font-size: 10px;
  color: var(--text-secondary);
}

.hud-pos-badge {
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #4ade80;
  border-radius: 10px;
  margin-left: auto;
  font-weight: 600;
  white-space: nowrap;
}

.hud-pos-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.hud-pos-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 2px;
  user-select: none;
}

.hud-pos-checkbox-label input {
  accent-color: #00a3e0;
  cursor: pointer;
  width: 14px;
  height: 14px;
}

.hud-pos-reset {
  background: transparent;
  border: 1px dashed rgba(200, 155, 60, 0.3);
  border-radius: var(--radius-sm);
  color: var(--gold-dim);
  font-size: 10px;
  font-weight: 600;
  padding: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 2px;
  text-align: center;
}

.hud-pos-reset:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(200, 155, 60, 0.1);
}

/* ── In-game Toast Notification ── */
.hud-toast {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: linear-gradient(135deg, rgba(8, 24, 40, 0.94) 0%, rgba(2, 10, 20, 0.96) 100%);
  border: 1.5px solid rgba(0, 163, 224, 0.45);
  border-radius: 20px;
  padding: 7px 18px;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 163, 224, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  white-space: nowrap;
}

.hud-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Portrait Section ───────────────────────────────────── */
.portrait-container {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.first-blood-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.75), inset 0 0 6px rgba(239, 68, 68, 0.35);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.first-blood-ring::before,
.first-blood-ring::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5px;
  height: 8px;
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.9);
  border-radius: 1px;
}

.first-blood-ring::before {
  top: -8px;
}

.first-blood-ring::after {
  bottom: -8px;
}

.portrait-container.has-first-blood .first-blood-ring {
  opacity: 1;
  transform: scale(1);
  animation: fbRingPulse 2.2s ease-in-out infinite;
}

.portrait-container.has-first-blood .hero-portrait {
  border-color: #f87171 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 16px rgba(239, 68, 68, 0.6) !important;
}

@keyframes fbRingPulse {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.65), inset 0 0 5px rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
  }

  50% {
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.95), inset 0 0 9px rgba(239, 68, 68, 0.5);
    border-color: #fca5a5;
  }
}

.hero-portrait {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle at center, #0f1c2d 0%, #030712 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 10px var(--gold-glow);
  overflow: hidden;
}

.player-hud.p2-side .hero-portrait {
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 10px rgba(239, 68, 68, 0.3);
}

.hero-portrait svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.portrait-level-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #020911;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-light);
  font-family: var(--font-display);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.player-hud.p2-side .portrait-level-badge {
  border-color: #ef4444;
  color: #fca5a5;
}

/* ── HUD Center Group ───────────────────────────────────── */
.hud-center-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  max-width: 320px;
  min-width: 0;
}

.hud-vitals {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

/* ── Stat Bars ───────────────────────────────────────────── */
.bar-wrap {
  width: 100%;
  height: 15px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  position: relative;
}

.bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0) 50%,
      rgba(0, 0, 0, 0.25) 100%);
}

.bar-fill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  animation: bar-shine 4s infinite linear;
}

@keyframes bar-shine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(200%);
  }
}

.hp-f {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.mp-f {
  background: linear-gradient(90deg, #06b6d4 0%, #0891b2 100%);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

.xp-f {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.bar-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  pointer-events: none;
  letter-spacing: 0.5px;
}

.xp-bar-row {
  margin-top: -2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.xp-bar-row .bar-wrap {
  height: 6px;
}

.xp-bar-row .bar-val {
  display: none;
}

/* ── Abilities ───────────────────────────────────────────── */
.abil-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.abil {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #111827 0%, #030712 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.abil:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px var(--gold-glow), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.abil.on-cd {
  opacity: 0.5;
  pointer-events: none;
}

.abil .k {
  position: absolute;
  top: 3px;
  left: 3.5px;
  font-size: 8.5px;
  font-weight: 800;
  color: var(--gold-light);
  background: rgba(0, 0, 0, 0.8);
  border-radius: 3px;
  padding: 1px 3.5px;
  line-height: 1;
  border: 1px solid rgba(200, 155, 60, 0.4);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  z-index: 2;
  pointer-events: none;
}

.abil .mp {
  position: absolute;
  top: 3px;
  right: 3.5px;
  font-size: 8px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(3, 7, 18, 0.85);
  border-radius: 3px;
  padding: 1px 3.5px;
  line-height: 1;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  z-index: 2;
  pointer-events: none;
  letter-spacing: -0.2px;
}

.abil.no-mana .mp {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(30, 8, 12, 0.9);
}

.abil .n {
  position: absolute;
  bottom: 3px;
  left: 2px;
  right: 2px;
  font-size: 7.5px;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
  pointer-events: none;
  transition: color 0.15s ease;
}

.abil:hover .n {
  color: #f1f5f9;
}

.abil .cdo {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.78);
  border-radius: calc(var(--radius-md) - 1.5px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  z-index: 3;
}

.abil .cd-sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(rgba(0, 0, 0, 0.7) var(--cd-angle, 0deg), transparent var(--cd-angle, 0deg));
  border-radius: calc(var(--radius-md) - 1.5px);
  pointer-events: none;
  z-index: 1;
  display: none;
}

/* ── Stats & Gold Panel ─────────────────────────────────── */
.hud-stats-gold {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 90px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 14px;
}

.stats-mini-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
}

.stat-mini span:last-child {
  font-weight: 800;
  color: var(--text-primary);
}

.stat-lbl {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.gold-mini-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 5px;
}

.gold-mini-wrap svg {
  width: 14px;
  height: 14px;
  fill: #fbbf24;
  animation: coin-spin 5s infinite linear;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.4));
}

.gold-mini-wrap .gold-val {
  color: var(--gold-light);
  font-size: 16px;
  font-weight: 900;
  font-family: var(--font-display);
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.35);
  line-height: 1;
}

@keyframes coin-spin {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

/* ── Minimap ─────────────────────────────────────────────── */
#minimap {
  position: fixed;
  bottom: 20px;
  right: 20px;
  border: 1.5px solid rgba(0, 163, 224, 0.22);
  border-radius: var(--radius-lg);
  z-index: 10;
  background: linear-gradient(135deg, rgba(2, 10, 22, 0.2) 0%, rgba(1, 4, 9, 0.45) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 20px rgba(0, 163, 224, 0.12);
  width: 180px;
  height: 90px;
  max-width: 28vw;
  cursor: pointer;
}


/* ── Match Timer ─────────────────────────────────────────── */
.match-timer {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: linear-gradient(135deg, rgba(2, 10, 22, 0.45) 0%, rgba(1, 4, 9, 0.75) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.2px solid rgba(0, 163, 224, 0.32);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 15px rgba(0, 163, 224, 0.15);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: clamp(12px, 1.8vw, 14px);
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 14px;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  pointer-events: auto;
}

.match-timer-content {
  padding: 0 5px;
  font-weight: 800;
  color: var(--gold-light);
}

/* ── Jungle Slayer Indicators ───────────────────────────── */
.jungle-indicator-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 11px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: help;
  user-select: none;
  position: relative;
}

.jungle-badge-type {
  font-weight: 900;
  font-size: 11px;
}

.jungle-badge-slayer {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  line-height: 1;
}

/* AS Monster Badge (Cyan Theme) */
.jungle-indicator-badge.as-indicator {
  border: 1.2px solid rgba(0, 240, 255, 0.5);
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.18) 0%, rgba(2, 12, 24, 0.85) 100%);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25), inset 0 0 4px rgba(0, 240, 255, 0.15);
  color: #00f0ff;
}

.jungle-indicator-badge.as-indicator .jungle-badge-type {
  color: #00f0ff;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.7);
}

/* AD Monster Badge (Red Theme) */
.jungle-indicator-badge.ad-indicator {
  border: 1.2px solid rgba(255, 59, 48, 0.5);
  background: radial-gradient(circle at center, rgba(255, 59, 48, 0.18) 0%, rgba(24, 4, 6, 0.85) 100%);
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.25), inset 0 0 4px rgba(255, 59, 48, 0.15);
  color: #ff3b30;
}

.jungle-indicator-badge.ad-indicator .jungle-badge-type {
  color: #ff3b30;
  text-shadow: 0 0 6px rgba(255, 59, 48, 0.7);
}

/* Unslain State */
.jungle-indicator-badge.unslain {
  opacity: 0.8;
}

.jungle-indicator-badge.unslain .jungle-badge-slayer {
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.jungle-indicator-badge.unslain:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* Slain State Glow & Badges */
.jungle-indicator-badge.slain {
  opacity: 1;
}

.jungle-indicator-badge.slain-p1,
.jungle-indicator-badge.slain-ally {
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6), inset 0 0 6px rgba(56, 189, 248, 0.35);
}

.jungle-indicator-badge.slain-p1 .jungle-badge-slayer,
.jungle-indicator-badge.slain-ally .jungle-badge-slayer {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.7);
}

.jungle-indicator-badge.slain-p2,
.jungle-indicator-badge.slain-enemy {
  border-color: #f43f5e;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.6), inset 0 0 6px rgba(244, 63, 94, 0.35);
}

.jungle-indicator-badge.slain-p2 .jungle-badge-slayer,
.jungle-indicator-badge.slain-enemy .jungle-badge-slayer {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  box-shadow: 0 0 6px rgba(244, 63, 94, 0.7);
}

/* ── Exit Button ─────────────────────────────────────────── */
.exit-btn {
  position: fixed;
  top: 12px;
  left: 16px;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.95) 0%, rgba(3, 6, 10, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.exit-btn:hover {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}



/* ── Live Performance & FPS Badge ─────────────────────── */
.fps-badge {
  position: fixed;
  top: 12px;
  right: 60px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  height: 36px;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.95) 0%, rgba(3, 6, 10, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  z-index: 45;
  pointer-events: none;
  user-select: none;
  transition: border-color 0.2s, color 0.2s;
}

.fps-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.fps-unit {
  font-size: 9px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.fps-badge.fps-good .fps-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.fps-badge.fps-good .fps-val {
  color: #34d399;
}

.fps-badge.fps-medium .fps-dot {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.fps-badge.fps-medium .fps-val {
  color: #fbbf24;
}

.fps-badge.fps-low .fps-dot {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.fps-badge.fps-low .fps-val {
  color: #f87171;
}

/* ── Audio Mute Toggle Button ────────────────────────────── */
.audio-mute-btn {
  position: fixed;
  top: 12px;
  right: 16px;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.95) 0%, rgba(3, 6, 10, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.audio-mute-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.35) 100%);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.audio-mute-btn.muted {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, rgba(30, 12, 14, 0.95) 0%, rgba(18, 5, 7, 0.98) 100%);
}

.audio-mute-btn.muted:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(185, 28, 28, 0.4) 100%);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}


/* ── Kill Feed ───────────────────────────────────────────── */
.kf {
  display: none !important;
  position: fixed;
  top: 50px;
  right: 16px;
  z-index: 10;
  pointer-events: none;
}

.km {
  background: var(--bg-panel);
  border: 1.5px solid var(--border-gold);
  border-left: 4px solid var(--gold);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: clamp(11px, 1.8vw, 12.5px);
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: kf-enter 0.25s var(--ease-spring), kf-exit 3.2s forwards;
}

@keyframes kf-enter {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes kf-exit {

  0%,
  80% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
}

/* ── Controls Hint ───────────────────────────────────────── */
.ch {
  position: fixed;
  top: 50px;
  left: 16px;
  z-index: 10;
  background: linear-gradient(135deg, rgba(2, 10, 22, 0.2) 0%, rgba(1, 4, 9, 0.45) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(0, 163, 224, 0.22);
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 2;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 20px rgba(0, 163, 224, 0.12);
  transition: opacity 0.6s ease;
  max-width: calc(100% - 32px);
}

.ch kbd {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--gold);
  font-weight: 700;
  font-size: 10px;
  font-family: var(--font-body);
}


/* ── Respawn & Buff Indicators ───────────────────────────── */
.respawn-indicators {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  pointer-events: none;
  z-index: 25;
}

.respawn-dot {
  width: 11px;
  height: 11px;
  border: 1.8px solid #00a3e0;
  border-radius: 50%;
  background: rgba(2, 10, 22, 0.85);
  box-shadow: 0 0 8px rgba(0, 163, 224, 0.6), inset 0 0 4px rgba(0, 163, 224, 0.3);
  transition: all 0.25s var(--ease-out);
}

.player-hud.p2-side .respawn-dot {
  border-color: #ef4444;
  background: rgba(15, 4, 4, 0.85);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6), inset 0 0 4px rgba(239, 68, 68, 0.3);
}

.respawn-dot.active {
  background-color: #00f0ff;
  border-color: #ffffff;
  box-shadow: 0 0 12px #00f0ff, 0 0 6px rgba(0, 240, 255, 0.8);
}

.player-hud.p2-side .respawn-dot.active {
  background-color: #f43f5e;
  border-color: #ffffff;
  box-shadow: 0 0 12px #f43f5e, 0 0 6px rgba(244, 63, 94, 0.8);
}

.respawn-dot.active.tier2,
.player-hud.p2-side .respawn-dot.active.tier2 {
  background-color: #fbbf24;
  border-color: #ffffff;
  box-shadow: 0 0 14px #f59e0b, 0 0 8px rgba(251, 191, 36, 0.95);
}

.hp-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.buffs-container {
  position: absolute;
  top: -30px;
  left: 10px;
  display: flex;
  gap: 6px;
  pointer-events: none;
  z-index: 12;
}

.player-hud.p1-side .buffs-container {
  left: 10px;
  right: auto;
}

.player-hud.p2-side .buffs-container {
  left: auto;
  right: 10px;
}

.buff-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.65);
  position: relative;
  animation: buff-pulse 1.5s infinite alternate ease-in-out;
}

@keyframes buff-pulse {
  from {
    transform: scale(1);
    filter: brightness(1);
  }

  to {
    transform: scale(1.05);
    filter: brightness(1.15);
  }
}

.buff-icon.red {
  background: radial-gradient(circle, #f87171 0%, #991b1b 100%);
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.buff-icon.blue {
  background: radial-gradient(circle, #60a5fa 0%, #1e40af 100%);
  border-color: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.buff-icon.black {
  background: radial-gradient(circle, #52525b 0%, #18181b 100%);
  border-color: #3f3f46;
  box-shadow: 0 0 10px rgba(63, 63, 70, 0.5);
}

.buff-icon.invis {
  background: radial-gradient(circle, #c084fc 0%, #7e22ce 100%);
  border-color: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.7);
}

.buff-icon.cloak-ready {
  background: radial-gradient(circle, #818cf8 0%, #3730a3 100%);
  border-color: #6366f1;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.buff-count {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: #09090b;
  border: 1px solid var(--gold);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  font-size: 8px;
  font-weight: 900;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}


/* ============ ACTIVE ITEMS BAR & SHOP TABS ============ */
.active-items-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 5px;
  margin-bottom: 2px;
  width: 100%;
}

.active-slot {
  position: relative;
  width: 28px;
  height: 28px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.15s ease;
}

.active-slot.owned {
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.18);
}

.active-slot.owned:hover {
  transform: translateY(-1px);
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

.active-slot .act-k {
  position: absolute;
  top: 1px;
  left: 2px;
  font-size: 8px;
  font-weight: 900;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
  font-family: var(--font-display, sans-serif);
}

.active-slot.owned .act-k {
  color: #fef08a;
}

.active-slot .act-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.25;
}

.active-slot.owned .act-icon {
  opacity: 1;
}

.active-slot .act-sweep {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: rgba(0, 0, 0, 0.65);
  pointer-events: none;
  z-index: 3;
}

.active-slot .act-cd {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #f87171;
  text-shadow: 0 0 4px #000;
  z-index: 4;
  pointer-events: none;
}

.active-slot.on-cd {
  filter: grayscale(0.6);
}


/* ── In-Game HUD Lane Badges ──────────────────────── */
.hud-role-tag {
  position: absolute;
  top: -27px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display, sans-serif);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hud-role-tag.blue {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.hud-role-tag.red {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.6);
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.3);
}
