:root {
  --pink: #ff5fa2;
  --pink-soft: #ffb3d9;
  --bubble: #ff8ec7;
  --cream: #fff0f7;
  --grape: #b15dff;
  --display: "Pacifico", "Brush Script MT", cursive;
  --body: "Quicksand", "Comic Sans MS", -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; max-width: 100%; overflow-x: clip; }

body {
  min-height: 100svh;
  font-family: var(--body);
  font-weight: 600;
  color: #8a2362;
  text-align: center;
  overflow-x: hidden;
  /* custom heart cursor 💕 */
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ctext y='22' font-size='22'%3E%F0%9F%92%95%3C/text%3E%3C/svg%3E") 6 6, auto;
}

/* ---------- animated dreamy background ---------- */
.sky {
  position: fixed; inset: 0; z-index: -2;
  background: linear-gradient(135deg, #ffd6ec 0%, #ff9ed2 25%, #ff7eb9 50%, #c08bff 75%, #ffc4e1 100%);
  background-size: 400% 400%;
  animation: dream 16s ease infinite;
}
.sky::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.55), transparent 24%),
    radial-gradient(circle at 82% 30%, rgba(255,255,255,.4), transparent 22%),
    radial-gradient(circle at 50% 85%, rgba(255,255,255,.35), transparent 30%);
  mix-blend-mode: screen;
}
@keyframes dream {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.glitter { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- top marquee (Y2K vibe) ---------- */
.marquee {
  position: relative; overflow: hidden; white-space: nowrap;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(4px);
  border-bottom: 2px dashed var(--pink);
  font-weight: 700; color: var(--pink); letter-spacing: .04em;
  padding: 8px 0; font-size: .95rem;
}
.marquee__track { display: inline-flex; animation: scroll 22s linear infinite; }
.marquee__track span { padding: 0 1rem; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- stage ---------- */
.stage {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px; width: 100%; max-width: 100%;
  padding: clamp(28px, 7vh, 80px) 20px 40px;
}
.kiss-btn, .message, .counter { max-width: 100%; }

.sparkle-crown { font-size: 1.3rem; letter-spacing: .3em; color: #fff; text-shadow: 0 2px 8px rgba(177,93,255,.4); animation: twinkle 2.2s ease-in-out infinite; }
@keyframes twinkle { 0%,100%{opacity:.5;transform:scale(.95)} 50%{opacity:1;transform:scale(1.06)} }

.title {
  font-family: var(--display);
  font-size: clamp(2rem, 9.5vw, 7.5rem);
  width: 100%; overflow-wrap: break-word;
  margin: 0; line-height: 1.05; position: relative;
  background: linear-gradient(92deg, #ff2e88, #ff7eb9, #b15dff, #ff2e88);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px #fff;
  filter: drop-shadow(0 6px 0 rgba(255,46,136,.25)) drop-shadow(0 3px 10px rgba(177,93,255,.35));
  animation: shimmer 6s linear infinite, wobble 4s ease-in-out infinite;
}
@keyframes shimmer { to { background-position: 250% 0; } }
@keyframes wobble { 0%,100%{transform:rotate(-2deg)} 50%{transform:rotate(2deg)} }

.tagline { margin: 0; font-size: clamp(1rem, 3.5vw, 1.4rem); color: #fff; text-shadow: 0 2px 6px rgba(177,93,255,.4); }
.tagline em { font-family: var(--display); font-style: normal; color: #fff; }

/* ---------- big kiss button ---------- */
.kiss-btn {
  margin-top: 8px; border: 0; cursor: inherit;
  font-family: var(--body); font-weight: 700; font-size: clamp(1.05rem, 3.6vw, 1.4rem);
  color: #fff; padding: 18px 34px; border-radius: 999px;
  background: linear-gradient(135deg, #ff4fa3, #ff7eb9 60%, #b15dff);
  box-shadow: 0 10px 0 #d63384, 0 18px 30px rgba(214,51,132,.45), inset 0 2px 6px rgba(255,255,255,.5);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
  animation: heartbeat 1.6s ease-in-out infinite;
}
.kiss-btn:hover { filter: brightness(1.05) saturate(1.1); }
.kiss-btn:active { transform: translateY(8px); box-shadow: 0 2px 0 #d63384, 0 6px 14px rgba(214,51,132,.4), inset 0 2px 6px rgba(255,255,255,.5); }
@keyframes heartbeat { 0%,100%{transform:scale(1)} 12%{transform:scale(1.06)} 24%{transform:scale(1)} 36%{transform:scale(1.04)} }

.message {
  min-height: 1.6em; margin: 4px 0 0;
  font-size: clamp(1rem, 3.4vw, 1.3rem); color: #7a1f57;
  background: rgba(255,255,255,.65); border: 2px dotted var(--pink);
  padding: 10px 18px; border-radius: 18px; backdrop-filter: blur(3px);
  transition: transform .25s cubic-bezier(.2,1.4,.4,1);
}
.message.pop { transform: scale(1.08) rotate(-1.5deg); }

/* ---------- counter ---------- */
.counter {
  display: inline-flex; align-items: baseline; gap: 10px; margin-top: 6px;
  background: #fff; border: 3px solid var(--pink); border-radius: 22px;
  padding: 10px 22px; box-shadow: 0 8px 20px rgba(214,51,132,.25);
}
.counter__num { font-family: var(--display); font-size: clamp(1.8rem, 6vw, 2.6rem); color: var(--pink); }
.counter__label { font-weight: 700; color: #b15dff; }

/* ---------- rewards / ménagerie ---------- */
.next-reward { margin: 2px 0 0; color: #fff; text-shadow: 0 1px 4px rgba(177, 93, 255, .5); font-size: .95rem; }
.next-reward b { font-family: var(--display); font-weight: 400; padding: 0 2px; }
.menagerie { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 100%; margin-top: 4px; }
.pet {
  font-size: clamp(1.8rem, 7vw, 2.6rem); cursor: help;
  filter: drop-shadow(0 4px 8px rgba(177, 93, 255, .4));
  animation: bob 2.4s ease-in-out infinite, popin .5s cubic-bezier(.2, 1.5, .4, 1);
}
.reveal-pet {
  position: absolute; left: 50%; top: 45%;
  transform: translate(-50%, -50%);
  font-size: clamp(5rem, 22vw, 11rem); z-index: 20; pointer-events: none;
  filter: drop-shadow(0 12px 28px rgba(177, 93, 255, .55));
}
@keyframes popin { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- cuties row ---------- */
.cuties { display: flex; flex-wrap: wrap; justify-content: center; max-width: 100%; gap: clamp(8px, 3vw, 20px); margin-top: 14px; font-size: clamp(1.6rem, 6vw, 2.4rem); }
.cuties span { display: inline-block; animation: bob 2.4s ease-in-out infinite; }
.cuties span:nth-child(2n) { animation-delay: .3s; }
.cuties span:nth-child(3n) { animation-delay: .6s; }
.cuties span:nth-child(4n) { animation-delay: .9s; }
@keyframes bob { 0%,100%{transform:translateY(0) rotate(-4deg)} 50%{transform:translateY(-12px) rotate(4deg)} }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 1; padding: 22px 16px 40px; color: #fff; text-shadow: 0 1px 4px rgba(177,93,255,.5); font-size: .92rem; max-width: 100%; overflow-wrap: anywhere; }
.footer strong { font-family: var(--display); font-weight: 400; }

/* full-viewport layer that clips all flying emojis (so they never widen the page) */
.fx { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
.fly { position: absolute; pointer-events: none; user-select: none; will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
