/* ==========================================================================
   OUR UNPLANNED STORY — FOR SWETA 🌸
   Digital Scrapbook Aesthetic Stylesheet
   Palette: Blush Pink + Warm Cream + Soft Lavender + Vintage Ink
   ========================================================================== */

:root {
  /* Core Color Palette */
  --blush-100: #fff5f7;
  --blush-200: #fce7ec;
  --blush-300: #f8c9d4;
  --blush-400: #ee95a8;
  --blush-500: #db6b84;
  --blush-deep: #a83d54;

  --cream-100: #fffdf9;
  --cream-200: #fbf7f0;
  --cream-300: #f4ecdf;
  --cream-400: #e8dccb;
  --cream-border: #ded1be;

  --lavender-100: #f8f5fc;
  --lavender-200: #eee8f8;
  --lavender-300: #ddd0f3;
  --lavender-400: #b59ee0;
  --lavender-500: #886cb8;

  --ink-900: #251f2d;
  --ink-800: #3c3447;
  --ink-600: #5c526b;
  --ink-400: #887d97;
  --ink-light: #b4aabd;

  --gold-accent: #cfa144;
  --gold-glow: rgba(207, 161, 68, 0.25);
  --rose-gold: #c97d8b;

  /* Typography */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-hand: 'Caveat', cursive, sans-serif;
  --font-script: 'Marck Script', cursive, sans-serif;

  /* Shadows & Textures */
  --shadow-sm: 0 2px 6px rgba(45, 34, 56, 0.06);
  --shadow-md: 0 8px 24px rgba(45, 34, 56, 0.08), 0 2px 8px rgba(45, 34, 56, 0.04);
  --shadow-lg: 0 16px 40px rgba(45, 34, 56, 0.12), 0 4px 12px rgba(45, 34, 56, 0.06);
  --shadow-polaroid: 0 10px 30px rgba(70, 45, 60, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-polaroid-hover: 0 20px 45px rgba(70, 45, 60, 0.2), 0 6px 16px rgba(0, 0, 0, 0.08);

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

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

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

body {
  background-color: var(--cream-200);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(252, 231, 236, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(238, 232, 248, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 253, 249, 0.7) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--ink-800);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body.is-locked {
  overflow: hidden;
}

/* Background Ambient Canvases */
#ambient-canvas,
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

#confetti-canvas {
  z-index: 9999;
}

/* ==========================================================================
   FLOATING MUSIC PLAYER / VINYL WIDGET
   ========================================================================== */
.music-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(12px);
  padding: 8px 14px 8px 8px;
  border-radius: 40px;
  border: 1px solid rgba(222, 209, 190, 0.8);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.music-widget:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.music-disc-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.vinyl-disc {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(#201c27, #362e42, #201c27, #362e42);
  border: 2px solid #5a4b66;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.vinyl-disc.spinning {
  animation: spinRecord 3.5s linear infinite;
}

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

.vinyl-center {
  width: 14px;
  height: 14px;
  background: var(--blush-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #fff;
  border: 1.5px solid #fff;
}

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

.music-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blush-deep);
}

.music-status {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--ink-800);
  line-height: 1.1;
}

.music-actions {
  display: flex;
  gap: 6px;
  border-left: 1px solid var(--cream-400);
  padding-left: 8px;
}

.music-btn {
  background: var(--lavender-100);
  border: 1px solid var(--lavender-300);
  color: var(--ink-800);
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.music-btn:hover {
  background: var(--lavender-200);
  border-color: var(--lavender-400);
  transform: scale(1.05);
}

/* Photo Customizer Floating Trigger */
.photo-manager-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--blush-300);
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-800);
  transition: all 0.25s ease;
}

