.congrats-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: linear-gradient(135deg, var(--yellow), #f2c94c);
  color: var(--dark-blue);
  padding: 30px 50px;
  border-radius: 15px;
  text-align: center;
  font-family: "Arial", sans-serif;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.5s ease-in-out;
  z-index: 1000;
}

.congrats-message.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.playagain-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background: var(--dark-blue);
  color: var(--light-gray);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.sparkle {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #fff 30%, transparent 40%);
  border-radius: 50%;
  animation: sparkle 1s infinite ease-in-out;
}

.sparkle:nth-child(1) {
  top: -20px;
  left: -20px;
  animation-delay: 0s;
}
.sparkle:nth-child(2) {
  top: -30px;
  right: -30px;
  animation-delay: 0.2s;
}
.sparkle:nth-child(3) {
  bottom: -20px;
  left: -20px;
  animation-delay: 0.4s;
}
.sparkle:nth-child(4) {
  bottom: -30px;
  right: -30px;
  animation-delay: 0.6s;
}
