:root {
  --blush: #f4b8c8;
  --blush-deep: #e892a8;
  --peach: #ffd4c4;
  --peach-soft: #ffe8dc;
  --ivory: #fff9f4;
  --sage: #9cb89a;
  --sage-dark: #6d9470;
  --sage-light: #c8ddc4;
  --ink: #3d3530;
  --ink-soft: #6b5f58;
  --sky-top: #fce8ef;
  --sky-bottom: #e8f4e4;
  --heart: #f08098;
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}

h1,
h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
  line-height: 1.65;
  color: var(--ink-soft);
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid var(--blush-deep);
  outline-offset: 4px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--blush);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(232, 146, 168, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 146, 168, 0.5);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid rgba(61, 53, 48, 0.12);
  box-shadow: 0 2px 10px rgba(61, 53, 48, 0.06);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--blush);
}

/* ---------- FLOATING DECO ---------- */
.floating-deco {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.deco-petal {
  position: absolute;
  width: 12px;
  height: 16px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--blush);
  opacity: 0.35;
  animation: float-petal 18s linear infinite;
}

.deco-petal:nth-child(1) { left: 8%; top: 20%; animation-delay: 0s; background: #f4b8c8; }
.deco-petal:nth-child(2) { left: 85%; top: 35%; animation-delay: 4s; background: #ffd4c4; }
.deco-petal:nth-child(3) { left: 70%; top: 75%; animation-delay: 8s; background: #e892a8; }

.deco-star {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #f5c842;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.4;
  animation: twinkle 3s ease-in-out infinite;
}

.deco-star:nth-child(4) { left: 15%; top: 60%; animation-delay: 0s; }
.deco-star:nth-child(5) { left: 92%; top: 15%; animation-delay: 1.5s; }

@keyframes float-petal {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.35; }
  90% { opacity: 0.25; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ---------- HERO (garden scene) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  text-align: center;
  z-index: 1;
  cursor: crosshair;
  background: linear-gradient(
    180deg,
    #c8e4f8 0%,
    #dceef8 24%,
    #eef6ea 52%,
    #e4f0e0 72%,
    #d8ead4 100%
  );
}

.hero::before {
  content: 'tap sky to throw';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(61, 53, 48, 0.28);
  pointer-events: none;
  z-index: 4;
  letter-spacing: 0.03em;
}

.hero-ui {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hero-inner {
  position: absolute;
  top: clamp(28px, 5vh, 52px);
  left: 50%;
  transform: translateX(-50%);
  width: min(88%, 360px);
  z-index: 1;
  pointer-events: auto;
  padding: 0;
}

.hero-brand {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 11vw, 5rem);
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 6px;
  text-shadow:
    0 2px 12px rgba(255, 255, 255, 0.95),
    0 4px 24px rgba(255, 255, 255, 0.7);
}

.hero-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 10px;
  text-shadow:
    0 1px 8px rgba(255, 255, 255, 0.9),
    0 2px 16px rgba(255, 255, 255, 0.65);
}

.hero-notes-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(61, 53, 48, 0.06);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-notes-link:hover {
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-1px);
}

.hero-whisper {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blush-deep);
  opacity: 0.85;
  margin-bottom: 10px;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.85);
}

.hero-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 4;
}

.falling-heart {
  position: absolute;
  top: -24px;
  background: var(--heart);
  transform: rotate(-45deg);
  opacity: 0.55;
  animation: heart-fall linear forwards;
  pointer-events: none;
}

.falling-heart::before,
.falling-heart::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: 50%;
}

.falling-heart::before {
  top: -50%;
  left: 0;
}

.falling-heart::after {
  left: 50%;
  top: 0;
}

.falling-heart.heart-burst {
  animation: heart-burst-up 1.2s ease-out forwards;
  opacity: 0.85;
}

@keyframes heart-fall {
  0% {
    transform: translateY(0) rotate(-45deg) translateX(0);
    opacity: 0;
  }
  8% {
    opacity: 0.55;
  }
  100% {
    transform: translateY(105vh) rotate(-45deg) translateX(30px);
    opacity: 0;
  }
}

@keyframes heart-burst-up {
  0% {
    transform: rotate(-45deg) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: rotate(-45deg) scale(0.3) translateY(-80px);
    opacity: 0;
  }
}

.hero-float-photos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

.hero-float-photo {
  position: absolute;
  width: clamp(68px, 15vw, 96px);
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  border-radius: 50%;
  animation: float-photo 5s ease-in-out infinite;
  animation-delay: calc(var(--fi, 0) * -0.7s);
  transition: transform 0.3s ease, filter 0.3s ease;
  z-index: 1;
}

.hero-float-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow:
    0 8px 24px rgba(61, 53, 48, 0.22),
    0 0 0 1px rgba(244, 184, 200, 0.35);
}

.hero-float-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(244, 184, 200, 0.65);
  animation: spin-slow 12s linear infinite;
}

.hero-float-photo:hover {
  transform: scale(1.14);
  filter: brightness(1.05);
  z-index: 2;
}

