:root {
  --rose: #c9184a;
  --rose-light: #ff4d6d;
  --rose-dark: #800f2f;
  --blush: #fff0f3;
  --cream: #fdf6f0;
  --gold: #d4a574;
  --gold-light: #e8c9a0;
  --deep: #2b0a14;
  --text: #3d1a24;
  --text-light: #7a4555;
  --petal-1: #ffb3c1;
  --petal-2: #ff8fa3;
  --petal-3: #ffccd5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100%;
}

body {
  font-family: 'Cormorant Garamond', serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  height: 100%;
}

/* ==================== FULL PAGE SECTION ==================== */
.fp-section {
  min-height: 100vh;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

/* ==================== NAV DOTS ==================== */
.nav-dots {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(201, 24, 74, 0.2);
  border: 2px solid rgba(201, 24, 74, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.nav-dot::before {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Marck Script', cursive;
  font-size: 0.85rem;
  color: var(--rose);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  background: rgba(255,255,255,0.9);
  padding: 2px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.nav-dot:hover::before { opacity: 1; }

.nav-dot.active {
  background: var(--rose);
  border-color: var(--rose);
  transform: scale(1.3);
}

.nav-dot.light { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.15); }
.nav-dot.light.active { background: #fff; border-color: #fff; }
.nav-dot.light::before { color: #fff; background: rgba(0,0,0,0.5); }

/* ==================== HERO ==================== */
.hero-section {
  background: linear-gradient(170deg, #1a0510 0%, #2b0a14 30%, #4a1228 60%, #800f2f 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(255,77,109,0.15), transparent),
    radial-gradient(ellipse 500px 500px at 80% 20%, rgba(212,165,116,0.1), transparent);
  pointer-events: none;
}

.hearts-container {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}

.floating-heart {
  position: absolute;
  opacity: 0;
  animation: floatHeart linear infinite;
}

@keyframes floatHeart {
  0% { transform: translateY(100vh) rotate(0deg) scale(0.5); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) rotate(45deg) scale(1.2); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; text-align: center; }

.hero-date {
  font-family: 'Marck Script', cursive;
  font-size: 1.4rem;
  color: var(--gold-light);
  letter-spacing: 3px;
  margin-bottom: 1rem;
  opacity: 0; animation: fadeUp 1s ease 0.3s forwards;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  opacity: 0; animation: fadeUp 1s ease 0.6s forwards;
}

.hero-title span {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--rose-light);
  font-size: 0.5em;
}

.hero-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(7rem, 18vw, 14rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,179,193,0.3);
  line-height: 0.9;
  margin: -0.5rem 0 0.5rem;
  opacity: 0; animation: fadeUp 1.2s ease 0.8s forwards;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  font-style: italic;
  opacity: 0; animation: fadeUp 1s ease 1s forwards;
}

.hero-names {
  font-family: 'Marck Script', cursive;
  font-size: 2.5rem;
  color: var(--petal-1);
  opacity: 0; animation: fadeUp 1s ease 1.2s forwards;
}

.hero-names .amp {
  display: inline-block;
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.8rem;
  margin: 0 0.3rem;
  vertical-align: middle;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-family: 'Marck Script', cursive;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 1.6s forwards;
  z-index: 2;
}

.scroll-hint .arrow {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(255,255,255,0.4);
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
  animation: bounceArrow 1.5s ease-in-out infinite;
}

@keyframes bounceArrow { 0%,100%{transform:rotate(45deg) translateY(0)} 50%{transform:rotate(45deg) translateY(6px)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

/* ==================== COUNTER ==================== */
.counter-section {
  background: linear-gradient(135deg, var(--rose-dark), var(--rose));
}

.counter-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23fff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.counter-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 750px;
  position: relative; z-index: 1;
}

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

.counter-value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.counter-label {
  font-family: 'Marck Script', cursive;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.4rem;
}

.counter-divider {
  width: 1px;
  background: rgba(255,255,255,0.2);
  align-self: stretch;
}

/* ==================== SHARED ==================== */
.section-header { text-align: center; margin-bottom: 2.5rem; }

.section-label {
  font-family: 'Marck Script', cursive;
  font-size: 1.2rem;
  color: var(--rose-light);
  letter-spacing: 2px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--rose-dark);
  margin-top: 0.3rem;
}

.section-title-white {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-top: 0.3rem;
}

/* ==================== LOVE LETTER ==================== */
.letter-section { background: var(--cream); }

.letter-card {
  max-width: 560px;
  width: 100%;
  background: #fff;
  padding: 2.5rem 2.5rem;
  border-radius: 2px;
  box-shadow: 0 2px 20px rgba(128,15,47,0.08), 0 0 0 1px rgba(212,165,116,0.2);
  transform: rotate(-0.5deg);
  position: relative;
}

.letter-card::before {
  content: '';
  position: absolute;
  top: 1.5rem; left: 2rem; right: 2rem;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold-light) 0, var(--gold-light) 6px, transparent 6px, transparent 12px);
}

.letter-greeting {
  font-family: 'Marck Script', cursive;
  font-size: 1.8rem;
  color: var(--rose);
  margin-bottom: 0.8rem;
  margin-top: 1rem;
}

.letter-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text);
  font-style: italic;
}
.letter-body p { margin-bottom: 0.8rem; }

