/**
 * Indicators Spore - Spore-style game indicators
 * 
 * Organic, gradient-based indicator system with animations
 * Requirements: 4.1, 4.4, 4.5
 */

/* ============================================
   CSS Variables - Color Palette
   ============================================ */

:root {
  /* HP - Red gradient */
  --indicator-hp-primary: #ff4757;
  --indicator-hp-secondary: #ff6b81;
  --indicator-hp-glow: rgba(255, 71, 87, 0.6);

  /* Energy - Blue gradient */
  --indicator-energy-primary: #00d4ff;
  --indicator-energy-secondary: #00ffaa;
  --indicator-energy-glow: rgba(0, 212, 255, 0.6);

  /* Level - Golden gradient */
  --indicator-level-primary: #ffd700;
  --indicator-level-secondary: #ffed4e;
  --indicator-level-glow: rgba(255, 215, 0, 0.6);

  /* EXP - Purple gradient */
  --indicator-exp-primary: #9d00ff;
  --indicator-exp-secondary: #c44dff;
  --indicator-exp-glow: rgba(157, 0, 255, 0.6);

  /* Belok - Green gradient */
  --indicator-belok-primary: #7cfc00;
  --indicator-belok-secondary: #00ff88;
  --indicator-belok-glow: rgba(124, 252, 0, 0.6);

  /* Hormones - Pink gradient */
  --indicator-hormones-primary: #ff1493;
  --indicator-hormones-secondary: #ff69b4;
  --indicator-hormones-glow: rgba(255, 20, 147, 0.6);

  /* Base colors */
  --indicator-bg: rgba(10, 21, 32, 0.85);
  --indicator-border: rgba(255, 255, 255, 0.15);
  --indicator-text: #ffffff;
  --indicator-text-secondary: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Main Container - Compact Horizontal Top Layout
   ============================================ */

.indicators-spore {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

/* Hide indicators when menu is open - MAXIMUM PRIORITY */
.indicators-spore.indicators-hidden,
div.indicators-spore.indicators-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  z-index: -9999 !important;
  pointer-events: none !important;
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
}

/* Hide all children too */
.indicators-spore.indicators-hidden *,
div.indicators-spore.indicators-hidden * {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.indicators-spore-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  pointer-events: auto;
  max-width: 98vw;
  padding: 0 8px;
  overflow-x: auto;
  overflow-y: hidden;
  /* Скрыть скроллбар но оставить возможность прокрутки */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.indicators-spore-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* ============================================
   Base Indicator Component
   Requirements: 1.3, 1.4, 1.5, 8.3, 8.4
   Task 8.2: Optimized animations with GPU acceleration
   ============================================ */

.indicator-spore {
  position: relative;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 8px;
  min-width: 85px;
  flex-shrink: 0;
  
  /* Semi-transparent background with blur (Req 1.5) */
  background: var(--indicator-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* Organic capsule shape (Req 1.3, 8.3) */
  border-radius: 50px;
  
  /* Gradient border effect (Req 8.4) */
  border: 1.5px solid transparent;
  background-clip: padding-box;
  box-shadow: 
    0 2px 12px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  
  /* Smooth transitions - use transform instead of position (Task 8.2) */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* GPU acceleration with translateZ (Task 8.2) */
  transform: translate3d(0, 0, 0);
  
  /* Use will-change for properties that will animate (Task 8.2) */
  will-change: transform;
}

.indicator-spore:hover {
  /* Use translate3d for GPU acceleration (Task 8.2) */
  transform: translate3d(5px, 0, 0);
  box-shadow: 
    0 6px 30px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Task 12.2: Focus state for keyboard navigation (Req 6.1, 6.2, 6.3) */
.indicator-spore:focus {
  outline: none;
  /* Use translate3d for GPU acceleration (Task 8.2) */
  transform: translate3d(5px, 0, 0);
  box-shadow: 
    0 6px 30px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px rgba(255, 255, 255, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Focus-visible for better keyboard navigation UX */
.indicator-spore:focus-visible {
  outline: none;
  transform: translate3d(5px, 0, 0);
  box-shadow: 
    0 6px 30px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px rgba(255, 255, 255, 0.5),
    0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Type-specific gradient borders */
.indicator-hp {
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px var(--indicator-hp-primary),
    0 0 20px rgba(255, 71, 87, 0.2);
}

.indicator-energy {
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px var(--indicator-energy-primary),
    0 0 20px rgba(0, 212, 255, 0.2);
}

.indicator-level {
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px var(--indicator-level-primary),
    0 0 20px rgba(255, 215, 0, 0.2);
}

.indicator-exp {
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px var(--indicator-exp-primary),
    0 0 20px rgba(157, 0, 255, 0.2);
}

.indicator-belok {
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px var(--indicator-belok-primary),
    0 0 20px rgba(124, 252, 0, 0.2);
}

.indicator-hormones {
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px var(--indicator-hormones-primary),
    0 0 20px rgba(255, 20, 147, 0.2);
}

/* ============================================
   Icon
   Requirements: 1.2, 1.3, 8.2
   Task 8.2: GPU-accelerated icon animations
   ============================================ */

.indicator-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 12px;
  
  /* Circular container (Req 1.3) */
  border-radius: 50%;
  
  /* Base gradient background */
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
  
  /* Prevent shrinking */
  flex-shrink: 0;
  
  /* Smooth transitions with GPU acceleration (Task 8.2) */
  transition: transform 0.3s ease;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.indicator-spore:hover .indicator-icon {
  /* Use scale3d for GPU acceleration (Task 8.2) */
  transform: scale3d(1.1, 1.1, 1);
}

/* ============================================
   Content Area
   Requirements: 1.2, 8.2
   ============================================ */

.indicator-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* Typography for labels (Req 1.2, 8.2) */
.indicator-label {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  color: var(--indicator-text-secondary);
  font-family: 'Arial', sans-serif;
  line-height: 1;
  margin: 0;
  padding: 0;
}

/* ============================================
   Progress Bar
   Requirements: 1.3, 2.5, 8.1
   Task 8.2: GPU-accelerated progress bars
   ============================================ */

.indicator-bar {
  position: relative;
  width: 100%;
  height: 4px;
  
  /* Capsule shape (Req 1.3) */
  border-radius: 50px;
  
  /* Background track */
  background: rgba(255, 255, 255, 0.1);
  
  /* Subtle inner shadow for depth */
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  
  overflow: hidden;
}

.indicator-fill {
  height: 100%;
  
  /* Capsule shape (Req 1.3) */
  border-radius: 50px;
  
  /* Smooth width transitions (Req 2.5) */
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  position: relative;
  
  /* GPU acceleration with translate3d (Task 8.2) */
  transform: translate3d(0, 0, 0);
  
  /* Use will-change for width animation (Task 8.2) */
  will-change: width;
  
  /* Enable hardware acceleration (Task 8.2) */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Progress bar type-specific gradients (Req 8.1) */
.indicator-fill[data-type="hp"] {
  background: linear-gradient(90deg, 
    var(--indicator-hp-primary), 
    var(--indicator-hp-secondary));
  box-shadow: 
    0 0 15px var(--indicator-hp-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.indicator-fill[data-type="energy"] {
  background: linear-gradient(90deg, 
    var(--indicator-energy-primary), 
    var(--indicator-energy-secondary));
  box-shadow: 
    0 0 15px var(--indicator-energy-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.indicator-fill[data-type="exp"] {
  background: linear-gradient(90deg, 
    var(--indicator-exp-primary), 
    var(--indicator-exp-secondary));
  box-shadow: 
    0 0 15px var(--indicator-exp-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Shine overlay effect (Req 2.5, 8.1) */
.indicator-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.6), 
    transparent);
  animation: indicatorShine 3s infinite;
  pointer-events: none;
}

@keyframes indicatorShine {
  0% {
    left: -100%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 200%;
    opacity: 0;
  }
}

/* ============================================
   Value Display
   Requirements: 1.2, 8.2
   ============================================ */

/* Typography for values (Req 1.2, 8.2) */
.indicator-value {
  font-size: 9px;
  font-weight: 700;
  color: var(--indicator-text);
  font-family: 'Arial', sans-serif;
  
  /* Proper spacing and alignment (Req 8.2) */
  display: flex;
  align-items: center;
  gap: 1px;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.indicator-value .current {
  color: var(--indicator-text);
}

.indicator-value .separator {
  opacity: 0.5;
  margin: 0 1px;
  color: var(--indicator-text-secondary);
}

.indicator-value .max {
  color: var(--indicator-text-secondary);
  font-weight: 600;
}

/* Large value display for Level, Belok, Hormones */
.indicator-value-large {
  font-size: 12px;
  font-weight: 700;
  color: var(--indicator-text);
  font-family: 'Arial', sans-serif;
  line-height: 1.1;
  margin: 0;
  padding: 0;
  
  /* Add subtle text shadow for better readability */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Glow Effect
   ============================================ */

.indicator-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ============================================
   Type-Specific Styling
   Requirements: 1.2, 1.3, 8.2
   ============================================ */

/* Icon gradients for each type (Req 1.3, 8.2) */
.indicator-hp .indicator-icon {
  background: radial-gradient(circle, var(--indicator-hp-glow), transparent);
}

.indicator-energy .indicator-icon {
  background: radial-gradient(circle, var(--indicator-energy-glow), transparent);
}

.indicator-level .indicator-icon {
  background: radial-gradient(circle, var(--indicator-level-glow), transparent);
}

.indicator-exp .indicator-icon {
  background: radial-gradient(circle, var(--indicator-exp-glow), transparent);
}

.indicator-belok .indicator-icon {
  background: radial-gradient(circle, var(--indicator-belok-glow), transparent);
}

.indicator-hormones .indicator-icon {
  background: radial-gradient(circle, var(--indicator-hormones-glow), transparent);
}

/* Proper spacing for indicators without progress bars (Req 8.2) */
.indicator-level .indicator-content,
.indicator-belok .indicator-content,
.indicator-hormones .indicator-content {
  justify-content: center;
  gap: 2px;
}

/* Ensure consistent alignment across all indicators */
.indicator-spore {
  align-items: center;
}

.indicator-content {
  justify-content: center;
}

/* ============================================
   Animations
   Requirements: 3.1, 3.2, 3.3, 3.4, 3.5, 8.5
   ============================================ */

/* Pulse animation for value changes (Req 3.1, 3.2, 3.3, 8.5)
   Task 8.2: Use scale3d for GPU acceleration */
@keyframes indicatorPulseIncrease {
  0%, 100% {
    transform: scale3d(1, 1, 1);
  }
  50% {
    transform: scale3d(1.05, 1.05, 1);
  }
}

@keyframes indicatorPulseDecrease {
  0%, 100% {
    transform: scale3d(1, 1, 1);
  }
  50% {
    transform: scale3d(0.98, 0.98, 1);
  }
}

.indicator-spore.pulse-increase {
  animation: indicatorPulseIncrease 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* GPU acceleration (Task 8.2) */
  will-change: transform;
}

.indicator-spore.pulse-decrease {
  animation: indicatorPulseDecrease 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* GPU acceleration (Task 8.2) */
  will-change: transform;
}

/* Type-specific pulse animations with colored glows (Req 3.1, 3.2, 3.3, 8.5) */
.indicator-hp.pulse-increase {
  animation: indicatorPulseIncrease 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px var(--indicator-hp-primary),
    0 0 30px var(--indicator-hp-glow) !important;
}

.indicator-hp.pulse-decrease {
  animation: indicatorPulseDecrease 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px var(--indicator-hp-primary),
    0 0 25px rgba(255, 71, 87, 0.8) !important;
}

.indicator-energy.pulse-increase {
  animation: indicatorPulseIncrease 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px var(--indicator-energy-primary),
    0 0 30px var(--indicator-energy-glow) !important;
}

.indicator-energy.pulse-decrease {
  animation: indicatorPulseDecrease 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px var(--indicator-energy-primary),
    0 0 25px rgba(0, 212, 255, 0.8) !important;
}

.indicator-exp.pulse-increase {
  animation: indicatorPulseIncrease 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px var(--indicator-exp-primary),
    0 0 30px var(--indicator-exp-glow) !important;
}

.indicator-belok.pulse-increase,
.indicator-hormones.pulse-increase {
  animation: indicatorPulseIncrease 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glow pulse for value increases */
@keyframes glowPulse {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
}

.indicator-spore.pulse-increase .indicator-glow {
  animation: glowPulse 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* HP-specific glow color */
.indicator-hp.pulse-increase .indicator-glow {
  background: var(--indicator-hp-glow);
}

/* Energy-specific glow color */
.indicator-energy.pulse-increase .indicator-glow {
  background: var(--indicator-energy-glow);
}

/* EXP-specific glow color */
.indicator-exp.pulse-increase .indicator-glow {
  background: var(--indicator-exp-glow);
}

/* Critical state animation for low HP (Req 3.1, 3.5) */
/* Faster pulse rate and increased glow intensity for critical state */
@keyframes criticalPulse {
  0%, 100% {
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.3),
      inset 0 0 0 1px var(--indicator-hp-primary),
      0 0 20px var(--indicator-hp-glow);
  }
  50% {
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.3),
      inset 0 0 0 2px var(--indicator-hp-primary),
      0 0 50px var(--indicator-hp-glow);
  }
}

@keyframes criticalGlow {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.indicator-hp.critical {
  animation: criticalPulse 0.8s infinite;
}

.indicator-hp.critical .indicator-glow {
  opacity: 1;
  background: var(--indicator-hp-glow);
  animation: criticalGlow 0.8s infinite;
}

/* Make the HP bar pulse in critical state */
.indicator-hp.critical .indicator-fill {
  animation: criticalBarPulse 0.8s infinite;
}

@keyframes criticalBarPulse {
  0%, 100% {
    box-shadow: 
      0 0 15px var(--indicator-hp-glow),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 
      0 0 30px var(--indicator-hp-glow),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
}

/* Level up animation (Req 3.4, 3.5)
   Task 8.2: Use scale3d and rotate3d for GPU acceleration
   Smooth, gentle animation with ease-out timing */
@keyframes levelUp {
  0% {
    transform: scale3d(1, 1, 1) rotate3d(0, 0, 1, 0deg);
    opacity: 1;
  }
  40% {
    transform: scale3d(1.15, 1.15, 1) rotate3d(0, 0, 1, 10deg);
    opacity: 1;
  }
  60% {
    transform: scale3d(1.1, 1.1, 1) rotate3d(0, 0, 1, -5deg);
    opacity: 1;
  }
  100% {
    transform: scale3d(1, 1, 1) rotate3d(0, 0, 1, 0deg);
    opacity: 1;
  }
}

@keyframes levelUpGlow {
  0% {
    opacity: 0;
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.3),
      inset 0 0 0 1px var(--indicator-level-primary),
      0 0 20px var(--indicator-level-glow);
  }
  50% {
    opacity: 1;
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.3),
      inset 0 0 0 2px var(--indicator-level-primary),
      0 0 50px var(--indicator-level-glow);
  }
  100% {
    opacity: 0;
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.3),
      inset 0 0 0 1px var(--indicator-level-primary),
      0 0 20px var(--indicator-level-glow);
  }
}

.indicator-level.level-up {
  animation: 
    levelUp 1s cubic-bezier(0.34, 1.56, 0.64, 1),
    levelUpGlow 1s ease-out;
  /* GPU acceleration (Task 8.2) */
  will-change: transform, opacity;
}

.indicator-level.level-up .indicator-icon {
  animation: levelUp 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* GPU acceleration (Task 8.2) */
  will-change: transform, opacity;
}

.indicator-level.level-up .indicator-glow {
  opacity: 1;
  background: var(--indicator-level-glow);
  animation: levelUpGlow 1s ease-out;
  /* GPU acceleration (Task 8.2) */
  will-change: opacity;
}

/* Golden particle burst for level up
   Task 8.2: Use translate3d for GPU acceleration
   Smooth, gentle particle animation */
@keyframes levelUpParticleBurst {
  0% {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    opacity: 1;
  }
  70% {
    opacity: 0.8;
  }
  100% {
    transform: translate3d(var(--tx), var(--ty), 0) scale3d(0.2, 0.2, 1);
    opacity: 0;
  }
}

.level-up-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indicator-level-primary), var(--indicator-level-secondary));
  box-shadow: 0 0 8px var(--indicator-level-glow);
  animation: levelUpParticleBurst 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  pointer-events: none;
  /* GPU acceleration (Task 8.2) */
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Particle system for EXP bar (Req 2.5, 3.5)
   Task 8.2: GPU-accelerated particles */
.indicator-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  top: 0;
  left: 0;
  overflow: visible;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
  animation: particleFloat 1s ease-out forwards;
  /* GPU acceleration (Task 8.2) */
  will-change: transform, opacity;
  backface-visibility: hidden;
}

@keyframes particleFloat {
  0% {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, -20px, 0) scale3d(0, 0, 1);
    opacity: 0;
  }
}

/* ============================================
   Tooltip System
   Requirements: 6.1, 6.2, 6.3, 6.4, 8.1, 8.4
   ============================================ */

.indicator-tooltip {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  
  /* Semi-transparent background with blur (Req 6.3, 8.4) */
  background: var(--indicator-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* Organic capsule shape (Req 6.3, 8.1) */
  border-radius: 12px;
  
  /* Gradient border (Req 6.3, 8.4) */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  
  /* Smooth fade animation (Req 6.4) - use translate3d for GPU (Task 8.2) */
  opacity: 0;
  transform: translate3d(0, -5px, 0);
  transition: opacity 0.2s ease, transform 0.2s ease;
  
  /* GPU acceleration (Task 8.2) */
  will-change: opacity, transform;
  backface-visibility: hidden;
  
  /* Minimum width */
  min-width: 200px;
  max-width: 300px;
  
  /* Padding */
  padding: 0;
}

.indicator-tooltip.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Tooltip arrow (Req 6.1) */
.indicator-tooltip-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  
  /* Arrow pointing left (default position is to the right of indicator) */
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px 8px 8px 0;
  border-color: transparent var(--indicator-bg) transparent transparent;
  
  /* Add subtle glow */
  filter: drop-shadow(-2px 0 4px rgba(0, 0, 0, 0.3));
}

/* Arrow for left-positioned tooltip */
.indicator-tooltip.left .indicator-tooltip-arrow {
  left: auto;
  right: -8px;
  border-width: 8px 0 8px 8px;
  border-color: transparent transparent transparent var(--indicator-bg);
  filter: drop-shadow(2px 0 4px rgba(0, 0, 0, 0.3));
}

/* Tooltip content area (Req 6.1, 6.2) */
.indicator-tooltip-content {
  padding: 12px 16px;
  color: var(--indicator-text);
  font-family: 'Arial', sans-serif;
}

/* Tooltip title */
.tooltip-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--indicator-text);
  margin-bottom: 8px;
  
  /* Gradient text effect (Spore style) */
  background: linear-gradient(135deg, var(--indicator-text), rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tooltip value display */
.tooltip-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--indicator-text);
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Tooltip info section */
.tooltip-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tooltip row */
.tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* Tooltip label */
.tooltip-label {
  color: var(--indicator-text-secondary);
  font-weight: 600;
}

/* Tooltip data */
.tooltip-data {
  color: var(--indicator-text);
  font-weight: 700;
}

/* Status indicators in tooltips */
.tooltip-data.critical {
  color: var(--indicator-hp-primary);
  text-shadow: 0 0 8px var(--indicator-hp-glow);
}

.tooltip-data.normal {
  color: var(--indicator-energy-primary);
  text-shadow: 0 0 8px var(--indicator-energy-glow);
}

/* Fallback for backdrop-filter in tooltips */
@supports not (backdrop-filter: blur(10px)) {
  .indicator-tooltip {
    background: rgba(10, 21, 32, 0.98);
  }
}

/* ============================================
   Responsive Design
   Requirements: 5.1, 5.2, 5.3, 5.4, 5.5
   ============================================ */

/* Desktop styles (769px+) - Compact horizontal indicators
   Requirements: 5.1, 5.4
   ============================================ */
@media (min-width: 769px) {
  .indicators-spore {
    top: 8px;
  }
  
  .indicators-spore-container {
    gap: 5px;
  }
  
  .indicator-spore {
    padding: 4px 9px;
    min-width: 90px;
    gap: 5px;
  }
  
  .indicator-icon {
    width: 20px;
    height: 20px;
    font-size: 13px;
  }
  
  .indicator-label {
    font-size: 8px;
  }
  
  .indicator-value {
    font-size: 9px;
  }
  
  .indicator-value-large {
    font-size: 13px;
  }
  
  .indicator-bar {
    height: 5px;
  }
  
  /* All indicators visible on desktop (Req 5.1, 5.4) */
  .indicator-hp,
  .indicator-energy,
  .indicator-level,
  .indicator-exp,
  .indicator-belok,
  .indicator-hormones {
    display: flex;
  }
}

/* Tablet styles (481-768px) - Compact horizontal indicators
   Requirements: 5.1, 5.2, 5.5
   ============================================ */
@media (min-width: 481px) and (max-width: 768px) {
  .indicators-spore {
    top: 8px;
  }
  
  /* Adjusted spacing (Req 5.2, 5.5) */
  .indicators-spore-container {
    gap: 4px;
  }
  
  /* Compact indicators (Req 5.1, 5.2) */
  .indicator-spore {
    padding: 4px 8px;
    min-width: 85px;
    gap: 5px;
  }
  
  .indicator-icon {
    width: 18px;
    height: 18px;
    font-size: 12px;
  }
  
  /* Smaller fonts (Req 5.2, 5.5) */
  .indicator-label {
    font-size: 7px;
    letter-spacing: 0.2px;
  }
  
  .indicator-value {
    font-size: 9px;
  }
  
  .indicator-value-large {
    font-size: 12px;
  }
  
  .indicator-bar {
    height: 4px;
  }
  
  /* Hide Hormones on tablet to save space (Req 5.1) */
  .indicator-hp,
  .indicator-energy,
  .indicator-level,
  .indicator-exp,
  .indicator-belok {
    display: flex;
  }
  
  .indicator-hormones {
    display: none !important;
  }
  
  /* Slightly reduce hover effect on tablet - use translate3d (Task 8.2) */
  .indicator-spore:hover {
    transform: translate3d(2px, 0, 0);
  }
}

/* Mobile styles (< 480px) - Very compact indicators
   Requirements: 5.2, 5.3, 5.4, 5.5
   ============================================ */
@media (max-width: 480px) {
  .indicators-spore {
    top: 6px;
  }
  
  /* Minimal spacing (Req 5.2, 5.5) */
  .indicators-spore-container {
    gap: 3px;
    flex-wrap: nowrap;
  }
  
  /* Very compact indicators (Req 5.2, 5.3) */
  .indicator-spore {
    padding: 3px 7px;
    min-width: 75px;
    gap: 4px;
  }
  
  /* Smaller icons (Req 5.3, 5.5) */
  .indicator-icon {
    width: 16px;
    height: 16px;
    font-size: 11px;
  }
  
  /* Smaller fonts for mobile (Req 5.2, 5.5) */
  .indicator-label {
    font-size: 7px;
    letter-spacing: 0.1px;
  }
  
  .indicator-value {
    font-size: 8px;
  }
  
  .indicator-value-large {
    font-size: 11px;
  }
  
  .indicator-bar {
    height: 3px;
  }
  
  /* Hide Belok and Hormones on mobile (Req 5.2, 5.3) */
  .indicator-belok,
  .indicator-hormones {
    display: none !important;
  }
  
  /* Keep essential indicators visible (Req 5.3, 5.4) */
  .indicator-hp,
  .indicator-energy,
  .indicator-level,
  .indicator-exp {
    display: flex;
  }
  
  /* Disable hover effects on mobile - use translate3d (Task 8.2) */
  .indicator-spore:hover {
    transform: translate3d(0, 0, 0);
  }
  
  /* Adjust tooltip positioning for mobile */
  .indicator-tooltip {
    min-width: 140px;
    max-width: 200px;
    font-size: 10px;
  }
  
  .tooltip-title {
    font-size: 11px;
    margin-bottom: 5px;
  }
  
  .tooltip-value {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .tooltip-row {
    font-size: 9px;
  }
  
  /* Reduce animation intensity on mobile for performance */
  .indicator-spore.pulse-increase,
  .indicator-spore.pulse-decrease {
    animation-duration: 0.3s;
  }
  
  .indicator-level.level-up {
    animation-duration: 0.5s;
  }
  
  /* Simplify shadows on mobile for performance */
  .indicator-spore {
    box-shadow: 
      0 1px 8px rgba(0, 0, 0, 0.3),
      inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  
  .indicator-hp {
    box-shadow: 
      0 1px 8px rgba(0, 0, 0, 0.3),
      inset 0 0 0 1px var(--indicator-hp-primary);
  }
  
  .indicator-energy {
    box-shadow: 
      0 1px 8px rgba(0, 0, 0, 0.3),
      inset 0 0 0 1px var(--indicator-energy-primary);
  }
  
  .indicator-level {
    box-shadow: 
      0 1px 8px rgba(0, 0, 0, 0.3),
      inset 0 0 0 1px var(--indicator-level-primary);
  }
  
  .indicator-exp {
    box-shadow: 
      0 1px 8px rgba(0, 0, 0, 0.3),
      inset 0 0 0 1px var(--indicator-exp-primary);
  }
}

/* ============================================
   High Contrast Mode Support
   Requirements: 5.3, 5.4
   Task 12.3: Detect prefers-contrast and enhance visibility
   ============================================ */

@media (prefers-contrast: high) {
  /* Increase border visibility (Task 12.3) */
  .indicator-spore {
    border: 3px solid currentColor;
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.5),
      inset 0 0 0 2px rgba(255, 255, 255, 0.3);
  }
  
  /* Ensure text contrast (Task 12.3) */
  .indicator-label,
  .indicator-value,
  .indicator-value-large {
    color: #ffffff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
  }
  
  /* Increase fill opacity for better visibility */
  .indicator-fill {
    opacity: 1;
  }
  
  /* Enhance focus indicator */
  .indicator-spore:focus,
  .indicator-spore:focus-visible {
    border: 3px solid #ffffff;
    box-shadow: 
      0 6px 30px rgba(0, 0, 0, 0.6),
      inset 0 0 0 2px rgba(255, 255, 255, 0.5),
      0 0 0 4px rgba(255, 255, 255, 0.4);
  }
  
  /* Increase icon contrast */
  .indicator-icon {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
  }
  
  /* Enhance tooltip visibility */
  .indicator-tooltip {
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.6),
      inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  }
  
  /* Ensure tooltip text is readable */
  .tooltip-title,
  .tooltip-value,
  .tooltip-label,
  .tooltip-data {
    color: #ffffff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
  }
  
  /* Enhance progress bar visibility */
  .indicator-bar {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
  }
  
  /* Type-specific high contrast borders */
  .indicator-hp {
    border-color: var(--indicator-hp-primary);
  }
  
  .indicator-energy {
    border-color: var(--indicator-energy-primary);
  }
  
  .indicator-level {
    border-color: var(--indicator-level-primary);
  }
  
  .indicator-exp {
    border-color: var(--indicator-exp-primary);
  }
  
  .indicator-belok {
    border-color: var(--indicator-belok-primary);
  }
  
  .indicator-hormones {
    border-color: var(--indicator-hormones-primary);
  }
}

/* ============================================
   Browser Compatibility Fallbacks
   Requirements: 1.5, 8.4
   Task 13.1: Comprehensive fallbacks for older browsers
   ============================================ */

/* Fallback for backdrop-filter (Safari < 14, Firefox < 103, older browsers) */
@supports not (backdrop-filter: blur(10px)) {
  .indicator-spore {
    background: rgba(10, 21, 32, 0.95);
    /* Slightly more opaque to compensate for lack of blur */
  }
  
  .indicator-tooltip {
    background: rgba(10, 21, 32, 0.98);
    /* Even more opaque for tooltips to ensure readability */
  }
}

/* Fallback for CSS variables (IE 11 and older browsers) */
/* Define fallback colors inline for critical properties */
.indicator-spore {
  /* Fallback background before CSS variable */
  background: rgba(10, 21, 32, 0.85);
  background: var(--indicator-bg);
  
  /* Fallback text color */
  color: #ffffff;
  color: var(--indicator-text);
}

/* HP indicator fallbacks */
.indicator-hp {
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px #ff4757,
    0 0 20px rgba(255, 71, 87, 0.2);
}

.indicator-fill[data-type="hp"] {
  background: linear-gradient(90deg, #ff4757, #ff6b81);
  background: linear-gradient(90deg, 
    var(--indicator-hp-primary), 
    var(--indicator-hp-secondary));
  box-shadow: 
    0 0 15px rgba(255, 71, 87, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Energy indicator fallbacks */
.indicator-energy {
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px #00d4ff,
    0 0 20px rgba(0, 212, 255, 0.2);
}

.indicator-fill[data-type="energy"] {
  background: linear-gradient(90deg, #00d4ff, #00ffaa);
  background: linear-gradient(90deg, 
    var(--indicator-energy-primary), 
    var(--indicator-energy-secondary));
  box-shadow: 
    0 0 15px rgba(0, 212, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Level indicator fallbacks */
.indicator-level {
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px #ffd700,
    0 0 20px rgba(255, 215, 0, 0.2);
}

/* EXP indicator fallbacks */
.indicator-exp {
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px #9d00ff,
    0 0 20px rgba(157, 0, 255, 0.2);
}

.indicator-fill[data-type="exp"] {
  background: linear-gradient(90deg, #9d00ff, #c44dff);
  background: linear-gradient(90deg, 
    var(--indicator-exp-primary), 
    var(--indicator-exp-secondary));
  box-shadow: 
    0 0 15px rgba(157, 0, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Belok indicator fallbacks */
.indicator-belok {
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px #7cfc00,
    0 0 20px rgba(124, 252, 0, 0.2);
}

/* Hormones indicator fallbacks */
.indicator-hormones {
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px #ff1493,
    0 0 20px rgba(255, 20, 147, 0.2);
}

/* Fallback for CSS transforms (very old browsers) */
@supports not (transform: translate3d(0, 0, 0)) {
  .indicator-spore:hover {
    /* Use margin instead of transform for very old browsers */
    margin-left: 5px;
  }
  
  .indicator-tooltip.visible {
    /* Just show without transform animation */
    opacity: 1;
  }
  
  /* Disable complex animations that rely on transforms */
  .indicator-level.level-up {
    animation: none;
    /* Just show a simple opacity pulse instead */
    animation: simplePulse 0.8s ease;
  }
  
  @keyframes simplePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
  }
}

/* Fallback for CSS animations (extremely old browsers) */
@supports not (animation: none) {
  /* Disable all animations for browsers that don't support them */
  .indicator-spore,
  .indicator-spore *,
  .indicator-tooltip,
  .particle,
  .level-up-particle {
    animation: none !important;
  }
  
  /* Just show static states */
  .indicator-tooltip.visible {
    opacity: 1;
  }
}

/* Fallback for flexbox (IE 9 and older) */
@supports not (display: flex) {
  .indicators-spore-container {
    display: block;
  }
  
  .indicator-spore {
    display: block;
    margin-bottom: 12px;
  }
  
  .indicator-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
  }
  
  .indicator-content {
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 60px);
  }
  
  .indicator-value {
    display: inline;
  }
}

/* Fallback for border-radius (IE 8 and older) */
@supports not (border-radius: 50px) {
  .indicator-spore,
  .indicator-bar,
  .indicator-fill,
  .indicator-icon,
  .indicator-tooltip {
    /* Just use square corners for ancient browsers */
    border-radius: 0;
  }
}

/* Fallback for box-shadow (IE 8 and older) */
@supports not (box-shadow: 0 0 10px rgba(0, 0, 0, 0.5)) {
  .indicator-spore {
    /* Use border instead of shadow */
    border: 2px solid #333;
  }
  
  .indicator-tooltip {
    border: 2px solid #666;
  }
}

/* Fallback for rgba colors (IE 8 and older) */
@supports not (background: rgba(0, 0, 0, 0.5)) {
  .indicator-spore {
    /* Use solid color with opacity filter for IE */
    background: #0a1520;
    filter: alpha(opacity=85);
  }
  
  .indicator-tooltip {
    background: #0a1520;
    filter: alpha(opacity=95);
  }
}

/* Fallback for calc() (IE 8 and older) */
@supports not (width: calc(100% - 60px)) {
  .indicator-content {
    /* Use fixed width instead */
    width: 140px;
  }
}

/* Fallback for linear-gradient (IE 9 and older) */
@supports not (background: linear-gradient(90deg, #000, #fff)) {
  .indicator-fill[data-type="hp"] {
    /* Use solid color instead of gradient */
    background: #ff4757;
  }
  
  .indicator-fill[data-type="energy"] {
    background: #00d4ff;
  }
  
  .indicator-fill[data-type="exp"] {
    background: #9d00ff;
  }
  
  .indicator-icon {
    /* Use solid background instead of radial gradient */
    background: rgba(255, 255, 255, 0.2);
  }
}

/* Fallback for will-change (older browsers) */
@supports not (will-change: transform) {
  /* Just remove will-change declarations - browsers will still work */
  /* No action needed, property is just ignored */
}

/* Fallback for backface-visibility (older browsers) */
@supports not (backface-visibility: hidden) {
  /* Just remove backface-visibility declarations */
  /* No action needed, property is just ignored */
}

/* Fallback for pointer-events (IE 10 and older) */
@supports not (pointer-events: none) {
  .indicator-particles,
  .particle,
  .level-up-particle,
  .indicator-glow {
    /* Hide elements that should not be interactive */
    display: none;
  }
}

/* Fallback for CSS filters (IE and older browsers) */
@supports not (filter: blur(10px)) {
  .indicator-tooltip-arrow {
    /* Remove drop-shadow filter */
    filter: none;
  }
}

/* Fallback for background-clip: text (older browsers) */
@supports not (background-clip: text) or not (-webkit-background-clip: text) {
  .tooltip-title {
    /* Use solid color instead of gradient text */
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: #ffffff;
  }
}

/* ============================================
   Hide Old Indicators (Requirement 4.4)
   Task 10.1: Hide old indicator system
   ============================================ */

/* Hide old level indicator */
.level {
  display: none !important;
}

/* Hide old currency panel (Belok and Hormones) */
.currency-panel {
  display: none !important;
}

/* Hide old stat panel (HP and EP) */
.stat-panel {
  display: none !important;
}

.stat-panel-container {
  display: none !important;
}

/* Hide any other old indicator-related elements */
.indicator-text,
.indicator-value {
  /* Only hide if they're not part of the new Spore system */
  /* The new system uses .indicator-spore as parent, so this won't affect it */
}

/* Additional safety: hide old indicator bars if they exist */
.stat-bar:not(.indicator-spore .stat-bar) {
  display: none !important;
}

.stat-progress:not(.indicator-spore .stat-progress) {
  display: none !important;
}

/* Hide old skill container bars that might be used for indicators */
.skill-container .bar:not(.indicator-spore .bar) {
  /* Don't hide these as they're used in skill menu */
  /* Only target if they're being used as top-level indicators */
}

/* Ensure no conflicts with new system */
.indicators-spore,
.indicators-spore * {
  /* New system should always be visible */
  display: initial !important;
}

/* Re-enable display for new system components */
.indicators-spore {
  display: block !important;
}

.indicators-spore-container {
  display: flex !important;
}

.indicator-spore {
  display: flex !important;
}

.indicator-icon,
.indicator-content,
.indicator-bar,
.indicator-fill,
.indicator-value,
.indicator-value-large,
.indicator-label {
  /* Ensure new system components are visible */
  display: initial !important;
}

/* Specific overrides for flex containers in new system */
.indicators-spore-container {
  display: flex !important;
  flex-direction: column !important;
}

.indicator-spore {
  display: flex !important;
  flex-direction: row !important;
}

.indicator-content {
  display: flex !important;
  flex-direction: column !important;
}

.indicator-value {
  display: flex !important;
  flex-direction: row !important;
}


/* ============================================
   Responsive Design - Horizontal Top Layout
   Requirements: 5.1, 5.2, 5.3, 5.4, 5.5
   ============================================ */

/* Desktop - Full size (769px+) */
@media (min-width: 769px) {
  .indicators-spore-container {
    gap: 10px;
  }
  
  .indicator-spore {
    padding: 8px 14px;
    min-width: 140px;
  }
  
  .indicator-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
  }
  
  .indicator-label {
    font-size: 11px;
  }
  
  .indicator-value {
    font-size: 13px;
  }
  
  .indicator-value-large {
    font-size: 18px;
  }
}

/* Tablet - Medium size (481-768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .indicators-spore {
    top: 12px;
    max-width: 98vw;
  }
  
  .indicators-spore-container {
    gap: 8px;
  }
  
  .indicator-spore {
    padding: 7px 12px;
    min-width: 120px;
    gap: 6px;
  }
  
  .indicator-icon {
    font-size: 18px;
    width: 28px;
    height: 28px;
  }
  
  .indicator-label {
    font-size: 10px;
  }
  
  .indicator-value {
    font-size: 12px;
  }
  
  .indicator-value-large {
    font-size: 16px;
  }
  
  .indicator-bar {
    height: 6px;
  }
}

/* Mobile - Compact (< 480px) */
@media (max-width: 480px) {
  .indicators-spore {
    top: 8px;
    max-width: 100vw;
    left: 0;
    right: 0;
    transform: none;
    padding: 0 5px;
  }
  
  .indicators-spore-container {
    gap: 6px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
  }
  
  .indicator-spore {
    padding: 6px 10px;
    min-width: 100px;
    gap: 5px;
    flex-shrink: 0;
  }
  
  .indicator-icon {
    font-size: 16px;
    width: 24px;
    height: 24px;
  }
  
  .indicator-label {
    font-size: 9px;
  }
  
  .indicator-value {
    font-size: 11px;
  }
  
  .indicator-value-large {
    font-size: 14px;
  }
  
  .indicator-bar {
    height: 5px;
  }
  
  /* Hide Belok and Hormones on very small screens to save space */
  .indicator-belok,
  .indicator-hormones {
    display: none;
  }
}

/* Very small mobile (< 360px) */
@media (max-width: 360px) {
  .indicator-spore {
    padding: 5px 8px;
    min-width: 90px;
  }
  
  .indicator-icon {
    font-size: 14px;
    width: 20px;
    height: 20px;
  }
  
  .indicator-label {
    font-size: 8px;
  }
  
  .indicator-value {
    font-size: 10px;
  }
  
  .indicator-value-large {
    font-size: 12px;
  }
}

/* Landscape mode on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .indicators-spore {
    top: 5px;
  }
  
  .indicator-spore {
    padding: 5px 10px;
  }
  
  .indicator-icon {
    font-size: 16px;
    width: 24px;
    height: 24px;
  }
}

/* ============================================
   Progress Bars Inside Capsules
   Task 16.1: Visual progress bars with gradients
   ============================================ */

/* Progress bar background container */
.indicator-progress-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: inherit;
  z-index: 1;
  overflow: hidden;
}

/* Progress bar fill */
.indicator-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  border-radius: inherit;
  transition: width 0.3s ease-out;
  z-index: 1;
  width: 0%;
  
  /* GPU acceleration */
  transform: translate3d(0, 0, 0);
  will-change: width;
  backface-visibility: hidden;
}

/* HP progress bar - Red gradient */
.indicator-spore[data-type="hp"] .indicator-progress-fill {
  background: linear-gradient(90deg, 
    rgba(220, 53, 69, 0.3) 0%, 
    rgba(220, 53, 69, 0.5) 50%, 
    rgba(220, 53, 69, 0.3) 100%);
}

/* Energy progress bar - Blue gradient */
.indicator-spore[data-type="energy"] .indicator-progress-fill {
  background: linear-gradient(90deg, 
    rgba(0, 123, 255, 0.3) 0%, 
    rgba(0, 123, 255, 0.5) 50%, 
    rgba(0, 123, 255, 0.3) 100%);
}

/* EXP progress bar - Yellow gradient */
.indicator-spore[data-type="exp"] .indicator-progress-fill {
  background: linear-gradient(90deg, 
    rgba(255, 193, 7, 0.3) 0%, 
    rgba(255, 193, 7, 0.5) 50%, 
    rgba(255, 193, 7, 0.3) 100%);
}

/* Ensure content is above progress bar */
.indicator-content {
  position: relative;
  z-index: 2;
}

/* Critical state styling - Enhanced pulsing */
.indicator-spore.indicator-critical {
  animation: pulse-critical 1.5s ease-in-out infinite;
}

.indicator-spore.indicator-critical .indicator-progress-fill {
  background: linear-gradient(90deg, 
    rgba(220, 53, 69, 0.5) 0%, 
    rgba(220, 53, 69, 0.7) 50%, 
    rgba(220, 53, 69, 0.5) 100%) !important;
}

/* Pulse animation for critical state */
@keyframes pulse-critical {
  0%, 100% {
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.6);
  }
}

/* Progress bar animation on change */
.indicator-progress-fill.updating {
  animation: progress-update 0.5s ease-out;
}

@keyframes progress-update {
  0% {
    transform: scaleX(0.95);
  }
  50% {
    transform: scaleX(1.02);
  }
  100% {
    transform: scaleX(1);
  }
}

/* Mobile optimizations for progress bars */
@media (max-width: 480px) {
  .indicator-progress-bg {
    opacity: 0.9;
  }
  
  .indicator-progress-fill {
    transition: width 0.2s ease-out;
  }
}

/* ============================================
   TEMPORARY: Hide EXP Indicator
   ============================================ */

.indicator-exp {
  display: none !important;
}

/* ============================================
   Hide indicators when menu is open
   ============================================ */

.indicators-spore.indicators-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