.hero-float-tl { top: 7%; left: 5%; }
.hero-float-tr { top: 9%; right: 5%; }
.hero-float-ml { top: 24%; left: 10%; }
.hero-float-mr { top: 22%; right: 10%; }
.hero-float-cl { top: 44%; left: 22%; }
.hero-float-cr { top: 42%; right: 22%; }
.hero-float-bl { bottom: 30%; left: 8%; }
.hero-float-br { bottom: 28%; right: 8%; }

.hero-play-hint {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Caveat', cursive;
  font-size: clamp(1.1rem, 3.5vw, 1.45rem);
  font-weight: 600;
  color: rgba(109, 148, 112, 0.72);
  letter-spacing: 0.04em;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.85);
  animation: hint-glow 4s ease-in-out infinite;
}

@keyframes hint-glow {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

.hero-midfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.mid-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff9c4;
  box-shadow: 0 0 10px 2px rgba(255, 249, 196, 0.75);
  animation: firefly 5s ease-in-out infinite;
}

.ms-a { top: 34%; left: 38%; animation-delay: 0s; }
.ms-b { top: 48%; left: 58%; animation-delay: 1.4s; }
.ms-c { top: 40%; left: 72%; animation-delay: 2.8s; }

.mid-bloom {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blush);
  box-shadow: 0 0 0 6px rgba(244, 184, 200, 0.25);
  animation: mid-bloom-float 6s ease-in-out infinite;
}

.mid-bloom::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 2px;
  height: 14px;
  margin-left: -1px;
  background: linear-gradient(180deg, #7aab7e, transparent);
  border-radius: 2px;
}

.mb-a { top: 36%; left: 28%; animation-delay: 0s; }
.mb-b { top: 50%; left: 48%; animation-delay: -2s; }
.mb-c { top: 42%; left: 68%; animation-delay: -4s; }

@keyframes mid-bloom-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.08);
  }
}

.hero-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 2;
  pointer-events: none;
}

.hero-hills svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes float-photo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

/* lightbox */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.photo-lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(61, 53, 48, 0.55);
  backdrop-filter: blur(8px);
  animation: fade-in 0.3s ease;
}

.lightbox-card {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 12px 12px 20px;
  border-radius: 12px;
  max-width: min(340px, 88vw);
  box-shadow: 0 24px 60px rgba(61, 53, 48, 0.28);
  animation: pop-in 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
  transform-origin: center;
}

.lightbox-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

.lightbox-caption {
  margin-top: 12px;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--blush);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(232, 146, 168, 0.45);
  line-height: 1;
}

body.lightbox-open {
  overflow: hidden;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ---------- LETTERS / POSTCARDS ---------- */
.letters {
  padding: 72px 0 80px;
  background:
    radial-gradient(circle at 10% 20%, rgba(244, 184, 200, 0.12), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(200, 221, 196, 0.15), transparent 40%),
    var(--ivory);
  position: relative;
  z-index: 1;
}

.letters-header {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 40px;
}

.letters-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}

.postcard-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 32px;
}

.postcard {
  position: relative;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  border-radius: 16px;
  overflow: visible;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
  box-shadow:
    0 10px 32px rgba(61, 53, 48, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  filter: saturate(1.02);
}

.postcard.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: calc(var(--i, 0) * 0.07s);
}

.postcard:hover {
  box-shadow:
    0 18px 44px rgba(61, 53, 48, 0.16),
    0 0 0 1px rgba(244, 184, 200, 0.35) inset;
  filter: saturate(1.06);
  transform: translateY(-4px) scale(1.01);
}

.postcard.is-visible:hover {
  transform: translateY(-4px) scale(1.01);
}

.postcard img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  pointer-events: none;
}

.photo-frame {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(61, 53, 48, 0.1);
}

.photo-frame img {
  border-radius: 10px;
}

.postcard-label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'Fraunces', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(61, 53, 48, 0.35);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 6;
}

.postcard-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, rgba(244, 184, 200, 0.85), rgba(232, 146, 168, 0.85));
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 8;
  box-shadow: 0 4px 14px rgba(232, 146, 168, 0.35);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.postcard:hover .postcard-hint {
  transform: translateX(-50%) translateY(-2px);
}

.postcard.is-open .postcard-hint {
  opacity: 0;
  pointer-events: none;
}

/* shared decorations */
.card-deco {
  position: absolute;
  pointer-events: none;
  z-index: 7;
}

.card-deco-tape {
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 72px;
  height: 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 240, 220, 0.92),
    rgba(255, 228, 200, 0.78)
  );
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(61, 53, 48, 0.08);
  opacity: 0.9;
}

.card-deco-tape::before {
  content: '';
  position: absolute;
  inset: 4px 6px;
  border-top: 1px dashed rgba(61, 53, 48, 0.12);
  border-bottom: 1px dashed rgba(61, 53, 48, 0.12);
}

.card-deco-sparkle {
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  background: #fff;
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%,
    50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%
  );
  opacity: 0.75;
  animation: twinkle 2.5s ease-in-out infinite;
}

