/* ===== Shared styles for BOSS BATTLE ===== */

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem;
  background: #0b0420;
  /* soft glowing spotlights behind everything */
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 0, 200, 0.25), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(0, 200, 255, 0.25), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(255, 200, 0, 0.2), transparent 45%);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  color: #fff;
  text-align: center;
  overflow-x: hidden;
}

/* ===== The sparkly title ===== */

h1 {
  font-family: "Luckiest Guy", "Trebuchet MS", cursive, sans-serif;
  font-size: clamp(3rem, 13vw, 8rem);
  letter-spacing: 0.04em;
  line-height: 1.05;

  /* rainbow gradient poured into the letters */
  background: linear-gradient(
    100deg,
    #fff 0%,
    #ffe680 15%,
    #ff5fd2 30%,
    #ffffff 45%,
    #6ee7ff 60%,
    #ffe680 75%,
    #ff5fd2 90%,
    #fff 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* the shimmer slides the gradient across the letters forever */
  animation: shimmer 4s linear infinite;
  filter: drop-shadow(0 0 18px rgba(255, 120, 220, 0.7))
          drop-shadow(0 0 40px rgba(120, 220, 255, 0.45));
}

@keyframes shimmer {
  from { background-position:   0% 50%; }
  to   { background-position: 300% 50%; }
}

/* ===== Floating sparkles ===== */

.sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none; /* so sparkles never block your clicks */
  z-index: 0;
}

.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  /* a 4-pointed star shape */
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  opacity: 0;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0;   transform: scale(0.3) rotate(0deg); }
  50%      { opacity: 0.95; transform: scale(1.3) rotate(180deg); }
}

/* ===== Buttons ===== */

.buttons {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.btn {
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: bold;
  padding: 1rem 2rem;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-next {
  background: linear-gradient(90deg, #ff5fd2, #ffb648);
  border-color: #fff;
  color: #2a0033;
}

/* ===== Page 2 ===== */

h2 {
  position: relative;
  z-index: 1;
  font-family: "Luckiest Guy", "Trebuchet MS", cursive, sans-serif;
  font-size: clamp(2rem, 8vw, 4.5rem);
  color: #ffe680;
  text-shadow: 0 0 20px rgba(255, 180, 60, 0.8);
}

.hotdog {
  position: relative;
  z-index: 1;
  width: min(70vw, 420px);
  animation: wiggle 2.5s ease-in-out infinite;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5));
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(4deg) translateY(-14px); }
}
