/* ===== CSS Variables ===== */
:root {
  --color-bg: #fbf6ed;
  --color-bg-warm: #f5ede0;
  --color-cream: #fff9f0;
  --color-red: #9b1c31;
  --color-red-deep: #7a1528;
  --color-red-light: #c4283f;
  --color-gold: #c9a84c;
  --color-gold-light: #e8c96a;
  --color-gold-dark: #a68532;
  --color-text: #3d2028;
  --color-text-muted: #6b4a52;
  --color-border: rgba(155, 28, 49, 0.15);
  --color-success: #2d6a4f;
  --color-error: #9b1c31;

  --font-display: 'Great Vibes', cursive;
  --font-heading: 'Playfair Display', serif;
  --font-body: Georgia, 'Times New Roman', serif;
  --font-cn: 'STKaiti', 'KaiTi', 'KaiTi_GB2312', serif;
  --font-cn-heading: 'Noto Serif SC', serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(122, 21, 40, 0.08);
  --shadow-hover: 0 12px 40px rgba(122, 21, 40, 0.14);
  --max-width: 640px;
  --bg-blur: 1px;
  --bg-overlay: rgba(251, 246, 237, 0.28);
  --transition: 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg-warm);
  min-height: 100dvh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Full-page Background ===== */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-bg picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.page-bg picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: blur(var(--bg-blur)) saturate(0.96);
}

.page-bg-desktop {
  display: none;
}

.page-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--bg-overlay);
}

/* ===== Desktop Layout ===== */
@media (min-width: 960px) {
  .page-bg-mobile {
    display: none;
  }

  .page-bg-desktop {
    display: block;
  }

  .page-bg-desktop img {
    object-position: center 12%;
  }

  .login-body {
    margin-left: auto;
    margin-right: auto;
    max-width: 480px;
    padding: 3rem 2rem;
  }

  .login-intro {
    display: block;
  }

  .login-card {
    padding: 2.5rem 2.25rem;
    box-shadow: 0 12px 56px rgba(122, 21, 40, 0.12);
  }

  .login-card .xi-large {
    font-size: 3.5rem;
  }

  .login-lang-float {
    right: 2rem;
    top: 1.5rem;
  }

  .top-bar-inner {
    margin-left: 0;
    max-width: var(--max-width);
    padding-left: 2.5rem;
    padding-right: 2rem;
  }

  .invitation-main {
    max-width: var(--max-width);
    padding: 1.5rem 2.5rem 3rem;
  }

  .jump-nav {
    right: max(0.5rem, calc((100vw - var(--max-width)) / 2 - 2.5rem));
    left: auto;
  }

  .hero-card {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-names {
    font-size: 2.4rem;
  }

  html[lang="en"] .hero-names {
    font-size: 3.4rem;
  }
}

@media (min-width: 1200px) {
  :root {
    --max-width: 680px;
  }

  .login-body {
    max-width: 520px;
    padding-left: 4rem;
  }
}

html[lang="zh-CN"] body,
html[lang="zh-CN"] .i18n {
  font-family: var(--font-cn);
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#app {
  position: relative;
  z-index: 2;
}

.hidden {
  display: none !important;
}

/* ===== Views ===== */
.view {
  min-height: 100dvh;
  animation: viewEnter var(--transition) both;
}

.view-login,
.view-invitation {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

.view.hidden {
  display: none !important;
}

.view-login {
  justify-content: center;
  min-height: 100dvh;
}

/* ===== Login ===== */
.login-lang-float {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  display: flex;
  gap: 0.4rem;
}

.login-lang-float .chip {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(122, 21, 40, 0.12);
}

.login-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 5rem 1rem 2.5rem;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.login-intro {
  text-align: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 252, 247, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 168, 76, 0.22);
  box-shadow: 0 4px 24px rgba(122, 21, 40, 0.08);
  width: 100%;
}

.login-intro .xi-decoration {
  margin-bottom: 0.5rem;
  text-shadow: none;
}

.login-hero-names {
  font-family: var(--font-cn-heading);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-red-deep);
  text-shadow: none;
}

html[lang="en"] .login-hero-names {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 400;
}

.glass-card {
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(201, 168, 76, 0.3);
  box-shadow: 0 8px 48px rgba(122, 21, 40, 0.14);
}

