/*
 * ============================================================================
 * "A WEBSITE MADE OF LITTLE THINGS" — MASTER DESIGN SYSTEM
 * ============================================================================
 * Palette: Warm Cream / Ivory, Charcoal, Deep Muted Burgundy, Subtle Gold
 * Fonts: Playfair Display / Cormorant Garamond, Plus Jakarta Sans, Caveat
 */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-canvas: #FAF7F2;
  --bg-canvas-warm: #F4EFE6;
  --bg-paper: #FFFFFF;
  --bg-paper-alt: #FDFBF7;
  --bg-card: #FFFFFF;
  
  --text-primary: #181716;
  --text-secondary: #57534E;
  --text-muted: #8C8780;
  
  --accent-burgundy: #4E1724;
  --accent-burgundy-light: #702537;
  --accent-burgundy-soft: rgba(78, 23, 36, 0.08);
  
  --accent-gold: #C5A059;
  --accent-gold-light: #E7CF9B;
  --accent-gold-glow: rgba(197, 160, 89, 0.25);
  
  --border-subtle: rgba(24, 23, 22, 0.09);
  --border-card: rgba(24, 23, 22, 0.12);
  
  --tape-color: rgba(243, 233, 210, 0.85);
  --shadow-soft: 0 4px 20px rgba(24, 23, 22, 0.06);
  --shadow-elevated: 0 12px 35px rgba(24, 23, 22, 0.10);
  --shadow-card: 0 6px 24px rgba(78, 23, 36, 0.06);
  
  /* Dark Finale Colors */
  --bg-dark-finale: #121012;
  --bg-dark-card: #1A1719;
  --text-dark-primary: #F8F5F1;
  --text-dark-secondary: #B3ADA7;
  
  /* Typography */
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-serif-subtle: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Layout */
  --max-w-content: 1180px;
  --header-height: 72px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-card: 16px;
  --radius-sm: 8px;
}

/* -------------------------------------------------------------------------- */
/* RESET & BASE STYLES                                                        */
/* -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(197, 160, 89, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(78, 23, 36, 0.03) 0%, transparent 20%);
}

body.lock-scroll {
  overflow: hidden;
}

/* Grain Overlay for subtle organic film feel */
.film-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Ambient Canvas */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Typography Utilities */
.serif {
  font-family: var(--font-serif);
}

.handwritten {
  font-family: var(--font-hand);
}

.mono {
  font-family: var(--font-mono);
}

/* Container */
.container {
  width: 90%;
  max-width: var(--max-w-content);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Section Header Structure */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent-burgundy);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  padding: 4px 12px;
  background: var(--accent-burgundy-soft);
  border-radius: 20px;
  border: 1px solid rgba(78, 23, 36, 0.15);
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 400;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  background: var(--accent-burgundy);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(78, 23, 36, 0.25);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-burgundy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(78, 23, 36, 0.35);
  border-color: var(--accent-gold);
}

.btn-subtle {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: transparent;
  color: var(--accent-burgundy);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-subtle:hover {
  background: var(--accent-burgundy-soft);
  border-color: var(--accent-burgundy);
  transform: translateY(-1px);
}

/* -------------------------------------------------------------------------- */
/* OPENING SCREEN (Cinematic landing)                                         */
/* -------------------------------------------------------------------------- */
#opening-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #1E191D 0%, #100E10 100%);
  color: #FAF7F2;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

#opening-screen.fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.opening-content {
  text-align: center;
  max-width: 640px;
  padding: 2.5rem;
  z-index: 2;
  animation: fadeInLanding 1.4s ease forwards;
}

.opening-tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.opening-title {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
  color: #FFFDF9;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.opening-subtitle {
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  font-weight: 300;
  color: #D3CDC6;
  margin-bottom: 2.8rem;
  line-height: 1.5;
}

.opening-btn-wrapper {
  margin-top: 1rem;
}

.enter-button {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  color: #FAF7F2;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 16px 42px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(197, 160, 89, 0.15);
}

.enter-button:hover {
  background: var(--accent-burgundy);
  border-color: var(--accent-gold);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.35);
}

@keyframes fadeInLanding {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------------------- */
/* MAIN NAVIGATION                                                            */
/* -------------------------------------------------------------------------- */
#main-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1040px;
  height: 60px;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(24, 23, 22, 0.08);
  border-radius: 36px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  box-shadow: 0 10px 30px rgba(24, 23, 22, 0.05);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

#main-nav.nav-hidden {
  transform: translate(-50%, -100px);
  opacity: 0;
  pointer-events: none;
}

#main-nav.nav-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.nav-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-burgundy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: inline-block;
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--accent-burgundy);
  background: rgba(78, 23, 36, 0.04);
}

.nav-link.active {
  color: var(--accent-burgundy);
  background: var(--accent-burgundy-soft);
  font-weight: 600;
}

/* Nav Mini Player */
.nav-mini-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  background: rgba(24, 23, 22, 0.04);
  border-radius: 20px;
  border: 1px solid rgba(24, 23, 22, 0.06);
}

.mini-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-burgundy);
  color: #FFF;
  border: none;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mini-play-btn:hover {
  transform: scale(1.08);
}

