:root {
  color-scheme: dark;
  --museum-gold: #d8ad61;
  --museum-brass: #a97939;
  --museum-brightness-lift: 1.2;
  --museum-ink: #fff8e8;
  --museum-panel:
    linear-gradient(180deg, rgba(32, 31, 29, 0.88), rgba(17, 18, 18, 0.88)),
    rgba(21, 22, 22, 0.84);
  --museum-panel-soft:
    linear-gradient(180deg, rgba(255, 250, 240, 0.068), rgba(255, 250, 240, 0.026)),
    rgba(17, 18, 18, 0.8);
  --museum-node-glow: 0 0 0 10px rgba(216, 173, 97, 0.16), 0 0 26px rgba(216, 173, 97, 0.4);
  --bg: #090a0b;
  --panel: var(--museum-panel);
  --panel-solid: #151617;
  --panel-strong: linear-gradient(180deg, rgba(37, 35, 32, 0.92), rgba(18, 19, 19, 0.88));
  --ink: #f4ecdc;
  --ink-strong: var(--museum-ink);
  --muted: #beb3a2;
  --muted-2: #8a8277;
  --line: rgba(218, 174, 95, 0.3);
  --line-strong: rgba(224, 184, 106, 0.7);
  --jade: #64c6ad;
  --red: #d27766;
  --blue: #6f93d2;
  --violet: #9d89cc;
  --gold: var(--museum-gold);
  --green: #91b974;
  --rose: #cf7f9b;
  --cyan: #5aaebe;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 250, 240, 0.05);
  --label-width: 178px;
  --canvas-width: 1800px;
  --cursor-left: 0px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 24% 8%, rgba(206, 170, 102, 0.15), transparent 28%),
    radial-gradient(circle at 72% 18%, rgba(100, 198, 173, 0.075), transparent 26%),
    linear-gradient(180deg, #090a0b 0%, #141514 46%, #090a0b 100%),
    repeating-linear-gradient(90deg, rgba(215, 178, 105, 0.055) 0 1px, transparent 1px 120px);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(216, 173, 97, 0.065), transparent 36%),
    linear-gradient(rgba(255, 250, 240, 0.032) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(255, 250, 240, 0.024) 1px, transparent 1px) 0 0 / 48px 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 88%);
}

::selection {
  background: rgba(212, 170, 95, 0.34);
  color: var(--ink-strong);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

input {
  color-scheme: dark;
}

.app-shell {
  min-height: 100vh;
  padding: 18px 18px 96px;
}

.topbar,
.timeline-panel,
.year-priority-card,
.event-explainer-card,
.network-explainer-card,
.civilization-lens-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(145%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 28% 0%, rgba(216, 173, 97, 0.08), transparent 34%),
    var(--museum-panel);
}

.brand h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--ink-strong);
}

.brand {
  flex: 1 1 540px;
  min-width: 0;
}

.brand-kicker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}

.brand-kicker-row .eyebrow {
  margin: 0;
}

.brand-title-row {
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 1.6vw, 22px);
  flex-wrap: nowrap;
}

.brand h1 {
  font-size: clamp(30px, 3.7vw, 52px);
  font-weight: 860;
}

.atlas-meta {
  display: grid;
  gap: 3px;
  padding-bottom: clamp(2px, 0.4vw, 6px);
  color: var(--muted);
  line-height: 1.15;
  min-width: max-content;
}

.atlas-meta span {
  color: var(--gold);
  font-size: clamp(9px, 0.86vw, 11px);
  font-weight: 880;
  letter-spacing: 0.04em;
}

.atlas-meta strong {
  color: var(--ink-strong);
  font-size: clamp(12px, 1.25vw, 18px);
  font-weight: 840;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.guide-trigger,
.reward-trigger {
  display: grid;
  gap: 4px;
  min-width: 138px;
  border: 1px solid rgba(216, 173, 97, 0.28);
  border-radius: 8px;
  padding: 8px 11px;
  background:
    linear-gradient(180deg, rgba(216, 173, 97, 0.1), rgba(255, 250, 240, 0.022)),
    rgba(255, 255, 255, 0.034);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.055);
  text-align: right;
}

.guide-trigger {
  min-width: 152px;
  padding: 8px 11px;
  color: inherit;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.reward-trigger {
  min-width: 110px;
  border-color: rgba(245, 204, 126, 0.74);
  padding: 9px 12px;
  background: linear-gradient(180deg, #f8d88a, #d7a348);
  color: #1b1406;
  box-shadow: 0 14px 30px rgba(216, 173, 97, 0.24), inset 0 1px 0 rgba(255, 250, 240, 0.46);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.guide-trigger:hover {
  border-color: rgba(100, 198, 173, 0.56);
  background:
    linear-gradient(180deg, rgba(100, 198, 173, 0.12), rgba(255, 250, 240, 0.024)),
    rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.reward-trigger:hover {
  border-color: rgba(255, 231, 164, 0.9);
  background: linear-gradient(180deg, #ffe3a1, #e1ad51);
  box-shadow: 0 18px 34px rgba(216, 173, 97, 0.32), inset 0 1px 0 rgba(255, 250, 240, 0.54);
  transform: translateY(-1px);
}

.author-contact-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: rgba(244, 232, 210, 0.62);
  text-align: left;
  white-space: nowrap;
}

.author-contact-inline span {
  color: rgba(222, 208, 180, 0.52);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.author-contact-inline strong {
  color: rgba(245, 204, 126, 0.82);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0;
}

.guide-trigger span,
.reward-trigger span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 820;
}

.guide-trigger strong,
.reward-trigger strong {
  color: var(--gold);
  font-size: 13px;
  font-weight: 860;
  letter-spacing: 0;
  white-space: nowrap;
}

.guide-trigger strong {
  color: #ccefe5;
}

.reward-trigger strong {
  color: #1b1406;
}

.reward-trigger span {
  color: rgba(27, 20, 6, 0.66);
}

.reward-trigger:focus-visible {
  outline: 3px solid rgba(245, 204, 126, 0.34);
  outline-offset: 3px;
}

.search-box {
  display: grid;
  gap: 6px;
  min-width: 210px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.search-box input {
  width: min(320px, 60vw);
  height: 40px;
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 8px;
  padding: 0 12px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.06), rgba(255, 250, 240, 0.02)),
    rgba(255, 255, 255, 0.04);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.search-box input:focus {
  border-color: rgba(212, 170, 95, 0.72);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(212, 170, 95, 0.13);
}

.search-box input::placeholder {
  color: rgba(244, 239, 227, 0.42);
}

.reading-guide {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid rgba(216, 173, 97, 0.28);
  border-radius: 8px;
  padding: 10px;
  background:
    radial-gradient(circle at 18% 0%, rgba(216, 173, 97, 0.13), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(100, 198, 173, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.056), rgba(255, 250, 240, 0.018)),
    rgba(12, 13, 14, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(138%);
}

.reading-guide-floating {
  position: fixed;
  top: 148px;
  right: 18px;
  z-index: 34;
  width: min(430px, calc(100vw - 36px));
  max-height: calc(100vh - 176px);
  margin: 0;
  overflow: hidden;
  opacity: 0.9;
  resize: none;
  transition: opacity 160ms ease, box-shadow 160ms ease;
}

.reading-guide-floating:is(:hover, :focus-within, .is-dragging) {
  opacity: 0.98;
}

.reading-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reading-guide-handle {
  display: grid;
  gap: 2px;
  min-width: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.reading-guide-handle:active {
  cursor: grabbing;
}

.reading-guide-handle .eyebrow {
  margin-bottom: 2px;
  font-size: 10px;
}

.reading-guide-handle strong {
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 880;
  line-height: 1.1;
}

.reading-guide-handle span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.3;
}

.reading-guide-toggle {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid rgba(245, 204, 126, 0.34);
  border-radius: 8px;
  padding: 0 10px;
  background:
    linear-gradient(180deg, rgba(245, 204, 126, 0.14), rgba(255, 250, 240, 0.024)),
    rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-size: 12px;
  font-weight: 840;
}

.reading-guide-toggle:hover {
  border-color: rgba(245, 204, 126, 0.68);
}

.reading-guide-body {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 260px);
  overflow: auto;
  padding-right: 2px;
}

.reading-guide-body::-webkit-scrollbar {
  width: 8px;
}

.reading-guide-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
}

.reading-guide-body::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(212, 170, 95, 0.42);
}

.reading-guide.is-minimized {
  width: min(210px, calc(100vw - 36px));
  padding: 8px;
}

.reading-guide.is-minimized .reading-guide-head {
  gap: 8px;
}

.reading-guide.is-minimized .reading-guide-handle {
  gap: 0;
}

.reading-guide.is-minimized .reading-guide-handle span,
.reading-guide.is-minimized .reading-guide-handle .eyebrow {
  display: none;
}

.reading-guide.is-minimized .reading-guide-handle strong {
  font-size: 14px;
}

.reading-guide.is-minimized .reading-guide-toggle {
  min-height: 28px;
  padding: 0 9px;
}

.reading-guide.is-minimized .reading-guide-body {
  display: none;
}

.reading-guide h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: 0;
}

.reading-mode-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  border: 1px solid rgba(245, 204, 126, 0.24);
  border-radius: 10px;
  padding: 4px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.07), rgba(255, 250, 240, 0.022)),
    rgba(255, 255, 255, 0.035);
}

.reading-mode {
  flex: 1;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 8px;
  background: transparent;
  color: rgba(255, 250, 240, 0.68);
  font-size: 11px;
  font-weight: 840;
  letter-spacing: 0;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.reading-mode:hover {
  border-color: rgba(255, 250, 240, 0.12);
  color: var(--ink);
}

.reading-mode.active {
  border-color: rgba(245, 204, 126, 0.78);
  background:
    linear-gradient(180deg, rgba(245, 204, 126, 0.27), rgba(216, 173, 97, 0.1)),
    rgba(216, 173, 97, 0.08);
  color: var(--ink-strong);
  box-shadow:
    0 8px 18px rgba(216, 173, 97, 0.14),
    inset 0 1px 0 rgba(255, 250, 240, 0.12);
}

.reading-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.reading-path button,
.route-cards button,
.next-step-actions button {
  border: 1px solid rgba(215, 178, 105, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.062), rgba(255, 250, 240, 0.02)),
    rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.reading-path button:hover,
.route-cards button:hover,
.next-step-actions button:hover {
  border-color: rgba(245, 204, 126, 0.52);
  background:
    linear-gradient(180deg, rgba(216, 173, 97, 0.14), rgba(255, 250, 240, 0.024)),
    rgba(255, 255, 255, 0.035);
  transform: translateY(-1px);
}

.reading-path button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 6px;
  min-height: 50px;
  padding: 8px;
}

.reading-path span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(245, 204, 126, 0.44);
  border-radius: 999px;
  background: rgba(216, 173, 97, 0.12);
  color: var(--gold);
  font-size: 11px;
  font-weight: 880;
}

.reading-path strong,
.next-step-actions strong,
.route-cards strong {
  color: var(--ink-strong);
  font-weight: 860;
  line-height: 1.2;
}

.reading-path em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 720;
  line-height: 1.25;
}

.route-cards {
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
}

body[data-reading-mode="routes"] .route-cards {
  display: grid;
}

body[data-reading-mode="routes"] .reading-path {
  opacity: 0.78;
}

.route-cards button {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 10px;
}

.route-cards span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 840;
}

.route-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.year-readout input {
  accent-color: var(--gold);
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 18px;
  min-height: 0;
}

.timeline-panel,
.insight-panel {
  min-width: 0;
}

@media (min-width: 1121px) {
  .app-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    height: 100vh;
    overflow: hidden;
    padding-bottom: 18px;
  }

  .workbench {
    align-items: start;
    height: auto;
    min-height: 0;
    margin-top: 0;
    overflow: hidden;
  }

  .timeline-panel,
  .insight-panel {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  :where(.timeline-panel) {
    padding-bottom: 116px;
    scroll-padding-bottom: 132px;
  }

  .timeline-panel::-webkit-scrollbar,
  .insight-panel::-webkit-scrollbar {
    width: 10px;
  }

  .timeline-panel::-webkit-scrollbar-track,
  .insight-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.035);
  }

  .timeline-panel::-webkit-scrollbar-thumb,
  .insight-panel::-webkit-scrollbar-thumb {
    border: 2px solid rgba(15, 16, 18, 0.9);
    border-radius: 8px;
    background: rgba(212, 170, 95, 0.42);
  }
}

