/* =========================================================
   ROMANTIC BIRTHDAY WEBSITE — GLOBAL STYLESHEET
   Shared by every page. Page-specific rules are grouped in
   clearly-labelled sections below.
   ========================================================= */

/* ---------- Google Fonts (elegant cursive + clean body) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Poppins:wght@300;400;500;600&display=swap');

/* =========================================================
   1. CSS VARIABLES (Design Tokens)
   ========================================================= */
:root {
  /* Core palette */
  --dark-red:   #8B0000;
  --burgundy:   #5c0011;
  --white:      #ffffff;
  --soft-pink:  #ffd9e0;
  --pink:       #ff9bb3;
  --gold:       #d4af37;
  --gold-light: #f3d98b;

  /* Functional colors */
  --text-dark:  #3a0008;
  --text-muted: #7a4a50;
  --shadow-soft: 0 10px 30px rgba(139, 0, 0, 0.18);
  --shadow-deep: 0 18px 45px rgba(0, 0, 0, 0.35);

  /* Fonts */
  --font-script: 'Great Vibes', cursive;
  --font-title:  'Playfair Display', serif;
  --font-body:   'Poppins', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius:    22px;
  --radius-sm: 14px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;               /* never allow horizontal scroll */
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
}

a { text-decoration: none; }

/* =========================================================
   3. REUSABLE UTILITIES
   ========================================================= */

/* Centering wrapper used by most pages */
.page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
}

/* Pages with lots of content should scroll from the top */
/* Pages with lots of content should scroll from the top */
.page--scroll {
  justify-content: flex-start;  /* mulai dari atas, bukan tengah */
  overflow-y: auto;             /* aktifkan scroll vertikal */
  overflow-x: hidden;           /* tetap cegah scroll horizontal */
  height: auto;                 /* biarkan tinggi mengikuti konten */
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
}

/* Elegant primary button (gold gradient) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 34px;
  min-height: 52px;                 /* comfy touch target */
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--burgundy);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 50px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}
.btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 34px rgba(212, 175, 55, 0.45);
  filter: brightness(1.05);
}
.btn:active { transform: translateY(-1px) scale(0.99); }

/* Ghost / secondary button */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(212, 175, 55, 0.15); box-shadow: none; }

/* Reusable section heading (script font) */
.section-title {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  text-align: center;
  line-height: 1.05;
  margin-bottom: 6px;
}
.section-subtitle {
  font-family: var(--font-title);
  font-style: italic;
  text-align: center;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  margin-bottom: 40px;
}

/* =========================================================
   4. SHARED ANIMATIONS
   ========================================================= */

/* Generic fade-in-up — add class .fade-in to any element */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.9s var(--ease) forwards;
}
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Floating hearts / sparkles layer (fixed, non-interactive) */
.floating-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.floating-layer .heart,
.floating-layer .sparkle {
  position: absolute;
  bottom: -40px;
  font-size: 1.4rem;
  opacity: 0;
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(0.6) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(-115vh) scale(1.1) rotate(40deg); opacity: 0; }
}

/* Confetti pieces (created by JS) */
.confetti-piece {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 16px;
  z-index: 9999;
  border-radius: 2px;
  pointer-events: none;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0.9; }
}

/* Fireworks (created by JS) */
.firework {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  z-index: 9998;
  pointer-events: none;
  animation: fireworkFly linear forwards;
}
@keyframes fireworkFly {
  to { transform: translate(var(--fx), var(--fy)) scale(0.2); opacity: 0; }
}

/* =========================================================
   PAGE 1 — OPENING PAGE
   ========================================================= */