.photo-manager-trigger:hover {
  background: var(--blush-100);
  border-color: var(--blush-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Story Progress Indicator Bar */
.story-progress-bar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(10px);
  padding: 6px 18px;
  border-radius: 30px;
  border: 1px solid rgba(222, 209, 190, 0.7);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.story-progress-bar.visible {
  opacity: 1;
  pointer-events: auto;
}

.progress-track {
  width: 90px;
  height: 4px;
  background: var(--cream-400);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  width: 10%;
  height: 100%;
  background: linear-gradient(90deg, var(--blush-400), var(--lavender-400));
  transition: width 0.2s ease;
}

.progress-steps {
  display: flex;
  gap: 8px;
}

.step-dot {
  font-size: 0.9rem;
  opacity: 0.45;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.step-dot:hover,
.step-dot.active {
  opacity: 1;
  transform: scale(1.25);
}

/* ==========================================================================
   1. OPENING SCREEN / ENVELOPE COVER
   ========================================================================== */
.opening-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5000;
  background: radial-gradient(circle at center, #fff6f8 0%, #f6eaf2 60%, #eee4f2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.8s cubic-bezier(0.7, 0, 0.3, 1), transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), visibility 0.8s;
}

.opening-overlay.is-opened {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08) translateY(-20px);
  pointer-events: none;
}

.floating-doodles-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-doodles-bg .doodle {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.35;
  animation: floatDoodle 8s ease-in-out infinite alternate;
}

.d1 { top: 12%; left: 15%; animation-delay: 0s; font-size: 2.2rem; }
.d2 { top: 20%; right: 18%; animation-delay: 1.5s; font-size: 1.8rem; }
.d3 { bottom: 25%; left: 18%; animation-delay: 2.5s; font-size: 2rem; }
.d4 { bottom: 15%; right: 20%; animation-delay: 3.5s; font-size: 1.7rem; }
.d5 { top: 50%; left: 8%; animation-delay: 0.8s; font-size: 1.9rem; }
.d6 { top: 40%; right: 10%; animation-delay: 4s; font-size: 2rem; }
.d7 { bottom: 40%; right: 14%; animation-delay: 2s; font-size: 1.6rem; }

@keyframes floatDoodle {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-24px) rotate(10deg); }
}

.envelope-card-container {
  position: relative;
  max-width: 540px;
  width: 100%;
}

/* Washi Tape styling */
.washi-tape {
  position: absolute;
  width: 130px;
  height: 32px;
  background: rgba(246, 196, 206, 0.75);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 5;
  backdrop-filter: blur(1px);
}

.tape-top {
  top: -16px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
}

.tape-bottom {
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%) rotate(1.5deg);
  background: rgba(221, 208, 243, 0.75);
}

.cover-card {
  background: var(--cream-100);
  border: 1px solid var(--cream-border);
  padding: 48px 36px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(82, 54, 73, 0.15), 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  position: relative;
  background-image: 
    radial-gradient(#eedcd2 0.75px, transparent 0.75px);
  background-size: 18px 18px;
}

.stamp-badge {
  display: inline-flex;
  flex-direction: column;
  padding: 6px 14px;
  border: 1.5px dashed var(--rose-gold);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  background: var(--blush-100);
}

.stamp-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blush-deep);
}

.stamp-year {
  font-family: var(--font-hand);
  font-size: 0.85rem;
  color: var(--ink-600);
}

.cover-pretitle {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--blush-deep);
  margin-bottom: 8px;
  font-weight: 600;
}

.cover-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.2;
  margin-bottom: 24px;
}

.quote-box {
  background: rgba(255, 255, 255, 0.85);
  border-left: 3px solid var(--blush-400);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 0 auto 32px auto;
  max-width: 440px;
  box-shadow: var(--shadow-sm);
}

.cover-quote {
  font-family: var(--font-hand);
  font-size: 1.55rem;
  color: var(--ink-800);
  line-height: 1.4;
}

.btn-open-story {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--blush-400), var(--blush-500));
  color: #fff;
  border: none;
  padding: 15px 38px;
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(219, 107, 132, 0.35);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-open-story:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 30px rgba(219, 107, 132, 0.45);
}

.btn-open-story:active {
  transform: translateY(1px) scale(0.98);
}

.btn-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.btn-open-story:hover .btn-icon {
  transform: rotate(15deg) scale(1.15);
}

.open-hint {
  font-size: 0.82rem;
  color: var(--ink-400);
  margin-top: 14px;
}

/* ==========================================================================
   MAIN SCRAPBOOK CONTAINER
   ========================================================================== */
.scrapbook-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 100px 24px;
  position: relative;
}

/* ==========================================================================
   HERO CELEBRATION HEADER
   ========================================================================== */
.hero-celebration {
  text-align: center;
  padding: 70px 20px 60px 20px;
  margin-bottom: 50px;
  position: relative;
}

.ribbon-banner {
  display: inline-block;
  background: var(--lavender-200);
  border: 1px dashed var(--lavender-400);
  color: var(--lavender-500);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 24px;
}

.birthday-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 24px;
  line-height: 1.15;
}

.birthday-subtitle-card {
  max-width: 680px;
  margin: 0 auto 36px auto;
  background: #ffffff;
  padding: 24px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-border);
  box-shadow: var(--shadow-md);
  position: relative;
  transform: rotate(-0.5deg);
}

.paperclip {
  position: absolute;
  top: -14px;
  left: 36px;
  width: 14px;
  height: 38px;
  border: 3.5px solid #a3959c;
  border-radius: 12px;
  transform: rotate(8deg);
  background: transparent;
}

.birthday-subtitle {
  font-family: var(--font-hand);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  color: var(--ink-800);
  line-height: 1.4;
  font-weight: 600;
}

.story-path-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.path-chip {
  background: var(--cream-100);
  border: 1px solid var(--cream-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-600);
  box-shadow: var(--shadow-sm);
}

