/* =========================================================
   SAAD IQBAL — BIRTHDAY EXPERIENCE
   Luxury cinematic stylesheet
   Palette: Void navy / Electric blue / Gold / Silver
   ========================================================= */

:root{
  /* --- color tokens --- */
  --void:        #05070d;
  --void-2:      #080c18;
  --navy-deep:   #0c1530;
  --navy-mid:    #101c3d;
  --blue-glow:   #3f6bff;
  --blue-soft:   #7ea6ff;
  --gold:        #d4af37;
  --gold-light:  #f4e3ae;
  --gold-deep:   #9c7a26;
  --silver:      #cdd6e4;
  --white:       #f6f8fc;

  --glass-bg:     rgba(255,255,255,0.045);
  --glass-bg-2:   rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.10);
  --glass-blur:   18px;

  --font-display: 'Cinzel', serif;
  --font-script:  'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;

  --ease-lux: cubic-bezier(.16,.84,.44,1);
  --section-pad: clamp(80px, 12vh, 160px);
}

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

html{
  scroll-behavior: smooth;
}

body{
  margin:0;
  background: var(--void);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

body.lock-scroll{ overflow: hidden; }

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

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

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

::selection{ background: var(--gold); color: var(--void); }

/* subtle grain / vignette over everything */
body::before{
  content:'';
  position: fixed; inset:0;
  pointer-events:none;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(63,107,255,0.10), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(212,175,55,0.06), transparent 55%),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,0.55) 100%);
}

/* =========================================================
   TYPOGRAPHY HELPERS
   ========================================================= */
.eyebrow{
  font-family: var(--font-body);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: clamp(11px, 1.1vw, 13px);
  color: var(--gold-light);
  opacity: 0.85;
  text-align:center;
  margin: 0 0 18px;
}

.section-title{
  font-family: var(--font-display);
  text-align:center;
  font-weight: 600;
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: 0.03em;
  margin: 0 0 60px;
  background: linear-gradient(180deg, var(--white) 30%, var(--silver) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gold-text{
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold-light) 30%, var(--gold) 55%, var(--gold-light) 75%, var(--gold-deep) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer{
  0%{ background-position: 0% 50%; }
  100%{ background-position: 220% 50%; }
}

/* =========================================================
   LAYERED BACKDROPS / CANVASES
   ========================================================= */
#bg-canvas{
  position: fixed; inset:0;
  width:100%; height:100%;
  z-index: 0;
  pointer-events:none;
}

#ripple-canvas, #confetti-canvas, #fireworks-canvas{
  position: fixed; inset:0;
  width:100%; height:100%;
  pointer-events:none;
  z-index: 40;
}

#fireworks-canvas{
  position:absolute;
  z-index: 1;
}

#cursor-glow{
  position: fixed;
  width: 340px; height: 340px;
  border-radius: 50%;
  pointer-events:none;
  z-index: 1;
  background: radial-gradient(circle, rgba(63,107,255,0.18) 0%, rgba(212,175,55,0.06) 40%, transparent 70%);
  transform: translate(-50%,-50%);
  transition: opacity .4s ease;
  will-change: transform;
}

@media (hover: none){
  #cursor-glow{ display:none; }
}

/* =========================================================
   PRELOADER
   ========================================================= */
#preloader{
  position: fixed; inset:0;
  z-index: 200;
  background: var(--void);
  display:flex; align-items:center; justify-content:center;
  transition: opacity .8s var(--ease-lux), visibility .8s;
}
#preloader.hidden{ opacity:0; visibility:hidden; }

.preloader-inner{ text-align:center; }

.preloader-emblem{
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  border: 1px solid var(--glass-border);
  width: 92px; height: 92px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 26px;
  box-shadow: 0 0 40px rgba(212,175,55,0.25), inset 0 0 20px rgba(212,175,55,0.08);
  animation: pulse-ring 2.6s ease-in-out infinite;
}

@keyframes pulse-ring{
  0%,100%{ box-shadow: 0 0 30px rgba(212,175,55,0.18), inset 0 0 16px rgba(212,175,55,0.06); }
  50%{ box-shadow: 0 0 55px rgba(212,175,55,0.35), inset 0 0 26px rgba(212,175,55,0.14); }
}