.opening {
  background:
    radial-gradient(circle at 20% 20%, var(--soft-pink) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, #ffe3ea 0%, transparent 45%),
    var(--white);
}
.opening__title {
  font-family: var(--font-script);
  font-size: clamp(3rem, 9vw, 6rem);
  color: var(--dark-red);
  text-align: center;
  line-height: 1.05;
  margin-bottom: 10px;
  text-shadow: 2px 3px 6px rgba(139, 0, 0, 0.15);
}
.opening__subtitle {
  font-family: var(--font-title);
  font-style: italic;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  margin-bottom: 42px;
  text-align: center;
}

/* --- Envelope --- */
.envelope-wrap { position: relative; z-index: 2; perspective: 1200px; margin-bottom: 26px; }
.envelope {
  position: relative;
  width: min(340px, 82vw);
  height: min(230px, 56vw);
  background: linear-gradient(160deg, #b3121b, var(--dark-red));
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-deep);
}
.envelope::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(120deg, transparent 49.5%, rgba(0,0,0,0.12) 50%) left / 50% 100% no-repeat,
    linear-gradient(240deg, transparent 49.5%, rgba(0,0,0,0.12) 50%) right / 50% 100% no-repeat;
}
.letter {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 88%;
  max-height: 78%;
  background: #fff8f2;
  border-radius: 10px;
  padding: 22px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  opacity: 0;
  z-index: 1;
  transition: transform 1s var(--ease), opacity 0.6s ease, bottom 1s var(--ease);
  overflow-y: auto;
}
.flap {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 55%;
  background: linear-gradient(160deg, #c11722, #7a0000);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  transition: transform 0.8s var(--ease);
  z-index: 4;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}
.front-panel {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 62%;
  background: linear-gradient(160deg, #a30f18, var(--dark-red));
  clip-path: polygon(0 38%, 50% 100%, 100% 38%, 100% 100%, 0 100%);
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  z-index: 5;
}
.seal {
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 55%, #a9841f);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--burgundy);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35), inset 0 2px 6px rgba(255,255,255,0.4);
  z-index: 6;
  cursor: pointer;
  animation: sealPulse 2s ease-in-out infinite;
  transition: transform 0.4s var(--ease), opacity 0.5s ease;
}
.seal:hover { transform: translate(-50%, -50%) scale(1.08); }
@keyframes sealPulse {
  0%, 100% { box-shadow: 0 6px 14px rgba(0,0,0,0.35), 0 0 0 0 rgba(212,175,55,0.5); }
  50%      { box-shadow: 0 6px 14px rgba(0,0,0,0.35), 0 0 0 14px rgba(212,175,55,0); }
}
.open-hint {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  transition: opacity 0.4s ease;
}
.envelope.open .flap   { transform: rotateX(180deg); z-index: 1; }
.envelope.open .seal   { opacity: 0; pointer-events: none; }
.envelope.open .letter { opacity: 1; bottom: 100%; transform: translate(-50%, 30%); }
.letter__title {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--dark-red);
  margin-bottom: 8px;
}
.letter__text {
  font-family: var(--font-title);
  font-size: 0.98rem;
  color: var(--text-dark);
  line-height: 1.7;
}
.opening__continue {
  margin-top: 34px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.6s ease 0.6s, transform 0.6s var(--ease) 0.6s;
  z-index: 3;
}
.opening__continue.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* =========================================================
   PAGE 2 — GIFT SELECTION
   ========================================================= */
.gift {
  background:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,0.06) 0%, transparent 40%),
    linear-gradient(150deg, var(--dark-red) 0%, var(--burgundy) 60%, #3d000b 100%);
  color: var(--white);
}
.gift__title  { font-family: var(--font-script); font-size: clamp(2.8rem, 8vw, 5rem); color: var(--white); text-align: center; text-shadow: 2px 3px 10px rgba(0,0,0,0.35); margin-bottom: 6px; }
.gift__subtitle { font-family: var(--font-title); font-style: italic; font-size: clamp(0.95rem, 2.5vw, 1.15rem); color: var(--soft-pink); text-align: center; margin-bottom: 48px; }
.gift__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  z-index: 2;
}
.gift-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 26px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-soft);
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.gift-card::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
}
.gift-card:hover::before { left: 140%; }
.gift-card:hover {
  transform: translateY(-10px) scale(1.05);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
  box-shadow: 0 22px 48px rgba(0,0,0,0.45), 0 0 24px rgba(212,175,55,0.35);
}
.gift-card__icon { font-size: 3.4rem; margin-bottom: 18px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); transition: transform 0.4s var(--ease); }
.gift-card:hover .gift-card__icon { transform: scale(1.15) rotate(-6deg); }
.gift-card__label { font-family: var(--font-title); font-size: 1.5rem; font-weight: 600; color: var(--gold-light); margin-bottom: 6px; }
.gift-card__desc  { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.gift-card:nth-child(1) { animation-delay: 0.15s; }
.gift-card:nth-child(2) { animation-delay: 0.30s; }
.gift-card:nth-child(3) { animation-delay: 0.45s; }
.gift__back { margin-top: 46px; z-index: 2; }

/* =========================================================
   PAGE 3 — MESSAGE PAGE (gallery slider + expandable notes)
   ========================================================= */
.message {
  background:
    radial-gradient(circle at 80% 10%, #ffe3ea 0%, transparent 45%),
    linear-gradient(160deg, #fff 0%, var(--soft-pink) 100%);
  color: var(--text-dark);
}
.message .section-title    { color: var(--dark-red); }
.message .section-subtitle { color: var(--text-muted); }

/* Polaroid slider */
.slider {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 46px;
  z-index: 2;
}
.slider__track {
  position: relative;
  height: 380px;
}
.polaroid {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 300px;
  max-width: 80vw;
  background: #fff;
  padding: 14px 14px 46px;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: scale(0.9) rotate(-3deg);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.polaroid.active { opacity: 1; transform: scale(1) rotate(-2deg); pointer-events: auto; }
.polaroid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
  background: #f0d5da;
}
.polaroid__caption {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--dark-red);
  text-align: center;
  margin-top: 8px;
}
/* Decorative heart on the polaroid corner */
.polaroid::after {
  content: "❤";
  position: absolute;
  top: -14px; right: -6px;
  font-size: 1.6rem;
  color: var(--pink);
  transform: rotate(15deg);
}
/* Slider arrows */
.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(139,0,0,0.85);
  color: #fff;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  z-index: 3;
  transition: background 0.3s ease, transform 0.3s ease;
}
.slider__btn:hover { background: var(--dark-red); transform: translateY(-50%) scale(1.1); }
.slider__btn--prev { left: -6px; }
.slider__btn--next { right: -6px; }

/* Notes */
.notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  z-index: 2;
}
.note {
  background: #fff;
  border: 1px solid rgba(139,0,0,0.12);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.note:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(139,0,0,0.18); }