.letter-signature {
  font-family: 'Marck Script', cursive;
  font-size: 1.6rem;
  color: var(--rose);
  text-align: right;
  margin-top: 1rem;
}

/* ==================== TIMELINE ==================== */
.timeline-section {
  background: linear-gradient(180deg, var(--blush), var(--cream));
  height: auto !important;
  min-height: 100vh;
  scroll-snap-align: start;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline {
  max-width: 650px;
  width: 100%;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--rose-light), var(--gold), var(--rose));
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}

.timeline-item.visible { opacity: 1; transform: translateX(0); }

.timeline-dot {
  width: 50px; min-width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--rose-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(201,24,74,0.3);
  position: relative; z-index: 1;
}

.timeline-content {
  flex: 1;
  background: #fff;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(128,15,47,0.06);
  border: 1px solid rgba(212,165,116,0.15);
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -7px; top: 16px;
  width: 14px; height: 14px;
  background: #fff;
  transform: rotate(45deg);
  border-left: 1px solid rgba(212,165,116,0.15);
  border-bottom: 1px solid rgba(212,165,116,0.15);
}

.timeline-date { font-family:'Marck Script',cursive; font-size:1rem; color:var(--gold); font-weight:600; }
.timeline-title { font-family:'Playfair Display',serif; font-size:1.15rem; font-weight:700; color:var(--rose-dark); margin:0.2rem 0; }
.timeline-desc { font-family:'Cormorant Garamond',serif; font-size:0.95rem; color:var(--text-light); line-height:1.5; }

/* ==================== POP HEARTS ==================== */
.pop-section {
  background: linear-gradient(135deg, #2b0a14, #4a1228);
}

.pop-area {
  width: 100%;
  max-width: 700px;
  height: min(55vh, 400px);
  position: relative;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  cursor: crosshair;
}

.pop-heart {
  position: absolute;
  font-size: 2.2rem;
  cursor: pointer;
  transition: transform 0.1s ease;
  user-select: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  animation: popFloat 3s ease-in-out infinite alternate;
  z-index: 2;
}
.pop-heart:hover { transform: scale(1.2); }
.pop-heart.popped { animation: popExplode 0.4s ease forwards !important; pointer-events: none; }

@keyframes popFloat { 0%{transform:translateY(0) rotate(-5deg)} 100%{transform:translateY(-15px) rotate(5deg)} }
@keyframes popExplode { 0%{transform:scale(1);opacity:1} 50%{transform:scale(1.6);opacity:0.5} 100%{transform:scale(0);opacity:0} }

.pop-message {
  position: absolute;
  font-family: 'Marck Script', cursive;
  font-size: 1.2rem;
  color: var(--petal-1);
  pointer-events: none;
  animation: popMsgRise 1.5s ease forwards;
  z-index: 10;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  max-width: 220px;
  white-space: normal;
  text-align: center;
}

@keyframes popMsgRise { 0%{opacity:1;transform:translateY(0) scale(0.8)} 100%{opacity:0;transform:translateY(-80px) scale(1.2)} }

.pop-score {
  font-family: 'Marck Script', cursive;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.6);
  margin-top: 1.2rem;
}
.pop-score span { color: var(--petal-1); font-weight: 700; }