.card-deco-corner {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-right: 2px solid rgba(244, 184, 200, 0.5);
  border-bottom: 2px solid rgba(244, 184, 200, 0.5);
  border-radius: 0 0 6px 0;
}

/* 1 — Polaroid flip */
.postcard-flip {
  perspective: 1000px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.postcard-flip .postcard-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: 16px;
}

.postcard-flip.is-open .postcard-inner {
  transform: rotateY(180deg);
}

.postcard-flip .postcard-front,
.postcard-flip .postcard-back {
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}

.postcard-flip .postcard-front {
  background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
  padding: 14px 14px 36px;
  box-shadow:
    0 12px 32px rgba(61, 53, 48, 0.12),
    0 0 0 1px rgba(61, 53, 48, 0.04);
}

.postcard-flip .postcard-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background:
    linear-gradient(145deg, #fff9f4 0%, #ffe8dc 50%, #fce8ef 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  box-shadow: 0 12px 32px rgba(61, 53, 48, 0.12);
}

.postcard-flip .postcard-back::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(244, 184, 200, 0.45);
  border-radius: 10px;
  pointer-events: none;
}

.postcard-flip .back-stamp {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 44px;
  background: linear-gradient(135deg, #f4b8c8, #e892a8);
  border-radius: 4px;
  opacity: 0.55;
  transform: rotate(8deg);
}

.postcard-flip .back-stamp::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

.postcard-flip .postcard-back p {
  font-family: 'Caveat', cursive;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.postcard-flip .back-sign {
  margin-top: 16px;
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--blush-deep);
  opacity: 0.85;
}

/* 2 — Envelope */
.postcard-envelope {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #faf3eb, #ede0d0);
  box-shadow:
    0 12px 32px rgba(61, 53, 48, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  overflow: hidden;
}

.postcard-envelope .envelope {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 900px;
}

.postcard-envelope .envelope-texture {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(61, 53, 48, 0.06) 1px, transparent 1px);
  background-size: 4px 4px;
  z-index: 0;
  pointer-events: none;
}

.postcard-envelope .envelope-front {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.postcard-envelope .env-to,
.postcard-envelope .env-from {
  position: absolute;
  left: 18px;
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(61, 53, 48, 0.55);
  line-height: 1.2;
}

.postcard-envelope .env-to {
  top: 42%;
}

.postcard-envelope .env-from {
  top: 52%;
  color: rgba(232, 146, 168, 0.85);
}

.postcard-envelope .env-postmark {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 2px dashed rgba(232, 146, 168, 0.45);
  border-radius: 50%;
  opacity: 0.7;
}

.postcard-envelope .env-postmark::after {
  content: '♡';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(232, 146, 168, 0.7);
}

.postcard-envelope .envelope-body-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35) 0%,
    transparent 50%
  );
  z-index: 1;
  pointer-events: none;
}

.postcard-envelope .envelope-pocket {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #e8d5c4, #dcc4b0);
  clip-path: polygon(0 35%, 50% 65%, 100% 35%, 100% 100%, 0 100%);
  z-index: 3;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.postcard-envelope .envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(180deg, #f0e0d0, #dcc4b0);
  clip-path: polygon(0 0, 50% 70%, 100% 0);
  transform-origin: top center;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  z-index: 4;
  backface-visibility: hidden;
}

.postcard-envelope .wax-seal {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f08098, #c86078);
  box-shadow:
    0 3px 10px rgba(200, 96, 120, 0.45),
    inset 0 -2px 4px rgba(0, 0, 0, 0.12);
  z-index: 5;
  animation: seal-pulse 2.5s ease-in-out infinite;
  transition:
    opacity 0.35s ease 0.15s,
    transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes seal-pulse {
  0%,
  100% {
    box-shadow:
      0 3px 10px rgba(200, 96, 120, 0.45),
      inset 0 -2px 4px rgba(0, 0, 0, 0.12);
  }
  50% {
    box-shadow:
      0 4px 16px rgba(232, 146, 168, 0.55),
      inset 0 -2px 4px rgba(0, 0, 0, 0.12);
  }
}

.postcard-envelope .wax-seal::after {
  content: 'r';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

.postcard-envelope .envelope-letter {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  top: 12px;
  background: #fff;
  border-radius: 10px;
  overflow: visible;
  transform: translateY(42%);
  transition: transform 0.7s cubic-bezier(0.34, 1.35, 0.64, 1);
  z-index: 2;
  box-shadow:
    0 -4px 16px rgba(61, 53, 48, 0.08),
    0 0 0 1px rgba(244, 184, 200, 0.2);
  display: flex;
  flex-direction: column;
}

.postcard-envelope .letter-photo {
  flex-shrink: 0;
  padding: 10px 10px 0;
}

.postcard-envelope .letter-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 2px 10px rgba(61, 53, 48, 0.1);
}

.postcard-envelope .letter-body {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, #fff 0%, #fff9f4 100%);
  border-radius: 0 0 10px 10px;
}

.postcard-envelope .letter-stamp {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 38px;
  background: linear-gradient(135deg, #ffd4c4, #f4b8c8);
  border-radius: 3px;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(232, 146, 168, 0.25);
}

.postcard-envelope .letter-stamp::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.6);
  border-radius: 2px;
}

.postcard-envelope .letter-lines {
  position: absolute;
  top: 8px;
  left: 14px;
  right: 14px;
  height: 36px;
  background: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 7px,
    rgba(244, 184, 200, 0.22) 7px,
    rgba(244, 184, 200, 0.22) 8px
  );
  pointer-events: none;
}