.note__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--dark-red);
}
.note__toggle { transition: transform 0.4s var(--ease); }
.note.open .note__toggle { transform: rotate(45deg); }
/* Collapsible body */
.note__body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.5s ease, margin-top 0.4s ease;
}
.note.open .note__body { max-height: 400px; opacity: 1; margin-top: 14px; }
.note__body p { font-size: 0.95rem; color: var(--text-dark); line-height: 1.7; }
.message__back { margin-top: 46px; z-index: 2; }

/* =========================================================
   PAGE 4 — FLOWER PAGE (bouquet + petals + quote carousel)
   ========================================================= */
.flower {
  background:
    radial-gradient(circle at 20% 80%, #ffe3ea 0%, transparent 45%),
    linear-gradient(160deg, #fff6f8 0%, var(--soft-pink) 100%);
  color: var(--text-dark);
}
.flower .section-title { color: var(--dark-red); }
.bouquet {
  font-size: clamp(6rem, 22vw, 12rem);
  line-height: 1;
  text-align: center;
  margin-bottom: 20px;
  filter: drop-shadow(0 12px 20px rgba(139,0,0,0.25));
  animation: sway 4s ease-in-out infinite;
  z-index: 2;
}
@keyframes sway {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}
/* Floating petals layer */
.petal {
  position: fixed;
  top: -30px;
  font-size: 1.4rem;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  animation: petalFall linear infinite;
}
@keyframes petalFall {
  0%   { transform: translateY(0) rotate(0deg);    opacity: 0; }
  10%  { opacity: 0.9; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0.2; }
}
/* Quote carousel */
.quote-box {
  position: relative;
  width: 100%;
  max-width: 640px;
  min-height: 130px;
  margin: 10px auto 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.quote {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 30px;
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1.1rem, 3.2vw, 1.6rem);
  color: var(--dark-red);
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease);
}
.quote.active { opacity: 1; transform: translateY(0); }
.quote-nav { display: flex; gap: 16px; justify-content: center; z-index: 2; }
.quote-nav .slider__btn { position: static; transform: none; }
.quote-nav .slider__btn:hover { transform: scale(1.1); }
.flower__back { margin-top: 40px; z-index: 2; }

/* --- Big luxurious bouquet hero image --- */
.bouquet-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 6px auto 26px;
  z-index: 2;
}
.bouquet-hero__img {
  width: clamp(240px, 34vw, 420px);   /* besar & responsif */
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(139,0,0,0.35));
  animation: sway 4s ease-in-out infinite;   /* goyangan lembut (reuse @keyframes sway) */
}

