/**
 * ==============================================================================
 * SHERYL'S ROMANTIC BIRTHDAY WEB APP — UI COMPONENTS
 * ==============================================================================
 */

/* ==============================================================================
 * 1. FLOATING VINYL AUDIO PLAYER WIDGET
 * ==============================================================================
 */
.floating-audio-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  top: auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  box-shadow: var(--shadow-md), var(--shadow-gold-glow);
  transition: all var(--transition-smooth);
}

.floating-audio-widget:hover {
  background: var(--glass-bg-elevated);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(212, 175, 55, 0.45);
}

/* Vinyl Disc & Tonearm Container */
.vinyl-container {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center, #1a1a1a 0%, #2c1820 40%, #111111 80%, #000000 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.vinyl-disc.is-playing {
  animation: spinSlow 6s linear infinite;
}

.vinyl-grooves {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.vinyl-center-cover {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--color-gold-primary);
  z-index: 2;
}

/* Tonearm */
.tonearm {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 24px;
  transform-origin: top right;
  transform: rotate(-35deg);
  transition: transform 0.4s var(--transition-bounce);
  pointer-events: none;
  z-index: 3;
}

.tonearm.is-active {
  transform: rotate(0deg);
}

.tonearm-head {
  width: 3px;
  height: 18px;
  background: linear-gradient(to bottom, #d4af37, #996515);
  border-radius: 2px;
  position: absolute;
  right: 4px;
  top: 2px;
}

/* Track Info & Visualizer */
.audio-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 140px;
}

.audio-track-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Waveform Canvas */
.audio-visualizer-canvas {
  width: 50px;
  height: 18px;
  display: block;
}

/* Audio Controls */
.audio-btn-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: var(--color-rose-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(229, 130, 157, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.audio-btn-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(229, 130, 157, 0.6);
}

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

/* Tap to Unlock Badge / Toast */
.audio-unlock-badge {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--glass-bg-elevated);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg), var(--shadow-gold-glow);
  cursor: pointer;
  transition: all var(--transition-smooth);
  animation: breathingPulse 2s ease-in-out infinite;
}

.audio-unlock-badge.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}

.audio-unlock-badge:hover {
  transform: translateX(-50%) scale(1.04);
  box-shadow: var(--shadow-xl), 0 0 35px rgba(212, 175, 55, 0.5);
}


/* ==============================================================================
 * 2. HERO LANDING SECTION
 * ==============================================================================
 */
.hero-section {
  min-height: 90vh;
  min-height: 90dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4.5rem 1rem 3rem;
  position: relative;
}

.hero-glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  box-shadow: var(--shadow-xl), 0 10px 40px rgba(252, 231, 240, 0.4);
  width: 100%;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  animation: fadeSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-gold-gradient);
}

/* Avatar Frame with Glowing Rings */
.hero-avatar-wrapper {
  position: relative;
  width: clamp(110px, 20vw, 150px);
  height: clamp(110px, 20vw, 150px);
  margin: 0 auto 1.5rem;
}

.hero-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed var(--color-gold-primary);
  animation: spinSlow 20s linear infinite;
}

.hero-avatar-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
  transition: transform var(--transition-smooth);
}

.hero-avatar-wrapper:hover .hero-avatar-img {
  transform: scale(1.05);
}

/* Cursive Romantic Tagline */
.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-rose-light);
  border-radius: var(--radius-full);
  color: var(--color-rose-deep);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Hero Typography */
.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight-gold {
  background: var(--color-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-cursive-name {
  font-family: var(--font-cursive);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  color: var(--color-rose-deep);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-weight: 400;
  line-height: 1.6;
}

/* ==============================================================================
 * 3. LIVE COUNTDOWN TIMER
 * ==============================================================================
 */
.countdown-container {
  margin: 1.5rem auto 2.5rem;
  width: 100%;
}

.countdown-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.5rem, 2vw, 1rem);
  max-width: 480px;
  margin: 0 auto;
}

.countdown-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--radius-md);
  padding: clamp(0.75rem, 2vw, 1.25rem) 0.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.countdown-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-gold-glow);
}

.countdown-number {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.countdown-card.is-ticking .countdown-number {
  animation: countdownTick 0.35s ease-out;
}

.countdown-unit {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Birthday Arrival Celebratory Banner */
.birthday-arrived-banner {
  background: var(--color-gold-gradient);
  color: #2C1820;
  padding: 1.2rem 2rem;
  border-radius: var(--radius-lg);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: var(--shadow-gold-glow);
  display: none;
  animation: scaleFadeIn 0.6s var(--transition-bounce) forwards;
}

.birthday-arrived-banner.is-active {
  display: block;
}

/* ==============================================================================
 * 4. ROMANTIC CALL-TO-ACTION BUTTON
 * ==============================================================================
 */
.btn-romantic-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--color-rose-gradient);
  color: #ffffff;
  padding: clamp(0.9rem, 2.5vw, 1.15rem) clamp(1.8rem, 4vw, 2.5rem);
  border-radius: var(--radius-full);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(229, 130, 157, 0.45);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.btn-romantic-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmerSheen 3s infinite;
}

.btn-romantic-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(229, 130, 157, 0.6), 0 0 25px rgba(212, 175, 55, 0.35);
}

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


/* ==============================================================================
 * 5. LOVE QUEST TRIVIA & SECRET LOVE VAULT STYLING (MILESTONE 2)
 * ==============================================================================
 */

/* Trivia Quest Card Container */
.trivia-quest-wrapper {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Top Bar: Steps, Lives & Score */
.trivia-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.trivia-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-rose-light);
  border-radius: var(--radius-full);
  color: var(--color-rose-deep);
  font-size: 0.82rem;
  font-weight: 600;
}