.mini-song-meta {
  max-width: 140px;
  display: flex;
  flex-direction: column;
}

.mini-song-title {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.mini-progress-bar {
  width: 100%;
  height: 2px;
  background: rgba(24, 23, 22, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}

.mini-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-gold);
  transition: width 0.2s linear;
}

.sound-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.sound-wave span {
  width: 2px;
  height: 4px;
  background: var(--accent-burgundy);
  border-radius: 1px;
}

.sound-wave.animating span {
  animation: soundWave 0.8s ease-in-out infinite alternate;
}
.sound-wave.animating span:nth-child(2) { animation-delay: 0.2s; }
.sound-wave.animating span:nth-child(3) { animation-delay: 0.4s; }
.sound-wave.animating span:nth-child(4) { animation-delay: 0.15s; }

@keyframes soundWave {
  0% { height: 3px; }
  100% { height: 14px; }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px;
}

/* -------------------------------------------------------------------------- */
/* SECTION BASE STYLES                                                        */
/* -------------------------------------------------------------------------- */
.section {
  padding: 7rem 0;
  position: relative;
}

/* -------------------------------------------------------------------------- */
/* 01 — LITTLE THINGS (Scattered Memory Desk)                                 */
/* -------------------------------------------------------------------------- */
#little-things {
  padding-top: 9rem;
}

.little-things-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.2rem;
  padding: 1rem 0;
}

.scrapbook-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.6rem;
  position: relative;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transform: rotate(var(--natural-rot, 0deg));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  user-select: none;
  background-image: linear-gradient(180deg, #FFFFFF 0%, #FCFAF7 100%);
}

.scrapbook-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  box-shadow: 0 16px 36px rgba(78, 23, 36, 0.12);
  border-color: rgba(197, 160, 89, 0.4);
  z-index: 10;
}

/* Paper Tape Accent */
.card-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 20px;
  background: var(--tape-color);
  opacity: 0.85;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  backdrop-filter: blur(2px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-burgundy);
  background: var(--accent-burgundy-soft);
  padding: 3px 10px;
  border-radius: 12px;
}

.card-icon {
  font-size: 1.25rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card-preview {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px dashed rgba(24, 23, 22, 0.1);
  padding-top: 0.8rem;
}

.inspect-cue {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 4px;
}

.inspect-cue .arrow {
  transition: transform 0.2s ease;
}

.scrapbook-card:hover .inspect-cue .arrow {
  transform: translate(2px, -2px);
}

/* -------------------------------------------------------------------------- */
/* 02 — THE LORE (Humorous Dossier & Case Files)                               */
/* -------------------------------------------------------------------------- */
#lore {
  background: var(--bg-canvas-warm);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.lore-disclaimer {
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--accent-burgundy);
  margin-top: -2rem;
  margin-bottom: 3rem;
}

.lore-categories-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.lore-category-block {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.lore-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(24, 23, 22, 0.08);
  padding-bottom: 1.2rem;
  margin-bottom: 1.8rem;
}

.cat-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-icon {
  font-size: 1.6rem;
}

.cat-title {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cat-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-burgundy);
  background: var(--accent-burgundy-soft);
  padding: 4px 12px;
  border-radius: 12px;
}

.lore-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.lore-case-file {
  background: #FCFAF7;
  border: 1px dashed rgba(24, 23, 22, 0.16);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lore-case-file:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: var(--accent-burgundy);
}

.case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.case-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.case-stamp {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #B91C1C;
  border: 1px solid #B91C1C;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(-3deg);
}

.case-headline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.case-details {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  white-space: pre-line;
}

.case-footer {
  border-top: 1px solid rgba(24, 23, 22, 0.06);
  padding-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.case-status {
  font-size: 0.76rem;
  font-style: italic;
  color: var(--text-muted);
}

.case-reactions {
  display: flex;
  gap: 6px;
}

.reaction-btn {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-card);
  background: #FFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-agree:hover {
  background: var(--accent-burgundy);
  color: #FFF;
  border-color: var(--accent-burgundy);
}

.btn-object:hover {
  background: #E5E7EB;
  color: #111;
}

.reaction-btn.popped {
  background: var(--accent-gold);
  color: #181716;
  font-weight: 600;
  border-color: var(--accent-gold);
  transform: scale(1.08);
}

/* -------------------------------------------------------------------------- */
/* 03 — YOUR SOUNDTRACK (Acoustic Vinyl Player)                               */
/* -------------------------------------------------------------------------- */
#soundtrack {
  background: #FAF7F2;
}

.guitarist-intro {
  max-width: 640px;
  margin: -1.5rem auto 3.5rem auto;
  text-align: center;
  padding: 1.2rem 2rem;
  background: rgba(197, 160, 89, 0.12);
  border-left: 3px solid var(--accent-gold);
  border-radius: 8px;
}

.guitarist-note {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: var(--accent-burgundy);
  line-height: 1.4;
}

.music-player-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 2.8rem;
  box-shadow: 0 16px 45px rgba(78, 23, 36, 0.08);
  position: relative;
}

