/* ==========================================
   CSS GLOBAL TOKENS & UTILITIES
   ========================================== */
:root {
  --bg-color: #080808;
  --bg-card: #121212;
  --bg-card-hover: #1a1a1a;
  
  /* Gold Color Scheme */
  --gold-primary: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-dark: #aa771c;
  --gold-glow: rgba(212, 175, 55, 0.4);
  
  /* Text colors */
  --text-white: #ffffff;
  --text-muted: #a0a0a5;
  --text-offwhite: #F5F5F7;
  
  /* Accents */
  --rose-red: #FF4D6D;
  --rose-glow: rgba(255, 77, 109, 0.4);
  --white-glow: rgba(255, 255, 255, 0.2);
  
  /* Fonts */
  --font-serif: 'Cinzel', 'Playfair Display', serif;
  --font-hand: 'Dancing Script', cursive;
  --font-sans: 'Montserrat', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-offwhite);
  font-family: var(--font-sans);
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* ==========================================
   CANVAS & DECORATION ELEMENTS
   ========================================== */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Cursor Sparkles */
#custom-cursor {
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold-primary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  mix-blend-mode: difference;
  display: none; /* Desktop only */
}

@media (min-width: 1024px) {
  #custom-cursor {
    display: block;
  }
}

.cursor-hover {
  width: 40px !important;
  height: 40px !important;
  background-color: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-light) !important;
}

/* ==========================================
   INTERACTION BUTTONS & COMMON COMPONENTS
   ========================================== */
.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 50%, var(--gold-light) 100%);
  color: var(--bg-color);
  font-family: var(--font-serif);
  font-weight: 600;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1rem;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--gold-glow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--gold-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-primary);
  border: 1.5px solid var(--gold-primary);
  padding: 12px 26px;
  border-radius: 30px;
  font-family: var(--font-serif);
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 5;
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 15px var(--gold-glow);
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-gold-glow {
  background: #000;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  padding: 18px 36px;
  border-radius: 40px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 3px;
  cursor: pointer;
  box-shadow: 0 0 20px var(--gold-glow);
  animation: pulse-gold-glow 2s infinite alternate;
  transition: var(--transition-smooth);
  z-index: 5;
}

.btn-gold-glow:hover {
  background: var(--gold-primary);
  color: #000;
  box-shadow: 0 0 35px var(--gold-primary);
}

@keyframes pulse-gold-glow {
  0% { box-shadow: 0 0 10px var(--gold-glow); }
  100% { box-shadow: 0 0 25px var(--gold-primary); }
}

/* ==========================================
   PASSWORD GATE OVERLAY
   ========================================== */
.gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease-out, visibility 1s;
}

.gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-container {
  width: 90%;
  max-width: 450px;
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px var(--gold-glow);
}

.glowing-sun {
  width: 80px;
  height: 80px;
  animation: spin-slow 15s infinite linear;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gate-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 20px 0 10px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gate-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.gate-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
}

.gate-input-wrapper input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 14px;
  border-radius: 10px;
  color: white;
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 2px;
  outline: none;
  transition: var(--transition-smooth);
}

.gate-input-wrapper input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.gate-input-wrapper button {
  background: var(--gold-primary);
  color: black;
  font-family: var(--font-serif);
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.gate-input-wrapper button:hover {
  background: var(--gold-light);
}

.gate-error-msg {
  color: var(--rose-red);
  font-size: 0.85rem;
  margin-top: 10px;
  height: 20px;
}

.gate-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ==========================================
   VERIFICATION COUNTDOWN OVERLAY
   ========================================== */
.verify-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top: 3px solid var(--gold-primary);
  border-radius: 50%;
  animation: spin-verify 1s linear infinite;
  margin: 0 auto 25px;
}

@keyframes spin-verify {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.verify-countdown {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 20px 0;
  letter-spacing: 4px;
}

.verify-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 15px;
}

.verify-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--gold-light));
  border-radius: 2px;
  transition: width 1s linear;
}

/* ==========================================
   PANEL LAYOUT (SNAP CONTAINER)
   ========================================== */
main {
  position: relative;
  z-index: 2;
  width: 100%;
}

main.hidden {
  display: none;
}

.panel {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  position: relative;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  overflow: hidden;
}

.chapter-num {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  letter-spacing: 5px;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.8;
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 2px;
  background: linear-gradient(to right, var(--text-white), var(--gold-light), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chapter-intro-text {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin-bottom: 50px;
}

/* Scroll reveal bases */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   LANDING PAGE (FULLSCREEN INTRO)
   ========================================== */
#landing-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.center-content {
  z-index: 5;
  width: 90%;
  max-width: 700px;
}

.landing-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 60%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-lead {
  font-size: 1.25rem;
  color: var(--text-offwhite);
  margin-bottom: 15px;
  font-weight: 300;
}

/* Delayed CSS text fades for landing */
.animate-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up-in 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.delay-1 { animation-delay: 0.6s; }
.delay-2 { animation-delay: 1.4s; }
.delay-3 { animation-delay: 2.2s; }
.animate-btn {
  opacity: 0;
  transform: scale(0.9);
  animation: scale-up-in 1.2s cubic-bezier(0.25, 1, 0.5, 1) 3s forwards;
}

@keyframes fade-up-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-up-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll down indicator */
.scroll-down-indicator {
  position: absolute;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gold-primary);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
}

.scroll-down-indicator .arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gold-primary);
  border-bottom: 2px solid var(--gold-primary);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
  40% { transform: translateY(-8px) rotate(45deg); }
  60% { transform: translateY(-4px) rotate(45deg); }
}

/* ==========================================
   CHAPTER 1: TIMELINE
   ========================================== */
