:root {
  --pink: #ff8fc7;
  --pink-dark: #f75ca7;
  --cream: #fff7e8;
  --white: #fffdfc;
  --blue: #d9f1ff;
  --blue-deep: #8acdf2;
  --ink: #50394a;
  --muted: #8c7084;
  --shadow: 0 24px 70px rgba(164, 82, 128, 0.22);
  --soft-shadow: 0 16px 34px rgba(164, 82, 128, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Avenir Next", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 143, 199, 0.34), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(217, 241, 255, 0.85), transparent 28rem),
    linear-gradient(135deg, #fff7e8 0%, #fffdfc 45%, #ffe7f3 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(rgba(255, 143, 199, 0.28) 1.5px, transparent 1.5px),
    radial-gradient(rgba(138, 205, 242, 0.24) 1.2px, transparent 1.2px);
  background-position: 0 0, 18px 24px;
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 38px 16px 28px;
  text-align: center;
  animation: fadeUp 700ms ease both;
}

.hero::before {
  position: absolute;
  inset: 24px 0;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 143, 199, 0.28);
  border-radius: 999px;
  color: var(--pink-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.72);
}

.eyebrow::before,
.eyebrow::after {
  content: "✦";
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.35rem, 11vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 650px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 4vw, 1.3rem);
  line-height: 1.65;
  text-wrap: balance;
}

.gentle-note {
  max-width: 580px;
  margin: 18px auto 0;
  color: rgba(80, 57, 74, 0.66);
  font-size: 0.9rem;
  line-height: 1.6;
}

.decision-zone {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(100%, 600px);
  min-height: 126px;
  margin: 28px auto 0;
  padding: 24px 10px 26px;
}

.yes-button,
.no-button {
  width: min(42vw, 212px);
  min-width: 128px;
  min-height: 64px;
  padding: 16px 18px;
  border-radius: 999px;
  font-size: clamp(1rem, 3.8vw, 1.26rem);
  font-weight: 1000;
  letter-spacing: 0.07em;
  user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
}

.yes-button {
  --yes-scale: 1;
  position: relative;
  z-index: 10;
  color: white;
  text-shadow: 0 1px 8px rgba(129, 32, 83, 0.25);
  background:
    linear-gradient(135deg, #ff9ed1 0%, #ff68b3 48%, #ff95ac 100%);
  box-shadow:
    0 16px 36px rgba(247, 92, 167, 0.42),
    0 0 0 8px rgba(255, 143, 199, 0.13);
  transform: scale(var(--yes-scale));
  animation: yesPulse 1.8s ease-in-out infinite;
  transition:
    box-shadow 220ms ease,
    filter 220ms ease,
    padding 350ms ease,
    transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.yes-button:hover {
  filter: brightness(1.04) saturate(1.08);
  box-shadow:
    0 20px 44px rgba(247, 92, 167, 0.5),
    0 0 0 11px rgba(255, 143, 199, 0.17);
}

.yes-button:focus-visible,
.no-button:focus-visible {
  outline: 4px solid rgba(138, 205, 242, 0.9);
  outline-offset: 5px;
}

.yes-button.yes-mega {
  --yes-scale: 1.55;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 45;
  width: min(88vw, 520px);
  min-width: 0;
  padding: 28px 46px;
  font-size: clamp(1.8rem, 8vw, 3.5rem);
  transform: translate(-50%, -50%) scale(var(--yes-scale));
}

.no-button {
  --no-scale: 1;
  --no-rotation: 0deg;
  position: relative;
  z-index: 9;
  border: 2px solid rgba(255, 143, 199, 0.24);
  color: rgba(80, 57, 74, 0.82);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
  transform: rotate(var(--no-rotation)) scale(var(--no-scale));
  transition:
    left 380ms cubic-bezier(0.34, 1.56, 0.64, 1),
    top 380ms cubic-bezier(0.34, 1.56, 0.64, 1),
    right 380ms ease,
    bottom 380ms ease,
    opacity 300ms ease,
    min-width 300ms ease,
    padding 300ms ease,
    transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.no-button.no-tiny {
  width: auto;
  min-width: 50px;
  min-height: 38px;
  padding: 7px 9px;
  font-size: 0.62rem;
}

.no-button.no-ghost {
  opacity: 0.28;
}

.no-button.no-flipped {
  --no-rotation: 180deg;
}

.no-button.no-bouncy {
  animation: noBounce 520ms ease-in-out infinite;
}

.no-button.no-following {
  opacity: 0.72;
  pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(80, 57, 74, 0.12));
}

.cat-shield {
  position: fixed;
  z-index: 44;
  display: none;
  width: 150px;
  transform: translate(-50%, -50%) rotate(-7deg);
  pointer-events: auto;
}

.cat-shield.is-visible {
  display: block;
  animation: shieldPop 460ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.meme-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.95), rgba(217, 241, 255, 0.72)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 143, 199, 0.12) 0 8px,
      rgba(255, 255, 255, 0.15) 8px 16px
    );
  box-shadow: var(--soft-shadow);
}