.login-card {
  width: 100%;
}

@keyframes viewEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(165deg, var(--color-cream) 0%, #fff 40%, var(--color-bg-warm) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.view-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-light), var(--color-gold-dark));
}

/* ===== Login Form ===== */
.xi-decoration {
  font-size: 1.4rem;
  color: var(--color-red);
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
}

.xi-large {
  font-size: 3rem;
  color: var(--color-red);
  line-height: 1;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(155, 28, 49, 0.15);
}

.login-title {
  font-family: var(--font-cn-heading);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--color-gold-dark);
  margin-bottom: 1.5rem;
}

html[lang="en"] .login-title {
  font-family: var(--font-heading);
  letter-spacing: 0.25em;
}

.login-hint {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}

.date-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
  margin-bottom: 0.75rem;
}

.date-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.25);
  transform: scale(1.01);
}

.login-card.shake {
  animation: shake 420ms ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
  90% { transform: translateX(3px); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 200ms, filter 200ms, box-shadow 380ms;
}

.btn:hover {
  transform: scale(1.02);
  filter: brightness(1.06);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-deep) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(155, 28, 49, 0.25);
}

.btn-lang {
  flex: 1;
  background: #fff;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  padding: 0.85rem 1rem;
}

.btn-lang:hover {
  border-color: var(--color-gold);
  background: var(--color-cream);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-red);
  color: var(--color-red);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

.btn-outline:hover {
  background: var(--color-red);
  color: #fff;
}

.btn-rsvp.loading .btn-text { opacity: 0; }
.btn-rsvp.loading .btn-spinner { display: block; }

.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: absolute;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Chips ===== */
.chip {
  padding: 0.35rem 0.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 200ms;
  color: var(--color-text-muted);
}

.chip.active,
.chip:hover {
  border-color: var(--color-gold);
  background: var(--color-red);
  color: #fff;
}

/* ===== Top Bar ===== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 247, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.22);
}

.top-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-brand {
  font-size: 1.25rem;
  color: var(--color-red);
}

.lang-chips {
  display: flex;
  gap: 0.4rem;
}

/* ===== Invitation Main ===== */
.invitation-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card {
  background: rgba(255, 252, 247, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 32px rgba(122, 21, 40, 0.1);
  transition: transform 380ms, box-shadow 380ms;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}

.hero-card {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.countdown-today {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-red);
  font-weight: 600;
}

.hero-names {
  font-family: var(--font-cn-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-red-deep);
  margin: 0.5rem 0;
}

html[lang="en"] .hero-names {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
}

.hero-tagline {
  font-family: var(--font-cn);
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

html[lang="en"] .hero-tagline {
  font-family: var(--font-heading);
  font-style: italic;
}

.section-title {
  font-family: var(--font-cn-heading);
  font-size: 1.35rem;
  color: var(--color-red);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

html[lang="en"] .section-title {
  font-family: var(--font-heading);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.date-main {
  font-family: var(--font-cn-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-red-deep);
  margin-bottom: 0.35rem;
}

html[lang="en"] .date-main {
  font-family: var(--font-heading);
}

.date-sub {
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(155,28,49,0.08));
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--color-gold-dark);
}

.tag-sm {
  margin-bottom: 1rem;
}

/* ===== Countdown ===== */
.countdown {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.countdown-unit {
  text-align: center;
  min-width: 56px;
  padding: 0.5rem 0.35rem;
  background: rgba(155, 28, 49, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.countdown-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-red);
  line-height: 1.2;
}

.countdown-label {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

html[lang="zh-CN"] .countdown-label {
  text-transform: none;
  font-size: 0.7rem;
}

/* ===== Venue ===== */
.venue-name {
  font-family: var(--font-cn-heading);
  font-size: 1.15rem;
  color: var(--color-red-deep);
  margin-bottom: 0.35rem;
}

.venue-location {
  color: var(--color-gold-dark);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.venue-desc {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.map-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ===== Media ===== */
.video-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 9;
  background: #000;
}

.venue-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.thumb {
  border: none;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  transition: transform 200ms, box-shadow 200ms;
  border: 2px solid transparent;
}

.thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: var(--color-gold);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Timeline ===== */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 68px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-gold), var(--color-red-light));
}

.timeline-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  position: relative;
}

.timeline-time {
  flex-shrink: 0;
  width: 60px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  text-align: right;
  padding-top: 2px;
}

html[lang="zh-CN"] .timeline-time {
  font-family: var(--font-cn-heading);
  font-size: 0.8rem;
}

.timeline-body strong {
  display: block;
  color: var(--color-red-deep);
  margin-bottom: 0.15rem;
}

.timeline-body p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ===== Traffic ===== */
.traffic-block {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: rgba(201, 168, 76, 0.06);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-gold);
}

