/* =======================================================================
   SPARSHITAA'S SANCTUARY - CORE DESIGN SYSTEM & STYLING
   ======================================================================= */

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

:root {
  /* Color Palette */
  --bg-deep: #080915;
  --bg-twilight: #121026;
  --bg-nebula: #1c1539;
  
  --rose-gold: #f7b2bd;
  --rose-soft: #ffcfd2;
  --amber-glow: #ffe599;
  --lavender: #c77dff;
  --coral-blush: #f38375;

  --text-primary: #f8f9fa;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --text-accent: #f7b2bd;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-glow: rgba(247, 178, 189, 0.2);
  --glass-card-bg: rgba(20, 18, 42, 0.65);

  /* Fonts */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-hand: 'Caveat', cursive;

  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Aurora Glow Spheres */
body::before {
  content: '';
  position: fixed;
  top: -10vw;
  left: 15vw;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 178, 189, 0.12) 0%, rgba(199, 125, 255, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: 5vh;
  right: 10vw;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 229, 153, 0.08) 0%, rgba(247, 178, 189, 0.04) 50%, transparent 70%);
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

body.locked-scroll {
  overflow: hidden;
  height: 100vh;
}

/* Background Canvas */
#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* App Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem 7rem;
}

/* Elevated Glass Card Utility */
.glass-card {
  background: rgba(18, 16, 38, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.16), 0 0 24px rgba(247, 178, 189, 0.06);
  padding: 2.2rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(247, 178, 189, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.25), 0 0 30px rgba(247, 178, 189, 0.18);
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--text-primary);
}

.handwritten {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  color: var(--rose-gold);
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose-gold);
  background: rgba(247, 178, 189, 0.12);
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 178, 189, 0.25);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  background: linear-gradient(135deg, #ffffff 0%, var(--rose-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* =======================================================================
   ENTRANCE WAX SEAL OVERLAY (INTERACTION GATEWAY)
   ======================================================================= */
.entrance-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #1c1539 0%, #080915 90%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.entrance-overlay.fade-out {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}

.entrance-box {
  max-width: 540px;
  width: 100%;
}

.entrance-tag {
  font-family: var(--font-hand);
  font-size: 2rem;
  color: var(--rose-gold);
  margin-bottom: 0.5rem;
}

.entrance-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.entrance-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* Wax Seal Button */
.wax-seal-btn {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f27083, #b51735);
  border: 4px solid #f998a9;
  box-shadow: 0 10px 30px rgba(181, 23, 53, 0.6), inset 0 2px 8px rgba(255, 255, 255, 0.4), 0 0 25px rgba(247, 178, 189, 0.4);
  cursor: pointer;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.wax-seal-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 40px rgba(181, 23, 53, 0.8), inset 0 2px 10px rgba(255, 255, 255, 0.6), 0 0 40px rgba(247, 178, 189, 0.6);
}

.wax-seal-btn:active {
  transform: scale(0.96);
}

.wax-seal-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 2px;
}

.wax-seal-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.entrance-prompt {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =======================================================================
   HERO / WELCOME SANCTUARY SECTION
   ======================================================================= */
.hero-section {
  padding: 4rem 0 2rem;
  text-align: center;
}

.hero-cover-container {
  position: relative;
  width: 100%;
  max-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-cover-img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.hero-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 21, 0.1) 0%, rgba(8, 9, 21, 0.85) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2.5rem 1.5rem;
}

.hero-greeting-tag {
  font-family: var(--font-hand);
  font-size: 2.2rem;
  color: var(--amber-glow);
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  color: var(--rose-soft);
  font-size: 1.15rem;
  max-width: 650px;
}

/* =======================================================================
   THE CORE LETTER (NO PRESSURE, JUST LOVE)
   ======================================================================= */
.letter-section {
  margin: 4rem 0;
}

.letter-card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(28, 21, 57, 0.85), rgba(12, 11, 28, 0.95));
  border: 1px solid rgba(247, 178, 189, 0.25);
  border-radius: 28px;
  padding: 3.5rem 3rem;
  max-width: 860px;
  margin: 0 auto;
}

.letter-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.letter-greeting {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--rose-gold);
}

.letter-postmark {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--amber-glow);
  opacity: 0.8;
}

.letter-para {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 1.6rem;
}

.letter-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: right;
}

.letter-closing {
  font-size: 1rem;
  color: var(--text-muted);
}

.letter-signature {
  font-family: var(--font-hand);
  font-size: 2.2rem;
  color: var(--rose-gold);
}

/* =======================================================================
   SPECIAL DATES TIMELINE
   ======================================================================= */
.milestones-section {
  margin: 6rem 0;
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.milestone-card {
  position: relative;
  overflow: hidden;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
}

.milestone-badge {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(247, 178, 189, 0.15);
  color: var(--rose-soft);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(247, 178, 189, 0.2);
}

.milestone-date {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--amber-glow);
  margin-bottom: 0.4rem;
}

.milestone-title {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.milestone-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.milestone-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.milestone-sparkle {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--rose-gold);
}

/* =======================================================================
   BEAUTIFUL SPOTLIGHTS (EYES & LIPS)
   ======================================================================= */
.spotlights-section {
  margin: 6rem 0;
}

.spotlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.spotlight-card {
  padding: 1.8rem;
  text-align: center;
}

.spotlight-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(247, 178, 189, 0.3);
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.spotlight-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--rose-soft);
  margin-bottom: 0.5rem;
}

.spotlight-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* =======================================================================
   SIT-UPS PUNISHMENT CORNER
   ======================================================================= */
.punishment-section {
  margin: 6rem 0;
}

