/* ==========================================================================
   COXYRA.STORE — INTERACTIVE BIRTHDAY WEBSITE STYLESHEET
   Aesthetic: Romantic, Cute, Intimate, Playful, Premium & Mobile-First
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #FDFBF7;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-dark: #151014;
  --bg-dark-surface: #22171E;
  
  --rose-50: #FDF6F7;
  --rose-100: #F9EBEC;
  --rose-200: #F4D5D8;
  --rose-300: #EAA8B0;
  --rose-400: #DC7B87;
  --rose-500: #C05C6B;
  --rose-600: #9B3445;
  --rose-700: #782333;
  
  --lavender-subtle: #F3EFF9;
  --cream-accent: #FAF3EB;
  
  --text-main: #281D20;
  --text-muted: #6E5C62;
  --text-light: #9B888E;
  --text-white: #FFF7F8;
  
  --border-light: rgba(234, 168, 176, 0.28);
  --border-glass: rgba(255, 255, 255, 0.45);
  
  --shadow-sm: 0 4px 14px rgba(120, 35, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(120, 35, 51, 0.09);
  --shadow-lg: 0 20px 50px rgba(120, 35, 51, 0.14);
  --shadow-glow: 0 0 35px rgba(192, 92, 107, 0.35);

  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', cursive;

  /* Transitions */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Canvas Particle Overlay */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   FLOATING AUDIO CONTROL
   ========================================================================== */
.audio-control {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 999;
}

.audio-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--rose-600);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-smooth);
}

.audio-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.92);
}

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

.audio-waves {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.audio-waves .bar {
  width: 2.5px;
  height: 4px;
  background: var(--rose-500);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.audio-playing .bar-1 { animation: wave 0.8s infinite ease-in-out; }
.audio-playing .bar-2 { animation: wave 0.8s infinite ease-in-out 0.2s; }
.audio-playing .bar-3 { animation: wave 0.8s infinite ease-in-out 0.4s; }
.audio-playing .bar-4 { animation: wave 0.8s infinite ease-in-out 0.1s; }

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* ==========================================================================
   SECRET CORNER EASTER EGG BUTTON
   ========================================================================== */
.secret-corner-btn {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 998;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(234, 168, 176, 0.2);
  color: var(--rose-300);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
  opacity: 0.35;
}

.secret-corner-btn:hover {
  opacity: 1;
  transform: scale(1.15) rotate(45deg);
  background: var(--rose-50);
  color: var(--rose-600);
  box-shadow: 0 0 15px rgba(220, 123, 135, 0.4);
}

/* ==========================================================================
   STAGES & VISIBILITY TRANSITIONS
   ========================================================================== */
.stage {
  display: none;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.7s var(--ease-cinematic), transform 0.7s var(--ease-cinematic);
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
}

.stage-active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: scale(1);
}

.stage-loader {
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #241920 0%, #151014 100%);
  color: var(--text-white);
}

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

.pulsing-heart-icon {
  font-size: 3rem;
  color: var(--rose-400);
  display: inline-block;
  animation: heartPulse 1.4s infinite ease-in-out;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 18px rgba(220, 123, 135, 0.8)); }
}

.loader-subtext {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  color: var(--rose-200);
  margin-top: 12px;
  opacity: 0.85;
}

/* ==========================================================================
   STAGE 1: OPENING EXPERIENCE
   ========================================================================== */
.stage-opening {
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #22161E 0%, #130E12 100%);
  color: var(--text-white);
  padding: 24px;
  text-align: center;
}

.opening-container {
  max-width: 580px;
  width: 100%;
}

.opening-step {
  display: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-cinematic);
}

.opening-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.teaser-text {
  font-family: var(--font-hand);
  font-size: 2.2rem;
  color: var(--rose-200);
}

.teaser-heading {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.3;
  color: #FFF2F4;
  letter-spacing: -0.5px;
}

