/* ==========================================================================
   ROMANTIC DIGITAL APOLOGY LETTER — STYLESHEET
   Crafted with care, elegance, and emotional warmth
   ========================================================================== */

/* --- Custom Properties / Design Tokens --- */
:root {
  /* Color Palette */
  --color-bg-base: #faf6f4;
  --color-bg-subtle: #fcf8f7;
  --color-bg-gradient: linear-gradient(145deg, #fbf7f5 0%, #faedea 50%, #fdf5f5 100%);
  
  --color-blush-soft: #fde8e9;
  --color-blush: #f8c3c8;
  --color-rose-light: #f29ca7;
  --color-rose: #e7697b;
  --color-rose-deep: #b3394c;
  --color-wine: #741d2d;
  
  --color-cream: #fffdfa;
  --color-gold: #d4a373;
  --color-gold-light: #faedcd;
  --color-champagne: #fae1dd;

  --color-text-main: #331d24;
  --color-text-muted: #6b4d57;
  --color-text-soft: #9c7b84;
  --color-text-light: #fffdfd;

  /* Glassmorphism Tokens */
  --glass-bg: rgba(255, 255, 255, 0.76);
  --glass-bg-hover: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(231, 105, 123, 0.16);
  --glass-border-hover: rgba(231, 105, 123, 0.35);
  --glass-shadow: 0 16px 36px -10px rgba(180, 57, 76, 0.08), 0 0 1px rgba(0, 0, 0, 0.04);
  --glass-shadow-hover: 0 24px 48px -12px rgba(180, 57, 76, 0.16), 0 0 1px rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Garamond, Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-signature: 'Alex Brush', cursive;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.25s;
  --duration-normal: 0.45s;
  --duration-slow: 0.8s;

  /* Border Radii */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 9999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-base);
  background: var(--color-bg-gradient);
  color: var(--color-text-main);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  selection-background-color: var(--color-blush);
  selection-color: var(--color-wine);
}

::selection {
  background: rgba(231, 105, 123, 0.2);
  color: var(--color-wine);
}

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

/* Reading Progress Bar */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  background: transparent;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-rose-light), var(--color-rose), var(--color-gold));
  box-shadow: 0 0 10px rgba(231, 105, 123, 0.5);
  transition: width 0.1s ease-out;
}

/* Floating Audio Controls */
.floating-controls {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 999;
}

.glass-control-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--glass-shadow);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.glass-control-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-rose-deep);
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
}

.sound-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-fast) ease;
}

.sound-active svg {
  color: var(--color-rose);
  animation: pulse-soft 2s infinite ease-in-out;
}

/* --- Layout & Containers --- */
.main-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 780px;
}

.container-letter {
  max-width: 840px;
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

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

/* Badges & Section Headers */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(248, 195, 200, 0.3);
  border: 1px solid rgba(231, 105, 123, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-rose-deep);
  margin-bottom: 1.25rem;
}

.badge-center {
  margin-left: auto;
  margin-right: auto;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-rose);
  display: inline-block;
  animation: pulse-soft 2s infinite;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-text-muted);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto var(--space-lg) auto;
}

/* --- Buttons Common Styles --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-rose-deep) 100%);
  color: var(--color-text-light);
  box-shadow: 0 8px 24px -6px rgba(231, 105, 123, 0.5), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px -6px rgba(231, 105, 123, 0.6), 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-pulse {
  animation: heart-glow-pulse 3s infinite;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  color: var(--color-text-main);
  border: 1px solid rgba(231, 105, 123, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--color-rose-deep);
  border-color: var(--color-rose);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(231, 105, 123, 0.2);
}

/* ==========================================================================
   HERO / OPENING SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 3rem 1.5rem;
  text-align: center;
}

.hero-backdrop-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  max-width: 90vw;
  max-height: 90vw;
  background: radial-gradient(circle, rgba(248, 195, 200, 0.45) 0%, rgba(250, 237, 205, 0.2) 50%, rgba(250, 246, 244, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  z-index: -1;
  animation: float-glow 8s ease-in-out infinite alternate;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.letter-stamp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px dashed rgba(231, 105, 123, 0.4);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(231, 105, 123, 0.08);
}

.stamp-icon {
  font-size: 1rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-greeting {
  font-family: var(--font-editorial);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-style: italic;
  font-weight: 600;
  color: var(--color-rose-deep);
  line-height: 1.1;
}

.hero-subheading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.25;
}

.hero-caption {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem auto;
  font-weight: 400;
}

.hero-actions {
  margin-bottom: 3.5rem;
}

.hero-actions .btn {
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.75;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--color-rose);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--color-rose);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  animation: scroll-bob 2s infinite ease-in-out;
}

.scroll-text {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   SECTION 1 — THE APOLOGY (PARCHMENT LETTER)
   ========================================================================== */
