/* ==========================================================================
   MONTHSARY GIFT WEBSITE - STYLESHEET
   Aesthetic: Romantic Vintage Scrapbook on Kraft Linen Desk
   Theme: Touch of Red (Wine Red, Crimson, Cream Parchment, Red Gingham)
   ========================================================================== */

:root {
  --color-desk: #ede4d8;
  --color-desk-dark: #dfd3c3;
  --color-wine: #560d18;
  --color-wine-dark: #3a060d;
  --color-crimson: #841825;
  --color-ruby: #ab2335;
  --color-rose: #d63851;
  --color-pink-soft: #f7d2d9;
  --color-cream: #fdfbf7;
  --color-parchment: #f8f2e6;
  --color-kraft: #ebdcc6;
  --color-gold: #d4af37;
  --color-gold-light: #f3e5ab;
  --color-gingham-red: #a32233;
  --shadow-desk-card: 0 18px 45px rgba(45, 10, 15, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-polaroid: 0 8px 24px rgba(40, 10, 15, 0.25), 0 2px 4px rgba(0,0,0,0.15);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-handwriting: 'Caveat', cursive;
  --font-script: 'Patrick Hand', cursive;
  --font-display: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  background-color: var(--color-desk);
  color: #333;
  overflow-x: hidden;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* Vintage Warm Linen / Kraft Desk Background (Prevents "nagpakain sa red") */
.vintage-desk-bg {
  background-color: #ede4d8;
  background-image: 
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.45) 0%, rgba(223, 211, 195, 0.7) 70%, rgba(195, 180, 160, 0.85) 100%),
    repeating-linear-gradient(45deg, rgba(200, 185, 168, 0.08) 0, rgba(200, 185, 168, 0.08) 2px, transparent 0, transparent 8px);
}

/* Ambient Particles Canvas (Floating Hearts & Sparkles) */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* Screen Management */
.screen-view {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: none !important;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.screen-view.active {
  display: flex !important;
  opacity: 1;
}

/* ==========================================================================
   SCREEN 1: THE ENVELOPE TEASER (Card Stage matching Reference 1 & 2)
   ========================================================================== */
#screen-intro {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  position: relative;
}

/* Top bar with audio button (Clean & away from content) */
.intro-top-bar {
  position: absolute;
  top: 20px;
  right: 28px;
  z-index: 20;
}

.desk-mute-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(86, 13, 24, 0.88);
  border: 1.5px solid var(--color-gold);
  color: var(--color-cream);
  padding: 8px 16px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  transition: var(--transition-smooth);
}

.desk-mute-btn:hover {
  background: var(--color-ruby);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(171, 35, 53, 0.4);
}

/* The Scrapbook Card Stage (Exact proportions & borders from Reference Slide 1) */
.scrapbook-card-stage {
  position: relative;
  max-width: 980px;
  width: 92%;
  min-height: 560px;
  background: radial-gradient(circle at 45% 45%, #660f1d 0%, #4a0812 75%, #34040a 100%);
  border-radius: 12px;
  box-shadow: var(--shadow-desk-card);
  padding: 50px 70px 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Intro Card Aesthetic Corner Stickers (Replacing torn paper) */
.intro-corner-sticker {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.intro-sticker-tl {
  top: 12px;
  left: 14px;
  gap: 6px;
}

.corner-sticker-daisy {
  width: 58px;
  height: auto;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.25));
  transform: rotate(-12deg);
}

.corner-sticker-berry {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: rotate(8deg);
}

.corner-sticker-sparkle {
  width: 28px;
  height: auto;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
  animation: pulseGold 2s ease-in-out infinite;
}

.intro-sticker-br {
  bottom: 12px;
  right: 14px;
  gap: 8px;
  z-index: 7;
}

.corner-sticker-teddy {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transform: rotate(-6deg);
}

.corner-sticker-rose {
  width: 62px;
  height: auto;
  filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.3));
  transform: rotate(14deg);
}

/* Gingham Picnic Blanket Borders (Right & Bottom matching reference) */
.gingham-border-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 58px;
  height: 100%;
  background-color: #f7edee;
  background-image: 
    linear-gradient(90deg, rgba(163, 34, 51, 0.5) 50%, transparent 50%),
    linear-gradient(rgba(163, 34, 51, 0.5) 50%, transparent 50%);
  background-size: 18px 18px;
  box-shadow: -3px 0 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 4;
}

.gingham-border-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32px;
  background-color: #f7edee;
  background-image: 
    linear-gradient(90deg, rgba(163, 34, 51, 0.5) 50%, transparent 50%),
    linear-gradient(rgba(163, 34, 51, 0.5) 50%, transparent 50%);
  background-size: 18px 18px;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 4;
}

/* Floating Balloons & Roses on Card */
.card-decor-balloons {
  position: absolute;
  top: 25px;
  right: 80px;
  width: 135px;
  z-index: 8;
  animation: floatBalloons 5s ease-in-out infinite alternate;
}

.balloons-sticker {
  width: 100%;
  border-radius: 16px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
}

.card-decor-roses {
  position: absolute;
  bottom: 40px;
  left: 30px;
  width: 160px;
  z-index: 8;
  animation: floatRoses 6s ease-in-out infinite alternate;
}

.roses-sticker {
  width: 100%;
  border-radius: 16px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

@keyframes floatBalloons {
  0% { transform: translateY(0px) rotate(1deg); }
  100% { transform: translateY(-12px) rotate(-3deg); }
}

@keyframes floatRoses {
  0% { transform: translateY(0px) rotate(-2deg); }
  100% { transform: translateY(-10px) rotate(2deg); }
}

/* Center Letter Content */
.intro-letter-card {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 580px;
  width: 100%;
  text-align: center;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-cream);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 4px;
}

.intro-subtitle {
  font-family: var(--font-handwriting);
  font-size: 2.4rem;
  color: var(--color-pink-soft);
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  margin-bottom: 16px;
}

/* Guilt Reaction Box */
.intro-guilt-box {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
  animation: popInGuilt 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.intro-guilt-box.show {
  display: flex;
}

.guilt-sticker-wrap {
  width: 130px;
  height: 130px;
  margin-bottom: 8px;
  animation: wobbleHeart 3s ease-in-out infinite;
}

.crying-heart-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4));
}

.guilt-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
  margin-bottom: 2px;
}

.guilt-subtitle {
  font-family: var(--font-handwriting);
  font-size: 2rem;
  color: var(--color-gold-light);
}

@keyframes popInGuilt {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes wobbleHeart {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

/* Envelope Visual Center */
.envelope-hero-wrap {
  position: relative;
  width: 280px;
  height: 195px;
  margin: 5px auto 25px auto;
  pointer-events: none; /* NON-CLICKABLE so only YES opens PIN! */
}

.envelope-glow-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 220px;
  background: radial-gradient(circle, rgba(247, 210, 217, 0.3) 0%, rgba(132, 24, 37, 0) 70%);
  border-radius: 50%;
}

.hero-envelope-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(20, 2, 5, 0.6));
}

.wax-seal-center {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
}

.wax-seal-asset {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
}

.pulse-seal {
  animation: sealPulse 2.5s infinite;
}

@keyframes sealPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Buttons Row */
.intro-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: relative;
  min-height: 60px;
  width: 100%;
}

.vintage-btn {
  position: relative;
  padding: 12px 40px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  outline: none;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
}

.btn-yes {
  background: linear-gradient(135deg, #fff7eb 0%, #ebd7be 100%);
  color: var(--color-wine);
  border: 2px solid var(--color-gold);
}

.btn-yes:hover {
  transform: scale(1.08);
  background: #ffffff;
  color: var(--color-ruby);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.55);
}

.pulse-btn {
  animation: pulseYesBtn 2.2s infinite;
}

@keyframes pulseYesBtn {
  0%, 100% { box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 8px 24px rgba(212, 175, 55, 0.7); }
}

.btn-no-wrapper {
  position: relative;
}

.btn-no {
  background: rgba(255, 255, 255, 0.9);
  color: #444;
  border: 1.5px solid #bbb;
}

