@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Lato:wght@300;400;700&family=Dancing+Script:wght@600;700&display=swap');

/* ─────────────────────────────────────────────
   TOKENS
───────────────────────────────────────────── */
:root {
  --cream:          #FAF6EE;
  --parchment:      #F0E6D3;
  --parchment-dark: #E5D5BE;
  --brown-light:    #C4A882;
  --brown-mid:      #8B6240;
  --brown-dark:     #5C3D2E;
  --rose:           #B06060;
  --text-dark:      #3D2B1F;
  --text-mid:       #7A5C42;
  --text-light:     #A89070;
  --found-green:    #6A8C5A;

  --radius:     20px;
  --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  /* prevent elastic bounce on iOS from showing white gaps */
  background: var(--cream);
}

body {
  min-height: 100%;
  min-height: 100dvh;
  background: var(--cream);
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  /* paper grain */
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(196,168,130,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(176,96,96,0.08) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(196,168,130,0.03) 2px, rgba(196,168,130,0.03) 4px);
  /* no iOS tap highlight */
  -webkit-tap-highlight-color: transparent;
}

/* ─────────────────────────────────────────────
   BOTANICAL BG
───────────────────────────────────────────── */
.bg-botanicals { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.botanical { position: absolute; opacity: 0.5; }
.botanical.top-left    { top: -12px; left: -12px; width: clamp(140px, 22vw, 210px); height: auto; }
.botanical.bottom-right { bottom: -12px; right: -12px; width: clamp(140px, 22vw, 210px); height: auto; }

.heart-deco { position: absolute; opacity: 0.4; animation: float-heart 6s ease-in-out infinite; }
.heart-1 { top: 10%;  right: 6%;  width: clamp(32px,7vw,48px); animation-delay: 0s;   }
.heart-2 { top: 20%;  right: 14%; width: clamp(24px,5vw,36px); animation-delay: 1.2s; }
.heart-3 { bottom: 15%; left: 8%; width: clamp(28px,6vw,40px); animation-delay: 2.5s; }

@keyframes float-heart {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-10px) rotate(3deg); }
}

/* ─────────────────────────────────────────────
   CONFETTI
───────────────────────────────────────────── */
#confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 999; }

/* ─────────────────────────────────────────────
   STATE SYSTEM
───────────────────────────────────────────── */
.state {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  overflow-y: auto;
}
.state.active { opacity: 1; pointer-events: all; }

/* ─────────────────────────────────────────────
   CARD BASE — fills more of screen on mobile
───────────────────────────────────────────── */
.card {
  background: var(--parchment);
  border: 1px solid var(--brown-light);
  border-radius: var(--radius);
  padding: clamp(20px, 5vw, 36px) clamp(18px, 5vw, 32px);
  width: 100%;
  max-width: 520px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 0 var(--parchment-dark),
    0 6px 32px rgba(92, 61, 46, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.65);
  text-align: center;
  /* ensure card doesn't exceed viewport height */
  max-height: 96dvh;
  overflow-y: auto;
}
.card::-webkit-scrollbar { display: none; }
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(196,168,130,0.04) 60px, rgba(196,168,130,0.04) 61px);
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   TYPOGRAPHY — clamp for fluid sizing
───────────────────────────────────────────── */
.ornament-line { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ornament-line span:first-child,
.ornament-line span:last-child { flex: 1; height: 1px; background: var(--brown-light); opacity: 0.6; }
.ornament-diamond { font-size: 0.6rem; color: var(--brown-light); }

.label-small {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.6rem, 2vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}
.label-small.found-label { color: var(--found-green); }

.title-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.title-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.title-map {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 400;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 18px;
}
.body-text {
  font-size: clamp(0.88rem, 2.5vw, 1rem);
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 24px;
}
.body-text strong { color: var(--brown-mid); font-weight: 700; }
.fine-print { margin-top: 14px; font-size: clamp(0.6rem, 2vw, 0.7rem); color: var(--text-light); letter-spacing: 0.4px; }

.divider-floral { margin: 12px auto 18px; width: min(200px, 55%); }
.divider-floral svg { width: 100%; display: block; }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brown-dark);
  color: var(--cream);
  border: none;
  border-radius: 50px;
  padding: clamp(14px, 3.5vw, 18px) clamp(28px, 6vw, 40px);
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.78rem, 2.5vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(92,61,46,0.22);
  touch-action: manipulation;
}
.btn-primary:hover { background: var(--brown-mid); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(92,61,46,0.28); }
.btn-primary:active { transform: translateY(0); }

/* ─────────────────────────────────────────────
   STATE 2: MAP
───────────────────────────────────────────── */
.card-map {
  padding: clamp(14px,3.5vw,22px) clamp(12px,3vw,20px);
}

