:root {
  color-scheme: light;
  --pink-50: #fff1f5;
  --pink-100: #ffe0ea;
  --pink-200: #ffc2d6;
  --pink-300: #ff9fc0;
  --pink-500: #ff5c8a;
  --pink-700: #d93b64;
  --lavender: #f7e9ff;
  --shadow: 0 16px 30px rgba(255, 92, 138, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, var(--pink-50), var(--lavender));
  color: #4a1c2f;
  min-height: 100vh;
}

body.theme-lavender {
  --pink-50: #f8f2ff;
  --pink-100: #f1e3ff;
  --pink-200: #e6c9ff;
  --pink-300: #d4a8ff;
  --pink-500: #b86bff;
  --pink-700: #8f45d3;
  --lavender: #ffe9f5;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 18px 40px;
  gap: 22px;
}

.top {
  text-align: center;
  padding-top: 6px;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--pink-100), var(--pink-200));
  box-shadow: var(--shadow);
}

.cat-face {
  font-size: 42px;
}

.cat-ear {
  position: absolute;
  top: -10px;
  width: 34px;
  height: 34px;
  background: linear-gradient(160deg, var(--pink-300), var(--pink-200));
  border-radius: 4px 4px 0 0;
  transform: rotate(45deg);
}

.cat-ear.left {
  left: 8px;
}

.cat-ear.right {
  right: 8px;
}

.subtitle {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: #8a3d59;
}

.video-card {
  width: 100%;
  max-width: 480px;
}

.video-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid rgba(255, 92, 138, 0.2);
}

.video {
  width: 100%;
  height: 56vh;
  max-height: 520px;
  min-height: 320px;
  object-fit: cover;
  display: block;
  background: var(--pink-100);
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #fffafc;
  backdrop-filter: blur(2px);
  background: linear-gradient(
    rgba(255, 92, 138, 0.12),
    rgba(255, 92, 138, 0.4)
  );
}

.question,
.response {
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  text-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  margin: 0;
}

.response {
  animation: pop 0.5s ease forwards;
}

@keyframes pop {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.actions {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yes-button {
  padding: 14px 46px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  color: white;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yes-button:active {
  transform: scale(0.98);
}

.sound-button {
  padding: 10px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid var(--pink-300);
  background: #fff;
  color: #b43a62;
  box-shadow: 0 10px 18px rgba(255, 92, 138, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sound-button:active {
  transform: scale(0.98);
}

.hint {
  margin: 0;
  color: #9c5b73;
  font-size: 0.9rem;
}

.footer {
  font-size: 0.85rem;
  color: #a46a80;
}

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

.confetti-piece {
  position: absolute;
  top: -10vh;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  animation: fall linear forwards;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
}

@keyframes fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--drift, 0), 110vh, 0) rotate(360deg);
    opacity: 0.9;
  }
}

.floating-hearts,
.paw-prints,
.sparkle-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 4;
}

.heart-float {
  position: absolute;
  bottom: -10vh;
  font-size: clamp(1.1rem, 3vw, 2rem);
  animation: floatUp linear forwards;
  opacity: 0.9;
}

@keyframes floatUp {
  0% {
    transform: translate3d(0, 0, 0) scale(0.9);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--drift, 0), -120vh, 0) scale(1.2);
    opacity: 0;
  }
}

.paw-print {
  position: absolute;
  font-size: 1.6rem;
  animation: pawFade 1.8s ease forwards;
}

@keyframes pawFade {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

.sparkle {
  position: absolute;
  font-size: 1.2rem;
  animation: sparkleFade 1s ease forwards;
}

@keyframes sparkleFade {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

.logo {
  cursor: pointer;
}

.logo.wiggle {
  animation: wiggle 0.6s ease;
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
  75% {
    transform: rotate(-3deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@media (min-width: 720px) {
  .page {
    padding-top: 36px;
  }
}