.btn-no.crossed-out {
  opacity: 0.75;
}

.btn-slash-line {
  display: none;
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: #e63946;
  transform: rotate(-18deg);
  border-radius: 4px;
}

.btn-no.crossed-out .btn-slash-line {
  display: block;
}

.arrow-to-yes {
  display: none;
  position: absolute;
  top: -28px;
  left: 100%;
  width: 85px;
  height: 45px;
  pointer-events: none;
  z-index: 10;
}

.arrow-to-yes.show {
  display: block;
}

.curved-arrow-svg {
  width: 100%;
  height: 100%;
}

.intro-footer-hint {
  margin-top: 24px;
  font-family: var(--font-handwriting);
  font-size: 1.3rem;
  color: var(--color-pink-soft);
  opacity: 0.85;
}

/* ==========================================================================
   SCREEN 2: VINTAGE RED PADLOCK / SAFE
   ========================================================================== */
#screen-pin {
  justify-content: center;
  align-items: center;
  padding: 30px 15px;
  background: rgba(45, 10, 15, 0.55);
}

.pin-modal-backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(5px);
}

.vintage-padlock-card {
  position: relative;
  z-index: 10;
  max-width: 430px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: dropInPadlock 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes dropInPadlock {
  0% { transform: translateY(-40px) scale(0.92); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.padlock-shackle-wrap {
  position: relative;
  width: 170px;
  height: 110px;
  margin-bottom: -32px;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brass-shackle {
  width: 100%;
  height: 100%;
  border: 22px solid var(--color-gold);
  border-bottom: none;
  border-top-left-radius: 85px;
  border-top-right-radius: 85px;
  box-shadow: 
    inset 0 4px 8px rgba(255, 255, 255, 0.5),
    inset 0 -4px 8px rgba(0, 0, 0, 0.6),
    0 8px 18px rgba(0, 0, 0, 0.5);
}

.padlock-shackle-wrap.unlocked {
  transform: translateY(-38px) rotate(-15deg);
}

.padlock-body {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(145deg, #7c1421 0%, #520b15 50%, #3d050d 100%);
  border: 4px solid var(--color-gold);
  border-radius: 26px;
  padding: 32px 26px 26px 26px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.65);
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.padlock-emboss-rim {
  position: absolute;
  inset: 7px;
  border: 1.5px dashed rgba(212, 175, 55, 0.4);
  border-radius: 18px;
  pointer-events: none;
}

.pin-corner-stamp {
  position: absolute;
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.6;
  pointer-events: none;
}
.stamp-tl { top: 12px; left: 12px; transform: rotate(-10deg); }
.stamp-br { bottom: 12px; right: 12px; transform: rotate(12deg); }

.pin-decor-sparkle {
  position: absolute;
  top: 15px;
  right: 18px;
  width: 32px;
  pointer-events: none;
}

.pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--color-gold);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.badge-text {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--color-gold-light);
  font-weight: 700;
}

.pin-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-cream);
  margin-bottom: 4px;
}

.pin-hint-sub {
  font-size: 0.88rem;
  color: var(--color-pink-soft);
  margin-bottom: 18px;
  line-height: 1.4;
}

.hint-date-format {
  font-family: var(--font-handwriting);
  font-size: 1.25rem;
  color: var(--color-gold-light);
  font-weight: 700;
}

.pin-slots-display {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pin-slot {
  width: 42px;
  height: 50px;
  background: #230408;
  border: 2px solid var(--color-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-slot.filled {
  border-color: #ff99aa;
  background: #3c0910;
  box-shadow: 0 0 10px rgba(255, 100, 130, 0.5);
}

.pin-slot .pin-dot {
  font-size: 1.3rem;
  color: var(--color-gold-light);
}

.pin-feedback {
  min-height: 22px;
  font-size: 0.85rem;
  color: var(--color-pink-soft);
  margin-bottom: 16px;
}

.pin-feedback.error {
  color: #ffb3b8;
}

.pin-feedback.success {
  color: #a8ffb2;
}

.vintage-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 300px;
  margin: 0 auto;
}

.key-btn {
  aspect-ratio: 1.1;
  background: radial-gradient(circle at 35% 35%, #8f1928 0%, #580c16 80%, #3d050d 100%);
  border: 2px solid var(--color-gold);
  border-radius: 12px;
  color: var(--color-cream);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.12s ease;
}

.key-btn:hover {
  transform: translateY(-2px);
  border-color: #ffe699;
}

.key-btn:active {
  transform: translateY(2px);
}

.key-btn.key-action {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold-light);
}

.btn-need-hint {
  background: none;
  border: none;
  color: var(--color-pink-soft);
  font-family: var(--font-handwriting);
  font-size: 1.25rem;
  cursor: pointer;
  text-decoration: underline dotted;
  margin-top: 14px;
}

.vintage-padlock-card.shake {
  animation: shakePadlock 0.5s ease both;
}

@keyframes shakePadlock {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ==========================================================================
   SCREEN 3: THE MAIN SCRAPBOOK EXPERIENCE
   ========================================================================== */
#screen-scrapbook {
  flex-direction: column;
  background: transparent;
  min-height: 100vh;
}

/* Scrapbook Nav Header */
.scrapbook-nav-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: linear-gradient(180deg, rgba(82, 11, 21, 0.98) 0%, rgba(54, 7, 13, 0.95) 100%);
  border-bottom: 2px solid var(--color-gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  gap: 14px;
}

.scrapbook-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-cream);
  font-weight: 700;
}

.brand-dates {
  font-family: var(--font-handwriting);
  font-size: 1.1rem;
  color: var(--color-pink-soft);
}

.scrapbook-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-ribbon {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--color-cream);
  padding: 8px 15px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-ribbon:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--color-gold);
}