.map-wrapper {
  width: 100%;
  background: #FBF4E8;
  border: 1px solid rgba(196,168,130,0.5);
  border-radius: 12px;
  position: relative;
  margin-bottom: 10px;
  overflow: hidden;
}
#world-map { width: 100%; display: block; }

/* Continent shapes */
.continent-shape {
  fill: rgba(196,168,130,0.18);
  stroke: var(--brown-mid);
  stroke-width: 0.8;
  transition: fill 0.45s ease, stroke 0.45s ease, stroke-width 0.45s ease;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.india-sub {
  fill: rgba(196,168,130,0.12);
  stroke: var(--brown-mid);
  stroke-width: 0.7;
}
.continent-label {
  font-family: 'Lato', sans-serif;
  font-size: 9px;
  fill: var(--text-mid);
  font-weight: 700;
  pointer-events: none;
  transition: fill 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.continent-status {
  font-family: 'Lato', sans-serif;
  font-size: 7.5px;
  fill: var(--text-light);
  font-weight: 700;
  pointer-events: none;
}
.india-label { font-size: 7px; fill: var(--rose); font-weight: 700; }

/* Continent states */
.continent.scanning .continent-shape { fill: rgba(196,168,130,0.40); stroke: var(--brown-dark); stroke-width: 1.5; }
.continent.not-found .continent-shape { fill: rgba(196,168,130,0.06); stroke: rgba(196,168,130,0.28); stroke-width: 0.5; }
.continent.not-found .continent-label { fill: rgba(160,140,112,0.38); }
.continent.not-found .continent-status { fill: var(--rose); }
.continent.found .continent-shape { fill: rgba(176,96,96,0.14); stroke: var(--rose); stroke-width: 1.8; }
.continent.found .india-sub { fill: rgba(176,96,96,0.22); stroke: var(--rose); stroke-width: 1.5; }
.continent.found .continent-label { fill: var(--rose); }
.continent.found .continent-status { fill: var(--found-green); }

/* Bangalore pin */
.pin-dot { fill: var(--rose); }
.pin-ring { stroke: var(--rose); stroke-width: 1; fill: none; animation: pin-ping 2.2s ease-out infinite; }
.ring-1 { animation-delay: 0s;    }
.ring-2 { animation-delay: 0.6s;  }
.ring-3 { animation-delay: 1.2s;  }
@keyframes pin-ping { 0%{opacity:0.9;} 100%{opacity:0;} }

/* Scan indicator badge */
.scan-indicator {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(250,246,238,0.95);
  border: 1px solid var(--brown-light);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: clamp(0.55rem, 1.8vw, 0.65rem);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-mid);
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.scan-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); animation: blink 1s ease-in-out infinite; flex-shrink: 0; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.15;} }

/* Terminal log */
.log-terminal {
  background: rgba(240,230,211,0.55);
  border: 1px solid rgba(196,168,130,0.4);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: left;
  max-height: clamp(75px, 15vw, 100px);
  overflow-y: auto;
  position: relative;
}
.log-entry {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  color: var(--text-mid);
  line-height: 1.9;
  opacity: 0;
  animation: fade-log 0.3s forwards;
}
.log-entry.log-negative { color: var(--rose); }
.log-entry.log-signal   { color: var(--found-green); font-weight: 700; }
.log-entry.log-warning  { color: var(--brown-mid); font-weight: 700; }
.log-entry.log-success  { color: var(--found-green); font-weight: 700; }
.cursor { font-size: 0.9rem; color: var(--brown-light); animation: blink 1s step-start infinite; }

@keyframes fade-log { to { opacity: 1; } }
.log-terminal::-webkit-scrollbar { width: 3px; }
.log-terminal::-webkit-scrollbar-thumb { background: var(--brown-light); border-radius: 3px; }

/* ─────────────────────────────────────────────
   STATE 3: ZOOM
───────────────────────────────────────────── */
.card-zoom { padding: clamp(22px,5vw,36px) clamp(18px,4vw,30px); }

.location-trail {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 2px;
  margin: 22px 0;
}
.trail-item { display: flex; align-items: center; gap: 5px; opacity: 0; transform: translateY(8px); transition: all 0.5s ease; }
.trail-item.visible { opacity: 1; transform: translateY(0); }
.trail-icon { font-size: clamp(1rem, 3vw, 1.3rem); }
.trail-name { font-family: 'Cormorant Garamond', serif; font-size: clamp(1rem, 3.5vw, 1.3rem); font-weight: 600; color: var(--brown-mid); }
.trail-arrow { font-size: 0.9rem; color: var(--brown-light); margin: 0 2px; }
#trail-bangalore .trail-name { color: var(--rose); font-size: clamp(1.1rem, 3.8vw, 1.4rem); }

