/* ==========================================================================
   Girlfriend Day — August 1st
   Palette: cream #FFF6EF · blush #F9D8E1 · rose #E8A6C1 · lavender #D9C8EE
            sage #BFD8C4 · plum (text) #5B4353 · gold #E3B873
   Type: Fraunces (display) · Caveat (script) · Quicksand (body/UI)
   ========================================================================== */

:root {
  --cream: #FFF6EF;
  --blush: #F9D8E1;
  --blush-soft: #FDEAF0;
  --rose: #E8A6C1;
  --rose-deep: #D97FA6;
  --lavender: #D9C8EE;
  --lavender-soft: #EDE3F7;
  --sage: #BFD8C4;
  --gold: #E3B873;
  --plum: #5B4353;
  --plum-soft: #8A6B7A;
  --paper: #FFFDFB;

  --font-display: "Fraunces", Georgia, serif;
  --font-script: "Caveat", cursive;
  --font-body: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-soft: 0 10px 30px -12px rgba(91, 67, 83, 0.25);
  --radius-lg: 28px;
  --radius-md: 18px;

  color-scheme: light;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--plum);
  background:
    radial-gradient(1200px 700px at 15% -5%, var(--lavender-soft) 0%, transparent 55%),
    radial-gradient(1000px 600px at 90% 10%, var(--blush-soft) 0%, transparent 50%),
    var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><path d="M14 24 C6 18 2 13 2 8.2 C2 4.2 5.2 1 9.1 1 C11.4 1 13.4 2.1 14 4 C14.6 2.1 16.6 1 18.9 1 C22.8 1 26 4.2 26 8.2 C26 13 22 18 14 24 Z" fill="%23E8A6C1" stroke="%23D97FA6" stroke-width="1"/></svg>') 14 14, auto;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--plum);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Ambient floating hearts canvas ------------------------------------------ */
#hearts-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main { position: relative; z-index: 1; }

/* Decorative wavy dividers between sections */
.divider {
  color: var(--rose);
  width: min(220px, 60%);
  margin: 0 auto;
  opacity: 0.6;
}
.divider svg { width: 100%; height: 14px; display: block; }

/* Scroll-reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem 4rem;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.star-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.star-field .star {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
  animation: twinkle 2.6s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 0.85; transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .star-field .star { animation: none; opacity: 0.5; }
}

.eyebrow {
  font-family: var(--font-body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--plum-soft);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 1.08;
  margin: 0;
  color: var(--plum);
}

.hero-title--giant {
  font-size: clamp(3.2rem, 14vw, 8.5rem);
  animation: heroPop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes heroPop {
  0% { opacity: 0; transform: scale(0.6) rotate(-6deg); }
  60% { opacity: 1; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.hero-title .highlight {
  font-style: italic;
  position: relative;
  white-space: nowrap;
}

.hero-title .highlight:not(.rainbow-text) {
  color: var(--rose-deep);
}

.rainbow-text {
  background: linear-gradient(90deg,
    var(--rose-deep), var(--gold), var(--sage),
    var(--lavender), var(--rose-deep));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbowShift 6s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-title--giant { animation: none; }
  .rainbow-text { animation: none; background-position: 0 center; color: var(--rose-deep); }
}

.hero-date {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--gold);
  margin: 0.25rem 0 0.5rem;
  font-weight: 700;
}

.hero-date--giant {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  animation: heartbeat 2.4s ease-in-out infinite;
}

.hero-script {
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--plum-soft);
  margin: 0 0 2.5rem;
  max-width: 26ch;
}

.scroll-cue {
  background: var(--paper);
  border: 1px solid var(--blush);
  color: var(--plum);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.scroll-cue:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--blush-soft);
}
.scroll-cue-heart {
  display: inline-block;
  animation: heartbeat 1.6s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.18); }
  30% { transform: scale(1); }
  45% { transform: scale(1.12); }
  60% { transform: scale(1); }
}

/* ==========================================================================
   LETTER / ENVELOPE
   ========================================================================== */
.letter-section {
  padding: 3rem 1.25rem 6rem;
  display: flex;
  justify-content: center;
}

.envelope-wrap {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.envelope {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 3 / 2;
  background: var(--paper);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 0;
  overflow: visible;
  transition: transform 0.3s ease;
  perspective: 600px;
}
.envelope:hover { transform: translateY(-4px); }

.envelope-body {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--blush-soft), var(--paper) 65%);
  border: 1.5px solid var(--rose);
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 62%;
  background: linear-gradient(160deg, var(--rose), var(--lavender));
  clip-path: polygon(0 0, 100% 0, 50% 78%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transform-origin: top center;
  transition: transform 0.6s cubic-bezier(0.68, -0.4, 0.32, 1.3);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  z-index: 2;
}