/* Vinyl & Visualizer Column */
.player-vinyl-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vinyl-stage {
  position: relative;
  width: 260px;
  height: 260px;
  margin-bottom: 2rem;
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #252422 20%, #151413 50%, #2B2926 70%, #121110 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 4px solid #1C1A18;
}

/* Vinyl Grooves */
.vinyl-disc::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 
    inset 0 0 0 12px rgba(255, 255, 255, 0.02),
    inset 0 0 0 24px rgba(255, 255, 255, 0.03),
    inset 0 0 0 36px rgba(255, 255, 255, 0.02);
}

.vinyl-disc.spinning {
  animation: spinVinyl 5s linear infinite;
}

.vinyl-disc.gold-special {
  background: radial-gradient(circle, #856123 20%, #C5A059 50%, #6E4F18 70%, #2B210F 100%);
  border-color: #D4AF37;
  box-shadow: 0 10px 35px rgba(212, 175, 55, 0.4);
}

@keyframes spinVinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.vinyl-center-label {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: var(--accent-burgundy);
  border: 3px solid #FAF7F2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.label-ring {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.label-title {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 600;
  color: #FFF;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.center-hole {
  width: 10px;
  height: 10px;
  background: #FAF7F2;
  border-radius: 50%;
  margin-top: 4px;
}

/* Audio Visualizer Canvas */
.visualizer-wrapper {
  width: 100%;
  max-width: 320px;
  height: 48px;
  margin-top: 0.5rem;
}

#audio-visualizer-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Interactive Controls & Tracklist Column */
.player-controls-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.current-track-banner {
  margin-bottom: 1.5rem;
}

.now-playing-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-burgundy);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: block;
}

.current-track-title {
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.current-track-artist {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Progress Bar */
.player-progress-area {
  margin-bottom: 1.5rem;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(24, 23, 22, 0.08);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-burgundy), var(--accent-gold));
  border-radius: 3px;
  transition: width 0.1s linear;
}

.progress-timestamps {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Main Controls */
.player-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.playback-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ctrl-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctrl-btn:hover {
  color: var(--accent-burgundy);
  transform: scale(1.1);
}

.play-pause-btn {
  width: 52px;
  height: 52px;
  background: var(--accent-burgundy);
  color: #FFF;
  border: 1px solid var(--accent-gold);
  box-shadow: 0 4px 15px rgba(78, 23, 36, 0.3);
  font-size: 1.1rem;
}

.play-pause-btn:hover {
  background: var(--accent-burgundy-light);
  color: #FFF;
  transform: scale(1.06);
}

.volume-control-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vol-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.volume-slider {
  -webkit-appearance: none;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: rgba(24, 23, 22, 0.15);
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-burgundy);
  cursor: pointer;
}

/* Tracklist */
.tracklist-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 6px;
}

.tracklist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  background: #FCFAF7;
  border: 1px solid rgba(24, 23, 22, 0.05);
  transition: all 0.2s ease;
}

.tracklist-row:hover {
  background: rgba(78, 23, 36, 0.04);
  border-color: rgba(78, 23, 36, 0.15);
}

.tracklist-row.active {
  background: var(--accent-burgundy-soft);
  border-color: var(--accent-burgundy);
}

.tracklist-row.special-track {
  background: rgba(197, 160, 89, 0.1);
  border: 1px dashed var(--accent-gold);
}

.track-number-col {
  display: flex;
  align-items: center;
  width: 32px;
}

.track-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.track-play-icon {
  display: none;
  font-size: 0.75rem;
  color: var(--accent-burgundy);
}

.tracklist-row.active .track-num { display: none; }
.tracklist-row.active .track-play-icon { display: block; }

.track-info-col {
  flex: 1;
  padding: 0 10px;
}

.track-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.badge-special {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--accent-gold);
  color: #121012;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.track-artist {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.track-duration-col {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Handwritten Story Card for current track */
.player-story-card {
  margin-top: 2rem;
  background: #FFFDF9;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 12px;
  padding: 1.4rem;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.story-tape {
  position: absolute;
  top: -8px;
  right: 20px;
  width: 45px;
  height: 16px;
  background: var(--tape-color);
  opacity: 0.8;
}

.story-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.story-track-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-burgundy);
  margin-bottom: 0.5rem;
}

.story-text {
  font-size: 1.35rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  white-space: pre-line;
}

.story-author {
  display: block;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/* 04 — OPEN WHEN... (Interactive 3D Envelopes)                               */
/* -------------------------------------------------------------------------- */
#open-when {
  background: var(--bg-canvas-warm);
}

.envelopes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2.2rem;
  padding: 1rem 0;
}

.envelope-container {
  cursor: pointer;
  perspective: 1000px;
  user-select: none;
}

.physical-envelope {
  position: relative;
  width: 100%;
  height: 180px;
  background: #FDFBF7;
  border: 1px solid rgba(24, 23, 22, 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(78, 23, 36, 0.06);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(78, 23, 36, 0.015) 10px, rgba(78, 23, 36, 0.015) 20px);
}

