/* ==========================================================================
   ROMANTIC LOVE & ANNIVERSARY CELEBRATION WEBSITE
   Fully Responsive, Interactive, Smooth Animations & Games
   ========================================================================== */

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

:root {
  /* Theme Palette - Deep Romantic Violet & Rose */
  --bg-dark: #0a0815;
  --bg-gradient: radial-gradient(circle at 50% 0%, #201335 0%, #0d0a1a 50%, #06050b 100%);
  --card-bg: rgba(26, 20, 48, 0.72);
  --card-border: rgba(255, 117, 143, 0.22);
  --card-glow: rgba(255, 77, 109, 0.15);
  
  --primary-rose: #ff4d6d;
  --primary-pink: #ff758f;
  --primary-light: #ffb3c1;
  --accent-gold: #ffd166;
  --accent-purple: #9d4edd;
  --accent-violet: #7b2cbf;
  
  --text-main: #f8f9fa;
  --text-muted: #c8b6d8;
  --text-dim: #8b7d9b;
  
  --font-script: 'Dancing Script', cursive;
  --font-hand: 'Caveat', cursive;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--card-glow);
  --shadow-neon: 0 0 15px rgba(255, 77, 109, 0.45);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background floating particles canvas */
#ambientCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Main Container */
.page-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 80px 16px;
}

@media (min-width: 900px) {
  .page-wrapper {
    max-width: 760px;
  }
}

/* Section Common Styling */
.section-wrapper {
  margin-top: 48px;
  margin-bottom: 48px;
  animation: fadeIn 0.8s ease-out;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.section-icon {
  font-size: 2.2rem;
  display: inline-block;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 10px rgba(255, 107, 138, 0.6));
  animation: gentlePulse 2.5s infinite ease-in-out;
}

.section-title {
  font-family: var(--font-script);
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(255, 77, 109, 0.5);
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
}

.glow-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-pink), var(--accent-gold), transparent);
  margin: 14px auto 0 auto;
  border-radius: var(--radius-full);
}

/* Glass Card Component */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* ==========================================================================
   1. Cinematic Hero Section (Full Viewport Screen)
   ========================================================================== */
.cinematic-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #020617; /* Tailwind bg-slate-950 */
  overflow: hidden;
  text-align: center;
  padding: 40px 16px 80px 16px;
  box-sizing: border-box;
  user-select: none;
}

.cinematic-glow {
  position: absolute;
  width: 650px;
  height: 650px;
  max-width: 95vw;
  max-height: 95vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.14) 0%, rgba(157, 78, 221, 0.08) 50%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
}

.cinematic-title-box {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  animation: cinematicFadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cinematicFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
}

.cinematic-title {
  font-family: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em; /* tracking-tighter */
  line-height: 0.85;
  font-size: 15vw;
  margin: 0;
  padding: 0;
  text-align: center;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop');
  background-size: 200% auto;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  animation: cinematicPan 25s linear infinite;
  text-shadow: none;
  user-select: none;
}

@media (min-width: 768px) {
  .cinematic-title {
    font-size: 12vw;
  }
}

@media (min-width: 1024px) {
  .cinematic-title {
    font-size: 10vw;
  }
}

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

.cinematic-footer {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: cinematicFooterFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  opacity: 0;
}

@keyframes cinematicFooterFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cinematic-subtext {
  color: rgba(148, 163, 184, 0.6); /* slate-400/60 */
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 300;
  margin: 0 0 16px 0;
  font-family: var(--font-sans);
}

.swipe-down-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.swipe-down-btn:hover {
  background: rgba(255, 77, 109, 0.15);
  border-color: rgba(255, 117, 143, 0.4);
  transform: translateY(2px);
  box-shadow: 0 8px 24px rgba(255, 77, 109, 0.25);
}

.swipe-down-label {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s ease;
  font-family: var(--font-sans);
}

.swipe-down-btn:hover .swipe-down-label {
  color: #fff;
}

.swipe-arrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  animation: swipeBounce 2s infinite ease-in-out;
}

.swipe-svg {
  width: 20px;
  height: 20px;
}

@keyframes swipeBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* ==========================================================================
   2. Countdown & Milestone Section
   ========================================================================== */
#counterSection {
  scroll-margin-top: 32px;
}

.counter-card {
  padding: 24px 18px;
}