.teaser-subheading {
  font-family: var(--font-editorial);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--rose-200);
  line-height: 1.4;
}

/* ==========================================================================
   STAGE 2: THE "ARE YOU SURE?" GAME
   ========================================================================== */
.stage-game {
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #281922 0%, #160F14 100%);
  color: var(--text-white);
  padding: 20px;
}

.game-card {
  width: 100%;
  max-width: 480px;
  background: rgba(36, 23, 31, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(234, 168, 176, 0.22);
  border-radius: 28px;
  padding: 36px 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.playful-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rose-300);
  background: rgba(220, 123, 135, 0.15);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.game-question {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: #FFF2F4;
  line-height: 1.35;
  margin-bottom: 8px;
}

.game-question-sm {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--rose-200);
}

.game-hint, .game-subtext {
  font-size: 0.95rem;
  color: var(--rose-200);
  opacity: 0.8;
  margin-bottom: 24px;
}

.evasive-arena {
  position: relative;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-evasive {
  transition: transform 0.25s var(--ease-spring), left 0.25s var(--ease-spring), top 0.25s var(--ease-spring);
}

.game-quip-text {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--rose-300);
  min-height: 28px;
  margin-top: 10px;
}

/* ==========================================================================
   STAGE 3: FAKE-OUT LOADING BAR
   ========================================================================== */
.stage-fakeout {
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #261720 0%, #150F13 100%);
  color: var(--text-white);
  padding: 24px;
}

.fakeout-container {
  width: 100%;
  max-width: 460px;
  background: rgba(36, 23, 31, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(234, 168, 176, 0.25);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.sparkle-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  animation: rotateSparkle 3s linear infinite;
}

@keyframes rotateSparkle {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

.fakeout-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #FFF2F4;
  margin-bottom: 24px;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #DC7B87, #F4D5D8, #DC7B87);
  background-size: 200% 100%;
  border-radius: 99px;
  transition: width 0.3s ease;
  animation: shimmer 1.5s infinite linear;
  box-shadow: 0 0 12px rgba(220, 123, 135, 0.6);
}

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

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--rose-200);
}

.progress-percent {
  font-weight: 700;
  font-size: 0.95rem;
}

.fakeout-gag-overlay {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(234, 168, 176, 0.25);
  animation: fadeIn 0.4s ease forwards;
}

.gag-wait {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  color: var(--rose-300);
}

.gag-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFF2F4;
}

/* ==========================================================================
   STAGE 4: MAIN REVEAL SCREEN
   ========================================================================== */
.stage-main {
  background-color: var(--bg-main);
  color: var(--text-main);
  padding: 0;
  display: block; /* Standard scrolling layout */
}

.main-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}

/* Hero Section */
.hero-section {
  padding: 40px 0 60px;
  position: relative;
}

.tag-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 99px;
  background: var(--rose-100);
  border: 1px solid var(--rose-200);
  color: var(--rose-600);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.her-name-highlight {
  color: var(--rose-600);
  position: relative;
  display: inline-block;
}

.her-name-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--rose-200);
  opacity: 0.6;
  z-index: -1;
  border-radius: 4px;
}

.hero-sub1 {
  font-family: var(--font-editorial);
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  color: var(--text-muted);
  font-style: italic;
  max-width: 580px;
  margin: 0 auto 8px;
}

.hero-sub2 {
  font-family: var(--font-editorial);
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  color: var(--rose-600);
  font-weight: 600;
  max-width: 580px;
  margin: 0 auto 36px;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 0.85rem;
  animation: floatDown 2s infinite ease-in-out;
}

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

/* ==========================================================================
   4 INTERACTIVE "OPEN THIS" CARDS GRID
   ========================================================================== */
.cards-grid-section {
  margin-bottom: 90px;
}

.section-heading-wrap {
  text-align: center;
  margin-bottom: 36px;
}

.sub-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rose-500);
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  color: var(--text-main);
  font-weight: 600;
}

