/* ==========================================================================
   🌸 ULTRA-BESPOKE 3D BIRTHDAY ODYSSEY FOR REET
   Interactive Components, 3D Layers & Physical Tactile Modules
   ========================================================================== */

/* --------------------------------------------------------------------------
   🌸 4.0 THE PLAYFUL GATEKEEPER (Cute Exclusivity Gate)
   -------------------------------------------------------------------------- */
.gatekeeper-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #140C18;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top, 20px)) max(16px, env(safe-area-inset-right, 16px)) max(24px, env(safe-area-inset-bottom, 24px)) max(16px, env(safe-area-inset-left, 16px));
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.8s var(--smooth-out), visibility 0.8s ease;
}

.gatekeeper-modal-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gatekeeper-signpost {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 182, 193, 0.6);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 117, 143, 0.35);
  max-width: 520px;
  width: 100%;
  padding: clamp(28px, 6vw, 40px) clamp(20px, 5vw, 32px);
  text-align: center;
  position: relative;
  z-index: 10;
  transform: perspective(1000px) rotateX(0deg);
  animation: floatGentle 4s ease-in-out infinite;
}

.gatekeeper-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--valentine-red);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.gatekeeper-lily-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #FFE5EC, transparent);
  border-radius: 50%;
  animation: heartBeat 3s ease-in-out infinite;
}

.gatekeeper-title {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--romantic-charcoal);
}

.gatekeeper-subtitle {
  font-size: clamp(0.95rem, 3.5vw, 1.05rem);
  color: var(--sepia-subtext);
  margin-bottom: 28px;
  line-height: 1.5;
}

.gatekeeper-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  position: relative;
  min-height: 120px;
  width: 100%;
}

.btn-reet-confirm {
  width: 100%;
  max-width: 280px;
  min-height: 48px;
  padding: 16px 28px;
  font-size: 1.05rem;
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.35);
  touch-action: manipulation;
}

.btn-evasive {
  position: relative;
  min-height: 44px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--spring-bounce), left 0.2s ease, top 0.2s ease;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  touch-action: manipulation;
}

/* --------------------------------------------------------------------------
   💌 4.1 THE 3D WAX-SEALED ENVELOPE CEREMONY (CINEMATIC OPENING)
   -------------------------------------------------------------------------- */
.hero-cinematic-wrapper {
  position: relative;
  width: 100vw;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #140C18;
}

/* Fullscreen Background Video */
.hero-cinematic-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.02);
  object-fit: cover;
  z-index: 1;
  filter: contrast(1.05) brightness(0.92) saturate(1.1);
  pointer-events: none;
}

/* Radial Vignette */
.hero-cinematic-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    circle at center,
    rgba(20, 12, 24, 0.15) 20%,
    rgba(20, 12, 24, 0.6) 75%,
    rgba(20, 12, 24, 0.92) 100%
  );
  pointer-events: none;
}

/* Warm Sunset / Romantic Plum Gradient Overlay */
.hero-cinematic-tint {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    180deg,
    rgba(29, 19, 34, 0.3) 0%,
    rgba(217, 155, 149, 0.08) 50%,
    rgba(20, 12, 24, 0.88) 100%
  );
  pointer-events: none;
}

/* Centered Interactive Container */
.hero-cinematic-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
}

.envelope-ceremony-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 8vh, 60px) 16px;
  position: relative;
}

.envelope-intro-text {
  text-align: center;
  max-width: 580px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.hero-cinematic-wrapper .envelope-intro-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
  color: #FFFDF9;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.hero-cinematic-wrapper .envelope-intro-text .section-subtitle {
  color: #F8E2E8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-cinematic-wrapper .wax-seal-hint {
  color: #FFB3C1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.envelope-3d-stage {
  perspective: 1200px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.envelope-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  background: #FFF5F7;
  border-radius: 12px;
  box-shadow: 0 30px 70px rgba(230, 57, 70, 0.2), 0 10px 20px rgba(255, 117, 143, 0.25);
  border: 1.5px solid var(--card-glass-border);
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform 0.6s var(--spring-bounce);
}

.envelope-wrapper:hover {
  transform: translateY(-6px) rotateX(4deg);
}

/* Flap & Pocket */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  border-left: 230px solid transparent;
  border-right: 230px solid transparent;
  border-top: 160px solid #FFE5EC;
  transform-origin: top center;
  transition: transform 0.8s var(--spring-bounce);
  z-index: 5;
  filter: drop-shadow(0 4px 6px rgba(230, 57, 70, 0.1));
}