.tab-ribbon.active {
  background: linear-gradient(135deg, #ab2335 0%, #680d19 100%);
  border-color: var(--color-gold);
  color: #fff;
  box-shadow: 0 4px 12px rgba(171, 35, 53, 0.45);
}

/* Header Audio Button (Integrated cleanly without overlapping!) */
.header-audio-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.header-audio-btn:hover {
  background: var(--color-ruby);
  color: #fff;
}

.music-mini-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.music-mini-wave i {
  width: 2.5px;
  height: 100%;
  background: var(--color-gold);
  border-radius: 2px;
  animation: waveBar 1s infinite alternate;
}
.music-mini-wave i:nth-child(2) { animation-delay: 0.2s; }
.music-mini-wave i:nth-child(3) { animation-delay: 0.4s; }

@keyframes waveBar {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* Scrapbook Viewport (Framed nicely on the desk) */
.scrapbook-viewport {
  flex: 1;
  position: relative;
  max-width: 1160px;
  width: 95%;
  margin: 30px auto;
  background: radial-gradient(circle at 50% 30%, #580c17 0%, #3e060f 80%, #290308 100%);
  border-radius: 16px;
  box-shadow: var(--shadow-desk-card);
  padding: 35px 30px 45px 30px;
  border: 2px solid var(--color-gold);
  overflow: hidden;
}

.scrapbook-tab-page {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.scrapbook-tab-page.active {
  display: block;
  opacity: 1;
  animation: fadeInTab 0.45s ease forwards;
}

@keyframes fadeInTab {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TAB 1: LOVE LETTER
   ========================================================================== */
.letter-page-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.parchment-letter-wrapper {
  position: relative;
}

.washi-tape-strip {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 32px;
  z-index: 10;
  pointer-events: none;
}

.washi-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.parchment-sheet {
  position: relative;
  background: var(--color-cream);
  color: #3b1d1f;
  padding: 40px 34px 32px 34px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid #ebd9c5;
  background-image: 
    radial-gradient(#ebd9c5 1px, transparent 1px),
    radial-gradient(#ebd9c5 1px, var(--color-cream) 1px);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
}

.letter-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px dashed #d5beaa;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-family: var(--font-handwriting);
  font-size: 1.3rem;
  color: #8c3b48;
}

.letter-heading {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-wine);
  margin-bottom: 18px;
}

.letter-body-text {
  font-family: var(--font-script);
  font-size: 1.3rem;
  line-height: 1.65;
  color: #36171b;
}

.letter-body-text p {
  margin-bottom: 16px;
}

.letter-sign-off {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}

.sign-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: #664147;
}

.sign-handwritten {
  font-family: var(--font-handwriting);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-ruby);
}

.letter-wax-seal {
  position: absolute;
  bottom: 25px;
  right: 28px;
  width: 70px;
  height: 70px;
}

.letter-seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.letter-cta-wrapper {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1.5px dashed #d5beaa;
}

.btn-scrapbook-cta {
  background: var(--color-wine);
  color: #fff;
  border: 1.5px solid var(--color-gold);
  padding: 10px 22px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-scrapbook-cta:hover {
  background: var(--color-ruby);
  transform: translateX(4px);
}

/* ==========================================================================
   LEFT COLUMN SCRAPBOOK KEEPSAKES (Rich Vintage Romantic Design)
   ========================================================================== */
.letter-left-column {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.letter-keepsakes-showcase {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 6px;
}

/* --- 1. Vintage LDR Boarding Pass --- */
.ldr-boarding-pass {
  position: relative;
  display: flex;
  background: linear-gradient(135deg, #fdfbf7 0%, #f6edd9 100%);
  border: 1.5px solid var(--color-gold);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  color: #2b1114;
  overflow: visible;
  transition: transform 0.3s ease;
}

.ldr-boarding-pass:hover {
  transform: translateY(-3px);
}

.boarding-washi-tape {
  position: absolute;
  top: -12px;
  left: 36px;
  width: 90px;
  height: 26px;
  z-index: 10;
  pointer-events: none;
}

.boarding-washi-tape img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.boarding-pass-main {
  flex: 1;
  padding: 16px 20px 14px 20px;
  border-right: 2px dashed #caa267;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.boarding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.4);
  padding-bottom: 6px;
}

.boarding-airline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--color-wine);
}

.boarding-class {
  font-family: monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-gold);
  background: #3c0910;
  padding: 2px 8px;
  border-radius: 4px;
}

.boarding-body-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
}

.boarding-field {
  display: flex;
  flex-direction: column;
}

.field-lbl {
  font-size: 0.62rem;
  letter-spacing: 1px;
  font-weight: 700;
  color: #8c5d64;
  margin-bottom: 2px;
}

.field-val {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: #2b1114;
}

.field-val.highlight-gold {
  color: var(--color-wine);
  font-family: monospace;
  letter-spacing: 0.5px;
}

.boarding-quote {
  font-family: var(--font-handwriting);
  font-size: 1.05rem;
  font-weight: 700;
  color: #832738;
  border-top: 1px dashed #d5beaa;
  padding-top: 8px;
  font-style: italic;
}

/* Boarding Pass Tear-off Stub */
.boarding-pass-stub {
  position: relative;
  width: 110px;
  background: #f4e8d0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px 8px;
  text-align: center;
}

.stub-notch-top,
.stub-notch-bottom {
  position: absolute;
  left: -8px;
  width: 14px;
  height: 14px;
  background: var(--color-desk-dark, #2b0409);
  border-radius: 50%;
  z-index: 5;
}

.stub-notch-top { top: -7px; }
.stub-notch-bottom { bottom: -7px; }

.stub-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stub-tag {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #664147;
}

.stub-date {
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-wine);
}

.stub-seat {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  color: #b92036;
}

.stub-stamp-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin: 2px 0;
  transform: rotate(-6deg);
}

.stub-barcode {
  font-family: monospace;
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  color: #555;
}

/* --- 2. Sub Row: Love Store Receipt & Pinned Note --- */
.keepsakes-sub-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

/* Vintage Love Receipt */
.love-receipt-card {
  position: relative;
  background: #faf6ee;
  color: #291215;
  font-family: monospace;
  padding: 22px 16px 16px 16px;
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 1px dashed #d5beaa;
  font-size: 0.78rem;
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

.love-receipt-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.receipt-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 22px;
  pointer-events: none;
}

.receipt-tape img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.receipt-header {
  text-align: center;
  margin-bottom: 8px;
}

.receipt-icon {
  font-size: 1.2rem;
  display: block;
}

.receipt-header h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-wine);
  margin: 3px 0 2px 0;
}

.receipt-sub {
  font-size: 0.65rem;
  color: #777;
}

.receipt-divider {
  color: #bbb;
  overflow: hidden;
  font-size: 0.68rem;
  letter-spacing: -1px;
  margin: 4px 0;
}

.receipt-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
}

.receipt-line.highlight {
  font-weight: 700;
  color: var(--color-wine);
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--color-ruby);
  padding: 6px 0;
}

.receipt-footer {
  text-align: center;
  margin-top: 8px;
}

.receipt-approved {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  color: #b92036;
  border: 1.5px solid #b92036;
  padding: 2px 6px;
  border-radius: 4px;
  transform: rotate(-3deg);
  margin-bottom: 6px;
}

.receipt-barcode {
  letter-spacing: 2.5px;
  font-size: 0.68rem;
  color: #444;
}

.receipt-thanks {
  font-family: var(--font-handwriting);
  font-size: 0.95rem;
  font-weight: 700;
  color: #8c3b48;
  margin-top: 4px;
}

/* Keepsake Sticky Note & Stickers Tray */
.keepsake-sticky-cluster {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vintage-sticky-note {
  position: relative;
  background: #fff9d9;
  color: #3d2314;
  padding: 20px 16px 14px 16px;
  border-radius: 2px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: rotate(2deg);
  border-left: 4px solid #ebd068;
  transition: transform 0.3s ease;
}

.vintage-sticky-note:hover {
  transform: rotate(0deg) scale(1.02);
}

.sticky-pushpin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.sticky-title {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: #8a571e;
  margin-bottom: 6px;
}

.sticky-text {
  font-family: var(--font-handwriting);
  font-size: 1.15rem;
  line-height: 1.35;
  color: #3b1d1f;
  margin-bottom: 8px;
}

.sticky-signature {
  display: block;
  text-align: right;
  font-family: var(--font-handwriting);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-wine);
}

.keepsake-stickers-tray {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background: rgba(20, 2, 5, 0.55);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
}

.tray-sticker {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.tray-sticker:hover {
  transform: scale(1.22) rotate(6deg);
}

/* Sidebar Polaroids */
.letter-sidebar-collage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 5px;
}

.polaroid-frame {
  position: relative;
  background: #ffffff;
  padding: 12px 12px 18px 12px;
  border-radius: 2px;
  box-shadow: var(--shadow-polaroid);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.polaroid-frame:hover {
  transform: translateY(-5px) scale(1.02) !important;
  z-index: 15;
}

.polaroid-rot-1 { transform: rotate(2.5deg); }
.polaroid-rot-2 { transform: rotate(-2.5deg); }

/* Portrait format for vertical alignment */
.polaroid-portrait .polaroid-inner {
  aspect-ratio: 4/3;
  width: 100%;
  background: #f4ecdc;
  border: 1.5px dashed #c8b79f;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #8c735d;
  pointer-events: none;
}

.photo-icon { font-size: 1.8rem; }
.photo-hint { font-weight: 600; font-size: 0.9rem; }
.photo-subhint { font-size: 0.75rem; opacity: 0.8; }

.user-uploaded-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  border-radius: 2px;
  display: block;
}

.user-uploaded-img:not([src]),
.user-uploaded-img[src=""] {
  display: none;
}

.user-uploaded-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  border-radius: 2px;
  background: #000;
}

.uploadable-frame.has-loaded-photo .photo-placeholder-content,
.uploadable-frame.has-loaded-photo .empty-state,
.uploadable-frame.has-loaded-photo .film-photo-slot span:not(.user-uploaded-img) {
  display: none !important;
}

.hidden-photo-input { display: none; }

.polaroid-caption {
  font-family: var(--font-handwriting);
  font-size: 1.4rem;
  color: #3b171c;
  text-align: center;
  margin-top: 8px;
}