.path-chip.highlight {
  background: var(--blush-200);
  border-color: var(--blush-400);
  color: var(--blush-deep);
}

.path-arrow {
  color: var(--blush-400);
  font-weight: bold;
}

.scroll-down-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-400);
  font-family: var(--font-hand);
  font-size: 1.25rem;
  animation: bounceHint 2s infinite;
}

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

/* ==========================================================================
   GENERAL SCRAPBOOK SECTION SHELL
   ========================================================================== */
.scrapbook-section {
  background: rgba(255, 253, 249, 0.7);
  border: 1px solid rgba(222, 209, 190, 0.6);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  margin-bottom: 60px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.chapter-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blush-100);
  border: 1px solid var(--blush-300);
  padding: 4px 12px;
  border-radius: 16px;
  margin-bottom: 16px;
}

.tag-number {
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--blush-deep);
  background: var(--blush-200);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blush-deep);
}

.handwritten-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 28px;
  line-height: 1.25;
}

/* Top decorative pushpin */
.top-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, #ff8da1, #c8405d);
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   2. SECTION: FUNNY HOW IT ALL STARTED...
   ========================================================================== */
.story-grid-two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.parchment-note {
  background: var(--cream-100);
  border: 1px solid var(--cream-border);
  padding: 36px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
  background-image: 
    linear-gradient(rgba(235, 222, 208, 0.25) 1px, transparent 1px);
  background-size: 100% 28px;
}

.tape-corner {
  position: absolute;
  top: -12px;
  right: 24px;
  width: 80px;
  height: 24px;
  background: rgba(246, 196, 206, 0.7);
  transform: rotate(4deg);
}

.story-paragraphs p {
  font-size: 1.05rem;
  color: var(--ink-800);
  margin-bottom: 14px;
  line-height: 1.7;
}

.story-paragraphs .lead-line {
  font-family: var(--font-hand);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.divider-squiggle {
  font-size: 0.9rem;
  color: var(--blush-400);
  margin: 10px 0;
  opacity: 0.7;
}

.emphasis-soft {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--ink-600);
  margin-bottom: 4px !important;
}

.highlight-quote {
  font-family: var(--font-hand);
  font-size: 1.65rem;
  color: var(--blush-deep);
  font-weight: 700;
  background: var(--blush-100);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--blush-400);
  margin: 16px 0 !important;
}

.closing-reflection {
  font-style: italic;
  color: var(--ink-600);
  font-size: 0.98rem !important;
}

/* Polaroid Trio Column */
.polaroid-trio {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}

/* Polaroid Card Styles */
.polaroid-card,
.scrapbook-polaroid {
  background: #ffffff;
  padding: 14px 14px 20px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-polaroid);
  position: relative;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  max-width: 320px;
  width: 100%;
}

.polaroid-card:hover,
.scrapbook-polaroid:hover {
  transform: translateY(-8px) scale(1.03) rotate(0deg) !important;
  box-shadow: var(--shadow-polaroid-hover);
  z-index: 20;
}

.tilt-left { transform: rotate(-2.5deg); }
.tilt-right { transform: rotate(3deg); }
.tilt-center { transform: rotate(0deg); }

.washi-tape-polaroid {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 20px;
  background: rgba(246, 196, 206, 0.7);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tape-lavender { background: rgba(221, 208, 243, 0.75); }
.tape-gold { background: rgba(250, 226, 166, 0.75); }

.polaroid-img-wrapper,
.photo-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cream-200);
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 12px;
}

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

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

.caption-handwritten,
.note-text {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--ink-900);
  line-height: 1.25;
  margin-bottom: 2px;
}

.caption-sub {
  font-size: 0.75rem;
  color: var(--ink-400);
  font-weight: 500;
}

/* ==========================================================================
   3. SECTION: THEN CAME THE CHAOS
   ========================================================================== */
.section-chaos-bg {
  background: radial-gradient(circle at 10% 10%, rgba(254, 235, 240, 0.6) 0%, rgba(246, 240, 252, 0.7) 100%);
}

.tag-chaos {
  background: #fff0f3;
  border-color: #f7aab7;
}

.chaos-text-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--cream-border);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.chaos-intro {
  font-size: 1.15rem;
  color: var(--ink-800);
  margin-bottom: 18px;
}

.chaos-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.chaos-pill {
  display: inline-block;
  background: var(--cream-100);
  border: 1px solid var(--cream-border);
  padding: 8px 16px;
  border-radius: 30px;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-900);
  transform: rotate(var(--rotation, 0deg));
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}

.chaos-pill:hover {
  transform: translateY(-3px) scale(1.08) rotate(0deg);
  background: var(--blush-100);
}