.envelope-wrapper.opened .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.envelope-pocket {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  border-left: 230px solid #FFCCD5;
  border-right: 230px solid #FFCCD5;
  border-bottom: 160px solid #FFB3C1;
  border-radius: 0 0 12px 12px;
  z-index: 4;
  pointer-events: none;
}

/* Letter inside */
.envelope-letter {
  position: absolute;
  top: 20px;
  left: 5%;
  width: 90%;
  height: 260px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 24px 20px;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.1);
  border: 1px solid var(--card-glass-border);
  z-index: 2;
  transition: transform 0.9s var(--smooth-out), opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.envelope-wrapper.opened .envelope-letter {
  transform: translateY(-110px) scale(1.05);
  z-index: 6;
  box-shadow: var(--shadow-floating);
}

.wax-seal {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: radial-gradient(circle at 35% 35%, #FF758F 0%, #E63946 50%, #A81827 100%);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.55), inset 0 2px 5px rgba(255, 255, 255, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.35);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s var(--spring-bounce), box-shadow 0.3s ease;
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 12px 32px rgba(230, 57, 70, 0.7), 0 0 20px rgba(255, 117, 143, 0.5);
}

.wax-seal-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wax-seal-lily {
  width: 26px;
  height: 26px;
  fill: #FFFFFF;
  filter: drop-shadow(0 1px 2px rgba(120, 20, 30, 0.5));
}

.wax-seal-hint {
  margin-top: 30px;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--valentine-red);
  animation: pulseGlow 2s infinite;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   👑 4.2 HERO: THE EDITORIAL BIRTHDAY MONUMENT
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/download.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.13;
  filter: blur(1px) sepia(0.2) saturate(1.2);
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

.hero-background-monument {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(8rem, 24vw, 22rem);
  font-weight: 900;
  color: rgba(203, 164, 98, 0.08);
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 253, 249, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow-subtle);
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson-rose);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.8rem, 7.5vw, 5.5rem);
  line-height: 1.08;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--ink-charcoal);
}

.hero-title span {
  color: var(--crimson-rose);
}

.hero-caption {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: var(--sepia-dust);
  max-width: 640px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-interactive-toy {
  margin-top: 24px;
  display: inline-block;
  perspective: 600px;
}

.keychain-badge {
  background: linear-gradient(135deg, #FFFDF9, #FAF2E6);
  border: 2px solid var(--liquid-gold);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-medium), 0 0 25px rgba(212, 175, 55, 0.25);
  cursor: grab;
  user-select: none;
  transform-origin: top center;
  transition: transform 0.15s ease-out;
}

.keychain-badge:active {
  cursor: grabbing;
}

.keychain-ring {
  width: 14px;
  height: 14px;
  border: 3px solid var(--liquid-gold);
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

/* --------------------------------------------------------------------------
   📜 4.3 THE COINCIDENCE (Emotional Centerpiece)
   -------------------------------------------------------------------------- */
.coincidence-section {
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.poem-parchment-sheet {
  background: var(--card-parchment);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-floating);
  max-width: 720px;
  width: 100%;
  padding: 60px 48px;
  position: relative;
  text-align: center;
}

.poem-watermark-lily {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  opacity: 0.045;
  pointer-events: none;
}

.poem-lines {
  font-family: var(--font-editorial);
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  line-height: 1.9;
  color: var(--ink-charcoal);
  font-style: italic;
  margin-bottom: 36px;
}

.poem-line {
  opacity: 0.9;
  transition: color 0.4s ease, transform 0.4s ease;
  display: block;
}

.poem-line:hover {
  color: var(--crimson-rose);
  transform: scale(1.02);
}

.poem-annotation {
  font-family: var(--font-hand);
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  color: var(--crimson-rose);
  font-weight: 600;
  border-top: 1px dashed rgba(212, 175, 55, 0.4);
  padding-top: 24px;
}

/* --------------------------------------------------------------------------
   📸 SECTION 14: THE "FUTURE PLANS & FLIRTY CONVOS" ARCHIVE (Scrapbook)
   -------------------------------------------------------------------------- */
.scrapbook-section {
  padding: 100px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.scrapbook-header {
  text-align: center;
  margin-bottom: 60px;
}

.scrapbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  padding: 10px;
}

/* 3D Flippable Polaroid Card / Flip Card Engine */
.polaroid-card-container,
.flip-card-container {
  perspective: 1000px;
  -webkit-perspective: 1000px;
  height: 420px;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.polaroid-card-inner,
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.polaroid-card-container.flipped .polaroid-card-inner,
.polaroid-card-inner.is-flipped,
.flip-card-inner.is-flipped,
.flip-card-container.flipped .flip-card-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.polaroid-front,
.polaroid-back,
.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: rotateX(0deg); /* iOS Safari rendering fix */
  -webkit-transform: rotateX(0deg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

.polaroid-back,
.flip-card-back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

/* Front Styling */
.polaroid-front,
.flip-card-front {
  background: #FFFFFF;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.polaroid-front::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 22px;
  background: rgba(232, 180, 176, 0.6);
  backdrop-filter: blur(4px);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  z-index: 10;
  opacity: 0.85;
}

.polaroid-image-frame {
  width: 100%;
  height: 250px;
  background: #FAF6EE;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: block;
}

.polaroid-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.polaroid-tag-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(41, 35, 30, 0.7);
  color: #FFFDF9;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.polaroid-caption-area {
  margin-top: 14px;
  text-align: center;
}

.polaroid-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-charcoal);
  margin-bottom: 4px;
}

.polaroid-caption {
  font-size: 0.85rem;
  color: var(--sepia-dust);
  line-height: 1.4;
}

.polaroid-flip-hint {
  margin-top: auto;
  font-size: 0.72rem;
  color: var(--crimson-rose);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Back Styling (Secret Sticky Note) */
.polaroid-back {
  background: #FFF9E6;
  border: 2px solid rgba(212, 175, 55, 0.35);
  transform: rotateY(180deg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.polaroid-back::before {
  content: "SECRET NOTE 🤫";
  position: absolute;
  top: 16px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--crimson-rose);
}

.secret-note-text {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  line-height: 1.5;
  color: #3C3026;
  margin: 16px 0;
}

.polaroid-back-footer {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--crimson-rose);
}

/* --------------------------------------------------------------------------
   🌷 4.4 OUR LITTLE WORLD: 7 INTERACTIVE 3D ARTIFACTS
   -------------------------------------------------------------------------- */
.little-world-section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.little-world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 50px;
}

.artifact-card {
  background: var(--card-glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--card-glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 12px 35px rgba(230, 57, 70, 0.08);
  transition: transform 0.4s var(--spring-bounce), box-shadow 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.artifact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(255, 117, 143, 0.22);
}

.artifact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.artifact-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: #FFE5EC;
  border: 1px solid var(--soft-blush);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.artifact-num {
  font-family: var(--font-editorial);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--sepia-subtext);
}

.artifact-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--romantic-charcoal);
}