.timeline {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline-bar {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold-primary), var(--gold-dark), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  width: 100%;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item::after {
  content: '';
  display: table;
  clear: both;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 3px solid var(--bg-color);
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--gold-primary);
  z-index: 2;
}

/* Polaroid Styling */
.polaroid {
  background: white;
  padding: 15px 15px 25px 15px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  max-width: 320px;
  width: 100%;
  transition: var(--transition-smooth);
}

.polaroid:hover {
  transform: scale(1.03) rotate(1deg);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
}

.polaroid-img {
  width: 100%;
  aspect-ratio: 1;
  background-color: #222;
  border-radius: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  color: var(--gold-primary);
  position: relative;
  overflow: hidden;
}

/* Linear Gradient placeholders for images */
.placeholder-1 { background: linear-gradient(45deg, #111, #332001); }
.placeholder-2 { background: linear-gradient(45deg, #111, #02202c); }
.placeholder-3 { background: linear-gradient(45deg, #111, #24022c); }
.placeholder-4 { background: linear-gradient(45deg, #111, #0a2712); }
.placeholder-5 { background: linear-gradient(45deg, #111, #300f0f); }

.polaroid-text {
  margin-top: 15px;
  color: #1a1a1a;
  text-align: center;
}

.polaroid-text h3 {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  margin-bottom: 5px;
  font-weight: 700;
}

.polaroid-text p {
  font-size: 0.85rem;
  color: #555;
}

.timeline-item.left .polaroid {
  float: left;
  transform: rotate(-2deg);
}

.timeline-item.right .polaroid {
  float: right;
  transform: rotate(2deg);
}

@media (max-width: 768px) {
  .timeline-bar {
    left: 20px;
  }
  .timeline-dot {
    left: 20px;
    top: 40px;
  }
  .polaroid {
    max-width: 80%;
    margin-left: 50px;
  }
  .timeline-item.left .polaroid,
  .timeline-item.right .polaroid {
    float: none;
    transform: none;
  }
  .timeline-item.left .polaroid:hover,
  .timeline-item.right .polaroid:hover {
    transform: scale(1.02);
  }
}

/* ==========================================
   CHAPTER 2: CARD DECK (FLIP CARDS)
   ========================================== */
.card-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1000px;
  width: 100%;
}

.flip-card {
  perspective: 1000px;
  width: 280px;
  height: 380px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 15px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.flip-card-front {
  background: linear-gradient(145deg, #161616, #0e0e0e);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.card-heart {
  font-size: 3.5rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px var(--rose-glow));
  animation: float 3s infinite ease-in-out;
}

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

.flip-card-front h3 {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.flip-card-back {
  background: linear-gradient(145deg, #0e0e0e, #18140a);
  transform: rotateY(180deg);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.05);
}

.flip-card-back p {
  font-size: 0.95rem;
  color: var(--text-offwhite);
  line-height: 1.7;
}

/* ==========================================
   CHAPTER 3: MY MISTAKES (KINTSUGI HEART)
   ========================================== */
.apology-words {
  text-align: center;
  max-width: 600px;
  margin-bottom: 40px;
}

.apology-line {
  font-size: 1.15rem;
  margin-bottom: 15px;
  color: var(--text-offwhite);
  font-weight: 300;
  opacity: 0.9;
}

.heart-kintsugi-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

#kintsugi-heart {
  width: 250px;
  height: 220px;
  filter: drop-shadow(0 0 15px rgba(0,0,0,0.8));
}

.heart-half {
  transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#heart-left {
  transform: translateX(-15px) rotate(-5deg);
  transform-origin: 50% 85%;
}

#heart-right {
  transform: translateX(15px) rotate(5deg);
  transform-origin: 50% 85%;
}

/* Active healed heart state */
#kintsugi-heart.healed #heart-left {
  transform: translateX(0) rotate(0);
}

#kintsugi-heart.healed #heart-right {
  transform: translateX(0) rotate(0);
}

#kintsugi-heart.healed #kintsugi-crack {
  stroke-width: 2;
  filter: drop-shadow(0 0 6px var(--gold-primary));
  animation: draw-crack 2.5s forwards ease-in-out;
}

@keyframes draw-crack {
  from {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
  }
  to {
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
  }
}

/* ==========================================
   CHAPTER 4: THINGS I NEVER SAID (ENVELOPES)
   ========================================== */
.envelopes-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  margin-top: 30px;
}

.envelope-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.envelope {
  position: relative;
  width: 250px;
  height: 180px;
  background: #1e1e1e;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: transform 0.4s ease;
}

.envelope-wrapper:hover .envelope {
  transform: translateY(-5px);
}

/* Flap at the top */
.flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 125px solid transparent;
  border-right: 125px solid transparent;
  border-top: 100px solid #2a2a2a;
  transform-origin: top;
  transition: transform 0.4s ease 0.2s, z-index 0.2s 0.2s;
  z-index: 3;
}

.pocket {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 125px solid #1e1e1e;
  border-right: 125px solid #1e1e1e;
  border-bottom: 90px solid #1a1a1a;
  z-index: 4;
  border-radius: 0 0 10px 10px;
}

.pocket::after {
  content: '';
  position: absolute;
  bottom: -90px;
  left: -125px;
  width: 0;
  height: 0;
  border-left: 125px solid transparent;
  border-right: 125px solid transparent;
  border-bottom: 90px solid rgba(212, 175, 55, 0.05);
}

.letter {
  position: absolute;
  bottom: 5px;
  left: 15px;
  width: 220px;
  height: 150px;
  background: #fdfaf2;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 2;
  overflow: hidden;
  padding: 15px;
  color: #2b2b2b;
}

.letter-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  font-family: var(--font-hand);
  line-height: 1.4;
}

.letter-date {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.letter-content p {
  font-size: 0.9rem;
  color: #333;
}

.letter-sig {
  text-align: right;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.envelope-label {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

/* Open Envelope States */
.envelope-wrapper.open .flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.envelope-wrapper.open .letter {
  transform: translateY(-90px) scale(1.1);
  z-index: 5;
  height: 220px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* ==========================================
   CHAPTER 5: REASONS JAR
   ========================================== */
.reasons-jar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.jar-container {
  width: 160px;
  height: 220px;
  position: relative;
  margin: 0 auto;
}

.jar-lid {
  width: 100px;
  height: 20px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  border-radius: 5px 5px 0 0;
  position: absolute;
  top: 0;
  left: 30px;
  z-index: 3;
}

.jar-body {
  width: 160px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 20px 20px 40px 40px;
  position: absolute;
  bottom: 0;
  z-index: 2;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.jar-label {
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 5px 12px;
  border-radius: 5px;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 1px;
  transform: rotate(-3deg);
  z-index: 5;
}

/* Floating chits inside the jar */
.chit {
  position: absolute;
  width: 12px;
  height: 22px;
  background: var(--gold-light);
  opacity: 0.6;
  border-radius: 2px;
}
.c1 { top: 60px; left: 40px; transform: rotate(15deg); }
.c2 { top: 80px; right: 30px; transform: rotate(-35deg); background: var(--gold-primary); }
.c3 { bottom: 30px; left: 60px; transform: rotate(55deg); }
.c4 { bottom: 50px; left: 30px; transform: rotate(-10deg); }
.c5 { bottom: 40px; right: 40px; transform: rotate(25deg); background: var(--gold-light); }

.jar-actions {
  display: flex;
  gap: 20px;
}

/* Reason Card Popup */
.reason-card {
  width: 90%;
  max-width: 420px;
  background: #121212;
  border: 1.5px solid var(--gold-primary);
  border-radius: 15px;
  padding: 30px 25px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 15px var(--gold-glow);
  transform: scale(0.9);
  animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pop-in {
  to { transform: scale(1); }
}

.card-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.card-close:hover {
  color: var(--gold-primary);
}

.reason-number {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.reason-content {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-offwhite);
  line-height: 1.5;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  width: 100%;
  max-width: 800px;
  height: 80vh;
  background: #121212;
  border: 1px solid var(--gold-primary);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.7);
}

.modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  font-size: 1.4rem;
}

.modal-close {
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
}

.reasons-grid {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.grid-reason-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  transition: var(--transition-fast);
}

.grid-reason-card:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.03);
}

.grid-reason-num {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.grid-reason-text {
  font-size: 0.9rem;
  color: var(--text-offwhite);
  line-height: 1.4;
}

/* ==========================================
   CHAPTER 6: OUR GALLERY (PINTEREST STYLE)
   ========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.polaroid-item {
  display: flex;
  justify-content: center;
}

.polaroid-frame {
  background: white;
  padding: 12px 12px 20px 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  max-width: 240px;
  width: 100%;
  transform: rotate(-1.5deg);
  transition: var(--transition-smooth);
}

.polaroid-item:nth-child(even) .polaroid-frame {
  transform: rotate(2deg);
}

.polaroid-frame:hover {
  transform: scale(1.05) rotate(0deg) translateY(-8px) !important;
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
}

.polaroid-media {
  width: 100%;
  aspect-ratio: 1;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 2px;
  color: var(--gold-primary);
}

.font-polaroid {
  font-size: 4rem;
}

.polaroid-caption {
  margin-top: 12px;
  color: #1a1a1a;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================
   CHAPTER 7: MUSIC
   ========================================== */
.music-card {
  width: 100%;
  max-width: 500px;
  background: #121212;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.music-player-ui {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.album-art {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  color: #000;
  animation: pulse-art 2s infinite alternate;
}

@keyframes pulse-art {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.song-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.song-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-offwhite);
}

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

.player-btn {
  background: var(--gold-primary);
  color: #000;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.player-btn:hover {
  background: var(--gold-light);
  transform: scale(1.05);
}

.lyrics-container {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.lyrics-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, #121212, transparent);
  z-index: 2;
}

.lyrics-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, #121212, transparent);
  z-index: 2;
}

.lyrics-window {
  transition: transform 0.5s ease-out;
  padding: 40px 0;
  text-align: center;
}

.lyric-line {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-muted);
  opacity: 0.4;
  transition: var(--transition-smooth);
}

.lyric-line.active {
  opacity: 1;
  color: var(--gold-light);
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 0 0 10px var(--gold-glow);
}

/* ==========================================
   CHAPTER 8: PROMISES CHECKLIST
   ========================================== */
.promises-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  max-width: 600px;
}

.promise-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 15px;
  transition: var(--transition-smooth);
}

.promise-item:hover {
  border-color: rgba(212, 175, 55, 0.2);
  transform: translateX(5px);
}

.promise-checkbox {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  color: transparent;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.promise-checkbox svg {
  width: 16px;
  height: 16px;
}

/* State when checked by scrolling */
.promise-item.checked .promise-checkbox {
  border-color: var(--gold-primary);
  background: var(--gold-primary);
  color: #000;
  box-shadow: 0 0 12px var(--gold-glow);
}

.promise-text h3 {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.promise-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================
   CHAPTER 9: CHANCE STORY SCENES
   ========================================== */
.scrolling-story-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 650px;
}

.story-scene {
  display: flex;
  gap: 25px;
  align-items: center;
  background: linear-gradient(135deg, #121212 0%, #0e0e0e 100%);
  padding: 25px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.03);
}

.story-scene:hover {
  border-color: rgba(212, 175, 55, 0.15);
}

.scene-icon {
  font-size: 3rem;
  background: rgba(212, 175, 55, 0.05);
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.scene-details h3 {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.scene-details p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 576px) {
  .story-scene {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .scene-icon {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }
}

/* ==========================================
   CHAPTER 10: COUNTDOWNS
   ========================================== */
.countdown-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
}

.countdown-card {
  background: #121212;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 30px 20px;
  width: 280px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
}

.countdown-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
}

.countdown-card h4 {
  font-family: var(--font-serif);
  color: var(--gold-light);
  margin-bottom: 15px;
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.timer {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-primary);
  margin-bottom: 15px;
  text-shadow: 0 0 8px var(--gold-glow);
}

.timer span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-white);
}