.envelope-seal {
  position: absolute;
  top: 42%;
  left: 50%;
  translate: -50% -50%;
  font-size: 2.8rem;
  z-index: 3;
  filter: drop-shadow(0 4px 8px rgba(91,67,83,0.25));
  transition: transform 0.3s ease;
}

.envelope-hint {
  position: absolute;
  bottom: -2.2rem;
  left: 50%;
  translate: -50% 0;
  font-size: 0.85rem;
  color: var(--plum-soft);
  font-weight: 600;
  white-space: nowrap;
}

.envelope[aria-expanded="true"] .envelope-flap {
  transform: rotateX(180deg);
}
.envelope[aria-expanded="true"] .envelope-seal {
  transform: translate(-50%,-50%) scale(0.85);
  opacity: 0;
}
.envelope[aria-expanded="true"] .envelope-hint {
  opacity: 0;
}

.letter-card {
  margin-top: 2.5rem;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.75rem, 5vw, 3rem);
  max-width: 560px;
  border: 1px solid var(--blush);
  animation: unfoldIn 0.55s ease both;
}

.letter-card[hidden] { display: none; }

@keyframes unfoldIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.letter-card h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 1rem;
  color: var(--rose-deep);
}

.letter-card p {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
}

.letter-card .signoff {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--plum-soft);
  margin-top: 1.5rem;
}
.letter-card .signoff span { color: var(--rose-deep); }

.letter-hearts {
  margin-top: 1rem;
  font-size: 1.3rem;
  letter-spacing: 0.5rem;
}

/* ==========================================================================
   REASONS — petal garden
   ========================================================================== */
.reasons-section {
  padding: 2rem 1.25rem 5rem;
  text-align: center;
}

.reasons-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  margin: 0 0 0.4rem;
}

.section-sub {
  color: var(--plum-soft);
  margin: 0 0 2.5rem;
  font-size: 0.95rem;
}

.petal-garden {
  position: relative;
  width: min(90vw, 380px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.petal-center {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  z-index: 2;
}

.petal {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: none;
  background: var(--blush-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 16px -8px rgba(91,67,83,0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 1;
}

.petal:hover, .petal:focus-visible {
  transform: scale(1.14);
  background: var(--lavender-soft);
}

.petal.is-active {
  background: var(--rose);
  transform: scale(1.12);
}

/* positions around the circle (clock-based) */
.petal-1 { top: 0%;    left: 50%;  translate: -50% 0; }
.petal-2 { top: 22%;   left: 92%;  translate: -100% 0; }
.petal-3 { top: 78%;   left: 92%;  translate: -100% -100%; }
.petal-4 { top: 100%;  left: 50%;  translate: -50% -100%; }
.petal-5 { top: 78%;   left: 8%;   translate: 0 -100%; }
.petal-6 { top: 22%;   left: 8%;   translate: 0 0; }

.petal-readout {
  margin-top: 2.5rem;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--rose-deep);
  max-width: 30ch;
  margin-inline: auto;
  min-height: 2.4em;
}

/* ==========================================================================
   BANNER — marquee strip
   ========================================================================== */
.banner {
  overflow: hidden;
  background: linear-gradient(90deg, var(--rose), var(--lavender));
  padding: 1.4rem 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.banner-strip {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.1rem, 3.4vw, 1.6rem);
  color: var(--paper);
  padding-inline: 0.75rem;
}

.banner-strip--forward {
  animation: marquee 18s linear infinite;
}

.banner-strip--reverse {
  animation: marqueeReverse 15s linear infinite;
  font-size: clamp(0.95rem, 2.8vw, 1.25rem);
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .banner-strip { animation: none; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marqueeReverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ==========================================================================
   LOVE METER
   ========================================================================== */
.meter-section {
  text-align: center;
  padding: 2rem 1.25rem 4rem;
}

.meter-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin: 0 0 0.4rem;
}

.love-meter {
  max-width: 380px;
  margin: 2rem auto 0;
  background: var(--paper);
  border: 1px solid var(--blush);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 2.25rem;
  box-shadow: var(--shadow-soft);
}

.meter-face {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.love-slider {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lavender), var(--rose), var(--gold));
  outline: none;
  margin: 0.5rem 0 1.25rem;
}

.love-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--rose-deep);
  box-shadow: 0 4px 10px rgba(91,67,83,0.3);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.love-slider::-webkit-slider-thumb:hover { transform: scale(1.12); }

.love-slider::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--rose-deep);
  box-shadow: 0 4px 10px rgba(91,67,83,0.3);
  cursor: pointer;
}