.year-readout {
  display: grid;
  flex: 0 0 min(280px, 35%);
  gap: 8px;
  min-width: 230px;
  color: var(--muted);
  text-align: right;
}

.year-readout span {
  color: var(--ink-strong);
  font-size: 20px;
  font-weight: 850;
}

.year-readout input {
  width: 100%;
}

.timeline-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px 20px 10px;
}

.timeline-control-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.story-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0;
}

.story-tab,
.filter-chip {
  min-height: 30px;
  border: 1px solid rgba(255, 250, 240, 0.105);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.055), rgba(255, 250, 240, 0.02)),
    rgba(255, 255, 255, 0.035);
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 760;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.story-tab:hover,
.filter-chip:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.story-tab.active {
  border-color: rgba(212, 170, 95, 0.7);
  background: linear-gradient(180deg, rgba(216, 173, 97, 0.26), rgba(216, 173, 97, 0.09));
  color: var(--ink-strong);
}

.filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 2px 3px 0;
}

.filter-chip {
  white-space: nowrap;
}

.filter-chip.active {
  border-color: currentColor;
  background:
    linear-gradient(180deg, color-mix(in srgb, currentColor 18%, transparent), rgba(255, 250, 240, 0.035)),
    rgba(255, 255, 255, 0.04);
}

.view-mode-tools {
  display: grid;
  gap: 8px;
  justify-items: end;
  align-self: center;
  min-width: 238px;
}

.view-switch {
  display: inline-flex;
  align-self: center;
  gap: 5px;
  margin: 0;
  border: 1px solid rgba(245, 204, 126, 0.38);
  border-radius: 12px;
  padding: 5px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 204, 126, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.09), rgba(255, 250, 240, 0.026)),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.085);
  white-space: nowrap;
}

.view-switch.view-switch-nudge {
  animation: viewSwitchNudge 760ms ease-in-out 2;
  will-change: transform, box-shadow, border-color;
}

@keyframes viewSwitchNudge {
  0%,
  100% {
    transform: translateY(0) scale(1);
    border-color: rgba(215, 178, 105, 0.24);
    box-shadow: none;
  }

  42% {
    transform: translateY(-1px) scale(1.035);
    border-color: rgba(245, 204, 126, 0.92);
    box-shadow:
      0 0 0 1px rgba(245, 204, 126, 0.28),
      0 0 24px rgba(216, 173, 97, 0.38),
      inset 0 0 18px rgba(216, 173, 97, 0.18);
  }

  68% {
    transform: translateY(0) scale(1.012);
    border-color: rgba(100, 198, 173, 0.62);
    box-shadow:
      0 0 0 1px rgba(100, 198, 173, 0.16),
      0 0 16px rgba(100, 198, 173, 0.2);
  }
}

.view-option {
  min-height: 41px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 16px;
  background: transparent;
  color: rgba(255, 250, 240, 0.7);
  font-size: 14px;
  font-weight: 820;
  letter-spacing: 0;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.view-option:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

.view-option.active {
  border-color: rgba(245, 204, 126, 0.86);
  background:
    linear-gradient(180deg, rgba(245, 204, 126, 0.34), rgba(216, 173, 97, 0.14)),
    rgba(216, 173, 97, 0.08);
  color: var(--ink-strong);
  box-shadow:
    0 0 0 1px rgba(245, 204, 126, 0.18),
    0 8px 18px rgba(216, 173, 97, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.year-brief-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
  background:
    linear-gradient(90deg, rgba(100, 198, 173, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.044), rgba(255, 250, 240, 0.014));
}

.year-brief-card > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.year-brief-card span,
.next-step-panel span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.year-brief-card strong {
  color: var(--ink-strong);
  font-size: 18px;
  line-height: 1.25;
}

.year-brief-card p {
  margin: 0;
  color: #d8d0bf;
  font-size: 13px;
  line-height: 1.45;
}

.event-track-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 20px 16px;
  background:
    radial-gradient(circle at 16% 0%, rgba(216, 173, 97, 0.08), transparent 38%),
    linear-gradient(90deg, rgba(216, 173, 97, 0.055), transparent 28%, rgba(100, 198, 173, 0.03)),
    rgba(255, 255, 255, 0.018);
}

.event-track-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.event-track-head div {
  display: grid;
  gap: 4px;
}

.event-track-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.event-track-head strong {
  color: var(--ink-strong);
  font-size: 15px;
  line-height: 1.25;
}

.event-track-head p {
  margin: 0;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 740;
  text-align: right;
}

.event-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 230px);
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.event-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.event-track.is-dragging .major-event-card {
  pointer-events: none;
}

.event-track::-webkit-scrollbar {
  height: 8px;
}

.event-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
}

.event-track::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(212, 170, 95, 0.42);
}

.major-event-card {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 128px;
  border: 1px solid rgba(215, 178, 105, 0.2);
  border-left: 5px solid var(--major-event-color);
  border-radius: 8px;
  padding: 11px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.06), rgba(255, 250, 240, 0.018)),
    rgba(8, 9, 11, 0.64);
  color: inherit;
  text-align: left;
  scroll-snap-align: start;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.major-event-card:hover,
.major-event-card.active {
  border-color: rgba(216, 173, 97, 0.5);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--major-event-color) 16%, transparent), rgba(255, 250, 240, 0.045)),
    rgba(8, 9, 11, 0.72);
  transform: translateY(-1px);
}

.major-event-card.near-year {
  box-shadow: inset 0 0 0 1px rgba(212, 170, 95, 0.18);
}

.major-event-card span,
.major-event-card small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 820;
}

.major-event-card strong {
  color: var(--ink-strong);
  font-size: 15px;
  line-height: 1.25;
}

.major-event-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.next-step-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  background:
    radial-gradient(circle at 86% 0%, rgba(216, 173, 97, 0.09), transparent 28%),
    linear-gradient(90deg, rgba(255, 250, 240, 0.026), rgba(100, 198, 173, 0.035));
}

.next-step-panel > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 190px;
}

.next-step-panel strong {
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 1.3;
}

.next-step-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 8px;
  width: 100%;
}

.next-step-actions button {
  display: grid;
  gap: 3px;
  min-height: 56px;
  padding: 9px 10px;
}

.next-step-actions span {
  color: var(--muted-2);
  line-height: 1.25;
}

.world-map-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: start;
  gap: 14px;
  max-height: calc(100vh - 370px);
  min-height: 430px;
  overflow: auto;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  padding: 16px 20px 34px;
  background:
    linear-gradient(90deg, rgba(215, 178, 105, 0.055) 1px, transparent 1px) 0 0 / 120px 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(0, 0, 0, 0.2)),
    #101113;
}

.world-map-panel[hidden],
.globe-panel[hidden],
.timeline-scroll[hidden] {
  display: none;
}

.world-map-panel::-webkit-scrollbar,
.map-event-list::-webkit-scrollbar {
  width: 10px;
}

.world-map-panel::-webkit-scrollbar-track,
.map-event-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.world-map-panel::-webkit-scrollbar-thumb,
.map-event-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(15, 16, 18, 0.9);
  border-radius: 8px;
  background: rgba(212, 170, 95, 0.46);
}

.map-head {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.map-head > div:first-child {
  display: grid;
  gap: 4px;
}

.map-head span,
.map-event-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.map-head strong {
  color: var(--ink-strong);
  font-size: 24px;
  line-height: 1;
}

.map-head p {
  margin: 0;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 720;
  text-align: right;
}

.map-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  max-width: min(100%, 680px);
}

.map-playback {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.playback-toggle,
.map-playback select {
  height: 26px;
  border: 1px solid rgba(215, 178, 105, 0.28);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.075), rgba(255, 250, 240, 0.025)),
    rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-size: 11px;
  font-weight: 820;
}

.playback-toggle {
  min-width: 54px;
  padding: 0 10px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.playback-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 173, 97, 0.68);
}

.playback-toggle.is-playing {
  border-color: rgba(100, 198, 173, 0.7);
  background:
    linear-gradient(180deg, rgba(100, 198, 173, 0.24), rgba(100, 198, 173, 0.08)),
    rgba(255, 255, 255, 0.04);
  color: #dff8ef;
}

.map-playback label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
}

.map-playback select {
  min-width: 60px;
  padding: 0 7px;
  outline: none;
}

.map-playback select:focus {
  border-color: rgba(212, 170, 95, 0.72);
  box-shadow: 0 0 0 3px rgba(212, 170, 95, 0.12);
}

#playbackStatus {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 780;
  white-space: nowrap;
}

.world-map-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2048 / 800;
  min-height: 0;
  border: 1px solid rgba(215, 178, 105, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 55% 34%, rgba(216, 173, 97, 0.17), transparent 28%),
    radial-gradient(circle at 30% 56%, rgba(100, 198, 173, 0.085), transparent 36%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.38)),
    url("./assets/historical-atlas-map-core.svg?v=20260709-refined"),
    #111417;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -34px 86px rgba(0, 0, 0, 0.38),
    0 18px 45px rgba(0, 0, 0, 0.22);
  filter: saturate(0.96) contrast(1.08) brightness(1.08);
}

.world-map-stage::before,
.world-map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.world-map-stage::before {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 48%, transparent 48%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(rgba(255, 250, 240, 0.023) 1px, transparent 1px) 0 0 / 100% 42px,
    linear-gradient(90deg, rgba(255, 250, 240, 0.018) 1px, transparent 1px) 0 0 / 56px 100%,
    linear-gradient(90deg, rgba(255, 250, 240, 0.03), transparent 24%, transparent 76%, rgba(255, 250, 240, 0.028));
  mix-blend-mode: screen;
  opacity: 0.34;
}

.world-map-stage::after {
  z-index: 3;
  border: 1px solid rgba(255, 250, 240, 0.06);
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(8, 9, 11, 0.62);
}

.world-map-stage svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}

.globe-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: start;
  gap: 14px;
  max-height: calc(100vh - 370px);
  min-height: 430px;
  overflow: auto;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  padding: 16px 20px 34px;
  background:
    radial-gradient(circle at 38% 26%, rgba(216, 173, 97, 0.1), transparent 28%),
    radial-gradient(circle at 66% 58%, rgba(100, 198, 173, 0.075), transparent 32%),
    linear-gradient(90deg, rgba(215, 178, 105, 0.055) 1px, transparent 1px) 0 0 / 120px 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.28)),
    #0f1113;
}

.globe-panel::-webkit-scrollbar,
.globe-event-list::-webkit-scrollbar {
  width: 10px;
}

.globe-panel::-webkit-scrollbar-track,
.globe-event-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.globe-panel::-webkit-scrollbar-thumb,
.globe-event-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(15, 16, 18, 0.9);
  border-radius: 8px;
  background: rgba(212, 170, 95, 0.46);
}

.globe-head {
  grid-column: 1 / -1;
}

.globe-layer-controls {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 12;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  max-width: min(520px, calc(100% - 44px));
  border: 1px solid rgba(216, 173, 97, 0.16);
  border-radius: 999px;
  padding: 6px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.055), rgba(255, 250, 240, 0.014)),
    rgba(11, 12, 13, 0.58);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 250, 240, 0.055);
  backdrop-filter: blur(16px) saturate(130%);
}

.globe-layer-controls button {
  min-height: 30px;
  border: 1px solid rgba(215, 178, 105, 0.26);
  border-radius: 999px;
  padding: 0 12px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.07), rgba(255, 250, 240, 0.02)),
    rgba(255, 255, 255, 0.035);
  color: rgba(246, 234, 212, 0.68);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.globe-layer-controls button:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 173, 97, 0.56);
  color: var(--ink-strong);
}

.globe-layer-controls button.active {
  border-color: rgba(216, 173, 97, 0.72);
  background:
    linear-gradient(180deg, rgba(216, 173, 97, 0.42), rgba(137, 96, 39, 0.18)),
    rgba(255, 255, 255, 0.035);
  color: #fff8df;
  box-shadow: 0 0 18px rgba(216, 173, 97, 0.14);
}