.counter-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.counter-tab-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.counter-tab-btn.active, .counter-tab-btn:hover {
  background: linear-gradient(135deg, var(--primary-rose), #c9184a);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 77, 109, 0.35);
}

.counter-digits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.digit-box {
  background: rgba(15, 12, 30, 0.85);
  border: 1px solid rgba(255, 117, 143, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 4px;
  text-align: center;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.digit-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.digit-number {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 0 12px rgba(255, 117, 143, 0.6);
  font-variant-numeric: tabular-nums;
  transition: transform 0.2s ease;
}

.digit-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-light);
  font-weight: 600;
}

/* Secondary Relationship Stats */
.counter-stats-banner {
  display: flex;
  justify-content: space-around;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.15), rgba(255, 77, 109, 0.15));
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  text-align: center;
}

.stat-item .stat-val {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.stat-item .stat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kiss-button-wrapper {
  text-align: center;
}

.btn-kiss {
  background: linear-gradient(135deg, #ff4d6d, #e63946);
  border: none;
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-kiss:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(255, 77, 109, 0.6);
}

.btn-kiss:active {
  transform: translateY(1px) scale(0.97);
}

/* ==========================================================================
   3. Love Letter Section (Vintage Parchment Style)
   ========================================================================== */
.letter-envelope-container {
  position: relative;
  padding: 12px 4px;
}

.parchment-letter {
  background: #fbf7ee;
  background-image: 
    radial-gradient(#eedcb5 8%, transparent 8%),
    radial-gradient(#e8d3a7 8%, transparent 8%);
  background-position: 0 0, 15px 15px;
  background-size: 30px 30px;
  color: #2b231d;
  border-radius: 12px;
  padding: 36px 28px 28px 28px;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.4),
    0 0 0 1px #d6c096,
    0 0 20px rgba(255, 235, 178, 0.25);
  position: relative;
  overflow: visible;
  border-left: 6px solid #e2be84;
}

.parchment-letter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 35px rgba(184, 137, 72, 0.15);
  border-radius: 10px;
  pointer-events: none;
}

.wax-seal-stamp {
  position: absolute;
  top: -16px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: radial-gradient(circle at 30% 30%, #e63946, #9b111e);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  z-index: 3;
}

.letter-rose-corner {
  position: absolute;
  bottom: -12px;
  left: -8px;
  font-size: 28px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  z-index: 3;
}

.letter-salutation {
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: #8b2635;
  margin-bottom: 12px;
  font-weight: 700;
}

.letter-body {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  line-height: 1.5;
  color: #3b2c24;
  margin-bottom: 20px;
  min-height: 150px;
  transition: opacity 0.3s ease;
}

.letter-body p {
  margin-bottom: 12px;
}

.letter-signature {
  font-family: var(--font-script);
  font-size: 1.7rem;
  text-align: right;
  color: #8b2635;
  margin-bottom: 16px;
  line-height: 1.2;
}

.letter-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #d6c096;
  padding-top: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.letter-page-indicator {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #8b7355;
  font-weight: 600;
}

.letter-btn-group {
  display: flex;
  gap: 8px;
}

.btn-letter {
  background: #ecd9b5;
  border: 1px solid #c9b187;
  color: #4a3828;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-letter:hover {
  background: #deb887;
  color: #1a120b;
}

/* ==========================================================================
   4. Reasons Why I Love You (Starry Carousel)
   ========================================================================== */
.reasons-card {
  position: relative;
  background: radial-gradient(ellipse at center, #261642 0%, #120b24 70%, #090514 100%);
  border: 1px solid rgba(186, 104, 200, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(157, 78, 221, 0.2);
  text-align: center;
  padding: 32px 24px;
}

.stars-canvas-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.reasons-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 77, 109, 0.15);
  border: 1px solid rgba(255, 77, 109, 0.3);
  color: var(--primary-pink);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.reasons-quote-wrapper {
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: rgba(255, 117, 143, 0.3);
  position: absolute;
  line-height: 1;
}

.quote-left {
  top: -10px;
  left: 0;
}

.quote-right {
  bottom: -20px;
  right: 0;
}

.reason-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.reason-nav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.btn-circle-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-circle-nav:hover {
  background: var(--primary-rose);
  border-color: var(--primary-rose);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 77, 109, 0.5);
}

.btn-random-reason {
  background: rgba(157, 78, 221, 0.2);
  border: 1px solid rgba(157, 78, 221, 0.4);
  color: #e0aaff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-random-reason:hover {
  background: rgba(157, 78, 221, 0.4);
  color: #fff;
}

/* ==========================================================================
   5. Our Memories (Photo Gallery / Polaroids)
   ========================================================================== */
.memories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 6px;
  align-items: start;
}

@media (max-width: 480px) {
  .memories-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.polaroid-card {
  background: #ffffff;
  padding: 12px 12px 24px 12px;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0, 0, 0, 0.2);
  position: relative;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
  transform-origin: center center;
}

.polaroid-card:nth-child(odd) {
  transform: rotate(-1.5deg);
}

.polaroid-card:nth-child(even) {
  transform: rotate(1.5deg);
}

.polaroid-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.03);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 117, 143, 0.4);
  z-index: 10;
}