.highlight-pill {
  background: var(--blush-200);
  border-color: var(--blush-400);
  color: var(--blush-deep);
}

.chaos-dialogue-box {
  background: var(--lavender-100);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  margin-bottom: 24px;
  border-left: 3px solid var(--lavender-400);
}

.chaos-dialogue-box p {
  font-size: 1.02rem;
  color: var(--ink-800);
  margin-bottom: 6px;
}

.chaos-dialogue-box p:last-child {
  margin-bottom: 0;
  font-weight: 600;
}

.still-here-stamp {
  display: flex;
  justify-content: flex-end;
}

.stamp-circle {
  border: 2px dashed var(--blush-500);
  border-radius: 50px;
  padding: 8px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(-3deg);
  background: var(--blush-100);
}

.stamp-circle span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blush-deep);
}

.stamp-circle strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--blush-deep);
}

/* Playful Stat Cards Grid */
.stat-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--cream-border);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stat-card-gold {
  border-color: var(--gold-accent);
  background: radial-gradient(circle at center, #fffdf8 0%, #fff7eb 100%);
}

.stat-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.stat-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: 6px;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.fake-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--cream-300);
  border-radius: 4px;
  overflow: hidden;
  margin: 6px 0 10px 0;
}

.fake-bar-fill {
  width: 82%;
  height: 100%;
  background: linear-gradient(90deg, var(--blush-400), var(--gold-accent));
  border-radius: 4px;
  animation: pulseBar 2s infinite alternate;
}

@keyframes pulseBar {
  0% { width: 80%; }
  100% { width: 95%; }
}

.stat-note {
  font-size: 0.8rem;
  color: var(--ink-400);
  margin-bottom: 14px;
}

.stat-react-btn {
  background: var(--cream-100);
  border: 1px solid var(--cream-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-800);
  cursor: pointer;
  transition: all 0.2s ease;
}

.stat-react-btn:hover {
  background: var(--blush-200);
  border-color: var(--blush-400);
  transform: scale(1.05);
}

/* ==========================================================================
   4. SECTION: THE WEIRDEST THING ABOUT US
   ========================================================================== */
.weirdest-story-container {
  max-width: 780px;
  margin: 0 auto;
}

.magic-reset-card {
  background: var(--cream-100);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 36px 32px;
  position: relative;
}

.system-reset-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--cream-border);
}

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

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

.terminal-title {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--ink-400);
  margin-left: 6px;
}

.weirdest-text p {
  font-size: 1.08rem;
  color: var(--ink-800);
  line-height: 1.7;
  margin-bottom: 12px;
}

.highlight-moment {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blush-deep);
}

.bold-revelation {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 18px !important;
}

.return-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 20px 0;
}

.return-item {
  background: #ffffff;
  border: 1px solid var(--lavender-300);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--ink-900);
}

.quote-italic {
  font-style: italic;
  color: var(--ink-600);
  background: var(--blush-100);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin: 16px 0 !important;
}

.sweet-reflection {
  color: var(--ink-600);
}

/* Dramatic Reveal Box */
.dramatic-reveal-box {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #fff7f9, #f7f1fc);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--blush-300);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dramatic-word {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--ink-800);
  opacity: 0.3;
  transform: translateY(6px);
  transition: all 0.6s ease;
}

.dramatic-word.revealed {
  opacity: 1;
  transform: translateY(0);
}

.highlight-real {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blush-deep);
  text-decoration: underline wavy var(--blush-400);
}

/* ==========================================================================
   5. SECTION: PHOTO GALLERY (CENTERPIECE)
   ========================================================================== */
.gallery-section {
  padding-bottom: 70px;
}

.gallery-header-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.tag-gallery {
  background: var(--lavender-200);
  border-color: var(--lavender-400);
}

.gallery-subtitle {
  font-family: var(--font-hand);
  font-size: 1.7rem;
  color: var(--ink-600);
  margin-bottom: 6px;
}

.gallery-tip {
  font-size: 0.85rem;
  color: var(--blush-deep);
  font-weight: 600;
}

.scrapbook-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

/* Tilt variations for realistic photo scatter */
.tilt-p1 { transform: rotate(-3deg); }
.tilt-p2 { transform: rotate(2.5deg); }
.tilt-p3 { transform: rotate(-1.5deg); }
.tilt-p4 { transform: rotate(3.5deg); }

.pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.pin-rose { background: radial-gradient(circle at 35% 35%, #ffa6b8, #bd3e58); }
.pin-gold { background: radial-gradient(circle at 35% 35%, #ffd978, #b88319); }
.pin-purple { background: radial-gradient(circle at 35% 35%, #d1b8f8, #6d4fa8); }

.tape-corner-top {
  position: absolute;
  top: -10px;
  right: 18px;
  width: 75px;
  height: 22px;
  background: rgba(246, 196, 206, 0.7);
  transform: rotate(6deg);
}

.tape-corner-left {
  position: absolute;
  top: -10px;
  left: 18px;
  width: 75px;
  height: 22px;
  background: rgba(221, 208, 243, 0.75);
  transform: rotate(-6deg);
}

.photo-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.note-sticker {
  font-size: 1.3rem;
}

/* Grand Special Polaroid */
.polaroid-special {
  grid-column: 1 / -1;
  max-width: 480px;
  margin: 20px auto 0 auto;
  border: 2px solid var(--rose-gold);
}

.wax-seal-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: radial-gradient(circle at 30% 30%, #de4e6b, #8b1f36);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(139, 31, 54, 0.4);
  z-index: 6;
}

.highlight-bold {
  font-size: 1.55rem !important;
  font-weight: 700;
  color: var(--blush-deep);
}

/* ==========================================================================
   6. SECTION: THINGS I'LL PROBABLY REMEMBER
   ========================================================================== */
.section-lead-note {
  font-size: 1.05rem;
  color: var(--ink-600);
  margin-top: -16px;
  margin-bottom: 30px;
}

.corkboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.sticky-note {
  padding: 26px 22px 20px 22px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 18px rgba(60, 40, 50, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.sticky-note:hover {
  transform: translateY(-8px) scale(1.03) rotate(0deg) !important;
  box-shadow: 0 16px 32px rgba(60, 40, 50, 0.14);
  z-index: 10;
}

.tilt-note-1 { transform: rotate(-2deg); }
.tilt-note-2 { transform: rotate(2.5deg); }
.tilt-note-3 { transform: rotate(-1deg); }

.note-yellow { background: #fff8db; border-top: 3px solid #f6e69f; }
.note-pink { background: #ffebee; border-top: 3px solid #f9c2cb; }
.note-lavender { background: #f3e5f5; border-top: 3px solid #dfc2e5; }
.note-mint { background: #e8f5e9; border-top: 3px solid #c2e2c5; }
.note-peach { background: #fff3e0; border-top: 3px solid #fdd29c; }
.note-blue { background: #e3f2fd; border-top: 3px solid #b7daf3; }

.sticky-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 35%, #ff7388, #b01931);
  border-radius: 50%;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.sticky-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sticky-text {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--ink-900);
  line-height: 1.35;
  font-weight: 600;
}

.sticky-footer {
  font-size: 0.75rem;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-align: right;
  margin-top: 14px;
}

.full-width-note {
  grid-column: 1 / -1;
  max-width: 680px;
  margin: 12px auto 0 auto;
}

.note-golden {
  background: radial-gradient(circle at center, #fffbf0 0%, #fff4d6 100%);
  border: 1.5px solid var(--gold-accent);
  box-shadow: 0 12px 28px rgba(184, 134, 11, 0.15);
  text-align: center;
}

.golden-wax-seal {
  width: 28px;
  height: 28px;
  background: var(--gold-accent);
  border-radius: 50%;
  margin: -14px auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.sticky-text-special {
  font-family: var(--font-hand);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.4;
}

/* ==========================================================================
   7. SECTION: IF OUR FRIENDSHIP WAS A MOVIE... 🎬
   ========================================================================== */
.tag-movie {
  background: #fdf2e9;
  border-color: #f7cb9b;
}

.movie-ticket-card {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 2px dashed var(--cream-border);
  position: relative;
  overflow: hidden;
}

.ticket-header {
  background: #251f2d;
  color: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ticket-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clapper-stripes {
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    #251f2d,
    #251f2d 12px,
    #ffffff 12px,
    #ffffff 24px
  );
}

.ticket-body {
  padding: 30px;
}

.movie-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.movie-field {
  display: flex;
  flex-direction: column;
}

.full-row {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blush-deep);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.field-val {
  font-size: 1.05rem;
  color: var(--ink-900);
  font-weight: 500;
}

.highlight-field .field-val {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--blush-deep);
  font-weight: 700;
}

.ending-val {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lavender-500);
}

.movie-catchphrase {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--cream-100);
  border-radius: var(--radius-sm);
  text-align: center;
}

.movie-catchphrase h3 {
  font-family: var(--font-hand);
  font-size: 1.7rem;
  color: var(--ink-900);
}

/* Perforated Stub Line */
.ticket-stub-line {
  position: relative;
  display: flex;
  align-items: center;
  margin: 28px -30px 20px -30px;
}

.stub-notch {
  width: 24px;
  height: 24px;
  background: var(--cream-200);
  border-radius: 50%;
  border: 1px solid var(--cream-border);
}

.stub-notch.left { margin-left: -12px; }
.stub-notch.right { margin-right: -12px; }

.stub-dash {
  flex-grow: 1;
  border-top: 2px dashed var(--cream-border);
}

.ticket-barcode-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.barcode {
  font-family: monospace;
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  color: var(--ink-900);
}

.barcode-num {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--ink-400);
}

/* ==========================================================================
   8. SECTION: A GENUINE APPRECIATION SECTION
   ========================================================================== */
.letterhead-container {
  max-width: 780px;
  margin: 0 auto;
  background: var(--cream-100);
  border: 1px solid var(--cream-border);
  padding: 50px 42px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
  background-image: 
    linear-gradient(rgba(240, 228, 218, 0.3) 1px, transparent 1px);
  background-size: 100% 32px;
}

.pressed-flower {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.5;
}

.flower-top-left { top: 20px; left: 20px; }
.flower-bottom-right { bottom: 20px; right: 20px; }

.sincere-salutation {
  font-family: var(--font-hand);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blush-deep);
  margin-bottom: 16px;
}

.sincere-p {
  font-size: 1.08rem;
  color: var(--ink-800);
  line-height: 1.8;
  margin-bottom: 16px;
}

.journey-staircase {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stair-step {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: var(--ink-800);
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid var(--cream-border);
}

.stair-arrow {
  color: var(--blush-400);
  font-weight: bold;
}

.appreciation-callout {
  margin-top: 30px;
  text-align: center;
  background: var(--blush-100);
  border: 1.5px solid var(--blush-300);
  padding: 20px;
  border-radius: var(--radius-sm);
}

.appreciation-callout p {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--ink-900);
  margin-bottom: 4px;
}

/* ==========================================================================
   9. SECTION: BIRTHDAY WISHES
   ========================================================================== */
.tag-birthday {
  background: #fce7ec;
  border-color: #f7a8b9;
}

.wishes-card-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.wishes-card {
  background: #ffffff;
  border: 1px solid var(--cream-border);
  padding: 44px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
}

.candle-sparkle-decor {
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  margin-bottom: 30px;
}

.wish-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--cream-100);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-border);
  transition: transform 0.2s ease;
}

.wish-item:hover {
  transform: translateX(4px);
  background: var(--blush-100);
}

.wish-icon {
  font-size: 1.3rem;
  margin-top: 2px;
}

.wish-item p {
  font-size: 1.05rem;
  color: var(--ink-800);
  line-height: 1.5;
}

.wish-affirmation {
  background: var(--lavender-100);
  border-left: 3px solid var(--lavender-400);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 36px;
}

.wish-affirmation p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lavender-500);
}

/* Interactive Birthday Cake */
.cake-interaction-area {
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cake-instruction {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: var(--blush-deep);
  margin-bottom: 16px;
}

.cake-svg-wrapper {
  position: relative;
  width: 140px;
  height: 120px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 10px;
}

.cake-plate {
  width: 130px;
  height: 10px;
  background: #e2dcd3;
  border-radius: 5px;
}

.cake-tier-bottom {
  width: 100px;
  height: 38px;
  background: #f7c5cf;
  border-radius: 6px 6px 0 0;
  border: 2px solid #eb9aa9;
  position: relative;
}

.cake-tier-top {
  width: 70px;
  height: 30px;
  background: #ffecb3;
  border-radius: 6px 6px 0 0;
  border: 2px solid #fed26e;
  position: relative;
}

.candle-stick {
  position: absolute;
  top: 10px;
  width: 8px;
  height: 30px;
  background: repeating-linear-gradient(45deg, #fff, #fff 4px, #f48fb1 4px, #f48fb1 8px);
  border-radius: 3px;
  display: flex;
  justify-content: center;
}

.flame {
  position: absolute;
  top: -16px;
  width: 12px;
  height: 18px;
  background: radial-gradient(ellipse at bottom, #fff, #ffd54f 40%, #ff7043 80%);
  border-radius: 50% 50% 20% 20%;
  filter: drop-shadow(0 0 6px rgba(255, 179, 0, 0.8));
  animation: flickerFlame 0.8s infinite alternate;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.flame.extinguished {
  opacity: 0;
  transform: scale(0.2) translateY(-10px);
}

@keyframes flickerFlame {
  0% { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1.15) rotate(3deg); }
}

.smoke-puff {
  position: absolute;
  top: -24px;
  font-size: 1.4rem;
  opacity: 0;
  pointer-events: none;
}

.smoke-puff.show-smoke {
  animation: floatSmoke 1.5s ease-out forwards;
}

@keyframes floatSmoke {
  0% { opacity: 0.8; transform: translateY(0) scale(0.6); }
  100% { opacity: 0; transform: translateY(-35px) scale(1.6); }
}

.wish-feedback-text {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blush-deep);
  min-height: 28px;
  margin-top: 10px;
}

.final-wishes-signoff {
  margin-top: 30px;
}

.birthday-cheer {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--blush-deep);
  margin-bottom: 12px;
}

.humorous-closing {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--ink-800);
  line-height: 1.3;
}

.punchline-bold {
  font-family: var(--font-hand);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blush-deep);
  margin-top: 8px;
}

/* ==========================================================================
   10. SECTION: THE HIDDEN FINAL MESSAGE TEASER
   ========================================================================== */
.hidden-message-teaser-section {
  text-align: center;
  background: radial-gradient(circle at center, #fff6f8 0%, #f7edf5 100%);
  border: 2px dashed var(--rose-gold);
}

.teaser-container {
  max-width: 600px;
  margin: 0 auto;
}

.teaser-eyes {
  font-size: 3rem;
  display: inline-block;
  margin-bottom: 12px;
  animation: eyeBounce 2.5s infinite;
}

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

.teaser-heading {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--ink-900);
  margin-bottom: 10px;
}

.teaser-sub {
  font-size: 1.05rem;
  color: var(--ink-600);
  margin-bottom: 28px;
}

.btn-reveal-letter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--ink-900), #45344f);
  color: #fff;
  border: none;
  padding: 16px 36px;
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 31, 45, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-reveal-letter:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 35px rgba(37, 31, 45, 0.4);
}

.btn-reveal-letter .envelope-icon {
  font-size: 1.4rem;
}

/* ==========================================================================
   11. SECTION: FINAL SCREEN & CHAPTER TIMELINE
   ========================================================================== */
.final-chapter-section {
  padding-bottom: 50px;
}

.timeline-checklist-card {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--cream-border);
  padding: 44px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  text-align: center;
  color: var(--ink-900);
  margin-bottom: 30px;
}

.chapter-check-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--cream-100);
  border: 1px solid var(--cream-border);
}

