/* ==========================================================================
   WIFE DAY GIFT - COMPLETE MOBILE-OPTIMIZED NATURAL SCROLL PAGE
   ========================================================================== */

/* Fonts are loaded directly in index.html for instant rendering without FOUT */

:root {
  --bg-gradient: linear-gradient(145deg, #fff3f5 0%, #fae6ec 50%, #f6e8f0 100%);
  --primary-pink: #fce4ec;
  --secondary-peach: #ffe0b2;
  --accent-pink: #ff8ba7;
  --accent-red: #e63946;
  --accent-gold: #f4a261;
  --text-dark: #403233;
  --text-muted: #736162;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-shadow: 0 10px 30px rgba(220, 100, 130, 0.12), 0 3px 10px rgba(0, 0, 0, 0.03);
  --card-border: 1px solid rgba(255, 139, 167, 0.22);

  --font-title: 'Gaegu', 'Comic Sans MS', cursive, sans-serif;
  --font-body: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-typewriter: 'Special Elite', monospace;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;
}

/* Natural Mobile-Optimized Column with Spacious Wide Layouts */
.main-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* Slide Section: Screen-optimized layout (Each section within screen) */
.slide-section {
  width: 100%;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px 0;
  box-sizing: border-box;
}

/* Frameless Section Layout: Elements breathe directly on full-screen gradient canvas */
.glass-card {
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 10px 16px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background-color: var(--secondary-peach);
  color: var(--text-dark);
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1.5px solid #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.85rem, 5.2vw, 2.6rem);
  color: var(--accent-red);
  line-height: 1.15;
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
}

.section-subtitle {
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  font-weight: 500;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 12px;
  text-align: center;
  width: 100%;
}

/* Tidy Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-bounce);
  box-sizing: border-box;
}

.btn-primary {
  background: linear-gradient(135deg, #ff4b8b, #ff1e60);
  color: #fff;
  border: none;
  box-shadow: 0 5px 16px rgba(255, 75, 139, 0.35);
}

.btn-primary:hover, .btn-primary:active {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 7px 20px rgba(255, 75, 139, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--accent-pink);
  border: 1.5px solid var(--accent-pink);
}

.btn-secondary:hover, .btn-secondary:active {
  background: var(--accent-pink);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   SLIDE 1: WELCOME (Screen-Optimized Compact Layout)
   ========================================================================== */
#welcome.slide-section {
  min-height: 100dvh;
  min-height: 100vh;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

#welcome .glass-card {
  padding: 12px 16px;
  max-width: 680px;
  width: 100%;
  box-sizing: border-box;
}

#welcome .hero-gif {
  max-height: clamp(100px, 15vh, 130px);
  width: auto;
  border-radius: 16px;
  margin-bottom: 12px;
  animation: float-gentle 3s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(255, 75, 139, 0.16));
}

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

#welcome .badge-pill {
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  padding: 6px 18px;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(255, 139, 167, 0.12);
  letter-spacing: 0.3px;
}

#welcome .welcome-title-wrap {
  font-size: clamp(2.4rem, 6.8vw, 3.5rem);
  line-height: 1.12;
  margin-bottom: 8px;
  color: var(--accent-red);
  text-shadow: 0 2px 14px rgba(255, 75, 139, 0.2);
  letter-spacing: -0.5px;
}

.wife-name-highlight {
  background: linear-gradient(135deg, #ff1e60, #ff4b8b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 2px 10px rgba(255, 30, 96, 0.28));
}

#welcome .section-subtitle {
  font-size: clamp(0.9rem, 2.3vw, 1.02rem);
  font-weight: 500;
  line-height: 1.45;
  max-width: 480px;
  margin-bottom: 14px;
  color: var(--text-dark);
  opacity: 0.85;
}

#welcome .days-loved-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.2px solid rgba(255, 139, 167, 0.35);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(255, 75, 139, 0.1);
  font-weight: 600;
  font-size: clamp(0.84rem, 2.2vw, 0.92rem);
  color: var(--text-dark);
}

#welcome .days-count-number {
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 800;
  color: var(--accent-red);
}

#welcome .welcome-btn-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

#welcome .welcome-btn-wrap .btn-primary {
  padding: 10px 28px;
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  letter-spacing: 0.2px;
  box-shadow: 0 6px 18px rgba(255, 75, 139, 0.35);
}

/* ==========================================================================
   SLIDE 2: THE QUESTION & RUNAWAY NO BUTTON (Click-only)
   ========================================================================== */
