@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Quicksand:wght@500;600;700&display=swap');

:root {
  /* ══ 5 THEME COLORS FROM USER PALETTE ══ */
  --slate: #2F4454;
  --plum: #2E151B;
  --rose: #DA7B93;
  --teal: #376E6F;
  --spruce: #1C3334;

  /* Harmonious Tints & Accents */
  --rose-light: #F2BDCB;
  --rose-pale: #FDF2F4;
  --rose-glow: rgba(218, 123, 147, 0.45);
  
  --teal-light: #529697;
  --teal-pale: #EAF3F3;
  --teal-glow: rgba(55, 110, 111, 0.4);

  --plum-light: #4A202A;
  --slate-dark: #22323E;
  
  --bg-page: #FAF7F8;
  --bg-card: #FFFFFF;
  --text-dark: #2E151B;
  --text-muted: #533B42;
  --gold: #D4A373;

  /* Typography */
  --font-head: 'Playfair Display', Georgia, serif;
  --font-sub: 'Dancing Script', cursive;
  --font-body: 'Quicksand', sans-serif;
}

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

body {
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--bg-page);
  color: var(--text-dark);
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext y='20' font-size='20'%3E🎀%3C/text%3E%3C/svg%3E") 12 12, auto;
}

/* ══ SPLASH ══ */
#splash {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1C3334 0%, #2F4454 45%, #2E151B 100%);
  cursor: pointer;
}
#splash::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 20%, rgba(218, 123, 147, 0.4) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(55, 110, 111, 0.4) 0%, transparent 60%);
  pointer-events: none;
}
#splash::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 14px;
  background: repeating-linear-gradient(90deg, var(--rose) 0px, var(--rose) 22px, var(--teal) 22px, var(--teal) 44px);
}
.splash-ribbon-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 14px;
  background: repeating-linear-gradient(90deg, var(--teal) 0px, var(--teal) 22px, var(--rose) 22px, var(--rose) 44px);
}
.splash-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sp { position: absolute; font-size: 1.6rem; animation: spFloat linear infinite; opacity: 0; }
@keyframes spFloat {
  0%   { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.8; } 90% { opacity: 0.8; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}
.splash-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 20px; }
.splash-bow { font-size: 5rem; animation: bowBounce 2s ease-in-out infinite; filter: drop-shadow(0 8px 20px var(--rose-glow)); }
@keyframes bowBounce {
  0%, 100% { transform: translateY(0) scale(1) rotate(-6deg); }
  50%       { transform: translateY(-18px) scale(1.08) rotate(6deg); }
}
.splash-title {
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 8vw, 4.5rem);
  font-weight: 700;
  color: var(--rose);
  text-shadow: 2px 2px 0 var(--plum), 0 0 30px var(--rose-glow);
  animation: popIn 0.9s cubic-bezier(0.34,1.56,0.64,1) both;
  line-height: 1.35;
  padding: 0 10px;
}
.splash-sub {
  font-family: var(--font-sub);
  font-size: clamp(1.4rem, 4.5vw, 2.2rem);
  color: #FDF2F4;
  font-weight: 700;
  letter-spacing: 1px;
  animation: popIn 0.9s 0.2s cubic-bezier(0.34,1.56,0.64,1) both;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
@keyframes popIn { from { transform: scale(0.4) rotate(-10deg); opacity: 0; } to { transform: scale(1) rotate(0deg); opacity: 1; } }
.splash-hearts { font-size: 2.4rem; letter-spacing: 12px; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5)); animation: popIn 0.9s 0.35s cubic-bezier(0.34,1.56,0.64,1) both; }
.splash-btn {
  margin-top: 10px; padding: 18px 50px;
  font-family: var(--font-head); font-size: clamp(1.1rem, 3vw, 1.45rem);
  letter-spacing: 0.5px;
  color: white; background: linear-gradient(135deg, var(--rose), var(--teal));
  border: none; border-radius: 60px; cursor: pointer;
  box-shadow: 0 10px 30px var(--rose-glow), 0 2px 0 rgba(255,255,255,0.3) inset;
  animation: popIn 0.9s 0.5s cubic-bezier(0.34,1.56,0.64,1) both, btnPulse 2s 1.5s ease-in-out infinite;
  position: relative; overflow: hidden;
}
.splash-btn::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2.5s 2s infinite;
}
@keyframes shimmer { 0% { left: -100%; } 100% { left: 160%; } }
@keyframes btnPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
#splash.hide { animation: splashOut 0.8s cubic-bezier(0.4,0,0.2,1) forwards; }
@keyframes splashOut { 0% { opacity: 1; transform: scale(1); } 60% { opacity: 1; transform: scale(1.04); } 100% { opacity: 0; transform: scale(1.12); pointer-events: none; } }