.check-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.check-item.done .check-box {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1.5px solid #a5d6a7;
}

.check-item.in-progress {
  background: var(--blush-100);
  border-color: var(--blush-300);
}

.check-item.in-progress .check-box {
  background: var(--blush-200);
  color: var(--blush-deep);
  border: 1.5px solid var(--blush-400);
}

.pulse-box {
  animation: pulseIcon 1.5s infinite;
}

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

.check-label {
  display: flex;
  flex-direction: column;
}

.check-label strong {
  font-size: 1.05rem;
  color: var(--ink-900);
}

.highlight-chapter-text {
  font-family: var(--font-serif);
  font-size: 1.25rem !important;
  color: var(--blush-deep) !important;
}

.check-label span {
  font-size: 0.85rem;
  color: var(--ink-400);
}

.loading-tag {
  font-family: var(--font-hand);
  font-size: 1.25rem !important;
  font-weight: 700;
  color: var(--blush-deep) !important;
}

.final-farewell-message {
  text-align: center;
  margin-bottom: 30px;
}

.farewell-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.farewell-sub {
  font-family: var(--font-hand);
  font-size: 1.55rem;
  color: var(--ink-600);
}

.final-actions-wrap {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-replay,
.btn-secondary-letter {
  padding: 13px 28px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-replay {
  background: var(--blush-400);
  color: #fff;
  border: none;
  box-shadow: 0 6px 16px rgba(238, 149, 168, 0.4);
}

.btn-replay:hover {
  background: var(--blush-500);
  transform: translateY(-2px);
}

.btn-secondary-letter {
  background: #ffffff;
  color: var(--ink-800);
  border: 1px solid var(--cream-border);
}

.btn-secondary-letter:hover {
  background: var(--cream-100);
  transform: translateY(-2px);
}

/* Footer */
.scrapbook-footer {
  text-align: center;
  padding-top: 30px;
  color: var(--ink-400);
  font-family: var(--font-hand);
  font-size: 1.35rem;
}

.footer-sub {
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--ink-light);
  margin-top: 4px;
}

/* ==========================================================================
   MODAL: HANDWRITTEN LETTER OVERLAY
   ========================================================================== */
.letter-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.letter-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.letter-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(37, 31, 45, 0.75);
  backdrop-filter: blur(8px);
}

