/* ==========================================================================
   Para Minha Gatinha — Karollyne
   Tema: Golden Hour · Esmeralda Noturna · Lanternas de Rapunzel · Bubu & Dudu
   ========================================================================== */

:root {
  --bg-deep: #091210;
  --bg-mid: #0d1a16;
  --bg-card: rgba(15, 29, 25, 0.72);
  --bg-card-solid: #10201b;
  --bg-glass: rgba(20, 38, 32, 0.56);

  --gold: #f0c975;
  --gold-soft: #f8dfa3;
  --gold-bright: #fff1c9;
  --gold-deep: #b88b3a;

  --emerald: #10b981;
  --emerald-soft: #34d399;
  --emerald-deep: #0c4a3a;
  --emerald-glow: rgba(16, 185, 129, 0.22);

  --blush: #f497a9;
  --blush-soft: rgba(244, 151, 169, 0.18);

  --text-main: #f7f4ec;
  --text-soft: rgba(247, 244, 236, 0.78);
  --text-muted: rgba(247, 244, 236, 0.52);

  --border-gold: rgba(240, 201, 117, 0.22);
  --border-gold-strong: rgba(240, 201, 117, 0.48);
  --border-emerald: rgba(52, 211, 153, 0.25);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Dancing Script', cursive;

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;

  --shadow-gold: 0 12px 40px -10px rgba(240, 201, 117, 0.22);
  --shadow-deep: 0 24px 60px -16px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(20, 62, 49, 0.42) 0%, transparent 65%),
    radial-gradient(ellipse 65% 45% at 85% 30%, rgba(240, 201, 117, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 15% 75%, rgba(16, 185, 129, 0.09) 0%, transparent 60%),
    var(--bg-deep);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

body.locked {
  overflow: hidden;
  height: 100dvh;
}

img, video {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

/* ==========================================================================
   Ambient Sky Canvas (Stars + Floating Rapunzel Lanterns + Touch Sparkles)
   ========================================================================== */
#sky-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   Intro Veil / Envelope Opening Screen
   ========================================================================== */
.intro-veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 38%, rgba(240, 201, 117, 0.14) 0%, rgba(9, 18, 16, 0.94) 55%),
    #091210;
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1), visibility 1s;
}

.intro-veil.opened {
  opacity: 0;
  transform: scale(1.06);
  visibility: hidden;
  pointer-events: none;
}

.intro-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 410px;
  text-align: center;
  padding: 36px 26px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(16, 33, 28, 0.88), rgba(9, 18, 16, 0.95));
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-deep), 0 0 80px rgba(240, 201, 117, 0.1);
  backdrop-filter: blur(20px);
}

.intro-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(240, 201, 117, 0.08);
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.intro-sticker-wrap {
  position: relative;
  width: 185px;
  height: 185px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-sticker-halo {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 201, 117, 0.28) 0%, rgba(16, 185, 129, 0.1) 50%, transparent 72%);
  filter: blur(14px);
  animation: breatheHalo 4s ease-in-out infinite;
}

.intro-sticker {
  position: relative;
  width: 175px;
  height: 175px;
  object-fit: cover;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 201, 117, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  animation: gentleBob 4.2s ease-in-out infinite;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7vw, 2.55rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.intro-title em {
  font-style: italic;
  color: var(--gold);
}

.intro-subtitle {
  font-size: 0.94rem;
  color: var(--text-soft);
  max-width: 310px;
  margin: 0 auto 26px;
}

.open-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3d283 0%, #d8a74a 55%, #e8c26b 100%);
  color: #141c18;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgba(240, 201, 117, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.open-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shimmerSweep 3.2s ease-in-out infinite;
}

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

.intro-audio-hint {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Main Container & Shared Section Elements
   ========================================================================== */
.page-content {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 1s ease 0.25s;
}

.page-content.visible {
  opacity: 1;
}

.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 68px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.eyebrow::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7vw, 2.85rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-desc {
  font-size: 0.94rem;
  color: var(--text-soft);
  max-width: 470px;
  margin: 0 auto;
}

/* Reveal on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Chapter 1: Hero & Live Counter
   ========================================================================== */
.hero {
  padding: 28px 0 48px;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-deep), 0 0 60px rgba(240, 201, 117, 0.12);
  background: #0d1915;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: slowKenBurns 18s ease-in-out infinite alternate;
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 18, 16, 0.18) 0%,
    rgba(9, 18, 16, 0.08) 42%,
    rgba(9, 18, 16, 0.82) 82%,
    #0c1814 100%
  );
}