.preloader-bar{
  width: 220px; height: 2px;
  background: rgba(255,255,255,0.08);
  margin: 0 auto 18px;
  overflow:hidden;
  border-radius: 2px;
}
.preloader-bar span{
  display:block; height:100%; width:0%;
  background: linear-gradient(90deg, var(--blue-glow), var(--gold));
  animation: load-bar 1.8s var(--ease-lux) forwards;
}
@keyframes load-bar{ to{ width:100%; } }

.preloader-label{
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--silver);
  opacity:0.6;
  text-transform: uppercase;
}

/* =========================================================
   GLASS COMPONENTS
   ========================================================= */
.glass-panel{
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.glass-pill{
  display:flex; align-items:center; gap:10px;
  padding: 10px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  color: var(--silver);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color .3s, box-shadow .3s, color .3s;
}
.glass-pill:hover{
  border-color: rgba(212,175,55,0.5);
  color: var(--gold-light);
  box-shadow: 0 0 24px rgba(212,175,55,0.18);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-luxury{
  position: relative;
  padding: 16px 44px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--void);
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 50%, var(--gold-deep));
  box-shadow: 0 10px 40px rgba(212,175,55,0.35);
  overflow:hidden;
  transition: transform .45s var(--ease-lux), box-shadow .45s var(--ease-lux);
}
.btn-luxury:hover{
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 55px rgba(212,175,55,0.5);
}
.btn-luxury:active{ transform: translateY(-1px) scale(0.99); }

.btn-luxury.outline{
  background: transparent;
  color: var(--gold-light);
  border: 1px solid rgba(212,175,55,0.55);
  box-shadow: 0 0 30px rgba(212,175,55,0.12);
}
.btn-luxury.outline:hover{
  background: rgba(212,175,55,0.08);
  box-shadow: 0 0 40px rgba(212,175,55,0.28);
}

.btn-luxury span{ position:relative; z-index:2; }

/* =========================================================
   MUSIC TOGGLE
   ========================================================= */
#music-toggle{
  position: fixed;
  top: 24px; right: 24px;
  z-index: 90;
}
.music-icon{
  display:flex; align-items:flex-end; gap:2px; height:12px;
}
.music-icon span{
  width:2.5px; background: currentColor; border-radius:2px;
  animation: bars 1s ease-in-out infinite;
  opacity: 0.5;
}
#music-toggle[data-state="playing"] .music-icon span{ opacity:1; }
.music-icon span:nth-child(1){ height: 40%; animation-delay: 0s; }
.music-icon span:nth-child(2){ height: 100%; animation-delay: .2s; }
.music-icon span:nth-child(3){ height: 65%; animation-delay: .4s; }
#music-toggle[data-state="paused"] .music-icon span{ animation-play-state: paused; }

@keyframes bars{
  0%,100%{ transform: scaleY(0.4); }
  50%{ transform: scaleY(1); }
}

/* =========================================================
   SECTION NAV DOTS
   ========================================================= */
#section-nav{
  position: fixed;
  right: 26px; top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display:flex; flex-direction:column; gap:16px;
}
.nav-dot{
  position:relative;
  width:9px; height:9px;
  border-radius:50%;
  background: rgba(255,255,255,0.25);
  transition: background .3s, box-shadow .3s, transform .3s;
}
.nav-dot::after{
  content: attr(data-label);
  position:absolute; right: 20px; top:50%;
  transform: translateY(-50%);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--silver);
  opacity:0;
  transition: opacity .25s;
  pointer-events:none;
}
.nav-dot:hover::after{ opacity: 0.85; }
.nav-dot.active{
  background: var(--gold);
  box-shadow: 0 0 12px rgba(212,175,55,0.8);
  transform: scale(1.3);
}

@media (max-width: 780px){
  #section-nav{ display:none; }
}

/* =========================================================
   START OVERLAY
   ========================================================= */
#start-overlay{
  position: fixed; inset:0;
  z-index: 150;
  background: radial-gradient(circle at 50% 40%, #0d1836 0%, var(--void) 75%);
  display:flex; align-items:center; justify-content:center;
  transition: opacity 1s var(--ease-lux), visibility 1s;
}
#start-overlay.hidden{ opacity:0; visibility:hidden; pointer-events:none; }