.decor-sparkle-mini {
  position: absolute;
  top: -10px;
  right: -8px;
  width: 28px;
  pointer-events: none;
}

.decor-cherry-mini {
  position: absolute;
  bottom: -12px;
  left: -10px;
  width: 38px;
  pointer-events: none;
}

/* ==========================================================================
   VERTICAL FILMSTRIP PULLOUT (Matches Slide 5 Exactly & Perfectly Enclosed)
   ========================================================================== */
.vertical-filmstrip-container {
  position: relative;
  width: 255px;
  height: 480px;
  margin: 15px auto 0 auto;
  overflow: visible; /* Prevents top clipping on pull-up */
  border-radius: 6px;
}

/* The vertical filmstrip that slides UP from inside the red envelope */
.vertical-filmstrip {
  position: absolute;
  bottom: 48px; /* Positioned so Photo 1 is 100% visible above envelope flap */
  left: 50%;
  transform: translateX(-50%) translateY(0); /* Resting neatly inside envelope */
  width: 160px;
  background: #111;
  border: 3px solid #282828;
  border-radius: 6px;
  padding: 10px 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.75);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 4;
  cursor: pointer;
}

.vertical-filmstrip-container:hover .vertical-filmstrip,
.vertical-filmstrip.pulled-up {
  transform: translateX(-50%) translateY(-130px); /* Glides up cleanly without clipping top */
}

.filmstrip-header-dots {
  font-family: monospace;
  font-size: 0.65rem;
  color: #ff9999;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 8px;
}

.vertical-film-cells {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Vertical / Portrait film cell */
.v-film-cell {
  position: relative;
  width: 100%;
  height: 110px;
  background: #202020;
  border: 1.5px dashed #555;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.film-photo-slot {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.75rem;
}

.filmstrip-pull-label {
  text-align: center;
  font-family: monospace;
  font-size: 0.68rem;
  color: var(--color-gold);
  margin-top: 6px;
  font-weight: 700;
}

/* Deep Red Envelope Pocket (Asset 35.png) sitting firmly in front */
.v-pocket-box {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 245px;
  height: 210px;
  z-index: 8;
  cursor: pointer;
}

.v-pocket-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.7));
}

.v-pocket-tag {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #fbf7ee;
  color: var(--color-wine);
  font-family: var(--font-handwriting);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 3px 18px;
  border-radius: 14px;
  border: 1.5px dashed var(--color-crimson);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

/* Stickers */
.decor-sticker {
  position: absolute;
  pointer-events: none;
}
.camera-sticker { top: -15px; right: 10px; width: 55px; }
.cassette-sticker { bottom: 60px; left: -15px; width: 65px; }
.silver-heart-sticker { bottom: 100px; right: -10px; width: 50px; }

/* ==========================================================================
   TAB 2: OUR MEMORIES (LDR Scrapbook Grid)
   ========================================================================== */
.memories-header-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  text-align: center;
}

.banner-ribbon-left, .banner-ribbon-right { width: 50px; height: 30px; object-fit: contain; }

.memories-main-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-cream);
  font-weight: 700;
}

.memories-subtitle {
  font-family: var(--font-handwriting);
  font-size: 1.35rem;
  color: var(--color-pink-soft);
}

.scrapbook-board {
  position: relative;
  background: radial-gradient(circle at center, #550d18 0%, #36050e 100%);
  border: 2px solid var(--color-gold);
  border-radius: 14px;
  padding: 35px 25px;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
  overflow: hidden;
}

/* Board Corner Cute Stickers (No torn paper) */
.board-corner-stickers {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.board-stickers-tl {
  top: 14px;
  left: 14px;
}

.board-stickers-br {
  bottom: 14px;
  right: 14px;
}

.board-sticker-item {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  filter: drop-shadow(1px 2px 4px rgba(0, 0, 0, 0.3));
}

.scrapbook-cluster.cluster-stamps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stamp-item {
  width: 55px;
  height: 55px;
  object-fit: contain;
}
.stamp-1 { transform: rotate(-5deg); }
.stamp-2 { transform: rotate(4deg); }
.stamp-3 { transform: rotate(-3deg); }

.ldr-stamp-tag {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--color-gold);
  color: var(--color-gold-light);
  font-family: var(--font-display);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  position: relative;
  z-index: 5;
}

.memory-scrap-card {
  position: relative;
  background: #fffefb;
  border-radius: 3px;
  padding: 14px 14px 18px 14px;
  box-shadow: var(--shadow-polaroid);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.memory-scrap-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  z-index: 10;
}

.card-rot-left { transform: rotate(-2deg); }
.card-rot-right { transform: rotate(2deg); }
.card-rot-center { transform: rotate(0.5deg); }

.tape-corner {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  z-index: 8;
  pointer-events: none;
}
.tape-corner img { width: 100%; height: 100%; object-fit: contain; }

.scrap-photo-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #f6efe1;
  border: 1.5px dashed #cebd9f;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #795e46;
  text-align: center;
  pointer-events: none;
  padding: 8px;
}

.cam-icon { font-size: 1.8rem; }
.empty-title { font-weight: 700; font-size: 0.92rem; color: #4e3520; }
.empty-sub { font-size: 0.75rem; opacity: 0.85; }

.scrap-caption {
  font-family: var(--font-handwriting);
  font-size: 1.35rem;
  color: #3f191f;
  text-align: center;
  margin-top: 10px;
}

.board-sticker {
  position: absolute;
  z-index: 6;
  pointer-events: none;
}
.sticker-teddy { bottom: 20px; right: 20px; width: 100px; transform: rotate(-6deg); }
.sticker-strawberries { top: 20px; right: 25px; width: 95px; transform: rotate(8deg); }
.sticker-silver { bottom: 25px; left: 25px; width: 70px; transform: rotate(12deg); }
.sticker-cam2 { top: 40%; right: -10px; width: 65px; }
.sticker-lace-heart { top: 30%; left: -10px; width: 70px; }

.memories-tip-box {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed var(--color-gold);
  border-radius: 8px;
  padding: 10px 18px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-gold-light);
}

/* ==========================================================================
   TAB 3: MUSIC PLAYER (Spinning Vinyl)
   ========================================================================== */
.music-header-title { text-align: center; margin-bottom: 25px; }

.music-badge {
  display: inline-block;
  background: var(--color-crimson);
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold);
  padding: 3px 12px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 6px;
}

.music-title-text {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--color-cream);
  font-weight: 700;
}

.music-subtitle {
  font-family: var(--font-handwriting);
  font-size: 1.35rem;
  color: var(--color-pink-soft);
}

.music-player-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  background: radial-gradient(circle at center, #630c1a 0%, #3b050d 100%);
  border: 2px solid var(--color-gold);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.music-playlist-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}

.song-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 3, 6, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
  box-sizing: border-box;
}

.song-card:hover {
  background: rgba(45, 6, 12, 0.85);
  border-color: var(--color-gold);
  transform: translateX(4px);
}

.song-card.active {
  background: linear-gradient(90deg, rgba(166, 32, 53, 0.75) 0%, rgba(82, 11, 21, 0.8) 100%);
  border-color: var(--color-gold);
}

.song-card-cover {
  position: relative;
  width: 42px;
  height: 42px;
  background: #2a050a;
  border-radius: 6px;
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.equalizer-bars {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding-bottom: 6px;
}

.song-card.active .equalizer-bars { display: flex; }

.equalizer-bars span {
  width: 2.5px;
  background: var(--color-gold-light);
  border-radius: 2px;
  animation: eqBar 0.8s infinite alternate ease-in-out;
}
.equalizer-bars span:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.equalizer-bars span:nth-child(2) { height: 95%; animation-delay: 0.3s; }
.equalizer-bars span:nth-child(3) { height: 45%; animation-delay: 0.2s; }

@keyframes eqBar { 0% { height: 20%; } 100% { height: 95%; } }

.song-card-info {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.song-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  word-break: break-word;
}

.song-artist {
  font-size: 0.8rem;
  color: var(--color-pink-soft);
  margin-bottom: 2px;
  word-break: break-word;
}

.song-note {
  display: block;
  font-family: var(--font-handwriting);
  font-size: 1rem;
  color: var(--color-gold-light);
  line-height: 1.25;
  word-break: break-word;
  white-space: normal;
}

.btn-play-mini {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--color-gold);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  transition: var(--transition-smooth);
}

