/* ============================================================
   BIRTHDAY SURPRISE WEBSITE — style.css
   Dark Elegant / Cinematic / Romantic / Glassmorphism
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-deep:      #0a0a14;
  --bg-dark:      #0f0f1a;
  --bg-mid:       #1a1a2e;
  --pink:         #ff4d8d;
  --pink-light:   #ff85a2;
  --purple:       #9d4edd;
  --purple-light: #c77dff;
  --white:        #ffffff;
  --white-soft:   rgba(255,255,255,0.85);
  --glass-bg:     rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);
  --glow-pink:    rgba(255,77,141,0.4);
  --glow-purple:  rgba(157,78,221,0.4);
  --font-script:  'Great Vibes', cursive;
  --font-body:    'Poppins', sans-serif;
  --ease-smooth:  cubic-bezier(0.16,1,0.3,1);
  --ease-bounce:  cubic-bezier(0.34,1.56,0.64,1);
  --section-pad:  clamp(60px, 10vw, 120px);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom Cursor ──────────────────────────────────────────── */
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--pink);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%,-50%);
  transition: transform 0.05s;
  box-shadow: 0 0 10px var(--pink), 0 0 20px var(--pink);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(255,77,141,0.6);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.12s var(--ease-smooth), width 0.2s, height 0.2s, border-color 0.2s;
}
.cursor-ring.hovered {
  width: 48px; height: 48px;
  border-color: var(--pink);
  background: rgba(255,77,141,0.08);
}

/* ── Background Canvas ──────────────────────────────────────── */
#bgCanvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Ambient Glows ──────────────────────────────────────────── */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: ambientFloat 8s ease-in-out infinite alternate;
}
.glow-1 {
  width: clamp(300px,50vw,600px); height: clamp(300px,50vw,600px);
  background: radial-gradient(circle, rgba(157,78,221,0.18), transparent 70%);
  top: -150px; left: -150px;
  animation-delay: 0s;
}
.glow-2 {
  width: clamp(250px,40vw,500px); height: clamp(250px,40vw,500px);
  background: radial-gradient(circle, rgba(255,77,141,0.15), transparent 70%);
  bottom: 20%; right: -100px;
  animation-delay: -3s;
}
.glow-3 {
  width: clamp(200px,30vw,400px); height: clamp(200px,30vw,400px);
  background: radial-gradient(circle, rgba(199,125,255,0.12), transparent 70%);
  top: 50%; left: 40%;
  animation-delay: -6s;
}
@keyframes ambientFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px,30px) scale(1.08); }
}

/* ── Loader ─────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0;
  background: var(--bg-deep);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px;
  z-index: 9000;
  transition: opacity 0.8s var(--ease-smooth), visibility 0.8s;
}
.loader.fade-out { opacity: 0; visibility: hidden; }

.loader-heart {
  width: 80px; height: 80px;
  animation: heartbeat 0.9s ease-in-out infinite;
}
.loader-heart svg {
  width: 100%; height: 100%;
  fill: var(--pink);
  filter: drop-shadow(0 0 20px var(--pink)) drop-shadow(0 0 40px rgba(255,77,141,0.5));
}
@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}

.loader-text {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

.loader-bar {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 999px;
  animation: loadFill 2s var(--ease-smooth) forwards;
}
@keyframes loadFill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ── Hidden & Reveal utilities ──────────────────────────────── */
.hidden { display: none !important; }
#mainContent.hidden { display: none !important; }

/* ── Sections ───────────────────────────────────────────────── */
.section {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: var(--section-pad) clamp(20px,5vw,80px);
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(40px,6vw,80px);
}
.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--pink-light);
  margin-bottom: 12px;
  opacity: 0.8;
}
.section-title {
  font-family: var(--font-body);
  font-size: clamp(2rem,5vw,3.5rem);
  font-weight: 700;
  line-height: 1.15;
}
.glow-text {
  background: linear-gradient(135deg, var(--pink), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255,77,141,0.4));
}
.script-font { font-family: var(--font-script); font-size: 1.3em; }

