/* ═══════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════ */
:root {
  --bg-deep:      #1a0a12;
  --bg-card:      #2a1020;
  --bg-card-hover:#311426;
  --gold:         #c9a96e;
  --gold-light:   #e8d4a8;
  --rose:         #d4687a;
  --rose-soft:    #e8a0aa;
  --text-primary: #f0e6e8;
  --text-muted:   #9a7880;
  --text-gold:    #c9a96e;
  --border:       rgba(201,169,110,0.18);
  --border-soft:  rgba(255,255,255,0.06);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

.section {
  position: relative;
  padding: 100px 5vw;
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 60px;
  line-height: 1.2;
}

.icon { font-style: normal; margin-right: 6px; }

/* HERO */
.section--hero {
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
.section--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(90,20,40,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 30% 30% at 80% 80%, rgba(50,10,25,0.4) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 20% 20%, rgba(50,10,25,0.4) 0%, transparent 60%);
  pointer-events: none;
}
#particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero__title em {
  display: block;
  font-style: italic;
  font-weight: 700;
  color: var(--gold);
  font-size: clamp(2.5rem, 6vw, 5rem);
}
.hero__divider {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 24px auto;
  opacity: 0.6;
}
.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.8;
}
.hero__heart-divider {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 32px;
}
.hero__heart-divider .line { width: 60px; height: 1px; background: var(--gold); opacity: 0.4; }
.hero__heart-divider .heart { color: var(--rose); font-size: 14px; }
.hero__scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; z-index: 1;
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-line { width: 1px; height: 50px; background: linear-gradient(to bottom, transparent, var(--gold)); }
.scroll-diamond { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* COUNTDOWN */
.section--countdown { padding-top: 80px; }
.together-date {
  font-family: var(--font-body); font-style: italic; color: var(--text-muted);
  text-align: center; font-size: 1.1rem; margin-bottom: 48px;
}
.countdown__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 100px;
}
.countdown__card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 10px 20px; text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.countdown__card:hover { border-color: rgba(201,169,110,0.4); transform: translateY(-2px); }
.countdown__card span {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700;
  color: var(--text-primary); line-height: 1; margin-bottom: 10px;
}
.countdown__card label {
  display: block; font-family: var(--font-ui); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted);
}

/* MEMORIES */
.memories .eyebrow { margin-bottom: 10px; }
.memories__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.memory__card {
  border-radius: 16px; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border-soft);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.memory__card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

.memory__img { 
  width: 100%; 
  aspect-ratio: 4/3; 
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat;
  position: relative; 
}