/* ==================== SCRATCH CARD ==================== */
/* ==================== SPINNER ==================== */
.spinner-section {
  background: linear-gradient(135deg, #2b0a14, #4a1228, #800f2f);
}

.wheel-wrapper { position: relative; display: inline-block; margin-bottom: 1.2rem; }

.wheel-container { width: 500px; height: 500px; position: relative; }

.wheel-canvas {
  width: 500px; height: 500px;
  border-radius: 50%;
  transition: transform 4s cubic-bezier(0.17,0.67,0.12,0.99);
  box-shadow: 0 0 0 6px var(--gold), 0 0 0 10px rgba(212,165,116,0.3), 0 10px 40px rgba(0,0,0,0.4);
}

.wheel-pointer {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid var(--gold);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
  z-index: 5;
}

.wheel-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 3;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.spin-btn {
  font-family: 'Marck Script', cursive;
  font-size: 1.4rem;
  padding: 0.8rem 2.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--deep);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212,165,116,0.3);
  font-weight: 700;
}
.spin-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(212,165,116,0.4); }
.spin-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.spin-result {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-top: 1.2rem;
  min-height: 2rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.spin-result.show { opacity: 1; }

.spin-result-sub {
  font-family: 'Marck Script', cursive;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.3rem;
}

/* ==================== WISH JAR ==================== */

.wish-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--rose-dark);
  line-height: 1.5;
}

.wish-number {
  font-family: 'Marck Script', cursive;
  font-size: 0.95rem;
  color: var(--gold);
  margin-top: 0.4rem;
}

/* ==================== CARD GAME ==================== */
.game-section {
  background: linear-gradient(180deg, var(--blush), #fff);
}

.game-container { max-width: 440px; width: 100%; text-align: center; }

.game-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.2rem;
  font-family: 'Marck Script', cursive;
  font-size: 1.3rem;
  color: var(--text-light);
}
.game-info span { color: var(--rose); font-weight: 700; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 360px;
  margin: 0 auto 1.2rem;
}

.card { aspect-ratio: 1; perspective: 800px; cursor: pointer; }

.card-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
  border-radius: 12px;
}

.card.flipped .card-inner,
.card.matched .card-inner { transform: rotateY(180deg); }
.card.matched .card-inner { animation: matchPulse 0.5s ease; }

@keyframes matchPulse { 0%,100%{transform:rotateY(180deg) scale(1)} 50%{transform:rotateY(180deg) scale(1.08)} }

.card-front, .card-back {
  position: absolute; inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center;
}

.card-back {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  box-shadow: 0 4px 15px rgba(201,24,74,0.2);
}
.card-back::before { content: '♡'; font-size: 1.8rem; color: rgba(255,255,255,0.3); }
.card-back::after {
  content: '';
  position: absolute; inset: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
}

.card-front {
  background: #fff;
  transform: rotateY(180deg);
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(201,24,74,0.1);
  border: 2px solid var(--petal-3);
}
.card.matched .card-front { border-color: var(--gold); background: linear-gradient(135deg, #fff, var(--blush)); }

.game-btn {
  font-family: 'Marck Script', cursive;
  font-size: 1.2rem;
  padding: 0.6rem 1.8rem;
  background: linear-gradient(135deg, var(--rose), var(--rose-light));
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201,24,74,0.25);
}
.game-btn:hover { transform: translateY(-2px); }

.game-win {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255,179,193,0.2), rgba(212,165,116,0.1));
  border-radius: 16px;
  border: 1px solid var(--petal-3);
}
.game-win.show { display: flex; }