.start-content{ text-align:center; padding: 0 20px; }

.start-eyebrow{
  letter-spacing: 0.4em;
  text-transform:uppercase;
  font-size: 12px;
  color: var(--blue-soft);
  margin-bottom: 18px;
}

.start-name{
  font-family: var(--font-display);
  font-size: clamp(38px, 8vw, 84px);
  margin: 0;
  background: linear-gradient(100deg, var(--gold-deep), var(--gold-light) 40%, var(--gold) 60%, var(--gold-light));
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
  text-shadow: 0 0 70px rgba(212,175,55,0.25);
}

.start-date{
  font-family: var(--font-script);
  font-style: italic;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--silver);
  letter-spacing: 0.3em;
  margin: 10px 0 44px;
}

/* =========================================================
   SECTIONS BASE
   ========================================================= */
.section{
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: var(--section-pad) 24px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  z-index: 5;
}

/* =========================================================
   HERO
   ========================================================= */
#hero{ overflow:hidden; text-align:center; }

.hero-medallion{
  position:relative;
  width: 128px; height:128px;
  margin-bottom: 30px;
  perspective: 800px;
  opacity: 0;
  transform: scale(0.7);
}
.medallion-face{
  width:100%; height:100%; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(160deg, rgba(63,107,255,0.18), rgba(212,175,55,0.12));
  border: 1px solid rgba(212,175,55,0.4);
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  box-shadow: 0 0 50px rgba(63,107,255,0.25), inset 0 0 25px rgba(212,175,55,0.15);
  transform-style: preserve-3d;
  animation: medallion-float 6s ease-in-out infinite;
}
.medallion-ring{
  position:absolute; inset:-14px;
  border-radius:50%;
  border: 1px solid rgba(212,175,55,0.25);
  animation: rotate-ring 14s linear infinite;
}
.medallion-ring::before{
  content:'';
  position:absolute; top:-3px; left:50%;
  width:6px; height:6px; margin-left:-3px;
  border-radius:50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
@keyframes rotate-ring{ to{ transform: rotate(360deg); } }
@keyframes medallion-float{
  0%,100%{ transform: translateY(0) rotateY(0deg); }
  50%{ transform: translateY(-10px) rotateY(8deg); }
}

.hero-content{ max-width: 900px; }

.hero-title{ margin:0; line-height: 1.05; }
.hero-title .line{
  display:block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 7.6vw, 92px);
  letter-spacing: 0.01em;
  color: var(--white);
  text-shadow: 0 0 60px rgba(63,107,255,0.25);
}
.hero-title .line.gold-text{ margin-top: 4px; }

.hero-date{
  display:flex; align-items:center; justify-content:center; gap:18px;
  margin: 30px 0 20px;
}
.date-line{
  width: 60px; height:1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.date-text{
  font-family: var(--font-script);
  font-style: italic;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: 0.15em;
  color: var(--silver);
}

.hero-sub{
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--silver);
  opacity: 0.75;
  max-width: 520px;
  margin: 0 auto;
}

.scroll-cue{
  position:absolute; bottom: 34px; left:50%; transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:10px;
  font-size: 10px; letter-spacing: 0.2em; text-transform:uppercase;
  color: var(--silver); opacity: 0.55;
}
.scroll-cue-line{
  width:1px; height: 46px; background: rgba(255,255,255,0.15); position:relative; overflow:hidden;
}
.scroll-cue-line i{
  position:absolute; top:-40%; left:0; width:100%; height:40%;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue-drop 2s ease-in-out infinite;
}
@keyframes cue-drop{
  0%{ top:-40%; }
  100%{ top:100%; }
}

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

/* =========================================================
   COUNTDOWN
   ========================================================= */
.countdown-panel{
  max-width: 640px; width:100%;
  padding: 54px 34px;
  text-align:center;
}

#countdown-live .today-msg{
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 34px);
  color: var(--gold-light);
  text-shadow: 0 0 30px rgba(212,175,55,0.4);
}