.memory__img--1 { background: url('/IMG/NGE-1.jpg'), linear-gradient(135deg, #3d1525 0%, #6b2a3a 40%, #4a1e28 100%); background-size: cover; background-position: center; }
.memory__img--1::after { content: '🥂'; position: absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:3rem; opacity:0.6; }

.memory__img--2 { background: url('/IMG/NGE-2.jpg'), linear-gradient(135deg, #1a1530 0%, #3d2060 40%, #251840 100%); background-size: cover; background-position: center; }
.memory__img--2::after { content: '♥'; position: absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:3rem; color:var(--rose); opacity:0.7; }

.memory__img--3 { background: url('/IMG/NGE-3.jpg'), linear-gradient(135deg, #1a2a1a 0%, #2d4a2d 40%, #1e351e 100%); background-size: cover; background-position: center; }
.memory__img--3::after { content: '💐'; position: absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:3rem; opacity:0.6; }

.memory__caption { font-family: var(--font-ui); font-size: 12px; color: var(--text-muted); text-align: center; padding: 12px; letter-spacing: 0.05em; }

/* TIMELINE */
.section--timeline { overflow: visible; }
.timeline { position: relative; padding: 20px 0 40px; }
.timeline__track {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent);
  transform: translateX(-50%);
}
.timeline__item {
  display: grid; grid-template-columns: 1fr 40px 1fr;
  align-items: start; margin-bottom: 60px; position: relative;
}
.timeline__item--left .timeline__card { grid-column: 1; grid-row: 1; padding-right: 40px; }
.timeline__item--left .timeline__dot  { grid-column: 2; grid-row: 1; justify-self: center; }
.timeline__item--right .timeline__dot  { grid-column: 2; grid-row: 1; justify-self: center; }
.timeline__item--right .timeline__card { grid-column: 3; grid-row: 1; padding-left: 40px; }
.timeline__dot {
  width: 12px; height: 12px; background: var(--rose); border-radius: 50%;
  border: 2px solid var(--bg-deep); box-shadow: 0 0 12px rgba(212,104,122,0.5);
  margin-top: 20px; transition: transform 0.3s, box-shadow 0.3s; position: relative; z-index: 1;
}
.timeline__item:hover .timeline__dot { transform: scale(1.4); box-shadow: 0 0 20px rgba(212,104,122,0.8); }
.timeline__card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px 28px; transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.timeline__card:hover { border-color: rgba(201,169,110,0.35); transform: translateY(-3px); }
.timeline__date {
  display: block; font-family: var(--font-ui); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.timeline__card h3 {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 10px;
}
.timeline__card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }
.timeline__item--right .timeline__card { text-align: right; }

/* LETTER */
.section--letter { display: flex; flex-direction: column; align-items: center; }
.letter__card {
  position: relative; max-width: 680px; width: 100%;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 60px 64px;
}
.letter__quote-open {
  position: absolute; top: 20px; left: 28px;
  font-family: var(--font-display); font-size: 5rem;
  color: rgba(201,169,110,0.15); line-height: 1; user-select: none;
}
.letter__body { position: relative; z-index: 1; }
.letter__body p {
  font-family: var(--font-body); font-style: italic; font-size: 1.05rem;
  color: var(--text-primary); line-height: 1.95; margin-bottom: 22px;
}
.letter__body p:last-child { margin-bottom: 0; }
.letter__signature {
  margin-top: 40px; text-align: right;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.letter__sig-line { width: 60px; height: 1px; background: var(--gold); opacity: 0.5; }
.letter__signature em { font-family: var(--font-body); font-style: italic; color: var(--gold); font-size: 1rem; }
.letter__diamond { color: var(--gold); font-size: 10px; opacity: 0.7; }

/* GAME */
.section--game { display: flex; flex-direction: column; align-items: center; }
.game__container {
  max-width: 600px; width: 100%; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 16px; padding: 36px;
}
.game__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.game__header span:first-child { font-family: var(--font-ui); font-size: 12px; color: var(--gold); letter-spacing: 0.05em; }
.game__turn-badge {
  font-family: var(--font-ui); font-size: 11px; padding: 4px 12px; border-radius: 20px;
  background: rgba(201,169,110,0.12); border: 1px solid var(--border); color: var(--text-muted);
}
.game__progress-bar { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; margin-bottom: 32px; overflow: hidden; }
.game__progress-fill {
  height: 100%; background: linear-gradient(to right, var(--rose), var(--gold));
  border-radius: 2px; transition: width 0.4s var(--ease-out); width: 0%;
}
.game__question {
  font-family: var(--font-body); font-style: italic; font-size: 1.2rem;
  color: var(--text-primary); text-align: center; line-height: 1.6;
  margin-bottom: 28px; min-height: 60px;
}
.game__options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.game__option {
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 18px; color: var(--text-primary); font-family: var(--font-ui); font-size: 14px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s; text-align: left; line-height: 1.4;
}
.game__option:hover { border-color: var(--gold); background: rgba(201,169,110,0.06); transform: translateY(-1px); }
.game__option.correct { border-color: #4caf50; background: rgba(76,175,80,0.12); color: #a5d6a7; }
.game__option.wrong { border-color: var(--rose); background: rgba(212,104,122,0.1); color: var(--rose-soft); }
.game__option:disabled { cursor: default; transform: none; }
.game__scores { display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: 12px; }
#score-p1 { color: var(--gold); }
#score-p2 { color: var(--rose-soft); }
.game__result {
  max-width: 600px; width: 100%; text-align: center; padding: 48px 40px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
}
.game__result h3 { font-family: var(--font-display); font-size: 2rem; color: var(--gold); margin-bottom: 16px; }
.game__result p { font-family: var(--font-body); font-style: italic; color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; }
.btn {
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--font-ui); font-size: 14px; letter-spacing: 0.1em;
  padding: 14px 36px; border-radius: 30px; cursor: pointer; transition: background 0.3s, color 0.3s;
}
.btn:hover { background: var(--gold); color: var(--bg-deep); }
.hidden { display: none !important; }

/* FOOTER */
.site-footer { border-top: 1px solid var(--border-soft); text-align: center; padding: 60px 20px 40px; }
.footer__heart { display: block; font-size: 24px; color: var(--rose); margin-bottom: 16px; }
.site-footer p { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-muted); letter-spacing: 0.1em; }
.footer__sub { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.15em; color: rgba(154,120,128,0.5); margin-top: 10px; }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .countdown__grid { grid-template-columns: repeat(3, 1fr); }
  .memories__grid { grid-template-columns: 1fr 1fr; }
  .memories__grid .memory__card:last-child { grid-column: span 2; }
  .timeline__track { display: none; }
  .timeline__item { grid-template-columns: 1fr; margin-bottom: 24px; }
  .timeline__dot { display: none; }
  .timeline__item--left .timeline__card,
  .timeline__item--right .timeline__card { grid-column: 1; grid-row: 1; padding: 0; }
  .timeline__item--right .timeline__card { text-align: left; }
  .letter__card { padding: 40px 32px; }
}
@media (max-width: 600px) {
  .countdown__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .countdown__card { padding: 18px 6px 14px; }
  .countdown__card span { font-size: 1.6rem; }
  .memories__grid { grid-template-columns: 1fr; }
  .memories__grid .memory__card:last-child { grid-column: span 1; }
  .game__options { grid-template-columns: 1fr; }
  .letter__card { padding: 32px 24px; }
  .hero__title { font-size: clamp(2.2rem, 9vw, 3.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Override placeholder emoji for real photos */
.memory__img--1::after,
.memory__img--2::after,
.memory__img--3::after {
  display: none;
}
