:root {

  --primary: #b83256;
  --primary-light: #e87a90;
  --primary-soft: #fdf0f3;
  --primary-dark: #8c1e3b;

  --gold: #c59b27;
  --gold-light: #f7e7be;
  --gold-dark: #8f6e16;
  --gold-gradient: linear-gradient(135deg, #b83256 0%, #c59b27 100%);

  --bg-page: #faf7f5;
  --bg-card: rgba(255, 255, 255, 0.94);
  --border-card: rgba(230, 210, 215, 0.6);
  --border-gold: rgba(197, 155, 39, 0.35);

  --text-main: #251c1e;
  --text-muted: #615255;
  --text-light: #8a7a7e;

  --shadow-subtle: 0 4px 20px rgba(184, 50, 86, 0.05);
  --shadow-card: 0 12px 35px rgba(184, 50, 86, 0.08);
  --shadow-hover: 0 20px 45px rgba(184, 50, 86, 0.14);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Be Vietnam Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Dancing Script', cursive;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.intro-locked {
  overflow: hidden;
  height: 100vh;
  position: fixed;
  width: 100%;
}

.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(at 0% 0%, rgba(255, 235, 240, 0.65) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(253, 245, 230, 0.75) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(255, 235, 240, 0.55) 0px, transparent 60%);
  transform: translateZ(0);
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(250, 247, 245, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.intro-overlay.fade-out {
  opacity: 0;
  transform: scale(1.05);
  visibility: hidden;
  pointer-events: none;
}

.intro-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 28px;
  padding: 3rem 2.4rem 2.6rem;
  text-align: center;
  box-shadow:
    0 25px 60px rgba(184, 50, 86, 0.14),
    0 0 0 1px rgba(197, 155, 39, 0.28);
  position: relative;
  animation: introPopIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #b83256, #f7e7be, #c59b27, #b83256);
  border-radius: 28px 28px 0 0;
}

.intro-wax-seal {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 35% 35%, #d6336c, #8c1e3b);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(140, 30, 59, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 2px solid rgba(255, 230, 200, 0.6);
  animation: pulseGently 2s infinite ease-in-out;
}

.intro-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.intro-quote {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1.45;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.intro-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.intro-btn {
  width: 100%;
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 28px rgba(184, 50, 86, 0.32);
}

.intro-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 34px rgba(184, 50, 86, 0.42);
}

.intro-hint {
  font-size: 0.76rem;
  color: var(--text-light);
  margin-top: 0.9rem;
  letter-spacing: 0.3px;
}

@keyframes introPopIn {
  0% { opacity: 0; transform: scale(0.9) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pulseGently {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.08); }
}

::selection {
  background: var(--primary-light);
  color: #fff;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(250, 247, 245, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(230, 210, 215, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--primary-dark);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  white-space: nowrap;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ffd3dc 0%, #ff8da4 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 3px 8px rgba(184, 50, 86, 0.15);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

@media (max-width: 1050px) {
  .nav-links {
    gap: 1rem;
  }
  .nav-link {
    font-size: 0.86rem;
  }
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.2rem 0;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  font-size: 1.4rem;
  color: var(--primary-dark);
}

.hero {
  min-height: 94vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8.5rem 0 5.5rem;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: 5%;
  left: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 192, 203, 0.38) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
  animation: floatSlow 14s ease-in-out infinite alternate;
}

.hero-glow-2 {
  position: absolute;
  top: 35%;
  right: -8%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 235, 190, 0.38) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
  animation: floatSlow 16s ease-in-out infinite alternate-reverse;
}

@keyframes floatSlow {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(35px) scale(1.06); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.hero-text {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--border-gold);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  box-shadow: 0 2px 10px rgba(197, 155, 39, 0.08);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  line-height: 1.16;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-title-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, #d4637f 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-quote-box {
  margin-bottom: 1.25rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--primary-light);
}

.hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1.5;
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #b83256 0%, #c93b62 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(184, 50, 86, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(184, 50, 86, 0.38);
}

.btn-outline {
  background: #fff;
  color: var(--text-main);
  border: 1px solid rgba(184, 50, 86, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 50, 86, 0.1);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-polaroid-frame {
  width: 100%;
  max-width: 410px;
  background: #ffffff;
  padding: 1rem 1rem 1.6rem;
  border-radius: 14px;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: rotate(1.5deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.hero-polaroid-frame:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 25px 55px rgba(184, 50, 86, 0.16);
}

.hero-washi-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: rgba(255, 218, 226, 0.85);
  border: 1px dashed rgba(184, 50, 86, 0.3);
  border-radius: 2px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.hero-polaroid-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #fdfbf7;
}

.hero-polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.6s ease;
}

.hero-polaroid-frame:hover .hero-polaroid-img {
  transform: scale(1.04);
}

.hero-polaroid-caption {
  margin-top: 1.1rem;
  text-align: center;
}

.hero-polaroid-title {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--primary-dark);
  line-height: 1.3;
}