.section-subtitle {
  font-family: var(--font-editorial);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 4px;
}

.gallery-tip {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 6px;
}

.interactive-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gift-card {
  cursor: pointer;
  perspective: 1000px;
}

.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease-spring);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gift-card:hover .card-glass {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--rose-300);
  background: var(--bg-card-hover);
}

.gift-card:active .card-glass {
  transform: scale(0.98);
}

.card-number {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rose-300);
  margin-bottom: 12px;
}

.card-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--rose-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.gift-card:hover .card-icon-circle {
  transform: scale(1.1) rotate(6deg);
  background: var(--rose-200);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rose-600);
  padding-top: 14px;
  border-top: 1px solid rgba(234, 168, 176, 0.2);
}

.arrow-sparkle {
  transition: transform 0.3s ease;
}

.gift-card:hover .arrow-sparkle {
  transform: translateX(4px);
}

.card-spotlight .card-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 235, 236, 0.9));
  border: 1.5px solid var(--rose-300);
}

/* ==========================================================================
   PHOTO MUSEUM: POLAROID SCATTERED GALLERY
   ========================================================================== */
.photo-museum-section {
  margin-bottom: 100px;
}

.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 26px;
  padding: 20px 0;
}

.polaroid-card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 12px 12px 20px;
  box-shadow: 0 10px 25px rgba(80, 20, 30, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
  position: relative;
  text-align: center;
}

.polaroid-card:nth-child(odd) { transform: rotate(-2deg); }
.polaroid-card:nth-child(even) { transform: rotate(2.5deg); }
.polaroid-card:nth-child(3n) { transform: rotate(-1.5deg); }
.polaroid-card:nth-child(4n) { transform: rotate(3deg); }

.polaroid-card:hover {
  transform: translateY(-10px) rotate(0deg) scale(1.04);
  box-shadow: 0 20px 40px rgba(120, 35, 51, 0.16);
  z-index: 10;
}

.polaroid-card:active {
  transform: scale(0.98);
}

.polaroid-img-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #F6F0F2;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

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

.polaroid-caption {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--text-main);
  margin-top: 12px;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.polaroid-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 20px;
  background: rgba(244, 213, 216, 0.65);
  backdrop-filter: blur(4px);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ==========================================================================
   THE ONE PHOTO OF US (CINEMATIC SPOTLIGHT)
   ========================================================================== */
.us-spotlight-section {
  margin-bottom: 110px;
  padding: 50px 24px;
  background: radial-gradient(circle at center, #271A22 0%, #150F14 100%);
  border-radius: 36px;
  color: var(--text-white);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(21, 15, 20, 0.35);
}

.spotlight-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.spotlight-lead {
  font-family: var(--font-hand);
  font-size: 2rem;
  color: var(--rose-300);
}

.spotlight-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  font-weight: 600;
  color: #FFF2F4;
  margin-bottom: 30px;
}

.us-frame-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 30px;
  max-width: 100%;
}

.us-frame-glow {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: radial-gradient(circle, rgba(220, 123, 135, 0.4) 0%, rgba(220, 123, 135, 0) 70%);
  filter: blur(20px);
  z-index: 1;
}

.us-photo-card {
  position: relative;
  z-index: 2;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  background: #1E1419;
  max-height: 480px;
}

.us-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease-cinematic);
}

.us-photo-card:hover .us-img {
  transform: scale(1.04);
}

.spotlight-caption {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--rose-200);
  margin-bottom: 8px;
}

.spotlight-subcaption {
  font-size: 0.95rem;
  color: #DFC8CD;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   FINALE TRIGGER SECTION
   ========================================================================== */
.finale-trigger-section {
  margin-bottom: 80px;
}

.finale-teaser-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 40px 24px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.finale-p1 {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  color: var(--rose-600);
}

.finale-p2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-main);
}

.pause-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 1.6rem;
  color: var(--rose-400);
  margin: 4px 0;
}