.question-gifs-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.question-character-gif {
  width: clamp(75px, 15vw, 95px);
  height: auto;
}

.question-title-wrap {
  position: relative;
}

.floating-question-marks {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.mark {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--accent-pink);
  animation: float-gentle 2s infinite ease-in-out;
}
.mark:nth-child(2) { animation-delay: 0.3s; color: var(--accent-red); }
.mark:nth-child(3) { animation-delay: 0.6s; color: var(--accent-gold); }

.question-options-arena {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  width: 100%;
  position: relative;
}

#no-btn {
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

/* ==========================================================================
   SLIDE 3: REASONS WHY I LOVE YOU (Text-Only Stack, No Overflow)
   ========================================================================== */
.stack-section-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.card-stack {
  position: relative;
  width: 295px;
  height: 255px;
  margin: 8px auto 0;
  perspective: 1000px;
}

.stack-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border-radius: 24px;
  padding: 16px 16px 14px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07), 0 3px 10px rgba(255, 139, 167, 0.12);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-sizing: border-box;
}

.stack-card:active {
  cursor: grabbing;
}

.stack-card .badge,
.stack-finale .badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-peach);
  color: var(--text-dark);
  padding: 3px 18px;
  border-radius: 18px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-title);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  border: 2px solid white;
  z-index: 2;
  white-space: nowrap;
}

.stack-card img {
  height: 94px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  margin-top: 2px;
  margin-bottom: 8px;
  pointer-events: none;
}

.stack-card p {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
  pointer-events: none;
  margin: 0;
}

.swipe-instruction {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-red);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0.85;
  animation: pulse-instruction 2s infinite;
}

@keyframes pulse-instruction {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
  50% { transform: translateX(-50%) scale(1.05); opacity: 1; }
}

.stack-finale {
  text-align: center;
  padding: 16px 14px 12px;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07), 0 3px 10px rgba(255, 139, 167, 0.12);
  border: 2px solid transparent;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  z-index: 0;
}

.hidden {
  display: none !important;
}

.stack-finale.hidden {
  display: none;
}

.stack-finale h3,
.stack-finale-title {
  font-size: 1.25rem;
  color: var(--accent-red);
  font-family: var(--font-title);
  margin-top: 2px;
  margin-bottom: 4px;
  line-height: 1.2;
}

.stack-finale-gif {
  height: 84px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 4px;
}

.stack-finale-text {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  color: #382b2d;
  max-width: 250px;
  margin: 4px auto 0;
}

.stack-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  position: relative;
  z-index: 20;
}

.stack-controls a {
  padding: 9px 24px;
  font-size: 0.94rem;
  font-weight: 700;
}

/* ==========================================================================
   SLIDE 4: OUR POLAROID MEMORIES (Hanging Fairy-Lights Gallery)
   ========================================================================== */
.polaroids-gallery-container {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 4px;
}

/* Fairy Lights Wire Cable */
.fairy-lights-wire {
  position: relative;
  width: min(560px, 96vw);
  height: 36px;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}

.wire-curve {
  position: absolute;
  top: 10px;
  left: 2%;
  right: 2%;
  height: 18px;
  border-bottom: 2px solid rgba(80, 60, 50, 0.45);
  border-radius: 50%;
}