.punishment-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid rgba(255, 140, 150, 0.3);
  background: radial-gradient(circle at center, rgba(35, 20, 50, 0.7), rgba(12, 10, 24, 0.9));
}

.punishment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: #ff8fa3;
  background: rgba(255, 143, 163, 0.15);
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 143, 163, 0.3);
}

.punishment-video-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 9;
  margin: 2rem auto;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.punishment-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-fallback-box {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(circle at center, #2b1a3d 0%, #0d0b1a 100%);
}

.fallback-avatar {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: situpBob 1.6s ease-in-out infinite;
}

.fallback-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--amber-glow);
  margin-bottom: 0.5rem;
}

.fallback-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Punishment Order Box & Slider */
.punishment-order-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(247, 178, 189, 0.4);
  border-radius: 20px;
  padding: 1.6rem 1.4rem;
  margin: 1.5rem auto 1rem;
  max-width: 600px;
  text-align: center;
}

.order-notice {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.slider-display-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.slider-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.slider-value-badge {
  background: linear-gradient(135deg, rgba(247, 178, 189, 0.25), rgba(255, 143, 163, 0.15));
  border: 1.5px solid var(--rose-gold);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  box-shadow: 0 0 15px rgba(247, 178, 189, 0.3);
}

.situp-slider {
  width: 100%;
  accent-color: #ff758f;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.situp-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.screenshot-stamp {
  background: rgba(255, 214, 165, 0.12);
  border: 1.5px solid var(--amber-glow);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  color: var(--amber-glow);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  display: inline-block;
  box-shadow: 0 0 15px rgba(255, 229, 153, 0.2);
}

.screenshot-stamp .stamp-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* =======================================================================
   INSECURITIES FINALE SECTION
   ======================================================================= */
.insecurities-section {
  margin: 6rem 0 2rem;
}

.insecurities-card {
  max-width: 860px;
  margin: 0 auto;
  background: radial-gradient(circle at 50% 0%, rgba(55, 30, 80, 0.8), rgba(15, 12, 30, 0.95));
  border: 2px solid rgba(199, 125, 255, 0.35);
  border-radius: 28px;
  padding: 3.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(199, 125, 255, 0.2);
}

.insecurities-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.insecurities-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #ffffff;
  margin-bottom: 1rem;
}

.insecurities-lead {
  font-family: var(--font-hand);
  font-size: 2.2rem;
  color: var(--rose-gold);
  margin-bottom: 1.8rem;
  line-height: 1.3;
}

.insecurities-msg p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

/* =======================================================================
   FLOATING AUDIO PLAYER DOCK
   ======================================================================= */
.floating-music-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 16, 38, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(247, 178, 189, 0.3);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(247, 178, 189, 0.25);
  transition: transform 0.3s ease;
}

.floating-music-dock:hover {
  transform: translateY(-2px);
}

.music-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-gold), #b51735);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(181, 23, 53, 0.4);
  transition: transform 0.2s ease;
}

.music-toggle-btn:hover {
  transform: scale(1.08);
}

.music-info {
  display: flex;
  flex-direction: column;
}

.track-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.track-artist {
  font-size: 0.72rem;
  color: var(--rose-soft);
}

.music-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.music-visualizer .bar {
  width: 3px;
  height: 6px;
  background: var(--rose-gold);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.music-visualizer.playing .bar:nth-child(1) { animation: barJump 0.8s ease-in-out infinite alternate; }
.music-visualizer.playing .bar:nth-child(2) { animation: barJump 0.6s ease-in-out 0.2s infinite alternate; }
.music-visualizer.playing .bar:nth-child(3) { animation: barJump 0.9s ease-in-out 0.4s infinite alternate; }

.volume-control {
  display: flex;
  align-items: center;
}

.volume-slider {
  width: 70px;
  accent-color: var(--rose-gold);
  cursor: pointer;
}

/* =======================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST POLISH)
   ======================================================================= */
@media (max-width: 768px) {
  .app-container {
    padding: 0 1rem 7.5rem;
  }

  .hero-section {
    padding: 2rem 0 1rem;
  }

  .hero-cover-container {
    max-height: 280px;
    border-radius: 20px;
    margin-bottom: 1.8rem;
  }

  .hero-cover-overlay {
    padding: 1.5rem 1rem;
  }

  .hero-greeting-tag {
    font-size: 1.7rem;
  }

  .hero-name {
    font-size: 2.3rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section-title-wrap {
    margin-bottom: 2.2rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .glass-card {
    padding: 1.6rem 1.2rem;
    border-radius: 20px;
  }

  .milestones-section,
  .spotlights-section,
  .punishment-section,
  .games-section,
  .worry-section,
  .insecurities-section {
    margin: 3.5rem 0;
  }

  .milestones-grid,
  .spotlights-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .letter-card {
    padding: 1.8rem 1.2rem;
    border-radius: 20px;
  }

  .letter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 1.2rem;
  }

  .letter-greeting {
    font-size: 1.45rem;
  }

  .letter-para {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.2rem;
  }

  .letter-signature {
    font-size: 1.8rem;
  }

  .insecurities-card {
    padding: 2rem 1.2rem;
    border-radius: 22px;
  }

  .insecurities-icon {
    font-size: 2.4rem;
  }

  .insecurities-title {
    font-size: 1.6rem;
  }

  .insecurities-lead {
    font-size: 1.6rem;
  }

  .insecurities-msg p {
    font-size: 1rem;
    line-height: 1.75;
  }

  /* Floating music dock mobile polish */
  .floating-music-dock {
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(247, 178, 189, 0.2);
  }

  .track-title {
    font-size: 0.78rem;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .track-artist {
    font-size: 0.68rem;
  }

  .volume-slider {
    width: 45px;
  }
}