.physical-envelope::before {
  /* Airmail border edge */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent-burgundy) 0px,
    var(--accent-burgundy) 15px,
    transparent 15px,
    transparent 20px,
    var(--accent-gold) 20px,
    var(--accent-gold) 35px,
    transparent 35px,
    transparent 40px
  );
}

.envelope-container:hover .physical-envelope {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(78, 23, 36, 0.12);
  border-color: rgba(197, 160, 89, 0.5);
}

.envelope-label {
  z-index: 2;
  position: relative;
}

.envelope-stamp {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--accent-burgundy);
  border: 1px solid rgba(78, 23, 36, 0.2);
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.envelope-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.envelope-prompt {
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 500;
  display: inline-block;
}

/* Wax Seal on Envelope */
.envelope-wax-seal {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #7D1D2C, #4E1724);
  box-shadow: 0 4px 10px rgba(78, 23, 36, 0.35), inset 0 2px 3px rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: transform 0.3s ease;
}

.wax-symbol {
  font-size: 1.1rem;
}

.envelope-container:hover .envelope-wax-seal {
  transform: scale(1.1) rotate(6deg);
}

/* -------------------------------------------------------------------------- */
/* 05 — OUR TIMELINE (Milestones & Photos)                                     */
/* -------------------------------------------------------------------------- */
#timeline {
  background: var(--bg-canvas);
}

.timeline-wrapper {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Connecting center line */
.timeline-track-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, rgba(197, 160, 89, 0.2), var(--accent-burgundy), rgba(197, 160, 89, 0.2));
  transform: translateX(-50%);
}

.timeline-milestone {
  display: flex;
  align-items: flex-start;
  margin-bottom: 4rem;
  position: relative;
  width: 100%;
}

.milestone-left {
  justify-content: flex-start;
}

.milestone-right {
  justify-content: flex-end;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-canvas);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 0 12px var(--accent-gold-glow);
}

.dot-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-burgundy);
}

.timeline-card-content {
  width: 43%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.milestone-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.milestone-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-burgundy);
}

.milestone-tag {
  font-size: 0.72rem;
  background: var(--accent-burgundy-soft);
  color: var(--accent-burgundy);
  padding: 2px 8px;
  border-radius: 10px;
}

.milestone-title {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.milestone-story {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.milestone-song {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-family: var(--font-mono);
  margin-bottom: 0.8rem;
}

.timeline-photo-card {
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
  border: 4px solid #FFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  position: relative;
}

.timeline-photo-card img,
.timeline-photo-card video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.timeline-photo-card:hover img,
.timeline-photo-card:hover video {
  transform: scale(1.05);
}

.photo-expand-cue {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #FFF;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* -------------------------------------------------------------------------- */
/* GUITAR VIDEO — A LITTLE SOMETHING FROM ME                                  */
/* -------------------------------------------------------------------------- */
#guitar-video {
  background: var(--bg-canvas);
  position: relative;
  overflow: hidden;
}

.guitar-video-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

/* -------------------------------------------------------------------------- */
/* SURPRISE STAGE & PINK BUBBLY BUTTON                                         */
/* -------------------------------------------------------------------------- */
.surprise-box {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #fff0f5 55%, #ffe6f0 100%);
  border: 2px solid rgba(255, 182, 193, 0.6);
  border-radius: 28px;
  padding: 3.5rem 2rem 4rem;
  text-align: center;
  box-shadow:
    0 16px 45px rgba(255, 105, 180, 0.16),
    0 4px 15px rgba(0, 0, 0, 0.04),
    inset 0 2px 4px rgba(255, 255, 255, 0.9);
  max-width: 660px;
  margin: 0 auto;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.surprise-box:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 55px rgba(255, 105, 180, 0.24),
    0 8px 24px rgba(0, 0, 0, 0.06),
    inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.surprise-box-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 105, 180, 0.25) 0%, rgba(255, 192, 203, 0.12) 45%, transparent 70%);
  pointer-events: none;
  animation: glowBreathe 4s ease-in-out infinite;
}

@keyframes glowBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.65; }
  50% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
}

.surprise-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.2rem;
}

.surprise-icon-float {
  font-size: 3.4rem;
  display: inline-block;
  animation: floatHeart 3s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(255, 105, 180, 0.35));
}

@keyframes floatHeart {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

.surprise-sparkle-orbit {
  position: absolute;
  font-size: 1.35rem;
  pointer-events: none;
  animation: orbitSparkle 3s ease-in-out infinite alternate;
}

.surprise-sparkle-orbit.o1 { top: -8px; left: -22px; animation-delay: 0.2s; }
.surprise-sparkle-orbit.o2 { top: 4px; right: -24px; animation-delay: 0.8s; }
.surprise-sparkle-orbit.o3 { bottom: -6px; left: 22px; animation-delay: 1.4s; }

@keyframes orbitSparkle {
  0% { transform: scale(0.8) translateY(0); opacity: 0.5; }
  100% { transform: scale(1.25) translateY(-7px); opacity: 1; }
}

.surprise-card-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: #381f2a;
  margin-bottom: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.surprise-card-desc {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: #7d596b;
  max-width: 460px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Pink and Bubbly Button Container with Floating Particles */
.surprise-btn-container {
  position: relative;
  display: inline-block;
  padding: 12px;
}

.bubble-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 182, 193, 0.65) 60%, rgba(255, 105, 180, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.85), 0 3px 8px rgba(255, 105, 180, 0.3);
  pointer-events: none;
  animation: floatBubbleAround 4s ease-in-out infinite;
}