.hero-polaroid-sub {
  font-size: 0.82rem;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.divider-flower {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem auto 0;
  color: var(--gold);
  font-size: 0.9rem;
}

.divider-flower::before,
.divider-flower::after {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.magic-mirror-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
  padding: 3rem 2.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
}

.mirror-search-box {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  flex-wrap: wrap;
}

.mirror-input {
  flex: 1;
  min-width: 220px;
  padding: 0.8rem 1.3rem;
  border: 1px solid rgba(184, 50, 86, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mirror-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184, 50, 86, 0.12);
}

.mirror-scanning {
  display: none;
  margin: 1.5rem 0;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  animation: pulseBounce 1.2s infinite;
}

.mirror-result-card {
  display: none;
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--gold-light);
  box-shadow: var(--shadow-subtle);
  margin-top: 1.5rem;
  text-align: left;
  animation: popIn 0.4s ease-out;
}

.mirror-recipient-tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.mirror-award-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.mirror-badge-pill {
  display: inline-block;
  background: #fff9e6;
  color: var(--gold-dark);
  border: 1px solid var(--gold-light);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.mirror-award-desc {
  font-size: 0.96rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 0;
}

.fortune-wrapper {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  padding: 3rem 2.5rem;
}

.fortune-trigger-box {
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fortune-trigger-box:active {
  transform: scale(0.96);
}

.fortune-envelope {
  width: 120px;
  height: 120px;
  margin: 0 auto 0.9rem;
  background: linear-gradient(135deg, #ff7e9e 0%, #b83256 100%);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  box-shadow:
    0 12px 28px rgba(184, 50, 86, 0.28),
    0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 20px rgba(255, 126, 158, 0.35);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  animation: floatBob 3.6s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.fortune-trigger-box:hover .fortune-envelope {
  transform: translateY(-8px) scale(1.06);
  box-shadow:
    0 18px 36px rgba(184, 50, 86, 0.35),
    0 0 0 4px #ffffff,
    0 0 28px rgba(255, 126, 158, 0.5);
}

.fortune-trigger-box.drawing .fortune-envelope {
  animation: envelopeShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes envelopeShake {
  0% { transform: scale(1); }
  25% { transform: scale(0.9) rotate(-8deg); }
  50% { transform: scale(1.12) rotate(6deg); }
  75% { transform: scale(0.95) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.fortune-trigger-hint {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(184, 50, 86, 0.18);
  box-shadow: 0 3px 10px rgba(184, 50, 86, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fortune-hand-icon {
  display: inline-block;
  font-size: 1.05rem;
  animation: nudgeHand 1.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes nudgeHand {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

.fortune-trigger-box:hover .fortune-trigger-hint {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 50, 86, 0.14);
}

.fortune-display {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid var(--border-gold);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.fortune-display.revealing {
  animation: fortuneReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fortuneReveal {
  0% {
    opacity: 0.4;
    transform: scale(0.97) translateY(6px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.fortune-top-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.3rem;
}

.fortune-headline {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fortune-detail {
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.7;
}

.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.polaroid-card {
  background: #fff;
  padding: 0.9rem 0.9rem 1.4rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.polaroid-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 20px;
  background: rgba(255, 220, 230, 0.75);
  border: 1px dashed rgba(184, 50, 86, 0.25);
  z-index: 2;
  border-radius: 2px;
}

.polaroid-card:nth-child(1) { transform: rotate(-1.5deg); }
.polaroid-card:nth-child(2) { transform: rotate(1.2deg) translateY(-4px); }
.polaroid-card:nth-child(3) { transform: rotate(-1deg); }
.polaroid-card:nth-child(4) { transform: rotate(1.4deg) translateY(-3px); }

.polaroid-card:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.02);
  box-shadow: 0 18px 40px rgba(184, 50, 86, 0.14);
  z-index: 5;
}

.polaroid-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  border-radius: 6px;
  background: #fbf9f6;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.polaroid-card:hover .polaroid-img {
  transform: scale(1.05);
}

.polaroid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(0, 0, 0, 0.45) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: flex-end;
  padding: 0.8rem;
}

.polaroid-card:hover .polaroid-overlay {
  opacity: 1;
}

.polaroid-zoom-hint {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
}

.polaroid-caption-area {
  margin-top: 1rem;
  text-align: center;
}

.polaroid-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
}

.polaroid-title {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.polaroid-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.polaroid-card.reveal-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.polaroid-card.reveal-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.polaroid-card.reveal-on-scroll:nth-child(3) { transition-delay: 0.25s; }
.polaroid-card.reveal-on-scroll:nth-child(4) { transition-delay: 0.35s; }

.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.86rem;
}

.wishes-wall-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
}

.wall-form {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.wall-input {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(184, 50, 86, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  background: #fff;
  transition: border-color 0.2s ease;
}

.wall-input:focus {
  border-color: var(--primary);
}

.wall-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.2rem;
}

.wall-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-style: italic;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  border: 2px dashed rgba(184, 50, 86, 0.2);
  line-height: 1.8;
}

.wall-sticky-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border-top: 3px solid var(--primary-light);
  transition: transform 0.2s ease;
  animation: popIn 0.35s ease-out;
}

.wall-sticky-card:hover {
  transform: translateY(-3px);
}

.wall-card-author {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.wall-card-content {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.55;
}

.wall-card-time {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.8rem;
  text-align: right;
}

.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 12, 0.88);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 780px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: #111;
}

.lightbox-details {
  padding: 1.4rem 1.8rem;
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.lightbox-quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s ease;
  z-index: 2;
}

.lightbox-close:hover {
  background: var(--primary);
}

.footer {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 235, 240, 0.5) 100%);
  padding: 4.5rem 0 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(230, 210, 215, 0.5);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}

.footer-quote {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--primary);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.8rem;
  list-style: none;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-light);
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes soundBar {
  0% { height: 3px; }
  100% { height: 12px; }
}

@keyframes pulseBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes popIn {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.click-heart {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: floatUpFade 1.1s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes floatUpFade {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -100px) scale(1.2);
    opacity: 0;
  }
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.8rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero-quote-box {
    border-left: none;
    padding-left: 0;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.8rem;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .fortune-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .polaroid-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wall-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 4.2rem 0;
  }

  .section-header {
    margin-bottom: 2.2rem;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 247, 245, 0.98);
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(230, 210, 215, 0.5);
    text-align: center;
    gap: 1.2rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 6.8rem 0 3.5rem;
  }

  .hero-glow-1,
  .hero-glow-2 {
    width: 200px;
    height: 200px;
    filter: blur(45px);
    opacity: 0.5;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-polaroid-frame {
    max-width: 320px;
    transform: rotate(0deg);
  }

  .polaroid-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .magic-mirror-card {
    padding: 2.2rem 1.4rem;
  }

  .fortune-wrapper {
    padding: 2.2rem 1.4rem;
    gap: 1.8rem;
  }

  .fortune-envelope {
    width: 90px;
    height: 90px;
    font-size: 2.8rem;
    border-radius: 20px;
  }

  .fortune-headline {
    font-size: 1.35rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .fortune-display {
    padding: 1.5rem 1.2rem;
    text-align: center;
  }

  .wishes-wall-wrapper {
    padding: 2.2rem 1.4rem;
  }

  .wall-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .lightbox-modal {
    padding: 1rem;
  }

  .lightbox-details {
    padding: 1.1rem 1.2rem;
  }

  .lightbox-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .nav-logo {
    font-size: 1.05rem;
    gap: 0.4rem;
  }

  .nav-logo-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .intro-card {
    padding: 2.2rem 1.25rem 1.8rem;
    border-radius: 20px;
  }

  .intro-title {
    font-size: 1.5rem;
  }

  .intro-quote {
    font-size: 1.2rem;
  }

  .intro-desc {
    font-size: 0.88rem;
    margin-bottom: 1.3rem;
  }

  .hero-title {
    font-size: 1.95rem;
    line-height: 1.22;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.8rem;
  }

  .hero-quote-box {
    font-size: 1.05rem;
  }

  .hero-desc {
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-polaroid-frame {
    max-width: 280px;
    padding: 0.75rem 0.75rem 1.25rem;
  }

  .hero-polaroid-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section-subtitle {
    font-size: 0.75rem;
  }

  .mirror-search-box {
    flex-direction: column;
    gap: 0.6rem;
  }

  .mirror-search-box .mirror-input {
    width: 100%;
    min-width: 0;
  }

  .mirror-search-box .btn {
    width: 100%;
    justify-content: center;
  }

  .mirror-result-card {
    padding: 1.3rem 1rem;
    border-radius: 16px;
  }

  .mirror-award-title {
    font-size: 1.35rem;
  }

  .mirror-award-desc {
    font-size: 0.9rem;
  }

  .fortune-wrapper {
    padding: 1.8rem 1rem;
    border-radius: 18px;
  }

  .fortune-envelope {
    width: 82px;
    height: 82px;
    font-size: 2.5rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
  }

  .fortune-trigger-hint {
    font-size: 0.84rem;
    padding: 0.42rem 0.95rem;
  }

  .fortune-display {
    padding: 1.2rem 0.9rem;
  }

  .fortune-headline {
    font-size: 1.15rem;
  }

  .fortune-detail {
    font-size: 0.88rem;
  }

  .polaroid-card {
    padding: 0.75rem 0.75rem 1.2rem;
  }

  .polaroid-title {
    font-size: 1.4rem;
  }

  .polaroid-desc {
    font-size: 0.82rem;
  }

  .wishes-wall-wrapper {
    padding: 1.8rem 1rem;
    border-radius: 18px;
  }

  .wall-form {
    gap: 0.65rem;
  }

  .wall-form .btn {
    width: 100%;
    justify-content: center;
  }

  .wall-sticky-card {
    padding: 1rem;
  }

  .footer {
    padding: 3.2rem 0 2rem;
  }

  .footer-logo {
    font-size: 1.25rem;
  }

  .footer-quote {
    font-size: 1.2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
  }
}