.artifact-desc {
  font-size: 0.95rem;
  color: var(--sepia-subtext);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Artifact 1: Dictionary Page Flip */
.dictionary-box {
  background: #FFF0F3;
  border: 1px dashed var(--soft-blush);
  border-radius: 8px;
  padding: 16px;
  font-size: 0.9rem;
  margin-top: auto;
}

.dict-term {
  font-weight: 700;
  color: var(--valentine-red);
  font-family: var(--font-serif);
}

/* Artifact 2: Uttu Puttu Stamp Soundboard */
.stamp-toy-btn {
  background: linear-gradient(135deg, #FFFDF9, #FDEEEB);
  border: 2px solid var(--crimson-rose);
  color: var(--crimson-rose);
  padding: 12px 20px;
  min-height: 48px;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(184, 74, 63, 0.18);
  transition: transform 0.2s var(--spring-bounce);
  margin-top: auto;
  touch-action: manipulation;
}

.stamp-toy-btn:hover {
  transform: scale(1.05);
}

.stamp-toy-btn:active {
  transform: scale(0.95);
}

/* Floating Stamp Marks Layer */
#stamp-marks-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
}

.screen-stamp {
  position: absolute;
  padding: 10px 20px;
  border: 3px solid var(--crimson-rose);
  color: var(--crimson-rose);
  border-radius: 12px;
  font-family: var(--font-hand);
  font-size: 1.8rem;
  font-weight: 700;
  background: rgba(255, 253, 249, 0.85);
  box-shadow: 0 10px 25px rgba(184, 74, 63, 0.35);
  animation: stampPop 0.4s var(--spring-bounce) forwards;
  user-select: none;
}

@keyframes stampPop {
  0% { transform: scale(3) rotate(-15deg); opacity: 0; }
  100% { transform: scale(1) rotate(var(--rot, -5deg)); opacity: 1; }
}

/* Artifact 3: Infinite Hug Meter */
.meter-display-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.meter-gauge {
  width: 100%;
  height: 20px;
  background: #EFE8DA;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.meter-fill {
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, #E8B4B0, #B84A3F);
  border-radius: inherit;
  transition: width 0.4s var(--spring-bounce);
}

.meter-count-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--crimson-rose);
}