.countdown-grid{
  display:flex; justify-content:center; gap: clamp(10px,3vw,26px);
  flex-wrap: wrap;
}
.countdown-cell{
  min-width: 84px;
  padding: 18px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
}
.countdown-num{
  display:block;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  color: var(--white);
  background: linear-gradient(180deg, var(--white), var(--blue-soft));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.countdown-cap{
  display:block; margin-top:6px;
  font-size: 10px; letter-spacing: 0.18em; text-transform:uppercase; color: var(--silver); opacity:0.7;
}

/* =========================================================
   GALLERY / CAROUSEL
   ========================================================= */
.carousel-wrap{
  position: relative;
  width:100%;
  max-width: 1000px;
  height: clamp(320px, 46vw, 480px);
  display:flex; align-items:center; justify-content:center;
  perspective: 1400px;
}

.carousel-stage{
  position: relative;
  width: 100%; height:100%;
  transform-style: preserve-3d;
}

.carousel-slide{
  position:absolute;
  top:50%; left:50%;
  width: clamp(200px, 30vw, 320px);
  height: clamp(260px, 38vw, 400px);
  margin: calc(clamp(260px, 38vw, 400px) / -2) 0 0 calc(clamp(200px, 30vw, 320px) / -2);
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  transition: transform .8s var(--ease-lux), opacity .8s var(--ease-lux), filter .8s var(--ease-lux);
  cursor: pointer;
  background: linear-gradient(160deg, rgba(63,107,255,0.12), rgba(212,175,55,0.08));
}
.carousel-slide img{
  width:100%; height:100%; object-fit: cover;
}
.carousel-slide .slide-caption{
  position:absolute; bottom:0; left:0; right:0;
  padding: 16px 14px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  font-size: 12px; letter-spacing: 0.08em; color: var(--silver);
}
.carousel-slide.center{ box-shadow: 0 30px 80px rgba(63,107,255,0.35), 0 0 0 1px rgba(212,175,55,0.4); }

.carousel-arrow{
  position: relative; z-index: 6;
  width: 44px; height:44px;
  border-radius:50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--silver);
  font-size: 14px;
  display:flex; align-items:center; justify-content:center;
  transition: all .3s;
  flex-shrink:0;
}
.carousel-arrow:hover{ color: var(--gold-light); border-color: rgba(212,175,55,0.5); box-shadow: 0 0 20px rgba(212,175,55,0.2); }

.carousel-dots{
  display:flex; gap:8px; margin-top: 28px;
}
.carousel-dots button{
  width:7px; height:7px; border-radius:50%;
  background: rgba(255,255,255,0.25);
  transition: all .3s;
}
.carousel-dots button.active{ background: var(--gold); width: 22px; border-radius: 4px; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
#lightbox{
  position: fixed; inset:0; z-index: 180;
  background: rgba(3,5,12,0.92);
  backdrop-filter: blur(10px);
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden;
  transition: opacity .4s ease, visibility .4s;
}
#lightbox.open{ opacity:1; visibility:visible; }
.lightbox-inner{
  max-width: min(90vw, 720px);
  text-align:center;
  transform: scale(0.85);
  transition: transform .5s var(--ease-lux);
}
#lightbox.open .lightbox-inner{ transform: scale(1); }
.lightbox-inner img{
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  max-height: 75vh;
  object-fit: contain;
  margin: 0 auto;
}
#lightbox-caption{
  margin-top: 16px;
  color: var(--silver);
  letter-spacing: 0.05em;
  font-size: 14px;
}
#lightbox-close{
  position:absolute; top:26px; right:30px;
  font-size: 30px; color: var(--silver);
  transition: color .3s, transform .3s;
}
#lightbox-close:hover{ color: var(--gold-light); transform: rotate(90deg); }

/* =========================================================
   CAKE
   ========================================================= */