.timer-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================
   CHAPTER 11: MAP & PINS
   ========================================== */
.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 850px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  background: #0d0d0d;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.svg-map-container {
  width: 100%;
  position: relative;
}

#world-map {
  width: 100%;
  height: auto;
  display: block;
}

.map-continent {
  fill: #1a1a1a;
  stroke: #2a2a2a;
  stroke-width: 1.5;
}

.map-pin {
  cursor: pointer;
}

.pin-ring {
  fill: none;
  stroke: var(--gold-primary);
  stroke-width: 1.5;
  transform-origin: center;
  animation: pulse-pin 2s infinite ease-out;
}

.pin-core {
  fill: var(--gold-primary);
  filter: url(#glow);
  transition: fill 0.3s;
}

.map-pin:hover .pin-core {
  fill: var(--rose-red);
}

@keyframes pulse-pin {
  0% {
    r: 5;
    opacity: 1;
  }
  100% {
    r: 20;
    opacity: 0;
  }
}

/* Map popup styled as Polaroid card overlay */
.map-popup {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 250px;
  z-index: 10;
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.6);
  color: #1a1a1a;
  animation: slide-up-popup 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-popup.hidden {
  display: none;
}

@keyframes slide-up-popup {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.popup-close {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #888;
}

.popup-polaroid-media {
  width: 100%;
  aspect-ratio: 1.3;
  background: #222;
  color: var(--gold-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  border-radius: 4px;
}

.popup-polaroid h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin: 10px 0 5px;
  color: #1a1a1a;
}

.popup-polaroid p {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.4;
}

/* ==========================================
   CHAPTER 12: SECRET BUTTON
   ========================================== */
.secret-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  text-align: center;
  max-width: 600px;
}

.secret-warning {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.secret-content-box {
  background: linear-gradient(135deg, #161208 0%, #121212 100%);
  border: 1px dashed var(--gold-primary);
  border-radius: 20px;
  padding: 35px 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: slide-reveal 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.secret-content-box.hidden {
  display: none;
}

@keyframes slide-reveal {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.secret-sparkle {
  font-size: 2rem;
  color: var(--gold-primary);
  animation: float 2s infinite ease-in-out;
}

.secret-content-box h3 {
  font-family: var(--font-serif);
  color: var(--gold-light);
  margin-bottom: 15px;
}

.secret-content-box p {
  font-size: 0.95rem;
  color: var(--text-offwhite);
  line-height: 1.6;
  margin-bottom: 20px;
}

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

/* ==========================================
   CHAPTER 13: MEMORY QUIZ
   ========================================== */
.quiz-container {
  width: 100%;
  max-width: 480px;
  background: #121212;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.quiz-progress {
  font-size: 0.8rem;
  color: var(--gold-primary);
  letter-spacing: 1px;
  margin-bottom: 15px;
}

#quiz-question-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 25px;
  color: var(--text-white);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.quiz-option-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: var(--text-offwhite);
  padding: 15px;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.quiz-option-btn:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

/* Correct/Incorrect button states */
.quiz-option-btn.correct {
  background: rgba(46, 204, 113, 0.15);
  border-color: #2ecc71;
  color: #2ecc71;
}

.quiz-option-btn.wrong {
  background: rgba(231, 76, 60, 0.15);
  border-color: #e74c3c;
  color: #e74c3c;
}

/* Quiz Completion box */
#quiz-result-box {
  text-align: center;
  animation: scale-up-in 0.5s ease-out;
}

#quiz-result-box.hidden {
  display: none;
}

.quiz-success-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: pulse-gold-glow 2s infinite alternate;
}

#quiz-result-box h3 {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

#quiz-result-box p {
  color: var(--text-muted);
  margin-bottom: 25px;
}

/* ==========================================
   CHAPTER 14: DIGITAL ROSE (BLOOM EFFECT)
   ========================================== */
.rose-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

#svg-rose {
  width: 200px;
  height: 200px;
  cursor: pointer;
}