.fairy-bulb {
  position: relative;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffeaa7;
  box-shadow: 0 0 10px #ffeaa7, 0 0 18px rgba(255, 234, 167, 0.8);
  animation: fairy-pulse 2s infinite alternate ease-in-out;
  z-index: 2;
}
.fairy-bulb.b-2 { background: #ffb6c1; box-shadow: 0 0 10px #ffb6c1, 0 0 18px rgba(255, 182, 193, 0.8); animation-delay: 0.4s; }
.fairy-bulb.b-3 { background: #ffeaa7; animation-delay: 0.8s; }
.fairy-bulb.b-4 { background: #ffccd5; box-shadow: 0 0 10px #ffccd5; animation-delay: 1.2s; }
.fairy-bulb.b-5 { background: #ffeaa7; animation-delay: 0.3s; }
.fairy-bulb.b-6 { background: #ffb6c1; box-shadow: 0 0 10px #ffb6c1; animation-delay: 0.9s; }

@keyframes fairy-pulse {
  0% { opacity: 0.6; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 6px rgba(255, 200, 100, 0.9)); }
}

/* Responsive Scrapbook Polaroid Grid */
.polaroid-scrapbook-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 14px;
  width: 100%;
  max-width: 580px;
  margin-top: 8px;
}

@media (min-width: 600px) {
  .polaroid-scrapbook-grid {
    gap: 26px 20px;
  }
}

.scrapbook-polaroid-item {
  background: #fffdfa;
  padding: 10px 10px 14px;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: default;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* Organic Alternate Tilts */
.scrapbook-polaroid-item:nth-child(1) { transform: rotate(-2.8deg); }
.scrapbook-polaroid-item:nth-child(2) { transform: rotate(2.4deg); }
.scrapbook-polaroid-item:nth-child(3) { transform: rotate(2.6deg); }
.scrapbook-polaroid-item:nth-child(4) { transform: rotate(-2.2deg); }

.scrapbook-polaroid-item:hover {
  transform: translateY(-4px) scale(1.02) rotate(0deg) !important;
  box-shadow: 0 14px 28px rgba(220, 100, 130, 0.18), 0 3px 8px rgba(0, 0, 0, 0.06);
  z-index: 5;
}

/* Wooden Clothespin */
.wooden-clothespin {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 28px;
  background: linear-gradient(90deg, #c9965d, #dfb17a, #a87643);
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  z-index: 5;
}
.wooden-clothespin::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 3px;
  background: #634b35;
  border-radius: 1px;
}

/* Corner Washi Tape */
.washi-tape-accent {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 48px;
  height: 18px;
  background: rgba(255, 182, 193, 0.75);
  transform: rotate(28deg);
  border-radius: 1px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  pointer-events: none;
  z-index: 4;
}
.scrapbook-polaroid-item:nth-child(2) .washi-tape-accent {
  background: rgba(255, 224, 178, 0.75);
  left: -8px;
  right: auto;
  transform: rotate(-28deg);
}
.scrapbook-polaroid-item:nth-child(3) .washi-tape-accent {
  background: rgba(193, 240, 219, 0.75);
}
.scrapbook-polaroid-item:nth-child(4) .washi-tape-accent {
  background: rgba(230, 230, 250, 0.75);
  left: -8px;
  right: auto;
  transform: rotate(-28deg);
}

.polaroid-photo-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fceef2;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.polaroid-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.scrapbook-polaroid-item:hover .polaroid-photo-box img {
  transform: scale(1.05);
}

.polaroid-caption-box {
  padding-top: 8px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.polaroid-caption-text {
  font-family: var(--font-hand);
  font-size: clamp(1.05rem, 3.2vw, 1.25rem);
  line-height: 1.25;
  color: #2b2223;
}

/* Spotlight Modal for Memory */
.polaroid-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 15, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.polaroid-modal-backdrop.visible {
  display: flex;
  animation: fade-in 0.25s ease;
}
.polaroid-modal-card {
  position: relative;
  width: min(440px, 92vw);
  background: #fffdfa;
  padding: 20px 20px 24px;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
  animation: pop-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.polaroid-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: #403233;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.polaroid-modal-close:hover {
  background: var(--accent-red);
  color: #fff;
}
.polaroid-modal-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 22px;
  background: rgba(255, 230, 180, 0.85);
  border-radius: 2px;
}
.polaroid-modal-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 280px;
  background: #2b2223;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 8px;
}
.polaroid-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.polaroid-modal-content {
  margin-top: 12px;
  width: 100%;
}
.polaroid-modal-badge {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--accent-red);
  font-weight: 700;
}
.polaroid-modal-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--accent-red);
  margin: 2px 0 6px;
}
.polaroid-modal-caption {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  line-height: 1.35;
  color: #3a2e2f;
  margin-bottom: 8px;
}
.polaroid-modal-date {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-pink);
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.polaroid-modal-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

/* ==========================================================================
   SLIDE 5: POSTAL ENVELOPE LOVE LETTER (Wider Spacious Layout)
   ========================================================================== */
.postal-wrapper {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  position: relative;
}

.postal-envelope {
  position: relative;
  width: 100%;
  max-width: 660px;
  min-height: 280px;
  background: #fbf8f2;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12), 0 4px 14px rgba(220, 100, 130, 0.16);
  cursor: pointer;
  transition: transform 0.35s var(--transition-bounce), box-shadow 0.35s ease;
  overflow: hidden;
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  margin: 0 auto;
}

.postal-envelope:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
}

.postal-envelope::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 12px solid transparent;
  border-image: repeating-linear-gradient(
    -45deg,
    #e63946 0,
    #e63946 12px,
    transparent 12px,
    transparent 18px,
    #1d3557 18px,
    #1d3557 30px,
    transparent 30px,
    transparent 36px
  ) 12;
  pointer-events: none;
}

.postal-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

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