.cake-scene{
  position: relative;
  width: 260px; height: 300px;
  margin: 20px auto 40px;
  display:flex; align-items:flex-end; justify-content:center;
  perspective: 900px;
}
.cake-plate{
  position:absolute; bottom: 6px;
  width: 220px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(212,175,55,0.35), rgba(212,175,55,0.05) 70%);
  box-shadow: 0 0 40px rgba(212,175,55,0.25);
}
.cake{
  position: relative;
  width: 200px;
  transform-style: preserve-3d;
  animation: cake-sway 8s ease-in-out infinite;
}
@keyframes cake-sway{
  0%,100%{ transform: rotateY(-4deg); }
  50%{ transform: rotateY(4deg); }
}
.cake-layer{
  width:100%;
  border-radius: 10px;
  position: relative;
  box-shadow: inset 0 -8px 14px rgba(0,0,0,0.25), 0 10px 20px rgba(0,0,0,0.35);
}
.layer-1{
  height: 60px;
  background: linear-gradient(180deg, #16224a, #0c1530);
  border: 1px solid rgba(63,107,255,0.35);
}
.layer-2{
  height: 50px;
  width: 84%;
  margin: 0 auto;
  background: linear-gradient(180deg, #1c2c5c, #101c3d);
  border: 1px solid rgba(63,107,255,0.35);
}
.layer-3{
  height: 44px;
  width: 66%;
  margin: 0 auto;
  background: linear-gradient(180deg, #24356c, #142147);
  border: 1px solid rgba(212,175,55,0.4);
  display:flex; align-items:flex-end; justify-content: space-evenly;
  padding-bottom: 0;
}
.cake-drip{
  position:absolute; top:-4px; left:0; right:0; height: 14px;
  background: repeating-linear-gradient(90deg, rgba(212,175,55,0.55) 0 10px, transparent 10px 20px);
  border-radius: 6px 6px 0 0;
  opacity: 0.7;
}

.candle{
  position: relative;
  width: 6px; height: 34px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  border-radius: 2px;
  transform: translateY(-30px);
  box-shadow: 0 0 10px rgba(212,175,55,0.5);
}
.flame{
  position:absolute; top:-22px; left:50%; transform: translateX(-50%);
  width: 10px; height: 18px;
  background: radial-gradient(circle at 50% 70%, #fff6d0 0%, #ffcf5c 35%, #ff8a3d 70%, transparent 100%);
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  filter: blur(0.3px);
  animation: flicker 0.5s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
.flame::after{
  content:'';
  position:absolute; inset:0;
  border-radius: 50%;
  box-shadow: 0 0 16px 4px rgba(255,178,80,0.55);
}
@keyframes flicker{
  0%{ transform: translateX(-50%) rotate(-3deg) scaleY(1); }
  50%{ transform: translateX(-50%) rotate(2deg) scaleY(1.08); }
  100%{ transform: translateX(-50%) rotate(-2deg) scaleY(0.95); }
}

.cake-scene.blown .flame{ animation: none; opacity:0; transition: opacity .6s; }
.cake-scene.blown .candle::after{
  content:'';
  position:absolute; top:-24px; left:50%; transform: translateX(-50%);
  width:2px; height: 16px;
  background: linear-gradient(0deg, rgba(180,180,180,0.5), transparent);
  filter: blur(1px);
  opacity: 0.7;
}

#wish-btn{ margin-top: 6px; }
.wish-hint{
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--silver);
  opacity: 0.55;
}

/* =========================================================
   MESSAGE SECTION
   ========================================================= */
.message-panel{
  max-width: 760px;
  text-align:center;
}
.msg-line{
  font-family: var(--font-script);
  font-style: italic;
  font-size: clamp(18px, 3vw, 26px);
  line-height: 1.7;
  color: var(--silver);
  margin: 0 0 22px;
  opacity: 0;
}
.msg-line.big{
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(28px, 5.5vw, 48px);
  margin-bottom: 34px;
}
.msg-line.accent{
  color: var(--white);
  font-size: clamp(20px, 3.4vw, 30px);
  margin-top: 30px;
}
.msg-line .emoji{ filter: none; }

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline-track{
  position: relative;
  max-width: 980px;
  width: 100%;
  padding: 40px 0;
}
.timeline-line{
  position:absolute; left:50%; top:0; bottom:0;
  width:1px;
  background: linear-gradient(180deg, transparent, rgba(212,175,55,0.5) 10%, rgba(63,107,255,0.4) 90%, transparent);
  transform: translateX(-50%);
}
.timeline-item{
  position: relative;
  width: 46%;
  margin-bottom: 70px;
}
.timeline-item[data-side="left"]{ margin-right: auto; text-align: right; }
.timeline-item[data-side="right"]{ margin-left: auto; text-align: left; }

.timeline-marker{
  position:absolute; top: 30px;
  width: 12px; height:12px; border-radius:50%;
  background: var(--navy-deep);
  border: 2px solid var(--blue-glow);
  box-shadow: 0 0 14px rgba(63,107,255,0.6);
}
.timeline-item[data-side="left"] .timeline-marker{ right: -37px; }
.timeline-item[data-side="right"] .timeline-marker{ left: -37px; }
.timeline-marker.glow{
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212,175,55,0.8);
}

.timeline-card{ padding: 22px; }
.timeline-card.highlight{ border-color: rgba(212,175,55,0.4); }
.timeline-tag{
  display:inline-block;
  font-size: 11px; letter-spacing: 0.18em; text-transform:uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.timeline-img{
  width:100%; height: 150px;
  border-radius: 12px;
  background-size: cover; background-position:center;
  background-color: rgba(255,255,255,0.03);
  margin-bottom: 14px;
  border: 1px solid var(--glass-border);
}
.timeline-card p{
  margin:0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--silver);
  opacity: 0.85;
}

@media (max-width: 780px){
  .timeline-line{ left: 14px; }
  .timeline-item, .timeline-item[data-side="left"], .timeline-item[data-side="right"]{
    width: calc(100% - 50px);
    margin-left: 50px !important;
    margin-right: 0 !important;
    text-align: left !important;
  }
  .timeline-item[data-side="left"] .timeline-marker,
  .timeline-item[data-side="right"] .timeline-marker{ left: -37px; right:auto; }
}

/* =========================================================
   FINALE
   ========================================================= */
#finale{ overflow:hidden; }
.finale-content{ position: relative; z-index: 3; text-align:center; }
.finale-title{
  font-family: var(--font-display);
  font-size: clamp(30px, 7vw, 68px);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin: 10px 0 26px;
  text-shadow: 0 0 60px rgba(63,107,255,0.35);
}
.finale-sub{
  color: var(--silver);
  font-size: 15px;
  margin-bottom: 40px;
}
.finale-balloons{ position:absolute; inset:0; z-index:2; pointer-events:none; }

.site-footer{
  text-align:center;
  padding: 40px 20px 60px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--silver);
  opacity: 0.6;
}

/* =========================================================
   FLOATING DECOR: balloons / sparkles / hearts / stars
   ========================================================= */
.deco{
  position:absolute;
  pointer-events:none;
  will-change: transform, opacity;
}

.balloon{
  width: 46px; height: 58px;
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  position: relative;
  box-shadow: inset -8px -10px 16px rgba(0,0,0,0.25), inset 8px 8px 14px rgba(255,255,255,0.15);
}
.balloon::after{
  content:'';
  position:absolute; left:50%; bottom:-16px; width:1px; height:16px;
  background: rgba(255,255,255,0.3);
  transform: translateX(-50%);
}
.balloon.b-gold{ background: radial-gradient(circle at 35% 30%, #f7e6a8, #c9a13a 70%); }
.balloon.b-blue{ background: radial-gradient(circle at 35% 30%, #9db8ff, #35509e 70%); }
.balloon.b-silver{ background: radial-gradient(circle at 35% 30%, #eef1f7, #9aa6bd 70%); }

.sparkle{
  width: 6px; height:6px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(244,227,174,0.8);
}

.heart{
  width: 16px; height:16px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #ff8fb1, #ff5c8a);
  box-shadow: 0 0 10px rgba(255,92,138,0.5);
}
.heart::before, .heart::after{
  content:'';
  position:absolute; width:16px; height:16px; border-radius:50%;
  background: inherit;
}
.heart::before{ top:-8px; left:0; }
.heart::after{ top:0; left:-8px; }

.star-point{
  width: 8px; height:8px;
  background: var(--white);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.8;
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* =========================================================
   REVEAL ANIMATION HELPERS (base states, animated via GSAP/JS)
   ========================================================= */
.reveal-up{ opacity:0; transform: translateY(36px); }
.reveal-line{ opacity:0; transform: translateY(24px); }
.reveal-char span{ display:inline-block; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px){
  .section{ padding: 70px 18px; }
  .carousel-arrow{ width:38px; height:38px; }
  #music-toggle .music-label{ display:none; }
  #music-toggle{ padding: 10px 12px; }
  .cake-scene{ transform: scale(0.85); }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