.petal {
  transform-origin: 100px 100px;
  transition: transform 2.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 2s ease-out;
}

/* Initial unbloomed states */
.petal-outer { transform: scale(0.1); opacity: 0; }
.petal-mid { transform: scale(0.1); opacity: 0; }
.petal-inner { transform: scale(0.2); }

/* Bloomed active states */
#svg-rose.bloomed .petal-outer {
  transform: scale(1);
  opacity: 0.8;
}

#svg-rose.bloomed .petal-mid {
  transform: scale(1.1) rotate(10deg);
  opacity: 0.95;
}

#svg-rose.bloomed .petal-inner {
  transform: scale(1.2) rotate(-5deg);
}

#svg-rose.bloomed #rose-leaf {
  opacity: 1;
  transition: opacity 1.5s ease-out 1s;
}

.rose-msg {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--rose-red);
  text-shadow: 0 0 8px var(--rose-glow);
  animation: fade-up-in 1s ease-out;
}

.rose-msg.hidden {
  display: none;
}

/* ==========================================
   CHAPTER 15: CANVAS MINI NIGHT SKY
   ========================================== */
.starfield-mini-wrapper {
  width: 100%;
  max-width: 500px;
  height: 300px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at center, #0a0e1a 0%, #030408 100%);
}

#mini-stars-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.star-bubble {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid var(--gold-primary);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-offwhite);
  backdrop-filter: blur(5px);
  animation: slide-reveal 0.4s ease-out;
}