.hero-badge-top {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(9, 18, 16, 0.65);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero-body {
  padding: 6px 24px 30px;
  text-align: center;
  background: linear-gradient(180deg, #0c1814 0%, rgba(14, 29, 24, 0.92) 100%);
}

.hero-script {
  font-family: var(--font-script);
  font-size: 1.55rem;
  color: var(--gold);
  margin-bottom: 2px;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 11vw, 4.1rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff8e3 0%, #f0c975 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

.hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.24rem;
  line-height: 1.45;
  color: var(--text-soft);
  max-width: 420px;
  margin: 0 auto 24px;
}

/* Counter Card */
.counter-box {
  margin-top: 24px;
  padding: 24px 18px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(16px);
  text-align: center;
  box-shadow: var(--shadow-gold);
}

.counter-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 16px;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.counter-tile {
  padding: 14px 6px;
  border-radius: var(--radius-sm);
  background: rgba(9, 18, 16, 0.65);
  border: 1px solid rgba(240, 201, 117, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.counter-num {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 6vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.counter-unit {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.counter-caption {
  font-size: 0.88rem;
  color: var(--text-soft);
  font-style: italic;
}

/* Rapunzel Lantern Action Button */
.lantern-action-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.lantern-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 201, 117, 0.16), rgba(16, 185, 129, 0.14));
  border: 1px solid var(--border-gold-strong);
  color: var(--gold-bright);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(240, 201, 117, 0.14);
  transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.lantern-btn:active {
  transform: scale(0.95);
}

.lantern-btn:hover {
  background: linear-gradient(135deg, rgba(240, 201, 117, 0.26), rgba(16, 185, 129, 0.2));
  box-shadow: 0 10px 30px rgba(240, 201, 117, 0.25);
}

.lantern-whisper {
  min-height: 22px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-soft);
  transition: opacity 0.4s ease;
}

/* ==========================================================================
   Chapter 2: Story Gallery (Acts I, II, III)
   ========================================================================== */
.act-block {
  margin-bottom: 48px;
}

.act-block:last-child {
  margin-bottom: 0;
}

.act-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(240, 201, 117, 0.14);
}

.act-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald-soft);
  font-weight: 700;
}

.act-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.2;
}

.act-sticker-mini {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-gold);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(240, 201, 117, 0.2);
  background: #0f1d19;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold-strong);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-card:hover img {
  transform: scale(1.035);
}

.photo-card.landscape {
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
}

.photo-card.portrait {
  aspect-ratio: 3 / 4.2;
}

.photo-card.featured-tall {
  aspect-ratio: 4 / 5;
  margin-top: 14px;
}

.photo-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.photo-caption-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(6, 13, 11, 0.9) 0%, rgba(6, 13, 11, 0.45) 60%, transparent 100%);
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255, 250, 238, 0.94);
}

.photo-zoom-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(9, 18, 16, 0.58);
  border: 1px solid rgba(240, 201, 117, 0.3);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--gold-soft);
}

/* Bubu & Dudu Kiss Feature Strip */
.bubu-kiss-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(244, 151, 169, 0.1), rgba(240, 201, 117, 0.08));
  border: 1px solid rgba(244, 151, 169, 0.25);
}

.bubu-kiss-img {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  object-fit: cover;
  border: 1.5px solid rgba(244, 151, 169, 0.4);
  flex-shrink: 0;
}

.bubu-kiss-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold-bright);
  margin-bottom: 2px;
}

.bubu-kiss-text p {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ==========================================================================
   Chapter 3: Infinity Symbol Centerpiece
   ========================================================================== */
.infinity-card {
  position: relative;
  padding: 32px 22px 34px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 35%, rgba(240, 201, 117, 0.14) 0%, transparent 65%),
    var(--bg-card);
  border: 1px solid var(--border-gold);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.infinity-photo-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 22px;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--border-gold-strong);
  box-shadow: 0 0 42px rgba(240, 201, 117, 0.22);
  cursor: pointer;
}

.infinity-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.infinity-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 2px solid var(--gold);
  opacity: 0;
  pointer-events: none;
}

.infinity-photo-frame.pulsing .infinity-pulse-ring {
  animation: infinityRipple 0.9s ease-out forwards;
}

.infinity-symbol {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 6px;
  text-shadow: 0 0 24px rgba(240, 201, 117, 0.45);
}

.infinity-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.32rem;
  line-height: 1.45;
  color: var(--gold-bright);
  max-width: 440px;
  margin: 0 auto 10px;
}

