/* ==========================================================================
   MAYA'S BIRTHDAY — EDITORIAL MAGAZINE DESIGN SYSTEM (REFINED FIDELITY)
   ========================================================================== */

:root {
  --bg-outer: #ffffff;
  --bg-page: #ffffff;
  --text-main: #111111;
  --text-body: #333333;
  --text-muted: #666666;
  --text-subtle: #888888;
  --border-color: #000000;
  --border-subtle: #eaeaea;
  
  --font-serif-title: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
  --font-serif-italic: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-hero: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --page-max-width: 760px;
  --page-min-width: 340px;
}

/* --------------------------------------------------------------------------
   Reset & Outer Body Layout
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-outer);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-outer);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Narrow Centered Page Container (The Magazine Page)
   -------------------------------------------------------------------------- */
.page-container {
  position: relative;
  width: min(var(--page-max-width), 90vw);
  min-width: var(--page-min-width);
  margin: 0 auto;
  min-height: 100vh;
  height: auto;
  background: var(--bg-page);
  overflow: hidden; /* Clips organic shapes cleanly */
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   Subtle Black Organic Shapes Anchored to Page Edges
   -------------------------------------------------------------------------- */
.organic-shape {
  position: absolute;
  background-color: #000000;
  pointer-events: none;
  z-index: 1;
}

/* Left shape: tall, slender ellipse clipping in slightly */
.organic-shape-left {
  left: -85px;
  top: 470px;
  width: 135px;
  height: 420px;
  border-radius: 50% 50% 50% 50% / 40% 60% 40% 60%;
}

/* Right shape: small organic circle clipping in slightly */
.organic-shape-right {
  right: -60px;
  top: 730px;
  width: 110px;
  height: 160px;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Scrapbook Decorations Layer (Pink SVG Hearts & Stars)
   -------------------------------------------------------------------------- */
.decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
}

.decor {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f28b9b;
}

.decor svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Sizes */
.decor-heart-small {
  width: 17px;
  height: 17px;
  color: #f28b9b;
}

.decor-heart-medium {
  width: 26px;
  height: 26px;
  color: #f28b9b;
}

.decor-heart-large {
  width: 36px;
  height: 36px;
  color: #e8536b;
}

.decor-star-small {
  width: 14px;
  height: 14px;
  color: #f28b9b;
}

.decor-star-medium {
  width: 22px;
  height: 22px;
  color: #e8536b;
}

/* Subtle Hand-Placed Scrapbook Rotations */
.heart-1  { transform: rotate(-10deg); }
.heart-2  { transform: rotate(12deg); }
.heart-3  { transform: rotate(-18deg); }
.heart-4  { transform: rotate(15deg); }
.heart-5  { transform: rotate(-8deg); }
.heart-6  { transform: rotate(-14deg); }
.heart-7  { transform: rotate(10deg); }
.heart-8  { transform: rotate(-16deg); }
.heart-9  { transform: rotate(8deg); }
.heart-10 { transform: rotate(-12deg); }
.heart-11 { transform: rotate(6deg); }

.star-1   { transform: rotate(8deg); }
.star-2   { transform: rotate(-14deg); }
.star-3   { transform: rotate(18deg); }
.star-4   { transform: rotate(-10deg); }
.star-5   { transform: rotate(12deg); }
.star-6   { transform: rotate(-8deg); }

/* --------------------------------------------------------------------------
   1. Editorial Header
   -------------------------------------------------------------------------- */
.editorial-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 36px;
  border-bottom: 1.2px solid var(--border-color);
  background-color: #ffffff;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.nav-item {
  color: var(--text-main);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: opacity 0.2s ease;
}

.nav-item:hover {
  opacity: 0.6;
}