.traffic-block h3 {
  font-size: 1rem;
  color: var(--color-red-deep);
  margin-bottom: 0.4rem;
}

.traffic-block p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.traffic-note {
  font-size: 0.9rem;
  color: var(--color-red);
  font-weight: 600;
  padding: 0.75rem 1rem;
  background: rgba(155, 28, 49, 0.06);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* ===== RSVP Form ===== */
.rsvp-intro {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--color-text);
  transition: border-color 200ms, box-shadow 200ms;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.25);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-fieldset {
  border: none;
  padding: 0;
  margin-bottom: 1rem;
}

.form-fieldset legend {
  display: block;
  width: 100%;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  padding: 0;
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.radio-card {
  position: relative;
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.radio-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 4.5rem;
  padding: 0.75rem 0.5rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  text-align: center;
  transition: border-color 200ms, background 200ms, box-shadow 200ms, transform 200ms;
}

.radio-icon {
  font-size: 1.15rem;
  line-height: 1;
  color: var(--color-text-muted);
  transition: color 200ms, transform 200ms;
}

.radio-text {
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.3;
}

.radio-card:hover .radio-card-inner {
  border-color: rgba(201, 168, 76, 0.45);
}

.radio-card input:focus-visible + .radio-card-inner {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.25);
}

.radio-card-accept input:checked + .radio-card-inner {
  border-color: var(--color-gold);
  background: linear-gradient(165deg, rgba(201, 168, 76, 0.14), rgba(201, 168, 76, 0.06));
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

.radio-card-accept input:checked + .radio-card-inner .radio-icon {
  color: var(--color-gold-dark);
  transform: scale(1.1);
}

.radio-card-decline input:checked + .radio-card-inner {
  border-color: var(--color-red-light);
  background: linear-gradient(165deg, rgba(155, 28, 49, 0.08), rgba(155, 28, 49, 0.03));
  box-shadow: 0 0 0 3px rgba(155, 28, 49, 0.12);
}

.radio-card-decline input:checked + .radio-card-inner .radio-icon {
  color: var(--color-red);
}

.form-group .date-input {
  margin-bottom: 0;
}

.form-error {
  color: var(--color-error);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.form-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.form-message.success {
  background: rgba(45, 106, 79, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(45, 106, 79, 0.25);
}

.form-message.error {
  background: rgba(155, 28, 49, 0.08);
  color: var(--color-error);
  border: 1px solid rgba(155, 28, 49, 0.2);
}

.btn-rsvp {
  position: relative;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* ===== Jump Nav ===== */
.jump-nav {
  position: fixed;
  right: max(0.5rem, calc((100vw - var(--max-width)) / 2 - 2.5rem));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 50;
}

.jump-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: all 200ms;
}

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

.jump-label {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
  background: rgba(255,255,255,0.9);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.jump-dot:hover .jump-label,
.jump-dot.active .jump-label {
  opacity: 1;
}

@media (max-width: 768px) {
  .jump-nav {
    right: 0.4rem;
  }
  .jump-label {
    display: none;
  }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 10, 15, 0.88);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
  animation: lightboxIn 340ms ease;
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-content { animation: none; }
}

#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
}

.lightbox-counter {
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 3;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 1.75rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 480px) {
  .thumb-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
  }

  .card {
    padding: 1.5rem 1.25rem;
  }

  .hero-names {
    font-size: 1.65rem;
  }

  html[lang="en"] .hero-names {
    font-size: 2.4rem;
  }

  .timeline::before {
    left: 58px;
  }

  .timeline-time {
    width: 50px;
    font-size: 0.75rem;
  }
}