/* ── Glassmorphism Card ─────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: clamp(24px,4vw,48px);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 80px rgba(157,78,221,0.06);
  transition: box-shadow 0.3s, transform 0.3s;
}
.glass-card:hover {
  box-shadow:
    0 16px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 60px rgba(255,77,141,0.15);
}

/* ── Glow Button ────────────────────────────────────────────── */
.btn-glow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  border: none; border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.3s;
  box-shadow: 0 4px 30px rgba(255,77,141,0.4), 0 0 60px rgba(255,77,141,0.1);
}
.btn-glow::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-glow:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 40px rgba(255,77,141,0.6), 0 0 80px rgba(255,77,141,0.2); }
.btn-glow:hover::before { opacity: 1; }
.btn-glow:active { transform: translateY(0) scale(0.98); }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,77,141,0.5);
  color: var(--pink-light);
  box-shadow: 0 0 20px rgba(255,77,141,0.15), inset 0 0 20px rgba(255,77,141,0.05);
}
.btn-outline:hover { background: rgba(255,77,141,0.1); border-color: var(--pink); box-shadow: 0 0 40px rgba(255,77,141,0.3); }

/* ── HERO SECTION ───────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  text-align: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 60%, rgba(157,78,221,0.12) 0%, transparent 70%);
  overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  animation: heroEntrance 1.2s var(--ease-smooth) both;
  animation-delay: 0.3s;
}
@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--pink-light);
  opacity: 0.8;
}
.hero-title {
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--pink-light) 40%, var(--pink) 70%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(255,77,141,0.3));
  animation: titlePulse 4s ease-in-out infinite alternate;
}
@keyframes titlePulse {
  from { filter: drop-shadow(0 0 40px rgba(255,77,141,0.3)); }
  to   { filter: drop-shadow(0 0 70px rgba(255,77,141,0.6)); }
}
.heart-emoji { display: inline-block; animation: heartbeat 1s ease-in-out infinite; }

.hero-subtitle {
  font-size: clamp(1rem,2.5vw,1.4rem);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  min-height: 2em;
  letter-spacing: 0.5px;
}
.hero-subtitle::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  color: var(--pink);
}
@keyframes blink { 50% { opacity: 0; } }

.scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fadeInUp 1s 2s both;
}
@keyframes fadeInUp { from { opacity:0; transform: translate(-50%,20px); } to { opacity:1; transform: translate(-50%,0); } }
.scroll-indicator span {
  display: block;
  width: 1.5px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--pink), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{transform:scaleY(1);opacity:0.5;} 50%{transform:scaleY(1.3);opacity:1;} }
.scroll-indicator p { font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.4); }

/* ── GALLERY SECTION ────────────────────────────────────────── */

.gallery-section{
  min-height:auto;
  padding-bottom:var(--section-pad);

  display:flex;
  flex-direction:column;
  align-items:center;

  position:relative;
  overflow:hidden;
}

/* Background Glow */
.gallery-section::before{
  content:"";

  position:absolute;

  width:500px;
  height:500px;

  border-radius:50%;

  background:
    radial-gradient(
      circle,
      rgba(255,182,193,.18) 0%,
      transparent 70%
    );

  top:-150px;
  left:-120px;

  pointer-events:none;
}

.gallery-section::after{
  content:"";

  position:absolute;

  width:450px;
  height:450px;

  border-radius:50%;

  background:
    radial-gradient(
      circle,
      rgba(180,140,255,.14) 0%,
      transparent 70%
    );

  bottom:-180px;
  right:-120px;

  pointer-events:none;
}

/* Grid */
.gallery-grid{
  display:grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(min(220px,100%),1fr)
    );

  gap:clamp(20px,3vw,36px);

  max-width:1100px;
  width:100%;

  position:relative;
  z-index:2;
}

/* Card */
.polaroid{
  background:rgba(255,255,255,.78);

  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);

  border:1px solid rgba(255,255,255,.5);

  border-radius:26px;

  padding:14px 14px 26px;

  transform:rotate(var(--rot,0deg));

  transition:
    transform .45s cubic-bezier(.22,1,.36,1),
    box-shadow .45s ease;

  animation:
    float 4s ease-in-out infinite alternate;

  animation-delay:var(--delay,0s);

  cursor:pointer;

  box-shadow:
    0 10px 30px rgba(215,170,195,.18);

  overflow:hidden;

  position:relative;
}

/* Glow Border */
.polaroid::before{
  content:"";

  position:absolute;
  inset:-2px;

  border-radius:28px;

  background:
    linear-gradient(
      135deg,
      rgba(255,182,193,.18),
      rgba(180,140,255,.12),
      rgba(255,220,180,.18)
    );

  z-index:-1;

  filter:blur(14px);

  opacity:0;

  transition:.5s ease;
}

.polaroid:hover::before{
  opacity:1;
}

/* Hover */
.polaroid:hover{
  transform:
    rotate(0deg)
    scale(1.05)
    translateY(-8px);

  box-shadow:
    0 25px 60px rgba(215,170,195,.28);

  z-index:10;
}

