/* ============================================
   Zara Khan — Birthday Surprise
   Theme variables (easy to customize)
   ============================================ */
:root {
  --blush-pink: #f7d6e0;
  --rose-pink: #e8a0b4;
  --soft-pink: #f4c4d0;
  --lavender: #d9c6e5;
  --champagne: #e8d5a3;
  --cream: #fff8f5;
  --white: #ffffff;
  --dark-rose: #8a3d55;
  --deep-romance: #4a1f33;
  --text: #5c2d3e;
  --text-soft: #8a5a6c;
  --glass: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.65);
  --shadow: 0 20px 60px rgba(138, 61, 85, 0.12);
  --shadow-glow: 0 0 40px rgba(232, 160, 180, 0.45);
  --radius: 24px;
  --nav-h: 72px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

body.experience-open {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(247, 214, 224, 0.9), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(217, 198, 229, 0.55), transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(244, 196, 208, 0.5), transparent 50%),
    linear-gradient(180deg, #fff5f8 0%, var(--cream) 40%, #f8eef5 100%);
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

.hidden,
[hidden] {
  display: none !important;
}

/* ---------- Background particles ---------- */
#bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--champagne);
  opacity: 0.35;
  animation: drift 14s linear infinite;
}

@keyframes drift {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  15% { opacity: 0.5; }
  100% { transform: translateY(-100vh) scale(0.4); opacity: 0; }
}

/* ---------- Cursor trail ---------- */
#cursor-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

.trail-heart {
  position: fixed;
  pointer-events: none;
  font-size: 12px;
  opacity: 0.7;
  animation: trailFade 0.9s var(--ease) forwards;
  z-index: 9998;
}

@keyframes trailFade {
  to {
    transform: translateY(-28px) scale(0.4);
    opacity: 0;
  }
}

/* ---------- Music toggle ---------- */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  color: var(--dark-rose);
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.music-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.music-toggle.playing {
  background: linear-gradient(135deg, var(--soft-pink), var(--lavender));
  color: var(--deep-romance);
}

.music-toggle.playing i {
  animation: pulseMusic 1.2s ease-in-out infinite;
}

@keyframes pulseMusic {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.music-label {
  display: none;
}

@media (min-width: 640px) {
  .music-label { display: inline; }
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.site-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

.site-nav.scrolled {
  background: rgba(255, 248, 245, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(138, 61, 85, 0.08);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--dark-rose);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-soft);
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--rose-pink), var(--champagne));
  transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dark-rose);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 8001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark-rose);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, #fff5f8, var(--lavender));
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    font-family: var(--font-display);
    font-size: 1.6rem;
  }
}

/* ---------- Shared ---------- */
.section {
  position: relative;
  padding: 6rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--dark-rose);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.section-sub {
  margin-top: 0.75rem;
  color: var(--text-soft);
  font-weight: 300;
  font-size: 1.05rem;
}

.glow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 1rem 2.25rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-pink), #c97a94 50%, var(--dark-rose));
  background-size: 200% 200%;
  box-shadow:
    0 10px 30px rgba(138, 61, 85, 0.28),
    0 0 0 0 rgba(232, 160, 180, 0.5);
  animation: btnGlow 2.8s ease-in-out infinite;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.glow-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(138, 61, 85, 0.35), var(--shadow-glow);
}

.glow-btn:active {
  transform: translateY(0) scale(0.98);
}

.glow-btn--light {
  background: linear-gradient(135deg, var(--soft-pink), var(--champagne));
  color: var(--deep-romance);
}

@keyframes btnGlow {
  0%, 100% {
    background-position: 0% 50%;
    box-shadow: 0 10px 30px rgba(138, 61, 85, 0.28), 0 0 0 0 rgba(232, 160, 180, 0.4);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 10px 30px rgba(138, 61, 85, 0.28), 0 0 24px 6px rgba(232, 160, 180, 0.35);
  }
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 1. Opening ---------- */
.opening {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.55), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(217, 198, 229, 0.6), transparent 45%),
    linear-gradient(160deg, #ffe8ef 0%, var(--blush-pink) 35%, var(--lavender) 70%, #f0e4f4 100%);
}

