:root {
  --bg: #0b0518;
  --text: #ffffff;
  --text-dim: #c9bfe0;
  --pink: #ff3cac;
  --purple: #a855f7;
  --cyan: #22e5ff;
  --yellow: #ffd93d;
  --orange: #ff9f1c;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overscroll-behavior: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overflow-x: hidden;
  position: relative;
}

/* ---------- animated background blobs ---------- */

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.blob-1 {
  width: 60vh;
  height: 60vh;
  top: -15vh;
  left: -15vh;
  background: radial-gradient(circle, var(--pink), transparent 70%);
  animation: drift1 14s ease-in-out infinite alternate;
}

.blob-2 {
  width: 55vh;
  height: 55vh;
  bottom: -18vh;
  right: -12vh;
  background: radial-gradient(circle, var(--purple), transparent 70%);
  animation: drift2 17s ease-in-out infinite alternate;
}

.blob-3 {
  width: 45vh;
  height: 45vh;
  bottom: 10vh;
  left: 20vw;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  animation: drift3 12s ease-in-out infinite alternate;
}

@keyframes drift1 {
  to { transform: translate(8vw, 6vh) scale(1.15); }
}
@keyframes drift2 {
  to { transform: translate(-6vw, -8vh) scale(1.1); }
}
@keyframes drift3 {
  to { transform: translate(5vw, -5vh) scale(0.9); }
}

/* ---------- floating sparkle particles ---------- */

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

.spark {
  position: absolute;
  bottom: -5vh;
  font-size: 1rem;
  opacity: 0;
  animation-name: float-up;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes float-up {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.9; }
  90% { opacity: 0.7; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* ---------- layout ---------- */

.wrap {
  position: relative;
  z-index: 2;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(4vh, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(4vh, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.stage {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(6px, 1.6vh, 14px);
  padding: 36px 8px 12px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stage[hidden] {
  display: none;
}

.stage::-webkit-scrollbar {
  display: none;
}

.emoji-badge {
  position: relative;
  font-size: clamp(2.2rem, min(8vh, 12vw), 3.4rem);
  margin-bottom: clamp(2px, 1vh, 10px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.emoji-badge::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.7em;
  height: 1.7em;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 60, 172, 0.5), rgba(255, 60, 172, 0.15) 40%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.emoji-badge.visible {
  opacity: 1;
}

.emoji-badge.bounce.visible {
  animation: bounce-badge 2.2s ease-in-out infinite;
}

.emoji-badge.spin.visible {
  animation: wiggle-badge 1.8s ease-in-out infinite;
}

.emoji-badge.pop.visible {
  animation: pop-badge 1.6s ease-in-out infinite;
}

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

@keyframes wiggle-badge {
  0%, 100% { transform: rotate(-10deg) scale(1); }
  50% { transform: rotate(10deg) scale(1.08); }
}

@keyframes pop-badge {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.18) rotate(-6deg); }
}

.line {
  border-left: none;
  padding: 2px 4px;
  margin: clamp(4px, 1.4vh, 12px) 0;
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  transition: opacity 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.line.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lead {
  font-weight: 800;
  font-size: clamp(1.15rem, min(4.4vh, 6vw), 1.55rem);
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan), var(--pink));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

.lead:last-child {
  margin-bottom: 0;
}

.lead.question {
  margin-top: 6px;
  font-size: clamp(1.3rem, min(5vh, 6.8vw), 1.75rem);
}

@keyframes shimmer {
  to { background-position: 300% center; }
}

.sub {
  font-weight: 400;
  font-size: clamp(0.9rem, min(3vh, 4.2vw), 1.05rem);
  line-height: 1.45;
  color: var(--text-dim);
  margin: 0 0 6px;
}

.sub:last-child {
  margin-bottom: 0;
}

.action {
  margin: clamp(10px, 2vh, 20px) 0 0;
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  transition: opacity 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.action.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.btn {
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(0.75rem, 4.2vw, 0.95rem);
  letter-spacing: 0.01em;
  padding: clamp(11px, 2.2vh, 15px) 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, filter 0.2s ease;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.35) inset;
  width: 100%;
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03) rotate(-0.5deg);
  filter: brightness(1.1);
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 6px 24px -6px rgba(255, 60, 172, 0.65), 0 0 0 1.5px rgba(255, 255, 255, 0.15) inset;
  animation: pulse-glow 2.4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 6px 24px -6px rgba(255, 60, 172, 0.65), 0 0 0 1.5px rgba(255, 255, 255, 0.15) inset; }
  50% { box-shadow: 0 6px 34px -4px rgba(168, 85, 247, 0.85), 0 0 0 1.5px rgba(255, 255, 255, 0.3) inset; }
}

.btn-choice {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
}

.btn-choice:nth-of-type(1):hover { background: rgba(255, 60, 172, 0.18); box-shadow: 0 0 0 1.5px var(--pink) inset; }
.btn-choice:nth-of-type(2):hover { background: rgba(168, 85, 247, 0.18); box-shadow: 0 0 0 1.5px var(--purple) inset; }
.btn-choice:nth-of-type(3):hover { background: rgba(34, 229, 255, 0.18); box-shadow: 0 0 0 1.5px var(--cyan) inset; }

.footer {
  margin-top: clamp(12px, 2.4vh, 24px);
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.brand {
  font-weight: 900;
  font-size: clamp(1.1rem, min(3.6vh, 5vw), 1.4rem);
  letter-spacing: 0.14em;
  margin: 0 0 6px;
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--pink));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}

.tagline {
  font-style: italic;
  color: var(--text-dim);
  margin: 0;
  font-size: clamp(0.85rem, min(2.6vh, 3.6vw), 1rem);
}

.follow-nudge {
  font-weight: 600;
  font-size: clamp(0.85rem, min(2.6vh, 3.8vw), 1rem);
  color: var(--text-dim);
  margin: 0 0 4px;
}

.btn-follow {
  background: linear-gradient(90deg, #feda75, #d62976, #962fbf, #4f5bd5);
  box-shadow: 0 6px 24px -6px rgba(214, 41, 118, 0.65), 0 0 0 1.5px rgba(255, 255, 255, 0.15) inset;
  animation: pulse-glow 2.4s ease-in-out infinite;
}

/* ---------- confetti ---------- */

.confetti-piece {
  position: fixed;
  top: -5vh;
  z-index: 20;
  pointer-events: none;
  border-radius: 2px;
  animation-name: confetti-fall;
  animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1);
  animation-fill-mode: forwards;
}

@keyframes confetti-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--drift, 0px), 110vh) rotate(720deg); opacity: 0; }
}

@media (max-width: 480px) {
  .lead { font-size: clamp(1.05rem, min(4.2vh, 6.4vw), 1.35rem); }
  .sub { font-size: clamp(0.85rem, min(2.8vh, 4.4vw), 0.95rem); }
  .emoji-badge { font-size: clamp(1.9rem, min(7vh, 13vw), 2.8rem); }
  .btn { max-width: 320px; padding-left: 14px; padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-blob, .spark, .emoji-badge.visible, .lead, .brand, .btn-primary {
    animation: none !important;
  }
}
