/* ============================================================
   BIRTHDAY INVITATION — Brown Pastel Cute Edition v2
   ============================================================ */

:root {
  --cream: #fff8f0;
  --band-1: #fceedd;
  --band-2: #f3dcc0;
  --band-3: #e8c9a0;
  --band-4: #d9af83;
  --brown-mid: #b98a5e;
  --brown: #d9af83;
  --brown-deep: #8b5e3c;
  --brown-darker: #6b4526;
  --text-dark: #5a3e28;
  --text-soft: #8a6e52;
  --white: #ffffff;
  --shadow-soft: 0 10px 30px rgba(107, 69, 38, 0.16);

  --font-script: 'Dancing Script', cursive;
  --font-round: 'Fredoka', sans-serif;
  --font-body: 'Quicksand', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  overflow-x: hidden;
  min-height: 100vh;
  background: linear-gradient(180deg,
      var(--cream) 0%,
      var(--band-1) 8%,
      var(--band-2) 18%,
      var(--band-1) 27%,
      var(--band-3) 36%,
      var(--band-2) 46%,
      var(--band-4) 55%,
      var(--band-3) 64%,
      var(--band-1) 73%,
      var(--band-2) 82%,
      var(--band-4) 91%,
      var(--brown-deep) 100%);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

#floating-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* ============================================================
   INTRO SCREEN
   ============================================================ */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, #fff8f0 0%, #fceedd 40%, #f3dcc0 100%);
  overflow: hidden;
  transition: opacity 0.9s cubic-bezier(.4, 0, .2, 1), visibility 0.9s cubic-bezier(.4, 0, .2, 1), filter 0.9s ease;
}

#intro-screen.closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(6px);
}

.intro-cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.7;
  animation: cloudDrift 18s ease-in-out infinite;
}

.intro-cloud.c1 {
  width: 170px;
  height: 64px;
  top: 9%;
  left: -6%;
  background: #fff;
  animation-duration: 22s;
}

.intro-cloud.c2 {
  width: 130px;
  height: 48px;
  top: 20%;
  right: -4%;
  background: #fdf2e3;
  animation-duration: 26s;
  animation-delay: -4s;
}

.intro-cloud.c3 {
  width: 110px;
  height: 42px;
  bottom: 14%;
  left: 6%;
  background: #fff;
  animation-duration: 20s;
  animation-delay: -8s;
}

@keyframes cloudDrift {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(30px);
  }
}

.intro-deco-paw {
  position: absolute;
  width: 56px;
  opacity: 0.75;
  top: 14%;
  right: 10%;
  animation: floatSlow 6s ease-in-out infinite;
}

.intro-deco-star {
  position: absolute;
  width: 22px;
  animation: twinkle 2.6s ease-in-out infinite;
}

.intro-deco-star.s1 {
  top: 16%;
  left: 12%;
}

.intro-deco-star.s2 {
  bottom: 22%;
  right: 14%;
  animation-delay: -1.2s;
}

.intro-deco-cake {
  position: absolute;
  width: 46px;
  bottom: 10%;
  left: 12%;
  animation: floatSlow 5s ease-in-out infinite;
  opacity: 0.85;
}

.intro-deco-bear-mini {
  position: absolute;
  width: 50px;
  top: 10%;
  left: 6%;
  animation: floatSlow 7s ease-in-out infinite reverse;
  opacity: 0.8;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes floatSlow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.intro-label {
  text-align: center;
  margin-bottom: 24px;
  z-index: 2;
  padding: 0 20px;
}

.intro-label-sub {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--brown-deep);
  margin-bottom: 6px;
}

.intro-label-script {
  font-family: var(--font-script);
  font-size: clamp(46px, 13vw, 68px);
  color: var(--brown-deep);
  line-height: 1.1;
  animation: gentleFloat 4s ease-in-out infinite;
  text-shadow: 0 4px 14px rgba(139, 94, 60, 0.18);
}

.intro-label-name {
  font-family: var(--font-round);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-soft);
  margin-top: 6px;
}

.intro-guest-hl {
  color: var(--brown-deep);
  font-weight: 700;
}