.trivia-lives-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
}

.lives-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.lives-hearts-track {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.life-heart {
  font-size: 1rem;
  display: inline-block;
  transition: transform var(--transition-bounce), filter var(--transition-fast);
}

.life-heart.is-active {
  animation: breathingPulse 2s ease-in-out infinite;
}

.life-heart.is-lost {
  filter: grayscale(1) opacity(0.5);
  transform: scale(0.85);
}

.trivia-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(254, 250, 240, 0.9);
  border: 1px solid var(--color-gold-light);
  border-radius: var(--radius-full);
  color: var(--color-gold-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

/* Progress Bar */
.trivia-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(229, 130, 157, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.trivia-progress-fill {
  height: 100%;
  background: var(--color-gold-gradient);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* Question Content */
.trivia-question-content {
  text-align: center;
  margin-bottom: 1.75rem;
}

.trivia-question-text {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.45;
  margin-bottom: 1.75rem;
}

/* Options Grid */
.trivia-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .trivia-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.trivia-option-btn {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--glass-border-gold);
  border-radius: var(--radius-lg);
  padding: 0.95rem 1.15rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  width: 100%;
  font-family: var(--font-sans);
}

.trivia-option-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: var(--color-gold-primary);
  box-shadow: var(--shadow-md), 0 0 20px rgba(212, 175, 55, 0.3);
}

.trivia-option-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.option-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-tertiary);
  color: var(--color-rose-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition-smooth);
}

.option-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.35;
}