.opening::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 40%, rgba(232, 213, 163, 0.25), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(244, 196, 208, 0.35), transparent 28%);
  animation: openAura 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes openAura {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-2%, 3%) scale(1.05); }
}

.opening-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(74, 31, 51, 0.06) 100%);
  pointer-events: none;
}

.opening-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  transition: opacity 0.8s ease, transform 0.8s var(--ease);
}

.opening.leaving .opening-content {
  opacity: 0;
  transform: scale(1.04) translateY(-20px);
}

.opening-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.opening-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--deep-romance);
  margin-bottom: 1rem;
}

.name-accent {
  background: linear-gradient(120deg, var(--dark-rose), #c97a94, var(--champagne));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.heart-inline {
  display: inline-block;
  animation: heartBeat 1.6s ease-in-out infinite;
}

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

.opening-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-soft);
  margin-bottom: 2rem;
}

.countdown {
  margin: 0 auto 0.5rem;
  max-width: 420px;
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.countdown-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 0.85rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.countdown-item span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 600;
  color: var(--dark-rose);
}

.countdown-item small {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.countdown-celebrate {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--dark-rose);
}

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

.float-heart,
.sparkle {
  position: absolute;
  pointer-events: none;
  animation: floatUp 3.2s var(--ease) forwards;
}

.float-heart {
  color: var(--rose-pink);
  font-size: 1.2rem;
  text-shadow: 0 0 12px rgba(232, 160, 180, 0.8);
}

.sparkle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 10px var(--champagne);
}

@keyframes floatUp {
  0% { opacity: 0; transform: translateY(0) scale(0.5) rotate(0deg); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-120px) scale(1.2) rotate(25deg); }
}

.opening.done {
  display: none;
}

/* ---------- Main experience ---------- */
.main-experience {
  position: relative;
  animation: fadeInMain 1s var(--ease);
}

.main-experience[hidden] {
  display: none !important;
}

@keyframes fadeInMain {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 2. Love Letter ---------- */
.letter-section {
  padding-top: 7rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.letter-card {
  position: relative;
  z-index: 2;
  max-width: 640px;
  width: 100%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(247, 214, 224, 0.35));
  border-image: linear-gradient(135deg, rgba(255,255,255,0.8), var(--champagne), var(--rose-pink)) 1;
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(232, 213, 163, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.letter-card .section-title {
  text-align: center;
  margin-bottom: 1.75rem;
  font-style: italic;
}

.letter-text {
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 300;
  color: var(--text);
  white-space: pre-wrap;
  min-height: 12rem;
}

.letter-text .cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--rose-pink);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

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

.petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.petal {
  position: absolute;
  width: 14px;
  height: 18px;
  background: radial-gradient(ellipse at 30% 30%, #ffd6e0, #e89aaa);
  border-radius: 50% 0 50% 50%;
  opacity: 0.7;
  animation: petalFall linear infinite;
  filter: blur(0.2px);
}

@keyframes petalFall {
  0% {
    transform: translateY(-10%) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% { opacity: 0.75; }
  100% {
    transform: translateY(110vh) rotate(360deg) translateX(40px);
    opacity: 0;
  }
}

/* ---------- 3. Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 1rem; }
}

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(138, 61, 85, 0.12);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s var(--ease), box-shadow 0.4s ease, opacity 0.6s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 40px rgba(138, 61, 85, 0.2), var(--shadow-glow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74, 31, 51, 0.35), transparent 50%);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.gallery-caption-preview {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 15, 28, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeIn 0.35s ease;
}

.lightbox-figure {
  position: relative;
  z-index: 2;
  max-width: min(900px, 92vw);
  text-align: center;
  animation: zoomIn 0.45s var(--ease);
}

.lightbox-figure img {
  max-height: 72vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.lightbox-figure figcaption {
  margin-top: 1rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  transition: background 0.25s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.32);
}

.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- 4. Surprise cards ---------- */
.surprise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  perspective: 1000px;
}

@media (max-width: 700px) {
  .surprise-grid { grid-template-columns: 1fr; }
}

.surprise-card {
  position: relative;
  min-height: 220px;
  border-radius: var(--radius);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease;
  background: linear-gradient(145deg, rgba(255,255,255,0.75), rgba(244,196,208,0.4));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.surprise-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--champagne), var(--rose-pink), var(--lavender));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}

.surprise-card:hover {
  box-shadow: var(--shadow), var(--shadow-glow);
}

.surprise-card.revealed {
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(217,198,229,0.45));
}