@keyframes gentleFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.balloon-outer {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.balloon-cluster {
  position: relative;
  width: 230px;
  height: 270px;
  cursor: pointer;
  animation: balloonBob 3.5s ease-in-out infinite;
  transition: transform 0.6s cubic-bezier(.2, .8, .3, 1.4);
}

.balloon-cluster:hover {
  transform: scale(1.06) rotate(-1deg);
}

.balloon-cluster.open {
  animation: balloonRelease 1.3s cubic-bezier(.3, .6, .4, 1) forwards;
}

@keyframes balloonBob {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-16px) rotate(1.5deg);
  }
}

@keyframes balloonRelease {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-560px) scale(1.2) rotate(6deg);
    opacity: 0;
  }
}

.balloon {
  position: absolute;
  width: 86px;
  height: 104px;
  border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  box-shadow: inset -12px -12px 20px rgba(0, 0, 0, 0.07), var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.balloon::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  width: 2px;
  height: 64px;
  background: rgba(139, 94, 60, 0.4);
  transform: translateX(-50%);
}

.balloon-shine {
  position: absolute;
  width: 18px;
  height: 26px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  top: 14px;
  left: 18px;
  transform: rotate(-20deg);
}

.balloon-face {
  font-size: 20px;
  color: rgba(107, 69, 38, 0.5);
  transform: translateY(-6px);
}

.balloon.b1 {
  background: var(--band-3);
  left: 8px;
  top: 12px;
}

.balloon.b2 {
  background: var(--brown-mid);
  left: 72px;
  top: -12px;
  z-index: 2;
}

.balloon.b3 {
  background: #ecd4b5;
  left: 134px;
  top: 16px;
}

.balloon-basket {
  position: absolute;
  width: 62px;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.balloon-hint {
  margin-top: 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 1px;
  animation: hintPulse 2.4s ease-in-out infinite;
}

@keyframes hintPulse {

  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

#transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--band-3) 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

/* ============================================================
   MAIN PAGE
   ============================================================ */
#main-page {
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(30px) scale(0.99);
  transition: opacity 1s cubic-bezier(.2, .7, .3, 1), transform 1s cubic-bezier(.2, .7, .3, 1);
}

#main-page.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section-inner {
  text-align: center;
  padding: 0 20px;
  max-width: 640px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--brown-mid);
  text-transform: uppercase;
}

.section-decor-line {
  width: 50px;
  height: 4px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--brown-deep), var(--brown));
  margin: 10px auto 12px;
}

.section-round-title {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 40px);
  color: var(--text-dark);
}

[data-aos] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.3s cubic-bezier(.2, .6, .25, 1), transform 1.3s cubic-bezier(.2, .6, .25, 1);
}

[data-aos="fade-right"] {
  transform: translateX(-40px);
}

[data-aos="fade-left"] {
  transform: translateX(40px);
}

[data-aos].aos-in {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* ---------- Music Toggle (Floating Bottom-Right, Simple & Cute) ---------- */
.music-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brown-deep);
  color: var(--white);
  border: 3px solid var(--white);
  box-shadow: 0 8px 24px rgba(107, 69, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1.4), background-color 0.3s ease;
}

.music-toggle-btn.active-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.music-toggle-btn.active-show:hover {
  transform: scale(1.12);
  background: var(--brown-darker);
}

.music-disc-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-disc-icon svg {
  width: 100%;
  height: 100%;
}

.music-toggle-btn .icon-mute {
  display: none;
}

.music-toggle-btn.muted .icon-note {
  display: none;
}

.music-toggle-btn.muted .icon-mute {
  display: block;
}

.music-toggle-btn.playing {
  animation: cuteBobSpin 4s ease-in-out infinite;
  background: var(--brown-darker);
}

@keyframes cuteBobSpin {
  0% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.08) rotate(180deg);
  }

  100% {
    transform: scale(1) rotate(360deg);
  }
}

.music-pulse-glow {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(217, 175, 131, 0.6);
  opacity: 0;
  pointer-events: none;
}

.music-toggle-btn.playing .music-pulse-glow {
  animation: glowPulse 2.2s ease-out infinite;
}

@keyframes glowPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  padding: 40px 20px 24px;
  text-align: center;
  overflow: hidden;
}

.hero-deco-cloud {
  position: absolute;
  width: 140px;
  opacity: 0.8;
}