.meme-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meme-frame figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 20px rgba(80, 57, 74, 0.08);
  backdrop-filter: blur(8px);
}

.cat-fallback {
  display: none;
  place-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 18px;
  font-size: 3rem;
  text-align: center;
}

.cat-fallback small {
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.meme-frame.image-missing img {
  display: none;
}

.meme-frame.image-missing .cat-fallback {
  display: grid;
}

.hero-cat {
  width: min(84vw, 360px);
  aspect-ratio: 1 / 1;
  transform: rotate(-2deg);
  animation: floatSoft 4.8s ease-in-out infinite;
}

.shield-cat {
  aspect-ratio: 1 / 1;
  border-width: 6px;
}

.celebration-cat {
  width: min(66vw, 270px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 18px;
}

.meme-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 10px 0 0;
  animation: fadeUp 900ms 120ms ease both;
}

.meme-card {
  display: grid;
  grid-template-columns: 94px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 118px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 12px 34px rgba(164, 82, 128, 0.1);
  backdrop-filter: blur(14px);
}

.meme-card .meme-frame {
  aspect-ratio: 1 / 1;
  border-width: 5px;
  border-radius: 20px;
}

.meme-card p {
  margin: 0;
  color: rgba(80, 57, 74, 0.76);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
}

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

.balloon,
.sparkle {
  position: absolute;
  display: inline-block;
  filter: drop-shadow(0 12px 12px rgba(164, 82, 128, 0.16));
}

.balloon {
  font-size: clamp(2rem, 8vw, 4.2rem);
  opacity: 0.5;
  animation: balloonDrift 9s ease-in-out infinite;
}

.balloon-one {
  left: 5%;
  top: 18%;
}

.balloon-two {
  right: 6%;
  top: 10%;
  animation-delay: -2s;
}

.balloon-three {
  right: 14%;
  bottom: 14%;
  animation-delay: -4.4s;
}

.sparkle {
  color: rgba(247, 92, 167, 0.74);
  font-size: clamp(1.5rem, 5vw, 3rem);
  animation: twinkle 2.4s ease-in-out infinite;
}

.sparkle-one {
  left: 12%;
  top: 10%;
}

.sparkle-two {
  right: 18%;
  top: 28%;
  animation-delay: -800ms;
}

.sparkle-three {
  left: 12%;
  bottom: 18%;
  animation-delay: -1.5s;
}

.toast {
  position: fixed;
  right: 50%;
  bottom: 18px;
  z-index: 80;
  width: min(calc(100vw - 28px), 420px);
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
  opacity: 0;
  transform: translate(50%, 18px);
  transition:
    opacity 240ms ease,
    transform 240ms ease,
    padding 240ms ease;
}

.toast.is-visible {
  padding: 12px 16px;
  opacity: 1;
  transform: translate(50%, 0);
}

.cat-pop {
  position: fixed;
  z-index: 50;
  display: grid;
  grid-template-columns: 92px minmax(140px, 230px);
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 24px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
  pointer-events: none;
  animation: catPopIn 480ms cubic-bezier(0.34, 1.56, 0.64, 1) both,
    catPopOut 500ms ease 4.1s forwards;
}

.cat-pop .meme-frame {
  aspect-ratio: 1 / 1;
  border-width: 5px;
  border-radius: 20px;
}

.speech-bubble {
  position: relative;
  margin: 0;
  padding: 11px 14px;
  border-radius: 20px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.25;
  background: var(--white);
}

.speech-bubble::before {
  position: absolute;
  top: 50%;
  left: -8px;
  width: 16px;
  height: 16px;
  content: "";
  background: var(--white);
  transform: translateY(-50%) rotate(45deg);
}

.paw-print,
.floaty-heart,
.confetti-piece {
  position: fixed;
  z-index: 70;
  pointer-events: none;
}

.paw-print {
  color: rgba(247, 92, 167, 0.5);
  font-size: 1rem;
  transform: translate(-50%, -50%);
  animation: pawFade 900ms ease-out forwards;
}

.floaty-heart {
  bottom: -34px;
  color: rgba(247, 92, 167, 0.7);
  font-size: var(--heart-size, 1.4rem);
  animation: heartFloat var(--heart-time, 4.8s) ease-out forwards;
}

.confetti-piece {
  top: -18px;
  left: var(--confetti-left);
  width: var(--confetti-width, 9px);
  height: var(--confetti-height, 13px);
  border-radius: 4px;
  background: var(--confetti-color);
  animation: confettiFall var(--confetti-time, 3s) linear forwards;
}

.celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 143, 199, 0.24), transparent 20rem),
    rgba(255, 247, 232, 0.78);
  backdrop-filter: blur(16px);
  animation: fadeIn 260ms ease both;
}