.surprise-front,
.surprise-back {
  padding: 2rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.45s ease, transform 0.45s var(--ease);
}

.surprise-front h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--dark-rose);
  margin: 0.5rem 0 0.35rem;
}

.surprise-front p {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 300;
}

.surprise-icon {
  font-size: 1.75rem;
  filter: drop-shadow(0 4px 8px rgba(232, 160, 180, 0.4));
}

.surprise-back {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.surprise-back p {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
  max-width: 28ch;
}

.surprise-card.revealed .surprise-front {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.surprise-card.revealed .surprise-back {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.card-heart-particle {
  position: absolute;
  pointer-events: none;
  font-size: 0.85rem;
  animation: cardHeart 1s var(--ease) forwards;
  z-index: 5;
}

@keyframes cardHeart {
  to {
    transform: translateY(-50px) scale(1.3);
    opacity: 0;
  }
}

/* ---------- 5. Reasons ---------- */
.reasons-timeline {
  list-style: none;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  padding-left: 0;
}

.reasons-timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--soft-pink), var(--lavender), var(--champagne));
  opacity: 0.7;
}

.reason-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 2rem;
  position: relative;
}

.reason-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-rose);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(232, 160, 180, 0.45);
  box-shadow: 0 8px 24px rgba(138, 61, 85, 0.1);
  position: relative;
  z-index: 1;
}

.reason-content {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(138, 61, 85, 0.06);
}

.reason-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--dark-rose);
  margin-bottom: 0.25rem;
}

.reason-content p {
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 300;
}

/* ---------- 6. Heart ---------- */
.heart-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.heart-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0 1rem;
}

.big-heart {
  width: min(180px, 42vw);
  height: min(180px, 42vw);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.5), transparent 50%),
              linear-gradient(145deg, var(--soft-pink), var(--rose-pink));
  box-shadow:
    0 0 0 12px rgba(247, 214, 224, 0.45),
    0 0 60px rgba(232, 160, 180, 0.55),
    0 20px 40px rgba(138, 61, 85, 0.2);
  animation: heartPulse 1.8s ease-in-out infinite;
  transition: transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.big-heart:active {
  transform: scale(0.92);
}

.big-heart svg {
  width: 55%;
  height: 55%;
  fill: var(--white);
  filter: drop-shadow(0 4px 10px rgba(138, 61, 85, 0.25));
}

@keyframes heartPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 0 12px rgba(247, 214, 224, 0.45),
      0 0 60px rgba(232, 160, 180, 0.55),
      0 20px 40px rgba(138, 61, 85, 0.2);
  }
  50% {
    transform: scale(1.06);
    box-shadow:
      0 0 0 18px rgba(247, 214, 224, 0.3),
      0 0 80px rgba(232, 160, 180, 0.7),
      0 24px 48px rgba(138, 61, 85, 0.25);
  }
}

.heart-counter span {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--dark-rose);
  display: block;
  line-height: 1;
}