/* Floating animation */
@keyframes float{

  from{
    transform:
      rotate(var(--rot,0deg))
      translateY(0);
  }

  to{
    transform:
      rotate(var(--rot,0deg))
      translateY(-10px);
  }

}

/* Image Container */
.polaroid-img{
  width:100%;

  aspect-ratio:1;

  border-radius:18px;

  overflow:hidden;

  position:relative;
}

/* Actual Image */
.polaroid-img img{
  width:100%;
  height:100%;

  object-fit:cover;

  display:block;

  transition:
    transform .8s ease,
    filter .5s ease;

  animation:
    galleryFade 1.2s ease;
}

/* Fade Animation */
@keyframes galleryFade{

  from{
    opacity:0;
    transform:scale(1.08);
  }

  to{
    opacity:1;
    transform:scale(1);
  }

}

/* Image Hover */
.polaroid:hover img{
  transform:scale(1.08);
  filter:brightness(1.05);
}

/* Overlay */
.polaroid-img::after{
  content:"";

  position:absolute;
  inset:0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,.28),
      transparent 60%
    );

  opacity:0;

  transition:.4s ease;
}

.polaroid:hover .polaroid-img::after{
  opacity:1;
}

/* Caption */
.polaroid-caption{
  text-align:center;

  font-size:.9rem;

  color:#7b5c6d;

  margin-top:16px;

  font-style:italic;

  line-height:1.6;

  letter-spacing:.02em;
}

/* Mobile */
@media(max-width:768px){

  .gallery-grid{
    gap:22px;
  }

  .polaroid{
    padding:12px 12px 22px;
  }

  .polaroid-caption{
    font-size:.82rem;
  }

}
/* ── LOVE LETTER SECTION ────────────────────────────────────── */
.letter-section { background: radial-gradient(ellipse at 30% 50%, rgba(255,77,141,0.07) 0%, transparent 60%); }

.envelope-wrapper {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  max-width: 640px; width: 100%;
}

.envelope {
  width: clamp(160px,30vw,220px);
  height: clamp(110px,20vw,150px);
  position: relative;
  animation: float 3s ease-in-out infinite alternate;
  cursor: pointer;
  filter: drop-shadow(0 0 30px rgba(255,77,141,0.3));
  transition: transform 0.3s var(--ease-bounce);
}
.envelope:hover { transform: scale(1.05) translateY(-5px); }

.envelope-flap {
  position: absolute; top: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(135deg, #2a1a3e, #3d1a2e);
  clip-path: polygon(0 0, 50% 60%, 100% 0);
  border-radius: 4px 4px 0 0;
  transform-origin: top center;
  transition: transform 0.6s var(--ease-smooth);
  z-index: 2;
}
.envelope.open .envelope-flap { transform: rotateX(-180deg); }

.envelope-body {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1e0a2e, #2e1040);
  border: 1px solid rgba(255,77,141,0.3);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.envelope-heart { font-size: clamp(2rem,5vw,3rem); animation: heartbeat 1.2s ease-in-out infinite; }

.letter-card {
  width: 100%;
  max-height: 400px; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,77,141,0.3) transparent;
}
.letter-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.85);
  font-weight: 300;
  white-space: pre-wrap;
}
.letter-text::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  color: var(--pink);
}
.letter-text.done::after { content: ''; }

/* ── TIMELINE SECTION ───────────────────────────────────────── */
.timeline-section { background: radial-gradient(ellipse at 70% 50%, rgba(157,78,221,0.07) 0%, transparent 60%); }

.timeline {
  position: relative;
  max-width: 900px; width: 100%;
  display: flex; flex-direction: column; gap: clamp(30px,5vw,50px);
}
.timeline-line {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--pink), var(--purple), var(--pink), transparent);
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(255,77,141,0.4);
}
@media (max-width: 640px) {
  .timeline-line { left: 28px; }
}

.timeline-item {
  display: flex; align-items: flex-start; gap: 0;
  position: relative;
}
.timeline-item.left  { flex-direction: row-reverse; }
.timeline-item.right { flex-direction: row; }

.timeline-dot {
  width: 48px; height: 48px; min-width: 48px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  position: relative; z-index: 2;
  box-shadow: 0 0 20px rgba(255,77,141,0.5), 0 0 40px rgba(255,77,141,0.2);
  transition: transform 0.3s var(--ease-bounce);
  flex-shrink: 0;
}
.timeline-item:hover .timeline-dot { transform: scale(1.15); }