.option-status-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Option States */
.trivia-option-btn.correct,
.trivia-option-btn.is-correct {
  background: var(--color-success-bg, #E8F5EE) !important;
  border-color: var(--color-success, #4E9A70) !important;
  color: #1E5136 !important;
  box-shadow: 0 0 25px rgba(78, 154, 112, 0.4) !important;
  animation: successPulse 0.5s ease-out;
}

.trivia-option-btn.correct .option-badge,
.trivia-option-btn.is-correct .option-badge {
  background: #4E9A70;
  color: #ffffff;
}

.trivia-option-btn.correct .option-status-icon,
.trivia-option-btn.is-correct .option-status-icon {
  color: #4E9A70;
}

.trivia-option-btn.incorrect,
.trivia-option-btn.is-wrong {
  background: var(--color-error-bg, #FDE8EC) !important;
  border-color: var(--color-error, #D65A6F) !important;
  color: #7D1A2C !important;
  box-shadow: 0 0 20px rgba(214, 90, 111, 0.35) !important;
}

.trivia-option-btn.incorrect .option-badge,
.trivia-option-btn.is-wrong .option-badge {
  background: #D65A6F;
  color: #ffffff;
}

.trivia-option-btn.incorrect .option-status-icon,
.trivia-option-btn.is-wrong .option-status-icon {
  color: #D65A6F;
}

.trivia-option-btn.is-disabled,
.trivia-option-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Feedback Box */
.trivia-feedback-box {
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  animation: fadeSlideUp 0.4s ease-out forwards;
}

.trivia-feedback-box.feedback-success {
  background: rgba(232, 245, 238, 0.95);
  border: 1.5px solid #4E9A70;
  color: #1E5136;
  box-shadow: 0 4px 15px rgba(78, 154, 112, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trivia-feedback-box.feedback-hint {
  background: rgba(254, 250, 240, 0.95);
  border: 1.5px solid #D4AF37;
  color: #7A5210;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trivia-feedback-box.feedback-empty {
  background: rgba(253, 232, 236, 0.95);
  border: 1.5px solid #D65A6F;
  color: #7D1A2C;
  text-align: center;
}

.feedback-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.feedback-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.feedback-text p {
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.45;
}

/* Action Footer */
.trivia-footer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-romantic-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-rose-deep);
  background: transparent;
  color: var(--color-rose-deep);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-romantic-outline:hover {
  background: var(--color-bg-tertiary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ==============================================================================
 * GOLDEN KEY REWARD & CELEBRATION CARD
 * ==============================================================================
 */
.golden-key-reward-card {
  text-align: center;
  padding: 1.5rem 1rem;
  animation: scaleFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.completion-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1.2rem;
  background: var(--color-gold-gradient);
  border-radius: var(--radius-full);
  color: #2C1820;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-gold-glow);
  margin-bottom: 1rem;
}

.completion-title {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.completion-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.score-highlight {
  color: var(--color-rose-deep);
}

/* 3D Golden Key Display Wrapper */
.golden-key-display-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 1.5rem auto 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.golden-key-rays {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(244, 232, 193, 0.15) 50%, transparent 70%);
  border-radius: 50%;
  animation: rayRotate 20s linear infinite;
  pointer-events: none;
}

.golden-key-halo {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 2px dashed rgba(212, 175, 55, 0.6);
  animation: goldenPulse 2.5s infinite ease-in-out;
  pointer-events: none;
}

.golden-key-graphic {
  position: relative;
  z-index: 2;
  animation: keyFloat 3s ease-in-out infinite;
}

.key-icon-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--color-gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.45);
}

.golden-key-icon {
  font-size: 3rem;
  background: var(--color-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: rotate(-45deg);
}

.golden-key-tag {
  position: absolute;
  bottom: -15px;
  background: var(--glass-bg-elevated);
  border: 1px solid var(--color-gold-primary);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-gold);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.vault-instructions {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 1.5rem auto 2rem;
  line-height: 1.6;
}

.completion-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-unlock-vault {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn-unlocked-active {
  background: linear-gradient(135deg, #4E9A70, #2E7D52) !important;
  box-shadow: 0 8px 24px rgba(78, 154, 112, 0.45) !important;
}

/* ==============================================================================
 * SECRET LOVE VAULT GATEWAY STYLING
 * ==============================================================================
 */
.secret-vault-gate-wrapper {
  margin-top: 2rem;
  position: relative;
}

.vault-gateway-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 2px dashed rgba(212, 175, 55, 0.5);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-smooth);
}

.vault-padlock-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vault-padlock-icon {
  font-size: 2.6rem;
  color: var(--color-gold-primary);
  transition: transform var(--transition-bounce), color var(--transition-fast);
}

.padlock-open .vault-padlock-icon,
.vault-unlocked .vault-padlock-icon {
  color: #4E9A70;
  transform: rotate(-15deg) scale(1.1);
}

.vault-locked {
  position: relative;
}

.vault-unlocked {
  border-color: rgba(78, 154, 112, 0.4);
  background: rgba(232, 245, 238, 0.3);
}

.vault-dissolve-in {
  animation: vaultDissolve 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Section lock overlays for downstream memory sections */
.section-locked {
  opacity: 0.75;
  filter: blur(1px);
  pointer-events: none;
  user-select: none;
  transition: opacity 0.6s ease, filter 0.6s ease;
}

.section-unlocked {
  opacity: 1;
  filter: none;
  pointer-events: auto;
  user-select: auto;
}


/* ==============================================================================
 * 6. SECTION WRAPPERS & PLACEHOLDERS
 * ==============================================================================
 */
.story-section {
  padding: 4.5rem 0 2rem;
  position: relative;
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.95rem;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-rose-light);
  border-radius: var(--radius-full);
  color: var(--color-rose-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

.section-glass-container {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Empty State / Loading Preview for Downstream Milestones */
.section-placeholder-box {
  border: 2px dashed rgba(229, 130, 157, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
}

/* ==============================================================================
 * 8. POLAROID SCRAPBOOK GALLERY (MILESTONE 3)
 * ==============================================================================
 */
.scrapbook-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.scrapbook-intro-note {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.scrapbook-intro-note i {
  color: var(--color-rose-deep);
  font-size: 0.85rem;
}

/* Polaroid Grid */
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 3rem 2rem;
  padding: 1.5rem 0.5rem;
  justify-items: center;
}

/* Authentic Polaroid Card */
.polaroid-card {
  background: #FFFFFF;
  padding: 14px 14px 22px 14px;
  border-radius: 4px;
  box-shadow: 0 10px 30px -5px rgba(44, 24, 32, 0.16), 0 0 1px rgba(0, 0, 0, 0.12);
  position: relative;
  width: 100%;
  max-width: 290px;
  cursor: pointer;
  transform-origin: center center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  outline: none;
  display: flex;
  flex-direction: column;
}

.polaroid-card:hover,
.polaroid-card:focus-visible {
  box-shadow: 0 20px 45px -8px rgba(44, 24, 32, 0.28), 0 0 25px rgba(229, 130, 157, 0.3);
}

/* Washi Tape Accent */
.washi-tape {
  position: absolute;
  z-index: 4;
  height: 22px;
  width: 80px;
  background: rgba(248, 180, 196, 0.65);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  border-left: 2px dashed rgba(255, 255, 255, 0.7);
  border-right: 2px dashed rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.washi-tape-top {
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
}

/* Sticker Wrapper */
.polaroid-sticker-wrapper {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  pointer-events: none;
}

.polaroid-sticker-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15));
  transform: rotate(12deg);
}

.polaroid-sticker-emoji {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Photo Wrapper */
.polaroid-photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  background: #F3EBE6;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-img {
  transform: scale(1.05);
}

.polaroid-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(35, 15, 25, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.polaroid-card:hover .polaroid-hover-overlay {
  opacity: 1;
}

.polaroid-zoom-badge {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-rose-deep);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transform: scale(0.9);
  transition: transform var(--transition-bounce);
}

.polaroid-card:hover .polaroid-zoom-badge {
  transform: scale(1);
}

/* Handwritten Caption Content */
.polaroid-content {
  margin-top: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.polaroid-caption {
  font-family: 'Great Vibes', 'Caveat', cursive;
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--color-text-primary);
  margin: 0;
  word-break: break-word;
}

.polaroid-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-top: 0.2rem;
}

.polaroid-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}


/* ==============================================================================
 * 9. HD LIGHTBOX MODAL (MILESTONE 3)
 * ==============================================================================
 */
.photo-lightbox-modal,
#photo-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 8, 14, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(860px, calc(100vw - 3rem));
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxScaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lightbox-btn-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.lightbox-btn-close:hover {
  background: var(--color-rose-deep);
  transform: rotate(90deg);
}

.lightbox-btn-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-btn-nav:hover {
  background: var(--color-rose-deep);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(229, 130, 157, 0.5);
}

.lightbox-btn-prev {
  left: -1.5rem;
}

.lightbox-btn-next {
  right: -1.5rem;
}

.lightbox-card {
  background: #FFFDFB;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--glass-border-gold);
}

.lightbox-image-container {
  position: relative;
  width: 100%;
  height: min(62vh, 580px);
  min-height: 0;
  background: #1A0C14;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 1 1 auto;
}

.lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.lightbox-reactions-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}

.lightbox-floating-heart {
  position: absolute;
  pointer-events: none;
  animation: floatingHeartFly 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lightbox-details {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #FFFDFB;
  flex: 0 0 auto;
}

.lightbox-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lightbox-counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-rose-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lightbox-badges {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.lightbox-badge-date,
.lightbox-badge-location {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--color-bg-tertiary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.lightbox-caption {
  font-family: 'Great Vibes', 'Caveat', cursive;
  font-size: 1.9rem;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.2;
}

.lightbox-actions-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.3rem;
}

.btn-lightbox-love {
  background: linear-gradient(135deg, var(--color-rose-primary), var(--color-rose-deep));
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(229, 130, 157, 0.4);
  transition: all var(--transition-fast);
}

.btn-lightbox-love:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(229, 130, 157, 0.6);
}



/* ==============================================================================
 * 6. LDR CONNECTION MAP COMPONENT
 * ==============================================================================
 */
.ldr-glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-md), var(--shadow-gold-glow);
  position: relative;
  overflow: hidden;
}

.ldr-quote-banner {
  background: linear-gradient(135deg, rgba(253, 242, 244, 0.8), rgba(255, 249, 230, 0.8));
  border: 1px dashed var(--color-gold-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
}

.ldr-quote-text {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.6;
  margin: 0;
}

.quote-icon-left {
  position: absolute;
  top: 0.75rem;
  left: 0.85rem;
  color: var(--color-rose-light);
  font-size: 1rem;
  opacity: 0.7;
}

.quote-icon-right {
  position: absolute;
  bottom: 0.75rem;
  right: 0.85rem;
  color: var(--color-rose-light);
  font-size: 1rem;
  opacity: 0.7;
}

/* LDR Stats 3-Card Grid */
.ldr-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.ldr-stat-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(229, 130, 157, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(229, 130, 157, 0.08);
  transition: all var(--transition-fast);
}

.ldr-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(229, 130, 157, 0.18);
  border-color: var(--color-gold-primary);
}

.ldr-stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.ldr-stat-icon-wrap.icon-rose {
  background: linear-gradient(135deg, #FFE4E9, #FCD5DC);
  color: var(--color-rose-deep);
}

.ldr-stat-icon-wrap.icon-gold {
  background: linear-gradient(135deg, #FFF6D6, #FDE6A6);
  color: var(--color-gold-dark);
}

.ldr-stat-icon-wrap.icon-purple {
  background: linear-gradient(135deg, #F0E6FF, #E0CEFC);
  color: #7B42BC;
}

.ldr-stat-info {
  display: flex;
  flex-direction: column;
}

.ldr-stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1.1;
}

.ldr-stat-value .unit {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-rose-deep);
}

.ldr-stat-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Interactive LDR Map Stage */
.ldr-map-stage {
  position: relative;
  width: 100%;
  height: 320px;
  background: radial-gradient(circle at center, #FFFFFF 0%, #FFF5F7 60%, #FDEEF2 100%);
  border: 1px solid var(--color-rose-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03), 0 8px 25px rgba(229, 130, 157, 0.12);
  margin-bottom: 1.75rem;
}

.ldr-map-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(229, 130, 157, 0.15) 1px, transparent 1px),
    linear-gradient(to right, rgba(212, 175, 55, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

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

.ldr-route-guide {
  fill: none;
  stroke: rgba(229, 130, 157, 0.25);
  stroke-width: 3;
  stroke-dasharray: 6 6;
}

.ldr-route-glowing {
  fill: none;
  stroke: url(#ldrGlowGrad);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 12 8;
  animation: dashFlow 2s linear infinite;
}

.ldr-transit-marker {
  animation: transitGlide 6s ease-in-out infinite alternate;
}

/* LDR City Pins */
.ldr-city-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.ldr-city-pin:hover {
  transform: translate(-50%, -55%) scale(1.08);
}

.pin-radar-ripple {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--color-rose-primary);
  background: rgba(229, 130, 157, 0.2);
  top: -8px;
  animation: radarPing 2.4s cubic-bezier(0.1, 0.5, 0.3, 1) infinite;
  pointer-events: none;
}

.pin-radar-ripple.delay {
  animation-delay: 1.2s;
}

.pin-avatar-wrapper {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 15px rgba(229, 130, 157, 0.4), 0 0 12px rgba(212, 175, 55, 0.4);
  overflow: visible;
  background: #FFF;
}

.pin-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.pin-badge-marker {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.pin-label-card {
  margin-top: 0.45rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.65rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pin-city-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.pin-city-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--color-text-muted);
}

/* Flying Hearts Overlay */
.ldr-particles-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.ldr-flying-heart {
  position: absolute;
  font-size: 1.4rem;
  pointer-events: none;
  animation: floatingHeartFly 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.ldr-sub-message {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

.ldr-actions-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.btn-virtual-hug {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(229, 130, 157, 0.45);
}

.btn-virtual-hug.is-active-hug {
  transform: scale(1.08);
  box-shadow: 0 0 35px rgba(229, 130, 157, 0.8), 0 0 20px rgba(212, 175, 55, 0.6);
}

.ldr-hug-feedback {
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  color: var(--color-rose-deep);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}

.ldr-hug-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}



/* ==============================================================================
 * 7. INTERACTIVE 3D BIRTHDAY CAKE & CANDLE
 * ==============================================================================
 */
.cake-glass-wrapper {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md), var(--shadow-gold-glow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cake-prompt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #FFF9E6, #FFE4E9);
  border: 1px solid var(--color-gold-light);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.18);
  animation: breathingPulse 2.5s ease-in-out infinite;
}

/* 3D Isometric Cake Stage */
.cake-stage-3d {
  position: relative;
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  margin-bottom: 2rem;
}

.cake-spotlight-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 235, 179, 0.6) 0%, rgba(229, 130, 157, 0.2) 50%, transparent 80%);
  filter: blur(25px);
  pointer-events: none;
  z-index: 1;
}

.cake-structure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  transform-style: preserve-3d;
  animation: floatGentle 5s ease-in-out infinite;
}

/* Candle & Flickering Flame */
.cake-candles-row {
  position: relative;
  display: flex;
  gap: 1.5rem;
  margin-bottom: -6px;
  z-index: 10;
}

.candle {
  position: relative;
  width: 16px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.candle-wick {
  width: 2px;
  height: 8px;
  background: #4A3B32;
  margin-bottom: 0px;
}

.candle-stick {
  width: 14px;
  height: 44px;
  background: linear-gradient(to right, #FFF4F7, #FADCE3 40%, #EAA2B3 85%, #D47B91 100%);
  border-radius: 4px 4px 2px 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.candle-stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 5px,
    rgba(212, 175, 55, 0.45) 5px,
    rgba(212, 175, 55, 0.45) 10px
  );
}

/* Flickering Flame */
.flame {
  position: absolute;
  top: -24px;
  width: 16px;
  height: 26px;
  border-radius: 50% 50% 35% 35% / 70% 70% 30% 30%;
  background: radial-gradient(ellipse at bottom, #FFFDEB 0%, #FFDF00 40%, #FF6F00 75%, #E53935 100%);
  box-shadow: 
    0 0 12px #FFD54F,
    0 0 24px #FFB300,
    0 0 36px #FF7043;
  transform-origin: center bottom;
  cursor: pointer;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 15;
}

.flame.flickering {
  animation: candleFlicker 0.4s infinite alternate ease-in-out, flameCoreDance 0.8s infinite ease-in-out;
}

.flame.extinguished {
  opacity: 0 !important;
  transform: scale(0.2) !important;
  pointer-events: none;
}

.flame-inner {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 12px;
  border-radius: 50%;
  background: #FFFFFF;
  opacity: 0.9;
}

/* Smoke Puff Animation */
.smoke-puff {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 180, 180, 0.8) 0%, rgba(220, 220, 220, 0.4) 60%, transparent 100%);
  animation: smokePuffRise 2s ease-out forwards;
  pointer-events: none;
}

/* Tier Layers */
.cake-tier {
  position: relative;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.cake-tier-top {
  width: 160px;
  height: 54px;
  background: linear-gradient(180deg, #FFF8F9 0%, #FCE4EC 45%, #F8BBD0 100%);
  border: 1px solid rgba(229, 130, 157, 0.3);
  z-index: 5;
}

.cake-tier-top .tier-surface {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: #FFFFFF;
  border-radius: 12px 12px 0 0;
}

.cake-toppings-ring {
  display: flex;
  justify-content: space-around;
  margin-top: -8px;
  font-size: 1.1rem;
}

.cake-tier-bottom {
  width: 220px;
  height: 64px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF2F4 40%, #FADCE3 100%);
  border: 1px solid rgba(229, 130, 157, 0.35);
  margin-top: -6px;
  z-index: 4;
}

.cake-ribbon-gold {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #D4AF37, #FFF2D6, #D4AF37);
  box-shadow: 0 1px 3px rgba(212, 175, 55, 0.4);
}

.tier-frosting-drips {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 12px;
  background: radial-gradient(circle at 10px 0, #FFFFFF 8px, transparent 9px) repeat-x;
  background-size: 20px 12px;
}

/* Stand Plate */
.cake-stand-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -4px;
  z-index: 3;
}

.plate-rim {
  width: 260px;
  height: 16px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F1EA 60%, #E6E1D5 100%);
  border-radius: 50%;
  border: 2px solid var(--color-gold-light);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.stand-pillar {
  width: 32px;
  height: 24px;
  background: linear-gradient(90deg, #E6E1D5, #FFFFFF 50%, #D4CEBF 100%);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
}

.stand-base {
  width: 140px;
  height: 12px;
  background: linear-gradient(180deg, #FFFFFF, #E6E1D5);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* Controls */
.cake-controls-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.btn-blow-candle {
  padding: 0.85rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(229, 130, 157, 0.45);
}

.btn-mic-toggle {
  padding: 0.85rem 1.5rem;
  font-size: 0.92rem;
}

.btn-mic-toggle.is-listening {
  background: var(--color-rose-deep);
  color: #FFF;
  border-color: var(--color-rose-deep);
  animation: breathingPulse 1.2s infinite;
}

.mic-status-indicator {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  font-weight: 600;
  min-height: 1.2rem;
  margin-bottom: 1rem;
}

.mic-status-indicator.is-active {
  color: var(--color-rose-deep);
  font-weight: 700;
}

.mic-status-indicator.is-warning {
  color: #C0392B;
}

/* Post-Blow Celebration */
.post-blow-celebration {
  background: linear-gradient(135deg, rgba(255, 249, 230, 0.95), rgba(255, 238, 242, 0.95));
  border: 2px solid var(--color-gold-primary);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  margin-top: 1.5rem;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25), 0 0 25px rgba(229, 130, 157, 0.2);
}

.celebration-badge-sparkle {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-gold-dark);
  margin-bottom: 0.5rem;
}

.celebration-headline {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-rose-deep);
  margin-bottom: 0.75rem;
}

.celebration-message {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-primary);
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

.btn-open-love-letter-cta {
  padding: 0.95rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 6px 22px rgba(229, 130, 157, 0.5);
}



/* ==============================================================================
 * 8. 3D DIGITAL LOVE LETTER & WAX SEAL
 * ==============================================================================
 */
.letter-section-wrapper {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md), var(--shadow-gold-glow);
  text-align: center;
  position: relative;
}

.letter-header-ribbon {
  margin-bottom: 2rem;
}

.letter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(229, 130, 157, 0.15);
  color: var(--color-rose-deep);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.letter-main-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 0.5rem;
}

.letter-sub-title {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* 3D Envelope Stage */
.envelope-3d-stage {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  margin: 2rem 0;
}

.envelope-3d-wrapper {
  position: relative;
  width: min(340px, 100%);
  max-width: calc(100vw - 3rem);
  aspect-ratio: 3 / 2;
  transform-style: preserve-3d;
}

.envelope-3d {
  position: relative;
  width: 100%;
  height: 100%;
  background: #E8B4B8;
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12), 0 0 25px rgba(229, 130, 157, 0.25);
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.envelope-3d.ready-to-open {
  animation: envelopeReadyGlow 2.5s infinite ease-in-out;
}

/* Envelope Back */
.envelope-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #D48C94 0%, #C27880 100%);
  border-radius: 8px;
  z-index: 1;
}

/* Letter Paper Sheet */
.letter-paper {
  position: absolute;
  top: 10px;
  left: 15px;
  right: 15px;
  bottom: 10px;
  height: calc(100% - 20px);
  background: #FFFDF9;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 1.25rem 1rem;
  text-align: left;
  z-index: 2;
  transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.envelope-3d.opened .letter-paper {
  transform: translateY(-130px);
  height: 340px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  z-index: 8;
}

.paper-inner {
  position: relative;
  height: 100%;
}

.paper-gold-border {
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  pointer-events: none;
}

.paper-watermark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 3.5rem;
  opacity: 0.06;
  pointer-events: none;
}

.letter-salutation {
  font-family: 'Great Vibes', 'Caveat', cursive;
  font-size: 1.7rem;
  color: var(--color-rose-deep);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.letter-body-content {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #332E2E;
}

.letter-paragraph {
  margin-bottom: 0.65rem;
  text-indent: 1.25rem;
}

.letter-closing-block {
  margin-top: 1rem;
  text-align: right;
}

.letter-closing-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--color-text-secondary);
}

.letter-signature-badge {
  font-family: 'Great Vibes', cursive;
  font-size: 1.7rem;
  color: var(--color-rose-deep);
}

.letter-ps-note {
  margin-top: 0.75rem;
  font-size: 0.86rem;
  color: var(--color-gold-dark);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 0.4rem;
}

.letter-expand-cta {
  margin-top: 1rem;
  text-align: center;
}

.btn-read-full-screen {
  background: var(--color-rose-deep);
  color: #FFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.45rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(229, 130, 157, 0.4);
  transition: all var(--transition-fast);
}

.btn-read-full-screen:hover {
  transform: scale(1.05);
}

/* Envelope Front Pocket Triangles */
.envelope-pocket {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.pocket-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  background: linear-gradient(135deg, #ECC1C4, #E2A2A7);
}

.pocket-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
  background: linear-gradient(-135deg, #ECC1C4, #E2A2A7);
}

.pocket-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
  background: linear-gradient(180deg, #E69EA4 0%, #D88A90 100%);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* 3D Envelope Flap */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #F0C9CC 0%, #E2A2A7 100%);
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 4;
}

.envelope-3d.opened .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

/* Metallic Wax Seal Stamp */
.wax-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FF7088 0%, #C2185B 60%, #880E4F 100%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(136, 14, 79, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform var(--transition-bounce), filter var(--transition-fast);
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(229, 130, 157, 0.8));
}

.seal-inner-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-initials {
  font-family: 'Great Vibes', 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.wax-seal.seal-broken {
  animation: waxSealBreak 0.7s forwards;
}

/* Actions Bar */
.envelope-actions-bar {
  margin-top: 1.5rem;
}

.btn-open-envelope-toggle {
  padding: 0.85rem 2.25rem;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(229, 130, 157, 0.45);
}

/* Full-Screen Letter Reader Modal */
.letter-reader-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.letter-reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 25, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.letter-reader-dialog {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  background: #FFFDF9;
  border: 2px solid var(--color-gold-primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 35px rgba(212, 175, 55, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 2;
  overflow: hidden;
}

.btn-close-reader {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(229, 130, 157, 0.15);
  border: none;
  color: var(--color-text-primary);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.btn-close-reader:hover {
  background: var(--color-rose-deep);
  color: #FFF;
  transform: rotate(90deg);
}

.reader-scroll-content {
  padding: 2.5rem 2.25rem 1.5rem;
  overflow-y: auto;
}

.reader-ornament-top,
.reader-ornament-bottom {
  text-align: center;
  color: var(--color-gold-dark);
  font-size: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.reader-salutation {
  font-family: 'Great Vibes', 'Playfair Display', cursive;
  font-size: 2.2rem;
  color: var(--color-rose-deep);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  text-align: left;
}

.reader-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  line-height: 1.85;
  color: #2E2828;
  text-align: justify;
}

.reader-body p {
  margin-bottom: 1rem;
  text-indent: 1.5rem;
}

.reader-closing {
  margin-top: 1.75rem;
  text-align: right;
}

.reader-closing-msg {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.25rem;
}

.reader-sig-name {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: var(--color-rose-deep);
  margin: 0;
}

.reader-ps {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--color-gold-dark);
  border-top: 1px dashed var(--color-gold-light);
  padding-top: 0.5rem;
  text-align: left;
}

.reader-footer-actions {
  padding: 1rem 2rem;
  background: rgba(253, 242, 244, 0.6);
  border-top: 1px solid rgba(229, 130, 157, 0.2);
  display: flex;
  justify-content: center;
}



/* ==============================================================================
 * 9. FOOTER STYLING
 * ==============================================================================
 */
.app-footer {
  text-align: center;
  padding: 3rem 1rem 2rem;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  position: relative;
  z-index: 2;
}

.app-footer .footer-heart {
  color: var(--color-rose-deep);
  display: inline-block;
  animation: breathingPulse 1.5s ease-in-out infinite;
}

.app-footer .footer-credit {
  font-size: 0.78rem;
  margin-top: 0.4rem;
  color: var(--color-text-muted);
}


/* ==============================================================================
 * 7. RESPONSIVE BREAKPOINTS
 * ==============================================================================
 */
@media (max-width: 768px) {
  .photo-lightbox-modal,
  #photo-lightbox-modal {
    padding: 0.75rem;
  }

  .lightbox-dialog {
    max-width: 100%;
    max-height: calc(100dvh - 1.5rem);
  }

  .lightbox-card {
    max-height: calc(100dvh - 1.5rem);
    border-radius: var(--radius-lg);
  }

  .lightbox-image-container {
    height: min(56dvh, 480px);
  }

  .lightbox-details {
    padding: 1rem;
  }

  .lightbox-caption {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .lightbox-badges {
    width: 100%;
    flex-wrap: wrap;
  }

  .lightbox-btn-close {
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(30, 15, 25, 0.75);
    z-index: 25;
  }

  .lightbox-btn-prev {
    left: 0.5rem;
    z-index: 25;
    background: rgba(30, 15, 25, 0.65);
  }

  .lightbox-btn-next {
    right: 0.5rem;
    z-index: 25;
    background: rgba(30, 15, 25, 0.65);
  }

  .lightbox-btn-nav {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .lightbox-image-container {
    height: min(50dvh, 390px);
  }

  .lightbox-header-row {
    align-items: flex-start;
  }

  .lightbox-actions-bar {
    justify-content: stretch;
  }

  .btn-lightbox-love {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .floating-audio-widget {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  }

  .audio-meta {
    max-width: 100px;
  }

  .audio-visualizer-canvas {
    display: none;
  }

  .audio-unlock-badge {
    bottom: 5.5rem;
    font-size: 0.8rem;
    padding: 0.6rem 1.1rem;
  }

  .countdown-grid {
    gap: 0.4rem;
  }

  .countdown-card {
    padding: 0.6rem 0.25rem;
  }

  /* M4 Mobile Adjustments */
  .ldr-glass-card,
  .cake-glass-wrapper,
  .letter-section-wrapper {
    padding: 1.5rem 1rem;
  }

  .ldr-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .ldr-map-stage {
    height: 250px;
  }

  .pin-avatar-wrapper {
    width: 42px;
    height: 42px;
  }

  .pin-city-name {
    font-size: 0.75rem;
  }

  .cake-stage-3d {
    height: 240px;
  }

  .cake-tier-top {
    width: 130px;
    height: 46px;
  }

  .cake-tier-bottom {
    width: 180px;
    height: 56px;
  }

  .plate-rim {
    width: 220px;
  }

  .envelope-3d-wrapper {
    width: min(340px, 100%);
    max-width: calc(100vw - 3rem);
    aspect-ratio: 3 / 2;
    height: auto;
  }

  .envelope-3d.opened .letter-paper {
    transform: translateY(-105px);
    height: 280px;
  }

  .reader-salutation {
    font-size: 1.75rem;
  }

  .reader-body {
    font-size: 1.05rem;
  }

  .reader-sig-name {
    font-size: 1.75rem;
  }

  .reader-scroll-content {
    padding: 1.5rem 1.1rem 1rem;
  }
}

/* ==============================================================================
 * 8. ADVENTURE PORTAL NAVIGATION CARDS (MULTI-PAGE HUB)
 * ==============================================================================
 */
.portal-section {
  width: 100%;
  max-width: 1000px;
  margin: 3rem auto 4rem;
  padding: 0 1rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.portal-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-md), 0 0 20px rgba(212, 175, 55, 0.08);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-gold-gradient);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.portal-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: var(--glass-bg-elevated);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(232, 122, 144, 0.25);
  border-color: rgba(212, 175, 55, 0.7);
}

.portal-card:hover::before {
  opacity: 1;
}

.portal-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #FAD0C4 0%, #FFD1FF 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #78283B;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 18px rgba(232, 122, 144, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portal-card:hover .portal-icon-wrapper {
  transform: scale(1.12) rotate(6deg);
}

.portal-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-rose-deep);
  margin-bottom: 0.35rem;
}

.portal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.portal-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.portal-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-rose-deep);
  transition: gap 0.2s ease, color 0.2s ease;
}