/* Responsif: sedikit lebih kecil di layar mobile */
@media (max-width: 767px) {
  .bouquet-hero__img { width: clamp(200px, 62vw, 300px); }
}

/* =========================================================
   PAGE 5 — CAKE PAGE (cake + memory gallery + vinyl link)
   ========================================================= */
.cake {
  background:
    radial-gradient(circle at 50% 0%, #ffe3ea 0%, transparent 45%),
    linear-gradient(160deg, #fff 0%, var(--soft-pink) 100%);
  color: var(--text-dark);
}
.cake .section-title { color: var(--dark-red); }
.cake__illustration {
  font-size: clamp(5rem, 18vw, 9rem);
  text-align: center;
  margin-bottom: 10px;
  filter: drop-shadow(0 10px 18px rgba(139,0,0,0.2));
  z-index: 2;
  animation: fadeInUp 0.9s var(--ease) both;
}
/* Little flame flicker on the cake emoji */
.cake__flame {
  display: inline-block;
  animation: flicker 1.4s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  50%      { transform: translateY(-3px) scale(1.1); opacity: 0.8; }
}
/* Memory gallery grid */
.memory-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 760px;
  margin: 20px auto 40px;
  z-index: 2;
}
.memory {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #f0d5da;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.memory:hover { transform: scale(1.06) rotate(1deg); box-shadow: 0 18px 34px rgba(139,0,0,0.25); }
.memory img { width: 100%; height: 100%; object-fit: cover; }
/* Vinyl "listen to music" */
.vinyl-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 26px 14px 14px;
  background: #fff;
  border: 1px solid rgba(212,175,55,0.5);
  border-radius: 60px;
  box-shadow: var(--shadow-soft);
  color: var(--dark-red);
  font-family: var(--font-title);
  font-weight: 600;
  z-index: 2;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.vinyl-link:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 16px 34px rgba(139,0,0,0.22); }
.vinyl {
  width: 60px; height: 60px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #d4af37 0 8px, transparent 9px),
    repeating-radial-gradient(circle, #111 0 3px, #2a2a2a 3px 5px);
  animation: spin 3s linear infinite;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.1);
}
@keyframes spin { to { transform: rotate(360deg); } }
.cake__back { margin-top: 40px; z-index: 2; }

/* =========================================================
   PAGE 6 — MUSIC PAGE (YouTube player + song list)
   ========================================================= */
.music {
  background: linear-gradient(160deg, var(--burgundy) 0%, #2c0009 100%);
  color: var(--white);
}
.music .section-title    { color: var(--gold-light); }
.music .section-subtitle { color: var(--soft-pink); }
/* Glowing frame around the player */
.player-frame {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.4);
  box-shadow: 0 0 0 rgba(212,175,55,0.4);
  animation: glowPulse 3s ease-in-out infinite;
  z-index: 2;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 22px rgba(212,175,55,0.25); }
  50%      { box-shadow: 0 0 46px rgba(212,175,55,0.55); }
}
.player-frame .ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Song list */
.song-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  z-index: 2;
}
.song-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease;
}
.song-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.12); border-color: var(--gold); }
.song-card__note { font-size: 1.6rem; }
.song-card__meta { display: flex; flex-direction: column; }
.song-card__title  { font-family: var(--font-title); font-weight: 600; color: var(--gold-light); }
.song-card__artist { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.music__continue { margin-top: 44px; z-index: 2; }

/* =========================================================
   PAGE 7 — FINAL PAGE (celebration)
   ========================================================= */
.final {
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.08) 0%, transparent 45%),
    linear-gradient(160deg, var(--dark-red) 0%, var(--burgundy) 55%, #2c0009 100%);
  color: var(--white);
  text-align: center;
}
.final__title {
  font-family: var(--font-script);
  font-size: clamp(3.4rem, 12vw, 8rem);
  color: var(--white);
  text-shadow: 0 4px 18px rgba(0,0,0,0.4), 0 0 30px rgba(212,175,55,0.35);
  margin-bottom: 16px;
  z-index: 2;
  animation: fadeInUp 1s var(--ease) both;
}
.final__message {
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--soft-pink);
  max-width: 620px;
  margin: 0 auto 40px;
  z-index: 2;
  animation: fadeInUp 1s var(--ease) 0.2s both;
}
.final__restart { z-index: 2; animation: fadeInUp 1s var(--ease) 0.4s both; }