.game-win-text { font-family:'Playfair Display',serif; font-size:1.4rem; color:var(--rose-dark); font-weight:700; }
.game-win-sub { font-family:'Marck Script',cursive; font-size:1.1rem; color:var(--text-light); }

/* ==================== QUIZ ==================== */
.quiz-section {
  background: linear-gradient(180deg, var(--blush), #fff, var(--blush));
  height: auto !important;
  min-height: 100vh;
  scroll-snap-align: start;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quiz-container {
  max-width: 560px;
  width: 100%;
}

.quiz-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 24px rgba(128,15,47,0.07);
  border: 1px solid rgba(212,165,116,0.15);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.quiz-card.visible { opacity: 1; transform: translateY(0); }

.quiz-card.completed {
  border-color: var(--gold);
  box-shadow: 0 4px 24px rgba(212,165,116,0.15);
}

.quiz-number {
  font-family: 'Marck Script', cursive;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.quiz-question {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--rose-dark);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quiz-option {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 2px solid rgba(201,24,74,0.15);
  background: rgba(255,240,243,0.5);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.quiz-option:hover {
  border-color: var(--rose-light);
  background: rgba(255,77,109,0.08);
  transform: translateY(-1px);
}

.quiz-option.correct {
  border-color: #2ecc71;
  background: rgba(46,204,113,0.12);
  color: #27ae60;
  animation: quizCorrectPop 0.5s ease;
}

.quiz-option.wrong {
  border-color: var(--rose);
  background: rgba(201,24,74,0.08);
  color: var(--rose);
  animation: quizShake 0.5s ease;
}

.quiz-option.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.quiz-option.all-red {
  border-color: var(--rose);
  background: rgba(201,24,74,0.1);
  color: var(--rose);
}

@keyframes quizCorrectPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes quizShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.quiz-feedback {
  margin-top: 1rem;
  font-family: 'Marck Script', cursive;
  font-size: 1.15rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.quiz-feedback.show { opacity: 1; }
.quiz-feedback.success { color: #27ae60; }
.quiz-feedback.fail { color: var(--rose); }

/* Quiz photo reveal */
.quiz-photo-wrapper {
  margin-top: 1.2rem;
  border-radius: 14px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s ease;
  max-height: 0;
}

.quiz-photo-wrapper.show {
  opacity: 1;
  transform: scale(1);
  max-height: 1200px;
}

.quiz-photo-wrapper img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.quiz-photo-caption {
  text-align: center;
  padding: 0.8rem;
  font-family: 'Marck Script', cursive;
  font-size: 1.15rem;
  color: var(--text-light);
}

/* Special perfume question */
.quiz-special-msg {
  text-align: center;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}

.quiz-special-msg.show {
  opacity: 1;
  transform: translateY(0);
}

.quiz-special-msg-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--rose-dark);
  margin-bottom: 0.8rem;
}

.quiz-special-btn {
  font-family: 'Marck Script', cursive;
  font-size: 1.3rem;
  padding: 0.7rem 2.2rem;
  background: linear-gradient(135deg, var(--rose), var(--rose-light));
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201,24,74,0.25);
}

.quiz-special-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201,24,74,0.35);
}

.quiz-score-bar {
  text-align: center;
  padding: 1.5rem;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.quiz-score-bar.show { opacity: 1; }

.quiz-score-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rose-dark);
}

.quiz-score-sub {
  font-family: 'Marck Script', cursive;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

.quiz-next-btn {
  display: block;
  margin: 1.2rem auto 0;
  font-family: 'Marck Script', cursive;
  font-size: 1.25rem;
  padding: 0.7rem 2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--deep);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(212,165,116,0.25);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.quiz-next-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.quiz-next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212,165,116,0.4);
}

@media (max-width: 600px) {
  .quiz-card { padding: 1.5rem 1.2rem; }
  .quiz-question { font-size: 1.15rem; }
  .quiz-options { gap: 8px; }
  .quiz-option { font-size: 1rem; padding: 0.7rem 0.8rem; }
}