.btn-link {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.music-icon {
  display: inline-block;
  font-size: 10px;
  transition: transform 0.3s ease;
}

.music-playing .music-icon {
  animation: bounceNote 1s infinite alternate ease-in-out;
  color: #111;
}

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

.header-center {
  flex: 2;
  text-align: center;
}

.magazine-title {
  font-family: var(--font-serif-title);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1.8px;
  margin: 0;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex: 1;
  font-size: 9.5px;
  line-height: 1.3;
  color: var(--text-body);
}

.attr-line {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   2. Hero Section (Thin, Light, Refined Typography)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  z-index: 5;
  padding: 55px 40px 42px;
}

.hero-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.hero-main-title {
  flex: 1.3;
}

.hero-main-title h2 {
  font-family: var(--font-hero);
  font-size: 29px;
  font-weight: 300; /* Lightweight, refined, NOT bold */
  line-height: 1.2;
  letter-spacing: 0.4px;
  color: #111111;
  text-transform: uppercase;
}

.hero-aside-quote {
  flex: 0.95;
  padding-top: 14px;
  text-align: left;
}

.quote-p {
  font-family: var(--font-hero);
  font-size: 11.5px;
  font-weight: 300;
  color: #444444;
  line-height: 1.5;
  margin-bottom: 2px;
}

.quote-p.bold {
  color: #222222;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   3. Memories Section (Delicate Polaroid Row with Vertical Text)
   -------------------------------------------------------------------------- */
.memories-section {
  position: relative;
  z-index: 5;
  padding: 10px 40px 10px;
}

.memories-layout {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.vertical-label-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-serif-title);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.4px;
  color: #222222;
  white-space: nowrap;
}

.memory-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1;
}

.memory-card {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.memory-card:hover {
  transform: translateY(-3px);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 9/16;
  overflow: hidden;
  background: #f5f5f5;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  transition: transform 0.4s ease;
}

.memory-card:hover .card-img-wrap img {
  transform: scale(1.03);
}

.card-caption {
  font-family: var(--font-body);
  font-size: 9.5px;
  color: #444444;
  line-height: 1.35;
  margin-top: 6px;
  text-align: center;
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   4. Red Envelope Section
   -------------------------------------------------------------------------- */
.envelope-section {
  position: relative;
  z-index: 5;
  padding: 5px 40px 40px;
}

.envelope-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 28px;
}

.envelope-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  outline: none;
  user-select: none;
}

.open-this-note {
  position: absolute;
  top: -10px;
  left: 24%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.open-this-note.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
}

.open-this-svg-img {
  width: 74px;
  height: auto;
  display: block;
  filter: invert(18%) sepia(45%) saturate(2800%) hue-rotate(330deg) brightness(85%) contrast(95%);
}

.arrow-svg-img {
  width: 24px;
  height: auto;
  margin-top: -6px;
  transform: rotate(52deg);
  filter: invert(18%) sepia(45%) saturate(2800%) hue-rotate(330deg) brightness(85%) contrast(95%);
}

.envelope-img-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.envelope-image {
  width: 100%;
  height: auto;
  display: block;
}

.envelope-closed {
  position: relative;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.18)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
  transform: rotate(-3deg);
  transition: opacity 0.65s cubic-bezier(0.25, 1, 0.5, 1), transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 2;
}

.envelope-closed.is-shaking {
  animation: envelopeWiggle 0.5s ease-in-out;
}

.envelope-img-wrap.is-opened .envelope-closed {
  opacity: 0;
  transform: translateY(22px) scale(0.95) rotate(-3deg);
  pointer-events: none;
}

.envelope-open {
  position: absolute;
  top: 0;
  left: 0;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.22)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
  opacity: 0;
  transform: scale(0.92) translateY(18px) rotate(-1deg);
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 3;
}

.envelope-img-wrap.is-opened .envelope-open {
  opacity: 1;
  transform: scale(1) translateY(0) rotate(0deg);
  pointer-events: auto;
  transition: opacity 0.65s cubic-bezier(0.25, 1, 0.5, 1) 0.08s, transform 0.75s cubic-bezier(0.25, 1, 0.5, 1) 0.08s;
}

@keyframes envelopeWiggle {
  0%   { transform: rotate(-3deg) scale(1); }
  20%  { transform: rotate(-1deg) scale(1.03); }
  40%  { transform: rotate(-6deg) scale(1.05); }
  60%  { transform: rotate(-1deg) scale(1.06); }
  80%  { transform: rotate(-4deg) scale(1.04); }
  100% { transform: rotate(-3deg) scale(1.02); }
}