.b-p1 { width: 18px; height: 18px; top: -14px; left: 14%; animation-duration: 3.5s; }
.b-p2 { width: 14px; height: 14px; top: -18px; right: 18%; animation-duration: 4.2s; animation-delay: 0.5s; }
.b-p3 { width: 22px; height: 22px; bottom: -12px; left: 8%; animation-duration: 3.8s; animation-delay: 1s; }
.b-p4 { width: 16px; height: 16px; bottom: -16px; right: 12%; animation-duration: 4.5s; animation-delay: 1.5s; }
.b-p5 { width: 12px; height: 12px; top: 35%; left: -14px; animation-duration: 3s; animation-delay: 0.8s; }
.b-p6 { width: 13px; height: 13px; top: 40%; right: -16px; animation-duration: 3.6s; animation-delay: 1.2s; }

@keyframes floatBubbleAround {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.75; }
  50% { transform: translateY(-12px) scale(1.15); opacity: 1; }
}

/* THE PINK AND BUBBLY SURPRISE BUTTON */
.bubbly-surprise-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.25rem 3.6rem;
  font-family: inherit;
  font-size: clamp(1.3rem, 3.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 2px 5px rgba(160, 20, 70, 0.5);
  background: linear-gradient(135deg, #ff4f97 0%, #ff2b75 42%, #ff529b 78%, #ff7bb7 100%);
  border: 3.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  box-shadow:
    0 14px 34px rgba(255, 43, 117, 0.52),
    0 4px 12px rgba(255, 77, 148, 0.38),
    inset 0 5px 9px rgba(255, 255, 255, 0.8),
    inset 0 -6px 14px rgba(160, 10, 60, 0.42);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: bubblyPulse 3s ease-in-out infinite;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}

/* Glossy 3D shine curve across top of button */
.bubbly-surprise-btn .btn-bubble-shine {
  position: absolute;
  top: 4px;
  left: 10%;
  right: 10%;
  height: 44%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 75%, transparent 100%);
  border-radius: 999px 999px 40px 40px;
  pointer-events: none;
}

.bubbly-surprise-btn .btn-text {
  position: relative;
  z-index: 2;
  letter-spacing: 4px;
}

.bubbly-surprise-btn .btn-sparkle-left,
.bubbly-surprise-btn .btn-sparkle-right {
  font-size: 1.4rem;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}

.bubbly-surprise-btn:hover {
  transform: translateY(-5px) scale(1.06);
  background: linear-gradient(135deg, #ff5e9f 0%, #ff337d 42%, #ff68a7 78%, #ff89be 100%);
  box-shadow:
    0 18px 45px rgba(255, 43, 117, 0.65),
    0 6px 16px rgba(255, 77, 148, 0.45),
    inset 0 5px 11px rgba(255, 255, 255, 0.95),
    inset 0 -6px 15px rgba(160, 10, 60, 0.45);
}

.bubbly-surprise-btn:hover .btn-sparkle-left {
  transform: scale(1.3) rotate(-18deg);
}

.bubbly-surprise-btn:hover .btn-sparkle-right {
  transform: scale(1.3) rotate(18deg);
}

.bubbly-surprise-btn:active {
  transform: translateY(2px) scale(0.94);
  box-shadow:
    0 6px 16px rgba(255, 43, 117, 0.4),
    inset 0 4px 7px rgba(0, 0, 0, 0.2),
    inset 0 -2px 6px rgba(255, 255, 255, 0.5);
}

@keyframes bubblyPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 77, 148, 0.35));
  }
  50% {
    transform: translateY(-4px) scale(1.025);
    filter: drop-shadow(0 0 24px rgba(255, 43, 117, 0.7));
  }
}

/* Secondary mini bubbly button for re-opening */
.bubbly-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #ff5c99 0%, #ff2b75 100%);
  color: #FFF;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 43, 117, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.6);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bubbly-mini-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(255, 43, 117, 0.55);
}

.guitar-video-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

/* Inline guitar video card (revealed after viewing) */
.guitar-video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  margin-top: 1.5rem;
}

.guitar-video-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.guitar-video-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #121012;
  display: block;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  outline: none;
}

/* -------------------------------------------------------------------------- */
/* BALLOONS OVERLAY (Page Cover Celebration Wave)                             */
/* -------------------------------------------------------------------------- */
.balloons-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100010;
  overflow: hidden;
  display: none;
}

.balloons-overlay.active {
  display: block;
}

/* Individual Balloon */
.festive-balloon {
  position: absolute;
  bottom: var(--balloon-start-y, -260px);
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
  pointer-events: none;
  opacity: 0;
  animation: balloonFloatUp var(--balloon-duration, 3.2s) cubic-bezier(0.2, 0.55, 0.3, 1) both var(--balloon-delay, 0s);
}

