@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');

.comic-font {
  font-family: 'Bangers', 'Comic Sans MS', cursive;
  letter-spacing: 2px;
}

.apocalypse-header {
  background: linear-gradient(180deg, rgba(26,26,46,0.8) 0%, rgba(22,33,62,0.6) 100%);
  padding: 2rem;
  border-radius: 1rem;
  border: 2px solid rgba(255,107,53,0.3);
  box-shadow: 0 0 30px rgba(255,107,53,0.2);
}

.apocalypse-card {
  background: linear-gradient(135deg, rgba(26,26,46,0.95) 0%, rgba(22,33,62,0.95) 100%);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(78,204,163,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  position: relative;
}

.apocalypse-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  padding: 2px;
  background: linear-gradient(45deg, rgba(78,204,163,0.1), rgba(255,107,53,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.glow-text {
  text-shadow: 0 0 20px rgba(255,107,53,0.6),
               0 0 40px rgba(255,107,53,0.4),
               0 0 60px rgba(255,107,53,0.2);
}

.apocalypse-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: linear-gradient(to right, #4ecca3, #ff6b35);
  border-radius: 5px;
  outline: none;
}

.apocalypse-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: #ff6b35;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,107,53,0.8);
  border: 3px solid #1a1a2e;
}

.apocalypse-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #ff6b35;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,107,53,0.8);
  border: 3px solid #1a1a2e;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}

/* Distressed texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
  z-index: 1;
}

#root {
  position: relative;
  z-index: 2;
}

/* Zombie pixel sprites (decorative) */
.apocalypse-header::after {
  content: '🧟';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  opacity: 0.3;
  transform: rotate(-15deg);
}

/* Smooth transitions */
* {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

button {
  transition: all 0.2s ease;
}

button:active {
  transform: scale(0.98);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .apocalypse-header h1 {
    font-size: 2.5rem;
  }
  
  .apocalypse-card {
    padding: 1rem;
  }
}