.song-list { display: flex; flex-direction: column; gap: 15px; width: 100%; max-width: 320px; }
.puzzle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 10px auto; }
.btn-base {
  width: 70px; height: 70px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; cursor: pointer; border: none; outline: none;
  transition: all 0.3s ease; margin: 0 auto;
}

.style-neon { 
  background: #1C3334; 
  padding: 30px; 
  border-radius: 20px; 
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--rose);
}
.style-neon .btn-base {
  background: rgba(218, 123, 147, 0.12);
  border: 2px solid var(--rose);
  border-radius: 12px;
  color: var(--rose);
  box-shadow: 0 0 12px var(--rose-glow), inset 0 0 8px rgba(218, 123, 147, 0.2);
  text-shadow: 0 0 5px var(--rose);
  animation: popIn 0.5s ease both;
}
.style-neon .btn-base:hover {
  background: var(--rose);
  color: #1C3334;
  box-shadow: 0 0 25px var(--rose), inset 0 0 12px rgba(255,255,255,0.5);
  transform: scale(1.1) translateY(-4px);
}
.style-neon .btn-base:active { transform: scale(0.95); }

.shake { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* ══ PARTICLES ══ */
.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.particle { position: absolute; font-size: 1.4rem; animation: floatUp linear infinite; opacity: 0.75; }
@keyframes floatUp {
  0%   { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.75; } 90% { opacity: 0.75; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ══ HERO ══ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #FAF7F8 0%, #F5EAEF 45%, #EAF1F1 100%);
  overflow: hidden; padding: 40px 20px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(218, 123, 147, 0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 70%, rgba(55, 110, 111, 0.25) 0%, transparent 60%);
}
.ribbon-top {
  position: absolute; top: 0; left: 0; right: 0; height: 12px;
  background: repeating-linear-gradient(90deg, var(--plum) 0px, var(--plum) 20px, var(--rose) 20px, var(--rose) 40px, var(--teal) 40px, var(--teal) 60px, var(--slate) 60px, var(--slate) 80px);
}
.hero-content { position: relative; z-index: 2; }
.crown { font-size: 4.5rem; display: block; animation: bounce 1.5s ease-in-out infinite; margin-bottom: 10px; filter: drop-shadow(0 5px 12px var(--rose-glow)); }
@keyframes bounce { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-15px) rotate(5deg); } }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--plum);
  text-shadow: 2px 2px 0 var(--rose-light), 4px 4px 0 rgba(46, 21, 27, 0.1);
  line-height: 1.35;
  animation: popIn 0.8s cubic-bezier(0.34,1.56,0.64,1) both;
}
.hero h2 {
  font-family: var(--font-sub);
  font-size: clamp(1.8rem, 5.5vw, 3.5rem);
  color: var(--rose);
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 8px;
  animation: slideUp 0.8s 0.3s ease both;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.hearts-row { margin: 20px 0; font-size: 2.8rem; letter-spacing: 15px; filter: drop-shadow(0 3px 6px var(--rose-glow)); animation: slideUp 0.8s 0.5s ease both; }

/* ══ COUNTDOWN ══ */
.countdown-section { position: relative; z-index: 2; margin-top: 30px; animation: slideUp 0.8s 0.7s ease both; }
.countdown-label { font-size: 0.9rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px; }
.countdown-boxes { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.countdown-box {
  background: white; border: 3px solid var(--rose); border-radius: 20px; padding: 14px 18px; min-width: 80px;
  box-shadow: 0 8px 24px rgba(46, 21, 27, 0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  transition: transform 0.3s, border-color 0.3s;
}
.countdown-box:hover { transform: translateY(-5px) rotate(2deg); border-color: var(--teal); }
.countdown-num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--plum); display: block; line-height: 1; }
.countdown-unit { font-size: 0.7rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 2px; }
.birthday-now { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--rose); animation: pulse 1s infinite; text-shadow: 1px 1px 0 var(--plum); }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ══ MUSIC PLAYER ══ */
.music-player {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 3px solid var(--rose);
  border-radius: 50px; padding: 10px 20px 10px 10px;
  box-shadow: 0 10px 30px var(--rose-glow);
}
.music-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--plum));
  border: none; cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s; box-shadow: 0 4px 12px var(--rose-glow);
}
.music-btn:hover { transform: scale(1.1); }
.music-info { line-height: 1.2; }
.music-title { font-weight: 700; font-size: 0.85rem; color: var(--plum); }
.music-artist { font-size: 0.72rem; color: var(--teal); font-weight: 600; }
.music-wave { display: flex; gap: 3px; align-items: center; }
.music-wave span { display: block; width: 3px; background: var(--rose); border-radius: 3px; animation: wave 0.8s ease-in-out infinite; }
.music-wave span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.music-wave span:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.music-wave span:nth-child(3) { height: 12px; animation-delay: 0.3s; }
.music-wave span:nth-child(4) { height: 20px; animation-delay: 0.1s; }
.music-wave span:nth-child(5) { height: 10px; animation-delay: 0.25s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
.music-wave.paused span { animation-play-state: paused; }

.next-song-btn {
  width: 30px; height: 30px; border-radius: 50%; background: transparent;
  border: 2px solid var(--teal); cursor: pointer; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center; color: var(--teal);
  transition: all 0.2s;
}
.next-song-btn:hover { background: var(--teal-pale); transform: scale(1.1); }

/* ══ PHOTOS SECTIONS ══ */
.photos-section { position: relative; z-index: 1; padding: 70px 20px; text-align: center; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--plum);
  text-shadow: 1px 1px 0 var(--rose-light), 2px 2px 0 rgba(46, 21, 27, 0.08);
  margin-bottom: 12px;
}
.section-subtitle { font-size: 1.15rem; font-weight: 600; color: var(--teal); margin-bottom: 35px; letter-spacing: 0.5px; }
.photos-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; max-width: 1280px; margin: 0 auto; }