.hero-deco-cloud.cl1 {
  top: 5%;
  left: -6%;
  animation: cloudDrift 20s ease-in-out infinite;
}

.hero-deco-cloud.cl2 {
  top: 13%;
  right: -8%;
  width: 110px;
  animation: cloudDrift 24s ease-in-out infinite reverse;
}

/* Nét vẽ Gấu Bông cute trong Hero */
.hero-draw-bear {
  position: absolute;
  top: 12%;
  right: 2%;
  width: clamp(62px, 15vw, 84px);
  height: clamp(62px, 15vw, 84px);
  z-index: 3;
  filter: drop-shadow(0 4px 10px rgba(107, 69, 38, 0.18));
  animation: heroBearWiggle 4s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes heroBearWiggle {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-6px) rotate(-4deg) scale(1.03);
  }
  75% {
    transform: translateY(-3px) rotate(4deg) scale(0.98);
  }
}

/* Nét vẽ Xe Ô Tô đồ chơi trong Hero */
.hero-draw-car {
  position: absolute;
  top: 30%;
  left: 2%;
  width: clamp(72px, 16vw, 96px);
  height: clamp(46px, 10vw, 62px);
  z-index: 3;
  filter: drop-shadow(0 4px 8px rgba(107, 69, 38, 0.16));
  animation: heroCarBounce 3s ease-in-out infinite;
}

@keyframes heroCarBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

.smoke-puff {
  animation: puffFade 2s ease-out infinite;
}

.smoke-puff.p1 {
  animation-delay: 0.2s;
}

.smoke-puff.p2 {
  animation-delay: 0.8s;
}

@keyframes puffFade {
  0% {
    opacity: 0.85;
    transform: scale(0.8) translateX(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.6) translateX(-10px);
  }
}

/* Vương miện doodle trên chữ HAPPY BIRTHDAY */
.hero-happy-wrap {
  position: relative;
  display: inline-block;
}

.hero-doodle-crown {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  width: clamp(34px, 8.5vw, 46px);
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(139, 94, 60, 0.25));
  animation: crownFloat 3.2s ease-in-out infinite;
}

@keyframes crownFloat {
  0%, 100% {
    transform: translateX(-50%) rotate(-6deg) translateY(0);
  }
  50% {
    transform: translateX(-50%) rotate(-2deg) translateY(-4px);
  }
}

.hero-badge-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-badge {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 30px;
  letter-spacing: 1px;
  box-shadow: var(--shadow-soft);
}

.badge-1 {
  background: var(--white);
  color: var(--brown-deep);
  transform: rotate(-4deg);
}

.badge-2 {
  background: var(--brown-deep);
  color: var(--white);
  transform: rotate(3deg);
}

.hero-happy {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(40px, 12vw, 68px);
  line-height: 1.02;
  color: var(--brown-deep);
  letter-spacing: 1px;
  text-shadow: 3px 4px 0 rgba(255, 255, 255, 0.6), 0 10px 24px rgba(139, 94, 60, 0.2);
  margin-bottom: 6px;
}

.hero-name-wrap {
  margin-top: 10px;
}

.hero-name-prefix {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.hero-name {
  font-family: var(--font-script);
  font-size: clamp(50px, 14vw, 82px);
  color: var(--brown-darker);
  line-height: 1;
  margin: 2px 0;
}

.hero-name-nick {
  display: block;
  font-family: var(--font-round);
  font-weight: 600;
  font-size: clamp(16px, 3.4vw, 20px);
  color: var(--brown-mid);
  letter-spacing: 3px;
  margin-top: 2px;
}

.hero-name-date {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-dark);
  letter-spacing: 3px;
  margin-top: 6px;
}

.hero-photo-frame {
  position: relative;
  max-width: 300px;
  margin: 24px auto 0;
}

.hero-photo-scallop {
  border-radius: 50% 50% 10% 10% / 32% 32% 6% 6%;
  overflow: hidden;
  border: 8px solid var(--white);
  outline: 3px dashed var(--brown);
  outline-offset: 6px;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/5;
  cursor: zoom-in;
}

.hero-photo-scallop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-star {
  position: absolute;
  animation: twinkle 2.4s ease-in-out infinite;
}

.hero-photo-star.s1 {
  width: 36px;
  top: -16px;
  left: -16px;
}