.balloon-body {
  position: relative;
  width: var(--balloon-width, 75px);
  height: calc(var(--balloon-width, 75px) * 1.28);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: var(--balloon-bg, radial-gradient(circle at 35% 30%, #ff8da1 0%, #ff2a73 70%, #c2185b 100%));
  box-shadow:
    inset -8px -10px 18px rgba(0, 0, 0, 0.26),
    inset 5px 6px 14px rgba(255, 255, 255, 0.65),
    0 14px 32px rgba(0, 0, 0, 0.22);
  animation: balloonSway var(--balloon-sway-duration, 2.4s) ease-in-out infinite alternate;
}

/* Gloss specular reflection on balloon */
.balloon-body::before {
  content: "";
  position: absolute;
  top: 13%;
  left: 20%;
  width: 24%;
  height: 38%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  transform: rotate(-35deg);
  filter: blur(0.8px);
}

.balloon-body::after {
  content: "";
  position: absolute;
  top: 17%;
  left: 25%;
  width: 9%;
  height: 12%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}

/* Balloon Knot */
.balloon-knot {
  width: calc(var(--balloon-width, 75px) * 0.16);
  height: calc(var(--balloon-width, 75px) * 0.11);
  background: var(--balloon-knot-color, #ff2a73);
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  margin-top: -1px;
  z-index: 1;
}

/* Dangling Balloon Ribbon / String */
.balloon-string {
  width: 2px;
  height: calc(var(--balloon-width, 75px) * 1.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 70%, transparent 100%);
  opacity: 0.9;
  transform-origin: top center;
  animation: stringWave var(--balloon-sway-duration, 2.4s) ease-in-out infinite alternate;
}

@keyframes balloonFloatUp {
  0% {
    transform: translateY(0) scale(var(--balloon-scale, 1));
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(calc(-100vh - 420px)) scale(var(--balloon-scale, 1));
    opacity: 0;
  }
}

@keyframes balloonSway {
  0% {
    transform: translateX(calc(var(--balloon-sway-dist, 25px) * -1)) rotate(-5deg);
  }
  100% {
    transform: translateX(var(--balloon-sway-dist, 25px)) rotate(5deg);
  }
}

@keyframes stringWave {
  0% {
    transform: rotate(-7deg) skewX(-5deg);
  }
  100% {
    transform: rotate(7deg) skewX(5deg);
  }
}

/* -------------------------------------------------------------------------- */
/* FULLSCREEN VIDEO MODAL (Theater Mode Experience)                           */
/* -------------------------------------------------------------------------- */
.fullscreen-video-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  background: rgba(8, 6, 11, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 2.2rem;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.fullscreen-video-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.fullscreen-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding-bottom: 0.8rem;
  z-index: 3;
}

.fullscreen-video-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 64, 129, 0.16);
  border: 1px solid rgba(255, 105, 180, 0.4);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  color: #ff98be;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.fullscreen-video-badge .pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff4081;
  box-shadow: 0 0 12px #ff4081;
  animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.65); }
}

.fullscreen-header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.fullscreen-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #E6E1DC;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.fullscreen-action-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.fullscreen-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(255, 64, 129, 0.35), rgba(216, 27, 96, 0.45));
  border: 1.5px solid rgba(255, 105, 180, 0.6);
  color: #FFF;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 64, 129, 0.3);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fullscreen-close-btn .close-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.fullscreen-close-btn:hover {
  background: linear-gradient(135deg, #ff4081, #d81b60);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 64, 129, 0.55);
}

/* Modal Theater Stage */
.fullscreen-video-theater {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  position: relative;
  min-height: 0;
}

.fullscreen-video-frame {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 165px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fullscreen-video-media {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000;
  outline: none;
  box-shadow:
    0 0 65px rgba(255, 64, 129, 0.22),
    0 25px 70px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.3s ease;
}

.fullscreen-video-caption {
  color: #D6CEC5;
  font-size: clamp(0.92rem, 2vw, 1.08rem);
  text-align: center;
  margin-top: 1rem;
  letter-spacing: 0.02em;
  font-style: italic;
  max-width: 620px;
  opacity: 0.92;
}

/* Lock scroll utility */
body.lock-scroll {
  overflow: hidden !important;
}

@media (max-width: 768px) {
  .guitar-video-card {
    padding: 0.75rem;
    border-radius: 14px;
  }
  
  .guitar-video-media {
    border-radius: 10px;
  }

  .fullscreen-video-modal {
    padding: 1rem 0.8rem;
  }
  
  .fullscreen-video-header {
    margin-bottom: 0.4rem;
  }
  
  .fs-btn-label {
    display: none;
  }
  
  .bubbly-surprise-btn {
    padding: 1.05rem 2.4rem;
    font-size: 1.2rem;
    letter-spacing: 3px;
  }
  
  .surprise-box {
    padding: 2.4rem 1.2rem 3rem;
  }
}

/* -------------------------------------------------------------------------- */
/* 06 — ONE LAST THING (Emotional Finale)                                     */
/* -------------------------------------------------------------------------- */
#finale {
  background: var(--bg-dark-finale);
  color: var(--text-dark-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

#finale::before {
  /* Subtle golden ambient glow */
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.finale-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 2;
}

.finale-lines {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-bottom: 3.5rem;
}

.finale-line {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.45;
  color: #DDD6CE;
  letter-spacing: -0.01em;
}

.finale-line:nth-child(1) {
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  color: #FFF;
}

.finale-birthday-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.birthday-wish-text {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  color: #FFFDF9;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(197, 160, 89, 0.35);
}

.signature-text {
  font-family: var(--font-hand);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--accent-gold);
}

