/* --- Death Screen Styles --- */
#death-overlay #wasted-image {
  display: none;
}
#death-overlay #restart-button-sprite {
  display: none;
}
#death-overlay #death-title {
  text-align: center;
  margin: 0 auto 20px;
  max-width: 640px;
}
.death-title-text {
  font-family: "Noto Sans", system-ui, sans-serif;
  font-size: clamp(32px, 6vw, 52px);
  margin: 0 0 6px;
  color: #ff6b6b;
  text-transform: uppercase;
  letter-spacing: 2px;
  filter: drop-shadow(0 6px 18px rgba(255, 107, 107, 0.18));
  animation: death-title-pulse 2s ease-in-out infinite;
}
.death-subtitle {
  margin: 0;
  font-size: clamp(14px, 2.6vw, 18px);
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.85);
}
/* Restart button (HTML/CSS, accessible) */
.death-restart-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 20px;
  font-weight: 700;
  color: #08131a;
  background: linear-gradient(180deg, #fff 0%, #f0f0f3 100%);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.06);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  margin: 0 auto;
}
.death-restart-btn:active {
  transform: translateY(1px) scale(.995);
}
.death-restart-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

/* Death overlay background with animated gradient */
#death-overlay {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
  backdrop-filter: blur(4px);
}

/* Stats styling with glassmorphism */
#death-stats {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  color: #e0e0e0;
  font-size: 18px;
  line-height: 1.6;
}

/* Animated title pulse */
@keyframes death-title-pulse {
  0% {
    filter: drop-shadow(0 6px 18px rgba(255, 107, 107, 0.18));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 8px 24px rgba(255, 107, 107, 0.3));
    transform: scale(1.02);
  }
  100% {
    filter: drop-shadow(0 6px 18px rgba(255, 107, 107, 0.18));
    transform: scale(1);
  }
}