/* Artifact 4: Cheek Kiss Ticket */
.promissory-ticket {
  background: #FFFDF7;
  border: 2px dashed var(--liquid-gold);
  border-radius: 8px;
  padding: 16px;
  position: relative;
  margin-top: auto;
}

.ticket-stamp-tag {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--liquid-gold);
  color: #29231E;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Artifact 5: Suspicious Dream Dossier */
.dossier-tag {
  display: inline-block;
  background: #29231E;
  color: #FFFDF9;
  font-family: monospace;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* Artifact 6: Guitar Pick Masterclass */
.guitar-strings-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 16px;
  background: linear-gradient(135deg, rgba(44, 34, 30, 0.94), rgba(30, 24, 20, 0.92)), url('../assets/images/download.jpg') center/cover;
  border-radius: 8px;
  margin-top: auto;
  border: 1px solid rgba(203, 164, 98, 0.4);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 4px 15px rgba(42, 36, 33, 0.1);
  position: relative;
  overflow: hidden;
}

.guitar-string {
  height: 4px;
  background: linear-gradient(90deg, #CBA462, #FFFDF9, #CBA462);
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.1s ease;
  box-shadow: 0 0 6px rgba(203, 164, 98, 0.4);
}

.guitar-string:hover {
  animation: stringPluck 0.25s linear;
}

@keyframes stringPluck {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-4px); }
  75% { transform: translateY(4px); }
}

/* Artifact 7: Botanical Herbarium Glass Frame */
.specimen-glass {
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(252, 234, 232, 0.7));
  border: 2px solid rgba(203, 164, 98, 0.45);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(12px);
  margin-top: auto;
  box-shadow: 0 8px 24px rgba(42, 36, 33, 0.08), inset 0 0 20px rgba(246, 231, 210, 0.5);
  position: relative;
}

.specimen-photo-wrap {
  width: 100%;
  height: 230px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(203, 164, 98, 0.4);
  box-shadow: var(--shadow-subtle);
  background: #FAF6EE;
}

.specimen-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(246, 231, 210, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.specimen-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.5s var(--spring-bounce);
}

