/* ============================================================
   ROMANTIC BIRTHDAY WEBSITE — style.css  (Part 1)
   ============================================================ */

/* ─────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES
───────────────────────────────────────────── */
:root {
  /* Rupti's Luxury Palette: Shimmering Lavender & True Obsidian Black */
  --clr-obsidian:       #000000;
  --clr-obsidian-card:  #110f17;
  --clr-obsidian-soft:  #181522;
  --clr-amethyst-deep:  #241a34;
  --clr-amethyst:       #5e3584;
  --clr-mauve:          #7e22ce;
  --clr-purple:         #9333ea;
  --clr-lilac:          #a855f7;
  --clr-lavender:       #c084fc;
  --clr-silver-lilac:   #fdf4ff;

  /* High-Contrast Design System Surfaces (Apple & Linear standard) */
  --clr-bg-base:        #000000;
  --clr-surface-card:   #110f17;
  --clr-surface-unit:   #191524;
  --clr-surface-hover:  #221d30;
  --border-hairline:    rgba(255, 255, 255, 0.08);
  --border-accent:      rgba(192, 132, 252, 0.22);

  /* High-Contrast Typography */
  --clr-text-dark:      #ffffff;
  --clr-text-mid:       #f1f5f9;
  --clr-text-soft:      #cbd5e1;
  --clr-text-muted:     #94a3b8;
  --clr-text-light:     #ffffff;

  /* Legacy aliases mapped gracefully */
  --clr-blush:          #161220;
  --clr-blush-mid:      #1f192c;
  --clr-blush-deep:     #2b223d;
  --clr-rose:           #c084fc;
  --clr-rose-dark:      #a855f7;
  --clr-burgundy:       #7e22ce;
  --clr-burgundy-deep:  #0a0810;
  --clr-champagne:      #fdf4ff;
  --clr-gold:           #e9d5ff;
  --clr-gold-light:     #f5d0fe;
  --clr-gold-pale:      #161222;
  --clr-petal-pink:     #130e1d;
  --clr-petal-soft:     #0c0813;
  --clr-cream:          #07050a;
  --clr-ivory:          #030205;
  --clr-warm-white:     #000000;

  /* Gradients */
  --grad-hero:          #000000;
  --grad-rose-gold:     linear-gradient(135deg, #ffffff 0%, #fdf4ff 30%, #e9d5ff 70%, #c084fc 100%);
  --grad-gold:          linear-gradient(135deg, #ffffff 0%, #e9d5ff 50%, #a855f7 100%);
  --grad-blush:         linear-gradient(135deg, #14101e 0%, #0d0a14 100%);
  --grad-burgundy:      linear-gradient(135deg, #1c152a 0%, #0c0913 100%);
  --grad-parchment:     linear-gradient(160deg, #161222 0%, #0e0a16 100%);
  --grad-text-hero:     linear-gradient(135deg, #ffffff 0%, #fdf4ff 40%, #c084fc 100%);

  /* Shadows (Natural, crisp depth without neon halos) */
  --shadow-soft:        0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-card:        0 8px 30px rgba(0, 0, 0, 0.75);
  --shadow-deep:        0 16px 50px rgba(0, 0, 0, 0.90);
  --shadow-inset:       inset 0 1px 1px rgba(255, 255, 255, 0.08);

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

  /* Spacing */
  --space-xs:   .375rem;
  --space-sm:   .75rem;
  --space-md:   1.25rem;
  --space-lg:   2rem;
  --space-xl:   3rem;
  --space-2xl:  4.5rem;
  --space-3xl:  6rem;

  /* Radii */
  --radius-sm:  .5rem;
  --radius-md:  1rem;
  --radius-lg:  1.75rem;
  --radius-xl:  2.5rem;
  --radius-pill: 999px;

  /* Transitions */
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --ease-smooth: cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.175,.885,.32,1.275);
  --dur-fast:   .18s;
  --dur-mid:    .35s;
  --dur-slow:   .6s;

  /* Z-index layers */
  --z-bg:       -1;
  --z-base:      1;
  --z-card:      10;
  --z-nav:       100;
  --z-modal:     200;
  --z-top:       300;
}

/* ─────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: #ffffff;
  background-color: #05030a;
  background-image:
    radial-gradient(circle at 50% 12%, rgba(147, 51, 234, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 85% 65%, rgba(192, 132, 252, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(126, 34, 206, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: clip !important;
  overflow-y: visible !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ─────────────────────────────────────────────
   3. LAYOUT UTILITIES
───────────────────────────────────────────── */
.container {
  width: min(90%, 1140px);
  margin-inline: auto;
}

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

/* ─────────────────────────────────────────────
   3.5. LUXURY 3D PRESENT UNWRAP EXPERIENCE
───────────────────────────────────────────── */
.present-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: #06040a;
  background-image:
    radial-gradient(circle at 50% 36%, rgba(88, 28, 135, 0.32) 0%, rgba(15, 10, 24, 0.75) 45%, #030205 100%),
    radial-gradient(circle at 15% 15%, rgba(192, 132, 252, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 85% 85%, rgba(147, 51, 234, 0.12) 0%, transparent 35%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 16px;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  overflow: hidden;
}

.present-overlay.opened {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  display: none !important;
}

.present-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 335px;
}

/* Luxury Delivery Kicker Badge */
.present-top-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 16px;
  color: #f3e8ff;
  background: linear-gradient(135deg, rgba(38, 24, 60, 0.85) 0%, rgba(18, 11, 30, 0.95) 100%);
  border: 1px solid rgba(216, 180, 254, 0.35);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: badgeBreathe 3s ease-in-out infinite alternate;
}

@keyframes badgeBreathe {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}

/* 3D Gift Scene */
.gift-scene {
  position: relative;
  margin: 12px 0 20px;
  perspective: 900px;
  display: flex;
  justify-content: center;
}

.gift-pedestal-shadow {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 38px;
  background: radial-gradient(ellipse at center, rgba(192, 132, 252, 0.35) 0%, rgba(126, 34, 206, 0.15) 45%, transparent 75%);
  border-radius: 50%;
  filter: blur(8px);
  animation: pedestalPulse 3s ease-in-out infinite alternate;
}

@keyframes pedestalPulse {
  0%   { transform: translateX(-50%) scale(1); opacity: 0.85; }
  100% { transform: translateX(-50%) scale(1.08); opacity: 0.55; }
}

/* Gift Box with playful anticipation wiggle (Enlarged) */
.gift-box-wrapper {
  position: relative;
  width: 230px;
  height: 230px;
  cursor: pointer;
  user-select: none;
  transform-style: preserve-3d;
  animation: giftPlayfulWiggle 4s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gift-box-wrapper:hover {
  transform: scale(1.05);
}

.gift-box-wrapper:active {
  transform: scale(0.94);
}

@keyframes giftPlayfulWiggle {
  0%, 78%, 100% { transform: translateY(0) rotate(0deg); }
  80% { transform: translateY(-4px) rotate(-4deg); }
  82% { transform: translateY(-6px) rotate(4deg); }
  84% { transform: translateY(-4px) rotate(-3deg); }
  86% { transform: translateY(-5px) rotate(3deg); }
  88% { transform: translateY(-2px) rotate(-1deg); }
  90% { transform: translateY(0) rotate(0deg); }
}

/* Floating Gift Tag */
.gift-tag-dangle {
  position: absolute;
  top: 28px;
  left: -32px;
  z-index: 18;
  transform: rotate(-15deg);
  animation: tagFloat 2.5s ease-in-out infinite alternate;
}

@keyframes tagFloat {
  0%   { transform: rotate(-15deg) translateY(0); }
  100% { transform: rotate(-10deg) translateY(-3px); }
}

.tag-card {
  display: inline-block;
  background: linear-gradient(135deg, #1b1128 0%, #12091c 100%);
  color: #f4eefa;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.12rem;
  padding: 5px 15px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(217, 194, 239, 0.45);
}

/* Obsidian Velvet Box Body */
.gift-box-body {
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 168px;
  background: linear-gradient(145deg, #1c102b 0%, #11091b 50%, #08040d 100%);
  border-radius: 8px 8px 24px 24px;
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.90),
    inset 0 2px 5px rgba(217, 194, 239, 0.25),
    inset 0 -2px 6px rgba(0, 0, 0, 0.6);
  overflow: visible;
}

.box-ribbon-vertical {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  background: linear-gradient(90deg, #f4eefa 0%, #d9c2ef 35%, #ba95e5 70%, #855cae 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  overflow: hidden;
}

.box-ribbon-vertical::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: ribbonGleam 4s ease-in-out infinite;
}

@keyframes ribbonGleam {
  0%, 65% { top: -100%; }
  100% { top: 200%; }
}

.box-ribbon-horizontal {
  position: absolute;
  top: 42%;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg, #f4eefa 0%, #d9c2ef 35%, #ba95e5 70%, #855cae 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.box-light-beam {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: bottom center;
  width: 150px;
  height: 380px;
  background: radial-gradient(ellipse at bottom center, rgba(217, 194, 239, 0.9) 0%, rgba(133, 92, 174, 0.4) 40%, transparent 75%);
  filter: blur(14px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.5s ease;
  pointer-events: none;
  z-index: 5;
}

.gift-box-wrapper.opened .box-light-beam {
  transform: translateX(-50%) scaleY(1);
  opacity: 1;
}

/* 3D Box Lid */
.gift-box-lid {
  position: absolute;
  top: 18px;
  left: -3px;
  right: -3px;
  height: 52px;
  background: linear-gradient(145deg, #251638 0%, #190e28 50%, #10081a 100%);
  border-radius: 12px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.75),
    inset 0 2px 4px rgba(217, 194, 239, 0.35);
  z-index: 10;
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}

.lid-ribbon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  background: linear-gradient(90deg, #f4eefa 0%, #d9c2ef 35%, #ba95e5 70%, #855cae 100%);
}

.gift-box-wrapper.opened .gift-box-lid {
  transform: translateY(-160px) rotateX(-50deg) rotateZ(32deg) scale(0.85);
  opacity: 0;
}

/* Luxury Satin Bow Knot & Loops */
.luxury-bow {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 42px;
  z-index: 15;
}

.bow-loop {
  position: absolute;
  top: 2px;
  width: 42px;
  height: 36px;
  border-radius: 50% 50% 25% 25%;
  background: linear-gradient(135deg, #f4eefa 0%, #d9c2ef 45%, #ba95e5 85%, #855cae 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.bow-loop.loop-left {
  left: 5px;
  transform: rotate(-38deg);
}

.bow-loop.loop-right {
  right: 5px;
  transform: rotate(38deg);
}

.bow-tail {
  position: absolute;
  top: 24px;
  width: 25px;
  height: 36px;
  background: linear-gradient(180deg, #d9c2ef 0%, #855cae 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
}

.bow-tail.tail-left {
  left: 14px;
  transform: rotate(-25deg);
}

.bow-tail.tail-right {
  right: 14px;
  transform: rotate(25deg);
}

.bow-jewel {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #d9c2ef 50%, #5e3584 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* Erupting Floating Items from the Box */
.gift-eruption {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 12;
}

.erupt-item {
  position: absolute;
  font-size: 1.4rem;
  opacity: 0;
  transform: translate(0, 0) scale(0);
  transition: transform 1.2s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.8s ease;
}

.gift-box-wrapper.opened .erupt-item.item-1 { transform: translate(-75px, -170px) rotate(-18deg) scale(1.3); opacity: 1; }
.gift-box-wrapper.opened .erupt-item.item-2 { transform: translate(70px, -190px) rotate(15deg) scale(1.4); opacity: 1; }
.gift-box-wrapper.opened .erupt-item.item-3 { transform: translate(-95px, -100px) scale(1.2); opacity: 1; }
.gift-box-wrapper.opened .erupt-item.item-4 { transform: translate(90px, -110px) scale(1.2); opacity: 1; }
.gift-box-wrapper.opened .erupt-item.item-5 { transform: translate(0px, -230px) scale(1.6); opacity: 1; }
.gift-box-wrapper.opened .erupt-item.item-6 { transform: translate(-50px, -240px) scale(1.1); opacity: 1; }
.gift-box-wrapper.opened .erupt-item.item-7 { transform: translate(55px, -230px) scale(1.2); opacity: 1; }
.gift-box-wrapper.opened .erupt-item.item-8 { transform: translate(-20px, -150px) scale(1.2); opacity: 1; }

/* When unwrapped, completely remove the gift box, kicker, and bottom tap prompt */
.present-stage.unwrapped .present-top-badge,
.present-stage.unwrapped .present-tag-kicker,
.present-stage.unwrapped .present-tap-text,
.present-stage.unwrapped .gift-scene {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Pop-out "Happy Birthday Pakhi" Royal Celebration Banner */
.present-popout {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
  z-index: 50;
  width: 92%;
  max-width: 335px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.present-popout.popped {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.popout-celebration-aura {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
}

.aura-icon {
  font-size: 1.55rem;
  animation: auraFloat 2.4s ease-in-out infinite alternate;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.aura-icon:nth-child(1) { animation-delay: 0s; }
.aura-icon:nth-child(2) { animation-delay: 0.4s; }
.aura-icon:nth-child(4) { animation-delay: 0.8s; }
.aura-icon:nth-child(5) { animation-delay: 1.2s; }

@keyframes auraFloat {
  0%   { transform: translateY(0) rotate(-6deg); }
  100% { transform: translateY(-8px) rotate(6deg); }
}

.popout-crown {
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 16px rgba(250, 204, 21, 0.65));
  animation: crownBounce 2s ease-in-out infinite alternate;
}

@keyframes crownBounce {
  0%   { transform: translateY(0) rotate(-3deg); }
  100% { transform: translateY(-6px) rotate(3deg); }
}

.popout-sparkles {
  font-size: 1.2rem;
  color: #e9d5ff;
  letter-spacing: 0.25em;
  margin-bottom: 2px;
}

.popout-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.18;
  background: linear-gradient(135deg, #ffffff 0%, #fdf4ff 35%, #e9d5ff 70%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.popout-subtitle-wrapper {
  background: linear-gradient(160deg, rgba(32, 21, 50, 0.9) 0%, rgba(16, 10, 26, 0.95) 100%);
  border: 1px solid rgba(216, 180, 254, 0.35);
  border-radius: 18px;
  padding: 14px 20px;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  width: 100%;
}

.popout-subtitle {
  font-family: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.15rem;
  color: #fdf4ff;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0;
}

.btn-enter-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 50%, #7e22ce 100%);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  padding: 14px 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-enter-site::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3.5s ease-in-out infinite;
}

.btn-enter-site:active {
  transform: scale(0.94);
}

.present-tap-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f3e8ff;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(28, 18, 44, 0.9) 0%, rgba(15, 10, 24, 0.95) 100%);
  border: 1px solid rgba(216, 180, 254, 0.3);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.01em;
}

.tap-finger {
  font-size: 1.15rem;
  display: inline-block;
  animation: fingerPoint 1.4s ease-in-out infinite alternate;
}

@keyframes fingerPoint {
  0% { transform: translateX(0); }
  100% { transform: translateX(-5px); }
}

/* ─────────────────────────────────────────────
   3.6. CINEMATIC MULTI-STAGE REVEAL TRANSITION
───────────────────────────────────────────── */
/* When exiting, the 2nd screen contents ascend gracefully into starlight */
.present-overlay.exiting .present-popout {
  transform: translate(-50%, -85%) scale(1.08) !important;
  opacity: 0 !important;
  filter: blur(8px) !important;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease,
              filter 0.5s ease !important;
}

.present-overlay.opened {
  display: none !important;
  opacity: 0 !important;
  transform: scale(1.08) !important;
  filter: blur(12px) !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.75s ease,
              visibility 0.75s !important;
}

/* Choreographed Staggered Entrance of Main Screen */
body.site-revealed .site-header {
  animation: headerDropIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes headerDropIn {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.site-revealed .hero-badge {
  animation: badgeSpringIn 0.85s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes badgeSpringIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.88);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.site-revealed .hero-title {
  animation: titleHeartbeatIn 0.9s 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes titleHeartbeatIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(16px);
    filter: blur(4px);
  }
  50% {
    transform: scale(1.04) translateY(-2px);
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

body.site-revealed .hero-subtitle {
  animation: textFloatUp 0.85s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes textFloatUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.site-revealed .milestone-card {
  animation: cardElevateIn 0.95s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardElevateIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Staggered popping of the 4 milestone counters using nth-of-type */
body.site-revealed .timer-unit {
  animation: unitBounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
body.site-revealed .timer-unit:nth-of-type(1) { animation-delay: 0.25s; }
body.site-revealed .timer-unit:nth-of-type(2) { animation-delay: 0.35s; }
body.site-revealed .timer-unit:nth-of-type(3) { animation-delay: 0.45s; }
body.site-revealed .timer-unit:nth-of-type(4) { animation-delay: 0.55s; }

@keyframes unitBounce {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.site-revealed .hero-actions {
  animation: actionsReveal 0.85s 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes actionsReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────
   4. FLOATING HEARTS BACKGROUND
───────────────────────────────────────────── */
.floating-hearts-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-bg);
  overflow: hidden;
}

/* Individual heart particles injected via JS */
.floating-hearts-bg .heart-particle {
  position: absolute;
  bottom: -3rem;
  font-size: clamp(.8rem, 2vw, 1.6rem);
  opacity: 0;
  animation: floatHeart linear infinite;
  will-change: transform, opacity;
  user-select: none;
}

@keyframes floatHeart {
  0% {
    transform: translateY(0) rotate(0deg) scale(.8);
    opacity: 0;
  }
  8% { opacity: .7; }
  85% { opacity: .4; }
  100% {
    transform: translateY(-110vh) rotate(360deg) scale(1.1);
    opacity: 0;
  }
}

/* ─────────────────────────────────────────────
   5. AMBIENT GLOW LIGHTS
───────────────────────────────────────────── */
.ambient-glow {
  display: none !important;
}

@keyframes ambientPulse {
  0%   { opacity: .45; transform: scale(1); }
  100% { opacity: .70; transform: scale(1.12); }
}

/* ─────────────────────────────────────────────
   6. SITE HEADER & NAVIGATION
───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255,249,246,.82);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(212,96,122,.14);
  box-shadow: 0 2px 20px rgba(123,31,58,.08);
  transition: box-shadow var(--dur-mid) var(--ease-smooth);
}

.site-header.scrolled {
  box-shadow: 0 4px 32px rgba(123,31,58,.14);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: min(95%, 1200px);
  margin-inline: auto;
  padding: .85rem var(--space-md);
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-heart {
  font-size: 1.4rem;
  animation: heartbeat 1.8s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.22); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.14); }
  56%       { transform: scale(1); }
}

.brand-text {
  font-family: var(--font-script);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  background: var(--grad-rose-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: .01em;
  white-space: nowrap;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}

.nav-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--clr-text-mid);
  padding: .42rem .78rem;
  border-radius: var(--radius-pill);
  transition:
    background var(--dur-fast) var(--ease-smooth),
    color var(--dur-fast) var(--ease-smooth),
    transform var(--dur-fast) var(--ease-bounce);
  white-space: nowrap;
  letter-spacing: .01em;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(212,96,122,.12);
  color: var(--clr-rose-dark);
  transform: translateY(-1px);
  outline: none;
}

.nav-link:active {
  transform: translateY(0);
}

/* ─────────────────────────────────────────────
   7. BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .78rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-bounce),
    box-shadow var(--dur-mid) var(--ease-smooth),
    background var(--dur-mid) var(--ease-smooth),
    border-color var(--dur-mid) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur-fast);
  border-radius: inherit;
}

.btn:hover::after  { background: rgba(255,255,255,.12); }
.btn:active        { transform: scale(.96) !important; }

.btn-icon {
  font-size: 1.1em;
  line-height: 1;
}

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 50%, #7e22ce 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 18px rgba(147, 51, 234, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.5);
  outline: none;
}

/* Secondary */
.btn-secondary {
  background: rgba(26, 18, 40, 0.9);
  color: #fde68a;
  border: 1.5px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 18px rgba(251, 191, 36, 0.18);
}

.btn-secondary:hover {
  background: rgba(38, 25, 58, 0.95);
  border-color: rgba(251, 191, 36, 0.85);
  color: #fef3c7;
}

/* Outline */
.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(216, 180, 254, 0.35);
  color: #f3e8ff;
  border-radius: var(--radius-pill);
}

.btn-outline:hover {
  background: rgba(192, 132, 252, 0.15);
  border-color: rgba(216, 180, 254, 0.6);
  color: #ffffff;
}

/* Glow variant */
.btn-glow {
  box-shadow: 0 4px 18px rgba(147, 51, 234, 0.35);
}

/* ─────────────────────────────────────────────
   GLOBAL SECTION HEADINGS
───────────────────────────────────────────── */
.section-heading {
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  z-index: 5;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 16px;
  color: #f3e8ff;
  background: linear-gradient(135deg, rgba(38, 24, 60, 0.85) 0%, rgba(18, 11, 30, 0.95) 100%);
  border: 1px solid rgba(216, 180, 254, 0.35);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 580px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────
   2. INTERACTIVE ENVELOPE & LETTER
───────────────────────────────────────────── */
.letter-section {
  padding: 80px 0 100px;
  position: relative;
}

.envelope-wrapper {
  margin: 40px auto 20px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.envelope {
  position: relative;
  width: min(320px, 90vw);
  height: 200px;
  background: #161026;
  border-radius: 0 0 14px 14px;
  border: 1px solid rgba(216, 180, 254, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  perspective: 800px;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  border-left: 160px solid transparent;
  border-right: 160px solid transparent;
  border-top: 110px solid #24173d;
  transform-origin: top center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

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

.wax-seal {
  position: absolute;
  top: -125px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, #c084fc 0%, #9333ea 50%, #581c87 100%);
  border: 1.5px solid rgba(254, 240, 138, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), inset 0 2px 4px rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wax-seal:hover {
  transform: translateX(-50%) scale(1.12);
}

.seal-inner {
  color: #fef08a;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.envelope-pocket {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.envelope-pocket-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  border-left: 160px solid transparent;
  border-right: 160px solid transparent;
  border-bottom: 110px solid #1a122e;
  border-radius: 0 0 14px 14px;
}

.envelope-pocket-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 100px solid transparent;
  border-bottom: 100px solid transparent;
  border-left: 160px solid #1f1636;
  border-radius: 0 0 0 14px;
}

.envelope-pocket-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 100px solid transparent;
  border-bottom: 100px solid transparent;
  border-right: 160px solid #1d1433;
  border-radius: 0 0 14px 0;
}

.letter-peek {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 86%;
  height: 130px;
  background: #140d24;
  border: 1px solid rgba(216, 180, 254, 0.2);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.peek-line {
  height: 6px;
  background: rgba(216, 180, 254, 0.15);
  border-radius: 3px;
  width: 100%;
}

.peek-line.short {
  width: 60%;
}

.peek-text {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  color: #c084fc;
  font-weight: 700;
  margin-top: auto;
}

.envelope-instructions {
  margin-top: 24px;
}

/* Full Letter Paper */
.letter-paper-container {
  margin-top: 40px;
  animation: letterSlideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes letterSlideDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.letter-paper {
  position: relative;
  background: linear-gradient(165deg, #181228 0%, #100b1a 100%);
  border-radius: 20px;
  border: 1.5px solid rgba(216, 180, 254, 0.3);
  padding: 44px 32px 36px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.85),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.paper-washi-tape {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  border-radius: 2px;
  opacity: 0.85;
}

.paper-washi-tape.top {
  top: -12px;
  background: repeating-linear-gradient(45deg, #c084fc, #c084fc 4px, #e9d5ff 4px, #e9d5ff 8px);
}

.paper-washi-tape.bottom {
  bottom: -12px;
  background: repeating-linear-gradient(45deg, #9333ea, #9333ea 4px, #c084fc 4px, #c084fc 8px);
}

.letter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px dashed rgba(216, 180, 254, 0.25);
  padding-bottom: 20px;
  margin-bottom: 24px;
  gap: 16px;
}

.letter-stamp {
  border: 2px dashed #c084fc;
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f3e8ff;
  letter-spacing: 0.05em;
  background: rgba(192, 132, 252, 0.12);
  flex-shrink: 0;
}

.stamp-heart { display: block; font-size: 1.1rem; }
.stamp-date  { display: block; color: #fef08a; font-size: 0.68rem; }

.letter-meta {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.letter-recipient {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
}

.letter-location {
  font-size: 0.8rem;
  color: #c084fc;
  font-style: italic;
}

.letter-body {
  font-size: 1rem;
  line-height: 1.85;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.letter-bengali {
  font-size: 1.15rem;
  color: #fdf4ff;
  font-weight: 600;
  line-height: 1.8;
  background: linear-gradient(135deg, rgba(38, 24, 60, 0.8) 0%, rgba(20, 13, 32, 0.9) 100%);
  padding: 14px 20px;
  border-left: 3px solid #c084fc;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.letter-closing {
  margin-top: 10px;
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  color: #e2e8f0;
}

.letter-signature {
  font-size: 1.55rem;
  color: #c084fc;
  font-weight: 700;
  display: inline-block;
  margin-top: 4px;
}

.letter-actions {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed rgba(216, 180, 254, 0.25);
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── PART 2: GALLERY, JAR, CAKE, LLB, MUSIC & RESPONSIVE ─── */

/* ============================================================
   PART 2 — style.css
   Polaroid Gallery · Modal · Jar · Note Card · Cake · LLB
   Footer · Music Player · Responsive
   ============================================================ */

/* ─────────────────────────────────────────────
   3. POLAROID MEMORY GALLERY
───────────────────────────────────────────── */
.gallery-section {
  padding: 80px 0 100px;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.gallery-section::before {
  display: none;
}

.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  margin-top: 48px;
  padding: 20px 10px 40px;
}

/* ── Polaroid Card ── */
.polaroid-card {
  position: relative;
  background: #140f22;
  border-radius: 6px;
  border: 1.5px solid rgba(216, 180, 254, 0.25);
  padding: 14px 14px 52px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
  transform: rotate(var(--rotation, 0deg));
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  cursor: pointer;
  will-change: transform;
}

.polaroid-card:hover {
  transform: rotate(0deg) scale(1.06) translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 24px rgba(192, 132, 252, 0.3);
  border-color: rgba(216, 180, 254, 0.5);
  z-index: 10;
}

.polaroid-card:active {
  transform: rotate(0deg) scale(1.02) translateY(-4px);
}

/* ── Washi Tape on Polaroids ── */
.polaroid-card .washi-tape {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 60px;
  height: 28px;
  border-radius: 3px;
  opacity: 0.85;
  z-index: 5;
}

.washi-blush {
  background: repeating-linear-gradient(
    45deg,
    #c084fc,
    #c084fc 4px,
    #e9d5ff 4px,
    #e9d5ff 8px
  );
}

.washi-gold {
  background: repeating-linear-gradient(
    45deg,
    #fef08a,
    #fef08a 4px,
    #e9d5ff 4px,
    #e9d5ff 8px
  );
}

.washi-rose {
  background: repeating-linear-gradient(
    45deg,
    #a855f7,
    #a855f7 4px,
    #c084fc 4px,
    #c084fc 8px
  );
}

.washi-cream {
  background: repeating-linear-gradient(
    45deg,
    #9333ea,
    #9333ea 4px,
    #7e22ce 4px,
    #7e22ce 8px
  );
}

/* ── Polaroid Image Frame ── */
/* Frame follows the real photo ratio via the --ar custom property set on each
   frame, so every photo sits flush with no letterbox bars and no crop guesswork.
   Uses the longhand aspect-ratio so `aspect-ratio: var(--ar)` never fails to parse. */
.polaroid-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0d0816;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@supports (aspect-ratio: 4 / 3) {
  .polaroid-image-frame[style*="--ar"] {
    aspect-ratio: var(--ar);
  }
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: saturate(0.95) brightness(0.95);
}

.polaroid-card:hover .polaroid-img {
  transform: scale(1.08);
  filter: saturate(1.1) brightness(1.02);
}

.polaroid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(147, 51, 234, 0.6) 0%,
    rgba(192, 132, 252, 0.45) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 2px;
}

.polaroid-overlay span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.polaroid-card:hover .polaroid-overlay {
  opacity: 1;
}

/* ── Polaroid Caption ── */
.polaroid-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 10px;
}

.caption-title {
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  text-align: center;
}

.caption-date {
  font-family: 'Caveat', cursive;
  font-size: 0.82rem;
  color: #c084fc;
  text-align: center;
}

/* ─────────────────────────────────────────────
   POLAROID MODAL
───────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 2, 8, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-backdrop.is-open,
.modal-backdrop[style*="display: flex"] {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  position: relative;
  background: #130d20;
  border-radius: 20px;
  border: 1.5px solid rgba(216, 180, 254, 0.35);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
  color: #f1f5f9;
  transform: scale(0.88) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.is-open .modal-card,
.modal-backdrop[style*="display: flex"] .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
}

.modal-close:hover {
  background: rgba(192, 132, 252, 0.3);
  transform: rotate(90deg) scale(1.1);
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.modal-image-wrapper {
  overflow: hidden;
  border-radius: 20px 0 0 20px;
  background: #0a0614;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.6s ease;
}

.modal-card:hover .modal-img {
  transform: scale(1.04);
}

.modal-details {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.modal-tag {
  display: inline-block;
  background: linear-gradient(135deg, #c084fc, #9333ea);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

.modal-story {
  font-size: 0.94rem;
  color: #cbd5e1;
  line-height: 1.75;
  flex: 1;
}

.modal-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(216, 180, 254, 0.2);
}

#modalHeartBtn {
  gap: 6px;
}

#modalHeartBtn .heart-icon {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#modalHeartBtn:hover .heart-icon,
#modalHeartBtn.loved .heart-icon {
  transform: scale(1.4);
}

/* ─────────────────────────────────────────────
   4. JAR OF LOVE SECTION
───────────────────────────────────────────── */
.jar-section {
  padding: 80px 0 100px;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.jar-section::before {
  display: none;
}

.jar-interactive-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 56px;
}

/* ── Glass Jar Display ── */
.jar-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.glass-jar {
  position: relative;
  width: 200px;
  cursor: pointer;
  filter: drop-shadow(0 20px 40px rgba(147, 51, 234, 0.35));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  user-select: none;
}

.glass-jar:hover {
  transform: translateY(-6px) scale(1.03);
  filter: drop-shadow(0 28px 50px rgba(192, 132, 252, 0.45));
}

.glass-jar:active {
  transform: translateY(-2px) scale(0.98);
}

/* Jar Lid */
.jar-lid {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}

.jar-cork {
  width: 80px;
  height: 18px;
  background: linear-gradient(180deg, #2a1b12 0%, #160d08 100%);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.4);
  position: relative;
}

.jar-cork::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.jar-rim {
  width: 110px;
  height: 14px;
  background: rgba(216, 180, 254, 0.18);
  border: 1.5px solid rgba(216, 180, 254, 0.4);
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* ─── JAR BODY & DETAILS ─── */
.jar-body {
  position: relative;
  width: 200px;
  height: 240px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(38, 20, 62, 0.5) 0%, rgba(20, 10, 35, 0.75) 100%);
  border: 2px solid rgba(216, 180, 254, 0.35);
  border-top: none;
  border-radius: 0 0 36px 36px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 24px rgba(192, 132, 252, 0.25), 0 16px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.jar-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(18, 12, 26, 0.95);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(216, 180, 254, 0.45);
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.label-heart { font-size: 1.3rem; display: block; }
.label-text { font-size: 0.78rem; font-weight: 700; color: #ffffff; line-height: 1.2; }
.jar-slips { position: absolute; inset: 0; pointer-events: none; }
.slip { position: absolute; font-size: 1.4rem; animation: floatNote 3s ease-in-out infinite alternate; }
.slip-1 { top: 20%; left: 15%; animation-delay: 0s; }
.slip-2 { top: 35%; right: 20%; animation-delay: 0.6s; }
.slip-3 { bottom: 25%; left: 25%; animation-delay: 1.2s; }
.slip-4 { bottom: 20%; right: 25%; animation-delay: 1.8s; }
.slip-5 { top: 15%; right: 25%; animation-delay: 2.2s; }
.slip-6 { top: 60%; left: 35%; animation-delay: 0.9s; }

@keyframes floatNote {
  0% { transform: translateY(0) rotate(-6deg); }
  100% { transform: translateY(-8px) rotate(6deg); }
}

.jar-base {
  width: 170px;
  height: 12px;
  margin: 0 auto;
  background: rgba(192, 132, 252, 0.25);
  border-radius: 0 0 10px 10px;
  border: 1px solid rgba(216, 180, 254, 0.35);
}

.jar-controls { margin-top: 24px; display: flex; gap: 12px; justify-content: center; }
.notes-tracker { margin-top: 18px; text-align: center; }
.tracker-status { font-size: 0.85rem; font-weight: 600; color: #f1f5f9; margin-bottom: 8px; }
.tracker-dots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 280px; margin: 0 auto; }
.tracker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(216, 180, 254, 0.2);
  border: 1px solid rgba(216, 180, 254, 0.4);
  transition: all 0.3s;
}

.tracker-dot.active {
  background: #c084fc;
  border-color: #c084fc;
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.8);
  transform: scale(1.2);
}

/* ─── ACTIVE NOTE CARD ─── */
.note-card-display { margin-top: 30px; }
.note-card {
  background: linear-gradient(160deg, #181128 0%, #100b1a 100%);
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 540px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
  border: 1.5px solid rgba(216, 180, 254, 0.3);
  position: relative;
  text-align: left;
}

.note-card-ribbon {
  position: absolute;
  top: -12px;
  left: 28px;
  background: linear-gradient(135deg, #c084fc, #7e22ce);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.4);
}

.note-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 12px;
  margin-top: 6px;
}

.note-card-text {
  font-size: 1rem;
  line-height: 1.75;
  color: #f1f5f9;
  margin-bottom: 20px;
}

.note-card-signature {
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  color: #c084fc;
  font-weight: 700;
}

.note-card-nav {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(216, 180, 254, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-arrow, .nav-random {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(216, 180, 254, 0.25);
  padding: 6px 14px;
  border-radius: 8px;
  color: #f1f5f9;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-arrow:hover, .nav-random:hover {
  background: rgba(192, 132, 252, 0.2);
  border-color: #c084fc;
  color: #ffffff;
}

/* ─── BIRTHDAY CAKE & CANDLE (INTERACTIVE 2.5D CANVAS) ─── */
.cake-section { padding: 80px 0; background: transparent; }
.cake-stage { margin-top: 36px; display: flex; flex-direction: column; align-items: center; }

.cake-canvas-wrapper {
  position: relative;
  width: 320px;
  height: 360px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 35%, #180d2c 0%, #08040f 100%);
  border: 1px solid rgba(192, 132, 252, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.cake-canvas-wrapper:active {
  transform: scale(0.99);
}

#cakeCanvas {
  width: 320px;
  height: 360px;
  display: block;
}

.cake-canvas-hint {
  position: absolute;
  bottom: 10px;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(216, 180, 254, 0.65);
  letter-spacing: 0.3px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cake-canvas-wrapper.is-blown .cake-canvas-hint {
  opacity: 0;
}

.cake-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.celebration-toast {
  margin-top: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  animation: toastSpringBloom 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes toastSpringBloom {
  0%   { opacity: 0; transform: translateY(30px) scale(0.92); }
  60%  { opacity: 1; transform: translateY(-4px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.toast-card {
  background: linear-gradient(160deg, #181128 0%, #100b1a 100%);
  padding: 30px 24px;
  border-radius: 20px;
  border: 1.5px solid rgba(216, 180, 254, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  color: #f1f5f9;
}
.toast-icon { font-size: 2rem; margin-bottom: 8px; }
.toast-title { font-family: 'Playfair Display', serif; font-size: 1.45rem; color: #ffffff; margin-bottom: 8px; }
.toast-message { font-size: 0.98rem; color: #cbd5e1; line-height: 1.65; margin-bottom: 12px; }
.toast-quote { font-family: 'Caveat', cursive; font-size: 1.3rem; color: #c084fc; font-weight: 700; }

/* ─── LLB ADVOCATE SECTION ─── */
.llb-section { padding: 80px 0; }
.llb-card {
  background: linear-gradient(155deg, #1c1332 0%, #0d0818 100%);
  border-radius: 28px;
  padding: 44px 32px;
  color: #f1f5f9;
  border: 1.5px solid rgba(216, 180, 254, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  position: relative;
  text-align: center;
}
.llb-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(192, 132, 252, 0.15);
  color: #f3e8ff;
  border: 1px solid rgba(216, 180, 254, 0.35);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.scales-svg { width: 68px; height: 68px; margin-bottom: 16px; }
.llb-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.3;
}
.llb-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #e9d5ff;
  max-width: 650px;
  margin: 0 auto 24px;
}
.llb-tribute-text {
  max-width: 680px;
  margin: 0 auto 30px;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #cbd5e1;
  text-align: left;
}
.llb-tribute-text p { margin-bottom: 14px; }
.llb-actions { position: relative; }
.cheer-emitter { position: absolute; inset: 0; pointer-events: none; overflow: visible; }

/* ─── FOOTER ─── */
.site-footer { padding: 60px 0 40px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.08); background: #08050e; }
.footer-heart { font-size: 1.8rem; margin-bottom: 8px; }
.footer-text { font-size: 1rem; color: #f1f5f9; margin-bottom: 4px; }
.footer-subtext { font-family: 'Caveat', cursive; font-size: 1.3rem; color: #c084fc; margin-bottom: 10px; }
.footer-date { font-size: 0.8rem; color: #94a3b8; letter-spacing: 0.05em; }

/* ─── RESPONSIVE & MOBILE OPTIMIZATION (Redmi A7 Pro / 360x800, 20:9, 120Hz) ─── */
@media (max-width: 768px) {
  /* Suppress all native browser desktop scrollbars for native app look & feel */
  html, body, * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* Prevent horizontal wobble / side scroll while keeping vertical scroll 100% free */
  html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
  }
  body {
    overflow-x: clip !important;
    overflow-y: visible !important;
    touch-action: pan-y !important;
    width: 100% !important;
    max-width: 100vw !important;
    -webkit-tap-highlight-color: transparent;
  }

  /* Clip ambient overflows */
  .ambient-glow {
    max-width: 100vw;
    overflow: hidden;
    pointer-events: none;
  }

  /* Sticky Navigation — Apple/Linear pitch black glass */
  .site-header {
    padding-top: max(30px, calc(env(safe-area-inset-top) + 10px));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-container {
    padding: 6px 14px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .nav-brand {
    gap: 8px;
    text-decoration: none;
    align-items: center;
    justify-content: center;
  }

  /* Clean luxury mobile brand title */
  .brand-text {
    font-family: var(--font-body) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
    letter-spacing: -0.01em;
  }

  .brand-heart {
    font-size: 1.25rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 24px 0 32px;
    text-align: center;
  }

  .hero-badge {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 6px 16px;
    color: #f3e8ff;
    background: linear-gradient(135deg, rgba(35, 20, 55, 0.8) 0%, rgba(18, 11, 30, 0.9) 100%);
    border: 1px solid rgba(216, 180, 254, 0.35);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    max-width: 90%;
    margin: 0 auto 14px;
    position: relative;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: 16px;
    color: #ffffff;
    text-shadow: none !important;
  }

  .hero-quote-card {
    position: relative;
    background: linear-gradient(160deg, rgba(29, 18, 46, 0.85) 0%, rgba(14, 9, 23, 0.95) 100%);
    border: 1px solid rgba(216, 180, 254, 0.28);
    border-radius: 20px;
    padding: 16px 22px;
    margin: 0 auto 22px;
    max-width: 94%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  }

  .hero-quote-card .hero-subtitle {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.68;
    color: #f8fafc;
    margin-bottom: 0;
    padding: 0 4px;
    font-style: italic;
    opacity: 1;
  }

  .quote-mark {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #c084fc;
    opacity: 0.6;
    line-height: 1;
    pointer-events: none;
  }
  .quote-mark.open-quote {
    top: -4px;
    left: 8px;
  }
  .quote-mark.close-quote {
    bottom: -16px;
    right: 10px;
  }

  /* Milestones: High-Craft Obsidian & Jeweled Lavender 2x2 Grid */
  .milestone-card {
    padding: 22px 14px 20px;
    margin: 24px auto 0;
    border-radius: 22px;
    background: linear-gradient(180deg, #181128 0%, #0e0918 100%);
    border: 1px solid rgba(216, 180, 254, 0.26);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  }

  .milestone-header {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-shadow: none !important;
  }

  .milestone-date-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    color: #d8b4fe;
    opacity: 0.85;
    margin-top: 3px;
    margin-bottom: 2px;
    letter-spacing: 0.03em;
    text-align: center;
  }

  .milestone-timer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 18px;
  }

  .timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px 12px;
    min-height: 86px;
    background: linear-gradient(165deg, #24173d 0%, #150d24 100%);
    border-radius: 16px;
    border: 1px solid rgba(216, 180, 254, 0.24);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    text-align: center;
  }

  .timer-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  }

  .unit-icon {
    font-size: 0.95rem;
    margin-bottom: 2px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  }

  .timer-num {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2px;
    display: block;
    background: linear-gradient(180deg, #ffffff 0%, #fdf4ff 45%, #e9d5ff 75%, #d8b4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .timer-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #c084fc;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    white-space: nowrap;
    text-shadow: none !important;
  }

  .timer-sep {
    display: none;
  }

  /* Spacious, decluttered actions */
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 18px !important;
    margin-top: 36px !important;
    margin-bottom: 32px !important;
    padding: 0 4px !important;
    position: relative;
    z-index: 5;
  }

  .hero-actions .btn-primary {
    width: 100% !important;
    min-height: 52px !important;
    margin-bottom: 16px !important;
    font-size: 0.98rem;
    padding: 14px 24px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c084fc 0%, #9333ea 50%, #7e22ce 100%);
    color: #ffffff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 18px rgba(147, 51, 234, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
  }

  .hero-actions .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    animation: btnShine 4s ease-in-out infinite;
  }

  @keyframes btnShine {
    0%, 65% { left: -100%; }
    100% { left: 200%; }
  }

  .hero-actions .btn-secondary {
    width: 100% !important;
    min-height: 50px !important;
    font-size: 0.95rem;
    padding: 13px 24px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    background: rgba(24, 16, 38, 0.9);
    color: #f8fafc;
    font-weight: 600;
    border: 1.5px solid rgba(216, 180, 254, 0.28);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  }

  /* Envelope & Letter on mobile */
  .letter-section {
    padding: 60px 0 70px;
  }

  .envelope-wrapper {
    margin: 30px auto 10px;
    max-width: 100%;
  }

  .envelope {
    width: 290px;
    height: 180px;
  }

  .envelope-flap {
    border-left-width: 145px;
    border-right-width: 145px;
    border-top-width: 100px;
  }

  .envelope-pocket-bottom {
    border-left-width: 145px;
    border-right-width: 145px;
    border-bottom-width: 100px;
  }

  .envelope-pocket-left {
    border-top-width: 90px;
    border-bottom-width: 90px;
    border-left-width: 145px;
  }

  .envelope-pocket-right {
    border-top-width: 90px;
    border-bottom-width: 90px;
    border-right-width: 145px;
  }

  .wax-seal {
    top: -115px;
    width: 44px;
    height: 44px;
  }

  .letter-peek {
    width: 86%;
    height: 115px;
  }

  .letter-paper {
    padding: 32px 18px 24px;
    border-radius: 16px;
    background: linear-gradient(165deg, #181228 0%, #100b1a 100%) !important;
    border: 1.5px solid rgba(216, 180, 254, 0.3) !important;
    color: #f1f5f9 !important;
  }

  .letter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .letter-meta {
    text-align: left;
  }

  .letter-recipient {
    color: #ffffff !important;
  }

  .letter-bengali {
    font-size: 1.02rem;
    padding: 12px 16px;
    line-height: 1.7;
    color: #fdf4ff !important;
    background: linear-gradient(135deg, rgba(38, 24, 60, 0.8) 0%, rgba(20, 13, 32, 0.9) 100%) !important;
    border-left: 3px solid #c084fc !important;
  }

  .letter-body p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #f1f5f9 !important;
  }

  .letter-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .letter-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  /* Polaroid Gallery on mobile */
  .gallery-section {
    padding: 60px 0 70px;
  }

  .polaroid-grid {
    grid-template-columns: 1fr;
    max-width: 310px;
    margin: 36px auto 0;
    gap: 28px;
    padding: 10px 4px 20px;
  }

  .polaroid-card {
    padding: 12px 12px 48px;
    background: #140f22 !important;
    border: 1.5px solid rgba(216, 180, 254, 0.25) !important;
    transform: rotate(0deg) !important;
  }

  .polaroid-card:hover,
  .polaroid-card:active {
    transform: scale(1.02) !important;
  }

  .caption-title {
    font-size: 1.05rem;
    color: #ffffff !important;
  }

  .caption-date {
    color: #c084fc !important;
  }

  /* Polaroid Modal on mobile */
  .modal-backdrop {
    padding: 12px;
  }

  .modal-card {
    border-radius: 16px;
    max-height: 88vh;
    overflow-y: auto;
    background: #130d20 !important;
    border: 1.5px solid rgba(216, 180, 254, 0.35) !important;
    color: #f1f5f9 !important;
  }

  .modal-content {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .modal-image-wrapper {
    height: 320px;
    border-radius: 16px 16px 0 0;
    background: #0a0614;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-details {
    padding: 20px 16px;
    gap: 12px;
  }

  .modal-title {
    font-size: 1.25rem;
    color: #ffffff !important;
  }

  .modal-story {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #cbd5e1 !important;
  }

  /* Jar of Love Section on mobile */
  .jar-section {
    padding: 60px 0 70px;
  }

  .jar-interactive-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-top: 36px;
  }

  /* Prevent 1fr min-content blowout: let grid/flex children shrink below
     their intrinsic width (buttons + note card were forcing 385px > 360px) */
  .jar-display,
  .note-card-display {
    min-width: 0;
    width: 100%;
  }

  .jar-controls {
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
  }

  .jar-controls .btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .note-card {
    max-width: 100%;
    width: 100%;
  }

  .note-card-inner,
  .note-card-nav {
    min-width: 0;
  }

  .note-card-nav {
    gap: 8px;
  }

  .nav-arrow,
  .nav-random {
    padding: 6px 10px;
    min-width: 0;
  }

  .glass-jar {
    width: 170px;
    margin: 0 auto;
  }

  .jar-body {
    width: 170px;
    height: 210px;
  }

  .note-card {
    padding: 28px 18px 20px;
    border-radius: 16px;
    background: linear-gradient(160deg, #181128 0%, #100b1a 100%) !important;
    border: 1.5px solid rgba(216, 180, 254, 0.3) !important;
    color: #f1f5f9 !important;
  }

  .note-card-title {
    font-size: 1.2rem;
    color: #ffffff !important;
  }

  .note-card-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #f1f5f9 !important;
  }

  .tracker-dots {
    max-width: 240px;
    gap: 5px;
  }

  .tracker-dot {
    width: 8px;
    height: 8px;
  }

  /* Cake Section on mobile */
  .cake-section {
    padding: 60px 0 70px;
  }

  .cake-container {
    width: 220px;
    height: 220px;
  }

  .tier-top {
    width: 130px;
    height: 60px;
  }

  .tier-bottom {
    width: 180px;
    height: 75px;
  }

  .cake-plate {
    width: 220px;
  }

  .cake-actions {
    flex-direction: column;
    width: 100%;
    max-width: 260px;
    margin: 28px auto 0;
    gap: 10px;
  }

  .cake-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .toast-card {
    padding: 22px 16px;
    border-radius: 16px;
    background: linear-gradient(160deg, #181128 0%, #100b1a 100%) !important;
    border: 1.5px solid rgba(216, 180, 254, 0.35) !important;
    color: #f1f5f9 !important;
  }

  .toast-title {
    font-size: 1.25rem;
    color: #ffffff !important;
  }

  .toast-message {
    font-size: 0.92rem;
    color: #cbd5e1 !important;
  }

  /* LLB Section on mobile */
  .llb-section {
    padding: 60px 0 70px;
  }

  .llb-card {
    padding: 32px 18px 28px;
    border-radius: 20px;
    background: linear-gradient(155deg, #1c1332 0%, #0d0818 100%) !important;
    border: 1.5px solid rgba(216, 180, 254, 0.35) !important;
    color: #f1f5f9 !important;
  }

  .llb-title {
    font-size: 1.5rem;
    color: #ffffff !important;
  }

  .llb-quote {
    font-size: 1rem;
    line-height: 1.6;
    color: #e9d5ff !important;
  }

  .llb-tribute-text {
    font-size: 0.92rem;
    line-height: 1.7;
    text-align: left;
    color: #cbd5e1 !important;
  }

  .llb-actions {
    width: 100%;
  }

  #sendLlbCheerBtn {
    width: 100%;
    min-height: 50px;
  }

  /* Footer */
  footer {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}

/* ============================================================
   PART CUTE — Wholesome Spring Micro-Interactions & Decor
   Motion + decoration only. Palette untouched:
   obsidian #000000 / #0a0710 + lilac #c084fc / #d9c2ef / #fdf4ff
   ============================================================ */

:root {
  --cute-spring:  cubic-bezier(.34, 1.56, .64, 1);
  --cute-soft:    cubic-bezier(.22, 1, .36, 1);
  --cute-tap:     .16s;
  --cute-pop:     .24s;
  --cute-ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ── 1. AMBIENT FAIRY-TALE NIGHT FIELD ───────────────────── */
.cute-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.cute-star,
.cute-heart {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  font-size: var(--sz, .7rem);
  line-height: 1;
  color: #d9c2ef;
  opacity: .15;
  user-select: none;
  will-change: transform, opacity;
  animation: cuteTwinkle var(--tw, 4.5s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.cute-heart {
  color: #c084fc;
  opacity: 0;
  animation-name: cuteDrift;
  animation-duration: var(--tw, 9s);
}

@keyframes cuteTwinkle {
  0%, 100% { opacity: .10; transform: scale(.7) rotate(0deg); }
  45%      { opacity: .80; transform: scale(1.18) rotate(14deg); }
  70%      { opacity: .45; transform: scale(.95) rotate(6deg); }
}

@keyframes cuteDrift {
  0%   { opacity: 0;   transform: translate3d(0, 0, 0) rotate(-8deg) scale(.7); }
  22%  { opacity: .55; }
  50%  { transform: translate3d(7px, -20px, 0) rotate(7deg) scale(1); }
  78%  { opacity: .30; }
  100% { opacity: 0;   transform: translate3d(-5px, -44px, 0) rotate(-5deg) scale(.8); }
}

/* ── 2. BUTTONS: SPRING PRESS & RUBBER-BAND POP ──────────── */
.btn {
  transition:
    transform var(--cute-pop) var(--cute-spring),
    box-shadow var(--dur-mid) var(--cute-soft),
    background var(--dur-mid) var(--cute-soft),
    border-color var(--dur-mid) var(--cute-soft);
}

.btn:hover {
  transform: translateY(-2px) scale(1.035);
}

.btn:hover .btn-icon {
  animation: cuteIconWiggle .5s var(--cute-spring) both;
}

.btn:active {
  transform: scale(.94) rotate(-.6deg) !important;
}

@keyframes cuteIconWiggle {
  0%   { transform: rotate(0deg) scale(1); }
  35%  { transform: rotate(-13deg) scale(1.14); }
  70%  { transform: rotate(9deg) scale(1.06); }
  100% { transform: rotate(0deg) scale(1); }
}

.btn-enter-site,
.wax-seal,
.glass-jar,
.nav-arrow,
.nav-random,
.modal-close,
.tracker-dot {
  transition-timing-function: var(--cute-spring);
}

.nav-arrow:hover,
.nav-random:hover {
  transform: translateY(-2px) scale(1.04);
}

.nav-arrow:active,
.nav-random:active {
  transform: scale(.93);
}

.btn-enter-site:hover {
  transform: translateY(-2px) scale(1.04);
}

/* ── 3. SECTION PILLS & KICKERS ──────────────────────────── */
.section-tag,
.hero-badge,
.present-top-badge {
  animation: cutePillBreathe 4.2s ease-in-out infinite alternate;
}

@keyframes cutePillBreathe {
  0%   { transform: translateY(0) scale(1); }
  100% { transform: translateY(-2px) scale(1.015); }
}

.section-tag::before {
  content: '✦';
  font-size: .72rem;
  color: #d9c2ef;
  margin-right: 2px;
  animation: cuteTwinkle 3.4s ease-in-out infinite;
}

/* ── 4. ENVELOPE: SEAL RIPPLE ────────────────────────────── */
.wax-seal::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(216, 180, 254, .45);
  pointer-events: none;
  animation: cuteSealRing 3s ease-out infinite;
}

.wax-seal:hover::after {
  animation-play-state: paused;
  opacity: 0;
}

@keyframes cuteSealRing {
  0%   { transform: scale(.92); opacity: 0; }
  35%  { opacity: .65; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ── 5. MILESTONE COUNTER CARDS: CUTE PILLS & SPARKLES ───── */
.milestone-card {
  position: relative;
  overflow: visible;
}

.milestone-sparkle {
  position: absolute;
  font-size: .78rem;
  color: #e9d5ff;
  pointer-events: none;
  opacity: .5;
  animation: cuteSparklePulse 3.2s ease-in-out infinite;
}

.ms-1 { top: 6px;    left: 10px;  animation-delay: 0s; }
.ms-2 { top: 14px;   right: 12px; animation-delay: .8s; }
.ms-3 { bottom: 10px; left: 16px; animation-delay: 1.5s; }
.ms-4 { bottom: 16px; right: 10px; animation-delay: 2.2s; }

@keyframes cuteSparklePulse {
  0%, 100% { opacity: .18; transform: scale(.7) rotate(0deg); }
  50%      { opacity: .95; transform: scale(1.2) rotate(18deg); }
}

.milestone-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

.milestone-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #f3e8ff;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(192, 132, 252, .14);
  border: 1px solid rgba(216, 180, 254, .32);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .12);
}

.timer-label {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(192, 132, 252, .14);
  border: 1px solid rgba(216, 180, 254, .28);
}

.timer-unit {
  transition: transform var(--cute-pop) var(--cute-spring), border-color var(--dur-mid) var(--cute-soft);
}

.timer-unit::after {
  content: '✦';
  position: absolute;
  top: 5px;
  right: 7px;
  font-size: .58rem;
  color: #e9d5ff;
  opacity: .35;
  pointer-events: none;
  animation: cuteSparklePulse 2.8s ease-in-out infinite;
}

.timer-unit:nth-child(1)::after { animation-delay: 0s; }
.timer-unit:nth-child(2)::after { animation-delay: .6s; }
.timer-unit:nth-child(3)::after { animation-delay: 1.2s; }
.timer-unit:nth-child(4)::after { animation-delay: 1.8s; }

@media (hover: hover) {
  .timer-unit:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(216, 180, 254, .45);
  }
}

/* ── 6. POLAROIDS: WASHI TEXTURE, TILT & MICRO-BADGES ────── */
.polaroid-card {
  transform-origin: 50% 60%;
}

.polaroid-card .washi-tape {
  height: 30px;
  width: 66px;
  border-radius: 3px;
  opacity: .92;
  transform: translateX(-50%) rotate(-3.5deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
  clip-path: polygon(2% 0, 98% 0, 100% 46%, 97% 100%, 3% 100%, 0 52%);
  transition: transform var(--cute-pop) var(--cute-spring);
}

.washi-blush {
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, 0) 45%),
    repeating-linear-gradient(45deg, #c084fc 0 4px, #e9d5ff 4px 8px);
}

.washi-gold {
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, 0) 45%),
    repeating-linear-gradient(45deg, #e9d5ff 0 4px, #f5d0fe 4px 8px);
}

.washi-rose {
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 45%),
    repeating-linear-gradient(45deg, #a855f7 0 4px, #c084fc 4px 8px);
}

.washi-cream {
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 45%),
    repeating-linear-gradient(45deg, #9333ea 0 4px, #7e22ce 4px 8px);
}

/* second, smaller snip of tape on the top-left lip */
.polaroid-card::after {
  content: '';
  position: absolute;
  top: -9px;
  left: 12px;
  width: 34px;
  height: 18px;
  border-radius: 2px;
  transform: rotate(-9deg);
  background: repeating-linear-gradient(45deg, rgba(216, 180, 254, .55) 0 3px, rgba(192, 132, 252, .28) 3px 6px);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .45);
  opacity: .85;
  pointer-events: none;
  z-index: 6;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
}

/* charming micro-badge sticker */
.polaroid-sticker {
  position: absolute;
  top: -11px;
  right: -8px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'Caveat', cursive;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1;
  color: #fdf4ff;
  padding: 4px 9px;
  border-radius: 6px;
  background: linear-gradient(160deg, #241a34 0%, #0f0a18 100%);
  border: 1px solid rgba(216, 180, 254, .45);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .65);
  transform: rotate(7deg);
  pointer-events: none;
  transition: transform var(--cute-pop) var(--cute-spring);
}

.polaroid-card:nth-child(even) .polaroid-sticker {
  transform: rotate(-6deg);
  right: auto;
  left: -8px;
}

@media (hover: hover) {
  .polaroid-card:hover {
    transform: rotate(-1.2deg) scale(1.06) translateY(-9px);
  }

  .polaroid-card:nth-child(even):hover {
    transform: rotate(1.2deg) scale(1.06) translateY(-9px);
  }

  .polaroid-card:hover .washi-tape {
    transform: translateX(-50%) rotate(1.5deg) scale(1.05);
  }

  .polaroid-card:hover .polaroid-sticker {
    transform: rotate(-2deg) scale(1.08);
  }
}

.polaroid-card:active {
  transform: rotate(0deg) scale(.98) !important;
}

.polaroid-overlay span {
  border-radius: 6px;
}

/* gallery corners twinkle */
.gallery-section,
.jar-section,
.cake-section {
  position: relative;
}

/* ── 7. JAR OF LOVE NOTES: CUTE CHROME & PULL WOBBLE ─────── */
.jar-sparkle,
.jar-heart-float {
  position: absolute;
  pointer-events: none;
  line-height: 1;
  opacity: .55;
  animation: cuteSparklePulse 3.4s ease-in-out infinite;
}

.jar-sparkle {
  font-size: .8rem;
  color: #e9d5ff;
}

.jar-heart-float {
  font-size: .82rem;
  color: #c084fc;
  animation: cuteHeartFlutter 4.4s ease-in-out infinite;
}

.js-1 { top: 12px;  left: -18px;  animation-delay: .2s; }
.js-2 { top: 54%;  right: -22px; animation-delay: 1.1s; }
.js-3 { bottom: 34px; left: -14px; animation-delay: 2.1s; }
.jh-1 { top: 26%; left: -26px; animation-delay: .5s; }
.jh-2 { bottom: 18%; right: -26px; animation-delay: 1.7s; }

@keyframes cuteHeartFlutter {
  0%, 100% { transform: translateY(0) rotate(-8deg) scale(.9); opacity: .30; }
  50%      { transform: translateY(-10px) rotate(8deg) scale(1.1); opacity: .85; }
}

.jar-cute-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: -10px;
  font-family: 'Caveat', cursive;
  font-size: .95rem;
  font-weight: 700;
  color: #f3e8ff;
  padding: 3px 14px;
  border-radius: 999px;
  background: rgba(192, 132, 252, .12);
  border: 1px dashed rgba(216, 180, 254, .38);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
}

.glass-jar.is-wobble {
  animation: cuteJarWobble .62s var(--cute-spring) both;
}

@keyframes cuteJarWobble {
  0%   { transform: translateY(-6px) scale(1.03) rotate(0deg); }
  30%  { transform: translateY(-4px) scale(1.02) rotate(-2.6deg); }
  55%  { transform: translateY(-5px) scale(1.025) rotate(2.2deg); }
  78%  { transform: translateY(-5px) scale(1.02) rotate(-1.1deg); }
  100% { transform: translateY(-6px) scale(1.03) rotate(0deg); }
}

.glass-jar.is-wobble .jar-slips .slip {
  animation-duration: 1.1s;
}

.jar-heart-puff {
  position: absolute;
  left: 50%;
  bottom: 30%;
  font-size: .95rem;
  color: #c084fc;
  pointer-events: none;
  z-index: 9;
  animation: cuteHeartPuff 1.1s ease-out forwards;
}

@keyframes cuteHeartPuff {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(.5); }
  25%  { opacity: .95; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--drift, 0px)), -72px) scale(1.15); }
}

/* ── 8. THE NOTE CARD: AFFECTIONATE UNFOLD & WOBBLE ──────── */
.note-card {
  transform-origin: 50% 0%;
  transition: box-shadow var(--dur-mid) var(--cute-soft), border-color var(--dur-mid) var(--cute-soft);
}

.note-card::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  border: 1px dashed rgba(216, 180, 254, .16);
  pointer-events: none;
}

.note-sticker {
  position: absolute;
  top: -13px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .92rem;
  border-radius: 50%;
  background: linear-gradient(160deg, #2a1c40 0%, #120a1e 100%);
  border: 1px solid rgba(216, 180, 254, .45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .7);
  transform: rotate(9deg);
  pointer-events: none;
  z-index: 4;
  animation: cuteStickerWiggle 5s ease-in-out infinite;
}

@keyframes cuteStickerWiggle {
  0%, 82%, 100% { transform: rotate(9deg) scale(1); }
  88%           { transform: rotate(-6deg) scale(1.08); }
  94%           { transform: rotate(12deg) scale(1.04); }
}

.note-card.is-pulling {
  animation: cuteNoteUnfold .7s var(--cute-spring) both;
}

.note-card.is-pulling::after {
  animation: cuteNoteEdgeGlow .7s ease-out both;
}

.note-card.is-pulling .note-card-inner {
  animation: cuteNoteInnerRise .55s .1s var(--cute-ease-out) both;
}

@keyframes cuteNoteUnfold {
  0%   { opacity: .4; transform: translateY(-22px) scale(.92) rotate(-1.8deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
  38%  { opacity: 1; transform: translateY(5px) scale(1.025) rotate(1.2deg); box-shadow: 0 26px 55px rgba(0, 0, 0, .9); }
  62%  { transform: translateY(-3px) scale(.996) rotate(-.6deg); }
  82%  { transform: translateY(1px) scale(1.004) rotate(.3deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes cuteNoteInnerRise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cuteNoteEdgeGlow {
  0%   { border-color: rgba(216, 180, 254, .16); }
  40%  { border-color: rgba(216, 180, 254, .55); }
  100% { border-color: rgba(216, 180, 254, .16); }
}

.note-card-signature {
  display: inline-block;
  transform: rotate(-1.4deg);
  padding: 1px 8px 3px;
  border-bottom: 1px dashed rgba(216, 180, 254, .35);
}

.tracker-dot.active {
  animation: cuteDotPop .45s var(--cute-spring) both;
}

@keyframes cuteDotPop {
  0%   { transform: scale(.6); }
  55%  { transform: scale(1.45); }
  100% { transform: scale(1.2); }
}

/* ── 9. CAKE, TOAST & LLB CARD SOFT LIFT ─────────────────── */
.cake-canvas-wrapper {
  transition: transform var(--cute-pop) var(--cute-spring), border-color .3s ease, box-shadow .3s ease;
}

@media (hover: hover) {
  .cake-canvas-wrapper:hover {
    transform: translateY(-3px) scale(1.006);
    border-color: rgba(192, 132, 252, .45);
  }
}

.cake-canvas-wrapper:active {
  transform: scale(.985);
}

.toast-card {
  position: relative;
  overflow: hidden;
}

.toast-card::before {
  content: '✦';
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: .8rem;
  color: #e9d5ff;
  opacity: .5;
  animation: cuteSparklePulse 3s ease-in-out infinite;
}

.llb-card-badge,
.modal-tag {
  border-radius: 999px;
}

@media (hover: hover) {
  .llb-card-badge:hover {
    transform: translateY(-1px) scale(1.03);
  }
}

.llb-card-badge {
  transition: transform var(--cute-pop) var(--cute-spring);
}

.footer-heart {
  animation: cuteFooterBeat 3.2s ease-in-out infinite;
}

@keyframes cuteFooterBeat {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  40%      { transform: scale(1.14) rotate(3deg); }
  70%      { transform: scale(1.04) rotate(-1deg); }
}

/* ── 10. DESKTOP CHROME (keeps declared obsidian/lilac system) ── */
@media (min-width: 769px) {
  /* Nav glass matches the obsidian + lilac palette on wide screens too */
  .site-header {
    background: rgba(0, 0, 0, .72);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 2px 24px rgba(0, 0, 0, .65);
  }

  .nav-container {
    padding: 1rem 1.25rem;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(192, 132, 252, .16);
    color: #fdf4ff;
    transform: translateY(-2px);
  }

  .hero-section {
    padding: 84px 0 56px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .76rem;
    font-weight: 600;
    padding: 6px 18px;
    color: #f3e8ff;
    background: linear-gradient(135deg, rgba(35, 20, 55, .85) 0%, rgba(18, 11, 30, .95) 100%);
    border: 1px solid rgba(216, 180, 254, .35);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .6), inset 0 1px 1px rgba(255, 255, 255, .15);
    margin-bottom: 20px;
    letter-spacing: .02em;
  }

  .hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.6rem, 4.6vw, 4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: #ffffff;
    margin-bottom: 22px;
  }

  .gradient-text {
    background: var(--grad-text-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fdf4ff;
  }

  .hero-quote-card {
    position: relative;
    max-width: 660px;
    margin: 0 auto 28px;
    padding: 22px 34px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(29, 18, 46, .9) 0%, rgba(14, 9, 23, .96) 100%);
    border: 1px solid rgba(216, 180, 254, .26);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .7), inset 0 1px 1px rgba(255, 255, 255, .1);
  }

  .hero-subtitle {
    font-size: 1.02rem;
    line-height: 1.72;
    font-style: italic;
    color: #f1f5f9;
  }

  .quote-mark {
    position: absolute;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.4rem;
    line-height: 1;
    color: #c084fc;
    opacity: .55;
    pointer-events: none;
  }

  .quote-mark.open-quote  { top: -6px; left: 12px; }
  .quote-mark.close-quote { bottom: -18px; right: 14px; }

  .milestone-card {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 26px 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, #181128 0%, #0e0918 100%);
    border: 1px solid rgba(216, 180, 254, .26);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .85), inset 0 1px 1px rgba(255, 255, 255, .1);
  }

  .milestone-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: #ffffff;
  }

  .milestone-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
  }

  .timer-unit {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px 14px;
    border-radius: 16px;
    background: linear-gradient(165deg, #24173d 0%, #150d24 100%);
    border: 1px solid rgba(216, 180, 254, .24);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .55), inset 0 1px 1px rgba(255, 255, 255, .12);
  }

  .unit-icon {
    font-size: 1rem;
    margin-bottom: 3px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5));
  }

  .timer-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 3px;
    background: linear-gradient(180deg, #ffffff 0%, #fdf4ff 45%, #e9d5ff 75%, #d8b4fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .timer-label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    color: #c084fc;
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
  }

  .timer-sep {
    display: none;
  }

  .hero-actions {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    gap: 14px;
  }
}

/* ── 11. MOBILE (Redmi A7 Pro · 360×800) TUNING ─────────── */
@media (max-width: 768px) {
  .polaroid-card:nth-child(odd) {
    transform: rotate(-1.2deg) !important;
  }

  .polaroid-card:nth-child(even) {
    transform: rotate(1.2deg) !important;
  }

  .polaroid-card:hover,
  .polaroid-card:active {
    transform: rotate(0deg) scale(1.015) !important;
  }

  .polaroid-sticker {
    font-size: .68rem;
    padding: 3px 7px;
    right: -4px;
    top: -9px;
  }

  .polaroid-card:nth-child(even) .polaroid-sticker {
    left: -4px;
  }

  .jar-cute-pill {
    font-size: .88rem;
    margin-top: -4px;
  }

  .milestone-pill {
    font-size: .62rem;
    padding: 3px 9px;
  }

  .timer-label {
    letter-spacing: .07em;
  }

  .note-sticker {
    width: 26px;
    height: 26px;
    font-size: .82rem;
    right: 10px;
  }

  .cute-star:nth-of-type(n+9),
  .cute-heart:nth-of-type(n+5) {
    display: none;
  }

  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(.95) rotate(-.4deg) !important;
  }
}

/* ── 12. ACCESSIBILITY: RESPECT REDUCED MOTION ──────────── */
@media (prefers-reduced-motion: reduce) {
  .cute-ambient,
  .cute-star,
  .cute-heart,
  .section-tag::before,
  .section-tag,
  .hero-badge,
  .present-top-badge,
  .milestone-sparkle,
  .timer-unit::after,
  .jar-sparkle,
  .jar-heart-float,
  .note-sticker,
  .toast-card::before,
  .footer-heart,
  .wax-seal::after,
  .btn:hover .btn-icon,
  .glass-jar.is-wobble,
  .glass-jar.is-wobble .jar-slips .slip,
  .note-card.is-pulling,
  .tracker-dot.active,
  .jar-heart-puff {
    animation: none !important;
  }

  .note-card.is-pulling .note-card-inner {
    animation: none !important;
  }

  .btn,
  .btn:hover,
  .timer-unit,
  .polaroid-card,
  .polaroid-card:hover,
  .cake-canvas-wrapper,
  .cake-canvas-wrapper:hover,
  .glass-jar,
  .glass-jar:hover {
    transition-duration: .001ms !important;
    transform: none !important;
  }
}

/* ============================================================
   PART DEVICE — Redmi A7 Pro tuning
   6.9" 720x1640 LCD @120Hz · 360x820 CSS px · DPR 2 · 20:9
   Goals: legibility floor, 44px touch targets, scroll-perf on a
   low-tier GPU, safe areas, and a swipeable gallery (saves ~2600px
   of vertical scroll on this aspect ratio).
   ============================================================ */
@media (max-width: 430px) {
  /* ── 0 · Device hygiene ─────────────────────────────────── */
  html {
    -webkit-text-size-adjust: 100%;   /* stop HyperOS font inflation */
    text-size-adjust: 100%;
  }

  body {
    /* A fixed-attachment gradient repaints the whole viewport on every
       scroll frame on Android — the single biggest jank source here. */
    background-attachment: scroll;
  }

  /* Permanent compositor layers cost GPU memory; only the gallery needs it */
  .polaroid-card,
  .cute-star,
  .cute-heart,
  .floating-hearts-bg .heart-particle {
    will-change: auto;
  }

  /* ── 1 · Chrome ─────────────────────────────────────────── */
  .site-header {
    padding-top: max(10px, env(safe-area-inset-top));
    /* Full-width backdrop blur re-blurs every scroll frame on Mali-class GPUs */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(6, 4, 12, 0.94);
  }

  .nav-container {
    padding: 2px 14px 4px;
    min-height: 44px;
  }

  .nav-brand {
    min-height: 44px;                 /* was 34px */
    padding: 0 2px;
  }

  /* ── 2 · Type floor: nothing below ~12px on a 720p panel ── */
  .hero-title {
    font-size: 1.7rem;                /* keeps "Happy Birthday! 🎂💖" on one line */
    text-wrap: balance;
  }

  .hero-title .hero-title-emoji {
    white-space: nowrap;              /* no orphaned emoji on its own line */
  }

  .hero-badge { font-size: .78rem; }
  .milestone-pill { font-size: .75rem; padding: 4px 10px; }
  .polaroid-sticker { font-size: .74rem; }
  .stamp-date { font-size: .72rem; }

  /* ── 3 · Touch targets ≥44px ────────────────────────────── */
  .modal-close {
    width: 44px;
    height: 44px;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
  }

  .nav-arrow,
  .nav-random {
    min-height: 44px;
    padding: 10px 12px;
    font-size: .82rem;
    white-space: nowrap;              /* "Prev / Surprise Me / Next" on one line */
  }

  .note-card-nav {
    gap: 6px;
  }

  /* ── 4 · Gallery: vertical stack → swipeable snap carousel ─ */
  .gallery-section .polaroid-grid {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: auto;
    max-width: none;
    margin: 24px calc(50% - 50vw) 0;
    padding: 26px 22px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 22px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .gallery-section .polaroid-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-section .polaroid-card {
    flex: 0 0 auto;
    width: min(82vw, 320px);
    margin: 0;
    scroll-snap-align: center;
  }

  /* One frame ratio for every card: a swipe deck with ragged card
     heights leaves dead space above the shortest photo. Full,
     uncropped originals stay available in the lightbox. */
  .gallery-section .polaroid-image-frame {
    aspect-ratio: 3 / 4;
  }

  .gallery-section .polaroid-img {
    object-position: 50% 18%;
  }

  /* ── 5 · Overlays respect the dynamic viewport ──────────── */
  @supports (height: 100dvh) {
    .modal-card { max-height: 88dvh; }
  }

  /* ── 6 · Offscreen sections ────────────────────────────── */
  #jar-section,
  #llb-section,
  .site-footer {
    contain: none;
  }

  /* ── 7 · Bottom safe area (gesture bar) ─────────────────── */
  .site-footer {
    padding-bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px));
  }
}
