/* ==========================================================================
   ROMANTIC LUXURY DESIGN SYSTEM · 浪漫双城告白设计系统
   ========================================================================== */

:root {
  --bg-deep: #080911;
  --bg-dark: #0e111d;
  --bg-card: rgba(18, 22, 36, 0.75);
  --bg-card-border: rgba(255, 255, 255, 0.12);
  --bg-card-hover: rgba(26, 32, 54, 0.85);

  --rose-primary: #ff4d6d;
  --rose-vibrant: #ff2a55;
  --rose-light: #ff758f;
  --rose-soft: #ffccd5;
  --rose-pale: #fff0f3;
  --rose-glow: rgba(255, 77, 109, 0.45);

  --gold-accent: #ffd166;
  --gold-light: #ffeaa7;
  --gold-glow: rgba(255, 209, 102, 0.4);

  --blue-beacon: #4cc9f0;
  --blue-glow: rgba(76, 201, 240, 0.4);

  --text-main: #f8f9fa;
  --text-secondary: #c4c8d8;
  --text-muted: #8b92ab;

  --font-serif: "Songti SC", "SimSun", "Noto Serif SC", "STSong", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--bg-card-border);
  --shadow-glow: 0 0 30px var(--rose-glow);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body.locked {
  overflow: hidden;
}

/* Background Canvas */
#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