.polaroid-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 22px;
  background: rgba(255, 235, 180, 0.7);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  border-left: 2px dashed rgba(0, 0, 0, 0.1);
  border-right: 2px dashed rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.polaroid-heart-pin {
  position: absolute;
  top: 6px;
  right: 6px;
  color: #ff3366;
  font-size: 16px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
  z-index: 2;
}

.polaroid-img-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  background: #eee;
}

.polaroid-img-wrapper.polaroid-tall {
  aspect-ratio: 720 / 1495;
}

.polaroid-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.polaroid-caption {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: #2b2b2b;
  text-align: center;
  margin-top: 10px;
  padding: 0 4px;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
}

.polaroid-date {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: #888;
  text-align: center;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 4, 14, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  background: #ffffff;
  border-radius: 16px;
  width: -moz-fit-content;
  width: fit-content;
  max-width: min(92vw, 640px);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 14px 18px 14px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85);
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img-box {
  width: 100%;
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-box img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.lightbox-info {
  margin-top: 14px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}

.lightbox-title {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: #222;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
}

.lightbox-desc {
  font-size: 0.85rem;
  color: #666;
  margin-top: 6px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-rose);
  color: #fff;
  border: 2px solid #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 20;
}

.lightbox-close:hover {
  transform: scale(1.1);
  background: #ff3366;
}

/* ==========================================================================
   6. Mini Games Arcade ("Games For Us" 🧸)
   ========================================================================== */
.games-card {
  padding: 20px 16px;
}

.game-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 117, 143, 0.2);
  padding-bottom: 16px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.game-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.game-tab-btn.active, .game-tab-btn:hover {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-rose));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(157, 78, 221, 0.35);
}

.game-panel {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.game-panel.active {
  display: block;
}

/* Game Header / Score Bar */
.game-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 12, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-size: 0.88rem;
}

.game-stat-tag {
  color: var(--text-muted);
}

.game-stat-tag span {
  color: var(--accent-gold);
  font-weight: 700;
}

/* Game 1: Memory Match (Card Flip Grid) */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  perspective: 1000px;
  margin-bottom: 16px;
}

.memory-card {
  aspect-ratio: 1 / 1.1;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.memory-card.flipped, .memory-card.matched {
  transform: rotateY(180deg);
}

.memory-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.card-face-front {
  background: linear-gradient(135deg, #2b1f48, #181228);
  border: 1px solid rgba(255, 117, 143, 0.3);
  color: var(--primary-pink);
  font-size: 1.6rem;
}

.card-face-back {
  background: linear-gradient(135deg, #3d1b46, #240d29);
  border: 2px solid var(--accent-gold);
  transform: rotateY(180deg);
  font-size: 2rem;
}

.memory-card.matched .card-face-back {
  border-color: #4ade80;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
  animation: pulseGreen 0.6s ease;
}

/* Game 2: Heart Catcher Arcade */
.catcher-canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 117, 143, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  background: #0d0a1d;
}

#catcherCanvas {
  display: block;
  width: 100%;
  height: 320px;
  touch-action: none;
}

.catcher-controls-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
}

/* Game 3: Love Quiz */
.quiz-container {
  background: rgba(15, 12, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
}

.quiz-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--primary-rose), var(--accent-gold));
  transition: width 0.3s ease;
}

.quiz-question-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  text-align: center;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.quiz-option-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.quiz-option-btn:hover {
  background: rgba(255, 77, 109, 0.15);
  border-color: var(--primary-pink);
}

.quiz-option-btn.correct {
  background: rgba(74, 222, 128, 0.2) !important;
  border-color: #4ade80 !important;
  color: #4ade80 !important;
}

.quiz-option-btn.wrong {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

/* Game 4: Wheel of Dates */
.wheel-wrapper {
  text-align: center;
  padding: 10px 0;
  position: relative;
}

.wheel-canvas-box {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

#wheelCanvas {
  display: block;
  width: 280px;
  height: 280px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid #ff4d6d;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
  z-index: 5;
}

.wheel-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #ff85a2);
  color: #2b1235;
  font-weight: 700;
  font-size: 0.9rem;
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: transform 0.2s ease;
}

