/* ==========================================================================
   Happy Birthday Sara - Complete Stylesheet
   Pastel Aesthetic, Hero Intro Card, Story Flow, 3D Cake & Auto-Cycling GIF
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-pink: #e3527e;
  --primary-hover: #d63d6b;
  --soft-pink-bg: #fff0f4;
  --card-bg-start: #fffcf9;
  --card-bg-end: #fff5f7;
  --text-dark: #8c3b52;
  --text-body: #6d4b56;
  --accent-orange: #e58567;
  --accent-gold: #f4a261;
  --pastel-blue: #a0c4ff;
  --pastel-yellow: #fdffb6;
  --card-shadow: 0 20px 40px -10px rgba(235, 140, 165, 0.28), 0 0 80px rgba(255, 192, 203, 0.2);
  --border-radius: 28px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-cute: 'Fredoka', cursive, sans-serif;
}

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

html,
body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: linear-gradient(135deg, #fff4f7 0%, #ffeaf0 40%, #ffdfeb 70%, #ffdbe6 100%);
  color: var(--text-body);
  overflow-x: hidden;
  position: relative;
  transition: background 0.8s ease;
}

/* Night Room Sky Mode */
body.night-mode {
  background: radial-gradient(circle at 50% 30%, #201b3b 0%, #151226 70%, #0d0a18 100%) !important;
  color: #ffffff;
}

/* Ambient Floating Particles Background */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

body.night-mode .bg-decorations {
  opacity: 0.2;
}

.floating-balloon {
  position: absolute;
  width: 32px;
  height: 40px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  animation: floatUp 8s ease-in-out infinite alternate;
  opacity: 0.7;
}

.floating-balloon::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 14px;
  background: rgba(180, 140, 150, 0.4);
}

.balloon-1 {
  top: 12%;
  left: 6%;
  background: #ffb5c5;
  animation-delay: 0s;
}

.balloon-2 {
  top: 18%;
  left: 9%;
  background: #aed9e0;
  animation-delay: 2s;
  width: 26px;
  height: 34px;
}

.balloon-3 {
  bottom: 15%;
  right: 8%;
  background: #ffd4a3;
  animation-delay: 1s;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(-4deg);
  }

  100% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Bokeh Sparkles */
.sparkle-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  animation: pulseSparkle 4s ease-in-out infinite alternate;
}

.sparkle-1 {
  top: 15%;
  left: 28%;
  width: 8px;
  height: 8px;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 35%;
  right: 22%;
  width: 12px;
  height: 12px;
  animation-delay: 1.5s;
}

.sparkle-3 {
  bottom: 25%;
  left: 32%;
  width: 6px;
  height: 6px;
  animation-delay: 3s;
}

.sparkle-4 {
  bottom: 12%;
  left: 48%;
  width: 10px;
  height: 10px;
  animation-delay: 0.8s;
}

@keyframes pulseSparkle {
  0% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  100% {
    opacity: 0.9;
    transform: scale(1.3);
  }
}

/* Sprinkles Motif */
.sprinkles-corner {
  position: absolute;
  bottom: 30px;
  right: 35px;
  width: 45px;
  height: 45px;
  background-image:
    radial-gradient(#ff9ebb 3px, transparent 3px),
    radial-gradient(#a3c4f3 3px, transparent 3px),
    radial-gradient(#ffe066 3px, transparent 3px);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px, 4px 12px;
  opacity: 0.65;
  transform: rotate(15deg);
}

/* Footer Badge */
.footer-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #4a3e4e;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

body.night-mode .footer-badge {
  background: rgba(35, 30, 60, 0.85);
  color: #e2d9f3;
  border-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   STORY FLOW CONTAINER & INTRO CARDS
   ========================================================================== */

.hero-intro-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 10;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-intro-wrapper.hidden {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  position: absolute;
  width: 100%;
}

.above-card-title-box {
  text-align: center;
  margin-bottom: 18px;
  display: none;
  animation: fadeInDown 0.6s ease forwards;
}

.above-card-title-box.active {
  display: block;
}

.above-card-main-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--primary-pink);
  margin-bottom: 4px;
}

.above-card-sub-title {
  font-size: 14px;
  color: #7d5865;
  font-weight: 500;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--card-bg-start) 0%, var(--card-bg-end) 100%);
  border-radius: var(--border-radius);
  padding: 36px 28px 32px 28px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.95);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: cardPopIn 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