.timeline-card {
  flex: 1;
  max-width: calc(50% - 48px);
  margin: 0 24px;
}
.timeline-card h3 {
  font-size: 1.1rem; font-weight: 600; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.timeline-card p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.65); font-weight: 300; }
.special-card { border-color: rgba(255,77,141,0.3); box-shadow: 0 0 40px rgba(255,77,141,0.15), inset 0 1px 0 rgba(255,255,255,0.1); }

@media (max-width: 640px) {
  .timeline-item.left, .timeline-item.right { flex-direction: row; }
  .timeline-card { max-width: calc(100% - 80px); margin-left: 16px; margin-right: 0; }
}

/* ── GAME SECTION ───────────────────────────────────────────── */
.game-section { min-height: auto; }
.game-wrapper { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; }
.game-score {
  font-size: 1.2rem; font-weight: 600;
  color: var(--pink-light); letter-spacing: 2px;
}
.game-area {
  width: min(500px,90vw); height: 400px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  position: relative; overflow: hidden;
  box-shadow: 0 0 40px rgba(157,78,221,0.1), inset 0 0 60px rgba(0,0,0,0.3);
}
#gameCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.basket {
  position: absolute; bottom: 12px;
  font-size: 2.2rem;
  transform: translateX(-50%);
  left: 50%;
  transition: left 0.05s;
  filter: drop-shadow(0 0 8px rgba(255,77,141,0.6));
  z-index: 2;
}
.game-popup {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 5000;
}
.popup-card { text-align: center; max-width: 400px; width: 90%; }
.popup-card h3 { font-size: 1.4rem; margin-bottom: 12px; background: linear-gradient(135deg,var(--pink),var(--purple-light)); -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text; }
.popup-card p  { font-size: 0.95rem; color: rgba(255,255,255,0.7); margin-bottom: 24px; }

/* ── GIFT SECTION ───────────────────────────────────────────── */
.gift-section { background: radial-gradient(ellipse at 50% 50%, rgba(255,77,141,0.06) 0%, transparent 70%); }
.gift-wrapper { display: flex; flex-direction: column; align-items: center; gap: 48px; }

.gift-box-container { display: flex; flex-direction: column; align-items: center; gap: 16px; cursor: pointer; }
.gift-hint { font-size: 0.9rem; color: rgba(255,255,255,0.45); letter-spacing: 2px; animation: pulseFade 2s ease-in-out infinite; }
@keyframes pulseFade { 0%,100%{opacity:0.45;} 50%{opacity:1;} }

.gift-box {
  width: clamp(120px,20vw,180px);
  height: clamp(110px,18vw,160px);
  position: relative;
  animation: giftFloat 3s ease-in-out infinite alternate;
  transition: transform 0.3s var(--ease-bounce);
  filter: drop-shadow(0 0 30px rgba(255,77,141,0.4));
}
.gift-box:hover, .gift-box-container:hover .gift-box { transform: scale(1.05); }
@keyframes giftFloat { from{transform:translateY(0);} to{transform:translateY(-12px);} }

.gift-lid {
  width: 110%; height: 35%;
  background: linear-gradient(135deg,#ff4d8d,#9d4edd);
  border-radius: 6px 6px 0 0;
  position: absolute; top: 0; left: -5%;
  transform-origin: top center;
  transition: transform 0.8s var(--ease-smooth);
  z-index: 2;
  overflow: hidden;
}
.gift-lid::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
}
.gift-box.opened .gift-lid { transform: rotateX(-110deg) translateY(-10px); }

.gift-ribbon-h {
  position: absolute; left: 0; right: 0;
  top: 50%; transform: translateY(-50%);
  height: 18%;
  background: rgba(255,255,255,0.25);
}
.gift-bow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 60%; height: 140%;
  display: flex; align-items: center; justify-content: center;
}
.bow-left, .bow-right {
  width: 36%; height: 80%;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  position: absolute;
}
.bow-left  { left: 0; transform: rotate(-30deg); }
.bow-right { right: 0; transform: rotate(30deg); }
.bow-center {
  width: 28%; height: 50%;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  position: absolute;
}