/* ==================== LETTER GAME ==================== */
.letter-game-section {
  background: linear-gradient(135deg, #1a0510 0%, #2b0a14 40%, #3d1028 100%);
  position: relative;
  overflow: hidden;
}

.lg-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.lg-content .lg-pin-row,
.lg-content .lg-confirm-btn,
.lg-content .lg-reveal {
  pointer-events: auto;
}

.lg-hint {
  font-family: 'Marck Script', cursive;
  color: rgba(255,255,255,0.45);
  font-size: 1rem;
  margin-top: 0.3rem;
}

.lg-field {
  display: none;
}

.lg-letter {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  transition: transform 0.2s ease, opacity 0.4s ease;
  text-shadow: 0 0 18px currentColor, 0 2px 8px rgba(0,0,0,0.5);
  animation: lgFloat 4s ease-in-out infinite alternate;
  z-index: 50;
}

.lg-letter:hover {
  transform: scale(1.35) !important;
  filter: brightness(1.3);
}

.lg-letter.collected {
  animation: lgCollect 0.6s ease forwards !important;
  pointer-events: none;
}

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

@keyframes lgCollect {
  0% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.8); opacity: 0.8; }
  100% { transform: scale(0) rotate(180deg); opacity: 0; }
}

/* Sparkle particles in the field */
.lg-field::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,179,193,0.4), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(232,201,160,0.3), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255,77,109,0.3), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,143,163,0.3), transparent);
  animation: lgSparkle 3s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes lgSparkle {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* PIN row */
.lg-pin-row {
  display: flex;
  gap: 6px;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.lg-pin-cell {
  width: 42px;
  height: 52px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: transparent;
  transition: all 0.4s ease;
}

.lg-pin-cell.filled {
  border-color: var(--gold);
  background: rgba(212,165,116,0.12);
  color: var(--gold-light);
  animation: lgPinPop 0.4s ease;
}

.lg-pin-cell.space {
  width: 20px;
  border: none;
  background: none;
}

@keyframes lgPinPop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.lg-progress {
  font-family: 'Marck Script', cursive;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.8rem;
}
.lg-progress span { color: var(--petal-1); font-weight: 700; }

/* Confirm button */
.lg-confirm-btn {
  font-family: 'Marck Script', cursive;
  font-size: 1.4rem;
  padding: 0.8rem 2.5rem;
  background: linear-gradient(135deg, var(--rose), var(--rose-light));
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: 0 4px 20px rgba(201,24,74,0.3);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.lg-confirm-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.lg-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(201,24,74,0.45);
}

/* Reveal messages */
.lg-reveal {
  margin-top: 1.5rem;
  text-align: center;
  min-height: 120px;
}

.lg-reveal-line {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  animation: lgRevealLine 0.8s ease forwards;
}

.lg-reveal-line:nth-child(1) { font-size: clamp(1.8rem, 5vw, 2.8rem); color: var(--petal-1); }
.lg-reveal-line:nth-child(2) { font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--gold-light); font-family: 'Marck Script', cursive; font-weight: 400; }
.lg-reveal-line:nth-child(3) { font-size: clamp(1rem, 2.5vw, 1.3rem); color: rgba(255,255,255,0.6); font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; }
.lg-reveal-line:nth-child(4) { font-size: 2.5rem; }

@keyframes lgRevealLine {
  0% { opacity: 0; transform: translateY(20px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Floating hearts after reveal */
.lg-reveal-heart {
  position: fixed;
  font-size: 1.8rem;
  pointer-events: none;
  z-index: 9998;
  animation: lgHeartRise 3s ease forwards;
}

@keyframes lgHeartRise {
  0% { opacity: 1; transform: translateY(0) scale(0.5) rotate(0deg); }
  100% { opacity: 0; transform: translateY(-100vh) scale(1.3) rotate(25deg); }
}

@media (max-width: 600px) {
  .lg-field { }
  .lg-pin-cell { width: 34px; height: 44px; font-size: 1.1rem; }
  .lg-pin-cell.space { width: 14px; }
  .lg-letter { font-size: 1.4rem !important; }
}

/* ==================== WISHES / FOOTER ==================== */
.wishes-section {
  background: linear-gradient(170deg, #1a0510 0%, #2b0a14 40%, #4a1228 100%);
}

.wishes-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 300px at 30% 50%, rgba(255,77,109,0.12), transparent),
    radial-gradient(circle 300px at 70% 50%, rgba(212,165,116,0.08), transparent);
  pointer-events: none;
}

.wishes-content { position: relative; z-index: 1; max-width: 560px; text-align: center; }
.wishes-emoji { font-size: 3.5rem; margin-bottom: 0.8rem; }

.wishes-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.wishes-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.wishes-heart {
  font-size: 3rem;
  display: inline-block;
  animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
  0%,100%{transform:scale(1)} 15%{transform:scale(1.15)} 30%{transform:scale(1)} 45%{transform:scale(1.1)} 60%{transform:scale(1)}
}

.wishes-footer {
  margin-top: 2rem;
  font-family: 'Marck Script', cursive;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.3);
}

/* ==================== CONFETTI ==================== */
#confetti-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999;
}

/* ==================== RESPONSIVE ==================== */
/* ==================== GALLERY ==================== */
.gallery-section {
  background: linear-gradient(180deg, var(--cream), var(--blush));
  height: auto !important;
  min-height: 100vh;
  scroll-snap-align: start;
  padding: 3rem 1.5rem;
}

.gallery-grid {
  max-width: 720px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
  gap: 12px;
  margin-top: 0.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(128,15,47,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 35px rgba(201,24,74,0.18);
  z-index: 2;
}

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

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

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item--hidden {
  display: none;
}

.gallery-group-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}

.gallery-group-badge svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(transparent, rgba(43,10,20,0.7));
  font-family: 'Marck Script', cursive;
  font-size: 1rem;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(43,10,20,0.92);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.gallery-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.35s ease;
}