.globe-stage {
  position: relative;
  display: grid;
  min-height: 430px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(215, 178, 105, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 52% 48%, rgba(54, 67, 70, 0.9) 0 29%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(216, 173, 97, 0.15), transparent 42%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.035), rgba(0, 0, 0, 0.32)),
    #08090a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -36px 92px rgba(0, 0, 0, 0.42),
    0 20px 46px rgba(0, 0, 0, 0.26);
  cursor: grab;
  touch-action: none;
}

.globe-webgl-canvas {
  position: absolute;
  inset: 0;
  z-index: 7;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.globe-stage.is-dragging .globe-webgl-canvas,
.globe-webgl-canvas:active {
  cursor: grabbing;
}

.globe-stage.webgl-ready .globe-sphere {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
  transition: opacity 280ms ease, transform 280ms ease;
}

.globe-stage.webgl-ready::after {
  content: "拖动旋转 · 滚轮缩放 · 双击复位";
  z-index: 8;
}

.globe-stage.is-dragging {
  cursor: grabbing;
}

.globe-stage::before,
.globe-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.globe-stage::before {
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 33%, rgba(0, 0, 0, 0.46) 68%, rgba(0, 0, 0, 0.8) 100%),
    linear-gradient(rgba(255, 250, 240, 0.028) 1px, transparent 1px) 0 0 / 100% 42px,
    linear-gradient(90deg, rgba(255, 250, 240, 0.022) 1px, transparent 1px) 0 0 / 56px 100%;
  opacity: 0.76;
}

.globe-stage::after {
  right: 18px;
  bottom: 16px;
  color: rgba(246, 234, 212, 0.44);
  content: "拖动旋转 · 双击复位";
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0;
}

.globe-sphere {
  position: relative;
  width: min(82%, 620px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(233, 199, 136, 0.52);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 26%, rgba(255, 250, 240, 0.28), transparent 9%),
    radial-gradient(circle at 42% 40%, rgba(58, 84, 82, 0.95), transparent 35%),
    radial-gradient(circle at 58% 55%, rgba(12, 25, 31, 0.96), rgba(4, 7, 9, 0.98) 72%);
  box-shadow:
    inset 16px 0 34px rgba(255, 250, 240, 0.06),
    inset -36px -16px 64px rgba(0, 0, 0, 0.74),
    0 0 0 1px rgba(255, 250, 240, 0.05),
    0 0 42px rgba(216, 173, 97, 0.16),
    0 34px 78px rgba(0, 0, 0, 0.48);
}

.globe-sphere::before {
  content: "";
  position: absolute;
  inset: 5%;
  z-index: 2;
  border-radius: 50%;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.08) 1px, transparent 1px) 0 0 / 14% 100%,
    linear-gradient(rgba(255, 250, 240, 0.055) 1px, transparent 1px) 0 0 / 100% 14%;
  mask-image: radial-gradient(circle, #000 0 68%, transparent 69%);
  opacity: 0.36;
  pointer-events: none;
}

.globe-sphere::after {
  content: var(--globe-rotation-label, "62°E");
  position: absolute;
  left: 50%;
  bottom: 7%;
  z-index: 7;
  transform: translateX(-50%);
  color: rgba(246, 234, 212, 0.46);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.globe-terminator {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, transparent 0 32%, rgba(0, 0, 0, 0.14) 54%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, transparent 0 50%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

.globe-graticule {
  position: absolute;
  inset: 4%;
  z-index: 1;
  border: 1px solid rgba(215, 178, 105, 0.18);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 240, 0.03),
    inset 0 0 24px rgba(216, 173, 97, 0.06);
  pointer-events: none;
}

.globe-landmass {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(230, 198, 137, 0.22);
  background:
    linear-gradient(145deg, rgba(141, 126, 83, 0.62), rgba(39, 55, 48, 0.46)),
    rgba(83, 88, 65, 0.55);
  box-shadow: inset 0 0 18px rgba(255, 250, 240, 0.05), 0 0 14px rgba(216, 173, 97, 0.08);
  filter: blur(0.1px);
  opacity: 0.68;
  pointer-events: none;
}

.globe-landmass-americas {
  left: 10%;
  top: 31%;
  width: 26%;
  height: 38%;
  border-radius: 58% 34% 50% 42%;
  transform: rotate(-18deg);
}

.globe-landmass-africa {
  left: 44%;
  top: 40%;
  width: 18%;
  height: 34%;
  border-radius: 42% 58% 50% 50%;
  transform: rotate(-7deg);
}

.globe-landmass-eurasia {
  left: 43%;
  top: 24%;
  width: 44%;
  height: 28%;
  border-radius: 54% 44% 48% 38%;
  transform: rotate(7deg);
}

.globe-landmass-australia {
  left: 70%;
  top: 66%;
  width: 13%;
  height: 8%;
  border-radius: 50%;
  transform: rotate(-6deg);
}

.globe-arc-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.globe-link {
  fill: none;
  stroke: var(--globe-link-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: var(--globe-link-width);
  opacity: 0.56;
  cursor: pointer;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--globe-link-color) 72%, transparent));
  pointer-events: stroke;
}

.globe-link:hover,
.globe-link.selected {
  opacity: 0.98;
  stroke-width: calc(var(--globe-link-width) + 0.7);
}

.globe-node,
.globe-event-marker {
  position: absolute;
  z-index: 5;
  border: 0;
  background: transparent;
  color: var(--ink-strong);
  cursor: pointer;
  font: inherit;
}

.globe-node {
  display: grid;
  width: 76px;
  min-height: 48px;
  place-items: center;
  transform: translate(-50%, -50%) scale(var(--globe-node-scale));
  opacity: var(--globe-node-opacity);
  transition: opacity 160ms ease, transform 160ms ease, filter 160ms ease;
}

.globe-node.behind {
  filter: saturate(0.35) brightness(0.64);
}

.globe-node:hover,
.globe-node.selected {
  opacity: 1;
  transform: translate(-50%, -50%) scale(calc(var(--globe-node-scale) + 0.09));
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--globe-node-color) 70%, transparent));
}

.globe-node-pulse {
  position: absolute;
  width: 34px;
  aspect-ratio: 1;
  border: 2px solid color-mix(in srgb, var(--globe-node-color) 76%, #fffaf0);
  border-radius: 50%;
  background: color-mix(in srgb, var(--globe-node-color) 23%, transparent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--globe-node-color) 18%, transparent), 0 0 22px color-mix(in srgb, var(--globe-node-color) 36%, transparent);
}

.globe-node strong {
  position: relative;
  z-index: 1;
  color: #111;
  font-size: 15px;
  font-weight: 950;
}

.globe-node em {
  position: absolute;
  top: -15px;
  left: 50%;
  z-index: 2;
  max-width: 108px;
  transform: translateX(-50%);
  color: var(--ink-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.9),
    0 0 9px rgba(0, 0, 0, 0.92);
  white-space: normal;
}

.globe-event-marker {
  min-width: 46px;
  transform: translate(-50%, -50%);
}

.globe-event-marker::before {
  content: "";
  display: block;
  width: 13px;
  aspect-ratio: 1;
  margin: 0 auto 3px;
  border: 2px solid color-mix(in srgb, var(--globe-event-color) 62%, #fffaf0);
  border-radius: 50%;
  background: var(--globe-event-color);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--globe-event-color) 22%, transparent), 0 0 20px color-mix(in srgb, var(--globe-event-color) 42%, transparent);
}

.globe-event-marker span {
  display: block;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(8, 9, 10, 0.72);
  color: var(--ink-strong);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.globe-event-marker:hover span,
.globe-event-marker.selected span {
  opacity: 1;
  transform: translateY(0);
}

.globe-event-marker:hover::before,
.globe-event-marker.selected::before {
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--globe-event-color) 32%, transparent), 0 0 28px var(--globe-event-color);
}

.globe-readout {
  position: absolute;
  left: 50%;
  top: 9%;
  z-index: 7;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  color: rgba(246, 234, 212, 0.62);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.globe-readout span,
.globe-readout strong {
  padding: 5px 7px;
  border: 1px solid rgba(215, 178, 105, 0.24);
  border-radius: 999px;
  background: rgba(9, 10, 11, 0.46);
}

.globe-event-list {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.world-map-stage .map-sea,
.world-map-stage .map-texture,
.world-map-stage .map-grid,
.world-map-stage .map-ocean-labels,
.world-map-stage .map-land-layer,
.world-map-stage .map-relief,
.world-map-stage .map-projection-frame,
.world-map-stage .map-compass,
.world-map-stage .map-scale {
  opacity: 0;
}

.map-sea {
  fill: url("#mapSea");
}

.map-texture {
  fill: url("#mapTexture");
  opacity: 0.85;
}

.map-grid path {
  fill: none;
  stroke: rgba(215, 178, 105, 0.12);
  stroke-width: 0.2;
  vector-effect: non-scaling-stroke;
}

.map-projection-frame ellipse,
.map-projection-frame path {
  fill: none;
  stroke: rgba(215, 178, 105, 0.16);
  stroke-width: 0.24;
  vector-effect: non-scaling-stroke;
}

.map-projection-frame path {
  stroke-dasharray: 1.2 1.4;
  opacity: 0.55;
}

.map-ocean-labels text {
  fill: rgba(215, 178, 105, 0.2);
  font-size: 2.25px;
  font-weight: 820;
  letter-spacing: 0.24em;
  text-anchor: middle;
}

.map-land-layer {
  filter: url("#mapCoastGlow");
}

.map-land {
  fill: url("#mapLandGradient");
  stroke: rgba(230, 198, 137, 0.56);
  stroke-width: 0.3;
  vector-effect: non-scaling-stroke;
}

.map-land.greenland {
  fill: rgba(188, 176, 144, 0.16);
}

.map-land.africa,
.map-land.eurasia {
  fill: url("#mapLandGradient");
}

.map-land.americas {
  fill: url("#mapLandGradient");
}

.map-island {
  fill: rgba(215, 178, 105, 0.4);
  stroke: rgba(255, 250, 240, 0.28);
  stroke-width: 0.18;
}

.map-island-shape {
  fill: rgba(126, 151, 126, 0.18);
  stroke: rgba(230, 198, 137, 0.5);
  stroke-width: 0.24;
  vector-effect: non-scaling-stroke;
}

.map-relief path {
  fill: none;
  stroke: rgba(255, 250, 240, 0.14);
  stroke-dasharray: 0.8 1;
  stroke-linecap: round;
  stroke-width: 0.28;
  vector-effect: non-scaling-stroke;
}

.map-compass path,
.map-compass circle,
.map-scale path {
  fill: none;
  stroke: rgba(215, 178, 105, 0.36);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 0.32;
  vector-effect: non-scaling-stroke;
}

.map-compass path {
  fill: rgba(215, 178, 105, 0.1);
}

.map-compass text {
  fill: rgba(255, 250, 240, 0.44);
  font-size: 2px;
  font-weight: 850;
  text-anchor: middle;
}

.map-link {
  fill: none;
  stroke: var(--map-link-color);
  stroke-width: var(--map-link-width);
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.58;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--map-link-color) 74%, transparent));
}

.map-link.selected {
  opacity: 1;
  filter: drop-shadow(0 0 5px var(--map-link-color));
}

.map-orbit {
  fill: none;
  stroke: var(--map-link-color);
  stroke-dasharray: 2 2;
  stroke-width: 0.62;
  opacity: 0.52;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px var(--map-link-color));
}

.map-node {
  cursor: pointer;
  outline: none;
}

.map-node-stem {
  fill: none;
  stroke: color-mix(in srgb, var(--map-node-color) 58%, rgba(255, 250, 240, 0.28));
  stroke-dasharray: 1.5 1.2;
  stroke-linecap: round;
  stroke-width: 0.22;
  opacity: 0.54;
  vector-effect: non-scaling-stroke;
}