body.night-mode .intro-card {
  background: linear-gradient(180deg, rgba(38, 32, 64, 0.92) 0%, rgba(26, 22, 46, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(138, 100, 200, 0.15);
  color: #ffffff;
}

@keyframes cardPopIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header Tag */
.intro-header-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: var(--accent-orange);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

body.night-mode .intro-header-tag {
  color: #bfa5ff;
}

.intro-header-tag .star-symbol {
  font-size: 10px;
}

/* Cake Container */
.intro-cake-box {
  width: 145px;
  height: 145px;
  margin: 0 auto 20px auto;
  background: #fdeef2;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(220, 150, 170, 0.12);
  position: relative;
  overflow: hidden;
}

.intro-cake-img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(200, 100, 130, 0.15));
}

/* Sub-header Note Tag */
.intro-note-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--accent-orange);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 22px;
}

.intro-slide-content {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.intro-headline {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.night-mode .intro-headline {
  color: #ffffff;
}

/* Loading Progress Bar */
.loading-bar-wrapper {
  width: 160px;
  height: 6px;
  background: #ffd0dc;
  border-radius: 10px;
  margin: 14px auto 0 auto;
  overflow: hidden;
  position: relative;
}

body.night-mode .loading-bar-wrapper {
  background: rgba(255, 255, 255, 0.15);
}

.loading-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-pink), var(--accent-orange));
  border-radius: 10px;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pagination Dots */
.intro-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 22px;
}

.dot-item {
  width: 8px;
  height: 8px;
  border-radius: 10px;
  background: #ffd3df;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.night-mode .dot-item {
  background: rgba(255, 255, 255, 0.25);
}

.dot-item.active {
  width: 26px;
  background: var(--primary-pink);
}

body.night-mode .dot-item.active {
  background: #a27bfe;
}

.dot-item.mint-active {
  background: #52c7b8;
}

/* Action Buttons */
.intro-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  min-height: 52px;
}

.intro-actions.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-yes,
.btn-night-action,
.btn-day-action {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-hover));
  color: #ffffff;
  border: none;
  padding: 13px 36px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(214, 61, 107, 0.35);
  transition: all 0.25s ease;
}

.btn-yes:hover,
.btn-day-action:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 28px rgba(214, 61, 107, 0.45);
}