.gift-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 68%;
  background: linear-gradient(135deg,#c74dd4,#7b2fbe);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}
.gift-body::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.gift-ribbon-v {
  position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 18%;
  background: rgba(255,255,255,0.25);
}

.gift-message {
  max-width: 520px; width: 90%;
  text-align: center;
  animation: fadeInScale 0.6s var(--ease-bounce) both;
}
@keyframes fadeInScale { from{opacity:0;transform:scale(0.85);} to{opacity:1;transform:scale(1);} }
.gift-emoji { font-size: 2.5rem; display: block; margin-bottom: 16px; }
.gift-msg-content h3 { font-size: 1.6rem; margin-bottom: 16px; background: linear-gradient(135deg,var(--pink),var(--purple-light)); -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text; }
.gift-msg-content p  { font-size: 0.95rem; line-height: 1.8; color: rgba(255,255,255,0.75); margin-bottom: 12px; }
.gift-sign { font-family: var(--font-script); font-size: 1.5rem; color: var(--pink-light) !important; }

/* ── FINAL SECTION ──────────────────────────────────────────── */
.final-section {
  text-align: center;
  background: radial-gradient(ellipse at 50% 50%, rgba(157,78,221,0.15) 0%, transparent 70%);
  overflow: hidden;
}
.final-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 28px; }

.final-title {
  font-size: clamp(2.5rem,8vw,6rem);
  line-height: 1.2;
  font-weight: 700;
}
.final-sub {
  font-size: clamp(0.95rem,2vw,1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  letter-spacing: 0.3px;
}
.made-with {
  font-family: var(--font-script);
  font-size: clamp(1.2rem,3vw,2rem);
  color: var(--pink-light);
  filter: drop-shadow(0 0 20px rgba(255,77,141,0.5));
}

.heartbeat-ring {
  position: absolute;
  width: clamp(200px,40vw,500px); height: clamp(200px,40vw,500px);
  border: 1px solid rgba(255,77,141,0.15);
  border-radius: 50%;
  animation: rippleOut 3s ease-out infinite;
}
.heartbeat-ring.delay-1 { animation-delay: 1s; }
.heartbeat-ring.delay-2 { animation-delay: 2s; }
@keyframes rippleOut {
  from { transform: scale(0.5); opacity: 0.4; }
  to   { transform: scale(2); opacity: 0; }
}

/* ── MUSIC PLAYER ───────────────────────────────────────────── */
.music-player {
  position: fixed; bottom: 24px; right: 24px;
  width: clamp(240px, 30vw, 300px);
  padding: 16px 20px;
  z-index: 4000;
  animation: slideInRight 0.8s var(--ease-smooth) both;
  animation-delay: 0.5s;
  border-radius: 16px;
}
@keyframes slideInRight { from{opacity:0;transform:translateX(60px);} to{opacity:1;transform:translateX(0);} }

.music-info { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.music-disc {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  box-shadow: 0 0 20px rgba(255,77,141,0.3);
  flex-shrink: 0;
}
.music-disc.spinning { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.music-meta { flex: 1; min-width: 0; }
.music-title { font-size: 0.85rem; font-weight: 600; color: var(--white-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-artist { font-size: 0.7rem; color: rgba(255,255,255,0.45); }

.music-controls { display: flex; justify-content: center; margin-bottom: 10px; }
.music-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border: none; color: white; font-size: 0.85rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(255,77,141,0.3);
}
.music-btn:hover { transform: scale(1.12); box-shadow: 0 0 30px rgba(255,77,141,0.5); }

.music-progress { margin-bottom: 10px; }
.progress-bar {
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px; overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 999px;
  width: 0%; transition: width 0.5s linear;
}

.music-volume { display: flex; align-items: center; gap: 8px; }
.music-volume span { font-size: 0.8rem; }
.music-volume input[type="range"] {
  flex: 1; height: 3px; border-radius: 999px;
  background: rgba(255,255,255,0.1); cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.music-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--pink); cursor: pointer;
  box-shadow: 0 0 8px rgba(255,77,141,0.5);
}

/* ── CONFETTI CANVAS ────────────────────────────────────────── */
#confettiCanvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  width: 100%; height: 100%;
}

/* ── REVEAL ANIMATIONS ──────────────────────────────────────── */
.reveal-section { opacity: 1; }
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
  transition-delay: var(--delay, 0s);
}
.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.timeline-item.reveal-item.left  { transform: translateX(-30px); }
.timeline-item.reveal-item.right { transform: translateX(30px); }
.timeline-item.reveal-item.visible { transform: translateX(0); }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--pink),var(--purple)); border-radius: 999px; }

/* ── RESPONSIVE ADJUSTMENTS ─────────────────────────────────── */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 600px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .music-player { width: calc(100% - 32px); bottom: 16px; right: 16px; }
  .timeline-line { left: 24px; }
  .timeline-item { flex-direction: row !important; }
  .timeline-card { margin-left: 12px; margin-right: 0; max-width: calc(100% - 72px); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}