.postcard-envelope .envelope-letter p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.35;
}

.postcard-envelope .letter-sign {
  display: block;
  margin-top: 6px;
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blush-deep);
  text-align: right;
  opacity: 0.85;
}

.postcard-envelope.is-open {
  overflow: visible;
  z-index: 3;
}

.postcard-envelope.is-open .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.postcard-envelope.is-open .envelope-pocket {
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

.postcard-envelope.is-open .envelope-front,
.postcard-envelope.is-open .envelope-body-shine,
.postcard-envelope.is-open .envelope-texture {
  z-index: 1;
}

.postcard-envelope.is-open .envelope-letter {
  transform: translateY(-20%);
  z-index: 10;
  box-shadow:
    0 14px 36px rgba(61, 53, 48, 0.16),
    0 0 0 1px rgba(244, 184, 200, 0.25);
}

.postcard-envelope.is-open .envelope-front {
  opacity: 0;
}

.postcard-envelope.is-open .wax-seal {
  opacity: 0;
  transform: translateX(-50%) scale(0.2);
  animation: none;
}

.postcard-envelope:hover:not(.is-open) .wax-seal {
  animation: seal-wiggle 0.5s ease-in-out;
}

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

/* 3 — Scratch reveal */
.postcard-scratch {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(61, 53, 48, 0.12);
}

.postcard-scratch .scratch-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.postcard-scratch .scratch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  aspect-ratio: auto;
}

.postcard-scratch .scratch-surface {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 20px;
  background: linear-gradient(transparent 45%, rgba(61, 53, 48, 0.72));
  border-radius: 16px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease 0.15s;
}

.postcard-scratch.is-open .scratch-surface {
  opacity: 1;
}

.postcard-scratch .scratch-surface p {
  font-family: 'Caveat', cursive;
  font-size: 1.55rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.postcard-scratch .scratch-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #d8dce4 0%,
    #b8bcc6 25%,
    #c8ccd4 50%,
    #a8acb6 75%,
    #d0d4dc 100%
  );
  border-radius: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(61, 53, 48, 0.2);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
  overflow: hidden;
}

.postcard-scratch .scratch-shimmer {
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 60%
  );
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-60%) rotate(25deg); }
  100% { transform: translateX(60%) rotate(25deg); }
}

.postcard-scratch.is-open .scratch-cover {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08);
  pointer-events: none;
}

.postcard-scratch.is-open .scratch-shimmer {
  animation: none;
}

/* 4 — Fold card */
.postcard-fold {
  aspect-ratio: 4 / 5;
  box-shadow: none;
  overflow: visible;
}

.postcard-fold .fold-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(61, 53, 48, 0.12);
}

.postcard-fold .fold-cover {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transition: transform 0.75s cubic-bezier(0.4, 0.2, 0.2, 1);
  z-index: 2;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  background: #fff;
}

.postcard-fold .fold-ribbon {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 28px;
  background: linear-gradient(90deg, transparent, rgba(244, 184, 200, 0.55));
  z-index: 3;
  pointer-events: none;
}

.postcard-fold .fold-ribbon::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blush);
  box-shadow: 0 2px 8px rgba(232, 146, 168, 0.4);
}

.postcard-fold .fold-inside {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(244, 184, 200, 0.2), transparent 40%),
    linear-gradient(160deg, #fff5f8, #fff9f4);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 1;
}

.postcard-fold .fold-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(var(--blush) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
}

.postcard-fold .fold-inside p {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
  text-align: center;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.postcard-fold.is-open .fold-cover {
  transform: perspective(900px) rotateY(-108deg);
}

/* 5 — Speech bubble */
.postcard-bubble {
  position: relative;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 12px 32px rgba(61, 53, 48, 0.12);
}

.postcard-bubble .bubble-photo img {
  border-radius: 16px;
}

.postcard-bubble .speech-bubble {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: linear-gradient(145deg, #fff, #fff5f8);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow:
    0 8px 24px rgba(232, 146, 168, 0.2),
    0 0 0 2px rgba(244, 184, 200, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1),
    visibility 0.4s ease;
  z-index: 3;
  overflow: hidden;
}

.postcard-bubble .bubble-shine {
  position: absolute;
  top: 6px;
  left: 12px;
  width: 24px;
  height: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  filter: blur(2px);
}

.postcard-bubble .speech-bubble::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-bottom-color: #fff5f8;
  filter: drop-shadow(0 -1px 2px rgba(232, 146, 168, 0.12));
}

.postcard-bubble .speech-bubble p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.45;
  position: relative;
  z-index: 1;
  margin: 0;
}