.specimen-glass:hover .specimen-photo {
  transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   🎁 4.5 THE INTERACTIVE 3D MYSTERY GIFT BOX
   -------------------------------------------------------------------------- */
.gift-box-section {
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gift-box-stage {
  perspective: 1200px;
  margin: 40px auto;
  position: relative;
  width: 240px;
  height: 240px;
}

.gift-box-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform 0.5s var(--spring-bounce);
}

.gift-box-3d:hover {
  transform: rotateY(15deg) rotateX(10deg);
}

.gift-cube-body {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E63946 0%, #C9184A 55%, #800F2F 100%);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(230, 57, 70, 0.45), inset 0 2px 6px rgba(255, 255, 255, 0.4);
  position: relative;
  border: 2px solid rgba(255, 182, 193, 0.6);
}

.gift-ribbon-v {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 44px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #FFFFFF 0%, #FFE5EC 35%, #FFF0F3 50%, #FFE5EC 65%, #FFFFFF 100%);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.85), 0 0 8px rgba(232, 165, 152, 0.6);
}

.gift-ribbon-h {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 44px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFE5EC 35%, #FFF0F3 50%, #FFE5EC 65%, #FFFFFF 100%);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.85), 0 0 8px rgba(232, 165, 152, 0.6);
}

.gift-bow {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3.5rem;
  filter: drop-shadow(0 6px 14px rgba(230, 57, 70, 0.45));
  animation: floatGentle 3s ease-in-out infinite;
}

/* Gift Box Revealed Contents */
.gift-revealed-contents {
  width: 100%;
  max-width: 1100px;
  margin-top: 36px;
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
  transition: opacity 0.8s var(--smooth-out), transform 0.8s var(--spring-bounce);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gift-opened .gift-revealed-contents {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gift-guitar-showcase {
  max-width: 580px;
  width: 100%;
  padding: 30px 24px;
  background: var(--card-glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--card-glass-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 45px rgba(230, 57, 70, 0.12), 0 4px 15px rgba(255, 117, 143, 0.2);
  margin-bottom: 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gift-guitar-showcase::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--valentine-red), var(--sweetheart-pink), var(--valentine-red));
}

.gift-video-player-wrap {
  width: 100%;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  margin-top: 14px;
  background: #1C1622;
  border: 2px solid rgba(255, 117, 143, 0.55);
  box-shadow: 0 14px 40px rgba(230, 57, 70, 0.18), 0 4px 15px rgba(255, 117, 143, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.4s var(--spring-bounce), box-shadow 0.4s ease, border-color 0.4s ease;
}

.gift-art-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 18px;
  display: block;
  z-index: 1;
  transition: transform 0.8s ease;
}

.gift-video-element {
  position: relative;
  z-index: 15;
  width: 100%;
  height: 52px;
  background: rgba(28, 22, 34, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0 0 18px 18px;
  display: block;
  outline: none;
}

/* Subtle slow breathing / pulsing animation and glowing border while playing */
@keyframes concertGlowPulse {
  0% {
    box-shadow: 0 12px 35px rgba(184, 74, 63, 0.2), 0 0 0 0 rgba(203, 164, 98, 0.4);
    border-color: rgba(203, 164, 98, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 18px 50px rgba(184, 74, 63, 0.35), 0 0 25px 6px rgba(203, 164, 98, 0.65), 0 0 40px rgba(184, 74, 63, 0.25);
    border-color: rgba(184, 74, 63, 0.85);
    transform: scale(1.018);
  }
  100% {
    box-shadow: 0 12px 35px rgba(184, 74, 63, 0.2), 0 0 0 0 rgba(203, 164, 98, 0.4);
    border-color: rgba(203, 164, 98, 0.5);
    transform: scale(1);
  }
}

.gift-video-player-wrap.is-playing {
  animation: concertGlowPulse 3.5s ease-in-out infinite;
}

.gift-video-player-wrap.is-playing .gift-art-poster-img {
  transform: scale(1.035);
}

/* Cute "Happy Birthday Babyyyyy" Overlay with Floating Hearts */
.gift-art-title-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 8px 25px rgba(184, 74, 63, 0.22), 0 2px 10px rgba(203, 164, 98, 0.3);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 30;
  pointer-events: none;
  animation: cuteFloatBanner 3.5s ease-in-out infinite;
}

.cute-banner-text {
  font-family: var(--font-hand), 'Caveat', 'Dancing Script', cursive;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: var(--crimson-rose);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.cute-banner-sparkle {
  font-size: 1.1rem;
  animation: sparkleRotate 2.5s ease-in-out infinite;
}

.cute-banner-heart {
  display: inline-flex;
  font-size: 1.25rem;
}

.cute-banner-heart.pulse-heart {
  animation: heartPulseGlow 1.8s ease-in-out infinite;
}

.cute-banner-heart.float-heart {
  animation: floatGentle 2.5s ease-in-out infinite;
}

@keyframes cuteFloatBanner {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(1deg);
  }
}

@keyframes sparkleRotate {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.25) rotate(15deg);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .gift-video-player-wrap {
    height: 340px;
  }
  .gift-art-title-overlay {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    gap: 5px;
  }
  .cute-banner-text {
    font-size: 1.15rem;
  }
}

/* Vouchers Burst Area */
.vouchers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  width: 100%;
}

.voucher-card {
  background: var(--card-glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px dashed var(--soft-blush);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.08);
  text-align: left;
  position: relative;
  transition: transform 0.3s var(--spring-bounce), box-shadow 0.3s ease, border-color 0.3s ease;
}

.voucher-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 35px rgba(255, 117, 143, 0.25);
  border-color: var(--sweetheart-pink);
}

.voucher-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.voucher-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--romantic-charcoal);
  margin-bottom: 6px;
}

.voucher-terms {
  font-size: 0.78rem;
  color: var(--sepia-subtext);
  font-family: var(--font-hand);
}

/* --------------------------------------------------------------------------
   🫂 4.6 THE 3-SECOND "WARM EMBRACE" VIRTUAL HUG
   -------------------------------------------------------------------------- */
.virtual-hug-section {
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hug-hold-wrapper {
  position: relative;
  margin: 40px auto;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hug-pulse-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 2px solid rgba(230, 57, 70, 0.35);
  animation: pulseGlow 2.5s infinite;
  pointer-events: none;
}

.hug-progress-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hug-progress-circle {
  fill: none;
  stroke: var(--valentine-red);
  stroke-width: 8;
  stroke-dasharray: 628;
  stroke-dashoffset: 628;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.btn-hug-hold {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFFFFF, #FFE5EC);
  border: 3px solid var(--valentine-red);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 5;
}

.btn-hug-hold:active, .btn-hug-hold.holding {
  transform: scale(0.94);
  box-shadow: 0 0 45px rgba(230, 57, 70, 0.65);
}

.hug-hold-icon {
  font-size: 2.8rem;
  animation: heartBeat 2s infinite;
}

.hug-hold-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--valentine-red);
  margin-top: 4px;
}