.envelope-right {
  padding-left: 8px;
}

.envelope-title {
  font-family: var(--font-serif-title);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  color: #1a1a1a;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.envelope-subtitle {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: #666666;
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.4;
}

.envelope-btn-wrap {
  display: flex;
}

.open-letter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1.2px solid #8c2a38;
  color: #8c2a38;
  padding: 9px 20px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(140, 42, 56, 0.08);
  transition: all 0.25s ease;
}

.open-letter-btn:hover {
  background: #8c2a38;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(140, 42, 56, 0.2);
}

.btn-heart {
  font-size: 13px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   5. Video / Featured Film Section (Smaller & Perfectly Centered)
   -------------------------------------------------------------------------- */
.video-section {
  position: relative;
  z-index: 5;
  padding: 20px 40px 45px;
}

.video-frame-container {
  width: min(340px, 85%);
  max-width: 340px;
  margin: 0 auto;
  position: relative;
}

.video-preview-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #000;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  border-radius: 12px;
}

.actual-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  background-color: #000;
}

.custom-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; /* Refined smaller play button */
  height: 48px;
  background: #ffffff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
  z-index: 4;
}

.custom-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);
}

.video-preview-wrapper.is-playing .custom-play-btn {
  opacity: 0;
  pointer-events: none;
}

.play-icon-svg {
  width: 20px;
  height: 20px;
  color: #000000;
  margin-left: 2px;
}

.video-reel-overlay.playing {
  opacity: 1;
  pointer-events: auto;
}

.video-reel-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.reel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease, transform 5s linear;
  transform: scale(1);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.reel-slide.active {
  opacity: 1;
  transform: scale(1.05);
}

.slide-subtitle {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 11px;
  letter-spacing: 0.4px;
}

.video-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.1s linear;
}

.close-reel-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
}

/* --------------------------------------------------------------------------
   5. Editorial Collage Typography Statement (Soul Friend)
   -------------------------------------------------------------------------- */
.editorial-statement-section {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 35px 40px 45px;
}

.sub-statement {
  font-family: var(--font-body);
  font-size: 9px;
  color: #777777;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  text-transform: lowercase;
}

.statement-main {
  font-size: 16.5px;
  line-height: 1.4;
  color: #111111;
  font-weight: normal;
}