.letter-paper {
  background: var(--color-cream);
  background-image: 
    radial-gradient(var(--color-blush-soft) 0.75px, transparent 0.75px), 
    linear-gradient(180deg, #fffdfa 0%, #fcf5f1 100%);
  background-size: 20px 20px, 100% 100%;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(231, 105, 123, 0.2);
  box-shadow: 
    0 20px 50px -15px rgba(180, 57, 76, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.02),
    inset 0 0 40px rgba(248, 195, 200, 0.15);
  position: relative;
  overflow: hidden;
}

.paper-watermark {
  position: absolute;
  right: 5%;
  bottom: 10%;
  font-family: var(--font-signature);
  font-size: clamp(3.5rem, 8vw, 7rem);
  color: rgba(231, 105, 123, 0.04);
  pointer-events: none;
  user-select: none;
  transform: rotate(-12deg);
}

.letter-salutation {
  font-family: var(--font-editorial);
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 600;
  font-style: italic;
  color: var(--color-rose-deep);
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(231, 105, 123, 0.15);
  padding-bottom: 1rem;
}

.letter-body-text {
  font-size: clamp(1.05rem, 1.8vw, 1.15rem);
  line-height: 1.85;
  color: var(--color-text-main);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.highlighted-quote {
  font-family: var(--font-editorial);
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  font-style: italic;
  font-weight: 600;
  color: var(--color-wine);
  background: rgba(248, 195, 200, 0.22);
  border-left: 3px solid var(--color-rose);
  padding: 1.1rem 1.4rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0.75rem 0;
}

.letter-footer-note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(231, 105, 123, 0.2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.seal-ring {
  font-size: 1.25rem;
}

/* ==========================================================================
   SECTION 2 — QUESTION 1 INTERACTION
   ========================================================================== */
.interactive-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--glass-shadow);
  position: relative;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.question-buttons-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  min-height: 110px;
  padding: 1rem 0;
}

.btn-interactive-yes {
  background: linear-gradient(135deg, #e7697b 0%, #c4384d 100%);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1rem 2.75rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px -5px rgba(231, 105, 123, 0.5);
  transform-origin: center center;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease;
  will-change: transform;
}

.btn-interactive-yes:hover {
  box-shadow: 0 14px 32px -4px rgba(231, 105, 123, 0.65);
}

.btn-interactive-no {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text-muted);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(180, 57, 76, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transform-origin: center center;
  transition: transform 0.3s var(--ease-bounce), opacity 0.3s ease;
  will-change: transform;
}

.btn-interactive-no:hover {
  background: #ffffff;
  color: var(--color-text-main);
  border-color: var(--color-rose);
}

.playful-feedback {
  min-height: 32px;
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-rose-deep);
  font-family: var(--font-display);
  transition: opacity 0.25s ease;
}

.playful-shake {
  animation: playful-wiggle 0.5s var(--ease-smooth);
}

/* Question Responses */
.question-response {
  animation: fade-in-up 0.6s var(--ease-smooth) forwards;
  padding: 1.5rem 0 0.5rem 0;
}

.response-icon-pulse {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: heart-bounce 1.5s infinite var(--ease-bounce);
}

.response-icon-gentle {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.response-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.75rem;
}

.response-text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.7;
}

.btn-next-step {
  margin-top: 0.5rem;
}

/* ==========================================================================
   SECTION 3 — WHAT I SHOULD HAVE DONE (TIMELINE / CARDS)
   ========================================================================== */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.timeline-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.timeline-card:hover {
  transform: translateY(-6px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-number {
  font-family: var(--font-editorial);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.05em;
}

.card-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(248, 195, 200, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.85rem;
}

.card-body {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  flex-grow: 1;
  font-style: italic;
}

.card-accent-line {
  height: 3px;
  width: 36px;
  background: linear-gradient(90deg, var(--color-rose), var(--color-gold));
  border-radius: 2px;
  margin-top: 1.5rem;
}

/* ==========================================================================
   SECTION 4 — INTERACTIVE MEMORIES (CARDS)
   ========================================================================== */
.memory-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.memory-card {
  min-height: 220px;
  perspective: 1000px;
  cursor: pointer;
  border-radius: var(--radius-lg);
  outline: none;
}

.memory-card:focus-visible .memory-card-inner {
  box-shadow: 0 0 0 3px var(--color-rose);
}

.memory-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  text-align: center;
  transition: transform 0.7s var(--ease-smooth);
  transform-style: preserve-3d;
  border-radius: var(--radius-lg);
}

.memory-card.is-flipped .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-front,
.memory-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}