.map-node-halo {
  fill: color-mix(in srgb, var(--map-node-color) 16%, rgba(216, 173, 97, 0.1));
  stroke: color-mix(in srgb, var(--map-node-color) 42%, #d8c086);
  stroke-width: 0.34;
  opacity: 0.74;
  transition: opacity 160ms ease, stroke-width 160ms ease;
  filter: drop-shadow(0 0 2px color-mix(in srgb, var(--map-node-color) 38%, transparent));
}

.map-node-dot {
  fill: color-mix(in srgb, var(--map-node-color) 54%, #edddad);
  stroke: rgba(255, 248, 232, 0.72);
  stroke-width: 0.28;
  filter: drop-shadow(0 0 2.6px color-mix(in srgb, var(--map-node-color) 46%, transparent));
}

.map-node-count {
  fill: #090a0c;
  font-size: 1.28px;
  font-weight: 900;
  text-anchor: middle;
  pointer-events: none;
}

.map-node-label {
  fill: var(--ink-strong);
  font-size: 1.54px;
  font-weight: 800;
  paint-order: stroke;
  pointer-events: none;
  stroke: rgba(8, 9, 11, 0.86);
  stroke-width: 0.62px;
}

.map-node.local {
  opacity: 0.76;
}

.map-node.networked {
  opacity: 1;
}

.map-node:hover .map-node-halo,
.map-node:focus-visible .map-node-halo,
.map-node.selected .map-node-halo {
  opacity: 1;
  stroke: var(--ink-strong);
  stroke-width: 0.56;
  filter: drop-shadow(0 0 4px rgba(216, 173, 97, 0.48));
}

.map-node:hover .map-node-stem,
.map-node:focus-visible .map-node-stem,
.map-node.selected .map-node-stem {
  opacity: 1;
  stroke-dasharray: none;
}

.map-event-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: min(470px, calc(100vh - 340px));
  overflow: auto;
  padding-right: 4px;
}

.map-list-section-title {
  position: sticky;
  top: 0;
  z-index: 2;
  border: 1px solid rgba(215, 178, 105, 0.14);
  border-radius: 7px;
  padding: 7px 9px;
  background: rgba(15, 16, 18, 0.9);
  color: var(--gold);
  font-size: 11px;
  font-weight: 860;
  backdrop-filter: blur(14px);
}

.map-event-card {
  display: grid;
  gap: 5px;
  min-height: 86px;
  border: 1px solid rgba(215, 178, 105, 0.16);
  border-left: 5px solid var(--map-event-color);
  border-radius: 7px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.052), rgba(255, 250, 240, 0.014)),
    rgba(255, 255, 255, 0.028);
  color: inherit;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.map-event-card:hover,
.map-event-card.active {
  border-color: rgba(216, 173, 97, 0.44);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--map-event-color) 11%, transparent), rgba(255, 250, 240, 0.046)),
    rgba(255, 255, 255, 0.044);
  transform: translateY(-1px);
}

.map-event-card strong {
  color: var(--ink-strong);
  font-size: 12px;
  line-height: 1.3;
}

.map-event-card small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.map-event-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.42;
}

.major-map-event {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--map-event-color) 13%, transparent), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.035);
}

.timeline-scroll {
  position: relative;
  max-height: calc(100vh - 286px);
  min-height: 520px;
  overflow: auto;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(90deg, rgba(215, 178, 105, 0.075) 1px, transparent 1px) 0 0 / 120px 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(0, 0, 0, 0.22)),
    #101113;
}

.timeline-scroll::-webkit-scrollbar,
.filter-row::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.timeline-scroll::-webkit-scrollbar-track,
.filter-row::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.timeline-scroll::-webkit-scrollbar-thumb,
.filter-row::-webkit-scrollbar-thumb {
  border: 2px solid rgba(15, 16, 18, 0.9);
  border-radius: 8px;
  background: rgba(212, 170, 95, 0.48);
}

.timeline-canvas {
  position: relative;
  width: calc(var(--label-width) + var(--canvas-width));
  min-width: 100%;
  padding-bottom: 18px;
}

.ruler {
  position: sticky;
  top: 0;
  z-index: 9;
  height: 50px;
  margin-left: var(--label-width);
  width: var(--canvas-width);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 17, 19, 0.94);
  backdrop-filter: blur(18px);
}

.tick {
  position: absolute;
  top: 0;
  width: 1px;
  height: 50px;
  background: rgba(212, 170, 95, 0.26);
}

.tick span {
  position: absolute;
  top: 12px;
  left: 8px;
  width: 98px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.year-cursor {
  position: absolute;
  top: 50px;
  bottom: 18px;
  left: calc(var(--label-width) + var(--cursor-left));
  z-index: 8;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--red) 68%, transparent);
  pointer-events: none;
}

.year-cursor::before {
  content: "";
  position: absolute;
  top: -7px;
  left: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 0 5px rgba(212, 170, 95, 0.16),
    0 0 24px rgba(212, 170, 95, 0.35);
}

.lane {
  display: grid;
  grid-template-columns: var(--label-width) var(--canvas-width);
  min-height: 90px;
  border-bottom: 1px solid rgba(215, 178, 105, 0.16);
}

.lane-label {
  position: sticky;
  left: 0;
  z-index: 7;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  background: rgba(15, 16, 18, 0.94);
  backdrop-filter: blur(18px);
}

.lane-label strong {
  color: var(--ink-strong);
  font-size: 15px;
}

.lane-label span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.track {
  position: relative;
  min-height: 90px;
  width: var(--canvas-width);
  background:
    linear-gradient(90deg, rgba(215, 178, 105, 0.14) 1px, transparent 1px) 0 0 / 200px 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.005));
}

.event {
  position: absolute;
  display: flex;
  align-items: center;
  min-width: 16px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 0 9px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.1)),
    var(--event-color);
  color: #fffaf0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 9px 20px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 790;
  text-align: left;
  white-space: nowrap;
  transition: transform 140ms ease, outline-color 140ms ease, filter 140ms ease;
}

.event:hover,
.event.selected {
  border-color: rgba(255, 250, 240, 0.78);
  outline: 2px solid rgba(212, 170, 95, 0.24);
  transform: translateY(-1px);
  filter: saturate(1.08) brightness(1.08);
}

.event.dimmed {
  opacity: 0.25;
}

.event.story-hit {
  box-shadow:
    0 0 0 3px rgba(212, 170, 95, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.event.hidden {
  display: none;
}

.insight-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.visual-card {
  overflow: hidden;
}

.visual-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(1.1) brightness(0.8);
}

.visual-caption {
  display: grid;
  gap: 6px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.045), transparent),
    rgba(216, 173, 97, 0.025);
}

.visual-caption span,
.panel-title span,
.detail-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.visual-caption strong {
  color: var(--ink-strong);
  line-height: 1.35;
}

.collapsible-panel {
  position: relative;
}

.collapsible-panel .panel-title {
  padding-right: 38px;
}

.collapse-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(215, 178, 105, 0.24);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(15, 16, 18, 0.76);
  color: var(--ink-strong);
  font-size: 17px;
  font-weight: 760;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px) saturate(140%);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.collapse-toggle:hover {
  border-color: rgba(212, 170, 95, 0.64);
  background:
    linear-gradient(180deg, rgba(212, 170, 95, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(18, 18, 18, 0.86);
  transform: translateY(-1px);
}

.collapsible-panel.is-collapsed {
  display: block;
  min-height: 62px;
  overflow: hidden;
  padding: 14px 48px 14px 16px;
}

.collapsible-panel.is-collapsed > :not(.collapse-toggle) {
  display: none !important;
}

.collapsible-panel.is-collapsed::before {
  content: attr(data-panel-label);
  display: block;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 840;
  line-height: 1.25;
}

.collapsible-panel.is-collapsed::after {
  content: "已收起";
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 740;
}

.year-priority-card,
.event-explainer-card,
.network-explainer-card,
.civilization-lens-card {
  padding: 16px;
  background: var(--museum-panel-soft);
}

.insight-subsection {
  display: grid;
  gap: 11px;
  border-top: 1px solid rgba(215, 178, 105, 0.16);
  padding-top: 13px;
  margin-top: 2px;
  background: transparent;
  box-shadow: none;
}

.subsection-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.subsection-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.subsection-title strong {
  color: var(--gold);
  font-size: 12px;
}

.insight-visual-inline {
  margin: 2px 0 0;
  border: 1px solid rgba(215, 178, 105, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-title strong {
  color: var(--gold);
}

.now-grid {
  display: grid;
  gap: 8px;
}

.now-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(215, 178, 105, 0.18);
  border-left: 5px solid var(--item-color);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.052), rgba(255, 250, 240, 0.014)),
    rgba(255, 255, 255, 0.028);
  color: inherit;
  text-align: left;
}

.now-item:hover {
  background: rgba(216, 173, 97, 0.07);
}

.now-item strong {
  color: var(--ink-strong);
  font-size: 13px;
}

.now-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.detail-card {
  display: grid;
  gap: 12px;
}

.detail-card h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 22px;
  line-height: 1.18;
}

.detail-card p {
  margin: 0;
  color: #d8d0bf;
  line-height: 1.65;
}

.major-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

.major-detail-grid div {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(215, 178, 105, 0.18);
  border-radius: 7px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.055), rgba(255, 250, 240, 0.018)),
    rgba(255, 255, 255, 0.03);
}

.major-detail-grid dt,
.detail-point-panel span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 840;
}

.major-detail-grid dd {
  margin: 0;
  color: #ded5c3;
  font-size: 12px;
  line-height: 1.58;
}

.detail-point-panel {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(100, 198, 173, 0.18);
  border-radius: 7px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(100, 198, 173, 0.08), rgba(216, 173, 97, 0.045)),
    rgba(255, 255, 255, 0.026);
}

.detail-point-panel ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 17px;
  color: #d8d0bf;
  font-size: 12px;
  line-height: 1.55;
}

.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-tags span {
  border: 1px solid rgba(215, 178, 105, 0.2);
  border-radius: 999px;
  padding: 5px 9px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.052), rgba(255, 250, 240, 0.014)),
    rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.detail-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  filter: saturate(0.86) contrast(1.1) brightness(0.84);
}

.empty-state {
  color: var(--muted);
  line-height: 1.6;
}

.sync-radar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sync-radar-grid article {
  min-height: 118px;
  border: 1px solid rgba(215, 178, 105, 0.17);
  border-radius: 7px;
  padding: 10px;
  background:
    radial-gradient(circle at 18% 12%, rgba(212, 170, 95, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.045), rgba(255, 255, 255, 0.02));
}

.sync-radar-grid span,
.causality-route-panel > span,
.vertical-stage span {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
}

.sync-radar-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--ink-strong);
  font-size: 13px;
  line-height: 1.35;
}

.sync-radar-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.causality-graph {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.causality-graph::before {
  content: "";
  position: absolute;
  inset: 50% 14px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 170, 95, 0.58), transparent);
  pointer-events: none;
}

.causality-node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  min-height: 112px;
  border: 1px solid rgba(215, 178, 105, 0.16);
  border-radius: 7px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(255, 255, 255, 0.03);
}

.causality-node.event {
  border-color: rgba(100, 198, 173, 0.34);
  background:
    radial-gradient(circle at 25% 12%, rgba(100, 198, 173, 0.14), transparent 40%),
    rgba(255, 255, 255, 0.04);
}

.causality-node span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
}

.causality-node strong {
  color: var(--ink-strong);
  font-size: 12px;
  line-height: 1.42;
}

.causality-node p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.causality-route-panel {
  display: grid;
  gap: 8px;
}

.causality-routes {
  display: grid;
  gap: 8px;
}

.causality-route {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid rgba(215, 178, 105, 0.16);
  border-left: 4px solid var(--route-color, var(--gold));
  border-radius: 7px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
}

.causality-route:hover {
  border-color: rgba(212, 170, 95, 0.48);
  background: rgba(212, 170, 95, 0.09);
}

.causality-route span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 820;
}

.causality-route strong {
  color: var(--ink-strong);
  font-size: 12px;
  line-height: 1.3;
}

.causality-route p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.42;
}

.year-priority-card,
.event-explainer-card,
.network-explainer-card,
.civilization-lens-card,
.network-card,
.radius-card,
.chain-card,
.sync-radar-card,
.causality-card,
.evolution-card,
.vertical-evolution-card {
  display: grid;
  gap: 12px;
}