.upper-serif {
  font-family: var(--font-serif-title);
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.upper-serif.sm {
  font-size: 13.5px;
}

.italic-serif {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  margin: 0 1px;
}

.comma {
  margin-right: 3px;
}

/* --------------------------------------------------------------------------
   6. Love Letter & Story Section
   -------------------------------------------------------------------------- */
.love-story-section {
  position: relative;
  z-index: 5;
  padding: 10px 40px 50px;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 26px;
  align-items: flex-start;
}

.story-photo-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f5f5f5;
  cursor: pointer;
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.story-photo-wrap:hover .story-img {
  transform: scale(1.03);
}

.story-text-wrap {
  padding-top: 4px;
}

.story-title {
  font-family: var(--font-hero);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 14px;
  color: #111111;
  letter-spacing: 0.1px;
}

.story-paragraph {
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1.68;
  color: #333333;
  text-align: justify;
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   7. Gallery Section
   -------------------------------------------------------------------------- */
.gallery-section {
  position: relative;
  z-index: 5;
  padding: 25px 40px 40px;
}

.gallery-title {
  font-family: var(--font-serif-title);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.gallery-grid {
  column-count: 4;
  column-gap: 8px;
  /* column-fill: auto; */
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  cursor: pointer;
  break-inside: avoid;
  margin-bottom: 8px;
  display: block;
}

.gallery-item.aspect-tall     { aspect-ratio: 3 / 5; }
.gallery-item.aspect-portrait { aspect-ratio: 4 / 5; }
.gallery-item.aspect-square   { aspect-ratio: 1 / 1; }
.gallery-item.aspect-medium   { aspect-ratio: 3 / 4; }
.gallery-item.aspect-short    { aspect-ratio: 4 / 3; }
.gallery-item.aspect-wide     { aspect-ratio: 16 / 9; }

.gal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.crop-center { object-position: center center; }
.crop-left   { object-position: 25% center; }
.crop-right  { object-position: 75% center; }
.crop-top    { object-position: center 20%; }
.crop-bottom { object-position: center 80%; }

.gallery-item:hover .gal-img {
  transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   8. Footer Section
   -------------------------------------------------------------------------- */
.editorial-footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 30px 40px 40px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
}

.footer-center-content {
  position: relative;
  z-index: 3;
  flex: 1;
  text-align: center;
  margin: 0 10px;
}

.footer-flower {
  position: relative;
  width: 90px;
  height: 110px;
  flex-shrink: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.footer-flower-left {
  transform-origin: bottom left;
}

.footer-flower-right {
  transform: scaleX(-1); /* mirror right side for elegant symmetry */
  transform-origin: bottom center;
}

.flower-component-frame {
  width: 130px;
  height: 140px;
  border: none;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
  transform: scale(0.72);
  transform-origin: bottom center;
}

.footer-title {
  font-family: var(--font-serif-title);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
}

.footer-sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.heart-symbol-wrap {
  display: flex;
  justify-content: center;
}

.heart-interactive-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  line-height: 1;
  color: #111111;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
}

.heart-interactive-btn:hover {
  transform: scale(1.3);
  color: #e91e63;
}

.heart-interactive-btn:active {
  transform: scale(0.9);
}

/* --------------------------------------------------------------------------
   Lightbox Modal
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: min(680px, 90vw);
  max-height: 75vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border-radius: 3px;
}

.lightbox-caption {
  color: #ffffff;
  font-size: 12px;
  margin-top: 12px;
  letter-spacing: 0.4px;
  text-align: center;
  font-weight: 300;
}

.lightbox-close {
  position: absolute;
  top: -32px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Audio Toast Alert
   -------------------------------------------------------------------------- */
.audio-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 11px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background-color 0.2s ease;
  z-index: 10000;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.audio-toast:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.03);
  background: rgba(10, 10, 10, 0.98);
}

.audio-toast:active {
  transform: translateX(-50%) translateY(0) scale(0.98);
}

/* Floating Confetti / Hearts */
.floating-heart {
  position: fixed;
  pointer-events: none;
  font-size: 18px;
  z-index: 99999;
  animation: floatUpAndFade 1.6s forwards ease-out;
}

@keyframes floatUpAndFade {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.6) rotate(0deg);
  }
  50% {
    transform: translateY(-50px) scale(1.2) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-110px) scale(0.9) rotate(-15deg);
  }
}

/* --------------------------------------------------------------------------
   Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body {
    padding: 15px 0;
  }

  .page-container {
    width: 94vw;
  }

  .editorial-header {
    padding: 12px 20px;
  }

  .magazine-title {
    font-size: 16px;
  }

  .hero-section,
  .memories-section,
  .envelope-section,
  .video-section,
  .editorial-statement-section,
  .love-story-section,
  .gallery-section,
  .editorial-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .envelope-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .envelope-left {
    align-items: center;
  }

  .open-this-note {
    left: 16%;
    top: -8px;
  }

  .envelope-right {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .envelope-btn-wrap {
    justify-content: center;
  }

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

  .video-frame-container {
    width: min(300px, 85%);
    max-width: 300px;
  }

  .hero-grid {
    flex-direction: column;
    gap: 10px;
  }

  .hero-aside-quote {
    padding-top: 0;
  }

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

  .story-photo-wrap {
    max-width: 280px;
    margin: 0 auto;
  }

  .gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0;
    background-color: #fff;
  }

  .page-container {
    width: 100%;
    box-shadow: none;
  }

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

  .magazine-title {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .statement-main {
    font-size: 14.5px;
  }

  .italic-serif {
    font-size: 17px;
  }

  .envelope-title {
    font-size: 18px;
  }

  .envelope-img-wrap {
    max-width: 260px;
  }

  .open-this-note {
    left: 8%;
  }

  .gallery-grid {
    column-count: 2;
  }

  .footer-flower {
    width: 60px;
    height: 85px;
  }

  .flower-component-frame {
    transform: scale(0.55);
  }
}