.finale-p3 {
  font-family: var(--font-editorial);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ==========================================================================
   FINAL PLAYFUL RUPEES GAG
   ========================================================================== */
.final-gag-section {
  padding-bottom: 40px;
}

.gag-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.gag-question {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 20px;
}

.gag-btn-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.gag-response-area {
  padding: 16px;
  background: var(--rose-50);
  border-radius: 16px;
  border: 1px dashed var(--rose-200);
  margin: 16px 0 24px;
  animation: fadeIn 0.4s ease;
}

.gag-lead {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  color: var(--rose-600);
}

.gag-p1, .gag-p2 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-top: 4px;
}

.footer-creds {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 24px;
  border-top: 1px solid rgba(234, 168, 176, 0.2);
  padding-top: 16px;
}

.footer-domain {
  font-weight: 600;
  color: var(--rose-400);
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ==========================================================================
   MODALS SYSTEM
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(21, 16, 20, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 18px;
}

.modal-backdrop.modal-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #FFFFFF;
  border-radius: 28px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s var(--ease-spring);
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 26px;
}

.modal-backdrop.modal-open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--rose-100);
  color: var(--rose-600);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--rose-200);
  transform: scale(1.1);
}

/* Modal 1: Letter / Secret Note */
.letter-paper {
  position: relative;
  padding: 10px 4px;
}

.letter-stamp {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.letter-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rose-500);
  background: var(--rose-100);
  padding: 3px 10px;
  border-radius: 99px;
}

.letter-heading {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--text-main);
  margin: 12px 0 18px;
}

.letter-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.letter-sig {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  color: var(--rose-600);
  margin-top: 24px;
  text-align: right;
}

/* Modal 2: Things I love about you (Stacked Swipe Deck) */
.deck-stage {
  position: relative;
  height: 270px;
  margin: 20px 0;
  perspective: 1000px;
}

.deck-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FFFDFB 0%, #FAF0F2 100%);
  border: 1.5px solid var(--rose-200);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(120, 35, 51, 0.08);
  transition: all 0.4s var(--ease-spring);
  user-select: none;
}

.deck-card.card-active {
  transform: translateY(0) scale(1);
  z-index: 5;
  opacity: 1;
}

.deck-card.card-next {
  transform: translateY(12px) scale(0.95);
  z-index: 4;
  opacity: 0.7;
}

.deck-card.card-hidden {
  transform: translateY(24px) scale(0.9);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.deck-card-num {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rose-400);
  margin-bottom: 8px;
}

.deck-card-highlight {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 10px;
}

.deck-card-detail {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.deck-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.deck-counter {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* Modal 3: Little Memories Timeline */
.timeline-tree {
  margin-top: 24px;
  position: relative;
  padding-left: 24px;
}

.timeline-tree::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 2px;
  background: var(--rose-200);
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  cursor: pointer;
}

.timeline-node {
  position: absolute;
  top: 4px;
  left: -24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--rose-500);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-node {
  transform: scale(1.3);
  background: var(--rose-500);
}

.timeline-card {
  background: var(--rose-50);
  border: 1px solid var(--rose-100);
  border-radius: 16px;
  padding: 16px 18px;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-card {
  background: #FFFFFF;
  border-color: var(--rose-300);
  box-shadow: var(--shadow-sm);
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.timeline-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rose-500);
  text-transform: uppercase;
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--text-light);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.timeline-preview {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.timeline-detail {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--rose-200);
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.timeline-item.expanded .timeline-detail {
  display: block;
}

.timeline-item.expanded .timeline-preview {
  display: none;
}

/* Lightbox Modal */
.lightbox-dialog {
  max-width: 520px;
  padding: 14px;
  background: #FFFFFF;
  border-radius: 20px;
}

.lightbox-img-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #F6EFF1;
  max-height: 70vh;
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.lightbox-heart-pop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 4.5rem;
  pointer-events: none;
  opacity: 0;
  transition: all 0.5s var(--ease-spring);
}

.lightbox-heart-pop.pop {
  transform: translate(-50%, -50%) scale(1.3);
  opacity: 1;
}

.lightbox-info {
  padding: 16px 10px 6px;
  text-align: center;
}

.lightbox-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--rose-400);
}