.network-thesis {
  margin: 0;
  border: 1px solid rgba(215, 178, 105, 0.18);
  border-radius: 7px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(216, 173, 97, 0.09), rgba(216, 173, 97, 0.035)),
    rgba(255, 255, 255, 0.025);
  color: #d8d0bf;
  font-size: 12px;
  line-height: 1.55;
}

.interaction-map {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(215, 178, 105, 0.2);
  border-radius: 8px;
  aspect-ratio: 1.55 / 1;
  background:
    radial-gradient(circle at 62% 42%, rgba(216, 173, 97, 0.17), transparent 34%),
    radial-gradient(circle at 33% 58%, rgba(100, 198, 173, 0.095), transparent 35%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.05), rgba(0, 0, 0, 0.16)),
    #141617;
}

.interaction-map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.network-land {
  fill: rgba(215, 178, 105, 0.055);
  stroke: rgba(215, 178, 105, 0.22);
  stroke-width: 0.4;
}

.network-edge {
  stroke: var(--edge-color);
  stroke-width: var(--edge-width);
  stroke-linecap: round;
  opacity: 0.6;
  vector-effect: non-scaling-stroke;
}

.network-edge.selected {
  opacity: 1;
  filter: drop-shadow(0 0 4px var(--edge-color));
}

.network-orbit {
  fill: none;
  stroke: var(--edge-color);
  stroke-dasharray: 2 2;
  stroke-width: 1.1;
  opacity: 0.78;
}

.network-node circle {
  fill: url("#nodeGlow");
  stroke: rgba(255, 250, 240, 0.7);
  stroke-width: 0.5;
}

.network-node text {
  fill: var(--ink);
  font-size: 3.15px;
  font-weight: 720;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(9, 10, 12, 0.84);
  stroke-width: 1.4px;
}

.network-node.muted {
  opacity: 0.32;
}

.network-node.active {
  opacity: 1;
}

.interaction-legend {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.interaction-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.interaction-legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--legend-color);
}

.interaction-list {
  display: grid;
  gap: 8px;
  max-height: 278px;
  overflow: auto;
  padding-right: 3px;
}

.interaction-list::-webkit-scrollbar {
  width: 8px;
}

.interaction-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
}

.interaction-list::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(212, 170, 95, 0.42);
}

.interaction-item {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(215, 178, 105, 0.16);
  border-left: 5px solid var(--item-color);
  border-radius: 7px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.interaction-item:hover,
.interaction-item.active {
  border-color: rgba(255, 250, 240, 0.36);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-1px);
}

.interaction-item strong {
  color: var(--ink-strong);
  font-size: 13px;
  line-height: 1.3;
}

.interaction-item span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.interaction-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
}

.interaction-item small {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 760;
}

.radius-summary {
  margin: 0;
  border: 1px solid rgba(215, 178, 105, 0.18);
  border-radius: 7px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(100, 198, 173, 0.08), rgba(212, 170, 95, 0.07)),
    rgba(255, 255, 255, 0.03);
  color: #d8d0bf;
  font-size: 12px;
  line-height: 1.58;
}

.radius-meter {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(215, 178, 105, 0.16);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.04);
}

.radius-meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.radius-meter-head span {
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 840;
}

.radius-meter-head strong {
  color: var(--gold);
  font-size: 20px;
}

.radius-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.radius-track div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--jade), var(--gold), var(--red));
  box-shadow: 0 0 18px rgba(212, 170, 95, 0.24);
}

.radius-grid {
  display: grid;
  gap: 8px;
}

.radius-grid article {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(215, 178, 105, 0.14);
  border-radius: 7px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.radius-grid article > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 820;
}

.radius-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.radius-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.radius-chips span {
  border: 1px solid rgba(215, 178, 105, 0.2);
  border-left: 4px solid var(--mechanism-color, var(--gold));
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(212, 170, 95, 0.07);
  color: var(--ink);
  font-size: 11px;
  font-weight: 780;
}

.chain-card h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 18px;
  line-height: 1.25;
}

.chain-card > p {
  margin: 0;
  color: #d8d0bf;
  font-size: 12px;
  line-height: 1.58;
}

.chain-steps {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  counter-reset: chain-step;
  list-style: none;
}

.chain-steps li {
  position: relative;
  min-height: 42px;
  border: 1px solid rgba(215, 178, 105, 0.15);
  border-radius: 7px;
  padding: 9px 10px 9px 42px;
  background: rgba(255, 255, 255, 0.04);
  counter-increment: chain-step;
}

.chain-steps li::before {
  content: counter(chain-step);
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), #9b6f32);
  color: #0f1012;
  font-size: 12px;
  font-weight: 900;
}

.chain-steps span {
  display: block;
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 820;
}

.chain-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
}

.evolution-select {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.evolution-select select {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  outline: none;
}

.evolution-select select:focus {
  border-color: rgba(212, 170, 95, 0.72);
  box-shadow: 0 0 0 4px rgba(212, 170, 95, 0.12);
}

.evolution-thesis {
  margin: 0;
  border: 1px solid rgba(215, 178, 105, 0.18);
  border-radius: 7px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(100, 198, 173, 0.07), rgba(212, 170, 95, 0.08)),
    rgba(255, 255, 255, 0.03);
  color: #d8d0bf;
  font-size: 12px;
  line-height: 1.58;
}

.evolution-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.evolution-phase {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(215, 178, 105, 0.16);
  border-radius: 7px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-align: left;
}

.evolution-phase span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(212, 170, 95, 0.16);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.evolution-phase strong {
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  font-weight: 820;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evolution-phase:hover,
.evolution-phase.active {
  border-color: rgba(212, 170, 95, 0.48);
  background:
    linear-gradient(135deg, rgba(212, 170, 95, 0.13), rgba(100, 198, 173, 0.07)),
    rgba(255, 255, 255, 0.055);
  color: var(--ink-strong);
}

.evolution-path {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding-right: 3px;
}

.evolution-path::-webkit-scrollbar {
  width: 8px;
}

.evolution-path::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
}

.evolution-path::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(212, 170, 95, 0.42);
}

.evolution-stage {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(215, 178, 105, 0.16);
  border-left: 5px solid rgba(212, 170, 95, 0.42);
  border-radius: 7px;
  padding: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(255, 255, 255, 0.035);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.evolution-stage.active {
  border-color: rgba(255, 250, 240, 0.34);
  border-left-color: var(--gold);
  background:
    linear-gradient(135deg, rgba(212, 170, 95, 0.12), rgba(100, 198, 173, 0.07)),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(212, 170, 95, 0.14);
}

.evolution-stage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.evolution-stage-head span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 760;
}

.evolution-stage-head strong {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 11px;
  font-weight: 840;
}

.evolution-stage h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 16px;
  line-height: 1.25;
}

.evolution-stage p {
  margin: 0;
  color: #d8d0bf;
  font-size: 12px;
  line-height: 1.55;
}

.evolution-detail {
  display: grid;
  gap: 7px;
  margin: 0;
}

.evolution-detail div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
}

.evolution-detail dt {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 780;
}

.evolution-detail dd {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.48;
}

.evolution-events {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.evolution-event-chip,
.evolution-empty {
  border: 1px solid rgba(215, 178, 105, 0.2);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(212, 170, 95, 0.08);
  color: var(--ink);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.25;
}

.evolution-event-chip:hover {
  border-color: rgba(212, 170, 95, 0.58);
  background: rgba(212, 170, 95, 0.16);
}

.evolution-empty {
  color: var(--muted);
}

.vertical-evolution-stage {
  margin: 0;
  border: 1px solid rgba(215, 178, 105, 0.18);
  border-radius: 7px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(212, 170, 95, 0.1), rgba(100, 198, 173, 0.06)),
    rgba(255, 255, 255, 0.03);
  color: #d8d0bf;
  font-size: 12px;
  line-height: 1.55;
}

.vertical-evolution-list {
  display: grid;
  gap: 8px;
}

.vertical-stage {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid rgba(215, 178, 105, 0.16);
  border-left: 4px solid rgba(212, 170, 95, 0.42);
  border-radius: 7px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(255, 255, 255, 0.035);
  color: inherit;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.vertical-stage.current {
  border-color: rgba(255, 250, 240, 0.32);
  border-left-color: var(--gold);
  background:
    radial-gradient(circle at 12% 0%, rgba(212, 170, 95, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.05);
}

.vertical-stage.next {
  border-left-color: rgba(100, 198, 173, 0.58);
}

.vertical-stage:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 170, 95, 0.48);
  background: rgba(212, 170, 95, 0.08);
}

.vertical-stage.empty:hover {
  transform: none;
}

.vertical-stage small {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 780;
}

.vertical-stage strong {
  color: var(--ink-strong);
  font-size: 13px;
  line-height: 1.32;
}

.vertical-stage p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.trust-meta {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(215, 178, 105, 0.16);
  border-radius: 7px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.trust-meta.compact {
  gap: 6px;
  padding: 8px;
}

.trust-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.confidence-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(100, 198, 173, 0.28);
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(100, 198, 173, 0.09);
  color: var(--jade);
  font-weight: 840;
}

.evidence-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.evidence-tags span {
  border: 1px solid rgba(100, 198, 173, 0.2);
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(100, 198, 173, 0.07);
  color: #bfe6d8;
  font-size: 10px;
  font-weight: 820;
  line-height: 1.25;
}

.source-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.source-links a,
.source-missing {
  border: 1px solid rgba(215, 178, 105, 0.2);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(212, 170, 95, 0.08);
  color: var(--ink);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
}

.source-links a:hover {
  border-color: rgba(212, 170, 95, 0.58);
  background: rgba(212, 170, 95, 0.16);
}

.duel-card {
  display: grid;
  gap: 12px;
}

.duel-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.duel-selectors label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.duel-selectors select {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  outline: none;
}

.duel-selectors select:focus {
  border-color: rgba(212, 170, 95, 0.72);
  box-shadow: 0 0 0 4px rgba(212, 170, 95, 0.12);
}

.duel-result {
  display: grid;
  gap: 10px;
}

.duel-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.duel-side {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(215, 178, 105, 0.16);
  border-radius: 7px;
  padding: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(255, 255, 255, 0.035);
}

.duel-side.left {
  border-left: 4px solid var(--jade);
}

.duel-side.right {
  border-left: 4px solid var(--gold);
}

.duel-side h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 15px;
  line-height: 1.25;
}

.duel-side p {
  margin: 0;
  color: #d8d0bf;
  font-size: 12px;
  line-height: 1.55;
}

.duel-verdict {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(212, 170, 95, 0.24);
  border-radius: 7px;
  padding: 11px;
  background:
    linear-gradient(135deg, rgba(100, 198, 173, 0.08), rgba(212, 170, 95, 0.09)),
    rgba(255, 255, 255, 0.035);
}

.duel-verdict span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.duel-verdict strong {
  color: var(--ink-strong);
  font-size: 13px;
  line-height: 1.45;
}

.duel-verdict p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.driver-panel {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(215, 178, 105, 0.16);
  border-radius: 7px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.driver-panel > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 820;
}

.driver-row {
  display: grid;
  gap: 5px;
}

.driver-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.driver-row-head strong {
  color: var(--ink);
  font-size: 11px;
}

.driver-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.driver-bars i {
  display: block;
  height: 6px;
  max-width: 100%;
  border-radius: 999px;
}

.driver-bars .left {
  justify-self: end;
  background: linear-gradient(90deg, rgba(100, 198, 173, 0.26), var(--jade));
}

.driver-bars .right {
  justify-self: start;
  background: linear-gradient(90deg, var(--gold), rgba(212, 170, 95, 0.26));
}

.comparison-card {
  display: grid;
  gap: 12px;
}

.comparison-thesis {
  margin: 0;
  border: 1px solid rgba(215, 178, 105, 0.18);
  border-radius: 7px;
  padding: 10px;
  background: rgba(212, 170, 95, 0.07);
  color: #d8d0bf;
  font-size: 12px;
  line-height: 1.55;
}

.comparison-grid {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 3px;
}

