.sparkle {
  position: fixed;
  pointer-events: none;
  width: 10px;
  height: 10px;
  background: radial-gradient(yellow, transparent);
  border-radius: 50%;
  animation: sparkle-fade 1s forwards;
}

@keyframes sparkle-fade {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

.glitter {
  text-shadow: 0 0 10px magenta;
}

#magic-button {
  position: fixed;
  bottom: 20px;
  right: 100px; /* shifted left to make space */
  font-size: 28px;
  padding: 10px;
  background: magenta;
  color: white;
  border-radius: 50%;
  box-shadow: 0 0 10px hotpink, 0 0 20px cyan;
  cursor: pointer;
  z-index: 999;
  animation: pulse 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

#open-game-btn {
  position: fixed;
  bottom: 20px;
  right: 20px; /* shifted left to make space */
  font-size: 28px;
  padding: 10px;
  background: magenta;
  color: white;
  border-radius: 50%;
  box-shadow: 0 0 10px hotpink, 0 0 20px cyan;
  cursor: pointer;
  z-index: 999;
  animation: pulse 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.magic-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: magenta;
  color: white;
  padding: 20px 30px;
  font-size: 20px;
  font-family: "Comic Sans MS", cursive;
  border: 3px dashed yellow;
  border-radius: 20px;
  z-index: 9999;
  box-shadow: 0 0 10px hotpink, 0 0 30px cyan;
  animation: popin 0.4s ease-out;
}

@keyframes popin {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.fade-out {
  animation: fadeout 1s forwards;
}

@keyframes fadeout {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.8);
  }
}

/* Modal Background */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 10000; /* On top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
}

/* Modal Content Box */
.modal-content {
  background-color: #222;
  margin: 10% auto;
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 0 30px hotpink;
  color: lime;
  font-family: "Comic Sans MS", cursive, sans-serif;
  position: relative;
}

/* Close Button */
.close {
  color: hotpink;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.close:hover {
  color: magenta;
}

/* Sparkle Game Dot */
.sparkle-game-dot {
  position: absolute;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at center, #ff69b4 40%, transparent 70%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px #ff69b4, 0 0 20px #ff1493;
  animation: sparkle-pulse 1.5s infinite alternate;
}

@keyframes sparkle-pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.3);
    opacity: 0.5;
  }
}

.fun-play-btn {
  background: linear-gradient(45deg, #ff69b4, #ff1493, #ff69b4);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 22px;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 0 15px #ff1493, 0 0 40px #ff69b4;
  animation: pulseColors 3s infinite;
  transition: transform 0.2s ease;
  user-select: none;
}

.fun-play-btn:hover {
  transform: scale(1.1);
}

@keyframes pulseColors {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#timer {
  font-family: "Comic Sans MS", cursive, sans-serif;
}

/* Add to styles.css */
img:hover,
.nav a:hover {
  filter: drop-shadow(0 0 5px hotpink) drop-shadow(0 0 10px cyan);
}

.floating-mushroom {
  position: fixed;
  width: 50px;
  height: auto;
  z-index: 9999;
  pointer-events: none;
}