.playlist-stickers-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.mini-sticker {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
}

/* Turntable */
.turntable-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.turntable-lace-bg {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 2px dashed rgba(212, 175, 55, 0.3);
  pointer-events: none;
}

.turntable-flower-tl {
  position: absolute;
  top: -15px;
  left: 0;
  width: 85px;
  z-index: 10;
  pointer-events: none;
}

.turntable-flower-br {
  position: absolute;
  bottom: 75px;
  right: -10px;
  width: 90px;
  z-index: 5;
  pointer-events: none;
}

.turntable-platter-box {
  position: relative;
  width: 290px;
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-outer-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.vinyl-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transform-origin: 50% 50%;
}

.vinyl-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.vinyl-disc.playing {
  animation: spinVinyl 3.5s linear infinite !important;
  transform-origin: 50% 50% !important;
  transition: none !important;
  will-change: transform;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-groove-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, transparent 38%, rgba(255,255,255,0.05) 40%, transparent 42%, rgba(255,255,255,0.07) 65%, transparent 68%);
  z-index: 6;
}

.vinyl-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, #b92036 0%, #6f0e1c 80%, #3e050c 100%);
  border: 2.5px solid var(--color-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
}

.vinyl-center-title {
  font-family: var(--font-handwriting);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1.1;
  padding: 0 4px;
}

.vinyl-center-date {
  font-family: monospace;
  font-size: 0.6rem;
  color: var(--color-gold-light);
}

/* Tonearm */
.tonearm-assembly {
  position: absolute;
  top: -10px;
  right: -15px;
  width: 90px;
  height: 180px;
  z-index: 15;
  pointer-events: none;
  transform-origin: 75px 20px;
  transform: rotate(-25deg);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tonearm-assembly.on-record {
  transform: rotate(14deg);
}

.tonearm-base-pivot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: radial-gradient(circle, #f1e0a8 0%, #b8860b 80%);
  border: 2px solid #333;
  border-radius: 50%;
}

.tonearm-arm-rod {
  position: absolute;
  top: 25px;
  right: 24px;
  width: 5px;
  height: 135px;
  background: linear-gradient(90deg, #dfc06b 0%, #fff2b3 50%, #99731d 100%);
}

.tonearm-cartridge {
  position: absolute;
  bottom: 12px;
  right: 14px;
  width: 18px;
  height: 28px;
  background: #111;
  border: 1px solid var(--color-gold);
}

.needle-point {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 5px;
  background: #ff4d4d;
}

/* Controls Bar */
.turntable-controls-bar {
  position: relative;
  z-index: 15;
  width: 100%;
  max-width: 320px;
  margin-top: 20px;
  background: rgba(20, 2, 5, 0.9);
  border: 1px solid var(--color-gold);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.now-label {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--color-gold);
  font-weight: 700;
  display: block;
}

.now-song-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--color-pink-soft);
}

.progress-track {
  flex: 1;
  height: 5px;
  background: #33050a;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-rose) 0%, var(--color-gold) 100%);
  border-radius: 3px;
}

.controls-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-gold);
  color: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
}

.ctrl-play-main {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-ruby) 0%, var(--color-wine) 100%);
  font-size: 1.2rem;
}

.vol-slider {
  width: 55px;
  accent-color: var(--color-gold);
  cursor: pointer;
}

.turntable-status-tag {
  text-align: center;
  font-family: var(--font-handwriting);
  font-size: 1.1rem;
  color: var(--color-gold-light);
}

/* ==========================================================================
   TAB 4: OUR JOURNEY & LIVE COUNTER
   ========================================================================== */
.milestones-hero { text-align: center; margin-bottom: 28px; }

.badge-ribbon {
  display: inline-block;
  background: linear-gradient(90deg, #8c1827 0%, #520b15 100%);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 2px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.milestones-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  color: var(--color-cream);
  font-weight: 700;
  margin-bottom: 4px;
}

.milestones-desc {
  font-family: var(--font-handwriting);
  font-size: 1.4rem;
  color: var(--color-pink-soft);
}

.live-counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 640px;
  margin: 0 auto 40px auto;
}

.counter-box {
  background: linear-gradient(145deg, #5e0c19 0%, #3a040b 100%);
  border: 2px solid var(--color-gold);
  border-radius: 14px;
  padding: 18px 8px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.counter-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1;
  margin-bottom: 4px;
}

.counter-unit {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-gold-light);
}

.section-subheading {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--color-cream);
  text-align: center;
  margin-bottom: 20px;
}

.timeline-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 45px;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 18px;
}

.timeline-date {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 6px;
}

.timeline-content h4 { font-size: 1.1rem; margin-bottom: 4px; color: #fff; }
.timeline-content p { font-size: 0.88rem; color: var(--color-pink-soft); line-height: 1.45; }

.reasons-hint {
  text-align: center;
  font-family: var(--font-handwriting);
  font-size: 1.25rem;
  color: var(--color-gold-light);
  margin-top: -14px;
  margin-bottom: 20px;
}

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

.reason-card {
  perspective: 1000px;
  height: 160px;
  cursor: pointer;
}

.reason-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.reason-card:hover .reason-card-inner,
.reason-card.flipped .reason-card-inner {
  transform: rotateY(180deg);
}

.reason-front, .reason-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1.5px solid var(--color-gold);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.reason-front {
  background: linear-gradient(135deg, #6c111e 0%, #44070f 100%);
  color: #fff;
}

.card-num {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--color-gold);
  font-weight: 700;
}

.card-front-icon { font-size: 1.8rem; margin-bottom: 6px; }

.reason-back {
  background: #fbf7ee;
  color: #3b1419;
  transform: rotateY(180deg);
}

.reason-back p {
  font-family: var(--font-handwriting);
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 600;
}

/* ==========================================================================
   SCREEN 2.5: BOUQUET SURPRISE SCREEN (POST-PIN UNLOCK REVEAL)
   ========================================================================== */
#screen-bouquet {
  min-height: 100vh;
  padding: 40px 16px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

#screen-bouquet.active {
  animation: fadeIn 0.6s ease-out;
}

.bouquet-surprise-stage {
  position: relative;
  max-width: 620px;
  width: 95%;
  text-align: center;
  margin: 0 auto;
}

.bouquet-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #731321;
  color: var(--color-gold-light);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 25px;
  border: 1.5px solid var(--color-gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  margin-bottom: 20px;
}

.bouquet-card {
  position: relative;
  background: radial-gradient(circle at center, #4d0b15 0%, #2a040b 100%);
  border: 2.5px solid var(--color-gold);
  border-radius: 20px;
  padding: 40px 28px 35px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), inset 0 0 35px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.bouquet-close-btn {
  position: absolute;
  top: 15px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid var(--color-gold);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.bouquet-close-btn:hover {
  background: rgba(212, 175, 55, 0.4);
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.bouquet-illustration-wrap {
  position: relative;
  width: 290px;
  height: 310px;
  margin: 0 auto 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bouquet-aura-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 185, 203, 0.35) 0%, transparent 70%);
  animation: pulseAura 3s ease-in-out infinite alternate;
}

.hero-bouquet-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.6));
  animation: bouquetBloom 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), bouquetFloat 3.5s ease-in-out infinite alternate;
  z-index: 2;
}