.heart-counter small {
  color: var(--text-soft);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heart-message {
  min-height: 1.6em;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-style: italic;
  color: var(--dark-rose);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.heart-message.pop {
  animation: msgPop 0.45s var(--ease);
}

@keyframes msgPop {
  0% { opacity: 0; transform: translateY(8px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.heart-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ---------- 7. Cake ---------- */
.cake-section {
  text-align: center;
}

.cake-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.cake {
  position: relative;
  width: 220px;
  height: 240px;
  margin: 2rem auto 1rem;
}

.layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px 8px 14px 14px;
  box-shadow: inset 0 -6px 12px rgba(138, 61, 85, 0.08);
}

.base-layer {
  bottom: 28px;
  width: 200px;
  height: 55px;
  background: linear-gradient(180deg, #f5d0da, #e8a0b4);
}

.mid-layer {
  bottom: 72px;
  width: 165px;
  height: 48px;
  background: linear-gradient(180deg, #fce4ec, #f4c4d0);
}

.top-layer {
  bottom: 108px;
  width: 130px;
  height: 42px;
  background: linear-gradient(180deg, #fff5f8, #f7d6e0);
}

.frosting {
  position: absolute;
  bottom: 142px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 22px;
  background: radial-gradient(circle at 20% 50%, #fff, transparent 40%),
              linear-gradient(90deg, #ffe8ef, #fff8f5, #ffe8ef);
  border-radius: 40%;
  box-shadow:
    -40px 8px 0 -4px #fff5f8,
    -20px 10px 0 -2px #ffe8ef,
    0 12px 0 0 #fff8f5,
    20px 10px 0 -2px #ffe8ef,
    40px 8px 0 -4px #fff5f8;
}

.plate {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
  height: 18px;
  background: linear-gradient(180deg, #f0e6d8, var(--champagne));
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(138, 61, 85, 0.12);
}

.candle {
  position: absolute;
  bottom: 155px;
  width: 10px;
  height: 36px;
  background: linear-gradient(90deg, #f8e8c8, #fff8e8, #f0d9a8);
  border-radius: 2px;
  z-index: 2;
}

.candle.c1 { left: calc(50% - 28px); }
.candle.c2 { left: calc(50% - 5px); height: 42px; bottom: 158px; }
.candle.c3 { left: calc(50% + 18px); }

.wick {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background: #5c3a2e;
}

.flame {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 18px;
  background: radial-gradient(ellipse at center, #fff6c8 10%, #ffb347 45%, #ff6b4a 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 0 14px rgba(255, 180, 80, 0.8);
  animation: flicker 0.35s ease-in-out infinite alternate;
  opacity: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.candle:not(.lit) .flame {
  opacity: 0;
  transform: translateX(-50%) scale(0);
}

@keyframes flicker {
  from { transform: translateX(-50%) scale(1) rotate(-2deg); }
  to { transform: translateX(-50%) scale(1.08) rotate(2deg); }
}

.confetti-piece {
  position: fixed;
  width: 8px;
  height: 12px;
  z-index: 9600;
  pointer-events: none;
  animation: confettiFall 2.8s var(--ease) forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ---------- 8. Celebration ---------- */
.celebration-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  max-width: none;
  width: 100%;
  padding: 5rem 1.5rem;
  background:
    radial-gradient(ellipse at center, rgba(74, 31, 51, 0.15), transparent 60%),
    linear-gradient(160deg, #3d1a2c 0%, #5c2d45 40%, #4a2450 100%);
  border-radius: 0;
}

.celebration-section[hidden] {
  display: none !important;
}

#celebration-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.celebration-content {
  position: relative;
  z-index: 2;
  animation: celebrationIn 1s var(--ease);
}

.celebration-date {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 1rem;
  font-weight: 400;
}

.celebration-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--cream);
  text-shadow: 0 0 40px rgba(232, 160, 180, 0.5);
  line-height: 1.2;
}

@keyframes celebrationIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- 9. Finale ---------- */
.finale-section {
  max-width: none;
  width: 100%;
  padding: 7rem 1.5rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(138, 61, 85, 0.35), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(90, 50, 120, 0.3), transparent 45%),
    linear-gradient(165deg, #2a1220 0%, #4a1f33 45%, #3a2048 100%);
  color: var(--cream);
  text-align: center;
}

.finale-inner {
  max-width: 640px;
  margin: 0 auto;
}

.finale-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft-pink);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.finale-message p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 1.35rem;
  color: rgba(255, 248, 245, 0.9);
}

.finale-highlight {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem) !important;
  font-style: italic;
  color: var(--champagne) !important;
  margin: 2rem 0 !important;
}

.finale-sign {
  font-family: var(--font-display);
  font-style: italic;
  margin-top: 2.5rem !important;
  color: var(--soft-pink) !important;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem 5rem;
  background: #2a1220;
  color: rgba(255, 248, 245, 0.55);
  font-size: 0.85rem;
  font-weight: 300;
}

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

/* ---------- Mobile polish ---------- */
@media (max-width: 480px) {
  .section { padding: 4.5rem 1.15rem; }
  .letter-card { padding: 1.75rem 1.25rem; }
  .music-toggle { bottom: 16px; right: 16px; padding: 12px 14px; }
  .lightbox-nav.prev { left: 0.35rem; }
  .lightbox-nav.next { right: 0.35rem; }
  .countdown { padding: 1rem; }
  .love-meter { left: 12px; right: auto; width: 120px; top: auto; bottom: 70px; }
  .journey-dots { display: none; }
  .song-title { font-size: 1.8rem; }
}

/* ============================================
   Premium upgrades
   ============================================ */

#aurora-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  mix-blend-mode: soft-light;
}

.love-meter {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 8500;
  width: 140px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(232, 160, 180, 0.45);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(138, 61, 85, 0.12);
}

.love-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--soft-pink), var(--rose-pink), var(--champagne));
  transition: width 0.55s var(--ease);
  box-shadow: 0 0 16px rgba(232, 160, 180, 0.7);
}

.love-meter-label {
  position: absolute;
  top: 14px;
  right: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-rose);
  white-space: nowrap;
}

.journey-dots {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8500;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.journey-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(232, 160, 180, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.journey-dots button.active,
.journey-dots button:hover {
  background: var(--rose-pink);
  transform: scale(1.35);
  box-shadow: 0 0 14px rgba(232, 160, 180, 0.8);
}

/* Song overlay */
.song-overlay {
  position: fixed;
  inset: 0;
  z-index: 9800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(ellipse at center, rgba(74, 31, 51, 0.55), rgba(42, 18, 32, 0.82));
  backdrop-filter: blur(10px);
  animation: fadeIn 0.5s ease;
}

.song-overlay[hidden] { display: none !important; }

.song-overlay-glow {
  position: absolute;
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 160, 180, 0.35), transparent 65%);
  animation: heartPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

.song-kicker {
  position: relative;
  z-index: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--champagne);
  margin-bottom: 1rem;
}

.song-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--cream);
  text-shadow: 0 0 40px rgba(232, 160, 180, 0.55);
  margin-bottom: 1.25rem;
}

.song-lyrics {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  color: var(--soft-pink);
  min-height: 2.2em;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.song-lyrics.pop {
  animation: msgPop 0.45s var(--ease);
}

.song-bars {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 36px;
  margin-top: 2rem;
}

.song-bars span {
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(to top, var(--rose-pink), var(--champagne));
  animation: equalizer 0.9s ease-in-out infinite;
}

.song-bars span:nth-child(1) { height: 12px; animation-delay: 0s; }
.song-bars span:nth-child(2) { height: 24px; animation-delay: 0.12s; }
.song-bars span:nth-child(3) { height: 34px; animation-delay: 0.24s; }
.song-bars span:nth-child(4) { height: 20px; animation-delay: 0.08s; }
.song-bars span:nth-child(5) { height: 16px; animation-delay: 0.2s; }

@keyframes equalizer {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1.15); }
}