.secret-trigger-wrapper {
  margin-top: 2rem;
}

.secret-trigger-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.secret-trigger-btn:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.08);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/* SECRET FINAL INTERACTION OVERLAY                                           */
/* -------------------------------------------------------------------------- */
#secret-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #060506;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

#secret-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.secret-content {
  text-align: center;
  max-width: 600px;
  padding: 2rem;
}

.secret-line {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  color: #FFFDF9;
  margin-bottom: 1.5rem;
}

.secret-line.visible {
  opacity: 1;
  transform: translateY(0);
}

#secret-line-1 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: #A8A29E;
  font-weight: 300;
}

#secret-line-2 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--accent-gold);
  font-weight: 700;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.45);
}

#secret-line-3 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #FFF;
}

.secret-replay-btn {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1s ease, transform 1s ease;
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.secret-replay-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.secret-replay-btn:hover {
  background: var(--accent-burgundy);
  border-color: var(--accent-gold);
}

/* -------------------------------------------------------------------------- */
/* MODALS (Memory Card Detail & Open When Letter)                             */
/* -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 16, 18, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-inner-paper, .letter-paper-sheet {
  background: #FFFDF9;
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.8rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(197, 160, 89, 0.3);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background-image: radial-gradient(circle at 10% 10%, rgba(197, 160, 89, 0.04) 0%, transparent 30%);
}

.modal-backdrop.open .modal-inner-paper,
.modal-backdrop.open .letter-paper-sheet {
  transform: translateY(0) scale(1);
}

/* Polaroid inside Modal */
.modal-polaroid {
  margin: 1.2rem 0;
  background: #FFF;
  padding: 12px 12px 28px 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  border-radius: 4px;
}

.modal-polaroid img {
  width: auto;
  max-width: 100%;
  max-height: min(50vh, 420px);
  object-fit: contain;
  margin: 0 auto;
  border-radius: 2px;
  display: block;
}

.polaroid-caption {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 10px;
}

.highlight-phrase {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
  color: var(--accent-burgundy);
  letter-spacing: 0.02em;
  padding: 0.85rem 1.1rem;
  margin: 1.1rem 0;
  border-left: 3px solid var(--accent-gold);
  background: rgba(78, 23, 36, 0.04);
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}

.modal-polaroid-large {
  background: #FFF;
  padding: 16px 16px 36px 16px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  max-width: 600px;
  width: 100%;
}

.modal-polaroid-large img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 4px;
}

.polaroid-large-caption {
  font-size: 1.6rem;
  margin: 12px 0 16px 0;
  color: var(--text-primary);
}

.modal-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 0.8rem;
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--accent-burgundy-soft);
  color: var(--accent-burgundy);
}

.modal-badge.gold {
  background: rgba(197, 160, 89, 0.15);
  color: var(--accent-gold);
}

.modal-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.modal-message-box {
  font-size: 1.6rem;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 1.5rem;
}

.modal-ps-box {
  background: rgba(24, 23, 22, 0.03);
  border-left: 3px solid var(--accent-gold);
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 1.8rem;
}

.ps-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.ps-text {
  font-size: 1.35rem;
  color: var(--accent-burgundy);
  line-height: 1.3;
}

.modal-action-row {
  display: flex;
  justify-content: flex-end;
}

/* Handwritten Letter Sheet */
.letter-paper-sheet {
  max-width: 620px;
  border-left: 6px solid var(--accent-burgundy);
}

.letter-stamp-mark {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-burgundy);
  border: 1px solid var(--accent-burgundy);
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 1.2rem;
  letter-spacing: 0.1em;
}

.letter-wax-stamp {
  position: absolute;
  top: 2.2rem;
  right: 2.2rem;
  font-size: 1.8rem;
}

.letter-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.letter-body {
  font-size: 1.55rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.letter-body p {
  margin-bottom: 1.2rem;
}

.letter-closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(24, 23, 22, 0.08);
  padding-top: 1.2rem;
}