.celebration-card {
  width: min(100%, 560px);
  padding: clamp(24px, 6vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 36px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 231, 243, 0.92)),
    var(--white);
  box-shadow: var(--shadow);
  animation: cardPop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.celebration-card h2 {
  margin: 0 0 12px;
  font-size: clamp(2.3rem, 10vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.celebration-card p {
  margin: 10px auto;
  color: rgba(80, 57, 74, 0.78);
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 800;
  line-height: 1.45;
}

.celebration-card .date-line {
  color: var(--pink-dark);
  font-size: clamp(1.18rem, 5vw, 1.55rem);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes cardPop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes yesPulse {
  0%,
  100% {
    box-shadow:
      0 16px 36px rgba(247, 92, 167, 0.42),
      0 0 0 8px rgba(255, 143, 199, 0.13);
  }

  50% {
    box-shadow:
      0 20px 44px rgba(247, 92, 167, 0.5),
      0 0 0 14px rgba(255, 143, 199, 0.08);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes balloonDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }

  50% {
    transform: translate3d(10px, -22px, 0) rotate(6deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.82) rotate(0deg);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.18) rotate(14deg);
  }
}

@keyframes noBounce {
  0%,
  100% {
    transform: translateY(0) rotate(var(--no-rotation)) scale(var(--no-scale));
  }

  50% {
    transform: translateY(-18px) rotate(var(--no-rotation)) scale(var(--no-scale));
  }
}

@keyframes shieldPop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.68) rotate(-12deg);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(-7deg);
  }
}

@keyframes catPopIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.86) rotate(-4deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes catPopOut {
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.92) rotate(4deg);
  }
}

@keyframes pawFade {
  from {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.72) rotate(-10deg);
  }

  to {
    opacity: 0;
    transform: translate(-50%, -105%) scale(1.12) rotate(14deg);
  }
}

@keyframes heartFloat {
  from {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-10deg) scale(0.82);
  }

  12% {
    opacity: 0.95;
  }

  to {
    opacity: 0;
    transform: translate3d(var(--heart-drift, 24px), -110vh, 0) rotate(18deg)
      scale(1.35);
  }
}

@keyframes confettiFall {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0);
  }

  to {
    opacity: 0;
    transform: translate3d(var(--confetti-drift), 110vh, 0)
      rotate(var(--confetti-spin));
  }
}

@media (min-width: 700px) {
  .page-shell {
    padding-inline: 26px;
  }

  .hero {
    padding-inline: 42px;
  }

  .hero::before {
    inset-inline: 8px;
  }

  .meme-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meme-card {
    grid-template-columns: 116px 1fr;
  }
}

@media (max-width: 520px) {
  .decision-zone {
    gap: 10px;
    min-height: 118px;
    padding-inline: 4px;
  }

  .cat-pop {
    grid-template-columns: 76px minmax(130px, 1fr);
    right: 10px !important;
    left: 10px !important;
  }

  .yes-button.yes-mega {
    --yes-scale: 1.18;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