.vintage-envelope-letter-wrap {
  position: relative;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: #fffdfa;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  padding: 48px 40px;
  border: 1px solid var(--cream-border);
  z-index: 2;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  background-image: 
    linear-gradient(rgba(240, 228, 218, 0.4) 1px, transparent 1px);
  background-size: 100% 30px;
}

.letter-modal-overlay.active .vintage-envelope-letter-wrap {
  transform: translateY(0) scale(1);
}

.btn-close-letter {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--cream-200);
  border: 1px solid var(--cream-border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close-letter:hover {
  background: var(--blush-200);
  color: var(--blush-deep);
}

.wax-seal-stamp {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle at 35% 35%, #de4e6b, #8b1f36);
  border-radius: 50%;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(139, 31, 54, 0.4);
}

.letter-date {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--ink-400);
  text-align: right;
  margin-bottom: 8px;
}

.letter-salutation {
  font-family: var(--font-hand);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--blush-deep);
  margin-bottom: 24px;
}

.letter-body-text p {
  font-family: var(--font-hand);
  font-size: 1.55rem;
  color: var(--ink-900);
  line-height: 1.6;
  margin-bottom: 16px;
}

.letter-subhead {
  font-size: 1.7rem !important;
  font-weight: 700;
  color: var(--blush-deep) !important;
  margin-top: 20px;
}