.letter-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE DESIGN (Mobile First Optimizations)                             */
/* -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .music-player-layout {
    grid-template-columns: 1fr;
    padding: 1.8rem;
    gap: 2rem;
  }

  .timeline-track-line {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-milestone {
    justify-content: flex-start !important;
    padding-left: 45px;
  }

  .timeline-card-content {
    width: 100%;
  }

  .modal-inner-paper, .letter-paper-sheet {
    padding: 1.8rem;
  }
}

@media (max-width: 768px) {
  #main-nav {
    padding: 0 1rem;
    height: 54px;
    width: 95%;
  }

  .nav-links-wrapper {
    position: fixed;
    top: 68px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 95%;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 1.2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  }

  .nav-links-wrapper.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-mini-player {
    display: none;
  }

  .section {
    padding: 5rem 0;
  }

  .little-things-grid {
    grid-template-columns: 1fr;
  }

  .envelopes-grid {
    grid-template-columns: 1fr;
  }

  .vinyl-stage {
    width: 210px;
    height: 210px;
  }

  .lore-items-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .opening-title {
    font-size: 2.4rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-message-box {
    font-size: 1.35rem;
  }

  .letter-body {
    font-size: 1.3rem;
  }

  .player-story-card .story-text {
    font-size: 1.2rem;
  }

  .finale-inner {
    padding: 3rem 1rem;
  }

  .finale-line {
    font-size: 1.3rem;
  }

  .birthday-wish-text {
    font-size: 2rem;
  }

  .timeline-photo-card img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 94%;
  }

  .section {
    padding: 4rem 0;
  }

  #little-things {
    padding-top: 7rem;
  }

  .scrapbook-card {
    padding: 1.4rem 1.2rem;
    transform: rotate(0deg) !important;
  }

  .card-tape {
    width: 55px;
    height: 16px;
  }

  .physical-envelope {
    height: 160px;
    padding: 1.2rem;
  }

  .finale-birthday-card {
    padding: 1.8rem 1.2rem;
  }

  .lore-category-block {
    padding: 1.4rem;
  }

  .lore-case-file {
    padding: 1.1rem;
  }

  .music-player-layout {
    padding: 1.2rem;
    border-radius: 16px;
  }

  .vinyl-stage {
    width: 180px;
    height: 180px;
  }

  .current-track-title {
    font-size: 1.5rem;
  }
}

/* -------------------------------------------------------------------------- */
/* SCROLL REVEAL ANIMATION SYSTEM                                             */
/* -------------------------------------------------------------------------- */
.scroll-reveal,
.lore-category-block,
.timeline-milestone {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed,
.lore-category-block.revealed,
.timeline-milestone.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger effect for timeline milestones */
.timeline-milestone:nth-child(1) { transition-delay: 0s; }
.timeline-milestone:nth-child(2) { transition-delay: 0.1s; }
.timeline-milestone:nth-child(3) { transition-delay: 0.15s; }
.timeline-milestone:nth-child(4) { transition-delay: 0.2s; }
.timeline-milestone:nth-child(5) { transition-delay: 0.25s; }
.timeline-milestone:nth-child(6) { transition-delay: 0.3s; }

/* -------------------------------------------------------------------------- */
/* FINALE LINE-BY-LINE CINEMATIC FADE-IN                                      */
/* -------------------------------------------------------------------------- */
.finale-line {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: var(--line-delay, 0s);
}

#finale.finale-visible .finale-line {
  opacity: 1;
  transform: translateY(0);
}

#finale .finale-birthday-card {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 1s ease 3.5s, transform 1s ease 3.5s;
}

#finale.finale-visible .finale-birthday-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#finale .secret-trigger-wrapper {
  opacity: 0;
  transition: opacity 0.8s ease 4.5s;
}

#finale.finale-visible .secret-trigger-wrapper {
  opacity: 1;
}

/* -------------------------------------------------------------------------- */
/* CARD PIN DECORATION                                                        */
/* -------------------------------------------------------------------------- */
.card-pin {
  position: absolute;
  top: -6px;
  right: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #E8B04D, #A97830);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* -------------------------------------------------------------------------- */
/* CUSTOM SCROLLBAR (Warm Aesthetic)                                          */
/* -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}

::-webkit-scrollbar-thumb {
  background: rgba(78, 23, 36, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 23, 36, 0.35);
}

/* Tracklist scrollbar */
.tracklist-container::-webkit-scrollbar {
  width: 4px;
}

.tracklist-container::-webkit-scrollbar-thumb {
  background: rgba(78, 23, 36, 0.15);
  border-radius: 2px;
}

/* -------------------------------------------------------------------------- */
/* ENVELOPE OPENING ANIMATION                                                 */
/* -------------------------------------------------------------------------- */
.envelope-container.envelope-opening .envelope-wax-seal {
  transform: scale(0.6) rotate(20deg);
  opacity: 0.5;
  transition: all 0.4s ease;
}

.envelope-container.envelope-opening .physical-envelope {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 45px rgba(78, 23, 36, 0.2);
}

/* -------------------------------------------------------------------------- */
/* HIDDEN ELEMENTS (Unused CSS classes still referenced by JS)                */
/* -------------------------------------------------------------------------- */
.envelope-back,
.envelope-letter-peeking,
.envelope-pocket,
.envelope-flap,
.peeking-lines {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* PRINT STYLING (If she ever wants to print a letter)                        */
/* -------------------------------------------------------------------------- */
@media print {
  #main-nav,
  #ambient-canvas,
  .film-grain,
  #opening-screen,
  #secret-overlay,
  .modal-backdrop {
    display: none !important;
  }

  body {
    background: #FFF;
    color: #111;
  }

  .section {
    page-break-inside: avoid;
    padding: 2rem 0;
  }
}