/* ══ SPOTLIGHT WRAPPER (MAIN PHOTO) ══ */
.spotlight-wrap {
  display: flex; justify-content: center; align-items: center;
  max-width: 480px; margin: 0 auto; padding: 10px;
}
.spotlight-card {
  position: relative;
  background: white;
  border-radius: 28px;
  padding: 14px 14px 40px;
  border: 4px solid var(--rose);
  box-shadow: 0 20px 50px var(--rose-glow), 0 0 25px rgba(55, 110, 111, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  width: 100%;
}
.spotlight-card:hover { transform: scale(1.03); box-shadow: 0 25px 60px var(--rose-glow); }
.spotlight-card img {
  width: 100%; height: auto; max-height: 580px; object-fit: contain; border-radius: 20px; display: block; background: #FFFBFB;
}

/* Photo Cards */
.photo-card {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 12px 12px 36px;
  box-shadow: 0 10px 30px rgba(46, 21, 27, 0.08);
  transform: rotate(var(--rot));
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 3px solid var(--rose-pale);
  cursor: pointer;
}
.photo-card:hover {
  transform: rotate(0deg) scale(1.06);
  border-color: var(--rose);
  box-shadow: 0 18px 45px var(--rose-glow);
  z-index: 5;
}

.card-16x9 { width: 330px; max-width: 90vw; }
.card-16x9 img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.card-3x4 { width: 250px; max-width: 90vw; }
.card-3x4 img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.card-9x16 { width: 230px; max-width: 90vw; }
.card-9x16 img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }

@media (max-width: 480px) {
  .card-16x9 { width: 320px; max-width: 90vw; }
  .card-3x4 { width: 260px; max-width: 88vw; }
  .card-9x16 { width: 240px; max-width: 88vw; }
  .photos-grid { gap: 18px; }
}

.photo-card img { border-radius: 16px; display: block; }
.photo-caption { margin-top: 10px; font-family: var(--font-sub); font-size: 1.25rem; font-weight: 700; color: var(--plum); text-align: center; }
.photo-sticker { position: absolute; top: -12px; right: -12px; font-size: 1.8rem; animation: spin 4s linear infinite; pointer-events: none; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ══ MESSAGE ══ */
.message-section {
  position: relative; z-index: 1; padding: 80px 20px;
  background: linear-gradient(135deg, #FDF4F6 0%, #F5EAEF 50%, #EAF3F3 100%);
  text-align: center;
}
.message-card {
  max-width: 740px; margin: 0 auto; background: white; border-radius: 32px; padding: 50px 40px;
  box-shadow: 0 20px 60px rgba(46, 21, 27, 0.12); border: 3px solid var(--rose); position: relative; overflow: hidden;
}
.message-card::before { content: '💌'; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 2.5rem; filter: drop-shadow(0 4px 8px var(--rose-glow)); }
.message-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(218, 123, 147, 0.18), transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(55, 110, 111, 0.12), transparent 60%);
  pointer-events: none;
}
.message-text {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem); line-height: 1.95; color: var(--text-dark); font-weight: 600; text-align: left; position: relative; z-index: 1;
}
.message-text strong { color: var(--rose); font-weight: 700; }

