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

body {
  font-family: 'Roboto', sans-serif;
  background: #121212;
  color: white;
  overflow: hidden;
}

/* Pantalla de Login */
#login {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a2a6c, #b21f1f);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s;
}

#login h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#login input {
  padding: 12px 20px;
  margin-bottom: 1rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  width: 300px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#login button {
  padding: 12px 30px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

#login button:hover {
  background: #45a049;
  transform: scale(1.05);
}

/* Contenedor del juego */
#juego {
  width: 100vw;
  height: 100vh;
  display: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.datos {
  background: #333;
  padding: 10px;
  display: flex;
  justify-content: space-around;
  font-size: 0.9rem;
}

.zona-juego {
  width: 100%;
  height: calc(100% - 40px);
  position: relative;
  background: #1e3c72;
  overflow: hidden;
  cursor: crosshair;
}

/* Estilos para los blancos */
.blanco {
  position: absolute;
  border-radius: 50%;
  background: white;
  border: 2px solid #4CAF50;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.blanco:hover {
  transform: scale(1.1);
}

/* Pantallas de overlay */
.inicio,
.fin-nivel,
.fin-juego {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  z-index: 100;
}

.inicio h1,
.fin-nivel h2,
.fin-juego h2 {
  color: #4CAF50;
  margin-bottom: 20px;
}

.btn-jugar,
.btn-siguiente,
.btn-reinicio {
  padding: 12px 25px;
  margin-top: 20px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-jugar:hover,
.btn-siguiente:hover,
.btn-reinicio:hover {
  background: #45a049;
  transform: scale(1.05);
}

/* Efecto de golpe */
.hit-effect {
  animation: hit 0.3s ease-out forwards;
}

@keyframes hit {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(0); opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .datos {
    flex-direction: column;
    gap: 5px;
    padding: 5px;
  }
  
  #login h1 {
    font-size: 1.8rem;
  }
}