.meter-caption {
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--rose-deep);
  margin: 0;
  min-height: 1.6em;
}

/* ==========================================================================
   OUR LITTLE GALLERY — illustrated polaroids
   ========================================================================== */
.gallery-section {
  text-align: center;
  padding: 2rem 1.25rem 4rem;
}

.gallery-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin: 0 0 0.4rem;
}

.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.75rem;
  max-width: 780px;
  margin: 2.5rem auto 0;
}

.polaroid {
  background: var(--paper);
  padding: 0.75rem 0.75rem 1.25rem;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  margin: 0;
  transition: transform 0.3s ease;
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.04) translateY(-4px);
}

.polaroid--tilt-left { transform: rotate(-4deg); }
.polaroid--tilt-right { transform: rotate(3deg); }
.polaroid--tilt-left:hover,
.polaroid--tilt-right:hover { transform: scale(1.05) translateY(-4px); }

.polaroid-scene {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.polaroid figcaption {
  font-family: var(--font-script);
  font-size: 1.15rem;
  color: var(--plum-soft);
}

/* Sunny scene */
.polaroid-scene--sunny {
  background: linear-gradient(180deg, #FDEBD3 0%, #FBE1E9 100%);
}
.scene-sun {
  position: absolute;
  top: 18%;
  left: 50%;
  translate: -50% 0;
  width: 38%;
  aspect-ratio: 1;
  background: radial-gradient(circle, #FFF2CC, var(--gold));
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(227, 184, 115, 0.25);
}
.scene-cloud {
  position: absolute;
  width: 40%;
  aspect-ratio: 2.4/1;
  background: #fff;
  border-radius: 999px;
  opacity: 0.85;
}
.scene-cloud--1 { top: 62%; left: 8%; }
.scene-cloud--2 { top: 74%; left: 45%; width: 32%; }

/* Cozy scene */
.polaroid-scene--cozy {
  background: linear-gradient(180deg, var(--blush-soft), var(--lavender-soft));
}
.scene-cup {
  position: absolute;
  bottom: 18%;
  left: 50%;
  translate: -50% 0;
  width: 46%;
  aspect-ratio: 1.1/1;
  background: var(--paper);
  border: 3px solid var(--rose-deep);
  border-radius: 0 0 16px 16px;
}
.scene-cup::after {
  content: "";
  position: absolute;
  right: -34%;
  top: 15%;
  width: 40%;
  height: 45%;
  border: 3px solid var(--rose-deep);
  border-left: none;
  border-radius: 0 12px 12px 0;
}
.scene-steam {
  position: absolute;
  bottom: 55%;
  width: 6%;
  height: 20%;
  background: rgba(139, 107, 122, 0.4);
  border-radius: 999px;
  animation: steamRise 2.6s ease-in-out infinite;
}
.scene-steam--1 { left: 42%; animation-delay: 0s; }
.scene-steam--2 { left: 54%; animation-delay: 0.6s; }
@keyframes steamRise {
  0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.6; }
  50% { transform: translateY(-10px) scaleY(1.3); opacity: 0.2; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-steam { animation: none; }
}

/* Night scene */
.polaroid-scene--night {
  background: linear-gradient(180deg, #5B4780, #8A6B9A);
}
.scene-moon {
  position: absolute;
  top: 20%;
  right: 18%;
  width: 32%;
  aspect-ratio: 1;
  background: #FDF3D8;
  border-radius: 50%;
  box-shadow: -8px 4px 0 2px rgba(91, 71, 128, 1) inset;
}
.scene-star {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #FFF2CC;
  border-radius: 50%;
  animation: twinkle 2s ease-in-out infinite;
}
.scene-star--1 { top: 30%; left: 20%; }
.scene-star--2 { top: 55%; left: 65%; animation-delay: 0.4s; }
.scene-star--3 { top: 70%; left: 30%; animation-delay: 0.8s; }

/* Garden scene */
.polaroid-scene--garden {
  background: linear-gradient(180deg, var(--sage) 0%, #E7F0E3 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-evenly;
  padding-bottom: 10%;
}
.scene-flower { font-size: 1.6rem; animation: sway 3s ease-in-out infinite; }
.scene-flower--2 { animation-delay: 0.5s; }
.scene-flower--3 { animation-delay: 1s; }
@keyframes sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .scene-flower { animation: none; }
}

/* ==========================================================================
   LOVE NOTE GENERATOR
   ========================================================================== */
.note-section {
  text-align: center;
  padding: 2rem 1.25rem 4rem;
}

.note-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin: 0 0 0.4rem;
}

.note-card {
  display: block;
  max-width: 460px;
  margin: 2rem auto 0;
  background: linear-gradient(160deg, var(--blush-soft), var(--paper) 70%);
  border: 1.5px solid var(--rose);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}
.note-card:hover { transform: translateY(-4px) scale(1.02); }
.note-card:active { transform: scale(0.98); }

.note-quote {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 3.5vw, 1.4rem);
  color: var(--plum);
  transition: opacity 0.2s ease;
}

.note-hint {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--plum-soft);
  font-weight: 600;
}

/* ==========================================================================
   MUSIC TOGGLE — floating button
   ========================================================================== */
.music-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 20;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.music-toggle:hover { transform: scale(1.08); }
.music-toggle:active { transform: scale(0.92); }
.music-toggle.is-playing span {
  display: inline-block;
  animation: notebounce 0.5s ease-in-out infinite;
}
@keyframes notebounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(8deg); }
}