.memory-card-front {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all var(--duration-fast) ease;
}

.memory-card:hover .memory-card-front {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
}

.memory-emoji {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.memory-front-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.75rem;
}

.tap-hint {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-rose-deep);
  background: rgba(248, 195, 200, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.memory-card-back {
  background: linear-gradient(145deg, #fffbfa 0%, #fdf0f2 100%);
  color: var(--color-text-main);
  transform: rotateY(180deg);
  border-color: rgba(231, 105, 123, 0.35);
}

.memory-back-tag {
  font-family: var(--font-editorial);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-rose-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.memory-back-text {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ==========================================================================
   SECTION 5 — QUESTION 2 (CHANCES)
   ========================================================================== */
.chance-buttons-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-chance {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  color: var(--color-text-main);
  border: 1px solid var(--glass-border);
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.btn-chance:hover {
  background: #ffffff;
  border-color: var(--color-rose);
  transform: translateY(-2px);
}

.btn-chance.is-active {
  background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-rose-deep) 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 24px -4px rgba(231, 105, 123, 0.45);
}

.chance-response-box {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(231, 105, 123, 0.3);
  margin-top: 1.25rem;
  animation: fade-in-up 0.5s var(--ease-smooth) forwards;
}

.chance-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.chance-message {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-main);
  font-family: var(--font-editorial);
  font-weight: 500;
  font-style: italic;
  max-width: 580px;
  margin: 0 auto;
}

/* ==========================================================================
   SECTION 6 — THE REAL LETTER
   ========================================================================== */
.authentic-letter-card {
  background: #ffffff;
  background-image: 
    radial-gradient(rgba(231, 105, 123, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #fffefe 0%, #fdf9f7 100%);
  background-size: 24px 24px, 100% 100%;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border: 1px solid rgba(212, 163, 115, 0.3);
  box-shadow: 
    0 25px 60px -15px rgba(116, 29, 45, 0.09),
    0 0 0 1px rgba(255, 255, 255, 0.8),
    inset 0 0 60px rgba(250, 240, 230, 0.4);
  position: relative;
}

.letter-ribbon-decor {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 1px solid rgba(231, 105, 123, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(231, 105, 123, 0.15);
  font-size: 1.3rem;
}

.letter-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(212, 163, 115, 0.25);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.letter-recipient {
  font-family: var(--font-signature);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-wine);
  line-height: 1;
}

.letter-postmark {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  font-weight: 600;
}

.letter-card-content {
  font-family: var(--font-editorial);
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  line-height: 1.95;
  color: var(--color-text-main);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.letter-card-signature-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px dashed rgba(212, 163, 115, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.signature-closing {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 0.25rem;
}

.signature-name {
  font-family: var(--font-signature);
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  color: var(--color-rose-deep);
  line-height: 1;
}

.wax-seal {
  width: 68px;
  height: 68px;
  background: radial-gradient(circle at 35% 35%, #d93850 0%, #8b1e30 70%, #520e1a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fae1dd;
  box-shadow: 
    0 8px 20px -4px rgba(116, 29, 45, 0.45),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transform: rotate(6deg);
}

.wax-monogram {
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   SECTION 7 — FINAL INTERACTION & DECISION
   ========================================================================== */
.final-header-wrap {
  margin-bottom: 2.5rem;
}

.final-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-rose-deep);
  margin-bottom: 0.5rem;
}

.final-hero-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.final-small {
  font-family: var(--font-editorial);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-style: italic;
  color: var(--color-text-muted);
}

.final-big {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--color-text-main);
}

.final-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-final-option {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: var(--color-text-main);
}

.btn-final-option:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: var(--color-rose);
  box-shadow: var(--glass-shadow-hover);
}

.btn-final-option.is-selected {
  background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-rose-deep) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 28px -5px rgba(231, 105, 123, 0.5);
}

.final-output-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--glass-shadow);
  animation: fade-in-up 0.5s var(--ease-smooth) forwards;
}

.outcome-badge-icon {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.outcome-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 1.25rem;
}

.outcome-message {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.promise-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.promise-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.6);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(231, 105, 123, 0.15);
}

.highlight-promise {
  background: rgba(248, 195, 200, 0.3);
  font-weight: 600;
  color: var(--color-wine);
  border-color: rgba(231, 105, 123, 0.35);
}

.promise-check {
  color: var(--color-rose);
  font-weight: bold;
  font-size: 1.1rem;
}

.whatsapp-cta-wrap {
  margin-top: 1.75rem;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  font-size: 1.1rem;
  padding: 0.95rem 2.25rem;
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px -4px rgba(37, 211, 102, 0.55);
}

.wa-icon {
  margin-right: 0.25rem;
}

/* ==========================================================================
   FINAL CLOSING SCREEN & FOOTER
   ========================================================================== */
.closing-screen {
  padding: var(--space-2xl) 0 3rem 0;
  text-align: center;
}

.closing-heart-glow {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: heart-beat 2.2s infinite ease-in-out;
}

.closing-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  color: var(--color-rose-deep);
  margin-bottom: 1.5rem;
}