/* Warm Embrace Golden Bloom Overlay */
#hug-bloom-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 240, 243, 0.98) 0%, rgba(255, 227, 232, 0.97) 60%, rgba(255, 204, 213, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9995;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: max(24px, env(safe-area-inset-top, 24px)) max(16px, env(safe-area-inset-right, 16px)) max(24px, env(safe-area-inset-bottom, 24px)) max(16px, env(safe-area-inset-left, 16px));
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.8s var(--smooth-out), visibility 0.8s ease;
}

#hug-bloom-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bloom-card-container {
  background: var(--card-glass-bg);
  backdrop-filter: blur(16px);
  border: 2px solid var(--card-glass-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 70px rgba(230, 57, 70, 0.35), 0 10px 30px rgba(255, 117, 143, 0.25);
  max-width: 480px;
  width: 100%;
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.6s var(--spring-bounce);
  position: relative;
  margin: auto;
}

#hug-bloom-overlay.active .bloom-card-container {
  transform: scale(1) translateY(0);
}

.bloom-photo-frame {
  width: 100%;
  max-width: 380px;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 35px rgba(61, 30, 36, 0.2);
  border: 3px solid #FFFFFF;
  background: #2B131D;
}

.bloom-hug-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.6s ease;
  animation: photoGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes photoGlowPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}

.bloom-photo-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(43, 19, 29, 0.8);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 182, 193, 0.5);
  white-space: nowrap;
}

.bloom-text-content {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bloom-title {
  font-size: clamp(1.4rem, 3.8vw, 1.85rem);
  color: var(--romantic-charcoal);
  margin-bottom: 6px;
  line-height: 1.25;
}

.bloom-subtitle {
  font-family: var(--font-hand);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--valentine-red);
  margin-bottom: 2px;
}

.bloom-signature {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--sepia-subtext);
  margin-bottom: 12px;
}

@media (max-height: 700px) {
  .bloom-photo-frame { height: 260px; }
  .bloom-card-container { padding: 16px 14px 20px; }
}

/* --------------------------------------------------------------------------
   🌸 4.7 "THINGS I LIKE ABOUT YOU" (Bespoke Polaroid Gallery)
   -------------------------------------------------------------------------- */
.things-like-section {
  padding: 100px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.things-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.like-note-card {
  background: var(--card-glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--card-glass-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.08);
  position: relative;
  transition: transform 0.3s var(--spring-bounce), box-shadow 0.3s ease;
}

.like-note-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(255, 117, 143, 0.22);
}

.like-sparkle {
  color: var(--sweetheart-pink);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.like-text {
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--romantic-charcoal);
}

/* --------------------------------------------------------------------------
   🃏 4.8 THE "YOU ARE..." 3D SWIPEABLE CARD DECK
   -------------------------------------------------------------------------- */
.swipe-deck-section {
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.swipe-deck-container {
  position: relative;
  width: 320px;
  height: 420px;
  margin: 40px auto;
  perspective: 1000px;
  touch-action: pan-y;
}

.deck-card {
  position: absolute;
  inset: 0;
  background: var(--card-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid var(--card-glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-floating);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  transform-origin: center bottom;
  transition: transform 0.4s var(--spring-bounce), opacity 0.4s ease;
  touch-action: pan-y;
}

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

.deck-card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sepia-subtext);
  margin-bottom: 16px;
}

.deck-card-question {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--romantic-charcoal);
}

.deck-card-answer {
  background: #FFE5EC;
  border: 1px solid var(--soft-blush);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  color: var(--valentine-red);
  font-size: 1rem;
}

.deck-card.gold-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 227, 232, 0.9));
  border: 2px solid var(--sweetheart-pink);
  box-shadow: 0 18px 50px rgba(230, 57, 70, 0.25), 0 0 25px rgba(255, 117, 143, 0.3);
}