.infinity-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Chapter 4: Living Memory Video (With Smart Audio Ducking)
   ========================================================================== */
.video-stage {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 14px;
  background: linear-gradient(155deg, rgba(240, 201, 117, 0.16), rgba(16, 185, 129, 0.08) 50%, rgba(15, 29, 25, 0.9));
  border: 1px solid var(--border-gold-strong);
  box-shadow: var(--shadow-deep), 0 0 50px rgba(240, 201, 117, 0.12);
}

.video-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #050a08;
  aspect-ratio: 16 / 9;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(circle, rgba(9, 18, 16, 0.25) 0%, rgba(9, 18, 16, 0.62) 100%);
  transition: opacity 0.4s ease, visibility 0.4s ease;
  cursor: pointer;
}

.video-play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-play-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3d283, #d8a74a);
  color: #111c18;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  padding-left: 5px;
  box-shadow: 0 0 0 10px rgba(240, 201, 117, 0.2), 0 14px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

.video-play-overlay:hover .video-play-circle {
  transform: scale(1.07);
}

.video-play-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.video-duck-pill {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.video-duck-pill.ducking {
  color: var(--gold);
}

/* ==========================================================================
   Chapter 5: Reasons I Adore You (Interactive Reveal Cards)
   ========================================================================== */
.reasons-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.82rem;
  color: var(--gold-soft);
}

.reasons-bar {
  width: 120px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.reasons-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald-soft), var(--gold));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.reason-card {
  position: relative;
  min-height: 158px;
  padding: 18px 15px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.reason-card:active {
  transform: scale(0.97);
}

.reason-card .reason-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.reason-card .reason-icon {
  font-size: 1.65rem;
  filter: drop-shadow(0 0 10px rgba(240, 201, 117, 0.35));
}

.reason-card .reason-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.2;
}

.reason-card .reason-tap {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.reason-card .reason-back {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fadeSlideUp 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.reason-card .reason-back-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gold);
}

.reason-card .reason-back-text {
  font-size: 0.82rem;
  line-height: 1.42;
  color: var(--text-main);
}

.reason-card.revealed {
  background: linear-gradient(155deg, rgba(20, 48, 39, 0.9), rgba(14, 29, 24, 0.95));
  border-color: var(--border-gold-strong);
  box-shadow: 0 10px 28px rgba(240, 201, 117, 0.14);
}

.reason-card.revealed .reason-front {
  display: none;
}

.reason-card.revealed .reason-back {
  display: flex;
}

.reveal-all-btn {
  display: block;
  margin: 20px auto 0;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(240, 201, 117, 0.25);
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}

.reveal-all-btn:hover {
  background: rgba(240, 201, 117, 0.12);
  color: var(--gold-bright);
}

/* ==========================================================================
   Chapter 6: Press & Hold Virtual Hug (Bubu & Dudu Hug)
   ========================================================================== */
.hug-card {
  padding: 36px 22px 34px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 40%, rgba(244, 151, 169, 0.12) 0%, transparent 60%),
    var(--bg-card);
  border: 1px solid rgba(244, 151, 169, 0.28);
  text-align: center;
  box-shadow: var(--shadow-deep);
}

.hug-ring-btn {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 22px auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  transition: transform 0.2s ease;
}

.hug-ring-btn.holding {
  transform: scale(0.95);
}