.postage-stamp-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.postmark-circle {
  width: 46px;
  height: 46px;
  border: 1.5px dashed #1d3557;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 800;
  color: #1d3557;
  text-transform: uppercase;
  transform: rotate(-12deg);
  opacity: 0.8;
  line-height: 1;
}

.postage-stamp {
  width: 50px;
  height: 64px;
  background: #fff;
  padding: 3px;
  border: 2px dashed #b89b72;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transform: rotate(3deg);
}

.postage-stamp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.postal-address-area {
  padding: 8px 12px;
  max-width: 72%;
  z-index: 2;
}

.address-line {
  font-family: var(--font-typewriter);
  font-size: clamp(0.78rem, 2.4vw, 0.92rem);
  color: #2b2223;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
  word-break: break-word;
}

.address-line strong {
  color: #e63946;
}

.envelope-wax-seal {
  position: absolute;
  top: 54%;
  right: clamp(16px, 5vw, 36px);
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 35% 35%, #e63946, #8a142d);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  animation: pulse-glow 2.5s infinite ease-in-out;
}

.envelope-wax-seal span {
  font-size: 1.5rem;
}

.postal-prompt-text {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-red);
  text-transform: uppercase;
  z-index: 2;
}

/* Unfolded Wide Reading Layout */
.unfolded-letter-modal {
  display: none;
  background: #fffdfa;
  border-radius: var(--radius-md);
  padding: clamp(32px, 5vw, 50px) clamp(24px, 5vw, 48px);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(220, 100, 130, 0.2);
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  text-align: left;
  animation: pop-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.unfolded-letter-modal.visible {
  display: block;
}

.letter-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.letter-badge-text {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--accent-red);
}

.letter-date-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.letter-salutation {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  color: var(--accent-red);
  margin-bottom: 14px;
}

.letter-body p {
  font-size: clamp(0.94rem, 2.6vw, 1.06rem);
  line-height: 1.7;
  color: #3b2c30;
  margin-bottom: 14px;
}

.letter-sign-off {
  margin-top: 18px;
  text-align: right;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  padding-top: 10px;
}