.gallery-lightbox.active img {
  transform: scale(1);
}

.gallery-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gallery-lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gallery-lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.gallery-lightbox-nav.prev { left: 1.5rem; }
.gallery-lightbox-nav.next { right: 1.5rem; }

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 8px;
  }
  .gallery-item--tall { grid-row: span 2; }
  .gallery-item--wide { grid-column: span 1; }
  .gallery-lightbox-nav { width: 36px; height: 36px; font-size: 1rem; }
  .gallery-lightbox-nav.prev { left: 0.5rem; }
  .gallery-lightbox-nav.next { right: 0.5rem; }
}

@media (max-width: 600px) {
  .fp-section { padding: 1.5rem 1rem; }
  .timeline-section { padding: 3rem 1rem; }
  .timeline::before { left: 16px; }
  .timeline-dot { width: 36px; min-width: 36px; height: 36px; font-size: 1rem; }
  .timeline-item { gap: 0.8rem; margin-bottom: 1.2rem; }
  .timeline-content { padding: 0.8rem 1rem; }
  .timeline-title { font-size: 1rem; }
  .timeline-desc { font-size: 0.85rem; }
  .card-grid { gap: 8px; max-width: 300px; }
  .card-front { font-size: 1.5rem; }
  .counter-grid { gap: 1.5rem; }
  .counter-divider { display: none; }
  .pop-area { height: min(45vh, 300px); }
  .wheel-container, .wheel-canvas { width: 340px; height: 340px; }
  .letter-card { padding: 1.8rem 1.5rem; }
  .nav-dots { right: 8px; gap: 8px; }
  .nav-dot { width: 8px; height: 8px; }
}
/* MUSIC BUTTON */
.music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(43, 10, 20, 0.85);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(201, 24, 74, 0.3);
}
.music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(201, 24, 74, 0.5);
}
.music-btn.playing {
  animation: pulse-music 1.5s ease-in-out infinite;
}
@keyframes pulse-music {
  0%, 100% { box-shadow: 0 4px 15px rgba(201, 24, 74, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(201, 24, 74, 0.6); }
}
