:root {
  --text: #4a2330;
  --muted: #8b5f6d;
  --accent: #cf3f66;
  --accent-strong: #a61f49;
  --gold: #f2b85a;
  --panel: rgba(255, 250, 245, 0.76);
  --shadow: 0 24px 60px rgba(124, 48, 75, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 244, 196, 0.85), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #ffe8e7 48%, #ffd3db 100%);
}

button {
  font: inherit;
}

.sky-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.sky-glow-left {
  top: -8rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(255, 238, 171, 0.9), transparent 66%);
}

.sky-glow-right {
  right: -10rem;
  bottom: -10rem;
  background: radial-gradient(circle, rgba(255, 183, 210, 0.85), transparent 68%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
}

.intro-view,
.garden-view {
  position: absolute;
  inset: 0;
  display: none;
}

.intro-view.active,
.garden-view.active {
  display: grid;
}

.intro-view {
  place-items: center;
  padding: 1rem;
}

.intro-card {
  width: min(92vw, 760px);
  padding: 2rem 1.5rem 2.2rem;
  text-align: center;
  border-radius: 34px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.intro-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-strong);
}

h1,
h2 {
  margin: 0.4rem 0 1rem;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
}

h1 {
  font-size: clamp(3.1rem, 10vw, 6rem);
}

h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.lead {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.7;
  color: var(--muted);
}

.intro-lead {
  margin-top: 0.15rem;
}

.intro-surprises {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 241, 245, 0.58));
  border: 1px solid rgba(223, 173, 193, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.surprise-label,
.intro-counter {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.9rem 0;
}

.love-note-btn {
  border: 0;
  border-radius: 20px;
  padding: 0.9rem 0.85rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-strong);
  background:
    linear-gradient(180deg, rgba(255, 245, 247, 0.96), rgba(255, 219, 227, 0.88));
  box-shadow:
    0 10px 24px rgba(176, 67, 100, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.love-note-btn:hover {
  transform: translateY(-2px) rotate(-1deg);
}

.love-note-btn.selected {
  color: white;
  background: linear-gradient(135deg, #cf3f66, #ef8ea7);
  box-shadow:
    0 16px 28px rgba(166, 31, 73, 0.22),
    0 0 18px rgba(255, 164, 193, 0.28);
}

.love-note-btn:focus-visible {
  outline: 3px solid rgba(242, 184, 90, 0.55);
  outline-offset: 3px;
}

.intro-response {
  min-height: 82px;
  margin-bottom: 0.7rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(166, 31, 73, 0.24);
  color: var(--muted);
  line-height: 1.65;
}

.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.primary-btn {
  margin-top: 1.5rem;
  padding: 1.15rem 2.4rem;
  font-size: 1.15rem;
  background:
    linear-gradient(135deg, #cf3f66, #ff93af),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
  color: white;
  font-weight: 700;
  box-shadow:
    0 18px 34px rgba(166, 31, 73, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 0 22px rgba(255, 164, 193, 0.35);
}

.secondary-btn {
  background: linear-gradient(135deg, #fff1c1, #ffd66d);
  color: #714704;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(176, 120, 32, 0.2);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible {
  outline: 3px solid rgba(242, 184, 90, 0.55);
  outline-offset: 3px;
}

.garden-view {
  background: rgba(255, 241, 244, 0.48);
}

.flower-container {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
}

.flower-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.flower-clean-btn {
  z-index: 1;
  font-family: sans-serif;
  font-size: 15px;
  color: white;
  text-shadow: 0 0 10px #000000;
  user-select: none;
  padding: 0 5px 15px 15px;
  position: relative;
  cursor: pointer;
  text-decoration: underline;
}

.garden-overlay {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
}

.garden-copy {
  width: min(100%, 520px);
  padding: 1.1rem 1rem;
  border-radius: 24px;
  background: rgba(255, 250, 245, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.garden-copy .secondary-btn {
  margin-top: 0.9rem;
}

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

.petal {
  position: absolute;
  top: -10%;
  width: 18px;
  height: 28px;
  background: linear-gradient(180deg, rgba(255, 179, 202, 0.95), rgba(222, 93, 130, 0.8));
  border-radius: 70% 0 70% 0;
  animation: fall linear infinite;
  opacity: 0.7;
}

.petal-1 { left: 8%; animation-duration: 14s; animation-delay: 0s; }
.petal-2 { left: 21%; animation-duration: 17s; animation-delay: -4s; }
.petal-3 { left: 34%; animation-duration: 13s; animation-delay: -7s; }
.petal-4 { left: 49%; animation-duration: 18s; animation-delay: -3s; }
.petal-5 { left: 62%; animation-duration: 15s; animation-delay: -8s; }
.petal-6 { left: 75%; animation-duration: 20s; animation-delay: -5s; }
.petal-7 { left: 85%; animation-duration: 12s; animation-delay: -1s; }
.petal-8 { left: 93%; animation-duration: 16s; animation-delay: -10s; }

.butterfly {
  position: absolute;
  width: 58px;
  height: 42px;
  background:
    radial-gradient(circle at 28% 50%, #ffd98c 0 17%, #ff98bb 18% 64%, transparent 65%),
    radial-gradient(circle at 72% 50%, #ffd98c 0 17%, #ff98bb 18% 64%, transparent 65%);
  animation: drift 8s ease-in-out infinite;
  opacity: 0.7;
}

.butterfly::before,
.butterfly::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.butterfly::before {
  top: 10px;
  width: 7px;
  height: 24px;
  background: #7b4254;
  border-radius: 999px;
}

.butterfly::after {
  width: 16px;
  height: 2px;
  top: 7px;
  background: #7b4254;
  box-shadow: -8px -6px 0 #7b4254, 8px -6px 0 #7b4254;
}

.butterfly-a {
  top: 16%;
  left: 4%;
}

.butterfly-b {
  top: 28%;
  right: 6%;
  animation-delay: -2.4s;
}

.butterfly-c {
  bottom: 22%;
  left: 10%;
  animation-delay: -4.2s;
}

@keyframes fall {
  from {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
  }
  to {
    transform: translate3d(32px, 115vh, 0) rotate(300deg);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate(0, 0) scale(0.95);
  }
  50% {
    transform: translate(26px, -16px) scale(1.03);
  }
}

@media (max-width: 700px) {
  .intro-card {
    padding: 1.6rem 1.1rem;
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .garden-overlay {
    bottom: 1rem;
    right: 0.75rem;
    left: 0.75rem;
    justify-content: center;
  }

  .garden-copy {
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