.postcard-bubble.is-open .speech-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 6 — Curtain */
.postcard-curtain {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(61, 53, 48, 0.12);
}

.postcard-curtain .curtain-photo img {
  border-radius: 16px;
}

.postcard-curtain .curtain-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 85%,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 55%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease 0.35s;
  pointer-events: none;
}

.postcard-curtain.is-open .curtain-spotlight {
  opacity: 1;
}

.postcard-curtain .curtain-msg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 20px 18px;
  background: linear-gradient(transparent 0%, rgba(61, 53, 48, 0.62) 100%);
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.55s ease 0.35s;
  line-height: 1.45;
  margin: 0;
}

.postcard-curtain.is-open .curtain-msg {
  opacity: 1;
}

.postcard-curtain .curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
  background: linear-gradient(
    90deg,
    #d87898 0%,
    #e892a8 40%,
    #f4b8c8 100%
  );
  z-index: 2;
  transition: transform 0.75s cubic-bezier(0.4, 0.2, 0.2, 1);
  overflow: hidden;
}

.postcard-curtain .curtain-fold {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 8px,
    rgba(0, 0, 0, 0.04) 8px,
    rgba(0, 0, 0, 0.04) 10px
  );
  pointer-events: none;
}

.postcard-curtain .curtain-tie {
  position: absolute;
  top: 45%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd4c4, #d4a080);
  box-shadow: 0 2px 6px rgba(61, 53, 48, 0.25);
}

.postcard-curtain .curtain-left {
  left: 0;
  border-radius: 16px 0 0 16px;
  transform-origin: left center;
}

.postcard-curtain .curtain-left .curtain-tie {
  right: -7px;
}

.postcard-curtain .curtain-right {
  right: 0;
  border-radius: 0 16px 16px 0;
  transform-origin: right center;
  background: linear-gradient(270deg, #d87898, #e892a8 40%, #f4b8c8);
}

.postcard-curtain .curtain-right .curtain-tie {
  left: -7px;
}

.postcard-curtain.is-open .curtain-left {
  transform: translateX(-100%);
}

.postcard-curtain.is-open .curtain-right {
  transform: translateX(100%);
}

/* 7 — Typewriter */
.postcard-typewriter {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(61, 53, 48, 0.12);
}

.postcard-typewriter .type-photo img {
  border-radius: 16px;
  filter: brightness(0.94) saturate(0.95);
}

.postcard-typewriter .typewriter-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.97), rgba(255, 249, 244, 0.98));
  backdrop-filter: blur(8px);
  padding: 14px 16px 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--ink);
  min-height: 72px;
  z-index: 3;
  border-radius: 0 0 16px 16px;
  border-top: 2px solid rgba(244, 184, 200, 0.4);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.postcard-typewriter .typewriter-label {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blush-deep);
  margin-bottom: 6px;
}

.postcard-typewriter.is-open .typewriter-box {
  opacity: 1;
  transform: translateY(0);
}

.postcard-typewriter .typewriter-cursor {
  animation: blink-cursor 0.8s step-end infinite;
  color: var(--blush-deep);
}

/* 8 — Shake */
.postcard-shake {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(61, 53, 48, 0.12);
}

.postcard-shake .shake-frame {
  position: relative;
}

.postcard-shake .shake-photo {
  background: #fff;
  padding: 10px 10px 28px;
  box-shadow: inset 0 0 0 1px rgba(61, 53, 48, 0.06);
}

.postcard-shake .shake-glitter {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.35) 0%, transparent 8%),
    radial-gradient(circle at 80% 20%, rgba(244, 184, 200, 0.4) 0%, transparent 6%),
    radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.5) 0%, transparent 5%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.postcard-shake.is-open .shake-glitter {
  opacity: 1;
}

.postcard-shake .shake-msg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(61, 53, 48, 0.82));
  color: #fff;
  padding: 40px 18px 18px;
  font-family: 'Caveat', cursive;
  font-size: 1.45rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  z-index: 2;
  line-height: 1.35;
}

.postcard-shake.is-open .shake-msg {
  opacity: 1;
  transform: translateY(0);
}

.postcard-shake.is-shaking .shake-frame {
  animation: polaroid-shake 0.55s ease;
}

/* 9 — Heart lock */
.postcard-heart {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(61, 53, 48, 0.12);
}

.postcard-heart .heart-photo img {
  border-radius: 16px;
}

.postcard-heart .heart-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(244, 184, 200, 0.35) 0%,
    transparent 55%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.postcard-heart.is-open .heart-glow {
  opacity: 1;
}

.postcard-heart .heart-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 249, 244, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.postcard-heart .heart-lock svg {
  width: 64px;
  height: 64px;
  fill: var(--heart);
  filter: drop-shadow(0 6px 16px rgba(240, 128, 152, 0.55));
  animation: heart-pulse 1.2s ease-in-out infinite;
}

.postcard-heart.is-open .heart-lock {
  opacity: 0;
  transform: scale(1.6);
  pointer-events: none;
}