.hero-photo-star.s2 {
  width: 24px;
  bottom: 10%;
  right: -14px;
  animation-delay: -1s;
}

.hero-heart-deco {
  position: absolute;
  font-size: 26px;
  animation: floatSlow 4s ease-in-out infinite;
}

.hero-heart-deco.h1 {
  top: -6%;
  right: 6%;
  animation-delay: -1s;
}

.hero-heart-deco.h2 {
  bottom: 4%;
  left: -8%;
  animation-delay: -2s;
}

.hero-photo-badge {
  position: absolute;
  bottom: -16px;
  right: -4px;
  background: var(--brown-deep);
  color: var(--white);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 40px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-6deg);
}

/* ============================================================
   INFO SECTION (MATCHING IMAGE 1 & IMAGE 2 - WARM BROWN THEME)
   ============================================================ */
.info-section {
  position: relative;
  padding: 28px 16px 20px;
  text-align: center;
}

.info-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 620px;
  margin: 0 auto 12px;
  padding: 0 4px;
}

.info-title-365 {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(28px, 7vw, 44px);
  color: var(--brown-darker);
  letter-spacing: -0.5px;
  line-height: 1;
  text-shadow: 2px 2px 0 #fff;
}

.info-quote-deco {
  font-family: serif;
  font-size: clamp(40px, 10vw, 54px);
  color: var(--brown-deep);
  line-height: 0.6;
  opacity: 0.85;
}

.info-panel {
  margin-top: 8px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.info-left {
  flex: 0 1 38%;
  z-index: 1;
  position: relative;
}

.info-left-card {
  background: var(--white);
  border-radius: 18px;
  padding: 14px 10px;
  box-shadow: var(--shadow-soft);
  position: relative;
  border: 2.5px solid var(--brown-deep);
}

.info-card-star {
  position: absolute;
  width: 22px;
  top: -10px;
  right: -6px;
  animation: twinkle 2.6s ease-in-out infinite;
}

.info-left-name {
  font-family: var(--font-script);
  font-size: clamp(22px, 5.2vw, 30px);
  color: var(--brown-darker);
  font-style: italic;
  text-align: center;
  line-height: 1.1;
}

.info-left-nick {
  font-family: var(--font-script);
  font-size: clamp(14px, 3.6vw, 19px);
  color: var(--brown-deep);
  font-style: italic;
  text-align: center;
  margin-top: 2px;
}

.info-left-divider {
  width: 100%;
  height: 2px;
  background: var(--brown-deep);
  opacity: 0.5;
  margin: 8px 0 10px;
}

.info-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(13px, 3.6vw, 16px);
  color: var(--brown-darker);
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-round);
}

.info-stat-icon {
  width: clamp(20px, 4.8vw, 26px);
  height: clamp(20px, 4.8vw, 26px);
  flex-shrink: 0;
}

.info-stat span {
  letter-spacing: 0.5px;
}

.info-right {
  flex: 0 1 62%;
  z-index: 3;
  /* Overlaps on top of left card */
  margin-left: -20px;
  /* Overlap to left */
  position: relative;
}

/* Cute Polaroid Photo Frame (Right photo in Image 1: Much Larger & Taller) */
.cute-photo-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: #fff;
  padding: 12px 12px 28px;
  border-radius: 6px;
  border: 2.5px solid var(--band-3);
  box-shadow: 0 14px 32px rgba(107, 69, 38, 0.25);
  transform: rotate(3.5deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: zoom-in;
}

.cute-photo-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.cute-photo-quote {
  position: absolute;
  top: -24px;
  left: -14px;
  font-family: serif;
  font-size: clamp(48px, 11vw, 66px);
  color: var(--brown-deep);
  line-height: 1;
  pointer-events: none;
}