.coordinates-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(240,230,211,0.6);
  border: 1px solid rgba(196,168,130,0.5);
  border-radius: 12px;
  padding: clamp(14px, 3vw, 20px) clamp(18px, 4vw, 28px);
  margin-bottom: 18px;
}
.coord-row { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.coord-label { font-size: clamp(0.58rem, 1.8vw, 0.68rem); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); }
.coord-value { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.1rem, 4vw, 1.5rem); font-weight: 600; color: var(--brown-dark); font-variant-numeric: tabular-nums; }
.coord-divider { width: 1px; height: 40px; background: var(--brown-light); opacity: 0.4; }

.zoom-status-text { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(0.9rem, 3vw, 1.1rem); color: var(--text-mid); animation: pulse-text 1.8s ease-in-out infinite; }
@keyframes pulse-text { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* ─────────────────────────────────────────────
   STATE 4: REVEAL
───────────────────────────────────────────── */
.card-reveal { padding: clamp(18px,4vw,28px) clamp(14px,3.5vw,24px); }

.registry-frame {
  border: 1px solid var(--brown-light);
  border-radius: 14px;
  padding: clamp(12px,3vw,18px);
  margin-bottom: 0;
  background: rgba(255,252,245,0.5);
  position: relative;
}
.frame-header { text-align: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(196,168,130,0.4); }
.frame-header-text { font-size: clamp(0.55rem, 1.6vw, 0.65rem); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); }

/* Photo — bigger on mobile, portrait ratio */
.photo-container { width: 100%; max-width: clamp(180px, 48vw, 260px); margin: 0 auto 14px; position: relative; }
.photo-inner { width: 100%; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: var(--parchment-dark); position: relative; }
.photo-inner img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  opacity: 0;
  transition: opacity 2.2s ease, filter 2.2s ease;
  filter: blur(14px) brightness(0.75);
}
.photo-inner img.revealed { opacity: 1; filter: blur(0) brightness(1); }
.photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--text-light); font-size: clamp(0.65rem, 2vw, 0.78rem); font-weight: 700; letter-spacing: 1px;
}
.photo-placeholder svg { width: 55px; height: 55px; opacity: 0.5; }
.photo-corners { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); pointer-events: none; }

/* Registry stats */
.registry-stats { text-align: left; }
.stat-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(5px,1.5vw,8px) 0;
  border-bottom: 1px dashed rgba(196,168,130,0.35); gap: 10px;
}
.stat-item:last-child { border-bottom: none; }
.stat-key { font-size: clamp(0.62rem, 1.8vw, 0.72rem); font-weight: 700; letter-spacing: 0.4px; color: var(--text-light); text-transform: uppercase; flex-shrink: 0; }
.stat-val { font-family: 'Cormorant Garamond', serif; font-size: clamp(0.88rem, 2.8vw, 1.05rem); color: var(--text-dark); text-align: right; }
.highlight-val { color: var(--rose); font-weight: 600; }

/* Verified stamp — in-flow, right-aligned row between stats and button */
.stamp-row {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0 6px;
}
.stamp {
  width: clamp(52px, 12vw, 65px);
  height: clamp(52px, 12vw, 65px);
  opacity: 0;
  transform: scale(1.5) rotate(-15deg);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
}
.stamp.visible { opacity: 1; transform: scale(1) rotate(-12deg); }
.stamp-inner { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.stamp-inner svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stamp-text { font-size: 0.42rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brown-mid); position: relative; z-index: 1; margin-top: -8px; }

/* Relationship status + find match */
.status-match-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(196,168,130,0.35);
}
.rel-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.rel-status-key {
  font-size: clamp(0.62rem,1.8vw,0.72rem);
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-light);
  text-transform: uppercase;
}
.rel-status-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.9rem, 2.8vw, 1.05rem);
  color: var(--found-green);
  font-weight: 600;
}
.btn-find-match {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--rose);
  color: white;
  border: none;
  border-radius: 50px;
  padding: clamp(13px,3vw,16px) clamp(20px,4vw,28px);
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.78rem,2.2vw,0.88rem);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
  box-shadow: 0 4px 18px rgba(176,96,96,0.30);
  animation: heartbeat-btn 2.5s ease-in-out infinite;
}
.btn-find-match:hover {
  background: #9A5050;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(176,96,96,0.40);
}
.btn-find-match:active { transform: translateY(0); }

/* ─────────────────────────────────────────────
   STATE 5: MATCH SCAN TERMINAL
───────────────────────────────────────────── */
.card-match-scan { padding: clamp(22px,5vw,36px) clamp(18px,4vw,30px); }

.match-terminal {
  max-height: clamp(200px, 45vw, 280px) !important;
  margin-top: 14px;
}
.log-entry.log-check {
  color: var(--found-green);
}
.log-entry.log-found {
  color: var(--rose);
  font-weight: 700;
  font-size: clamp(0.72rem, 2.2vw, 0.82rem);
}