/* ══ CAKE ══ */
.cake-section {
  padding: 70px 20px; text-align: center;
  background: linear-gradient(180deg, #FAF7F8, #F5EAEF);
  position: relative; overflow: hidden;
}
.wish-text { font-family: var(--font-sub); font-size: clamp(1.6rem, 4.5vw, 2.5rem); font-weight: 700; color: var(--plum); margin-top: 20px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.5; }

/* Interactive Cake */
.interactive-cake-container { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 320px; padding-top: 30px; }
.css-cake { position: relative; width: 220px; height: 180px; margin-top: 40px; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; cursor: pointer; }
.css-cake.visible { opacity: 1; pointer-events: auto; }

.candle {
  position: absolute; width: 10px; height: 35px;
  background: repeating-linear-gradient(180deg, #fff 0px, #fff 6px, var(--rose) 6px, var(--rose) 12px);
  border-radius: 5px; border: 1px solid var(--rose); box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 2;
}
.c1 { left: 40%; top: -5px; }
.c2 { left: 50%; transform: translateX(-50%); top: -15px; }
.c3 { right: 40%; top: -5px; }
.flame {
  position: absolute; width: 12px; height: 20px; background: #ffd700;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; top: -25px; left: -4px;
  box-shadow: 0 0 15px #ffd700, 0 0 30px #ff8c00; animation: flicker 0.1s infinite alternate; transition: all 0.5s ease; cursor: pointer;
}
@keyframes flicker { 0% { transform: scale(1) rotate(-1deg); opacity: 0.9; } 100% { transform: scale(1.1) rotate(1deg); opacity: 1; } }
.flame.blown-out { opacity: 0; transform: scale(0) translateY(-20px); box-shadow: none; animation: none; }

/* ══ SECRET VAULT SECTION ══ */
.secret-vault-section {
  position: relative; z-index: 2; padding: 80px 20px;
  background: linear-gradient(180deg, #FAF7F8 0%, #1C3334 15%, #1C3334 85%, #FAF7F8 100%);
  text-align: center;
}
.vault-card {
  max-width: 620px; margin: 0 auto;
  background: linear-gradient(135deg, #22323E 0%, #2F4454 45%, #2E151B 100%);
  border: 3px solid var(--rose); border-radius: 32px; padding: 45px 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--rose-glow);
  color: white; animation: slideUp 0.8s ease both;
}
.lock-icon-wrap { font-size: 3.5rem; margin-bottom: 12px; animation: bounce 2s infinite ease-in-out; }
.vault-card-title {
  font-family: var(--font-head); font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--rose); margin-bottom: 8px; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.vault-card-sub { font-family: var(--font-sub); font-size: 1.4rem; color: #FDF2F4; margin-bottom: 20px; }
.vault-hint { font-size: 0.95rem; color: var(--teal-light); margin-bottom: 22px; font-weight: 600; letter-spacing: 0.5px; }

.vault-form {
  display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap;
  max-width: 440px; margin: 0 auto;
}
.vault-input {
  flex: 1; min-width: 200px; padding: 16px 24px;
  background: rgba(255, 255, 255, 0.12); border: 2px solid var(--rose);
  border-radius: 50px; color: white; font-size: 1.1rem; font-weight: 600;
  outline: none; transition: all 0.3s ease; text-align: center; letter-spacing: 1px;
}
.vault-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.vault-input:focus { background: rgba(255, 255, 255, 0.2); box-shadow: 0 0 20px var(--rose-glow); border-color: white; }

.vault-btn { margin-top: 0; padding: 16px 30px; font-size: 1.05rem; }

.vault-error {
  margin-top: 15px; color: #ff6b6b; font-weight: 700; font-size: 0.95rem; min-height: 24px;
}

.vault-content { margin-top: 50px; animation: popIn 0.8s cubic-bezier(0.34,1.56,0.64,1) both; }
.vault-unlocked-banner { margin-bottom: 30px; }
.unlocked-badge {
  display: inline-block; padding: 8px 24px; background: rgba(218, 123, 147, 0.2);
  border: 2px solid var(--rose); border-radius: 50px; color: var(--rose);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 1px;
}

/* ══ PRIVATE EMOTIONAL LETTER IN VAULT ══ */
.private-letter-card {
  max-width: 780px; margin: 30px auto 50px auto; background: #FFFDF9; border-radius: 30px;
  padding: 45px 36px; border: 3px solid var(--rose);
  box-shadow: 0 18px 50px rgba(46, 21, 27, 0.18), 0 0 35px var(--rose-glow);
  text-align: left; position: relative; overflow: hidden;
}
.private-letter-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(218, 123, 147, 0.14), transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(55, 110, 111, 0.1), transparent 60%);
  pointer-events: none;
}
.letter-stamp { font-size: 2.4rem; margin-bottom: 10px; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15)); }
.letter-title {
  font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--plum); margin-bottom: 22px; position: relative; z-index: 1;
}
.letter-body { position: relative; z-index: 1; }
.letter-body p {
  font-size: clamp(1.05rem, 2.4vw, 1.18rem); line-height: 1.95; color: #2C2628;
  margin-bottom: 18px; font-weight: 500;
}
.letter-body strong { color: var(--rose); font-weight: 700; }
.letter-sign {
  font-style: italic; font-size: 1.15rem; color: var(--rose); font-weight: 700;
  text-align: right; margin-top: 25px;
}