.lightbox-caption {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--text-main);
  margin-top: 2px;
}

.lightbox-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Secret Easter Egg Modal */
.secret-modal-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rose-500);
  margin-bottom: 8px;
}

.secret-modal-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.secret-modal-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   STAGE 5: "ONE LAST THING" CINEMATIC FINALE OVERLAY
   ========================================================================== */
.stage-finale {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 30%, #291823 0%, #120D11 100%);
  color: var(--text-white);
  z-index: 2000;
  overflow-y: auto;
  display: none;
}

.stage-finale.stage-active {
  display: block;
  animation: fadeIn 0.8s ease forwards;
}

.finale-back-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--rose-200);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2001;
}

.finale-back-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.finale-scroll-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
}

.finale-content {
  max-width: 620px;
  width: 100%;
}

.finale-lead-block {
  text-align: center;
  margin-bottom: 40px;
}

.finale-lead-line {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  font-weight: 600;
  color: #FFF2F4;
  line-height: 1.35;
  margin-bottom: 12px;
}

.finale-letter-card {
  background: rgba(38, 24, 33, 0.82);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(234, 168, 176, 0.25);
  border-radius: 28px;
  padding: 40px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  position: relative;
  margin-bottom: 36px;
}

.letter-wax-seal {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C05C6B, #782333);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(120, 35, 51, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.finale-letter-lines p {
  font-family: var(--font-editorial);
  font-size: 1.35rem;
  line-height: 1.7;
  color: #F8E6E9;
  margin-bottom: 18px;
}

.finale-signoff {
  margin-top: 30px;
  text-align: right;
}

.signoff-with {
  font-size: 0.9rem;
  color: var(--rose-300);
}

.signoff-always {
  font-family: var(--font-hand);
  font-size: 2.2rem;
  color: #FFF2F4;
}

/* ==========================================================================
   BUTTONS & COMMON COMPONENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 99px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  border: none;
  text-decoration: none;
}

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

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

.btn-romantic {
  background: linear-gradient(135deg, var(--rose-500) 0%, var(--rose-600) 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(192, 92, 107, 0.35);
}

.btn-romantic:hover {
  background: linear-gradient(135deg, var(--rose-400) 0%, var(--rose-500) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(192, 92, 107, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-dreamy .btn-ghost {
  color: var(--rose-200);
}

.stage-main .btn-ghost {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.stage-main .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-main);
}

.btn-glow {
  box-shadow: 0 0 25px rgba(220, 123, 135, 0.5);
  animation: glowPulse 2.5s infinite ease-in-out;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(220, 123, 135, 0.4); }
  50% { box-shadow: 0 0 35px rgba(220, 123, 135, 0.7); }
}

.btn-group {
  display: inline-flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* Dynamic Floating Click Hearts */
.floating-click-heart {
  position: fixed;
  font-size: 24px;
  pointer-events: none;
  z-index: 9999;
  animation: floatUpFade 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes floatUpFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -100px) scale(1.2) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -180px) scale(1.4) rotate(-10deg);
  }
}

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

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 640px) {
  .main-wrapper {
    padding: 70px 16px 40px;
  }
  
  .game-card {
    padding: 28px 18px;
  }
  
  .interactive-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .polaroid-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  
  .polaroid-caption {
    font-size: 1.05rem;
  }
  
  .us-spotlight-section {
    padding: 36px 16px;
    border-radius: 24px;
  }
  
  .spotlight-title {
    font-size: 1.6rem;
  }

  .finale-letter-card {
    padding: 32px 20px;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }
}