.swipe-deck-controls {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   ⚡ 4.9 RAPID-FIRE BIRTHDAY DILEMMAS
   -------------------------------------------------------------------------- */
.dilemmas-section {
  padding: 100px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.dilemma-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.dilemma-card {
  background: var(--card-glass-bg);
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--card-glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dilemma-options {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.dilemma-btn {
  flex: 1;
  max-width: 280px;
  padding: 16px 20px;
  font-size: 1rem;
}

.dilemma-reaction {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--valentine-red);
  min-height: 32px;
  transition: opacity 0.3s ease;
}

/* --------------------------------------------------------------------------
   💌 4.10 THE CORE BIRTHDAY LETTER
   -------------------------------------------------------------------------- */
.core-letter-section {
  padding: 120px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.core-letter-parchment {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--card-glass-border);
  box-shadow: var(--shadow-floating), 0 0 60px rgba(255, 117, 143, 0.2);
  max-width: 780px;
  width: 100%;
  padding: 60px 48px;
  position: relative;
}

.letter-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 24px;
  color: var(--ink-charcoal);
}

.letter-body-p {
  font-family: var(--font-editorial);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.85;
  color: var(--ink-charcoal);
  margin-bottom: 20px;
}

.letter-signoff {
  margin-top: 36px;
  text-align: right;
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--crimson-rose);
}

/* --------------------------------------------------------------------------
   🌙 4.11 "WHEN LIFE GETS HEAVY" (Sanctuary Scene)
   -------------------------------------------------------------------------- */
.sanctuary-section {
  background: var(--twilight-plum);
  color: var(--twilight-text);
  padding: 120px 20px;
  border-radius: var(--radius-xl);
  max-width: 1100px;
  margin: 60px auto;
  text-align: center;
  box-shadow: 0 30px 80px rgba(28, 22, 34, 0.4);
  position: relative;
  overflow: hidden;
}

.sanctuary-title {
  color: #FFFDF9;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 24px;
}

.sanctuary-lines {
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--font-editorial);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.9;
  opacity: 0.92;
}

/* --------------------------------------------------------------------------
   🎆 4.12 THE GRAND FINALE: MIDNIGHT WISH & FINAL HUG
   -------------------------------------------------------------------------- */
.finale-section {
  padding: 140px 20px;
  text-align: center;
  position: relative;
}

.countdown-box {
  display: inline-flex;
  gap: 20px;
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 20px 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-medium);
  margin-bottom: 40px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-val {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--crimson-rose);
}

.countdown-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sepia-dust);
}

.final-order-copy {
  margin-top: 36px;
  font-family: var(--font-hand);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  color: var(--crimson-rose);
}

/* --------------------------------------------------------------------------
   🖼️ LIGHTBOX MODAL
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 22, 34, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top, 20px)) max(16px, env(safe-area-inset-right, 16px)) max(20px, env(safe-area-inset-bottom, 20px)) max(16px, env(safe-area-inset-left, 16px));
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.lightbox-content {
  background: var(--card-parchment);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-floating);
  position: relative;
}

.lightbox-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(41, 35, 30, 0.65);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  touch-action: manipulation;
}

.lightbox-img-wrap {
  width: 100%;
  height: 380px;
  background: #FAF6EE;
}

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

.lightbox-info {
  padding: 24px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   🎸 ACOUSTIC GUITAR BIRTHDAY PERFORMANCE MODAL & PLAYER
   -------------------------------------------------------------------------- */

.guitar-finale-card {
  max-width: 540px;
  margin: 36px auto 30px;
  padding: 30px 24px;
  text-align: center;
  background: linear-gradient(135deg, #FFFDF9 0%, #FAF2E6 100%);
  border: 2px solid var(--liquid-gold);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-gold), 0 10px 30px rgba(42, 36, 33, 0.08);
  position: relative;
  overflow: hidden;
}

.guitar-finale-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--crimson-rose), var(--liquid-gold), var(--crimson-rose));
}

.guitar-finale-badge {
  display: inline-block;
  background: rgba(184, 74, 63, 0.12);
  color: var(--crimson-rose);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid rgba(184, 74, 63, 0.25);
}

/* Guitar Video Modal */
.guitar-video-modal {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(38, 30, 46, 0.95) 0%, rgba(20, 16, 25, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top, 20px)) max(16px, env(safe-area-inset-right, 16px)) max(20px, env(safe-area-inset-bottom, 20px)) max(16px, env(safe-area-inset-left, 16px));
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.5s var(--smooth-out), visibility 0.5s ease;
}

.guitar-video-modal.active {
  opacity: 1;
  visibility: visible;
}

.guitar-modal-card {
  background: var(--card-parchment);
  border: 2px solid var(--liquid-gold);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 28px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 50px rgba(203, 164, 98, 0.3);
  position: relative;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.5s var(--spring-bounce);
}

.guitar-video-modal.active .guitar-modal-card {
  transform: scale(1) translateY(0);
}

.guitar-modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(42, 36, 33, 0.15);
  border: 1px solid rgba(110, 99, 89, 0.2);
  color: var(--ink-charcoal);
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  z-index: 10;
  touch-action: manipulation;
}

.guitar-modal-close-btn:hover {
  background: var(--crimson-rose);
  color: white;
  transform: rotate(90deg);
}