.wheel-center-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.wheel-center-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.wheel-result-msg {
  margin-top: 16px;
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--accent-gold);
  min-height: 40px;
}

/* Game 5: Tic-Tac-Toe (Hearts vs Stars) */
.tictactoe-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 280px;
  margin: 0 auto 16px auto;
}

.ttt-cell {
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 117, 143, 0.3);
  border-radius: var(--radius-md);
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ttt-cell:hover:empty {
  background: rgba(255, 77, 109, 0.15);
}

/* ==========================================================================
   7. Our Playlist Section (Spotify / macOS Style Player)
   ========================================================================== */
.music-player-window {
  background: #140f28;
  border: 1px solid rgba(255, 117, 143, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(157, 78, 221, 0.2);
  overflow: hidden;
}

.window-title-bar {
  background: #0f0b1f;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.window-title {
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.player-body {
  padding: 24px 20px;
}

.player-main-view {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .player-main-view {
    flex-direction: column;
    text-align: center;
  }
}

.vinyl-record-box {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #222 25%, #050505 30%, #151515 50%, #050505 70%);
  border: 3px solid #333;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.vinyl-disc.playing {
  animation: spinRecord 6s infinite linear;
}

.vinyl-center-art {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
}

.vinyl-center-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-details {
  flex-grow: 1;
}

.track-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.track-artist {
  font-size: 0.9rem;
  color: var(--primary-pink);
  margin-bottom: 10px;
}

/* Audio Visualizer Equalizer */
.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.eq-bar {
  width: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
  height: 4px;
  transition: height 0.15s ease;
}

.equalizer-bars.active .eq-bar:nth-child(1) { animation: eqBounce 0.8s infinite ease-in-out; }
.equalizer-bars.active .eq-bar:nth-child(2) { animation: eqBounce 1.1s infinite ease-in-out 0.2s; }
.equalizer-bars.active .eq-bar:nth-child(3) { animation: eqBounce 0.7s infinite ease-in-out 0.4s; }
.equalizer-bars.active .eq-bar:nth-child(4) { animation: eqBounce 0.9s infinite ease-in-out 0.1s; }
.equalizer-bars.active .eq-bar:nth-child(5) { animation: eqBounce 1.2s infinite ease-in-out 0.3s; }

/* Progress bar */
.player-scrubber-box {
  margin-bottom: 16px;
}

.scrubber-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.scrubber-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-rose), var(--accent-gold));
  border-radius: var(--radius-full);
}

.scrubber-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Playback Control Buttons */
.playback-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.btn-ctrl {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-ctrl:hover {
  color: #fff;
  transform: scale(1.15);
}

.btn-play-master {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-rose), #d90429);
  color: #fff;
  font-size: 1.3rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 77, 109, 0.5);
  transition: var(--transition-smooth);
}

.btn-play-master:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(255, 77, 109, 0.7);
}

/* Playlist Queue List */
.playlist-queue {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.queue-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.queue-item:hover, .queue-item.active {
  background: rgba(255, 77, 109, 0.15);
}

.queue-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.queue-item-num {
  font-size: 0.8rem;
  color: var(--text-dim);
  width: 16px;
}

.queue-item-name {
  font-size: 0.88rem;
  color: #fff;
}

.queue-item-dur {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ==========================================================================
   8. Voice Note Section
   ========================================================================== */
.voicenote-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 480px) {
  .voicenote-card {
    flex-direction: column;
    text-align: center;
  }
}

.voicenote-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-gold), var(--primary-rose));
  position: relative;
  flex-shrink: 0;
}

.voicenote-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.voicenote-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary-rose);
  opacity: 0;
  animation: rippleGlow 2s infinite ease-out;
}

.voicenote-content {
  flex-grow: 1;
  width: 100%;
}

.voicenote-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.voicenote-waves-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.btn-play-voice {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-rose);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(255, 77, 109, 0.4);
  transition: var(--transition-smooth);
}

.btn-play-voice:hover {
  transform: scale(1.1);
}

.waveform-canvas-box {
  flex-grow: 1;
  height: 36px;
  background: rgba(15, 12, 30, 0.7);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

#waveformCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.voice-transcript {
  margin-top: 10px;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--accent-gold);
  min-height: 24px;
}

/* ==========================================================================
   9. Love Coupons Section (2x3 Grid)
   ========================================================================== */
.coupons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 480px) {
  .coupons-grid {
    grid-template-columns: 1fr;
  }
}