.postcard-heart .heart-msg {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
  text-align: center;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.5s ease 0.12s, transform 0.5s ease 0.12s;
  z-index: 3;
  box-shadow:
    0 8px 24px rgba(232, 146, 168, 0.2),
    0 0 0 1px rgba(244, 184, 200, 0.3);
}

.postcard-heart.is-open .heart-msg {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.postcard-heart.is-open .heart-lock svg {
  animation: none;
}


/* ---------- GARDEN LAYERS (hero background) ---------- */
.garden-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.garden-sun {
  position: absolute;
  top: 16px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8dc, #ffd966 60%, #ffb84d);
  box-shadow: 0 0 24px rgba(255, 201, 77, 0.45);
  animation: sun-glow 4s ease-in-out infinite;
}

@keyframes sun-glow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 24px rgba(255, 201, 77, 0.45);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 32px rgba(255, 201, 77, 0.55);
  }
}

.garden-cloud {
  position: absolute;
  background: #fff;
  border-radius: 40px;
  opacity: 0.88;
  animation: cloud-drift linear infinite;
}

.garden-cloud::before,
.garden-cloud::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 50%;
}

.gc-a {
  width: 70px;
  height: 22px;
  top: 28px;
  left: 12%;
  animation-duration: 38s;
}

.gc-a::before {
  width: 32px;
  height: 32px;
  top: -16px;
  left: 10px;
}

.gc-a::after {
  width: 24px;
  height: 24px;
  top: -10px;
  left: 36px;
}

.gc-b {
  width: 56px;
  height: 18px;
  top: 52px;
  left: 55%;
  animation-duration: 48s;
  animation-delay: -12s;
  opacity: 0.75;
}

.gc-b::before {
  width: 26px;
  height: 26px;
  top: -12px;
  left: 8px;
}

.gc-b::after {
  width: 20px;
  height: 20px;
  top: -8px;
  left: 28px;
}

.gc-c {
  width: 48px;
  height: 16px;
  top: 38%;
  left: 38%;
  animation-duration: 52s;
  animation-delay: -20s;
  opacity: 0.6;
}

.gc-c::before {
  width: 22px;
  height: 22px;
  top: -10px;
  left: 6px;
}

.gc-c::after {
  width: 18px;
  height: 18px;
  top: -7px;
  left: 24px;
}

@keyframes cloud-drift {
  from {
    transform: translateX(-10%);
  }
  to {
    transform: translateX(calc(100% + 80px));
  }
}

.garden-butterfly {
  position: absolute;
  width: 14px;
  height: 10px;
  z-index: 2;
}

.garden-butterfly::before,
.garden-butterfly::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 10px;
  border-radius: 50% 50% 40% 40%;
  background: var(--blush);
  top: 0;
  animation: flap 0.35s ease-in-out infinite;
}

.garden-butterfly::before {
  left: 0;
  transform-origin: right center;
}

.garden-butterfly::after {
  right: 0;
  background: var(--blush-deep);
  transform-origin: left center;
  animation-delay: 0.12s;
}

.gb-1 {
  top: 30%;
  animation: butterfly-path 14s ease-in-out infinite;
}

.gb-2 {
  top: 22%;
  animation: butterfly-path 18s ease-in-out infinite reverse;
  animation-delay: -6s;
}

.gb-2::before,
.gb-2::after {
  background: #e8c4f0;
}

.gb-2::after {
  background: #c8a0d8;
}

.gb-3 {
  top: 44%;
  left: 20%;
  animation: butterfly-path 16s ease-in-out infinite;
  animation-delay: -3s;
}

.gb-3::before,
.gb-3::after {
  background: #ffd4c4;
}

.gb-3::after {
  background: #f4b8c8;
}

@keyframes flap {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.4);
  }
}

@keyframes butterfly-path {
  0% {
    left: -5%;
    transform: translateY(0);
  }
  25% {
    transform: translateY(-20px);
  }
  50% {
    left: 50%;
    transform: translateY(8px);
  }
  75% {
    transform: translateY(-14px);
  }
  100% {
    left: 105%;
    transform: translateY(0);
  }
}

.garden-firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff9c4;
  box-shadow: 0 0 8px 2px rgba(255, 249, 196, 0.8);
  animation: firefly 4s ease-in-out infinite;
}

.gf-1 {
  top: 35%;
  left: 20%;
  animation-delay: 0s;
}

.gf-2 {
  top: 48%;
  left: 70%;
  animation-delay: 1.2s;
}

.gf-3 {
  top: 28%;
  left: 45%;
  animation-delay: 2.4s;
}

.gf-4 {
  top: 52%;
  left: 42%;
  animation-delay: 3.6s;
}

@keyframes firefly {
  0%,
  100% {
    opacity: 0.2;
    transform: translate(0, 0);
  }
  50% {
    opacity: 1;
    transform: translate(8px, -12px);
  }
}

.garden-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.meadow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(
    180deg,
    rgba(148, 184, 144, 0) 0%,
    rgba(124, 168, 122, 0.12) 25%,
    rgba(124, 168, 122, 0.45) 50%,
    rgba(122, 171, 126, 0.75) 75%,
    rgba(106, 155, 110, 0.85) 100%
  );
  cursor: pointer;
  z-index: 3;
}