.portal-action i {
  transition: transform 0.2s ease;
}

.portal-card:hover .portal-action {
  color: #78283B;
  gap: 0.75rem;
}

.portal-card:hover .portal-action i {
  transform: translateX(4px);
}

/* ============================================================================
 * EDITORIAL SCRAPBOOK REFRESH
 * ========================================================================== */
.music-dock {
  position: fixed;
  z-index: 1200;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: calc(100vw - 2rem);
  padding: 0.42rem 0.5rem 0.42rem 0.55rem;
  color: var(--color-text-primary);
  background: rgba(255, 253, 251, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(72, 37, 46, 0.16);
  backdrop-filter: blur(14px);
}

.music-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(340px, calc(100vw - 2rem));
  padding: 1rem;
  background: #fffdfb;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 1.1rem;
  box-shadow: 0 18px 44px rgba(72, 37, 46, 0.2);
  animation: riseSoft 0.26s ease both;
}

.music-panel[hidden] { display: none; }
.music-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-serif); font-size: 1.25rem; color: var(--color-text-primary); }
.music-panel-heading button { border: 0; background: transparent; color: var(--color-text-secondary); min-width: 44px; min-height: 44px; cursor: pointer; }
.music-panel p, .music-panel small { display: block; margin: 0.45rem 0 0.8rem; color: var(--color-text-secondary); font-size: 0.82rem; line-height: 1.5; }
.music-panel small { margin: 0.75rem 0 0; color: var(--color-text-muted); }
.music-track-list { display: grid; gap: 0.45rem; }
.music-track-option { width: 100%; display: grid; grid-template-columns: 2.2rem 1fr; text-align: left; align-items: center; gap: 0.35rem; padding: 0.7rem; border: 1px solid transparent; border-radius: 0.7rem; background: var(--color-bg-tertiary); color: var(--color-text-primary); cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.music-track-option:hover, .music-track-option.is-active { background: #f9e8ed; border-color: rgba(205, 86, 119, 0.2); transform: translateX(2px); }
.music-track-option strong, .music-track-option small { display: block; margin: 0; font-size: 0.82rem; }
.music-track-option small { margin-top: 0.12rem; }
.music-track-number { font: 600 0.72rem var(--font-sans); color: var(--color-rose-deep); }
.music-panel-toggle, .music-dock .audio-btn-toggle { width: 42px; height: 42px; flex: 0 0 42px; border: 0; border-radius: 50%; color: #fff; background: var(--color-rose-deep); cursor: pointer; box-shadow: none; }
.music-dock .audio-btn-toggle { background: var(--color-gold-dark); }
.music-now-playing { min-width: 0; display: grid; line-height: 1.2; }
.music-now-playing strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; }
.music-now-playing span { margin-top: 0.18rem; color: var(--color-text-muted); font-size: 0.67rem; }

.hero-glass-card, .section-glass-container, .portal-card { background: rgba(255, 253, 251, 0.8); border-color: rgba(97, 45, 61, 0.1); box-shadow: 0 12px 36px rgba(70, 35, 44, 0.08); }
.hero-glass-card::before { height: 2px; opacity: 0.7; }
.hero-section { min-height: auto; padding-top: 3.5rem; }
.hero-cursive-name { font-size: clamp(2.1rem, 6vw, 3.4rem); color: var(--color-rose-deep); }
.portal-card { min-height: 230px; }
.portal-card:hover { transform: translateY(-4px); box-shadow: 0 16px 35px rgba(70, 35, 44, 0.13); }
.portal-icon-wrapper { border-radius: 50%; width: 52px; height: 52px; box-shadow: none; }

.timeline-shell { max-width: 930px; margin: 0 auto; }
.timeline-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(190px, 0.7fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: stretch; }
.timeline-detail { display: grid; grid-template-columns: minmax(180px, 0.86fr) minmax(0, 1fr); min-height: 300px; background: rgba(255, 253, 251, 0.84); border: 1px solid rgba(97, 45, 61, 0.11); border-radius: 1.1rem; overflow: hidden; box-shadow: 0 14px 32px rgba(70, 35, 44, 0.08); }
.timeline-detail.is-changing { animation: detailIn 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.timeline-photo-wrap { min-height: 100%; overflow: hidden; background: #eadde0; }
.timeline-photo-wrap img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; transition: transform 0.7s ease; }
.timeline-detail:hover img { transform: scale(1.035); }
.timeline-copy { align-self: center; padding: clamp(1.25rem, 4vw, 2.2rem); }
.timeline-eyebrow { color: var(--color-rose-deep); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.timeline-copy h2 { margin: 0.55rem 0 0.8rem; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.18; }
.timeline-copy p { color: var(--color-text-secondary); line-height: 1.7; }
.timeline-copy .timeline-note { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(97, 45, 61, 0.12); color: var(--color-rose-deep); font-family: var(--font-serif); font-style: italic; }
.timeline-steps { display: grid; align-content: center; gap: 0.45rem; }
.timeline-step { display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.5rem; align-items: center; width: 100%; padding: 0.82rem 0.7rem; border: 0; border-left: 2px solid transparent; background: transparent; color: var(--color-text-secondary); text-align: left; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.timeline-step:hover, .timeline-step.is-active { border-left-color: var(--color-rose-deep); background: rgba(249, 232, 237, 0.62); color: var(--color-text-primary); transform: translateX(3px); }
.timeline-step-count { color: var(--color-gold-dark); font-size: 0.7rem; font-weight: 700; }
.timeline-step-label { font-family: var(--font-serif); font-size: 1rem; }
.timeline-empty { text-align: center; color: var(--color-text-secondary); }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.65s ease, transform 0.65s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@keyframes riseSoft { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes detailIn { from { opacity: 0.45; transform: translateY(7px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  .timeline-layout, .timeline-detail { grid-template-columns: 1fr; }
  .timeline-photo-wrap img { min-height: 220px; max-height: 290px; }
  .timeline-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: initial; }
  .timeline-step { grid-template-columns: 1fr; min-height: 64px; border-left: 0; border-bottom: 2px solid transparent; }
  .timeline-step:hover, .timeline-step.is-active { border-left-color: transparent; border-bottom-color: var(--color-rose-deep); transform: none; }
  .music-now-playing { max-width: 104px; }
}

@media (max-width: 420px) { .music-now-playing { display: none; } .music-dock { gap: 0.35rem; } }

@media (prefers-reduced-motion: reduce) {
  .music-panel, .timeline-detail.is-changing, [data-reveal] { animation: none; transition: none; transform: none; opacity: 1; }
  .timeline-detail:hover img, .timeline-step:hover, .portal-card:hover { transform: none; }
}