.star-bubble.hidden {
  display: none;
}

/* ==========================================
   CHAPTER 16: BUCKET LIST
   ========================================== */
.bucket-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 500px;
}

.bucket-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #121212;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.bucket-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold-primary);
  cursor: not-allowed;
}

.bucket-item label {
  font-size: 1rem;
  color: var(--text-offwhite);
  cursor: not-allowed;
}

.bucket-item input[type="checkbox"]:checked + label {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* ==========================================
   CHAPTER 17: VOICE MESSAGE CARD
   ========================================== */
.voice-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(135deg, #121212 0%, #1c1c1c 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.voice-wave-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 60px;
  margin-bottom: 25px;
}

.voice-wave-bar {
  width: 5px;
  height: 15px;
  background: var(--gold-primary);
  border-radius: 3px;
  transition: height 0.1s ease-out;
}

/* Playing animation class toggled via JS */
.voice-card.playing .voice-wave-bar {
  animation: jump-wave 1.2s infinite ease-in-out;
}

/* Stagger heights */
.voice-wave-bar:nth-child(2) { animation-delay: 0.1s; }
.voice-wave-bar:nth-child(3) { animation-delay: 0.2s; }
.voice-wave-bar:nth-child(4) { animation-delay: 0.3s; }
.voice-wave-bar:nth-child(5) { animation-delay: 0.4s; }
.voice-wave-bar:nth-child(6) { animation-delay: 0.5s; }
.voice-wave-bar:nth-child(7) { animation-delay: 0.4s; }
.voice-wave-bar:nth-child(8) { animation-delay: 0.3s; }
.voice-wave-bar:nth-child(9) { animation-delay: 0.2s; }
.voice-wave-bar:nth-child(10) { animation-delay: 0.1s; }

@keyframes jump-wave {
  0%, 100% { height: 15px; }
  50% { height: 50px; }
}

.voice-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 15px;
}

/* ==========================================
   CHAPTER 18: THE DEEP APOLOGY
   ========================================== */
.deep-apology {
  text-align: center;
  max-width: 800px;
  padding: 40px 20px;
}

.apology-huge {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #fff 0%, #fff 50%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
}

.apology-subhuge {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1.5;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .apology-huge { font-size: 2rem; }
  .apology-subhuge { font-size: 1.2rem; }
}

/* ==========================================
   CHAPTER 19: SMILE METER & FINAL NAV
   ========================================== */
.smile-meter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 440px;
  background: #121212;
  border-radius: 20px;
  padding: 35px 25px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.smile-emoji {
  font-size: 4rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
  transition: transform 0.3s;
}

#smile-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: #2a2a2a;
  border-radius: 5px;
  outline: none;
  margin-bottom: 15px;
}

#smile-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 2px solid #000;
  cursor: pointer;
  box-shadow: 0 0 10px var(--gold-primary);
  transition: transform 0.2s;
}

#smile-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-percentage {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-primary);
  margin-bottom: 20px;
}

#smile-success-msg {
  text-align: center;
  animation: scale-up-in 0.5s ease-out;
  margin-top: 15px;
}

#smile-success-msg.hidden {
  display: none;
}

.hearts-glow {
  font-size: 2.2rem;
  animation: float 2.5s infinite alternate ease-in-out;
}

#smile-success-msg h3 {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  font-size: 1.25rem;
  margin: 10px 0;
}

#smile-success-msg p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

#go-to-final-btn {
  margin-top: 30px;
  animation: pulse-gold-glow 2s infinite alternate;
}

#go-to-final-btn.hidden {
  display: none;
}

/* ==========================================
   FINAL PAGE (CINEMATIC REVEAL & OUTCOME)
   ========================================== */
#final-page {
  background: #000;
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: none;
}

.final-stage {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  transition: opacity 1.5s ease, visibility 1.5s;
}

.final-stage.hidden {
  display: none;
  opacity: 0;
}

.final-stage.active {
  display: flex;
  opacity: 1;
}

/* Stage 1: Absolute Black Cover */
.black-text-wrapper {
  text-align: center;
  z-index: 5;
}

.fade-in-text {
  font-size: 1.5rem;
  color: var(--text-offwhite);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(10px);
  animation: fade-up-in 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.black-text-wrapper .delay-2 {
  animation-delay: 2.5s;
}

.heart-pulse-btn {
  background: none;
  border: none;
  font-size: 4rem;
  cursor: pointer;
  margin-top: 40px;
  outline: none;
  opacity: 0;
  animation: heart-beat 1.5s infinite alternate ease-in-out, fade-up-in 2s forwards 5s;
}

@keyframes heart-beat {
  0% { transform: scale(1); filter: drop-shadow(0 0 5px var(--rose-glow)); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 20px var(--rose-red)); }
}

/* Stage 2: Celestial Starry Reveal */
.starry-reveal-wrapper {
  text-align: center;
  max-width: 650px;
  z-index: 5;
  width: 90%;
}

.shams-name {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--gold-light);
  text-shadow: 0 0 15px var(--gold-glow);
  margin-bottom: 30px;
  animation: float 4s infinite ease-in-out;
}

.promises-final {
  margin-bottom: 40px;
}