.cute-photo-frame img {
  width: 100%;
  aspect-ratio: 3/4.2;
  height: clamp(260px, 50vw, 340px);
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.info-photo-plane {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* ============================================================
   GREETING CARD SECTION (LỜI NHẮN MỜI SỰ KIỆN)
   ============================================================ */
.greeting-section {
  max-width: 600px;
  margin: 10px auto 36px;
  padding: 0 8px;
  text-align: center;
  position: relative;
}

.greeting-eyebrow {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--brown-deep);
  margin-bottom: 2px;
}

.greeting-subtitle {
  font-family: var(--font-script);
  font-size: clamp(34px, 8.5vw, 50px);
  color: var(--brown-darker);
  margin-bottom: 22px;
  line-height: 1.1;
}

.greeting-subtitle .guest-name-display {
  color: var(--brown-deep);
  font-weight: 700;
}

.greeting-card {
  background: #ffffff;
  border-radius: 26px;
  padding: 12px;
  box-shadow: 0 12px 32px rgba(139, 94, 60, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 2px solid rgba(217, 175, 131, 0.6);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.greeting-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(139, 94, 60, 0.12);
}

/* Sticker / Băng dính dán góc cute đè thiệp */
.greeting-card-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  width: 96px;
  height: 22px;
  background: rgba(217, 175, 131, 0.45);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 4;
}

/* Họa tiết trang trí sinh động xung quanh */
.greeting-deco-star {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.greeting-deco-star.s1 {
  width: 30px;
  height: 30px;
  top: -14px;
  right: -10px;
  animation: twinkle 2.5s ease-in-out infinite;
}

.greeting-deco-star.s2 {
  width: 22px;
  height: 22px;
  bottom: 12px;
  left: -12px;
  animation: twinkle 3s ease-in-out infinite reverse;
}

.greeting-deco-heart {
  position: absolute;
  font-size: 20px;
  z-index: 3;
  pointer-events: none;
  animation: floatSlow 4s ease-in-out infinite;
}

.greeting-deco-heart.h1 {
  top: 8px;
  left: -14px;
}

.greeting-deco-heart.h2 {
  bottom: -12px;
  right: 14px;
  animation-delay: -1.5s;
}

.greeting-card-inner {
  border: 2px dashed rgba(139, 94, 60, 0.35);
  border-radius: 18px;
  padding: 26px 22px 20px;
  background: #fffefb;
  text-align: left;
  position: relative;
}

.greeting-title {
  font-family: var(--font-script);
  font-size: clamp(34px, 8.5vw, 48px);
  color: var(--brown-darker);
  margin-bottom: 14px;
  line-height: 1.1;
}

.greeting-body {
  font-family: var(--font-body);
  font-size: clamp(14.5px, 3.8vw, 16.5px);
  color: #5c4331;
  line-height: 1.75;
  margin-bottom: 12px;
  font-weight: 500;
}

.greeting-body strong.guest-name-display {
  color: var(--brown-deep);
  font-weight: 700;
}

.greeting-signature {
  text-align: right;
  margin-top: 20px;
  font-family: var(--font-script);
  font-size: clamp(28px, 6.5vw, 38px);
  color: var(--brown-darker);
}

.info-quote {
  margin-top: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

.br-desktop {
  display: none;
}

@media (min-width: 640px) {
  .br-desktop {
    display: inline;
  }
}

/* ============================================================
   EVENT / COUNTDOWN / CALENDAR / MAP
   ============================================================ */
.event-section {
  padding: 32px 20px 28px;
  text-align: center;
}

.event-datetime {
  margin-top: 18px;
}

.event-time {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-soft);
}

.event-date {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(26px, 6vw, 34px);
  color: var(--brown-darker);
  letter-spacing: 2px;
  margin-top: 2px;
}

.countdown-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.cd-box {
  background: var(--white);
  border-radius: 16px;
  padding: 10px 12px;
  min-width: 64px;
  box-shadow: var(--shadow-soft);
}

.cd-box span {
  display: block;
  font-family: var(--font-round);
  font-size: 22px;
  font-weight: 700;
  color: var(--brown-deep);
}

.cd-box small {
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 1px;
}

.calendar-card {
  margin-top: 22px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  background: var(--white);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.calendar-month {
  font-family: var(--font-round);
  font-weight: 700;
  color: var(--brown-deep);
  font-size: 15px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-cell {
  font-size: 12px;
  color: var(--text-soft);
  padding: 5px 0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
}

.cal-cell.head {
  color: var(--brown-mid);
  font-weight: 700;
  font-size: 11px;
}

.cal-cell.today {
  background: var(--brown-deep);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(139, 94, 60, 0.4);
}

.cal-cell.empty {
  visibility: hidden;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.pin-icon {
  width: 28px;
  flex-shrink: 0;
}

.event-loc-name {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
}

.event-loc-addr {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 2px;
}

.btn-direction {
  display: inline-block;
  margin-top: 14px;
  background: var(--brown-deep);
  color: var(--white);
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 26px;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn-direction:hover {
  transform: translateY(-3px);
  background: var(--brown-darker);
}

.event-map {
  margin-top: 18px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 4px solid var(--white);
}

.event-map iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}

/* ============================================================
   ALBUM — MATCHING IMAGE 3 (STRICTLY NO ROUNDED CORNERS)
   ============================================================ */
.album-section {
  padding: 32px 20px 28px;
  text-align: center;
}

/* ============================================================
   ALBUM COLLAGE (ARTISTIC OVERLAPPING LAYOUT)
   ============================================================ */
.album-collage-container {
  position: relative;
  max-width: 440px;
  margin: 32px auto 20px;
  min-height: 490px;
  padding: 10px;
}

/* Thẻ chữ nền góc trên bên trái */
.collage-card-topleft {
  position: absolute;
  top: 0;
  left: 4%;
  width: 54%;
  height: 205px;
  background: #fbf5ee;
  border: 2px dashed rgba(217, 175, 131, 0.7);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: left;
  z-index: 1;
}

.collage-tag {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--brown-deep);
  display: block;
  margin-bottom: 8px;
}

.collage-text {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(20px, 5vw, 25px);
  line-height: 1.25;
  color: var(--brown-darker);
  letter-spacing: 0.5px;
}

/* Khung ảnh Polaroid nổi bật */
.collage-photo-frame {
  position: absolute;
  background: #ffffff;
  padding: 10px 10px 26px;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(107, 69, 38, 0.16);
  cursor: zoom-in;
  transition: transform 0.4s ease, box-shadow 0.4s ease, z-index 0.3s;
}

.collage-photo-frame:hover {
  transform: scale(1.04) rotate(0deg) !important;
  z-index: 10 !important;
  box-shadow: 0 18px 40px rgba(107, 69, 38, 0.24);
}

.collage-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Ảnh 1: Polaroid bên phải phía trên */
.collage-photo-frame.photo-1 {
  top: 25px;
  right: 4%;
  width: 52%;
  aspect-ratio: 3/3.8;
  transform: rotate(3.5deg);
  z-index: 2;
  border: 1px solid rgba(217, 175, 131, 0.4);
}

/* Ảnh 2: Polaroid bên trái phía dưới */
.collage-photo-frame.photo-2 {
  top: 180px;
  left: 4%;
  width: 52%;
  aspect-ratio: 3/3.8;
  transform: rotate(-3.5deg);
  z-index: 3;
  border: 1px solid rgba(217, 175, 131, 0.4);
}

/* Thẻ chữ góc dưới bên phải */
.collage-card-botright {
  position: absolute;
  bottom: 10px;
  right: 4%;
  width: 54%;
  height: 140px;
  background: var(--brown-deep);
  border-radius: 18px;
  padding: 22px 20px 22px 30%;
  color: var(--white);
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(139, 94, 60, 0.25);
  z-index: 1;
}

.collage-bot-sub {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  opacity: 0.95;
  display: block;
  margin-bottom: 4px;
  white-space: nowrap;
}

.collage-bot-title {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(22px, 5vw, 28px);
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Họa tiết Xe ô tô & Gấu bông trang trí sinh động */
.album-deco-car {
  position: absolute;
  bottom: -6px;
  left: -8px;
  width: 72px;
  height: 48px;
  z-index: 4;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
  animation: floatSlow 5s ease-in-out infinite;
}

.album-deco-bear {
  position: absolute;
  top: -16px;
  right: -6px;
  width: 58px;
  height: 58px;
  z-index: 4;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
  animation: floatSlow 6s ease-in-out infinite reverse;
}

.album-deco-sparkle {
  position: absolute;
  font-size: 22px;
  z-index: 4;
  pointer-events: none;
  animation: floatSlow 4s ease-in-out infinite;
}

.album-deco-sparkle.s1 {
  top: 155px;
  left: 2px;
}

.album-deco-sparkle.s2 {
  bottom: 140px;
  right: -4px;
  animation-delay: -2s;
}

@media (max-width: 480px) {
  .album-collage-container {
    max-width: 360px;
    min-height: 440px;
  }
  .collage-card-topleft {
    height: 180px;
    padding: 18px 14px;
  }
  .collage-card-botright {
    height: 125px;
    padding: 14px 14px 14px 28%;
    width: 56%;
  }
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp-section {
  position: relative;
  padding: 36px 20px 28px;
  text-align: center;
  overflow: hidden;
}

.rsvp-deco-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
}

.rsvp-deco-circle.c1 {
  width: 160px;
  height: 160px;
  background: var(--band-3);
  top: -40px;
  left: -50px;
}

.rsvp-deco-circle.c2 {
  width: 120px;
  height: 120px;
  background: var(--brown-mid);
  bottom: -30px;
  right: -40px;
}

.rsvp-sub {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-soft);
  position: relative;
  z-index: 2;
}

.rsvp-form {
  margin-top: 20px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
  text-align: left;
}

.fg {
  margin-bottom: 14px;
}

.fg label {
  display: block;
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 13px;
  color: var(--brown-deep);
  margin-bottom: 5px;
}

.fg input,
.fg textarea,
.fg select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--band-3);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.fg input:focus,
.fg textarea:focus,
.fg select:focus {
  outline: none;
  border-color: var(--brown-deep);
  box-shadow: 0 0 0 4px rgba(217, 175, 131, 0.3);
}

.fg textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-rsvp {
  width: 100%;
  padding: 13px;
  border-radius: 40px;
  background: linear-gradient(90deg, var(--brown-deep), var(--brown-mid));
  color: var(--white);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-rsvp:hover {
  transform: translateY(-2px);
}

.btn-rsvp:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.form-msg {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
  min-height: 18px;
}

/* ============================================================
   GUESTBOOK (Continuous Infinite Marquee)
   ============================================================ */
.guestbook-section {
  padding: 36px 0 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#gb-loading,
#gb-empty {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-soft);
}

.gb-marquee-wrapper {
  margin-top: 24px;
  width: 100%;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  padding: 10px 0 20px;
}

.gb-track {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.gb-track-inner {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
  animation: gbMarqueeContinuous 32s linear infinite;
}

/* Pause animation on hover or when user touches */
.gb-marquee-wrapper:hover .gb-track-inner,
.gb-track-inner.paused {
  animation-play-state: paused;
}

@keyframes gbMarqueeContinuous {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.gb-card {
  flex: 0 0 260px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 175, 131, 0.35);
  border-radius: 20px;
  padding: 18px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(107, 69, 38, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  user-select: none;
}

.gb-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 32px rgba(107, 69, 38, 0.2);
  background: #ffffff;
}

.gb-name {
  font-family: var(--font-round);
  font-weight: 700;
  color: var(--brown-deep);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gb-msg {
  font-size: 13.5px;
  color: var(--text-dark);
  margin-top: 8px;
  line-height: 1.55;
  word-break: break-word;
}

.gb-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-soft);
  border-top: 1px dashed rgba(217, 175, 131, 0.4);
  padding-top: 10px;
}

.gb-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 11px;
}

.gb-badge.a {
  background: var(--band-2);
  color: var(--brown-darker);
}

.gb-badge.n {
  background: #f3dede;
  color: #8a4c4c;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 20px 30px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(107, 69, 38, 0.25));
}

.footer-ty {
  font-family: var(--font-script);
  font-size: 40px;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.footer-name {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 3px;
  color: var(--white);
  margin-top: 4px;
}

.footer-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}

.footer-dedicated {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-deco-line {
  width: 46px;
  height: 3px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  margin: 14px auto;
}

.footer-quote {
  font-style: italic;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   LIGHTBOX MODAL
   ============================================================ */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 16px;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-container img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}

.lightbox-modal.active .lightbox-container img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: -6px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border: none;
  font-size: 32px;
  line-height: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: scale(1.1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
  .hero-section {
    padding: 60px 20px 40px;
  }

  .event-map iframe {
    height: 300px;
  }
}

@media (max-width: 380px) {
  .balloon-cluster {
    width: 200px;
    height: 230px;
  }

  .balloon {
    width: 72px;
    height: 88px;
  }

  .hero-name {
    font-size: 56px;
  }

  .gb-card {
    flex-basis: 210px;
  }
}