* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1d3a 100%);
  color: #fff;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Grid Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, hsl(240 10% 20%) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(240 10% 20%) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Radial Gradient Overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(239, 68, 68, 0.2) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.beta-badge {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Video Container */
#video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
}

#warning-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Game Over Container */
.lose-container {
  display: none;
  flex: 1;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding: 2rem;
  text-align: center;
}

.game-over-card {
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(239, 68, 68, 0.5);
  border-radius: 20px;
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(239, 68, 68, 0.3);
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

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

.game-over-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-10px);
  }

  75% {
    transform: translateX(10px);
  }
}

.game-over-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.game-over-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 2rem;
}

.play-again-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.3rem;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.8);
    transform: scale(1.05);
  }
}

.play-again-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.5);
}

.play-again-btn::before {
  content: "🎮 ";
  margin-right: 0.5rem;
}

/* Footer */
.footer {
  /* position: fixed; */
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  text-align: center;
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  z-index: 10;
}

.footer-link {
  display: inline-block;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 1rem 2rem;
  border-radius: 10px;
  color: #a855f7;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  animation: pulse 2s ease-in-out infinite;
}

.footer-link:hover {
  background: rgba(124, 58, 237, 0.3);
  border-color: #7c3aed;
  color: #fff;
  transform: translateY(-2px);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 10px;
  padding: 1rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .game-over-title {
    font-size: 2rem;
  }

  .game-over-card {
    padding: 2rem;
  }

  .stats-container {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .play-again-btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
  }

  .footer {
    padding: 1rem;
  }

  .footer-link {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .game-over-title {
    font-size: 1.75rem;
  }

  .game-over-icon {
    font-size: 4rem;
  }
}