.meadow::after {
  content: 'tap to plant';
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(61, 53, 48, 0.25);
  pointer-events: none;
  white-space: nowrap;
}

.flowers-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.flower-item {
  position: absolute;
  bottom: 22%;
  transform: translateX(-50%);
  pointer-events: auto;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px 0;
  z-index: 4;
  transform-origin: center bottom;
  filter: drop-shadow(0 3px 6px rgba(61, 53, 48, 0.15));
  transition: filter 0.25s ease;
}

.flower-item:hover {
  filter: drop-shadow(0 5px 10px rgba(61, 53, 48, 0.22));
}

.flower-item.idle .flower-bloom {
  animation: flower-idle var(--sway-dur, 3.2s) ease-in-out infinite;
  animation-delay: var(--sway-delay, 0s);
  transform-origin: 24px 58px;
}

@keyframes flower-idle {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.flower-item.sway {
  animation: flower-sway 0.65s ease;
}

.flower-item.blooming {
  animation: bloom-in 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.flower-svg {
  width: 52px;
  height: auto;
  display: block;
}

.flower-stem-path {
  stroke-linecap: round;
}

@keyframes flower-sway {
  0%,
  100% {
    transform: translateX(-50%) rotate(0deg) scale(1);
  }
  25% {
    transform: translateX(-50%) rotate(-14deg) scale(1.05);
  }
  75% {
    transform: translateX(-50%) rotate(14deg) scale(1.05);
  }
}

@keyframes bloom-in {
  from {
    transform: translateX(-50%) scale(0) translateY(24px);
    opacity: 0;
  }
  60% {
    transform: translateX(-50%) scale(1.08) translateY(-4px);
    opacity: 1;
  }
  to {
    transform: translateX(-50%) scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes blink-cursor {
  50% { opacity: 0; }
}

@keyframes polaroid-shake {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-4deg) translateX(-3px); }
  30% { transform: rotate(4deg) translateX(3px); }
  45% { transform: rotate(-3deg); }
  60% { transform: rotate(3deg); }
  75% { transform: rotate(-1deg); }
}

@keyframes heart-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.pets-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.pet {
  position: absolute;
  width: 110px;
  height: 92px;
  border: none;
  background: none;
  padding: 8px;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: center bottom;
  filter: drop-shadow(0 6px 10px rgba(61, 53, 48, 0.18));
  transition: filter 0.2s ease;
}

.pet-dog-btn {
  width: 120px;
  height: 100px;
}

.pet:hover {
  filter: drop-shadow(0 8px 14px rgba(61, 53, 48, 0.26));
}

.pet.is-petted {
  filter: drop-shadow(0 8px 16px rgba(240, 128, 152, 0.35));
}

.pet.is-chasing .pet-inner {
  animation: pet-bounce-chase 0.35s ease infinite;
}

@keyframes pet-bounce-chase {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.pet-bubble {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(61, 53, 48, 0.12);
  z-index: 10;
  pointer-events: none;
}

.pet-bubble::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #fff;
}

.ball-trail {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.35);
  pointer-events: none;
  z-index: 2;
  animation: trail-fade 0.5s ease-out forwards;
}

@keyframes trail-fade {
  to {
    opacity: 0;
    transform: scale(0.3);
  }
}

.pet-inner {
  width: 100%;
  height: 100%;
  will-change: transform;
}

.pet-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.garden-toolbar {
  position: absolute;
  bottom: clamp(12px, 2.5vh, 24px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(96%, 560px);
  z-index: 2;
  pointer-events: auto;
  padding: 0;
  background: none;
  backdrop-filter: none;
  box-shadow: none;
}

.garden-toolbar .btn {
  padding: 10px 18px;
  font-size: 0.88rem;
  box-shadow: 0 4px 16px rgba(61, 53, 48, 0.12);
}

.garden-toolbar .btn-primary {
  background: rgba(244, 184, 200, 0.92);
}

.garden-toolbar .btn-secondary {
  background: rgba(255, 255, 255, 0.88);
}

.joy-counter {
  flex: 1 1 100%;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(61, 53, 48, 0.3);
}

.click-ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 2px solid rgba(244, 184, 200, 0.7);
  pointer-events: none;
  z-index: 6;
  animation: ripple-out 0.6s ease-out forwards;
}

@keyframes ripple-out {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.petal-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.ambient-petal {
  position: absolute;
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0.6;
  animation: drift-down linear infinite;
}

@keyframes drift-down {
  from {
    transform: translateY(-20px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.4;
  }
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ambient-petal,
  .deco-petal,
  .deco-star,
  .falling-heart,
  .hero-float-photo,
  .mid-bloom,
  .footer-pet,
  .garden-cloud,
  .garden-butterfly,
  .garden-firefly,
  .garden-sun,
  .flower-item.blooming,
  .flower-item.sway,
  .flower-item.idle .flower-bloom,
  .pet.is-chasing .pet-inner,
  .click-ripple,
  .postcard-heart .heart-lock svg,
  .scratch-shimmer,
  .card-deco-sparkle,
  .ball-trail,
  .postcard-envelope .wax-seal {
    animation: none !important;
  }

  .footer-pet .pet-tail,
  .footer-pet .pet-eye {
    animation: none !important;
  }

  .postcard {
    opacity: 1;
    transform: none;
  }

  .postcard-flip .postcard-inner,
  .postcard-fold .fold-cover,
  .postcard-curtain .curtain-panel,
  .postcard-envelope .envelope-flap,
  .postcard-envelope .envelope-letter {
    transition-duration: 0.2s;
  }

  .postcard:hover {
    transform: none;
    box-shadow: 0 10px 32px rgba(61, 53, 48, 0.1);
  }

  .postcard.is-visible:hover {
    transform: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}

/* ---------- PARTICLES ---------- */
.burst-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

.burst-heart,
.burst-petal,
.burst-star {
  position: absolute;
  pointer-events: none;
  animation: burst-up 1.2s ease-out forwards;
}

.burst-heart {
  width: 14px;
  height: 14px;
  background: var(--heart);
  transform: rotate(-45deg);
}

.burst-heart::before,
.burst-heart::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--heart);
  border-radius: 50%;
}

.burst-heart::before {
  top: -7px;
  left: 0;
}

.burst-heart::after {
  left: 7px;
  top: 0;
}

.burst-petal {
  width: 8px;
  height: 12px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.burst-star {
  width: 12px;
  height: 12px;
  background: #f5c842;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

@keyframes burst-up {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--bx), var(--by)) scale(0.4) rotate(var(--br));
  }
}

/* ---------- FOOTER ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--peach-soft) 0%, var(--ivory) 100%);
  color: var(--ink-soft);
}

.footer-wave {
  color: var(--peach-soft);
  line-height: 0;
  margin-top: -1px;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 48px;
}

.footer-inner {
  text-align: center;
  padding: 4px 24px 44px;
  max-width: 480px;
}

.footer-pets {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(4px, 3vw, 20px);
  margin: 0 auto 18px;
  min-height: 58px;
}

.footer-pet {
  flex-shrink: 0;
  width: 68px;
  height: 56px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  animation: footer-pet-bob 2.6s ease-in-out infinite;
}

.footer-pet .pet-bubble {
  top: auto;
  bottom: calc(100% + 4px);
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
}

.footer-pet.fp-dog {
  width: 76px;
  height: 62px;
}

.footer-pet.fp-gray {
  animation-delay: 0s;
}

.footer-pet.fp-ginger {
  animation-delay: -0.5s;
}

.footer-pet.fp-dog {
  animation-delay: -1s;
}

.footer-pet .pet-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(61, 53, 48, 0.1));
}

.footer-pet .pet-tail {
  transform-origin: 20% 80%;
  animation: footer-tail-wag 1.4s ease-in-out infinite;
}

.fp-ginger .pet-tail {
  transform-origin: 80% 80%;
  animation-delay: -0.3s;
}

.fp-dog .pet-tail {
  transform-origin: 18% 70%;
  animation-delay: -0.6s;
}

.footer-pet .pet-eye {
  transform-origin: center;
  animation: footer-blink 5s ease infinite;
}

.fp-ginger .pet-eye {
  animation-delay: -1.5s;
}

.fp-dog .pet-eye {
  animation-delay: -2.5s;
}

@keyframes footer-pet-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes footer-tail-wag {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(10deg);
  }
}

@keyframes footer-blink {
  0%,
  94%,
  100% {
    transform: scaleY(1);
  }
  97% {
    transform: scaleY(0.12);
  }
}

.footer-sign {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 4px;
}

.footer-tag {
  font-size: 0.84rem;
  margin: 0 0 16px;
  opacity: 0.8;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(232, 146, 168, 0.45);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--ink);
  border-color: var(--blush-deep);
}

/* ---------- MOBILE ---------- */
@media (max-width: 720px) {
  .hero {
    max-height: none;
    min-height: 100svh;
    height: 100svh;
  }

  .hero-brand {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
  }

  .hero-inner {
    top: clamp(24px, 5vh, 40px);
    width: min(84%, 300px);
  }

  .postcard-gallery {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-float-photo {
    width: clamp(60px, 16vw, 76px);
  }

  .hero-float-ml,
  .hero-float-mr {
    top: 20%;
  }

  .hero-float-cl,
  .hero-float-cr {
    top: 40%;
  }

  .hero-float-cl { left: 14%; }
  .hero-float-cr { right: 14%; }

  .hero-play-hint {
    top: 54%;
    font-size: 1rem;
  }

  .hero-whisper {
    font-size: 0.7rem;
  }

  .footer-pet {
    width: 58px;
    height: 48px;
  }

  .footer-pet.fp-dog {
    width: 64px;
    height: 52px;
  }

  .pet {
    width: 88px;
    height: 74px;
    padding: 4px;
  }

  .pet-dog-btn {
    width: 96px;
    height: 80px;
  }
}
