:root {
  --bg1: #1b0f3b;
  --bg2: #3a1670;
  --yellow: #ffd23f;
  --pink: #ff5d8f;
  --cyan: #3ee6d0;
  --card: rgba(255, 255, 255, 0.08);
  --text: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
  overflow-x: hidden;
}

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

#floaters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.floater {
  position: absolute;
  bottom: -60px;
  opacity: 0.25;
  font-weight: 900;
  color: var(--yellow);
  animation: rise linear infinite;
}

@keyframes rise {
  to { transform: translateY(-120vh) rotate(25deg); }
}

.hero, main, footer {
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.kicker {
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  font-size: 0.9rem;
}

h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(3.5rem, 16vw, 8rem);
  line-height: 1;
  background: linear-gradient(90deg, var(--yellow), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.big67 {
  font-size: clamp(6rem, 30vw, 16rem);
  font-weight: 900;
  line-height: 0.9;
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(255, 210, 63, 0.5), 6px 6px 0 var(--pink);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { transform: scale(1.05) rotate(-2deg); }
}

.subtitle { font-size: 1.5rem; margin: 1rem 0 1.5rem; }

.btn {
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.8rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 0 #b83b64;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #b83b64;
}

.countdown {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: var(--cyan);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  display: grid;
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

.card h2 { margin-top: 0; color: var(--yellow); }

.facts { padding-left: 1.2rem; line-height: 1.6; }
.facts li { margin-bottom: 0.6rem; }

.game { text-align: center; }

.foot {
  font-size: 6rem;
  background: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.08s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.foot:active { transform: scale(0.85) rotate(-8deg); }

.counter { font-size: 1.6rem; font-weight: 800; margin: 0.3rem 0; }

.bar {
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

#progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--yellow));
  transition: width 0.15s;
}

.secret {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(62, 230, 208, 0.15);
  border: 1px dashed var(--cyan);
}

.wishes { display: grid; gap: 0.8rem; }

.wish {
  background: rgba(255, 255, 255, 0.07);
  border-left: 4px solid var(--pink);
  border-radius: 10px;
  padding: 0.8rem 1rem;
}

.wish strong { color: var(--cyan); }

footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  .big67, .floater { animation: none; }
}