.closing-creed {
  font-family: var(--font-editorial);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text-main);
  margin-bottom: 2.5rem;
}

.replay-action-wrapper {
  margin-bottom: 3.5rem;
}

.btn-replay {
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
}

.replay-icon {
  font-size: 1.1rem;
  transition: transform var(--duration-normal) var(--ease-bounce);
}

.btn-replay:hover .replay-icon {
  transform: rotate(-180deg);
}

.site-footer {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  border-top: 1px solid rgba(231, 105, 123, 0.15);
  padding-top: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   CONFETTI & FLOATING HEARTS PARTICLES
   ========================================================================== */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-heart {
  position: absolute;
  font-size: 1.5rem;
  user-select: none;
  pointer-events: none;
  animation: float-heart-up 3s ease-out forwards;
}

/* ==========================================================================
   ANIMATIONS & SCROLL REVEALS
   ========================================================================== */
.fade-in {
  opacity: 0;
  animation: fade-in-up 0.8s var(--ease-smooth) forwards;
}

.fade-in-delay-1 {
  opacity: 0;
  animation: fade-in-up 0.8s 0.2s var(--ease-smooth) forwards;
}

.fade-in-delay-2 {
  opacity: 0;
  animation: fade-in-up 0.8s 0.4s var(--ease-smooth) forwards;
}

.fade-in-delay-3 {
  opacity: 0;
  animation: fade-in-up 0.8s 0.6s var(--ease-smooth) forwards;
}

.fade-in-delay-4 {
  opacity: 0;
  animation: fade-in-up 0.8s 0.8s var(--ease-smooth) forwards;
}

.fade-in-delay-5 {
  opacity: 0;
  animation: fade-in-up 0.8s 1s var(--ease-smooth) forwards;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

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

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-glow {
  0% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.4;
  }
  100% {
    transform: translate(-50%, -48%) scale(1.1);
    opacity: 0.7;
  }
}

@keyframes pulse-soft {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.92);
  }
}

@keyframes scroll-bob {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes playful-wiggle {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px) rotate(-2deg); }
  40% { transform: translateX(8px) rotate(2deg); }
  60% { transform: translateX(-5px) rotate(-1deg); }
  80% { transform: translateX(5px) rotate(1deg); }
}

@keyframes heart-glow-pulse {
  0%, 100% {
    box-shadow: 0 8px 24px -6px rgba(231, 105, 123, 0.5), 0 0 0 0 rgba(231, 105, 123, 0.4);
  }
  50% {
    box-shadow: 0 12px 32px -4px rgba(231, 105, 123, 0.65), 0 0 0 12px rgba(231, 105, 123, 0);
  }
}

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

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.2); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

@keyframes float-heart-up {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.6) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-350px) scale(1.3) rotate(30deg);
  }
}

/* ==========================================================================
   RESPONSIVENESS & ACCESSIBILITY
   ========================================================================== */
@media (max-width: 768px) {
  .section {
    padding: var(--space-xl) 0;
  }
  
  .letter-paper {
    padding: 2rem 1.5rem;
  }

  .authentic-letter-card {
    padding: 2.25rem 1.5rem;
  }

  .letter-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .letter-card-signature-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .wax-seal {
    align-self: flex-end;
  }

  .question-buttons-wrapper {
    gap: 1rem;
  }

  .btn-interactive-yes {
    padding: 0.85rem 2rem;
  }

  .btn-interactive-no {
    padding: 0.75rem 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero-greeting {
    font-size: 2.5rem;
  }

  .hero-subheading {
    font-size: 1.6rem;
  }

  .btn {
    width: 100%;
  }

  .question-buttons-wrapper {
    flex-direction: column;
    width: 100%;
  }

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

  .final-buttons-row {
    flex-direction: column;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