/* Big compatibility box (State 6) */
.his-name-block {
  text-align: center;
  margin: 10px 0 14px;
  padding: 12px 10px 10px;
  border-bottom: 1px dashed rgba(196,168,130,0.4);
}
.his-name-label {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.58rem,1.8vw,0.65rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 5px;
}
.his-name-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 1px;
}
.compat-big-box {
  margin: 16px 0 14px;
  padding: clamp(16px, 4vw, 22px) clamp(12px, 3vw, 18px);
  background: rgba(176,96,96,0.08);
  border: 1.5px solid rgba(176,96,96,0.35);
  border-radius: 14px;
  text-align: center;
}
.compat-big-label {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.58rem, 1.8vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}
.compat-big-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 10vw, 4rem);
  font-weight: 600;
  color: var(--rose);
  line-height: 1;
  margin-bottom: 6px;
}
.compat-big-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--brown-mid);
  letter-spacing: 1px;
}

/* ─────────────────────────────────────────────
   STATE 6: PROPOSAL SECTION (inside card-reveal)
───────────────────────────────────────────── */
.proposal-section { text-align: center; }
.proposal-question {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 18px;
  line-height: 1.35;
}
.proposal-buttons {
  display: flex;
  gap: 12px;
  position: relative;
  height: 50px;
  justify-content: center;
  align-items: center;
}
.btn-yes {
  flex: 1.4;
  max-width: 190px;
  background: var(--rose);
  color: white;
  border: none;
  border-radius: 50px;
  padding: clamp(12px,3vw,15px) clamp(24px,5vw,32px);
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.82rem,2.5vw,0.92rem);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(176,96,96,0.30);
  animation: heartbeat-btn 2.2s ease-in-out infinite;
  touch-action: manipulation;
  height: 100%;
}
.btn-yes:hover { background: #9A5050; transform: translateY(-2px) scale(1.02); }
@keyframes heartbeat-btn {
  0%,100%{transform:scale(1);}
  30%{transform:scale(1.04);}
  50%{transform:scale(0.98);}
  70%{transform:scale(1.02);}
}
.btn-no {
  flex: 1;
  max-width: 130px;
  background: rgba(196,168,130,0.18);
  color: var(--text-light);
  border: 1px solid var(--brown-light);
  border-radius: 50px;
  padding: 12px 18px;
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.72rem,2vw,0.82rem);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.1s ease;
  position: relative;
  z-index: 10;
  height: 100%;
  touch-action: manipulation;
}

/* ─────────────────────────────────────────────
   STATE 7: CELEBRATION
───────────────────────────────────────────── */
.card-celebration { padding: clamp(24px,5vw,38px) clamp(20px,4vw,32px); }
.celebration-badge { width: clamp(60px,14vw,80px); height: clamp(60px,14vw,80px); margin: 0 auto 16px; }
.celebration-badge svg { width: 100%; height: 100%; }
.celebration-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem,6vw,2.5rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.celebration-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text-mid);
  font-size: clamp(0.88rem,3vw,1.05rem);
  margin-bottom: 22px;
}
.love-letter {
  background: rgba(255,252,245,0.7);
  border: 1px solid rgba(196,168,130,0.5);
  border-radius: 10px;
  padding: clamp(14px,3.5vw,20px);
  text-align: left;
  position: relative;
}
.love-letter::before {
  content: '♥';
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--parchment);
  padding: 0 8px;
  color: var(--rose);
  font-size: 1rem;
}
.letter-heading { font-size: 0.6rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); margin-bottom: 12px; text-align: center; }
.letter-body { font-family: 'Cormorant Garamond', serif; font-size: clamp(0.92rem,3vw,1.08rem); line-height: 1.85; color: var(--text-dark); }
.letter-sign { margin-top: 14px; font-family: 'Dancing Script', cursive; font-size: clamp(1.1rem,4vw,1.35rem); color: var(--rose); text-align: right; }

/* Collage frame (State 7) */
.collage-frame {
  margin-top: 18px;
  border: 1px solid var(--brown-light);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(92,61,46,0.12);
}
.collage-label {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(250,246,238,0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(196,168,130,0.5);
  border-radius: 50px;
  padding: 3px 14px;
  font-family: 'Dancing Script', cursive;
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  color: var(--rose);
  white-space: nowrap;
  z-index: 2;
}
.collage-img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 14px;
}
.collage-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(240,230,211,0.92) 0%, transparent 100%);
  padding: 16px 12px 10px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.78rem,2.5vw,0.9rem);
  color: var(--text-mid);
  text-align: center;
  letter-spacing: 0.5px;
}