.comparison-grid::-webkit-scrollbar {
  width: 8px;
}

.comparison-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
}

.comparison-grid::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(212, 170, 95, 0.42);
}

.compare-item {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(215, 178, 105, 0.16);
  border-radius: 7px;
  padding: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(255, 255, 255, 0.035);
}

.compare-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.compare-head span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 760;
}

.compare-head strong {
  color: var(--gold);
  font-size: 13px;
}

.compare-item h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 16px;
  line-height: 1.25;
}

.compare-item p {
  margin: 0;
  color: #d8d0bf;
  font-size: 12px;
  line-height: 1.55;
}

.compare-metrics {
  display: grid;
  gap: 6px;
}

.compare-metric {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 740;
}

.metric-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-track div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--jade), var(--gold));
}

.compare-metric strong {
  color: var(--ink);
  text-align: right;
}

.compare-detail {
  display: grid;
  gap: 7px;
  margin: 0;
}

.compare-detail div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
}

.compare-detail dt {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 780;
}

.compare-detail dd {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.time-dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 30;
  display: grid;
  grid-template-columns: 88px minmax(220px, 520px) 88px;
  align-items: center;
  gap: 10px;
  width: min(720px, calc(100vw - 28px));
  border: 1px solid rgba(215, 178, 105, 0.28);
  border-radius: 8px;
  padding: 10px;
  background: rgba(15, 16, 18, 0.82);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px) saturate(145%);
  transform: translateX(-50%);
}

.time-dock button {
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
}

.time-dock button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.time-dock button:hover {
  border-color: rgba(212, 170, 95, 0.62);
  background: rgba(212, 170, 95, 0.14);
}

.time-dock label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.time-dock span {
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 840;
  text-align: center;
}

.time-dock input {
  width: 100%;
  accent-color: var(--gold);
}

.time-dock p {
  grid-column: 1 / -1;
  margin: -2px 4px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

body[data-timeline-view="map"] .time-dock,
body[data-timeline-view="globe"] .time-dock {
  opacity: 0.82;
  transform: translate(-50%, calc(100% - 18px));
  transition: opacity 180ms ease, transform 180ms ease;
}

body[data-timeline-view="map"] .time-dock:hover,
body[data-timeline-view="map"] .time-dock:focus-within,
body[data-timeline-view="globe"] .time-dock:hover,
body[data-timeline-view="globe"] .time-dock:focus-within {
  opacity: 1;
  transform: translateX(-50%);
}

body.modal-open {
  overflow: hidden;
}

.onboarding-modal[hidden],
.reward-modal[hidden] {
  display: none;
}

.onboarding-modal,
.reward-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.onboarding-backdrop,
.reward-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 18%, rgba(216, 173, 97, 0.14), transparent 34%),
    radial-gradient(circle at 74% 74%, rgba(100, 198, 173, 0.1), transparent 38%),
    rgba(3, 4, 5, 0.78);
  backdrop-filter: blur(14px) saturate(120%);
}

.onboarding-sheet,
.reward-sheet {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(1080px, 100%);
  max-height: min(840px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(216, 173, 97, 0.42);
  border-radius: 10px;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(216, 173, 97, 0.14), transparent 32%),
    radial-gradient(circle at 90% 76%, rgba(100, 198, 173, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(215, 178, 105, 0.045) 1px, transparent 1px) 0 0 / 92px 100%,
    linear-gradient(180deg, rgba(255, 250, 240, 0.072), rgba(255, 250, 240, 0.02)),
    rgba(11, 12, 13, 0.96);
  box-shadow:
    0 34px 92px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 250, 240, 0.06);
  outline: none;
}

.reward-sheet {
  width: min(500px, 100%);
  gap: 14px;
  padding: 20px;
  background:
    radial-gradient(circle at 16% 0%, rgba(245, 204, 126, 0.16), transparent 34%),
    radial-gradient(circle at 86% 88%, rgba(100, 198, 173, 0.075), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.074), rgba(255, 250, 240, 0.024)),
    rgba(13, 14, 16, 0.98);
}

.onboarding-close,
.reward-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  font-size: 18px;
  font-weight: 720;
}

.onboarding-close:hover,
.reward-close:hover {
  border-color: rgba(216, 173, 97, 0.58);
  background: rgba(216, 173, 97, 0.12);
}

.onboarding-kicker,
.reward-kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.12em;
}

.reward-copy {
  display: grid;
  gap: 8px;
}

.reward-copy h2 {
  max-width: 370px;
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(26px, 4.2vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
}

.reward-copy p {
  margin: 0;
  color: #d8cfbe;
  font-size: 13px;
  line-height: 1.62;
}

.reward-code-card {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 260px;
  border: 1px dashed rgba(245, 204, 126, 0.44);
  border-radius: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 34%, rgba(245, 204, 126, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.065), rgba(255, 250, 240, 0.025)),
    rgba(255, 255, 255, 0.035);
  text-align: center;
}

.reward-code-card img {
  display: block;
  width: min(300px, 70vw);
  height: auto;
  max-height: min(455px, 52vh);
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(245, 204, 126, 0.22);
}

.reward-code-card strong {
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 1.35;
}

.onboarding-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
  align-items: center;
}

.onboarding-hero span {
  display: inline-flex;
  border: 1px solid rgba(216, 173, 97, 0.35);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(216, 173, 97, 0.08);
  color: var(--gold);
  font-size: 12px;
  font-weight: 840;
}

.onboarding-hero h2 {
  max-width: 600px;
  margin: 14px 0 10px;
  color: var(--ink-strong);
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.onboarding-hero p {
  max-width: 560px;
  margin: 0;
  color: #ddd4c1;
  font-size: 15px;
  line-height: 1.7;
}

.onboarding-orbit {
  position: relative;
  min-height: 190px;
  border: 1px solid rgba(216, 173, 97, 0.22);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(216, 173, 97, 0.16), transparent 36%),
    rgba(255, 255, 255, 0.026);
}

.onboarding-orbit::before,
.onboarding-orbit::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(216, 173, 97, 0.24);
  border-radius: 999px;
  transform: rotate(-23deg);
}

.onboarding-orbit::after {
  inset: 48px 26px;
  border-color: rgba(100, 198, 173, 0.24);
  transform: rotate(22deg);
}

.onboarding-orbit i {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 999px;
  background: rgba(18, 19, 19, 0.88);
  color: var(--ink);
  font-style: normal;
  font-size: 12px;
  font-weight: 840;
}

.onboarding-orbit i:nth-child(1) {
  top: 24px;
  left: 32px;
  color: var(--gold);
}

.onboarding-orbit i:nth-child(2) {
  top: 54px;
  right: 30px;
  color: var(--jade);
}

.onboarding-orbit i:nth-child(3) {
  bottom: 28px;
  left: 44px;
  color: var(--blue);
}

.onboarding-orbit i:nth-child(4) {
  right: 42px;
  bottom: 26px;
  color: var(--violet);
}

.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.onboarding-grid article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  border: 1px solid rgba(216, 173, 97, 0.2);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.055), rgba(255, 250, 240, 0.018)),
    rgba(255, 255, 255, 0.028);
}

.onboarding-grid article:nth-child(2) {
  border-color: rgba(100, 198, 173, 0.26);
}

.onboarding-grid article:nth-child(3) {
  border-color: rgba(111, 147, 210, 0.28);
}

.onboarding-grid span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 880;
}

.onboarding-grid strong {
  color: var(--ink-strong);
  font-size: 17px;
  line-height: 1.18;
}

.onboarding-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.onboarding-release {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(216, 173, 97, 0.22);
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 173, 97, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.052), rgba(100, 198, 173, 0.035)),
    rgba(255, 255, 255, 0.025);
}

.onboarding-release-history {
  border-color: rgba(245, 234, 212, 0.14);
  background:
    radial-gradient(circle at 92% 0%, rgba(100, 198, 173, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.034), rgba(216, 173, 97, 0.03)),
    rgba(255, 255, 255, 0.018);
}

.onboarding-release > div {
  display: grid;
  gap: 7px;
}

.onboarding-release span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 880;
}

.onboarding-release strong {
  color: var(--ink-strong);
  font-size: 15px;
  line-height: 1.35;
}

.onboarding-release ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.onboarding-release li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.56;
}

.onboarding-release li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(216, 173, 97, 0.72);
  border-radius: 999px;
  background: rgba(216, 173, 97, 0.2);
}

.onboarding-release b {
  color: #efe5cf;
}

.onboarding-version-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 7px;
}

.onboarding-version-list li {
  padding-left: 16px;
}

.onboarding-version-list li::before {
  width: 6px;
  height: 6px;
  border-color: rgba(100, 198, 173, 0.56);
  background: rgba(100, 198, 173, 0.16);
}

.onboarding-playbook {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(100, 198, 173, 0.24);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(100, 198, 173, 0.08), rgba(216, 173, 97, 0.055)),
    rgba(255, 255, 255, 0.025);
}

.onboarding-playbook span {
  color: var(--jade);
  font-size: 13px;
  font-weight: 860;
}

.onboarding-playbook ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #ded5c3;
  font-size: 13px;
  line-height: 1.55;
}

.onboarding-demo-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  max-width: 620px;
  margin-top: 18px;
  border: 1px solid rgba(245, 204, 126, 0.34);
  border-radius: 10px;
  padding: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 204, 126, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.07), rgba(100, 198, 173, 0.045)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.06);
}

.onboarding-demo-callout strong {
  display: block;
  color: var(--ink-strong);
  font-size: 15px;
  line-height: 1.3;
}

.onboarding-demo-callout p {
  margin: 4px 0 0;
  color: #d6cdbc;
  font-size: 12px;
  line-height: 1.55;
}

.demo-start-button,
.primary-button,
.ghost-button {
  min-height: 38px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 860;
  letter-spacing: 0;
  white-space: nowrap;
}

.demo-start-button,
.primary-button {
  border: 1px solid rgba(255, 238, 190, 0.58);
  background: linear-gradient(180deg, #f1cc7a, #bf8739);
  color: #171109;
  box-shadow:
    0 14px 28px rgba(205, 151, 64, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.demo-start-button {
  padding: 0 15px;
}

.demo-start-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 34px rgba(205, 151, 64, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.ghost-button {
  border: 1px solid rgba(255, 250, 240, 0.16);
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.055);
  color: #e8dfcf;
}

.ghost-button:hover {
  border-color: rgba(245, 204, 126, 0.42);
  background: rgba(245, 204, 126, 0.1);
}

.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
  transform: none;
}

.guided-demo[hidden] {
  display: none;
}

.guided-demo {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.guided-demo-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background:
    radial-gradient(circle at 22% 18%, rgba(245, 204, 126, 0.1), transparent 28%),
    radial-gradient(circle at 78% 78%, rgba(100, 198, 173, 0.075), transparent 32%),
    rgba(2, 3, 4, 0.3);
  backdrop-filter: blur(4px) saturate(112%);
}

.guided-demo-card {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: grid;
  gap: 10px;
  width: min(370px, calc(100vw - 32px));
  border: 1px solid rgba(245, 204, 126, 0.46);
  border-radius: 12px;
  padding: 16px;
  background:
    radial-gradient(circle at 8% 0%, rgba(245, 204, 126, 0.16), transparent 35%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.09), rgba(255, 250, 240, 0.025)),
    rgba(16, 17, 18, 0.95);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 250, 240, 0.04) inset;
  outline: none;
  pointer-events: auto;
}

.guided-demo-step {
  width: fit-content;
  border: 1px solid rgba(245, 204, 126, 0.28);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(245, 204, 126, 0.08);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.guided-demo-card h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: 0;
}

.guided-demo-card p {
  margin: 0;
  color: #ded5c3;
  font-size: 13px;
  line-height: 1.62;
}

.guided-demo-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.guided-demo-actions > div {
  display: flex;
  gap: 8px;
}

body.guided-demo-active .guided-demo-highlight {
  position: relative;
  z-index: 110;
  border-color: rgba(245, 204, 126, 0.74) !important;
  box-shadow:
    0 0 0 2px rgba(245, 204, 126, 0.42),
    0 0 0 8px rgba(245, 204, 126, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.36) !important;
  animation: guidedDemoPulse 1200ms ease-in-out infinite;
}