.letter-closing-phrase {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.letter-hand-sign {
  font-family: var(--font-hand);
  font-size: 2.1rem;
  color: var(--accent-red);
}

.letter-action-row {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   SLIDE 6: GRAND FINALE - OFFICIAL BEST WIFE AWARD CERTIFICATE
   ========================================================================== */
.finale-card {
  max-width: 680px;
  width: 100%;
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 12px 14px;
  margin: 0 auto;
}

/* Sealed Award Pod (Pre-Certification State) */
.cert-sealed-pod {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: #fffdfa;
  border-radius: 22px;
  border: 2px dashed #f4a261;
  box-shadow: 
    0 16px 40px rgba(220, 100, 130, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 24px 20px 22px;
  margin: 12px auto 16px;
  text-align: center;
  box-sizing: border-box;
  animation: fade-in 0.4s ease;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cert-stamp-unlock-wrap {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.cert-wax-stamp-btn {
  background: linear-gradient(135deg, #fff9f0, #ffedd5);
  border: 2px solid #f4a261;
  border-radius: 50px;
  padding: 10px 24px 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(244, 162, 97, 0.25);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  user-select: none;
}

.cert-wax-stamp-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(244, 162, 97, 0.35);
  border-color: #e76f51;
}

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

.wax-seal-disc {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe17d, #f4a261 65%, #c85a17);
  border: 2px solid #ffd166;
  box-shadow: 
    0 4px 10px rgba(201, 103, 38, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: stamp-disc-pulse 1.8s infinite;
}

@keyframes stamp-disc-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 6px 16px rgba(201, 103, 38, 0.55); }
}

.wax-seal-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.wax-seal-txt {
  font-size: 0.52rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(90, 30, 0, 0.7);
  text-align: center;
}

.wax-stamp-label {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.wax-stamp-label strong {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: #c96726;
  line-height: 1.2;
}

.wax-stamp-label span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.wife-name-sealed {
  color: #ff1e60;
}

/* Animated Upward-Facing Arrow Cue below Sealed Pod */
.cert-stamp-cue-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px auto 14px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  animation: fade-in 0.5s ease;
}

.cert-stamp-cue-wrap:hover .cert-arrow-circle {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.45);
}

.cert-arrow-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff758f, #e63946);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 6px 18px rgba(230, 57, 70, 0.35),
    0 0 0 4px rgba(255, 230, 238, 0.6);
  animation: cue-arrow-bounce 1.5s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

@keyframes cue-arrow-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.cert-arrow-svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.cert-cue-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: #c92a2a;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 139, 167, 0.35);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 10px rgba(220, 100, 130, 0.12);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wife-award-certificate {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: #fffdf8;
  border-radius: 20px;
  border: 3px solid #f4a261;
  box-shadow: 0 14px 36px rgba(220, 100, 130, 0.12);
  padding: 14px;
  margin: 14px auto 18px;
  text-align: center;
  box-sizing: border-box;
  overflow: visible;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wife-award-certificate:hover {
  transform: translateY(-3px);
}

.wife-award-certificate.revealed {
  display: block !important;
  animation: cert-unfurl 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cert-unfurl {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cert-inner-frame {
  border: 2px dashed rgba(244, 162, 97, 0.65);
  border-radius: 14px;
  padding: 22px 18px 18px;
  background: #fffefb;
  box-sizing: border-box;
}

.cert-ribbon-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f4a261, #e76f51);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(231, 111, 81, 0.28);
  margin-bottom: 12px;
}

.cert-main-heading {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: #d62839;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 6px;
}

.cert-presented-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: #6e4331;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.cert-recipient-name {
  font-family: var(--font-hand);
  font-size: clamp(2.6rem, 7vw, 3.4rem);
  font-weight: 700;
  color: #ff1e60;
  line-height: 1.15;
  margin-bottom: 10px;
  display: inline-block;
  border-bottom: 2.5px dashed #ff4b8b;
  padding: 0 18px 2px;
}

.cert-award-reason {
  font-family: var(--font-body);
  font-size: clamp(0.96rem, 2.5vw, 1.06rem);
  font-weight: 600;
  line-height: 1.55;
  color: #1f1416;
  max-width: 460px;
  margin: 0 auto 16px;
}

.cert-seals-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.cert-seal-pill {
  background: #fff0f3;
  border: 1.5px solid #ff9ebb;
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #7a152e;
  box-shadow: 0 2px 6px rgba(255, 139, 167, 0.12);
}

.cert-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1.5px dashed rgba(244, 162, 97, 0.45);
  padding-top: 14px;
  margin-top: 6px;
}

.cert-date-col, .cert-sign-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.cert-sub-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #7a4a35;
  margin-bottom: 2px;
}

.cert-sub-val {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f1416;
}

.cert-sign-name {
  font-family: var(--font-hand);
  font-size: 1.7rem;
  font-weight: 700;
  color: #d62839;
}

.cert-sign-status {
  font-size: 0.72rem;
  font-weight: 800;
  color: #14746f;
  margin-top: 2px;
}

/* Vector Ribbon Tails + Wax Stamp Container */
.cert-stamp-badge {
  position: relative;
  width: 86px;
  height: 102px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 4px;
  cursor: pointer;
  user-select: none;
  overflow: visible;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-stamp-badge:hover {
  transform: scale(1.06);
}

.cert-stamp-ribbons-svg {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 42px;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.cert-seal-disc {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff3b0 0%, #f4a261 45%, #c85a17 85%, #9a3412 100%);
  border: 2.5px solid #b85d19;
  box-shadow: 
    0 5px 14px rgba(184, 93, 25, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-sizing: border-box;
}

.cert-seal-inner-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 248, 220, 0.95);
  background: radial-gradient(circle at 40% 40%, #fffdf4 0%, #fed7aa 65%, #fdba74 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2px;
  box-sizing: border-box;
}

.cert-seal-top-txt {
  font-family: var(--font-body);
  font-size: 6.8px;
  font-weight: 800;
  color: #7a3400;
  letter-spacing: 0.8px;
  line-height: 1;
  text-transform: uppercase;
}

.cert-seal-main-txt {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: #991b1b;
  letter-spacing: 0.6px;
  line-height: 1.12;
  margin: 1.5px 0;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cert-seal-bot-txt {
  font-family: var(--font-body);
  font-size: 6.5px;
  font-weight: 800;
  color: #7a3400;
  letter-spacing: 0.8px;
  line-height: 1;
  text-transform: uppercase;
}

.finale-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* --- Watermark --- */
.watermark {
  display: block;
  text-align: center;
  margin: 30px auto 16px;
  font-size: 0.75rem;
  color: var(--text-muted, #736162);
  opacity: 0.65;
  text-decoration: none;
  font-family: var(--font-body, sans-serif);
  transition: opacity 0.3s ease;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.watermark:hover {
  opacity: 1;
  color: var(--accent-pink, #ff8ba7);
}