@keyframes bouquetBloom {
  0% {
    transform: scale(0.4) rotate(-15deg);
    opacity: 0;
  }
  70% {
    transform: scale(1.08) rotate(3deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes bouquetFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(2deg); }
}

.floating-petals-orbit .petal-orbit {
  position: absolute;
  font-size: 1.4rem;
  pointer-events: none;
  z-index: 3;
}

.p-1 { top: 15px; left: 20px; animation: floatParticle 3s ease-in-out infinite alternate; }
.p-2 { top: 25px; right: 25px; animation: floatParticle 2.5s ease-in-out 0.5s infinite alternate; }
.p-3 { bottom: 40px; left: 15px; animation: floatParticle 3.2s ease-in-out 1s infinite alternate; }
.p-4 { bottom: 35px; right: 20px; animation: floatParticle 2.8s ease-in-out 1.5s infinite alternate; }

.bouquet-message-box {
  position: relative;
  z-index: 4;
  margin-bottom: 25px;
}

.bouquet-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-gold-light);
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.bouquet-note {
  font-family: var(--font-handwriting);
  font-size: 1.45rem;
  line-height: 1.45;
  color: #fff;
  max-width: 500px;
  margin: 0 auto 10px auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.bouquet-sub-note {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-pink-soft);
  margin-top: 8px;
}

.bouquet-btn-row {
  position: relative;
  z-index: 5;
}

.btn-accept-bouquet {
  background: linear-gradient(135deg, #a81c32, #680e1c);
  color: #fff;
  border: 2px solid var(--color-gold);
  border-radius: 30px;
  padding: 14px 32px;
  font-family: var(--font-handwriting);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.35);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-accept-bouquet:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, #be223b, #7d1223);
}

/* Dedicated Palagi theme song styles in music tab */
.dedicated-palagi-card {
  border: 2px solid var(--color-gold) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
}

.song-theme-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.palagi-lyrics-box {
  background: rgba(45, 6, 12, 0.7);
  border: 1.5px dashed rgba(212, 175, 55, 0.6);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 18px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.lyrics-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.lyrics-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 2px;
}

.lyrics-quote {
  font-family: var(--font-handwriting);
  font-size: 1.35rem;
  color: #fff;
  line-height: 1.45;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.lyrics-footer {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--color-gold-light);
  margin-top: 10px;
  letter-spacing: 1px;
}

/* Bouquet Nav Tab Highlight */
.tab-ribbon.btn-bouquet-nav {
  background: rgba(185, 28, 58, 0.35);
  border-color: rgba(247, 185, 203, 0.6);
}
.tab-ribbon.btn-bouquet-nav:hover {
  background: rgba(185, 28, 58, 0.75);
}

/* ==========================================================================
   CUSTOM MUSIC UPLOADER BUTTON
   ========================================================================== */
.custom-music-uploader-row {
  margin-top: 16px;
  text-align: center;
}

.custom-audio-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #741724, #961e31);
  color: #fff;
  border: 1.5px solid var(--color-gold);
  border-radius: 25px;
  font-family: var(--font-handwriting);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.custom-audio-picker-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #8a1b2b, #b3243a);
}

.custom-song-badge {
  display: block;
  font-size: 0.82rem;
  color: var(--color-gold-light);
  margin-top: 6px;
  font-style: italic;
}

/* ==========================================================================
   SCRAPBOOK BOTTOM FOOTER (HIGH CONTRAST & BEAUTIFUL READABILITY)
   ========================================================================== */
.scrapbook-page-footer {
  margin-top: 50px;
  text-align: center;
  padding-bottom: 35px;
  position: relative;
  z-index: 10;
}

.footer-gingham-strip {
  width: 100%;
  height: 20px;
  background-color: #f7ecee;
  background-image: 
    linear-gradient(90deg, rgba(166, 32, 53, 0.5) 50%, transparent 50%),
    linear-gradient(rgba(166, 32, 53, 0.5) 50%, transparent 50%);
  background-size: 14px 14px;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.footer-heart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 8px 24px;
  border-radius: 30px;
  border: 1.5px dashed #8b1828;
  box-shadow: 0 4px 16px rgba(70, 10, 20, 0.12);
  max-width: 90%;
  margin: 0 auto;
}

.footer-badge-icon {
  font-size: 1.2rem;
  animation: pulseBeat 1.8s ease-in-out infinite;
}

.footer-heart-msg {
  font-family: var(--font-handwriting);
  font-size: 1.35rem;
  font-weight: 700;
  color: #5a0c17; /* Deep rich wine crimson for crisp contrast */
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
  margin: 0;
  letter-spacing: 0.3px;
}