.guided-demo-focus-clone {
  position: fixed;
  z-index: 112;
  box-sizing: border-box;
  overflow: hidden !important;
  margin: 0 !important;
  border: 1px solid rgba(245, 204, 126, 0.78) !important;
  border-radius: 10px;
  filter: none !important;
  opacity: 1 !important;
  pointer-events: none;
  background-color: rgba(12, 13, 13, 0.96);
  box-shadow:
    0 0 0 3px rgba(245, 204, 126, 0.2),
    0 18px 54px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 250, 240, 0.1) !important;
}

.guided-demo-focus-clone *,
.guided-demo-focus-clone *::before,
.guided-demo-focus-clone *::after {
  filter: none !important;
}

@keyframes guidedDemoPulse {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.16);
  }
}

@media (max-width: 1120px) {
  .workbench {
    grid-template-columns: 1fr;
  }

  .reading-guide-head,
  .next-step-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .reading-guide-floating .reading-guide-head {
    align-items: center;
    flex-direction: row;
  }

  .reading-mode-tabs {
    width: fit-content;
  }

  .reading-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reading-guide-floating .reading-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .next-step-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .insight-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

	  .year-priority-card,
	  .event-explainer-card,
	  .network-explainer-card,
	  .civilization-lens-card {
	    grid-column: 1 / -1;
	  }

  .duel-sides,
  .comparison-grid,
  .evolution-path,
  .onboarding-hero,
  .onboarding-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    padding-right: 0;
  }

	  .onboarding-hero {
	    grid-template-columns: minmax(0, 1fr);
	  }
	}

@media (max-width: 760px) {
  .app-shell {
    padding: 10px 10px 92px;
  }

  .topbar {
    display: grid;
  }

  .brand-title-row {
    flex-wrap: wrap;
  }

  .atlas-meta {
    min-width: 0;
  }

  .top-actions {
    justify-content: stretch;
  }

  .reading-guide {
    padding: 12px;
  }

  .reading-guide-floating {
    top: auto !important;
    right: 10px;
    bottom: 12px;
    left: 10px !important;
    width: auto;
    max-height: min(78vh, 620px);
    border-radius: 12px;
  }

  .reading-guide-floating .reading-guide-body {
    max-height: min(62vh, 490px);
  }

  .reading-guide-head {
    gap: 10px;
  }

  .reading-guide h2 {
    font-size: 16px;
  }

  .reading-mode-tabs {
    width: 100%;
  }

  .reading-mode {
    flex: 1;
    padding: 0 8px;
  }

  .reading-path {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .reading-path button {
    flex: 0 0 170px;
    scroll-snap-align: start;
  }

  .route-cards,
  body[data-reading-mode="routes"] .route-cards {
    grid-template-columns: 1fr;
  }

  .search-box,
  .guide-trigger,
  .reward-trigger,
  .year-readout {
    min-width: 0;
    width: 100%;
    text-align: left;
  }

  .search-box input {
    width: 100%;
  }

	  .insight-panel {
	    grid-template-columns: 1fr;
	  }

	  .sync-radar-grid,
	  .causality-graph {
	    grid-template-columns: 1fr;
	  }

	  .onboarding-modal,
  .reward-modal {
    padding: 10px;
  }

  .onboarding-sheet,
  .reward-sheet {
    max-height: calc(100vh - 20px);
    padding: 18px;
  }

	  .onboarding-hero,
	  .onboarding-grid,
	  .onboarding-release,
	  .onboarding-playbook {
	    grid-template-columns: 1fr;
	  }

  .onboarding-demo-callout {
    grid-template-columns: 1fr;
  }

  .demo-start-button {
    width: 100%;
  }

  .onboarding-orbit {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 0;
    padding: 12px;
  }

  .onboarding-orbit::before,
  .onboarding-orbit::after {
    display: none;
  }

  .onboarding-orbit i {
    position: static;
    width: auto;
    height: 30px;
    border-radius: 999px;
    padding: 0 11px;
  }

	  .reward-code-card {
	    min-height: 220px;
	    padding: 14px;
	  }

  .guided-demo-card {
    right: 10px;
    bottom: 10px;
    left: 10px;
    top: auto;
    width: auto;
    padding: 14px;
  }

  .guided-demo-card h2 {
    font-size: 19px;
  }

  .guided-demo-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .guided-demo-actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .duel-sides,
  .duel-selectors {
    grid-template-columns: 1fr;
  }

  .evolution-path {
    grid-template-columns: 1fr;
  }

  .evolution-detail div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .timeline-controls {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 14px 9px;
  }

  .year-brief-card,
  .next-step-panel {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
  }

  .next-step-actions {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .next-step-actions button {
    flex: 0 0 154px;
  }

  .timeline-control-stack {
    gap: 7px;
  }

  .story-tabs,
  .filter-row {
    gap: 6px;
  }

  .story-tab,
  .filter-chip {
    min-height: 29px;
    padding: 0 9px;
    font-size: 11px;
  }

  .view-switch {
    justify-self: start;
  }

  .view-mode-tools {
    justify-items: stretch;
    width: 100%;
    max-width: none;
  }

  .event-track-panel {
    padding: 12px 14px 14px;
  }

  .event-track-head {
    display: grid;
    gap: 6px;
  }

  .event-track-head p {
    text-align: left;
  }

  .event-track {
    grid-auto-columns: minmax(168px, 78vw);
  }

  .time-dock {
    grid-template-columns: 74px minmax(0, 1fr) 74px;
    bottom: 10px;
    padding: 8px;
  }

  .time-dock button {
    font-size: 11px;
  }

  body[data-timeline-view="map"] .time-dock,
  body[data-timeline-view="globe"] .time-dock {
    transform: translate(-50%, calc(100% - 6px));
  }

  .timeline-scroll {
    min-height: 500px;
    max-height: 68vh;
  }

  .world-map-panel,
  .globe-panel {
    grid-template-columns: 1fr;
    max-height: 68vh;
    min-height: 0;
    padding: 14px 14px 94px;
  }

  .map-head {
    display: grid;
    gap: 6px;
  }

  .map-head-actions {
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }

  .map-head p {
    text-align: left;
  }

  .map-playback {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .world-map-stage {
    min-height: 0;
    aspect-ratio: 2048 / 800;
  }

  .globe-stage {
    min-height: 360px;
  }

  .globe-layer-controls {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    border-radius: 16px;
    padding: 5px;
  }

  .globe-layer-controls button {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  .globe-sphere {
    width: min(88vw, 420px);
  }

  .globe-node {
    width: 66px;
  }

  .globe-node em {
    max-width: 92px;
    font-size: 11px;
    opacity: 0;
    transform: translateX(-50%) translateY(2px);
    transition: opacity 140ms ease, transform 140ms ease;
  }

  .globe-node.selected em,
  .globe-node:hover em {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .globe-event-marker span {
    display: none;
  }

  .map-event-list,
  .globe-event-list {
    max-height: 220px;
  }

  :root {
    --label-width: 140px;
  }

  .lane-label {
    padding: 10px;
  }

  .lane-label strong {
    font-size: 13px;
  }
}

/* Museum atlas visual trial skin. Functional markup and JS remain unchanged. */
body.museum-atlas-skin {
  --museum-gold: #d7b06b;
  --museum-brass: #8d6635;
  --museum-ink: #fff5df;
  --bg: #050607;
  --panel-solid: #121313;
  --panel:
    linear-gradient(180deg, rgba(35, 33, 29, 0.94), rgba(11, 12, 12, 0.93)),
    rgba(13, 14, 14, 0.92);
  --panel-strong:
    linear-gradient(180deg, rgba(48, 43, 34, 0.94), rgba(13, 14, 14, 0.96));
  --museum-panel:
    radial-gradient(circle at 18% 0%, rgba(215, 176, 107, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(34, 32, 28, 0.96), rgba(11, 12, 12, 0.94)),
    rgba(12, 13, 13, 0.94);
  --museum-panel-soft:
    linear-gradient(180deg, rgba(255, 245, 223, 0.078), rgba(255, 245, 223, 0.024)),
    rgba(13, 14, 14, 0.82);
  --ink: #eadfc9;
  --ink-strong: #fff5df;
  --muted: #c4b697;
  --muted-2: #8f826d;
  --line: rgba(215, 176, 107, 0.34);
  --line-strong: rgba(237, 201, 126, 0.78);
  --gold: #d7b06b;
  --jade: #70bda2;
  --red: #c56d5e;
  --blue: #6e91c7;
  --violet: #a08ac0;
  --shadow:
    0 30px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 245, 223, 0.08);
  background:
    radial-gradient(circle at 18% 6%, rgba(215, 176, 107, 0.18), transparent 26%),
    radial-gradient(circle at 86% 14%, rgba(112, 189, 162, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 245, 223, 0.022), transparent 24%),
    linear-gradient(180deg, #070808 0%, #11110f 46%, #060706 100%);
}

body.museum-atlas-skin::before {
  background:
    linear-gradient(rgba(215, 176, 107, 0.035) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(215, 176, 107, 0.026) 1px, transparent 1px) 0 0 / 118px 100%,
    radial-gradient(circle at 50% 8%, rgba(255, 245, 223, 0.055), transparent 30%);
  opacity: 0.82;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 92%);
}

body.museum-atlas-skin::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(112deg, rgba(255, 245, 223, 0.018) 0 1px, transparent 1px 9px),
    radial-gradient(circle at 50% 50%, transparent 0 54%, rgba(0, 0, 0, 0.48) 100%);
  opacity: 0.52;
}

.museum-atlas-skin .app-shell {
  padding: 16px 16px 92px;
}

.museum-atlas-skin .topbar,
.museum-atlas-skin .timeline-panel,
.museum-atlas-skin .year-priority-card,
.museum-atlas-skin .event-explainer-card,
.museum-atlas-skin .network-explainer-card,
.museum-atlas-skin .civilization-lens-card,
.museum-atlas-skin .reading-guide {
  position: relative;
  border-color: rgba(215, 176, 107, 0.44);
  background:
    linear-gradient(90deg, rgba(215, 176, 107, 0.08) 1px, transparent 1px) 0 0 / 124px 100%,
    var(--museum-panel);
  box-shadow:
    0 28px 74px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 245, 223, 0.08),
    inset 0 0 0 1px rgba(255, 245, 223, 0.025);
}

.museum-atlas-skin .topbar::before,
.museum-atlas-skin .timeline-panel::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 0;
  border: 1px solid rgba(215, 176, 107, 0.12);
  border-radius: 5px;
  pointer-events: none;
}

.museum-atlas-skin .topbar > *,
.museum-atlas-skin .timeline-panel > * {
  position: relative;
  z-index: 1;
}

.museum-atlas-skin .topbar {
  min-height: 112px;
  padding: 18px 24px;
}

.museum-atlas-skin .brand h1 {
  color: transparent;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  font-size: clamp(38px, 4.1vw, 60px);
  font-weight: 740;
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, #ffe4a8 0%, #d7b06b 48%, #8f6b34 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 24px rgba(215, 176, 107, 0.18),
    0 2px 12px rgba(0, 0, 0, 0.54);
}

.museum-atlas-skin .eyebrow,
.museum-atlas-skin .brand-kicker-row .eyebrow {
  color: rgba(236, 201, 126, 0.86);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.museum-atlas-skin .atlas-meta {
  padding-left: 18px;
  border-left: 1px solid rgba(215, 176, 107, 0.28);
}

.museum-atlas-skin .atlas-meta span {
  color: #e5bd75;
  letter-spacing: 0.08em;
}

.museum-atlas-skin .atlas-meta strong {
  color: #fff4da;
}

.museum-atlas-skin .author-contact-inline strong {
  color: rgba(232, 190, 111, 0.92);
}

.museum-atlas-skin .search-box span {
  color: rgba(221, 204, 166, 0.72);
}

.museum-atlas-skin .search-box input,
.museum-atlas-skin .guide-trigger,
.museum-atlas-skin .story-tab,
.museum-atlas-skin .filter-chip,
.museum-atlas-skin .reading-mode,
.museum-atlas-skin .reading-path button,
.museum-atlas-skin .route-cards button,
.museum-atlas-skin .next-step-actions button,
.museum-atlas-skin .playback-toggle,
.museum-atlas-skin .map-playback select {
  border-color: rgba(215, 176, 107, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 245, 223, 0.075), rgba(255, 245, 223, 0.018)),
    rgba(8, 9, 9, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 223, 0.07),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.museum-atlas-skin .reward-trigger {
  border-color: rgba(255, 223, 153, 0.88);
  background:
    linear-gradient(180deg, #f9db93, #d3a04b 54%, #a87935),
    #d7a348;
  box-shadow:
    0 16px 34px rgba(215, 176, 107, 0.24),
    inset 0 1px 0 rgba(255, 248, 219, 0.55);
}

.museum-atlas-skin .timeline-panel {
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 9px;
}

.museum-atlas-skin .year-brief-card {
  padding: 14px 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(112, 189, 162, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 245, 223, 0.054), rgba(255, 245, 223, 0.012));
}

.museum-atlas-skin .year-brief-card strong {
  font-size: 22px;
}

.museum-atlas-skin .timeline-controls {
  padding: 14px 22px 12px;
  background:
    linear-gradient(180deg, rgba(255, 245, 223, 0.028), transparent),
    rgba(7, 8, 8, 0.22);
}

.museum-atlas-skin .story-tab,
.museum-atlas-skin .filter-chip {
  min-height: 32px;
  border-radius: 6px;
  color: rgba(241, 226, 194, 0.82);
}

.museum-atlas-skin .story-tab.active,
.museum-atlas-skin .filter-chip.active,
.museum-atlas-skin .view-option.active,
.museum-atlas-skin .reading-mode.active {
  border-color: rgba(242, 207, 135, 0.92);
  background:
    linear-gradient(180deg, rgba(215, 176, 107, 0.42), rgba(118, 82, 36, 0.18)),
    rgba(215, 176, 107, 0.09);
  color: #fff5df;
  box-shadow:
    0 0 0 1px rgba(242, 207, 135, 0.12),
    0 10px 22px rgba(215, 176, 107, 0.15),
    inset 0 1px 0 rgba(255, 245, 223, 0.16);
}

.museum-atlas-skin .view-switch {
  border-radius: 10px;
  border-color: rgba(215, 176, 107, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 245, 223, 0.095), rgba(255, 245, 223, 0.024)),
    rgba(8, 9, 9, 0.72);
}

.museum-atlas-skin .view-option {
  border-radius: 7px;
  color: rgba(241, 226, 194, 0.7);
}

.museum-atlas-skin .world-map-panel,
.museum-atlas-skin .globe-panel,
.museum-atlas-skin .timeline-scroll {
  border-top-color: rgba(215, 176, 107, 0.36);
  background:
    linear-gradient(90deg, rgba(215, 176, 107, 0.062) 1px, transparent 1px) 0 0 / 118px 100%,
    linear-gradient(180deg, rgba(255, 245, 223, 0.032), rgba(0, 0, 0, 0.28)),
    #0b0d0d;
}

.museum-atlas-skin .world-map-stage,
.museum-atlas-skin .globe-stage {
  border-color: rgba(228, 187, 112, 0.5);
  border-radius: 7px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 245, 223, 0.045),
    inset 0 0 64px rgba(0, 0, 0, 0.42),
    0 22px 54px rgba(0, 0, 0, 0.38);
}

.museum-atlas-skin .world-map-stage {
  filter: saturate(0.9) contrast(1.14) brightness(0.96);
}

.museum-atlas-skin .world-map-stage::after,
.museum-atlas-skin .globe-stage::after {
  border-color: rgba(255, 245, 223, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(7, 8, 8, 0.68),
    inset 0 0 0 5px rgba(215, 176, 107, 0.035);
}

.museum-atlas-skin .globe-stage {
  background:
    radial-gradient(circle at 52% 48%, rgba(67, 77, 71, 0.88) 0 29%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(215, 176, 107, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 245, 223, 0.034), rgba(0, 0, 0, 0.36)),
    #070808;
}

.museum-atlas-skin .globe-layer-controls {
  border-color: rgba(215, 176, 107, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 245, 223, 0.08), rgba(255, 245, 223, 0.014)),
    rgba(8, 9, 9, 0.64);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 245, 223, 0.08);
}