/* Opening orbs */
.opening-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
  animation: openAura 10s ease-in-out infinite alternate;
}
.opening-orbs span:nth-child(1) {
  width: 280px; height: 280px; left: 8%; top: 18%;
  background: rgba(255, 214, 224, 0.8);
}
.opening-orbs span:nth-child(2) {
  width: 220px; height: 220px; right: 10%; bottom: 20%;
  background: rgba(217, 198, 229, 0.7);
  animation-delay: 1.5s;
}
.opening-orbs span:nth-child(3) {
  width: 160px; height: 160px; left: 45%; top: 65%;
  background: rgba(232, 213, 163, 0.45);
  animation-delay: 0.8s;
}

/* Gift unwrap */
.gift-gate {
  position: fixed;
  inset: 0;
  z-index: 9700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #5c2d45, #2a1220);
}

.gift-gate[hidden] { display: none !important; }

.gift-box {
  position: relative;
  width: 160px;
  height: 160px;
  transition: transform 0.4s var(--ease);
}

.gift-box:hover { transform: scale(1.05); }

.gift-body {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  height: 80px;
  background: linear-gradient(145deg, var(--rose-pink), var(--dark-rose));
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.gift-lid {
  position: absolute;
  top: 28px;
  left: 12px;
  right: 12px;
  height: 36px;
  background: linear-gradient(145deg, var(--soft-pink), var(--rose-pink));
  border-radius: 6px;
  transition: transform 0.7s var(--ease);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 2;
}

.gift-bow {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--champagne);
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 0 20px rgba(232, 213, 163, 0.8);
}