.promise-fade {
  font-size: 1.15rem;
  color: var(--text-offwhite);
  margin-bottom: 15px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  animation: fade-up-in 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.promises-final p:nth-child(1) { animation-delay: 0.5s; }
.promises-final p:nth-child(2) { animation-delay: 2s; }
.promises-final p:nth-child(3) { animation-delay: 3.5s; }
.promises-final p:nth-child(4) { animation-delay: 5s; }
.promises-final p:nth-child(5) { animation-delay: 6.5s; }
.promises-final p:nth-child(6) { animation-delay: 8s; font-weight: 600; color: var(--gold-primary); }

.final-question {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-white);
  margin-bottom: 30px;
  opacity: 0;
  animation: fade-up-in 2s forwards 10s;
}

.choice-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  opacity: 0;
  animation: fade-up-in 2s forwards 11s;
}

.btn-choice {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  padding: 15px 35px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-choice.yes {
  background: var(--gold-primary);
  color: #000;
  border: none;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-choice.yes:hover {
  background: var(--gold-light);
  transform: scale(1.05);
}

.btn-choice.maybe {
  background: transparent;
  color: var(--text-offwhite);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-choice.maybe:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
  transform: scale(1.03);
}

/* Yes/Maybe Choice Outcomes */
.outcome-box {
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid var(--gold-primary);
  border-radius: 20px;
  padding: 40px 30px;
  margin-top: 30px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  animation: scale-up-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.outcome-box.hidden {
  display: none;
}

.outcome-hearts {
  font-size: 3rem;
  animation: float 2s infinite ease-in-out;
}

.outcome-box h2 {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  font-size: 1.5rem;
  margin: 15px 0 10px;
}

.outcome-box p {
  color: var(--text-muted);
  line-height: 1.6;
}

@keyframes scale-up-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.floating-heart-effect {
  text-shadow: 0 0 10px rgba(255, 77, 109, 0.4);
}

.falling-petal {
  text-shadow: 0 0 8px rgba(255, 77, 109, 0.3);
}

.sparkle-dot {
  text-shadow: 0 0 6px rgba(212, 175, 55, 0.8);
}


/* ==========================================
   IMAGES IN POLAROIDS & GALLERY
   ========================================== */
.polaroid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  transition: transform 0.5s ease;
}

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

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1000px;
  width: 90%;
  margin: 0 auto;
}

.polaroid-item {
  transition: transform 0.4s ease;
}

.polaroid-item:hover {
  transform: translateY(-8px) rotate(1deg);
}

.polaroid-frame {
  background: #f5f0e8;
  border-radius: 4px;
  padding: 12px 12px 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 10px var(--gold-glow);
  transition: var(--transition-smooth);
}

.polaroid-item:hover .polaroid-frame {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--gold-glow);
}

.polaroid-media {
  width: 100%;
  aspect-ratio: 3/4;
  background: #222;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
}

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

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

.polaroid-caption {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  text-align: center;
  margin-top: 10px;
  color: #333;
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .polaroid-frame {
    padding: 8px 8px 20px;
  }
  .polaroid-caption {
    font-size: 0.85rem;
  }
}


/* ==========================================
   CHAPTER 20: OUR FIRSTS
   ========================================== */
.firsts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
}

.first-card {
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.first-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.first-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--gold-glow);
}

.first-card.full-width {
  grid-column: 1 / -1;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.first-icon {
  font-size: 2.5rem;
  min-width: 60px;
  text-align: center;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.first-info h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 5px;
}

.first-date {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  color: var(--gold-primary);
  font-weight: 700;
  text-shadow: 0 0 15px var(--gold-glow);
}

.first-date.big-number {
  font-size: 3.5rem;
  letter-spacing: 3px;
}

.first-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 3px;
}

@media (max-width: 600px) {
  .firsts-grid {
    grid-template-columns: 1fr;
  }
  .first-card {
    padding: 18px;
  }
}


/* ==========================================
   CHAPTER 21: MEMORY WALL
   ========================================== */
.memory-wall-container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.memory-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.memory-wall-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(212, 175, 55, 0.15);
}

.memory-wall-item:nth-child(2n) {
  aspect-ratio: 4/5;
}

.memory-wall-item:nth-child(3n) {
  aspect-ratio: 1;
}

.memory-wall-item:hover {
  transform: scale(1.05);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--gold-glow);
  z-index: 5;
}

.memory-wall-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.memory-wall-item:hover img {
  transform: scale(1.1);
}

.memory-wall-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 40px 15px 15px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.memory-wall-item:hover .memory-wall-overlay {
  transform: translateY(0);
}

.memory-wall-overlay span {
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--gold-light);
}

.memory-upload-area {
  text-align: center;
  padding: 30px 20px;
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  background: rgba(18, 18, 18, 0.5);
  transition: var(--transition-smooth);
}

.memory-upload-area:hover {
  border-color: var(--gold-primary);
  background: rgba(18, 18, 18, 0.7);
}

.upload-btn {
  display: inline-block;
  cursor: pointer;
  font-size: 1rem;
  padding: 12px 30px;
}

.upload-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  z-index: 100000;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--gold-primary);
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--gold-glow);
}

.lightbox-caption {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-top: 15px;
}

@media (max-width: 600px) {
  .memory-wall-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}


/* ==========================================
   CHAPTER 22: MESSAGES TO EACH OTHER
   ========================================== */
.messages-section {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.messages-block {
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.messages-block-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.monthly-tag {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-primary);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-family: var(--font-sans);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.always-tag {
  background: rgba(255, 77, 109, 0.2);
  color: var(--rose-red);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-family: var(--font-sans);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.messages-block-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.message-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  padding: 18px 20px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.message-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.message-card.locked {
  filter: blur(0);
  cursor: default;
}

.message-card.locked .message-text {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
}

.message-card .message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.message-card .message-number {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--gold-primary);
  letter-spacing: 2px;
}

.message-card .message-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.message-card .message-text {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--text-offwhite);
  line-height: 1.6;
}

.message-card .lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  border-radius: 12px;
}