.letter-thanks-list {
  padding-left: 16px;
  border-left: 2px solid var(--blush-300);
  margin: 12px 0 20px 0;
}

.letter-thanks-list p {
  margin-bottom: 6px !important;
}

.letter-highlight-text {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: var(--blush-deep) !important;
  background: var(--blush-100);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.letter-cheer {
  font-family: var(--font-serif) !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: var(--blush-deep) !important;
  margin-top: 24px;
}

.letter-signature-block {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px dashed var(--cream-border);
}

.sign-off-funny {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--ink-600);
  font-style: italic;
}

.letter-bottom-actions {
  margin-top: 28px;
  text-align: center;
}

.btn-finish-reading {
  background: linear-gradient(135deg, var(--blush-400), var(--blush-500));
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(219, 107, 132, 0.35);
  transition: all 0.25s ease;
}

.btn-finish-reading:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(219, 107, 132, 0.45);
}

/* ==========================================================================
   MODAL: LIGHTBOX FOR POLAROID PHOTOS
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 20, 30, 0.85);
  backdrop-filter: blur(8px);
}

.lightbox-card {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: 100%;
}

.btn-close-lightbox {
  position: absolute;
  top: -16px;
  right: -16px;
  background: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--ink-900);
  box-shadow: var(--shadow-md);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-polaroid {
  background: #ffffff;
  padding: 18px 18px 24px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  position: relative;
}

.lightbox-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: rgba(246, 196, 206, 0.8);
}

.lightbox-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cream-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-caption-text {
  font-family: var(--font-hand);
  font-size: 1.7rem;
  color: var(--ink-900);
  line-height: 1.25;
  margin-bottom: 4px;
}

.lightbox-tag-text {
  font-size: 0.8rem;
  color: var(--ink-400);
}

.lightbox-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.lightbox-nav-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* ==========================================================================
   DRAWER: PHOTO MANAGER DRAWER
   ========================================================================== */
.photo-manager-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 360px;
  max-width: 90vw;
  background: #ffffff;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.2);
  z-index: 5500;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.photo-manager-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--cream-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-900);
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--ink-400);
}

.drawer-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-instruction {
  font-size: 0.85rem;
  color: var(--ink-600);
  margin-bottom: 18px;
}

.slots-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--cream-100);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-sm);
}

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

.slot-thumb {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--cream-300);
}

.slot-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-800);
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-upload-btn {
  background: var(--blush-100);
  border: 1px solid var(--blush-300);
  color: var(--blush-deep);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slot-upload-btn:hover {
  background: var(--blush-200);
}

.drawer-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.btn-reset-photos {
  background: none;
  border: 1px dashed var(--ink-light);
  color: var(--ink-600);
  font-size: 0.78rem;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
}

.btn-reset-photos:hover {
  border-color: var(--blush-deep);
  color: var(--blush-deep);
}

.drawer-tip {
  font-size: 0.75rem;
  color: var(--ink-400);
  margin-top: 14px;
  font-style: italic;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 860px) {
  .story-grid-two-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .polaroid-trio {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .polaroid-card {
    max-width: 260px;
  }

  .movie-meta-grid {
    grid-template-columns: 1fr;
  }

  .scrapbook-section {
    padding: 40px 24px;
  }
}

@media (max-width: 600px) {
  .scrapbook-wrapper {
    padding: 20px 14px 100px 14px;
  }

  .cover-card {
    padding: 36px 20px;
  }

  .cover-title {
    font-size: 2rem;
  }

  .birthday-subtitle-card {
    padding: 18px 20px;
  }

  .scrapbook-section {
    padding: 30px 16px;
    border-radius: var(--radius-md);
  }

  .vintage-envelope-letter-wrap {
    padding: 32px 20px;
  }

  .letter-body-text p {
    font-size: 1.35rem;
  }

  .music-widget {
    bottom: 16px;
    right: 16px;
    padding: 6px 12px 6px 6px;
  }

  .music-actions {
    display: none; /* Keep clean on small phones */
  }

  .photo-manager-trigger {
    bottom: 16px;
    left: 16px;
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .story-progress-bar {
    display: none; /* Save space on small screens */
  }
}