.museum-atlas-skin .globe-layer-controls button {
  border-color: rgba(215, 176, 107, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 245, 223, 0.078), rgba(255, 245, 223, 0.016)),
    rgba(8, 9, 9, 0.52);
}

.museum-atlas-skin .globe-layer-controls button.active {
  border-color: rgba(242, 207, 135, 0.86);
  background:
    linear-gradient(180deg, rgba(215, 176, 107, 0.46), rgba(116, 81, 36, 0.22)),
    rgba(215, 176, 107, 0.12);
}

.museum-atlas-skin .map-event-card,
.museum-atlas-skin .major-event-card,
.museum-atlas-skin .collapsible-panel,
.museum-atlas-skin .mechanism-item,
.museum-atlas-skin .influence-summary,
.museum-atlas-skin .source-note {
  border-color: rgba(215, 176, 107, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 245, 223, 0.066), rgba(255, 245, 223, 0.014)),
    rgba(9, 10, 10, 0.68);
}

.museum-atlas-skin .year-priority-card,
.museum-atlas-skin .event-explainer-card,
.museum-atlas-skin .network-explainer-card,
.museum-atlas-skin .civilization-lens-card {
  border-radius: 7px;
  padding: 17px;
}

.museum-atlas-skin .panel-title strong,
.museum-atlas-skin .subsection-title strong,
.museum-atlas-skin .year-brief-card strong,
.museum-atlas-skin .event-track-head strong,
.museum-atlas-skin .map-head strong {
  color: #fff3d7;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.38);
}

.museum-atlas-skin .panel-title span,
.museum-atlas-skin .subsection-title span,
.museum-atlas-skin .event-track-head span,
.museum-atlas-skin .map-head span {
  color: rgba(226, 191, 117, 0.82);
}

.museum-atlas-skin .timeline-scroll {
  background:
    linear-gradient(90deg, rgba(215, 176, 107, 0.08) 1px, transparent 1px) 0 0 / 120px 100%,
    linear-gradient(180deg, rgba(255, 245, 223, 0.034), rgba(0, 0, 0, 0.26)),
    #0c0e0e;
}

.museum-atlas-skin .timeline-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 245, 223, 0.012) 0 1px, transparent 1px 6px),
    linear-gradient(90deg, rgba(215, 176, 107, 0.05), transparent 18%, transparent 82%, rgba(215, 176, 107, 0.04));
}

.museum-atlas-skin .ruler,
.museum-atlas-skin .lanes,
.museum-atlas-skin .year-cursor {
  position: relative;
  z-index: 1;
}

.museum-atlas-skin .lane-label {
  border-right-color: rgba(215, 176, 107, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 245, 223, 0.045), rgba(255, 245, 223, 0.014)),
    rgba(7, 8, 8, 0.9);
}

.museum-atlas-skin .lane-label::before {
  content: "";
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  border: 1px solid rgba(215, 176, 107, 0.5);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(215, 176, 107, 0.3), transparent 55%),
    conic-gradient(from 45deg, transparent 0 18%, rgba(215, 176, 107, 0.5) 18% 20%, transparent 20% 68%, rgba(215, 176, 107, 0.5) 68% 70%, transparent 70%);
  box-shadow: inset 0 0 0 4px rgba(215, 176, 107, 0.055);
}

.museum-atlas-skin .event {
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 223, 0.16),
    0 10px 22px rgba(0, 0, 0, 0.32);
}

.museum-atlas-skin .time-dock {
  border-color: rgba(215, 176, 107, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 245, 223, 0.06), rgba(255, 245, 223, 0.016)),
    rgba(8, 9, 9, 0.76);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 245, 223, 0.06);
}

.museum-atlas-skin .reading-guide {
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(215, 176, 107, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 245, 223, 0.072), rgba(255, 245, 223, 0.018)),
    rgba(8, 9, 9, 0.82);
}

.museum-atlas-skin .reading-guide-floating {
  position: fixed;
  margin: 0;
  z-index: 34;
}

.museum-atlas-skin .reading-guide-handle strong::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 7px;
  vertical-align: -2px;
  border: 1px solid rgba(215, 176, 107, 0.56);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(215, 176, 107, 0.32), transparent 56%),
    conic-gradient(from 0deg, rgba(215, 176, 107, 0.58), transparent 13%, transparent 38%, rgba(215, 176, 107, 0.48), transparent 52%, transparent 84%, rgba(215, 176, 107, 0.52));
}

.museum-atlas-skin .collapse-toggle {
  border-color: rgba(215, 176, 107, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 245, 223, 0.08), rgba(255, 245, 223, 0.018)),
    rgba(8, 9, 9, 0.74);
}

@media (min-width: 1121px) {
  .museum-atlas-skin .app-shell {
    gap: 16px;
    padding: 16px;
  }

  .museum-atlas-skin .workbench {
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) 390px;
  }
}

@media (max-width: 760px) {
  .museum-atlas-skin .app-shell {
    padding: 10px 10px 92px;
  }

  .museum-atlas-skin .brand h1 {
    font-size: 38px;
  }

  .museum-atlas-skin .atlas-meta {
    border-left: 0;
    padding-left: 0;
  }
}

/* Compact museum atlas tuning from browser review. */
.museum-atlas-skin .topbar {
  min-height: 88px;
  padding: 12px 18px;
}

.museum-atlas-skin .brand h1 {
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 0.98;
}

.museum-atlas-skin .brand-kicker-row {
  margin-bottom: 5px;
}

.museum-atlas-skin .brand-title-row {
  gap: clamp(8px, 1.2vw, 16px);
}

.museum-atlas-skin .atlas-meta {
  padding-left: 14px;
  padding-bottom: 2px;
}

.museum-atlas-skin .top-actions {
  gap: 10px;
  align-items: end;
}

.museum-atlas-skin .search-box {
  gap: 4px;
}

.museum-atlas-skin .search-box input {
  height: 36px;
}

.museum-atlas-skin .guide-trigger,
.museum-atlas-skin .reward-trigger {
  min-height: 54px;
  padding: 7px 10px;
}

.museum-atlas-skin .year-brief-card {
  padding: 10px 18px;
}

.museum-atlas-skin .year-brief-card strong {
  font-size: 20px;
}

.museum-atlas-skin .year-brief-card p {
  font-size: 12px;
  line-height: 1.38;
}

.museum-atlas-skin .timeline-controls {
  padding: 10px 18px 9px;
}

.museum-atlas-skin .story-tab,
.museum-atlas-skin .filter-chip {
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
}

.museum-atlas-skin .view-switch {
  padding: 4px;
}

.museum-atlas-skin .view-option {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.museum-atlas-skin .timeline-scroll {
  min-height: 460px;
}

.museum-atlas-skin .ruler {
  height: 42px;
}

.museum-atlas-skin .tick {
  height: 42px;
}

.museum-atlas-skin .tick span {
  top: 10px;
  font-size: 11px;
}

.museum-atlas-skin .year-cursor {
  top: 42px;
}

.museum-atlas-skin .lane,
.museum-atlas-skin .track {
  min-height: 62px;
}

.museum-atlas-skin .lane-label {
  gap: 2px;
  padding: 6px 12px;
}

.museum-atlas-skin .lane-label::before {
  width: 15px;
  height: 15px;
  margin-bottom: 1px;
}

.museum-atlas-skin .lane-label strong {
  font-size: 13px;
  line-height: 1.18;
}

.museum-atlas-skin .lane-label span {
  font-size: 10.5px;
  line-height: 1.18;
}

.museum-atlas-skin .event {
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

@media (min-width: 1121px) {
  .museum-atlas-skin .app-shell {
    gap: 8px;
    padding: 12px 16px 14px;
  }

  .museum-atlas-skin .workbench {
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .museum-atlas-skin .topbar {
    min-height: 0;
    padding: 12px;
  }

  .museum-atlas-skin .brand h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  .museum-atlas-skin .guide-trigger,
  .museum-atlas-skin .reward-trigger {
    min-height: 0;
  }
}
