﻿.night {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.shooting_star {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 183, 0, 0.8), transparent);
  border-radius: 999px;
  filter: drop-shadow(0 0 8px rgba(255, 183, 0, 0.8));
  animation: shooting 3s ease-in-out infinite;
}

.shooting_star::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30px;
  background: linear-gradient(90deg, rgba(255, 183, 0, 0.6), transparent);
  border-radius: 999px;
  filter: blur(2px);
}

.shooting_star::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  border-radius: 999px;
  animation: glow 3s ease-in-out infinite;
}

/* Phân bổ vị trí và thời gian cho 12 ngôi sao */
.shooting_star:nth-child(1) { 
  top: 10%; 
  left: 5%; 
  animation-delay: 0s;
  width: 200px;
}

.shooting_star:nth-child(2) { 
  top: 20%; 
  left: 15%; 
  animation-delay: 0.5s;
  width: 180px;
}

.shooting_star:nth-child(3) { 
  top: 30%; 
  left: 8%; 
  animation-delay: 1s;
  width: 220px;
}

.shooting_star:nth-child(4) { 
  top: 40%; 
  left: 20%; 
  animation-delay: 1.5s;
  width: 190px;
}

.shooting_star:nth-child(5) { 
  top: 50%; 
  left: 10%; 
  animation-delay: 2s;
  width: 210px;
}

.shooting_star:nth-child(6) { 
  top: 60%; 
  left: 25%; 
  animation-delay: 2.5s;
  width: 200px;
}

.shooting_star:nth-child(7) { 
  top: 15%; 
  left: 85%; 
  animation-delay: 0.3s;
  width: 200px;
  transform: scaleX(-1);
}

.shooting_star:nth-child(8) { 
  top: 35%; 
  left: 90%; 
  animation-delay: 0.8s;
  width: 190px;
  transform: scaleX(-1);
}

.shooting_star:nth-child(9) { 
  top: 55%; 
  left: 80%; 
  animation-delay: 1.3s;
  width: 220px;
  transform: scaleX(-1);
}

.shooting_star:nth-child(10) { 
  top: 70%; 
  left: 88%; 
  animation-delay: 1.8s;
  width: 200px;
  transform: scaleX(-1);
}

.shooting_star:nth-child(11) { 
  top: 25%; 
  left: 50%; 
  animation-delay: 0.2s;
  width: 210px;
}

.shooting_star:nth-child(12) { 
  top: 65%; 
  left: 45%; 
  animation-delay: 1.7s;
  width: 200px;
}

@keyframes shooting {
  0% { 
    transform: translateX(0) translateY(0) rotate(-45deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% { 
    transform: translateX(500px) translateY(-500px) rotate(-45deg);
    opacity: 0;
  }
}

@keyframes glow {
  0%, 100% { 
    opacity: 0;
  }
  50% { 
    opacity: 1;
  }
}