.guitar-video-frame {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1C1622;
  border: 2px solid rgba(203, 164, 98, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  position: relative;
  margin: 18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guitar-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guitar-player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(246, 231, 210, 0.4);
  border-radius: 8px;
  border: 1px dashed rgba(203, 164, 98, 0.4);
  margin-top: 12px;
}

.guitar-eq-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.guitar-eq-bar {
  width: 3px;
  height: 4px;
  background: var(--crimson-rose);
  border-radius: 2px;
  animation: soundWave 0.7s ease-in-out infinite alternate;
}

.guitar-eq-bar:nth-child(2) { animation-delay: 0.2s; height: 12px; }
.guitar-eq-bar:nth-child(3) { animation-delay: 0.4s; height: 8px; }
.guitar-eq-bar:nth-child(4) { animation-delay: 0.1s; height: 14px; }

/* --------------------------------------------------------------------------
   📱 MOBILE-FIRST RESPONSIVENESS & 60FPS PERFORMANCE OPTIMIZATIONS
   Tested for iPhone Viewports (390×844px) & Android Viewports
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Dynamic Viewport Heights */
  .envelope-ceremony-section,
  .hero-section,
  .sanctuary-section,
  .virtual-hug-section {
    min-height: auto;
    padding: clamp(50px, 8vh, 80px) 16px;
  }

  /* Reduce Heavy GPU Backdrop Blurs to 8px on Mobile */
  .deckle-card,
  .artifact-card,
  .voucher-card,
  .like-note-card,
  .deck-card,
  .poem-parchment-sheet,
  .core-letter-parchment,
  .gatekeeper-signpost,
  .bloom-card-container,
  .guitar-showcase {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* Single Column Card Stacks */
  .scrapbook-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
    max-width: 360px;
    margin: 0 auto;
  }

  .polaroid-card-container {
    height: 390px;
    max-width: 100%;
  }

  .polaroid-image-frame {
    height: 230px;
  }

  .little-world-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vouchers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dilemma-options {
    flex-direction: column;
    width: 100%;
  }

  .dilemma-btn {
    max-width: 100%;
    width: 100%;
    min-height: 48px;
  }

  /* Small Screen Envelope (390px iPhone canvas) */
  .envelope-3d-stage {
    max-width: 350px;
  }

  .envelope-wrapper {
    height: 240px;
  }

  .envelope-flap {
    border-left: 175px solid transparent;
    border-right: 175px solid transparent;
    border-top: 135px solid #FFE5EC;
  }

  .envelope-pocket {
    border-left: 175px solid #FFCCD5;
    border-right: 175px solid #FFCCD5;
    border-bottom: 135px solid #FFB3C1;
  }

  .envelope-letter {
    height: 200px;
    padding: 16px 12px;
  }

  .wax-seal {
    width: 58px;
    height: 58px;
    top: 110px;
  }

  .poem-parchment-sheet,
  .core-letter-parchment {
    padding: 36px 20px;
    border-radius: var(--radius-lg);
  }

  /* Swipe Deck Compact */
  .swipe-deck-container {
    width: 290px;
    height: 380px;
  }

  /* Virtual Hug Hold Screen */
  .hug-hold-wrapper {
    width: 190px;
    height: 190px;
    margin: 28px auto;
  }

  .btn-hug-hold {
    width: 155px;
    height: 155px;
  }

  .bloom-photo-frame {
    max-width: 100%;
    height: 280px;
  }

  .bloom-card-container {
    padding: 20px 16px 24px;
    max-width: 360px;
  }

  /* Countdown Engine */
  .countdown-box {
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
  }

  .countdown-val {
    font-size: 1.55rem;
  }

  .countdown-lbl {
    font-size: 0.65rem;
  }

  /* Gift Box Player Frame */
  .gift-video-player-wrap {
    height: 350px;
  }

  /* Min Touch Target Sizing (48px) */
  .btn-primary,
  .btn-gold,
  .btn-secondary {
    min-height: 48px;
    padding: 14px 24px;
  }

  .lightbox-close-btn,
  .guitar-modal-close-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
}

@media (max-width: 380px) {
  .envelope-3d-stage {
    max-width: 300px;
  }
  .envelope-wrapper {
    height: 220px;
  }
  .envelope-flap {
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-top: 120px solid #FFE5EC;
  }
  .envelope-pocket {
    border-left: 150px solid #FFCCD5;
    border-right: 150px solid #FFCCD5;
    border-bottom: 120px solid #FFB3C1;
  }
  .swipe-deck-container {
    width: 260px;
    height: 350px;
  }
  .gift-video-player-wrap {
    height: 310px;
  }
}