/* Toast */
.toast-popup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(43, 6, 12, 0.95);
  border: 1.5px solid var(--color-gold);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.toast-popup.show {
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   RESPONSIVENESS: TABLETS (iPads, 768px - 1024px) & MOBILE (360px - 767px)
   ========================================================================== */

/* Tablet & iPad breakpoint (<= 1024px) */
@media (max-width: 1024px) {
  .scrapbook-card-stage {
    width: 94%;
    max-width: 840px;
    padding: 35px 30px;
  }

  .scrapbook-viewport {
    width: 95%;
    max-width: 900px;
    padding: 28px 24px;
  }

  .letter-page-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .vertical-filmstrip-container {
    margin: 15px auto 0 auto;
  }

  .memories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .music-player-layout {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px;
  }

  .turntable-card {
    padding: 16px 12px;
  }

  .turntable-platter-box {
    width: 260px;
    height: 260px;
  }

  .vinyl-outer-wrap {
    width: 230px;
    height: 230px;
  }

  .live-counter-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

/* Small Tablets / iPad Portrait (<= 768px) */
@media (max-width: 768px) {
  .scrapbook-card-stage {
    width: 95%;
    padding: 30px 24px;
  }

  .card-decor-balloons {
    width: 85px;
    right: 25px;
    top: 10px;
  }

  .card-decor-roses {
    width: 75px;
    left: 15px;
    bottom: 20px;
  }

  .scrapbook-nav-header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
  }

  .scrapbook-tabs-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .tab-ribbon {
    padding: 7px 12px;
    font-size: 0.84rem;
  }

  .scrapbook-viewport {
    width: 96%;
    margin: 16px auto;
    padding: 22px 16px;
    border-radius: 12px;
  }

  .music-player-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px 16px;
  }

  .turntable-card {
    padding: 14px 10px;
  }

  .turntable-platter-box {
    margin: 0 auto 15px auto;
  }

  .turntable-flower-br {
    bottom: auto;
    top: 210px;
    right: 10px;
    z-index: 5;
  }

  .scrapbook-board {
    padding: 22px 14px;
  }

  .vintage-padlock-card {
    width: 92%;
    max-width: 380px;
  }

  .keepsakes-sub-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ldr-boarding-pass {
    flex-direction: column;
  }

  .boarding-pass-main {
    border-right: none;
    border-bottom: 2px dashed #caa267;
  }

  .boarding-pass-stub {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    padding: 10px 14px;
  }

  .stub-notch-top, .stub-notch-bottom {
    display: none;
  }

  .timeline-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .live-counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* Mobile Phones (<= 480px, iPhones & Androids) */
@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Screen 1: Envelope Teaser Stage */
  #screen-intro {
    padding: 18px 10px 24px 10px;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .intro-top-bar {
    position: static;
    width: 100%;
    max-width: 390px;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    padding-right: 4px;
  }

  .desk-mute-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
    gap: 5px;
  }

  .scrapbook-card-stage {
    width: 100%;
    max-width: 390px;
    min-height: auto;
    padding: 26px 26px 24px 14px; /* Extra right padding for 22px gingham border */
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: var(--shadow-desk-card);
  }

  .gingham-border-right {
    width: 22px;
    background-size: 11px 11px;
  }

  .gingham-border-bottom {
    height: 18px;
    background-size: 11px 11px;
  }

  .intro-corner-sticker.intro-sticker-tl {
    top: 8px;
    left: 8px;
    gap: 4px;
  }

  .corner-sticker-daisy {
    width: 36px;
  }

  .corner-sticker-berry {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .corner-sticker-sparkle {
    width: 18px;
  }

  .intro-corner-sticker.intro-sticker-br {
    bottom: 6px;
    right: 6px;
    gap: 4px;
    z-index: 7;
  }

  .corner-sticker-teddy {
    width: 34px;
    height: 34px;
  }

  .corner-sticker-rose {
    width: 38px;
  }

  .card-decor-balloons {
    width: 60px;
    top: 10px;
    right: 26px;
  }

  .card-decor-roses {
    width: 50px;
    left: 8px;
    bottom: 22px;
    opacity: 0.95;
  }

  .intro-letter-card {
    padding: 0 4px;
    width: 100%;
  }

  .intro-title {
    font-size: 1.42rem;
    line-height: 1.25;
    margin-bottom: 2px;
  }

  .intro-subtitle {
    font-size: 1.85rem;
    margin-bottom: 6px;
  }

  .envelope-hero-wrap {
    width: 185px;
    height: 130px;
    margin: 6px auto 14px auto;
  }

  .envelope-glow-aura {
    width: 200px;
    height: 150px;
  }

  .hero-envelope-img {
    width: 100%;
    height: 100%;
  }

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

  .intro-buttons-row {
    gap: 16px;
    min-height: 50px;
    width: 100%;
    justify-content: center;
  }

  .vintage-btn {
    padding: 10px 24px;
    font-size: 1.05rem;
    letter-spacing: 1px;
    min-height: 44px;
  }

  .arrow-to-yes {
    width: 60px;
    height: 35px;
    top: -20px;
  }

  .intro-footer-hint {
    margin-top: 14px;
    font-size: 1.05rem;
    position: relative;
    z-index: 10;
    padding: 0 6px;
    line-height: 1.35;
  }

  /* Screen 2: Padlock / PIN Vault Modal */
  #screen-pin {
    padding: 20px 10px;
    min-height: 100dvh;
  }

  .vintage-padlock-card {
    width: 100%;
    max-width: 340px;
  }

  .padlock-shackle-wrap {
    width: 130px;
    height: 85px;
    margin-bottom: -24px;
  }

  .brass-shackle {
    border-width: 16px;
    border-top-left-radius: 65px;
    border-top-right-radius: 65px;
  }

  .padlock-shackle-wrap.unlocked {
    transform: translateY(-28px) rotate(-15deg);
  }

  .padlock-body {
    padding: 22px 14px 18px 14px;
    border-width: 3px;
    border-radius: 20px;
  }

  .pin-corner-stamp {
    width: 36px;
    height: 36px;
  }

  .pin-title {
    font-size: 1.35rem;
    margin-bottom: 2px;
  }

  .pin-hint-sub {
    font-size: 0.8rem;
    margin-bottom: 12px;
    line-height: 1.35;
  }

  .hint-date-format {
    font-size: 1.1rem;
  }

  .pin-slots-display {
    gap: 6px;
    margin-bottom: 10px;
  }

  .pin-slot {
    width: 36px;
    height: 44px;
    border-radius: 6px;
    border-width: 1.5px;
  }

  .pin-slot .pin-dot {
    font-size: 1.1rem;
  }

  .pin-feedback {
    min-height: 20px;
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .vintage-keypad-grid {
    gap: 8px;
    max-width: 270px;
  }

  .key-btn {
    height: 46px;
    font-size: 1.25rem;
    border-radius: 8px;
    border-width: 1.5px;
  }

  .key-btn.key-action {
    font-size: 0.72rem;
  }

  .btn-need-hint {
    font-size: 1.15rem;
    margin-top: 10px;
  }

  /* Screen 2.5: Bouquet Surprise Screen */
  #screen-bouquet {
    padding: 20px 12px;
    min-height: 100dvh;
  }

  .bouquet-surprise-stage {
    width: 100%;
    max-width: 360px;
  }

  .bouquet-top-badge {
    font-size: 0.7rem;
    padding: 6px 16px;
    letter-spacing: 1px;
    margin-bottom: 14px;
  }

  .bouquet-card {
    padding: 24px 14px 20px 14px;
    border-radius: 16px;
    border-width: 2px;
  }

  .bouquet-illustration-wrap {
    width: 210px;
    height: 225px;
    margin: 0 auto 10px auto;
  }

  .bouquet-aura-glow {
    width: 180px;
    height: 180px;
  }

  .bouquet-title {
    font-size: 1.55rem;
    margin-bottom: 8px;
  }

  .bouquet-note {
    font-size: 1.15rem;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  .bouquet-sub-note {
    font-size: 0.98rem;
    margin-top: 6px;
  }

  .btn-accept-bouquet {
    font-size: 1.15rem;
    padding: 12px 20px;
    border-radius: 25px;
    width: 100%;
    justify-content: center;
  }

  /* Screen 3: Scrapbook Main Album */
  .scrapbook-nav-header {
    padding: 10px 12px;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 0;
  }

  .scrapbook-brand {
    gap: 8px;
    justify-content: center;
    text-align: center;
  }

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

  .brand-title {
    font-size: 1.15rem;
    line-height: 1.2;
  }

  .brand-dates {
    font-size: 0.9rem;
  }

  .scrapbook-tabs-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
  }

  .tab-ribbon {
    padding: 6px 9px;
    font-size: 0.78rem;
    border-radius: 6px;
    gap: 4px;
  }

  .tab-icon {
    font-size: 0.9rem;
  }

  .header-audio-btn {
    align-self: center;
    padding: 5px 12px;
    font-size: 0.75rem;
    border-radius: 16px;
  }

  .scrapbook-viewport {
    width: 96%;
    margin: 10px auto 18px auto;
    padding: 16px 10px 24px 10px;
    border-radius: 12px;
    border-width: 1.5px;
  }

  /* Tab 1: Love Letter & Keepsakes */
  .letter-page-grid {
    gap: 20px;
  }

  .parchment-sheet {
    padding: 24px 14px 20px 14px;
  }

  .washi-tape-strip {
    width: 90px;
    height: 26px;
    top: -12px;
  }

  .letter-top-meta {
    font-size: 1.05rem;
    padding-bottom: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 4px;
  }

  .letter-heading {
    font-size: 1.45rem;
    margin-bottom: 12px;
  }

  .letter-body-text {
    font-size: 1.12rem;
    line-height: 1.5;
  }

  .letter-body-text p {
    margin-bottom: 12px;
  }

  .sign-handwritten {
    font-size: 1.6rem;
  }

  .letter-wax-seal {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 14px;
  }

  .letter-cta-wrapper {
    margin-top: 20px;
    padding-top: 14px;
  }

  .btn-scrapbook-cta {
    width: 100%;
    font-size: 0.85rem;
    padding: 10px 12px;
    text-align: center;
  }

  .ldr-boarding-pass {
    border-radius: 6px;
  }

  .boarding-pass-main {
    padding: 12px 10px;
    gap: 8px;
  }

  .boarding-header {
    font-size: 0.68rem;
    flex-wrap: wrap;
    gap: 4px;
  }

  .boarding-body-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
  }

  .field-lbl {
    font-size: 0.58rem;
  }

  .field-val {
    font-size: 0.8rem;
  }

  .boarding-quote {
    font-size: 0.95rem;
  }

  .boarding-pass-stub {
    padding: 8px 10px;
  }

  .stub-stamp-img {
    width: 32px;
    height: 32px;
  }

  .love-receipt-card {
    padding: 16px 12px;
    font-size: 0.72rem;
  }

  .vintage-sticky-note {
    padding: 16px 12px;
  }

  .sticky-text {
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .keepsake-stickers-tray {
    padding: 6px;
    gap: 6px;
  }

  .tray-sticker {
    width: 38px;
    height: 38px;
  }

  .polaroid-frame {
    max-width: 290px;
    margin: 0 auto;
    width: 100%;
    padding: 10px 10px 14px 10px;
  }

  .polaroid-caption {
    font-size: 1.25rem;
  }

  .vertical-filmstrip-container {
    width: 100%;
    max-width: 250px;
    height: 420px;
    margin: 10px auto;
  }

  .vertical-filmstrip {
    width: 145px;
    bottom: 42px;
  }

  .v-film-cell {
    height: 100px;
  }

  .v-pocket-box {
    width: 220px;
    height: 185px;
  }

  .letter-sidebar-collage .decor-sticker {
    display: none; /* Prevents overflow */
  }

  /* Tab 2: Memories Scrapbook */
  .memories-header-banner {
    gap: 6px;
    margin-bottom: 16px;
  }

  .banner-ribbon-left,
  .banner-ribbon-right {
    display: none;
  }

  .memories-main-title {
    font-size: 1.5rem;
  }

  .memories-subtitle {
    font-size: 1.15rem;
  }

  .scrapbook-board {
    padding: 14px 8px;
    border-radius: 10px;
    overflow: hidden;
  }

  .board-sticker {
    display: none; /* Prevents horizontal overflow */
  }

  .board-corner-stickers {
    display: none;
  }

  .scrapbook-cluster.cluster-stamps {
    gap: 6px;
    margin-bottom: 12px;
    justify-content: center;
  }

  .stamp-item {
    width: 38px;
    height: 38px;
  }

  .ldr-stamp-tag {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .memories-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .memory-scrap-card {
    max-width: 310px;
    margin: 0 auto;
    width: 100%;
    padding: 10px 10px 14px 10px;
  }

  .scrap-caption {
    font-size: 1.15rem;
    margin-top: 8px;
  }

  .tape-corner {
    width: 65px;
    height: 18px;
    top: -8px;
  }

  /* Tab 3: Dedicated Music Player & Spinning Vinyl Record */
  .music-header-title {
    margin-bottom: 16px;
  }

  .music-badge {
    font-size: 0.65rem;
    padding: 2px 10px;
  }

  .music-title-text {
    font-size: 1.55rem;
    line-height: 1.25;
  }

  .music-subtitle {
    font-size: 1.15rem;
  }

  .music-player-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px 10px;
    border-radius: 12px;
  }

  .song-card {
    padding: 10px 12px;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .song-card-cover {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .song-card-info {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .song-theme-badge {
    font-size: 0.6rem;
  }

  .song-title {
    font-size: 0.95rem;
  }

  .song-artist {
    font-size: 0.78rem;
  }

  .song-note {
    font-size: 0.92rem;
    line-height: 1.25;
    word-break: break-word;
    white-space: normal;
  }

  .btn-play-mini {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    font-size: 0.75rem;
    margin-left: 4px;
  }

  .palagi-lyrics-box {
    padding: 14px 12px;
    margin-top: 12px;
  }

  .lyrics-label {
    font-size: 0.65rem;
  }

  .lyrics-quote {
    font-size: 1.15rem;
    line-height: 1.4;
  }

  .lyrics-footer {
    font-size: 0.65rem;
  }

  .playlist-stickers-row {
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
  }

  .mini-sticker {
    width: 34px;
    height: 34px;
  }

  .turntable-card {
    padding: 6px 0;
    width: 100%;
    align-items: center;
    position: relative;
  }

  .turntable-lace-bg {
    width: 240px;
    height: 240px;
    top: 110px;
  }

  .turntable-flower-tl {
    width: 48px;
    top: -10px;
    left: 15px;
    opacity: 0.9;
  }

  /* Bouquet positioned neatly beside platter, NEVER blocking controls bar! */
  .turntable-flower-br {
    width: 52px;
    top: 175px;
    right: 15px;
    bottom: auto;
    z-index: 5;
    opacity: 0.9;
  }

  .turntable-platter-box {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    position: relative;
  }

  .vinyl-outer-wrap {
    width: 195px;
    height: 195px;
  }

  .vinyl-center-label {
    width: 66px;
    height: 66px;
  }

  .vinyl-center-title {
    font-size: 0.75rem;
  }

  .vinyl-center-date {
    font-size: 0.55rem;
  }

  /* Tonearm scaled proportionally so cartridge stays 100% attached to rod! */
  .tonearm-assembly {
    top: -5px;
    right: -5px;
    transform: scale(0.82) rotate(-25deg);
    transform-origin: 75px 20px;
  }

  .tonearm-assembly.on-record {
    transform: scale(0.82) rotate(14deg);
  }

  .turntable-controls-bar {
    max-width: 320px;
    width: 100%;
    margin-top: 14px;
    padding: 12px 14px;
    position: relative;
    z-index: 15;
    background: rgba(20, 2, 5, 0.94);
    border-radius: 12px;
  }

  .now-song-name {
    font-size: 0.82rem;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
  }

  .controls-buttons-row {
    gap: 12px;
    justify-content: center;
  }

  .ctrl-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .ctrl-play-main {
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
  }

  .volume-control-box {
    display: none; /* Hardware volume buttons used on mobile */
  }

  .turntable-status-tag {
    font-size: 0.95rem;
  }

  .custom-audio-picker-btn {
    font-size: 0.95rem;
    padding: 6px 14px;
  }

  /* Tab 4: Our Journey & Milestones */
  .milestones-hero {
    margin-bottom: 18px;
  }

  .milestones-title {
    font-size: 1.55rem;
  }

  .milestones-desc {
    font-size: 0.88rem;
  }

  .badge-ribbon {
    font-size: 0.65rem;
    padding: 4px 10px;
  }

  .live-counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 22px;
  }

  .counter-box {
    padding: 10px 6px;
    border-radius: 8px;
  }

  .counter-num {
    font-size: 1.65rem;
  }

  .counter-unit {
    font-size: 0.65rem;
    letter-spacing: 1px;
  }

  .section-subheading {
    font-size: 1.35rem;
    margin-bottom: 14px;
  }

  .timeline-cards {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 25px;
  }

  .timeline-card {
    padding: 12px 10px;
  }

  .timeline-content h4 {
    font-size: 0.98rem;
  }

  .timeline-content p {
    font-size: 0.82rem;
  }

  .reasons-hint {
    font-size: 1.15rem;
    margin-top: -8px;
    margin-bottom: 14px;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .reason-card {
    height: 165px;
  }

  .reason-front, .reason-back {
    padding: 14px;
  }

  .reason-back p {
    font-size: 1.15rem;
    line-height: 1.35;
  }

  /* Footer on Mobile */
  .scrapbook-page-footer {
    margin-top: 25px;
    padding-bottom: max(25px, env(safe-area-inset-bottom, 0px));
  }

  .footer-gingham-strip {
    height: 14px;
    margin-bottom: 12px;
  }

  .footer-heart-badge {
    padding: 6px 12px;
    border-radius: 20px;
    max-width: 95%;
    gap: 6px;
  }

  .footer-heart-msg {
    font-size: 1.02rem;
    line-height: 1.3;
  }

  .footer-badge-icon {
    font-size: 0.95rem;
  }

  /* Toast on Mobile */
  .toast-popup {
    bottom: max(20px, calc(14px + env(safe-area-inset-bottom, 0px)));
    font-size: 0.82rem;
    padding: 8px 16px;
    border-radius: 25px;
    max-width: 92%;
  }
}

/* Small mobile devices (<= 360px) */
@media (max-width: 360px) {
  .intro-title { font-size: 1.25rem; }
  .intro-subtitle { font-size: 1.6rem; }
  .envelope-hero-wrap { width: 165px; height: 115px; }
  .vintage-btn { padding: 8px 16px; font-size: 0.98rem; }
  .pin-slot { width: 32px; height: 40px; font-size: 1.1rem; }
  .vintage-keypad-grid { gap: 6px; max-width: 240px; }
  .key-btn { height: 42px; font-size: 1.1rem; }
  .tab-ribbon { padding: 5px 7px; font-size: 0.72rem; }
  .turntable-platter-box { width: 190px; height: 190px; }
  .vinyl-outer-wrap { width: 170px; height: 170px; }
  .turntable-lace-bg { width: 210px; height: 210px; }
  .turntable-flower-tl { width: 40px; }
  .turntable-flower-br { width: 42px; top: 150px; }
  .tonearm-assembly { transform: scale(0.72) rotate(-25deg); }
  .tonearm-assembly.on-record { transform: scale(0.72) rotate(14deg); }
  .counter-num { font-size: 1.4rem; }
}