.coupon-card {
  background: linear-gradient(135deg, #1f1838, #130d24);
  border: 1px dashed rgba(255, 117, 143, 0.4);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: var(--transition-smooth);
}

/* Ticket Notches on left & right */
.coupon-card::before, .coupon-card::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: var(--bg-dark);
  border-radius: 50%;
  transform: translateY(-50%);
}

.coupon-card::before { left: -8px; }
.coupon-card::after { right: -8px; }

.coupon-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-pink);
  box-shadow: 0 12px 25px rgba(255, 77, 109, 0.25);
}

.coupon-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.coupon-icon {
  font-size: 1.6rem;
}

.coupon-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.coupon-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.coupon-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.coupon-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-gold);
}

.btn-redeem {
  background: rgba(255, 77, 109, 0.2);
  border: 1px solid var(--primary-rose);
  color: #fff;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-redeem:hover {
  background: var(--primary-rose);
  box-shadow: 0 0 10px rgba(255, 77, 109, 0.5);
}

.coupon-card.redeemed {
  opacity: 0.75;
  border-color: #4ade80;
}

.coupon-stamp {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  border: 3px solid #ff4d6d;
  color: #ff4d6d;
  padding: 4px 12px;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(255, 77, 109, 0.6);
  pointer-events: none;
  display: none;
}

.coupon-card.redeemed .coupon-stamp {
  display: block;
  animation: stampDown 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   10. Secret Message / Time Capsule Section (Airmail Style)
   ========================================================================== */
.capsule-wrapper {
  position: relative;
  padding: 10px;
}

.airmail-card {
  background: #fbf8f0;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 209, 102, 0.2);
  border: 8px solid transparent;
  /* Classic red & blue diagonal candy stripe airmail border */
  border-image: repeating-linear-gradient(
    -45deg,
    #d90429 0,
    #d90429 12px,
    transparent 12px,
    transparent 18px,
    #1d3557 18px,
    #1d3557 30px,
    transparent 30px,
    transparent 36px
  ) 12;
}

.airmail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.airmail-badge {
  background: #1d3557;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
}

.airmail-postage-stamp {
  width: 52px;
  height: 62px;
  border: 2px dashed #b88b4a;
  padding: 4px;
  text-align: center;
  font-size: 0.65rem;
  color: #8b6b38;
}

.airmail-seal-center {
  text-align: center;
  margin: 30px 0;
}

.wax-seal-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e63946, #7a0c16);
  border: 3px solid #ff758f;
  box-shadow: 0 8px 25px rgba(122, 12, 22, 0.6), inset 0 3px 6px rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: gentlePulse 2s infinite ease-in-out;
}

.wax-seal-btn:hover {
  transform: scale(1.1);
}

.seal-instruction {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: #6b4c2b;
  margin-top: 10px;
}

.secret-letter-content {
  display: none;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: #2b221a;
  line-height: 1.6;
  border-top: 1px dashed #c9b187;
  padding-top: 20px;
  animation: slideDownFade 0.6s ease-out;
}

.secret-letter-content.unlocked {
  display: block;
}

/* ==========================================================================
   11. Footer Section
   ========================================================================== */
.footer-section {
  text-align: center;
  padding-top: 30px;
  position: relative;
}

.footer-mascot {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px auto;
  animation: mascotBob 3s infinite ease-in-out;
}

.footer-heart-line {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.footer-message {
  font-family: var(--font-script);
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 77, 109, 0.5);
  margin-bottom: 6px;
}

.footer-credits {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Floating Action Controls Widget */
.floating-widgets {
  display: none !important;
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}

.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(26, 20, 48, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 117, 143, 0.4);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.float-btn:hover {
  background: var(--primary-rose);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 77, 109, 0.6);
}

/* Settings Modal */
.settings-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 4, 14, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.settings-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.settings-box {
  background: #19142e;
  border: 1px solid rgba(255, 117, 143, 0.3);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  position: relative;
}

.settings-title {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(10, 8, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-pink);
  box-shadow: 0 0 10px rgba(255, 117, 143, 0.3);
}

.settings-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes balloonFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

@keyframes mascotBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes spinRecord {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50% { height: 20px; }
}

@keyframes rippleGlow {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes stampDown {
  0% { transform: translate(-50%, -50%) scale(2.5) rotate(-30deg); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(-15deg); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGreen {
  0% { transform: rotateY(180deg) scale(1); }
  50% { transform: rotateY(180deg) scale(1.08); }
  100% { transform: rotateY(180deg) scale(1); }
}
