  border-color: rgba(34, 197, 94, 0.5);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.2) 0%, rgba(34, 197, 94, 0.15) 100%);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(34, 197, 94, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.mic-status.muted {
  border-color: rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(239, 68, 68, 0.15) 100%);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(239, 68, 68, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .settings-hint {
    font-size: 9px;
    padding: 6px 10px;
    bottom: 165px;
    right: 15px;
  }

  .settings-hint kbd {
    font-size: 9px;
    padding: 1px 4px;
  }

  .mic-status {
    font-size: 11px;
    padding: 8px 14px;
    bottom: 100px;
    right: 15px;
  }
}

/* Death Screen */
#death-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 0, 0, 0.95) 0%, rgba(5, 5, 15, 0.98) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zM22.344 0L13.858 8.485 15.272 9.9l7.9-7.9h-.828zm5.656 0l-8.485 8.485 1.414 1.414L28.828 0h-.828z' fill='%23dc2626' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  backdrop-filter: blur(15px);
  z-index: 1000;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#death-screen.active {
  display: flex;
}

#death-content {
  background: linear-gradient(135deg, rgba(30, 15, 15, 0.9) 0%, rgba(15, 15, 30, 0.85) 100%);
  backdrop-filter: blur(25px);
  padding: 50px 45px;
  border-radius: 24px;
  text-align: center;
  border: 1px solid rgba(220, 38, 38, 0.3);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.7),
    0 0 100px rgba(220, 38, 38, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
  max-width: 550px;
  width: 90%;
  position: relative;
  overflow: hidden;
  animation: deathAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes deathAppear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#death-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
  animation: deathShimmer 4s infinite;
}

@keyframes deathShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

#death-content h1 {
  color: #dc2626;
  font-size: 36px;
  margin-bottom: 12px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  text-shadow:
    0 0 25px rgba(220, 38, 38, 0.8),
    0 0 50px rgba(220, 38, 38, 0.5),
    0 4px 8px rgba(0, 0, 0, 0.9);
  letter-spacing: 2px;
  animation: deathPulse 2s ease-in-out infinite;
}

@keyframes deathPulse {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(220, 38, 38, 0.9));
  }
}

#death-content h2 {
  color: rgba(252, 165, 165, 0.9);
  font-size: 20px;
  margin-bottom: 30px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
}

#death-stats {
  background: rgba(15, 15, 25, 0.6);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.death-stat-row {
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
  font-size: 17px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.death-stat-row:hover {
  background: rgba(30, 41, 59, 0.3);
  transform: translateX(4px);
}

.death-stat-label {
  color: rgba(203, 213, 225, 0.8);
}

.death-stat-value {
  color: #fbbf24;
  font-weight: 700;
  font-size: 19px;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

#play-again-button {
  width: 100%;
  padding: 18px;
  font-size: 22px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 10px 20px -5px rgba(14, 165, 233, 0.5),
    0 0 40px rgba(14, 165, 233, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

#play-again-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

#play-again-button:hover::before {
  left: 100%;
}

#play-again-button:hover {
  background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
  transform: translateY(-3px);
  box-shadow:
    0 20px 30px -8px rgba(14, 165, 233, 0.7),
    0 0 60px rgba(14, 165, 233, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

#play-again-button:active {
  transform: translateY(-1px);
  box-shadow:
    0 8px 15px -3px rgba(14, 165, 233, 0.6),
    0 0 30px rgba(14, 165, 233, 0.4);
}

/* Responsive death screen */
@media (max-width: 768px) {
  #death-content {
    padding: 30px 20px;
  }

  #death-content h1 {
    font-size: 28px;
    letter-spacing: 1px;
  }

  #death-content h2 {
    font-size: 18px;
  }

  .death-stat-row {
    font-size: 16px;
  }

  .death-stat-value {
    font-size: 18px;
  }

  #play-again-button {
    font-size: 20px;
    padding: 12px;
  }

  /* Upgrade buttons mobile responsive */
  #upgrade-menu {
    bottom: 15px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: calc(100vw - 40px);
  }

  .upgrade-button {
    padding: 10px 16px;
    min-width: 100px;
    gap: 4px;
  }

  .upgrade-header {
    font-size: 13px;
    gap: 4px;
  }

  .upgrade-icon {
    font-size: 16px;
  }

  .upgrade-name {
    font-size: 12px;
  }

  .upgrade-key {
    font-size: 10px;
  }

  .upgrade-stats {
    font-size: 11px;
    gap: 4px;
  }

  .stat-level {
    width: 26px;
    height: 26px;
    font-size: 12px;
    top: -6px;
    right: -6px;
  }

  /* Hide tooltip on mobile (no hover) */
  .upgrade-preview {
    display: none !important;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  #upgrade-menu {
    bottom: 10px;
    gap: 6px;
  }

  .upgrade-button {
    padding: 8px 12px;
    min-width: 85px;
  }

  .upgrade-header {
    font-size: 12px;
  }

  .upgrade-icon {
    font-size: 14px;
  }

  .upgrade-name {
    font-size: 11px;
  }

  .upgrade-stats {
    font-size: 10px;
  }

  .stat-level {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
}