.btn-night-action {
  background: linear-gradient(135deg, #3f3567, #2d264c);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-night-action:hover {
  background: linear-gradient(135deg, #4f4382, #393061);
  transform: translateY(-2px);
}

.btn-no {
  background: #ffffff;
  color: #666666;
  border: 1px solid #ebdbe0;
  padding: 13px 30px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.intro-click-hint {
  font-size: 12px;
  color: #c48a9b;
  margin-top: -6px;
  font-weight: 500;
}

body.night-mode .intro-click-hint {
  color: #9d8dbf;
}

.intro-click-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   CAKE TIME - 3D PINK BIRTHDAY CAKE & DRAG TO CUT
   ========================================================================== */

.cake-cut-interactive-wrapper {
  display: none;
  width: 100%;
  margin: 10px 0 18px 0;
  position: relative;
  user-select: none;
}

.cake-cut-interactive-wrapper.active {
  display: block;
}

.cake-drag-box {
  width: 100%;
  max-width: 270px;
  height: 200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: grab;
  touch-action: none;
  padding-bottom: 10px;
}

.cake-drag-box:active {
  cursor: grabbing;
}

.pink-cake-3d-stage {
  position: relative;
  width: 210px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.pink-cake-candle {
  width: 11px;
  height: 38px;
  background: repeating-linear-gradient(45deg, #ffffff, #ffffff 4px, #ff85a1 4px, #ff85a1 8px);
  border-radius: 4px;
  position: absolute;
  top: 14px;
  z-index: 4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pink-cake-candle-flame {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 19px;
  background: radial-gradient(ellipse at bottom, #ffea00 0%, #ff6b00 70%, transparent 100%);
  border-radius: 50% 50% 35% 35%;
  box-shadow: 0 0 16px #ffbe0b;
  animation: flicker 1.2s ease-in-out infinite alternate;
}

.pink-cake-body {
  width: 190px;
  height: 100px;
  position: relative;
  border-radius: 22px 22px 14px 14px;
  background: linear-gradient(180deg, #ff9ebb 0%, #e3527e 50%, #c73860 100%);
  box-shadow: 0 8px 22px rgba(199, 56, 96, 0.25);
  overflow: hidden;
}

.pink-cake-top-frosting {
  width: 100%;
  height: 36px;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.frosting-drip {
  position: absolute;
  bottom: -10px;
  width: 22px;
  height: 16px;
  background: #ffffff;
  border-radius: 0 0 50% 50%;
}

.drip-1 {
  left: 15px;
}

.drip-2 {
  left: 60px;
  height: 18px;
}

.drip-3 {
  left: 105px;
}

.drip-4 {
  left: 150px;
  height: 18px;
}

.pink-cake-layer {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
}

.layer-top {
  top: 40px;
}

.layer-mid {
  top: 62px;
}

.layer-bottom {
  top: 82px;
}

.pink-cake-plate {
  width: 215px;
  height: 12px;
  background: linear-gradient(180deg, #ffffff, #eae0e4);
  border-radius: 50%;
  margin-top: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.cake-cut-dashed-line {
  position: absolute;
  top: 55%;
  left: 5%;
  width: 90%;
  height: 2px;
  border-top: 2.5px dashed rgba(227, 82, 126, 0.8);
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 6;
}

.cake-cut-dashed-line::after {
  content: '✂️';
  position: absolute;
  left: var(--cut-progress-x, 0%);
  font-size: 18px;
  transform: translateY(-50%);
  transition: left 0.1s linear;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.cut-progress-footer {
  width: 100%;
  margin-top: 15px;
}

.cut-progress-text-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: #7d5865;
  margin-bottom: 6px;
}

.cut-progress-status-val {
  color: var(--primary-pink);
}

.cut-progress-track {
  width: 100%;
  height: 6px;
  background: #ffd0dc;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.cut-progress-fill-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-pink), var(--accent-orange));
  border-radius: 10px;
  transition: width 0.1s linear;
}

.cake-cut-success-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 252, 249, 0.92);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.cake-cut-success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cake-cut-success-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-pink);
  margin-bottom: 4px;
}

.cake-cut-success-sub {
  font-size: 13.5px;
  color: #7d5865;
  font-weight: 500;
}

/* ==========================================================================
   MAKE A WISH CARD STEP - PROMINENT SINGLE AUTO-CYCLING GIF BOX
   ========================================================================== */

.make-wish-single-gif-box {
  width: 100%;
  max-width: 360px;
  height: 270px;
  margin: 0 auto 18px auto;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #ffe5ee;
  box-shadow: 0 8px 25px rgba(227, 82, 126, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px;
}

.make-wish-single-gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.45s ease;
}

/* ==========================================================================
   FLIP BIRTHDAY WISHES SECTION (POST CAKE TIME)
   ========================================================================== */

.flip-wishes-container {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 4px 0;
}

.flip-wishes-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-pink);
  margin-bottom: 4px;
  text-align: center;
}

.flip-wishes-sub {
  font-size: 13.5px;
  color: #7d5865;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
}

.flip-wishes-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.flip-wish-card {
  perspective: 1000px;
  width: 100%;
  height: 205px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(227, 82, 126, 0.16);
}

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

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #ffe5ee;
}

/* Front Face */
.flip-card-front {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #ffffff;
}

.flip-card-gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #ffffff;
}

.flip-card-icon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.flip-card-tap-btn {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.94);
  color: #6b4d58;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 18px;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.2s ease;
}

.flip-wish-card:hover .flip-card-tap-btn {
  transform: translateX(-50%) scale(1.05);
}

/* Back Face */
.flip-card-back {
  transform: rotateY(180deg);
  padding: 18px 22px 14px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  background: linear-gradient(180deg, #ffffff 0%, #fff9fc 100%);
}

.flip-card-back-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #f3d4e0;
  padding-bottom: 8px;
}

.flip-card-num {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 14px;
  color: #b592a0;
  letter-spacing: 1px;
}

.flip-card-heart {
  font-size: 13px;
  color: #e3527e;
}

.flip-card-message {
  font-family: var(--font-serif);
  font-size: 14px;
  color: #4a3e4e;
  line-height: 1.55;
  font-weight: 600;
  margin: 10px 0;
}

.flip-card-back-hint {
  font-size: 11px;
  color: #a88392;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   NIGHT ROOM SCENE DECORATIONS
   ========================================================================== */

.bw-night-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 2;
}

body.night-mode .bw-night-decor {
  opacity: 1;
}

.bw-nd-moon {
  position: absolute;
  top: 40px;
  right: 45px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: -8px 6px 0 0 #ffe082;
  transform: rotate(-15deg);
  filter: drop-shadow(0 0 12px rgba(255, 224, 130, 0.5));
}

.bw-nd-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 30px;
}

.bw-nd-cloud--a {
  top: 90px;
  left: 30px;
  width: 100px;
  height: 38px;
}

.bw-nd-cloud--b {
  top: 170px;
  left: 15px;
  width: 75px;
  height: 30px;
}

.bw-nd-bunting {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25px;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 15px, rgba(255, 255, 255, 0.12) 15px, rgba(255, 255, 255, 0.12) 30px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.bw-nd-twinkle {
  position: absolute;
  color: #ffea9f;
  font-size: 14px;
  animation: starTwinkle 2.5s ease-in-out infinite alternate;
}

.bw-nd-twinkle--1 {
  top: 120px;
  left: 160px;
  animation-delay: 0s;
}

.bw-nd-twinkle--2 {
  top: 70px;
  right: 140px;
  animation-delay: 0.7s;
}

.bw-nd-twinkle--3 {
  top: 220px;
  right: 35px;
  animation-delay: 1.4s;
}

.bw-nd-twinkle--4 {
  bottom: 180px;
  left: 45px;
  animation-delay: 0.3s;
}

.bw-nd-twinkle--5 {
  bottom: 120px;
  right: 120px;
  animation-delay: 1.8s;
}

@keyframes starTwinkle {
  0% {
    opacity: 0.2;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1.3);
  }
}

.bw-nd-gift {
  position: absolute;
  bottom: 40px;
  left: 40px;
  font-size: 32px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.bw-nd-cat {
  position: absolute;
  bottom: 40px;
  right: 70px;
  font-size: 36px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.bw-nd-cat::after {
  content: 'z z z';
  position: absolute;
  top: -18px;
  right: 0;
  font-size: 11px;
  color: #a292c9;
  font-family: var(--font-cute);
  animation: zzzFloat 2s ease-in-out infinite;
}

@keyframes zzzFloat {
  0% {
    opacity: 0.3;
    transform: translateY(0);
  }

  100% {
    opacity: 1;
    transform: translateY(-10px);
  }
}

.bw-nd-hat {
  position: absolute;
  bottom: 40px;
  right: 35px;
  font-size: 26px;
}

/* ==========================================================================
   DAY ROOM SCENE - STRING LIGHTS & CAT IMAGES
   ========================================================================== */

.string-lights-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  pointer-events: none;
  z-index: 20;
  display: flex;
  justify-space-around;
  align-items: flex-start;
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.lights-on .string-lights-header {
  opacity: 1;
}

.string-wire {
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 20px;
  border-bottom: 2px stroke #b89ca5;
  border-radius: 0 0 50% 50% / 0 0 20px 20px;
}

.light-bulb {
  position: relative;
  top: 25px;
  width: 16px;
  height: 24px;
  border-radius: 50% 50% 45% 45%;
  animation: bulbGlow 2s ease-in-out infinite alternate;
}

.bulb-red {
  background: #ff4d6d;
  box-shadow: 0 0 15px #ff4d6d;
  animation-delay: 0s;
}

.bulb-yellow {
  background: #ffbe0b;
  box-shadow: 0 0 15px #ffbe0b;
  animation-delay: 0.4s;
}

.bulb-blue {
  background: #3a86ff;
  box-shadow: 0 0 15px #3a86ff;
  animation-delay: 0.8s;
}

.bulb-cyan {
  background: #00f5d4;
  box-shadow: 0 0 15px #00f5d4;
  animation-delay: 1.2s;
}

.bulb-purple {
  background: #7b2cbf;
  box-shadow: 0 0 15px #7b2cbf;
  animation-delay: 1.6s;
}

.bulb-pink {
  background: #ff007f;
  box-shadow: 0 0 15px #ff007f;
  animation-delay: 0.2s;
}

@keyframes bulbGlow {
  0% {
    opacity: 0.6;
    filter: brightness(0.9);
  }

  100% {
    opacity: 1;
    filter: brightness(1.3);
  }
}

.cat-right-img {
  position: fixed;
  top: 60px;
  right: 15px;
  width: 95px;
  height: auto;
  z-index: 15;
  opacity: 0;
  transform: translateY(-20px) rotate(5deg);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.cat-left-img {
  position: fixed;
  bottom: 25px;
  left: 15px;
  width: 100px;
  height: auto;
  z-index: 15;
  opacity: 0;
  transform: translateY(20px) rotate(-5deg);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

body.lights-on .cat-right-img,
body.lights-on .cat-left-img {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* HIDE CAT IMAGES DURING CAKE TIME & MAKE A WISH SCREENS */
body.hide-cats .cat-right-img,
body.hide-cats .cat-left-img {
  opacity: 0 !important;
  transform: scale(0.8) translateY(20px) !important;
  pointer-events: none !important;
}

/* ==========================================================================
   RISING BALLOONS (BOTTOM TO TOP ANIMATION)
   ========================================================================== */

.rising-balloons-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
  display: none;
}

.rising-balloons-container.active {
  display: block;
}

.rising-balloon-item {
  position: absolute;
  bottom: -80px;
  width: 45px;
  height: 56px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: radial-gradient(circle at 30% 30%, #ffccd5 0%, #ff9ebb 70%, #e3527e 100%);
  box-shadow: inset -3px -3px 8px rgba(0, 0, 0, 0.1), 0 8px 18px rgba(227, 82, 126, 0.25);
  animation: balloonRiseUp 7s linear infinite;
  opacity: 0.9;
}

.rising-balloon-item::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 22px;
  background: rgba(180, 120, 140, 0.5);
}

@keyframes balloonRiseUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.9;
  }

  90% {
    opacity: 0.9;
  }

  100% {
    transform: translateY(-115vh) rotate(15deg);
    opacity: 0;
  }
}

.rising-balloon-item:nth-child(1) {
  left: 10%;
  animation-duration: 6.5s;
  animation-delay: 0s;
}

.rising-balloon-item:nth-child(2) {
  left: 25%;
  animation-duration: 8s;
  animation-delay: 1.5s;
  background: radial-gradient(circle at 30% 30%, #ffe3ec 0%, #ffb3c6 70%, #ff758f 100%);
}

.rising-balloon-item:nth-child(3) {
  left: 45%;
  animation-duration: 5.8s;
  animation-delay: 0.8s;
}

.rising-balloon-item:nth-child(4) {
  left: 65%;
  animation-duration: 7.2s;
  animation-delay: 2.2s;
  background: radial-gradient(circle at 30% 30%, #ffccd5 0%, #ff9ebb 70%, #d84573 100%);
}

.rising-balloon-item:nth-child(5) {
  left: 82%;
  animation-duration: 6.2s;
  animation-delay: 1s;
}

.rising-balloon-item:nth-child(6) {
  left: 35%;
  animation-duration: 7.5s;
  animation-delay: 3.5s;
}

/* ==========================================================================
   MAIN BIRTHDAY CELEBRATION WORLD
   ========================================================================== */

.main-birthday-world {
  display: none;
  opacity: 0;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 80px 20px;
  position: relative;
  z-index: 10;
  transition: opacity 0.8s ease;
}

.main-birthday-world.active {
  display: block;
  opacity: 1;
}

/* Top Music & Sound Bar */
.top-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.audio-toggle-btn,
.confetti-btn {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(224, 120, 150, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.audio-toggle-btn:hover,
.confetti-btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(224, 120, 150, 0.25);
}

/* Celebration Hero Section */
.celebration-hero {
  text-align: center;
  margin-bottom: 45px;
}

.badge-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ffd4e0;
  color: var(--primary-pink);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(227, 82, 126, 0.1);
}

.hero-main-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 6vw, 54px);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 17px;
  color: #7d5865;
  font-weight: 500;
}

/* Section Cards Container */
.celebration-section {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 34px 28px;
  margin-bottom: 35px;
  box-shadow: 0 15px 35px rgba(230, 140, 165, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text-dark);
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ==========================================================================
   INTERACTIVE CAKE WITH CANDLES TO BLOW
   ========================================================================== */

.cake-interactive-box {
  text-align: center;
  padding: 10px 0;
}

.cake-stage {
  position: relative;
  width: 220px;
  height: 200px;
  margin: 0 auto 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.cake-svg {
  width: 200px;
  height: 150px;
  filter: drop-shadow(0 10px 15px rgba(200, 100, 130, 0.2));
}

.candles-row {
  position: absolute;
  top: 25px;
  display: flex;
  gap: 24px;
  z-index: 3;
}

.candle {
  position: relative;
  width: 10px;
  height: 38px;
  background: linear-gradient(to right, #ffb5c5, #ffd9e2);
  border-radius: 4px;
  cursor: pointer;
}

.candle-flame {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 18px;
  background: radial-gradient(ellipse at bottom, #ffee55 0%, #ff8800 60%, transparent 100%);
  border-radius: 50% 50% 35% 35%;
  box-shadow: 0 0 12px #ffbb00;
  animation: flicker 1.2s ease-in-out infinite alternate;
  transition: opacity 0.4s ease;
}

.candle-flame.blown-out {
  opacity: 0;
  box-shadow: none;
}

.candle-smoke {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 12px;
  background: rgba(180, 180, 180, 0.5);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.candle-smoke.active {
  animation: smokeRise 1.5s ease-out forwards;
}

@keyframes flicker {
  0% {
    transform: translateX(-50%) scale(1) rotate(-2deg);
  }

  100% {
    transform: translateX(-50%) scale(1.15) rotate(3deg);
  }
}

@keyframes smokeRise {
  0% {
    opacity: 0.8;
    transform: translateX(-50%) translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px) scale(2.5);
  }
}

.cake-instructions {
  font-size: 14px;
  color: #7d5865;
  margin-bottom: 16px;
  font-weight: 600;
}

.btn-blow-candles {
  background: linear-gradient(135deg, var(--accent-orange), #d96f4e);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(229, 133, 103, 0.3);
  transition: all 0.25s ease;
}

.btn-blow-candles:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(229, 133, 103, 0.4);
}

/* Wish Popup Modal */
.wish-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 20, 30, 0.4);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.wish-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.wish-modal-card {
  background: white;
  border-radius: 24px;
  padding: 34px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  animation: modalBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalBounce {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   INTERACTIVE LOVE NOTE / ENVELOPE
   ========================================================================== */

.envelope-wrapper {
  max-width: 480px;
  margin: 0 auto;
  perspective: 1000px;
}

.envelope-card {
  background: #fff8fa;
  border: 2px dashed #f7c5d3;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  box-shadow: 0 10px 25px rgba(230, 140, 165, 0.12);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.envelope-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(230, 140, 165, 0.2);
}

.wax-seal {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #e3527e, #b8335c);
  border-radius: 50%;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 6px 15px rgba(184, 51, 92, 0.3);
  transition: transform 0.4s ease;
}

.envelope-card.open .wax-seal {
  transform: scale(0);
}

.letter-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.6s ease, margin-top 0.4s ease;
}

.envelope-card.open .letter-content {
  max-height: 600px;
  opacity: 1;
  margin-top: 15px;
}

.letter-text {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: #5c3c47;
  text-align: left;
}

.letter-signature {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-pink);
  margin-top: 15px;
  text-align: right;
}

/* ==========================================================================
   POLAROID GALLERY SECTION
   ========================================================================== */

.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  margin-top: 10px;
}

.polaroid-item {
  background: #ffffff;
  padding: 14px 14px 18px 14px;
  border-radius: 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.polaroid-item:nth-child(odd) {
  transform: rotate(-2.5deg);
}

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

.polaroid-item:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 15px 30px rgba(224, 120, 150, 0.25);
  z-index: 5;
}

.polaroid-item::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
  background: rgba(255, 218, 224, 0.7);
  border: 1px dashed rgba(220, 150, 170, 0.4);
}

.polaroid-img-wrapper {
  width: 100%;
  height: 170px;
  background: #fcedf2;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.polaroid-caption {
  font-family: var(--font-cute);
  font-size: 14px;
  color: var(--text-dark);
  text-align: center;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #ddb2be;
  transition: transform 0.2s, color 0.2s;
}

.like-btn.liked {
  color: var(--primary-pink);
  transform: scale(1.25);
}

/* ==========================================================================
   "WHY SARA IS AMAZING" REASON FLIP CARDS
   ========================================================================== */

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.reason-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(230, 140, 165, 0.12);
  border: 1px solid #ffe5ee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.reason-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(230, 140, 165, 0.22);
}

.reason-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.reason-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.reason-desc {
  font-size: 12.5px;
  color: #7d5865;
  line-height: 1.4;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .intro-card {
    padding: 30px 20px;
    border-radius: 24px;
  }

  .intro-headline {
    font-size: 23px;
  }

  .btn-yes,
  .btn-no {
    padding: 12px 26px;
    font-size: 14px;
  }

  .hero-main-title {
    font-size: 32px;
  }

  .cat-right-img {
    width: 75px;
    top: 50px;
  }

  .cat-left-img {
    width: 80px;
    bottom: 20px;
  }

  .above-card-main-title {
    font-size: 28px;
  }

  .make-wish-single-gif-box {
    max-width: 310px;
    height: 235px;
    padding: 6px;
  }
}

/* ==========================================================================
   ALL WISHES DISCOVERED POPUP MODAL
   ========================================================================== */

.all-wishes-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

.all-wishes-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.all-wishes-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 330px;
  border-radius: 28px;
  padding: 32px 24px 28px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(227, 82, 126, 0.25);
  border: 1px solid #ffe3ec;
  animation: modalPopUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPopUp {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.all-wishes-icon-box {
  width: 56px;
  height: 56px;
  background: #fff0f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px auto;
  box-shadow: 0 6px 16px rgba(227, 82, 126, 0.15);
}

.all-wishes-modal-title {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  color: #e3527e;
  margin-bottom: 6px;
}

.all-wishes-modal-dot {
  color: #e3527e;
  font-size: 16px;
  margin-bottom: 6px;
}

.all-wishes-modal-sub {
  font-size: 13.5px;
  color: #7d5865;
  font-weight: 500;
  margin-bottom: 24px;
}

.all-wishes-btn-open {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #e3527e 0%, #ff7da5 100%);
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(227, 82, 126, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 12px;
}

.all-wishes-btn-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(227, 82, 126, 0.42);
}

.all-wishes-btn-stay {
  background: none;
  border: none;
  color: #aa8392;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  transition: color 0.2s ease;
}

.all-wishes-btn-stay:hover {
  color: #e3527e;
}

/* ==========================================================================
   FINAL BIRTHDAY MESSAGE LETTER OVERLAY
   ========================================================================== */

.final-letter-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10005;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px;
}

.final-letter-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.final-letter-card {
  background: #fffbfd;
  width: 100%;
  max-width: 410px;
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
  border: 1px solid #ffe3ec;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalPopUp 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.final-letter-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #f9e2eb;
}

.final-letter-controls {
  display: flex;
  gap: 6px;
}

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

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

.final-letter-title-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #a88392;
}

.final-letter-close-btn {
  background: #fff0f5;
  border: 1px solid #ffd0df;
  color: #9c6c7b;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.final-letter-close-btn:hover {
  background: #ffe3ed;
}

.final-letter-gif-box {
  width: 100%;
  height: 175px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #ffe5ee;
}

.final-letter-gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.final-letter-body {
  padding: 22px 22px 20px 22px;
  overflow-y: auto;
  text-align: left;
}

.final-letter-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px dashed #f5d0dc;
  padding-bottom: 8px;
}

.final-letter-salutation {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #e3527e;
}

.final-letter-subtitle-tag {
  font-size: 12px;
  font-style: italic;
  color: #a88392;
}

.final-letter-message-content p {
  font-family: var(--font-serif);
  font-size: 14.5px;
  color: #3d3042;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 14px;
}

.final-letter-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed #f5d0dc;
}

.final-letter-closing {
  display: flex;
  flex-direction: column;
}

.closing-label {
  font-size: 12px;
  font-style: italic;
  color: #a88392;
}

.signature-line {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: #e3527e;
  font-style: italic;
}

.final-letter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-enter-world {
  background: linear-gradient(135deg, #e3527e 0%, #ff7da5 100%);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 12.5px;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(227, 82, 126, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-enter-world:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(227, 82, 126, 0.42);
}

.btn-restart-app {
  background: #ffffff;
  border: 1.5px solid #f3d4e0;
  color: #7d5865;
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 18px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-restart-app:hover {
  transform: scale(1.05);
  background: #fff0f5;
  border-color: #e3527e;
  color: #e3527e;
}