.lock-overlay .lock-icon {
  font-size: 2rem;
  margin-bottom: 5px;
}

.lock-overlay .lock-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.message-card.opened {
  border-color: rgba(46, 204, 113, 0.3);
}

.message-card .open-btn {
  display: inline-block;
  margin-top: 10px;
  background: var(--gold-primary);
  color: black;
  border: none;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-serif);
  transition: var(--transition-fast);
}

.message-card .open-btn:hover {
  background: var(--gold-light);
}

.add-message-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.add-message-area textarea {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 14px;
  color: white;
  font-family: var(--font-hand);
  font-size: 1rem;
  resize: vertical;
  outline: none;
  transition: var(--transition-smooth);
}

.add-message-area textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-glow);
}

.add-message-area button {
  align-self: flex-end;
}

.no-messages {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}


/* ==========================================
   CHAPTER 23: ANSWER MY QUESTIONS
   ========================================== */
.answer-questions-container {
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.answer-card {
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.answer-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--gold-glow);
}

.answer-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.answer-card h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 15px;
}

.answer-display {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-top: 10px;
}

.answer-display .saved-answer {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--text-offwhite);
  line-height: 1.6;
}

.answer-display .saved-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.answer-display .edit-answer-btn {
  margin-top: 12px;
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.answer-display .edit-answer-btn:hover {
  background: var(--gold-primary);
  color: black;
}

.answer-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 14px;
  color: white;
  font-family: var(--font-hand);
  font-size: 1rem;
  resize: vertical;
  outline: none;
  transition: var(--transition-smooth);
  margin-bottom: 10px;
}

.answer-form textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-glow);
}


/* ==========================================
   CHAPTER 24: VOICE NOTES
   ========================================== */
.voice-notes-section {
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
}

.voice-notes-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.voice-note-card {
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.voice-note-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.voice-note-play-btn {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: none;
  color: black;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
  box-shadow: 0 3px 10px var(--gold-glow);
}

.voice-note-play-btn:hover {
  background: var(--gold-light);
  transform: scale(1.1);
}

.voice-note-play-btn.playing {
  animation: pulse-glow 1s infinite alternate;
}

@keyframes pulse-glow {
  from {
    box-shadow: 0 3px 10px var(--gold-glow);
  }
  to {
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.6);
  }
}

.voice-note-info {
  flex: 1;
}

.voice-note-caption {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 5px;
}

.voice-note-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.voice-note-waveform {
  display: flex;
  gap: 2px;
  align-items: center;
  height: 30px;
  margin-top: 8px;
}

.voice-note-waveform .bar {
  width: 3px;
  background: var(--gold-primary);
  border-radius: 2px;
  opacity: 0.5;
  transition: height 0.1s ease;
}

.voice-note-card.playing .voice-note-waveform .bar {
  animation: wave-bar 0.5s ease-in-out infinite alternate;
  opacity: 1;
}

@keyframes wave-bar {
  from { height: 5px; }
  to { height: 25px; }
}

.voice-note-card.playing .voice-note-waveform .bar:nth-child(2) { animation-delay: 0.1s; }
.voice-note-card.playing .voice-note-waveform .bar:nth-child(3) { animation-delay: 0.2s; }
.voice-note-card.playing .voice-note-waveform .bar:nth-child(4) { animation-delay: 0.05s; }
.voice-note-card.playing .voice-note-waveform .bar:nth-child(5) { animation-delay: 0.15s; }
.voice-note-card.playing .voice-note-waveform .bar:nth-child(6) { animation-delay: 0.25s; }
.voice-note-card.playing .voice-note-waveform .bar:nth-child(7) { animation-delay: 0.08s; }
.voice-note-card.playing .voice-note-waveform .bar:nth-child(8) { animation-delay: 0.18s; }

.voice-note-delete {
  background: transparent;
  border: 1px solid rgba(255, 77, 109, 0.3);
  color: var(--rose-red);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.voice-note-delete:hover {
  background: var(--rose-red);
  color: white;
}

.voice-upload-area {
  text-align: center;
  padding: 30px 20px;
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  background: rgba(18, 18, 18, 0.5);
  transition: var(--transition-smooth);
}

.voice-upload-area:hover {
  border-color: var(--gold-primary);
  background: rgba(18, 18, 18, 0.7);
}

.voice-caption-area {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.voice-caption-area input {
  flex: 1;
  min-width: 200px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  color: white;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.voice-caption-area input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

.no-voice-notes {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}


/* ==========================================
   CHAPTER 25: FLOWER & GIFT LOG
   ========================================== */
.gift-log-container {
  width: 90%;
  max-width: 950px;
  margin: 0 auto;
}

.gift-log-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.gift-card {
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gift-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--gold-glow);
}

.gift-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #181818;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.gift-card:hover .gift-img-wrapper img {
  transform: scale(1.08);
}

.gift-placeholder-icon {
  font-size: 4rem;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.gift-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-serif);
  backdrop-filter: blur(5px);
}

.gift-details {
  padding: 20px;
}

.gift-details h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.gift-date {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--gold-primary);
  margin-bottom: 2px;
}

.gift-occasion {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.gift-note {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--text-offwhite);
  line-height: 1.5;
  border-top: 1px dashed rgba(212, 175, 55, 0.15);
  padding-top: 10px;
}

.gift-log-form-wrapper {
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.gift-log-form-wrapper .form-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  text-align: center;
}