.hug-ring-btn.completed {
  animation: hugCelebrate 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hug-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hug-track {
  fill: none;
  stroke: rgba(240, 201, 117, 0.18);
  stroke-width: 5;
}

.hug-progress {
  fill: none;
  stroke: url(#hugGrad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 615.75;
  stroke-dashoffset: 615.75;
  transition: stroke-dashoffset 0.05s linear;
}

.hug-sticker {
  width: 174px;
  height: 174px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(240, 201, 117, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.hug-instruction {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 10px;
}

.hug-feedback {
  min-height: 52px;
  max-width: 390px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.hug-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(244, 151, 169, 0.12);
  border: 1px solid rgba(244, 151, 169, 0.28);
  font-size: 0.78rem;
  color: #ffc2ce;
}

/* ==========================================================================
   Chapter 7: Final Love Letter + Bubu & Dudu Rapunzel Lantern
   ========================================================================== */
.letter-top-sticker {
  width: 168px;
  height: 168px;
  margin: 0 auto 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-gold-strong);
  box-shadow: 0 0 48px rgba(240, 201, 117, 0.28);
  animation: gentleBob 4.6s ease-in-out infinite;
}

.letter-paper {
  position: relative;
  padding: 38px 26px 36px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at top right, rgba(240, 201, 117, 0.11), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(16, 185, 129, 0.09), transparent 55%),
    linear-gradient(175deg, #11221d 0%, #0b1613 100%);
  border: 1px solid var(--border-gold-strong);
  box-shadow: var(--shadow-deep), inset 0 0 40px rgba(240, 201, 117, 0.05);
}

.letter-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(240, 201, 117, 0.55);
  border-style: solid;
  pointer-events: none;
}

.letter-corner.tl { top: 14px; left: 14px; border-width: 1.5px 0 0 1.5px; border-radius: 6px 0 0 0; }
.letter-corner.tr { top: 14px; right: 14px; border-width: 1.5px 1.5px 0 0; border-radius: 0 6px 0 0; }
.letter-corner.bl { bottom: 14px; left: 14px; border-width: 0 0 1.5px 1.5px; border-radius: 0 0 0 6px; }
.letter-corner.br { bottom: 14px; right: 14px; border-width: 0 1.5px 1.5px 0; border-radius: 0 0 6px 0; }

.letter-salutation {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 5.5vw, 1.95rem);
  font-weight: 600;
  font-style: italic;
  color: var(--gold-bright);
  margin-bottom: 20px;
  line-height: 1.25;
}

.letter-body p {
  font-size: 0.98rem;
  line-height: 1.82;
  color: rgba(247, 244, 236, 0.9);
  margin-bottom: 16px;
}

.letter-body p:last-child {
  margin-bottom: 0;
}

.letter-closing {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(240, 201, 117, 0.16);
  text-align: right;
}

.letter-closing-pre {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.letter-signature {
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: var(--gold);
  line-height: 1.15;
}

/* ==========================================================================
   Chapter 8: 13 Interactive Love Coupons (Golden Tickets + WhatsApp)
   ========================================================================== */
.coupons-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(240, 201, 117, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 12px;
}

.coupons-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.coupon-ticket {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(19, 38, 32, 0.92), rgba(11, 22, 18, 0.96));
  border: 1px solid var(--border-gold);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.coupon-ticket::before,
.coupon-ticket::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 1px solid var(--border-gold);
  transform: translateY(-50%);
  z-index: 2;
}

.coupon-ticket::before { left: -10px; }
.coupon-ticket::after { right: -10px; }

.coupon-stub {
  width: 72px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 8px 14px 14px;
  border-right: 1.5px dashed rgba(240, 201, 117, 0.28);
  background: rgba(240, 201, 117, 0.05);
}

.coupon-emoji {
  font-size: 1.55rem;
}

.coupon-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.coupon-main {
  flex: 1;
  padding: 16px 18px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.coupon-title {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.2;
}

.coupon-desc {
  font-size: 0.83rem;
  color: var(--text-soft);
  line-height: 1.42;
}

.coupon-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.coupon-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3d283, #d8a74a);
  color: #131c18;
  font-size: 0.79rem;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.coupon-btn:active {
  transform: scale(0.95);
}

.coupon-btn.wa-mini {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
}

.coupon-stamp {
  display: none;
  padding: 4px 10px;
  border: 1.5px solid var(--emerald-soft);
  border-radius: 8px;
  color: var(--emerald-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.coupon-ticket.redeemed {
  border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(135deg, rgba(16, 44, 35, 0.9), rgba(10, 22, 18, 0.96));
}

.coupon-ticket.redeemed .coupon-stamp {
  display: inline-block;
  animation: stampPop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.coupon-ticket.redeemed .coupon-btn.redeem-trigger {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 40px 20px 110px;
  text-align: center;
  border-top: 1px solid rgba(240, 201, 117, 0.12);
}

.footer-Infinity {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.footer-date {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   Floating Music Player Pill
   ========================================================================== */
.music-pill {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 10px;
  border-radius: 999px;
  background: rgba(11, 24, 20, 0.88);
  border: 1px solid var(--border-gold-strong);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.music-pill.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.music-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3d283, #d8a74a);
  color: #131c18;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.music-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
  padding-right: 4px;
}

.music-track {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.music-artist {
  font-size: 0.67rem;
  color: var(--text-muted);
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.music-bars span {
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: var(--gold);
  transition: height 0.2s ease;
}

.music-pill.playing .music-bars span:nth-child(1) { animation: eqBar 0.75s ease-in-out infinite alternate; }
.music-pill.playing .music-bars span:nth-child(2) { animation: eqBar 0.55s ease-in-out 0.15s infinite alternate; }
.music-pill.playing .music-bars span:nth-child(3) { animation: eqBar 0.85s ease-in-out 0.3s infinite alternate; }
.music-pill.playing .music-bars span:nth-child(4) { animation: eqBar 0.65s ease-in-out 0.1s infinite alternate; }

/* ==========================================================================
   Lightbox Modal (Full-screen Photo Viewer)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 11, 9, 0.95);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-counter {
  position: absolute;
  top: 26px;
  left: 22px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
}

.lightbox-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-height: 72dvh;
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-deep);
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(9, 18, 16, 0.72);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav.prev { left: 6px; }
.lightbox-nav.next { right: 6px; }

.lightbox-caption {
  margin-top: 16px;
  max-width: 460px;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-bright);
}

/* ==========================================================================
   Coupon Redemption Modal (WhatsApp Integration)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(5, 11, 9, 0.84);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  width: 100%;
  max-width: 390px;
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #132822 0%, #0a1512 100%);
  border: 1px solid var(--border-gold-strong);
  box-shadow: var(--shadow-deep), 0 0 60px rgba(240, 201, 117, 0.16);
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.open .modal-box {
  transform: scale(1);
}

.modal-sticker {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 1.5px solid var(--border-gold);
}

.modal-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.2;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 22px;
}

.modal-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.28);
  margin-bottom: 10px;
  transition: transform 0.2s ease;
}

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

.modal-close-btn {
  width: 100%;
  padding: 11px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -24px);
  z-index: 150;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(14, 32, 26, 0.94);
  border: 1px solid var(--border-gold-strong);
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-deep);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  text-align: center;
  max-width: 90vw;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */
@keyframes breatheHalo {
  0%, 100% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes shimmerSweep {
  0% { left: -120%; }
  45%, 100% { left: 150%; }
}

@keyframes slowKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.07); }
}

@keyframes eqBar {
  0% { height: 4px; }
  100% { height: 14px; }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes infinityRipple {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.09); opacity: 0; }
}

@keyframes hugCelebrate {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes stampPop {
  0% { transform: scale(1.8) rotate(-14deg); opacity: 0; }
  100% { transform: scale(1) rotate(-4deg); opacity: 1; }
}

/* Mobile-first Safe Areas & Small Phone Refinements (360px - 400px) */
.footer {
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
}

.music-pill {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  right: calc(14px + env(safe-area-inset-right, 0px));
}

.lightbox-close {
  top: calc(16px + env(safe-area-inset-top, 0px));
}

.lightbox-counter {
  top: calc(24px + env(safe-area-inset-top, 0px));
}

.toast {
  top: calc(18px + env(safe-area-inset-top, 0px));
}

.page-content {
  overflow-x: clip;
}

@media (max-width: 400px) {
  .container {
    padding: 0 15px;
  }
  .section {
    padding: 54px 0;
  }
  .intro-card {
    padding: 28px 20px 26px;
  }
  .intro-sticker-wrap {
    width: 162px;
    height: 162px;
  }
  .intro-sticker {
    width: 152px;
    height: 152px;
  }
  .counter-grid {
    gap: 7px;
  }
  .counter-tile {
    padding: 12px 4px;
  }
  .photo-grid-2 {
    gap: 9px;
  }
  .photo-caption-bar {
    font-size: 0.76rem;
    padding: 22px 10px 10px;
  }
  .bubu-kiss-banner {
    gap: 12px;
    padding: 13px 14px;
  }
  .bubu-kiss-img {
    width: 68px;
    height: 68px;
  }
  .reasons-grid {
    gap: 9px;
  }
  .reason-card {
    min-height: 152px;
    padding: 14px 10px;
  }
  .reason-card .reason-back-text {
    font-size: 0.78rem;
  }
  .letter-paper {
    padding: 30px 20px 28px;
  }
  .letter-body p {
    font-size: 0.94rem;
    line-height: 1.76;
  }
  .coupon-stub {
    width: 60px;
    padding: 12px 6px 12px 12px;
  }
  .coupon-main {
    padding: 14px 14px 14px 13px;
  }
  .coupon-title {
    font-size: 1.15rem;
  }
  .music-pill {
    padding: 7px 12px 7px 8px;
    gap: 8px;
  }
  .music-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }
}

/* Desktop refinements */
@media (min-width: 640px) {
  .reasons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .coupons-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .letter-paper {
    padding: 46px 42px;
  }
}