#fireworks-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
  display: none;
}

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  position: relative;
  z-index: 10;
  padding: 80px 0;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   STAGE 0: AUTHENTIC VINTAGE ENVELOPE (立体真实信封)
   ========================================================================== */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: radial-gradient(circle at center, #121626 0%, #05060a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.gate-overlay.unlock-dismiss {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}

.envelope-scene {
  perspective: 1500px;
  width: 100%;
  max-width: 540px;
  display: flex;
  justify-content: center;
}

.vintage-envelope {
  position: relative;
  width: 100%;
  height: 384px;
  border-radius: 10px;
  background: linear-gradient(152deg, #1b2138 0%, #10131f 100%);
  border: 1px solid rgba(255, 209, 102, 0.35);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.85), 0 0 60px rgba(255, 77, 109, 0.18);
  transform-style: preserve-3d;
  outline: 1px dashed rgba(255, 209, 102, 0.22);
  outline-offset: -9px;
}

/* The letter hiding inside */
.envelope-paper {
  position: absolute;
  inset: 14px 18px 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: #fffdf6;
  border: 1px solid #dcc79a;
  border-radius: 6px;
  padding: 26px 24px 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

/* The call to action sits on the letter and only appears once it is opened */
.paper-cta {
  margin-top: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.vintage-envelope.opened .paper-cta {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0.62s;
}

.btn-open-letter {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff758f 0%, #e8385c 100%);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(232, 56, 92, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-open-letter:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(232, 56, 92, 0.5);
}

.btn-open-letter:active {
  transform: translateY(0) scale(0.98);
}

.btn-open-arrow {
  font-size: 15px;
  letter-spacing: 0;
}

.paper-airmail-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 5px 5px 0 0;
  background: repeating-linear-gradient(90deg,
    #b22222 0, #b22222 16px,
    #fffdf6 16px, #fffdf6 24px,
    #1a4f8a 24px, #1a4f8a 40px,
    #fffdf6 40px, #fffdf6 48px);
}

.paper-handwriting {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 19px;
  color: #4a3728;
  letter-spacing: 1px;
}

.paper-handwriting-sm {
  margin-top: 8px;
  font-size: 13px;
  color: #7a6653;
  letter-spacing: 0;
}

/* Envelope front face (V shaped fold) */
.envelope-pocket {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 10px;
  background: linear-gradient(0deg, #141828 0%, #1c2238 62%, rgba(28, 34, 56, 0.92) 100%);
  clip-path: polygon(0 100%, 0 34%, 50% 64%, 100% 34%, 100% 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Address, stamp and postmark printed on the envelope front */
.envelope-front {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.postmark-box {
  position: absolute;
  right: 26px;
  bottom: 32px;
  width: 104px;
  height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 2px solid rgba(255, 138, 138, 0.45);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 138, 138, 0.1);
  transform: rotate(-13deg);
  color: rgba(255, 168, 168, 0.9);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.postmark-paw {
  font-size: 18px;
  line-height: 1;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.8;
}

.postmark-date {
  font-family: monospace;
  font-size: 8px;
  letter-spacing: 0;
}

.paper-address {
  position: absolute;
  left: 34px;
  right: 180px;
  bottom: 42px;
}

.addr-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.addr-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 3px;
}

.addr-name {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: #ffe9c9;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.addr-row-from {
  margin-bottom: 0;
}

.addr-sub {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: #ffd9c2;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* The flap, folds upward when opened */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 172px;
  z-index: 5;
  transform-origin: top center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #232a4a 0%, #171c30 100%);
  border-radius: 10px 10px 0 0;
  transition: transform 0.95s cubic-bezier(0.25, 0.8, 0.25, 1), z-index 0s linear 0.48s;
}

.vintage-envelope.opened .envelope-flap {
  transform: rotateX(178deg);
  z-index: 1;
}

.vintage-envelope.opened .envelope-paper {
  z-index: 6;
  transform: translateY(-166px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
}

/* Crimson wax seal */
.wax-seal-wrapper {
  position: absolute;
  top: 172px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.vintage-envelope.opened .wax-seal-wrapper {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.25);
  pointer-events: none;
}

.wax-seal-btn {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.seal-core {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d32f4f 0%, #a01030 55%, #6d0a22 100%);
  border: 3px solid #ffd166;
  box-shadow: 0 10px 26px rgba(160, 16, 48, 0.65), inset 0 2px 6px rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: sealFloat 3.2s ease-in-out infinite alternate;
}

.wax-seal-btn:hover .seal-core {
  box-shadow: 0 12px 34px rgba(255, 77, 109, 0.9), inset 0 2px 6px rgba(255, 255, 255, 0.3);
}

.wax-seal-btn:active .seal-core,
.wax-seal-btn.charging .seal-core {
  transform: scale(0.9);
  box-shadow: 0 0 36px #ff4d6d;
}

.seal-icon {
  font-size: 22px;
  line-height: 1;
}

.seal-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffe9a8;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
  pointer-events: none;
}

.progress-ring-circle {
  stroke: #ffe08a;
  stroke-dasharray: 277;
  stroke-dashoffset: 277;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
  filter: drop-shadow(0 0 5px #ffd166);
}

@media (max-width: 520px) {
  .vintage-envelope {
    height: 330px;
  }
  .envelope-flap {
    height: 148px;
  }
  .wax-seal-wrapper {
    top: 148px;
  }
  .envelope-paper {
    padding: 18px 16px;
  }
  .paper-handwriting {
    font-size: 16px;
  }
  .btn-open-letter {
    font-size: 15px;
    padding: 12px 16px;
    letter-spacing: 1px;
  }
  .paper-address {
    left: 24px;
    right: 150px;
    bottom: 30px;
  }
  .addr-name {
    font-size: 17px;
  }
  .addr-sub {
    font-size: 17px;
  }
  .postmark-box {
    right: 18px;
    bottom: 22px;
    width: 88px;
    height: 88px;
    font-size: 7px;
  }
}

/* ==========================================================================
   STAGE 1: HERO & DUAL-CITY RADAR
   ========================================================================== */
.hero-section {
  padding-top: 100px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.3);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--rose-soft);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06d6a0;
  box-shadow: 0 0 8px #06d6a0;
  animation: blink 2s infinite;
}

.main-heading {
  font-family: var(--font-serif);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.highlight-name {
  background: linear-gradient(135deg, #ffffff 30%, var(--rose-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.heart-join {
  display: inline-block;
  margin: 0 8px;
  font-size: clamp(28px, 5vw, 44px);
  animation: pulseBeat 1.5s ease-in-out infinite;
}

.hero-slogan {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* Dual City Radar */
.dual-city-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 24px;
  margin-bottom: 24px;
}

.city-node {
  flex: 1;
  text-align: center;
}

.city-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}

.city-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.transmission-bridge {
  flex: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}

.bridge-line {
  position: relative;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  margin-bottom: 10px;
  overflow: hidden;
}

.signal-particle {
  position: absolute;
  top: -1px;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--rose-light), #fff);
  box-shadow: 0 0 10px var(--rose-light);
}

.signal-particle.left-to-right {
  animation: particleMoveLR 2.4s linear infinite;
}

.signal-particle.right-to-left {
  animation: particleMoveRL 2.8s linear infinite 1.2s;
  background: linear-gradient(90deg, #fff, var(--blue-beacon), transparent);
}

.distance-quote-box {
  max-width: 680px;
  margin: 0 auto 36px;
  padding: 16px 24px;
  border-left: 3px solid var(--rose-light);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  text-align: left;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--rose-soft);
  line-height: 1.8;
  font-style: italic;
}

/* Live Timer Card */
.timer-card {
  padding: 32px 24px;
  margin-bottom: 40px;
}

.timer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.timer-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 1px;
}

.live-pulse-badge {
  font-size: 11px;
  color: #06d6a0;
  background: rgba(6, 214, 160, 0.12);
  border: 1px solid rgba(6, 214, 160, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.counter-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.count-num {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(180deg, #ffffff, var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.count-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Scroll Cue */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
  animation: floatUpDown 2.2s ease-in-out infinite;
}

.cue-arrow {
  font-size: 18px;
  color: var(--rose-light);
}

/* ==========================================================================
   STAGE 2: MEMORY TIMELINE
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold-accent);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
}

.timeline-container {
  position: relative;
  max-width: 740px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--rose-light) 15%, var(--gold-accent) 85%, transparent);
  box-shadow: 0 0 12px var(--rose-glow);
}

@media (min-width: 768px) {
  .timeline-container::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  width: 100%;
  padding-left: 64px;
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-left: 0;
  }
  .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 48px;
    text-align: right;
  }
  .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 48px;
    text-align: left;
  }
}

.timeline-node {
  position: absolute;
  top: 16px;
  left: 15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--rose-light);
  box-shadow: 0 0 16px var(--rose-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  z-index: 5;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .timeline-node {
    left: auto;
    right: -14px;
  }
  .timeline-item:nth-child(even) .timeline-node {
    left: -14px;
    right: auto;
  }
}

.timeline-item:hover .timeline-node {
  transform: scale(1.2);
  border-color: var(--gold-accent);
}

.timeline-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 109, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 77, 109, 0.2);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-meta {
    justify-content: flex-end;
  }
}

.timeline-tag {
  background: rgba(255, 77, 109, 0.15);
  border: 1px solid rgba(255, 77, 109, 0.3);
  color: var(--rose-soft);
  font-size: 11px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.timeline-date {
  font-size: 12px;
  color: var(--gold-accent);
  font-weight: 500;
}

.timeline-card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.timeline-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.timeline-quote {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--rose-soft);
  border-left: 2px solid var(--rose-light);
  padding-left: 10px;
  margin-bottom: 14px;
  font-style: italic;
  text-align: left;
}

.timeline-img-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
  cursor: pointer;
  max-height: 200px;
}

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

.timeline-img-wrap:hover .timeline-img {
  transform: scale(1.05);
}

/* ==========================================================================
   STAGE 3: FUTURE VOUCHERS
   ========================================================================== */
.vouchers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.voucher-card {
  position: relative;
  background: linear-gradient(135deg, rgba(28, 34, 56, 0.9), rgba(16, 19, 32, 0.95));
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.voucher-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 209, 102, 0.25);
}

.voucher-badge {
  display: inline-block;
  font-size: 10px;
  color: var(--gold-accent);
  background: rgba(255, 209, 102, 0.15);
  border: 1px solid rgba(255, 209, 102, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.voucher-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.voucher-icon {
  font-size: 28px;
}

.voucher-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.voucher-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.voucher-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.voucher-stamp-target {
  font-size: 12px;
  color: var(--rose-soft);
}

.voucher-seal {
  font-family: var(--font-serif);
  font-size: 11px;
  color: #e63946;
  border: 2px solid #e63946;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transform: rotate(-10deg);
  opacity: 0.3;
  transition: all 0.4s ease;
  font-weight: 700;
}

.voucher-card.claimed .voucher-seal {
  opacity: 1;
  color: #ff4d6d;
  border-color: #ff4d6d;
  box-shadow: 0 0 15px rgba(255, 77, 109, 0.5);
  transform: rotate(-12deg) scale(1.1);
}

/* ==========================================================================
   STAGE 4: CONFESSION CLIMAX
   ========================================================================== */
.confession-section {
  position: relative;
  padding: 100px 0;
}

.confession-wrapper {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 36px;
  border: 1px solid rgba(255, 77, 109, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 77, 109, 0.2);
}

.confession-crest {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.3) 0%, rgba(20, 24, 40, 0.9) 100%);
  border: 1px solid var(--rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 0 25px var(--rose-glow);
}

.confession-letter {
  margin-bottom: 48px;
  line-height: 2;
  font-family: var(--font-serif);
}

.letter-salutation {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 20px;
}

.letter-body p {
  font-size: clamp(15px, 2.2vw, 17px);
  color: var(--text-main);
  margin-bottom: 18px;
  text-indent: 2em;
}

/* Proposal question */
.proposal-box {
  text-align: center;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.proposal-question {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff, var(--rose-soft), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glowText 3s ease-in-out infinite alternate;
}

.proposal-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.action-buttons-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  min-height: 60px;
}

.btn-confess-yes {
  background: linear-gradient(135deg, #ff758f 0%, #ff4d6d 50%, #c9184a 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 16px 42px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 77, 109, 0.5), 0 0 20px var(--rose-glow);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-confess-yes:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 40px rgba(255, 77, 109, 0.7), 0 0 35px var(--rose-vibrant);
}

.btn-confess-no {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 16px 32px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-confess-no:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.dodge-toast {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 24, 40, 0.95);
  border: 1px solid var(--rose-light);
  color: var(--rose-soft);
  font-size: 13px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   STAGE 5: LOVE CERTIFICATE
   ========================================================================== */
.certificate-section {
  padding: 80px 0;
}

.certificate-frame {
  max-width: 680px;
  margin: 0 auto 36px;
  background: #fffbf0;
  color: #2b2b2b;
  border: 12px double #b8860b;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 209, 102, 0.3);
  border-radius: 4px;
  position: relative;
}

.cert-inner-border {
  border: 2px solid #b8860b;
  padding: 32px 28px;
  position: relative;
  background: radial-gradient(circle at center, #ffffff 60%, #fff9e6 100%);
}

.cert-header {
  text-align: center;
  margin-bottom: 24px;
}

.cert-emblem {
  font-size: 36px;
  margin-bottom: 8px;
}

.cert-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  color: #8b0000;
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.cert-subtitle {
  font-size: 11px;
  letter-spacing: 2px;
  color: #b8860b;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cert-no {
  font-family: monospace;
  font-size: 12px;
  color: #666;
}

.cert-parties {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 28px 0;
  padding: 14px 0;
  border-top: 1px dashed #b8860b;
  border-bottom: 1px dashed #b8860b;
}

.party-box {
  text-align: center;
}

.party-role {
  font-size: 11px;
  color: #888;
  display: block;
  margin-bottom: 4px;
}

.party-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #8b0000;
}

.party-seal {
  background: #8b0000;
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.cert-pledge-box {
  margin-bottom: 20px;
  text-align: justify;
}

.cert-pledge {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  text-indent: 2em;
}

.cert-rules {
  margin-bottom: 28px;
  font-size: 12px;
  color: #555;
  line-height: 1.8;
}

.cert-rules p {
  margin-bottom: 4px;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 14px;
  border-top: 1px solid #ddd;
}

.cert-date-box {
  font-size: 12px;
  color: #666;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cert-official-seal {
  position: relative;
  width: 90px;
  height: 90px;
}

.seal-ring {
  width: 90px;
  height: 90px;
  border: 3px solid #b22222;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-15deg);
  box-shadow: inset 0 0 0 2px #b22222;
}

.seal-inner-star {
  color: #b22222;
  font-size: 22px;
}

.seal-text-circle {
  position: absolute;
  bottom: 8px;
  font-size: 9px;
  color: #b22222;
  font-weight: 800;
  white-space: nowrap;
}

.cert-actions {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-gold {
  background: linear-gradient(135deg, #ffd166 0%, #f6bd60 50%, #e76f51 100%);
  color: #2b2b2b;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 209, 102, 0.4);
  transition: all 0.3s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 209, 102, 0.6);
}

.cert-tip {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER & MODALS
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img:not([src]) {
  display: none;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .dual-city-card {
    flex-direction: column;
    gap: 20px;
  }
  .transmission-bridge {
    width: 100%;
    padding: 10px 0;
  }
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .confession-wrapper {
    padding: 36px 20px;
  }
  .action-buttons-wrap {
    flex-direction: column;
    gap: 14px;
  }
  .btn-confess-yes,
  .btn-confess-no {
    width: 100%;
  }
}
