  /* Ensure [hidden] truly hides regardless of other display rules */
[hidden] { display: none !important; }

  
  
  :root {
      --bg-pink: #FFA1E1;
      --text: #fff;
      --btn-bg: #121a2b;
      --btn-bg-hover: #1b2742;
    }

    * { box-sizing: border-box; }
    html, body { height: 100%; margin: 0; }

    body {
      background-color: var(--bg-pink);
      font-family: 'Press Start 2P', sans-serif;
      color: var(--text);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding-top: 50px;
    }

/* Subtle float for the whole hero block */
.hero {
  position: relative;
  width: 200px;
  height: auto;
  margin: 0 auto 30px;

  /* faster and stronger float */
  animation: float 2.8s ease-in-out infinite;
}

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-12px); } /* more visible lift */
  100% { transform: translateY(0); }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
}


    .hero img {
    width: 200px;
    height: auto;
    display: block;
    }

    .hero .bear {
    position: relative;
    z-index: 1;
    }

    .hero .bars {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none; /* ensures clicks go through the bars */
    image-rendering: pixelated;
    }


    .title {
      font-size: 18px;
      text-align: center;
      color: #000;
      margin-bottom: 30px;
      text-shadow: 1px 1px 2px rgba(255,255,255,0.6);
    }

    .card {
      text-align: center;
      background: rgba(0, 0, 0, 0.2);
      border-radius: 12px;
      padding: 20px 30px;
    }

    .question {
      font-size: 14px;
      margin-bottom: 20px;
      color: #000;
    }

    .btn-row {
      display: flex;
      gap: 15px;
      justify-content: center;
    }

    .btn {
      font-family: 'Press Start 2P', sans-serif;
      font-size: 12px;
      color: white;
      background: var(--btn-bg);
      padding: 12px 24px;
      border: 3px solid #000;
      border-radius: 8px;
      cursor: pointer;
      transition: transform 0.1s ease, background 0.2s ease;
    }

    .btn:hover {
      background: var(--btn-bg-hover);
      transform: translateY(-2px);
    }

    .btn-yes { border-color: #00e0ff; }
    .btn-no { border-color: #ff4da6; }

    .question {
  font-size: 14px;
  margin-bottom: 20px;
  color: #000;
  text-align: center;
}

.question .line1,
.question .line2 {
  display: block;
}

.question .line2 {
  margin-top: 8px;           /* space between lines */
  font-weight: 700;          /* make the ask pop a bit */
}


/* Input + submit for last-name step */
.text-input {
  font-family: 'Press Start 2P', sans-serif;
  font-size: 12px;
  padding: 10px 12px;
  border: 3px solid #000;
  border-radius: 8px;
  outline: none;
  width: 220px;
  background: #fff;
  color: #000;
}

.submit-btn {
  margin-left: 10px;
}

/* Overlay when the name is wrong */
.overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 999;
  animation: explode-bg 700ms ease-out forwards;
}

/* “Explosion” background */
@keyframes explode-bg {
  0% {
    background:
      radial-gradient(circle at center, rgba(255,255,255,0.9) 0%, rgba(255,0,0,0.6) 0%, rgba(0,0,0,0.0) 1%),
      rgba(0,0,0,0.0);
  }
  100% {
    background:
      radial-gradient(circle at center, rgba(255,255,255,0.9) 10%, rgba(255,0,0,0.6) 35%, rgba(0,0,0,0.7) 70%),
      rgba(0,0,0,0.6);
  }
}

.overlay-content {
  text-align: center;
}

.boom-text {
  font-family: 'Press Start 2P', sans-serif;
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
  text-shadow: 0 2px 0 #000, 0 0 10px rgba(255,0,0,0.6);
}

.restart-btn {
  background: #121a2b;
  border: 3px solid #000;
  border-radius: 8px;
}

/* Screen shake when it “blows up” */
.shake {
  animation: shake 550ms cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-8px, 0, 0); }
  40%, 60% { transform: translate3d(8px, 0, 0); }
}

/* Hearts effect */
#hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1000;
}

.heart {
  position: absolute;
  bottom: -10vh;
  left: 50vw;
  transform: translateX(-50%);
  font-size: 24px;
  opacity: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  animation: floatHeart var(--dur, 3s) ease-in forwards;
  will-change: transform, opacity;
}

@keyframes floatHeart {
  0%   { opacity: 0; transform: translate(var(--x, 0), 0)   scale(var(--scale,1)); }
  10%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x, 0), -120vh) scale(calc(var(--scale,1) * 1.4)); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .heart { animation: none; opacity: 0; }
}