.gift-form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gift-form-grid input,
.gift-form-grid textarea {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  color: white;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.gift-form-grid input:focus,
.gift-form-grid textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

.gift-file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-filename {
  font-size: 0.8rem;
  color: var(--gold-light);
}


/* ==========================================
   CHAPTER 26: OPEN WHEN LETTERS
   ========================================== */
.open-when-container {
  width: 90%;
  max-width: 950px;
  margin: 0 auto;
}

.open-when-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.open-when-card {
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.9) 0%, rgba(30, 25, 15, 0.7) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 18px;
  padding: 30px 22px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.open-when-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-primary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px var(--gold-glow);
}

.ow-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
  transition: transform 0.3s ease;
}

.open-when-card:hover .ow-icon {
  transform: scale(1.15) rotate(5deg);
}

.open-when-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.ow-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.ow-btn {
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 20px;
  width: 100%;
}

/* Open When Modal */
.ow-modal-content {
  background: linear-gradient(135deg, #151515 0%, #1c180e 100%);
  border: 2px solid var(--gold-primary);
  max-width: 600px;
  width: 90%;
  padding: 40px 30px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px var(--gold-glow);
  position: relative;
}

.ow-letter-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.25);
}

.ow-modal-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.ow-letter-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-light);
}

.ow-letter-body {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--text-offwhite);
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: justify;
}

.ow-letter-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-serif);
  color: var(--gold-primary);
  font-size: 0.95rem;
}

.ow-letter-footer .letter-sig {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--gold-light);
}


/* ==========================================
   CHAPTER 27: LUXURY DIGITAL PHOTOBOOTH
   ========================================== */
.photobooth-container {
  width: 90%;
  max-width: 980px;
  margin: 0 auto;
}

/* Filter Selector Bar */
.pb-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 30px;
  padding: 10px 20px;
  backdrop-filter: blur(10px);
}

.filter-label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-right: 5px;
}

.pb-filter-btn {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pb-filter-btn.active, .pb-filter-btn:hover {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
  font-weight: 600;
  box-shadow: 0 0 12px var(--gold-glow);
}

.photobooth-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 850px) {
  .photobooth-layout {
    grid-template-columns: 1fr;
  }
}

.photobooth-camera-box {
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(26, 20, 10, 0.9) 100%);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 24px;
  padding: 25px;
  backdrop-filter: blur(12px);
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: #080808;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.4);
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  transition: filter 0.3s ease;
}

/* Filter CSS Effects on Live Stream */
.video-wrapper.filter-natural video { filter: none; }
.video-wrapper.filter-gold video { filter: sepia(0.35) contrast(1.1) brightness(1.05) saturate(1.2); }
.video-wrapper.filter-noir video { filter: grayscale(1) contrast(1.35) brightness(0.95); }
.video-wrapper.filter-rose video { filter: saturate(1.3) hue-rotate(-15deg) contrast(1.05); }

/* Viewfinder HUD Overlays */
.viewfinder-hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  box-sizing: border-box;
  padding: 15px;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rec-dot {
  color: #ff4d6d;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 0 8px #ff4d6d;
  animation: rec-blink 1.5s infinite;
}

@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hud-res {
  color: var(--gold-light);
  font-size: 0.7rem;
  font-family: var(--font-sans);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
}

.hud-corners .corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--gold-primary);
  opacity: 0.7;
}

.hud-corners .tl { top: 15px; left: 15px; border-right: none; border-bottom: none; }
.hud-corners .tr { top: 15px; right: 15px; border-left: none; border-bottom: none; }
.hud-corners .bl { bottom: 15px; left: 15px; border-right: none; border-top: none; }
.hud-corners .br { bottom: 15px; right: 15px; border-left: none; border-top: none; }

.hud-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.hud-grid .v1 { position: absolute; left: 33.33%; top: 0; bottom: 0; width: 1px; background: #fff; }
.hud-grid .v2 { position: absolute; left: 66.66%; top: 0; bottom: 0; width: 1px; background: #fff; }
.hud-grid .h1 { position: absolute; top: 33.33%; left: 0; right: 0; height: 1px; background: #fff; }
.hud-grid .h2 { position: absolute; top: 66.66%; left: 0; right: 0; height: 1px; background: #fff; }

.pb-countdown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  backdrop-filter: blur(3px);
}

.pb-countdown-overlay span {
  font-family: var(--font-serif);
  font-size: 7rem;
  color: var(--gold-light);
  font-weight: bold;
  text-shadow: 0 0 35px var(--gold-glow);
  animation: pb-pop-num 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
}

@keyframes pb-pop-num {
  0% { transform: scale(0.4); opacity: 0; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

.pb-flash-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 20;
  animation: pb-flash 0.4s ease-out forwards;
}

@keyframes pb-flash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.pb-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pb-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Photobooth Strip Preview Box */
.photobooth-strip-box {
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(26, 20, 10, 0.9) 100%);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 24px;
  padding: 25px;
  backdrop-filter: blur(12px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.strip-header {
  width: 100%;
  margin-bottom: 18px;
}

.strip-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.strip-style-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.style-label { margin-right: 4px; }

.style-btn {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 4px 10px;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.style-btn.active {
  background: var(--gold-primary);
  color: #000;
  font-weight: 600;
  border-color: var(--gold-primary);
}

.strip-preview-wrapper {
  width: 100%;
  max-width: 250px;
  min-height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.strip-preview-wrapper img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 30px var(--gold-glow);
  transition: transform 0.3s ease;
}

.strip-preview-wrapper img:hover {
  transform: scale(1.02);
}

.strip-placeholder {
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 80px 20px;
  width: 100%;
  text-align: center;
  color: var(--text-muted);
}

.strip-placeholder span {
  font-size: 4rem;
  display: block;
  margin-bottom: 14px;
  opacity: 0.4;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.strip-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}




