body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #08111f, #14243d, #243b55);
  color: white;
  cursor: none;
}

#fondo-estrellas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.estrellita-fondo {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  opacity: 0.7;
  animation: titilar 2s infinite alternate;
}

#cursor-ovni {
  position: fixed;
  width: 40px;
  pointer-events: none;
  z-index: 9999;
  left: 0;
  top: 0;
}

.contenedor {
  text-align: center;
  padding-top: 40px;
  position: relative;
  z-index: 2;
}

h1 {
  margin-bottom: 10px;
}

#texto {
  font-size: 18px;
  margin-bottom: 20px;
}

.barra {
  margin-bottom: 20px;
}

.barra button {
  margin: 5px;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: #ff5e7e;
  color: white;
  cursor: none;
}

#contador {
  margin-bottom: 10px;
  font-weight: bold;
}

#monstruo {
  position: absolute;
  left: 45%;
  top: 45%;
  width: 110px;
  transition: transform 0.2s;
  cursor: none;
}

#monstruo:hover {
  transform: scale(1.05);
}

.oculto {
  display: none;
}

#final {
  margin-top: 40px;
  animation: aparecer 1s ease;
}

.cielo {
  width: 80%;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 24px;
  background: linear-gradient(to bottom, #10192e, #1d2f53);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
  position: relative;
}

.luna {
  width: 90px;
  height: 90px;
  background: #f4f1c9;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 25px rgba(255, 245, 180, 0.6);
  animation: flotar 3s infinite ease-in-out;
}

#tarjetaMonstruo img {
  width: 110px;
  margin-top: 10px;
}

#seguirCazando {
  margin-top: 20px;
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  background: #7d8cff;
  color: white;
  cursor: none;
}

#coleccion {
  margin-top: 20px;
}

.monstruo-coleccion {
  display: inline-block;
  margin: 10px;
  text-align: center;
  vertical-align: top;
}

.monstruo-coleccion img {
  width: 70px;
  display: block;
  margin: 0 auto 6px auto;
}

.estrella {
  position: absolute;
  font-size: 20px;
  pointer-events: none;
  animation: subir 1s linear forwards;
}

@keyframes subir {
  from {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-40px) scale(1.5);
  }
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes flotar {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes titilar {
  from {
    opacity: 0.2;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.8);
  }
}