/* ══ VIDEOS GRID ══ */
.videos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  gap: 30px; justify-content: center; max-width: 1200px; margin: 0 auto;
}
.video-card {
  background: white; border-radius: 24px; padding: 14px;
  border: 3px solid var(--teal); box-shadow: 0 14px 40px rgba(55, 110, 111, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(55, 110, 111, 0.35); }
.video-card video {
  width: 100%; border-radius: 16px; background: #000; display: block; max-height: 380px; object-fit: cover;
}
.video-title {
  margin-top: 12px; font-family: var(--font-sub); font-size: 1.3rem; font-weight: 700;
  color: var(--plum); text-align: center;
}

/* ══ LIGHTBOX MODAL ══ */
.lightbox-modal {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-modal.active { opacity: 1; pointer-events: auto; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(28, 51, 52, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox-content {
  position: relative; z-index: 2;
  max-width: 92vw; max-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: modalZoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalZoom { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-img-wrapper {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  background: white; padding: 12px; border-radius: 20px;
  border: 3px solid var(--rose);
  box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 35px var(--rose-glow);
  max-width: 90vw; max-height: 85vh;
}
.lightbox-img-wrapper img {
  max-width: 85vw; max-height: 68vh; object-fit: contain; border-radius: 14px; display: block;
}
.lightbox-caption-box {
  margin-top: 10px; display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 4px 10px; gap: 10px;
}
.lightbox-sticker { font-size: 1.6rem; }
.lightbox-caption {
  font-family: var(--font-sub); font-size: 1.3rem; font-weight: 700;
  color: var(--plum); text-align: center; flex: 1;
}
.lightbox-counter { font-size: 0.85rem; font-weight: 700; color: var(--teal); }
.lightbox-close {
  position: absolute; top: -16px; right: -16px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--rose); color: white; border: 2px solid white;
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: transform 0.2s, background 0.2s; z-index: 10;
}
.lightbox-close:hover { transform: scale(1.15); background: var(--plum); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94); color: var(--plum); border: 2px solid var(--rose);
  font-size: 1.4rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25); transition: transform 0.2s, background 0.2s; z-index: 10;
}
.lightbox-prev { left: -22px; }
.lightbox-next { right: -22px; }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.1); background: var(--rose-pale); color: var(--rose); }

@media (max-width: 600px) {
  .lightbox-prev { left: -10px; }
  .lightbox-next { right: -10px; }
  .lightbox-nav { width: 36px; height: 36px; font-size: 1.1rem; }
  .lightbox-caption { font-size: 1.1rem; }
  .music-player { bottom: 16px; right: 16px; padding: 8px 14px 8px 8px; }
  .secret-vault-section { padding: 60px 15px; }
  .vault-card { padding: 30px 20px; }
}

footer {
  background: linear-gradient(135deg, #1C3334 0%, #2F4454 50%, #2E151B 100%);
  text-align: center; padding: 35px 20px;
  font-family: var(--font-sub); font-size: 1.45rem; font-weight: 700;
  color: var(--rose); letter-spacing: 1px;
}

.confetti-piece { position: fixed; pointer-events: none; z-index: 9999; animation: confettiFall 2s ease-in forwards; }
@keyframes confettiFall { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══ BALLOON & FLOWER EXPLOSION ANIMATIONS ══ */
.num-pop { animation: numScalePop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes numScalePop { 0% { transform: scale(1.5); color: var(--rose); } 100% { transform: scale(1); } }
.box-pop-out { animation: boxPopOut 0.35s ease forwards; }
@keyframes boxPopOut { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.8; } 100% { transform: scale(0); opacity: 0; } }
.banner-pop-in { animation: bannerPopIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes bannerPopIn { 0% { transform: scale(0.2) rotate(-8deg); opacity: 0; } 100% { transform: scale(1) rotate(0deg); opacity: 1; } }

.pop-burst-element {
  position: fixed; pointer-events: none; z-index: 99999;
  filter: drop-shadow(0 5px 15px var(--rose-glow));
  animation: burstFly 1.6s cubic-bezier(0.15, 0.85, 0.35, 1.2) forwards;
}
@keyframes burstFly {
  0% { transform: translate(-50%, -50%) scale(0.1) rotate(0deg); opacity: 1; }
  30% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.4) rotate(var(--rot)); opacity: 0; }
}