.gift-bow::before,
.gift-bow::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 36px;
  height: 22px;
  border: 4px solid var(--champagne);
  border-radius: 50% 50% 0 50%;
}
.gift-bow::before { left: -30px; transform: rotate(-30deg); }
.gift-bow::after { right: -30px; transform: rotate(120deg); border-radius: 50% 50% 50% 0; }

.gift-hint {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--cream);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
}

.gift-box.opened .gift-lid {
  transform: translateY(-70px) rotate(-12deg);
  opacity: 0.9;
}

.gift-box.opened .gift-hint { opacity: 0; }

/* Wish sky */
.wish-sky {
  position: relative;
  height: min(420px, 70vh);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(138, 61, 85, 0.35), transparent 50%),
    linear-gradient(165deg, #2a1220 0%, #4a1f33 50%, #3a2048 100%);
  box-shadow: var(--shadow);
  cursor: crosshair;
}

.wish-star {
  position: absolute;
  color: var(--champagne);
  font-size: 1.2rem;
  cursor: pointer;
  text-shadow: 0 0 12px rgba(232, 213, 163, 0.9);
  animation: twinkle 2.4s ease-in-out infinite;
  transition: transform 0.3s ease;
  background: none;
  border: none;
  padding: 0.35rem;
  -webkit-tap-highlight-color: transparent;
}

.wish-star:hover { transform: scale(1.4); }

@keyframes twinkle {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.wish-reveal {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: min(90%, 420px);
  text-align: center;
  color: var(--cream);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
  pointer-events: none;
}

/* Name constellation */
.name-constellation {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 4vw, 1.75rem);
  padding: 2rem 0 1rem;
}

.name-constellation span {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 600;
  color: transparent;
  background: linear-gradient(180deg, var(--cream), var(--soft-pink), var(--champagne));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(232, 160, 180, 0.55));
  opacity: 0;
  transform: translateY(24px) scale(0.9);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.name-constellation.visible span {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.name-constellation.visible span:nth-child(1) { transition-delay: 0.05s; }
.name-constellation.visible span:nth-child(2) { transition-delay: 0.2s; }
.name-constellation.visible span:nth-child(3) { transition-delay: 0.35s; }
.name-constellation.visible span:nth-child(4) { transition-delay: 0.5s; }

/* Cake upgrades */
.candle.c4 { left: calc(50% - 42px); height: 34px; bottom: 154px; }
.candle.c5 { left: calc(50% + 32px); height: 34px; bottom: 154px; }

.cake-name {
  position: absolute;
  bottom: 118px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--dark-rose);
  letter-spacing: 0.12em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
  pointer-events: none;
}

.blow-hint,
.wish-song-note {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 300;
}

.wish-song-note {
  margin-top: -0.5rem;
}

.wish-song-note em {
  font-style: italic;
  color: var(--dark-rose);
}

.wish-btn-premium {
  position: relative;
  overflow: hidden;
}