/* ==========================================================================
   PARTY MODE — the crazy button
   ========================================================================== */
.party-section {
  text-align: center;
  padding: 3rem 1.25rem 2rem;
}

.party-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  margin: 0 0 0.3rem;
  color: var(--rose-deep);
}

.party-button {
  margin-top: 1.5rem;
  border: none;
  border-radius: 999px;
  padding: 1.25rem 2.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  color: var(--paper);
  background: linear-gradient(120deg, var(--rose-deep), var(--gold), var(--lavender), var(--rose-deep));
  background-size: 300% auto;
  box-shadow: 0 14px 34px -14px rgba(217, 127, 166, 0.6);
  animation: rainbowShift 5s linear infinite, wiggle 2.4s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.party-button:hover { transform: scale(1.06) rotate(-1deg); }
.party-button:active { transform: scale(0.94); }

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  75% { transform: rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .party-button { animation: none; }
}

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

.confetti-piece {
  position: absolute;
  top: -40px;
  will-change: transform, opacity;
  animation-name: confettiFall;
  animation-timing-function: cubic-bezier(0.4, 0.1, 0.6, 0.9);
  animation-fill-mode: forwards;
}

@keyframes confettiFall {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(var(--scale, 1));
    opacity: 1;
  }
  100% {
    transform: translate(var(--drift-x, 0px), 110vh) rotate(var(--spin, 360deg)) scale(var(--scale, 1));
    opacity: 0.9;
  }
}

body.screen-shake {
  animation: screenShake 0.5s ease;
}

@keyframes screenShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 4px); }
  40% { transform: translate(6px, -4px); }
  60% { transform: translate(-4px, -3px); }
  80% { transform: translate(4px, 3px); }
}

@media (prefers-reduced-motion: reduce) {
  body.screen-shake { animation: none; }
}

/* Cursor sparkle trail */
.cursor-trail-heart {
  position: fixed;
  z-index: 4;
  pointer-events: none;
  font-size: 1rem;
  animation: trailFade 0.9s ease-out forwards;
}

@keyframes trailFade {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) translateY(20px); }
}

/* ==========================================================================
   FINALE — burst heart button
   ========================================================================== */
.finale {
  text-align: center;
  padding: 4rem 1.25rem 5rem;
}

.finale h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  margin: 0 0 0.4rem;
}

.burst-heart {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 30%, #fff, var(--blush));
  box-shadow: var(--shadow-soft);
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 0.5rem;
  transition: transform 0.15s ease;
}
.burst-heart:hover { transform: scale(1.06); }
.burst-heart:active { transform: scale(0.92); }

.burst-heart--giant {
  width: 160px;
  height: 160px;
  font-size: 3.4rem;
  animation: heartbeat 2.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .burst-heart--giant { animation: none; }
}

.finale-caption {
  color: var(--plum-soft);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.floating-mini-heart {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  font-size: 1.4rem;
  animation: floatUp 1.6s ease-out forwards;
}

@keyframes floatUp {
  0% { opacity: 1; transform: translate(0,0) scale(0.6) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--drift, 0px), -180px) scale(1.1) rotate(20deg); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: 2rem 1.25rem 3rem;
  font-size: 0.85rem;
  color: var(--plum-soft);
}

/* ==========================================================================
   Responsive tweaks
   ========================================================================== */
@media (max-width: 420px) {
  .petal-garden { width: 84vw; }
  .petal { width: 62px; height: 62px; font-size: 1.5rem; }
  .petal-center { width: 72px; height: 72px; }
  .petal-center img { width: 56px; height: 56px; }
}

@media (min-width: 900px) {
  .hero-script { max-width: 34ch; }
}