/* =========================================================
   5. RESPONSIVE — ALL PAGES
   Desktop >1200 (default) · Tablet 768–1199 · Mobile <768
   ========================================================= */

/* ---------------- TABLET ---------------- */
@media (max-width: 1199px) and (min-width: 768px) {
  .opening__title { font-size: clamp(3rem, 8vw, 5rem); }

  /* Gift: 2 columns, 3rd card centered */
  .gift__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .gift-card:nth-child(3) { grid-column: 1 / -1; max-width: 60%; margin-inline: auto; }
  .gift-card__icon { font-size: 3rem; }

  /* Memory + songs: keep 2 columns for touch comfort */
  .memory-gallery { grid-template-columns: repeat(3, 1fr); }
  .song-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 767px) {
  .page { padding: 30px 16px; }

  /* Buttons become full-width, larger touch targets */
  .btn { width: 100%; max-width: 320px; }

  /* Opening */
  .opening__subtitle { margin-bottom: 30px; }
  .seal { width: 64px; height: 64px; font-size: 1.6rem; }
  .letter { padding: 16px 14px; }
  .letter__title { font-size: 1.6rem; }
  .letter__text { font-size: 0.9rem; }

  /* Gift: single column stack */
  .gift__grid { grid-template-columns: 1fr; gap: 20px; }
  .gift__subtitle { margin-bottom: 34px; }
  .gift-card { padding: 32px 22px; }
  .gift-card__icon { font-size: 2.8rem; }
  .gift-card__label { font-size: 1.3rem; }

  /* Message: notes stack, smaller slider */
  .notes { grid-template-columns: 1fr; }
  .slider__track { height: 340px; }
  .slider__btn { width: 42px; height: 42px; font-size: 1.2rem; }
  .slider__btn--prev { left: 2px; }
  .slider__btn--next { right: 2px; }

  /* Cake: memory gallery becomes 2 columns */
  .memory-gallery { grid-template-columns: repeat(2, 1fr); }

  /* Music: song list stacks */
  .song-list { grid-template-columns: 1fr; }
}