.wish-btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35), transparent 70%);
  transform: translateX(-120%);
  animation: shineSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shineSweep {
  0%, 40% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

.cake.blow-out {
  animation: cakeShake 0.55s ease;
}

@keyframes cakeShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px) rotate(-1deg); }
  75% { transform: translateX(4px) rotate(1deg); }
}

.celebration-lyrics {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--soft-pink);
  min-height: 1.6em;
}

.celebration-section .glow-btn {
  margin-top: 1.75rem;
}

/* Golden rain */
.gold-drop {
  position: fixed;
  top: -20px;
  width: 3px;
  height: 14px;
  background: linear-gradient(to bottom, transparent, var(--champagne));
  border-radius: 2px;
  z-index: 9600;
  pointer-events: none;
  animation: goldFall linear forwards;
}

@keyframes goldFall {
  to { transform: translateY(110vh); opacity: 0; }
}

/* Screen flash */
.wish-flash {
  position: fixed;
  inset: 0;
  z-index: 9750;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,248,245,0.85), rgba(232,213,163,0.2), transparent 70%);
  animation: flashOut 1.1s ease forwards;
}

@keyframes flashOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

body.wishing {
  animation: romancePulse 1.2s ease;
}

@keyframes romancePulse {
  0%, 100% { filter: brightness(1); }
  40% { filter: brightness(1.08); }
}

/* ---------- Deep Heart Songs playlist ---------- */
.songs-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.5rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.72), rgba(247,214,224,0.4));
}

.songs-now {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.songs-vinyl {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--cream) 18%, #3a1a28 19% 34%, var(--rose-pink) 35% 48%, #2a1220 49%);
  box-shadow: 0 10px 28px rgba(138, 61, 85, 0.25), inset 0 0 0 3px rgba(232, 213, 163, 0.35);
  position: relative;
  flex-shrink: 0;
}

.songs-vinyl span {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--soft-pink), var(--dark-rose));
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
}

.songs-vinyl.spinning {
  animation: vinylSpin 3.5s linear infinite;
}

@keyframes vinylSpin {
  to { transform: rotate(360deg); }
}

.songs-now-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.songs-now-text h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--dark-rose);
  margin: 0.15rem 0;
}

.songs-now-text p:last-child {
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 300;
  font-style: italic;
}

.songs-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.songs-ctrl {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(232, 160, 180, 0.45);
  color: var(--dark-rose);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.songs-ctrl:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-glow);
}

.songs-ctrl--play {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--rose-pink), var(--dark-rose));
  color: var(--white);
  border: none;
  box-shadow: 0 10px 24px rgba(138, 61, 85, 0.28);
}

.songs-list {
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  margin: 0 0 1.25rem;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--rose-pink) transparent;
}

.songs-item-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  text-align: left;
  color: var(--text);
  transition: background 0.25s ease, transform 0.25s ease;
}

.songs-item-btn:hover {
  background: rgba(255, 255, 255, 0.65);
}

.songs-item.active .songs-item-btn {
  background: linear-gradient(135deg, rgba(244, 196, 208, 0.55), rgba(217, 198, 229, 0.4));
  box-shadow: inset 0 0 0 1px rgba(232, 160, 180, 0.45);
}

.songs-item-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--rose-pink);
}

.songs-item-meta strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-rose);
}

.songs-item-meta small {
  color: var(--text-soft);
  font-weight: 300;
}

.songs-item-heart {
  color: var(--rose-pink);
  opacity: 0.55;
  font-size: 0.85rem;
}

.songs-item.active .songs-item-heart {
  opacity: 1;
  animation: heartBeat 1.4s ease-in-out infinite;
}

.songs-add {
  text-align: center;
  border-top: 1px solid rgba(232, 160, 180, 0.25);
  padding-top: 1.1rem;
}

.songs-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed rgba(232, 160, 180, 0.7);
  color: var(--dark-rose);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.songs-add-btn:hover {
  background: var(--white);
  box-shadow: var(--shadow-glow);
}

.songs-add-hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  font-weight: 300;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .songs-now { gap: 0.9rem; }
  .songs-vinyl { width: 60px; height: 60px; }
  .songs-list { max-height: 280px; }
}


