/* === Flaggen der Welt — Globus + Karte === */
:root {
  --bg: #0a1420;
  --bg-2: #0d1a29;
  --ocean: #122236;
  --ocean-grid: #1a3050;
  --surface: #15263c;
  --surface-2: #1d3150;
  --border: rgba(212, 165, 116, 0.22);
  --border-strong: rgba(212, 165, 116, 0.55);
  --text: #f1ead9;
  --text-dim: rgba(241, 234, 217, 0.62);
  --text-mute: rgba(241, 234, 217, 0.38);
  --gold: #d4a574;
  --gold-bright: #e8c08a;
  --highlight: #ffcc66;

  --display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  /* Sehr subtiler Sternen-Schimmer / Papier-Textur */
  background:
    radial-gradient(ellipse 80% 60% at 30% 0%, rgba(212, 165, 116, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 70% 100%, rgba(64, 120, 200, 0.05) 0%, transparent 60%),
    var(--bg);
}

/* === Top Bar === */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(10, 20, 32, 0.96) 0%, rgba(10, 20, 32, 0.85) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.brand .mark {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--text);
  font-style: italic;
}
.brand .mark em {
  font-style: normal;
  color: var(--gold);
}
.brand .sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* View switch */
.view-switch {
  display: flex;
  gap: 0;
  padding: 4px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.view-switch button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 220ms ease;
}
.view-switch button:hover { color: var(--text); }
.view-switch button.active {
  background: var(--gold);
  color: #1a1208;
  font-weight: 600;
}

/* Controls cluster (rechts oben) */
.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.controls .icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms ease;
}
.controls .icon-btn:hover { color: var(--gold); border-color: var(--border-strong); }
.controls .icon-btn svg { width: 16px; height: 16px; }

/* === Stage === */
.stage {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}
.canvas-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
svg.world {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}
svg.world.dragging { cursor: grabbing; }

/* Globus: Halo & Schatten */
.globe-halo {
  fill: url(#oceanGradient);
  filter: drop-shadow(0 12px 80px rgba(64, 130, 200, 0.18));
}
.globe-graticule {
  fill: none;
  stroke: var(--ocean-grid);
  stroke-width: 0.5;
  opacity: 0.7;
  pointer-events: none;
}
.country {
  stroke: rgba(10, 20, 32, 0.85);
  stroke-width: 0.4;
  cursor: pointer;
  transition: filter 180ms ease, stroke 180ms ease, stroke-width 180ms ease;
}
.country:hover {
  stroke: var(--gold-bright);
  stroke-width: 1.4;
  filter: brightness(1.18) saturate(1.15) drop-shadow(0 0 12px rgba(212, 165, 116, 0.55));
}
.country.selected {
  stroke: var(--highlight);
  stroke-width: 1.6;
  filter: brightness(1.22) saturate(1.2) drop-shadow(0 0 14px rgba(255, 204, 102, 0.7));
}
.country.no-flag {
  fill: #2a3b54;
}

/* === Country Tooltip === */
.tooltip {
  position: fixed;
  pointer-events: none;
  background: rgba(10, 20, 32, 0.96);
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 40;
  opacity: 0;
  transform: translate(-50%, -130%);
  transition: opacity 120ms;
}
.tooltip.show { opacity: 1; }
.tooltip .code {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold);
  vertical-align: middle;
}

/* === Detail Panel === */
.panel {
  position: fixed;
  top: 64px;
  right: 0;
  width: 460px;
  bottom: 0;
  background: linear-gradient(to bottom, var(--bg-2) 0%, var(--bg) 100%);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 60px rgba(0,0,0,0.45);
  z-index: 30;
  transform: translateX(100%);
  transition: transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.panel.open { transform: translateX(0); }
.panel-chrome {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.panel-scroll::-webkit-scrollbar { width: 6px; }
.panel-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; }

.panel-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: all 160ms ease;
}
.panel-close:hover { background: rgba(0,0,0,0.85); color: var(--gold); }

.panel-header {
  padding: 26px 32px 22px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.panel .flag-display {
  width: 220px;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
  margin-bottom: 22px;
  background: rgba(255,255,255,0.04);
}
.panel .flag-display svg,
.panel .flag-display img { display: block; width: 100%; height: 100%; object-fit: contain; }
.panel .country-name {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 6px;
}
.panel .country-meta {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.panel .country-meta span { display: inline-flex; align-items: center; gap: 6px; }
.panel .country-meta .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--gold); opacity: 0.5; }

.panel-section {
  padding: 26px 32px;
  border-bottom: 1px solid var(--border);
}
.panel-section h3 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-section h3::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--gold);
}
.panel-section .body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}
.panel-section .body p { margin-bottom: 12px; }
.panel-section .body p:last-child { margin-bottom: 0; }

/* Farbe-Bedeutung-Cards */
.color-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.color-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.color-item .swatch {
  width: 38px; height: 38px;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 4px 12px rgba(0,0,0,0.4);
}
.color-item .meaning {
  flex: 1;
  font-size: 13px;
  line-height: 1.55;
}
.color-item .meaning strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 3px;
  font-style: italic;
}

.skeleton {
  display: block;
  height: 12px;
  margin: 8px 0;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.skeleton.s2 { width: 90%; }
.skeleton.s3 { width: 70%; }
@keyframes shimmer {
  from { background-position: -100% 0; }
  to   { background-position: 100% 0; }
}

.wiki-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 16px;
  background: rgba(212, 165, 116, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 180ms ease;
}
.wiki-link:hover {
  background: rgba(212, 165, 116, 0.18);
  color: var(--text);
}

/* Placeholder (kein Land ausgewählt, Globus-Hint) */
.hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  pointer-events: none;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 22px;
}
.hint span { display: inline-flex; align-items: center; gap: 8px; }
.hint .key {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  background: rgba(0,0,0,0.32);
}

/* Zoom-Indikator */
.zoom-pill {
  position: absolute;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.zoom-pill button {
  width: 22px; height: 22px;
  border: none;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.zoom-pill button:hover { background: rgba(212, 165, 116, 0.15); }

@media (max-width: 880px) {
  .panel { width: 100%; }
}

/* === Farbgruppen-Modus (Karte) === */
.country.color-match {
  filter: brightness(1.12) saturate(1.05)
          drop-shadow(0 6px 14px rgba(0,0,0,0.55))
          drop-shadow(0 0 12px rgba(212,165,116,0.55));
  stroke: var(--gold-bright);
  stroke-width: 1.2;
}
.country.color-dim {
  opacity: 0.13;
  filter: saturate(0.25);
  pointer-events: auto;  /* trotzdem klickbar */
}

/* === Gruppen-Panel === */
.group-header {
  padding: 28px 32px 24px;
}
.palette-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.palette-chip {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 6px 16px rgba(0,0,0,0.4);
}
.group-title {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 8px;
}
.group-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.group-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--body);
  color: var(--text);
  text-align: left;
  width: 100%;
  transition: background 160ms, border-color 160ms, transform 160ms;
}
.group-row:hover {
  background: rgba(212,165,116,0.08);
  border-color: var(--border-strong);
  transform: translateX(2px);
}
.group-row.is-source {
  background: rgba(212,165,116,0.12);
  border-color: var(--gold);
}
.group-row .row-flag {
  width: 38px;
  height: 28px;
  border-radius: 3px;
  object-fit: cover;
  background: rgba(0,0,0,0.3);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.group-row .row-name {
  flex: 1;
  min-width: 0;
}
.group-row .row-name .name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  font-style: italic;
}
.group-row .row-name .meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-top: 2px;
}
.group-row .row-blocs {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}
.group-row .row-arrow {
  color: var(--text-mute);
  flex-shrink: 0;
  transition: color 160ms, transform 160ms;
}
.group-row:hover .row-arrow {
  color: var(--gold);
  transform: translateX(2px);
}
.group-row .bloc-empty {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-mute);
}

/* === Bündnis-Badge === */
.bloc-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: help;
}
.bloc-badge.bloc-flag {
  width: 24px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10);
  background: #000;
}
.bloc-badge.bloc-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}
.bloc-badge.bloc-img {
  width: 24px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
  background: #000;
}
.bloc-badge.bloc-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bloc-badge.bloc-text {
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

/* === Back-Button (zurück zur Gruppe) === */
.panel-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,165,116,0.10);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 160ms ease;
}
.panel-back:hover {
  background: rgba(212,165,116,0.22);
  color: var(--text);
}

/* === Seiten-Header (Bündnisse, Statistik) === */
.blocs-wrap, .stats-wrap, .colors-wrap, .mirror-wrap, .war-wrap, .chronicle-wrap {
  align-items: stretch !important;
  justify-content: flex-start !important;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.blocs-wrap::-webkit-scrollbar,
.stats-wrap::-webkit-scrollbar,
.colors-wrap::-webkit-scrollbar,
.mirror-wrap::-webkit-scrollbar,
.war-wrap::-webkit-scrollbar,
.chronicle-wrap::-webkit-scrollbar { width: 8px; }
.blocs-wrap::-webkit-scrollbar-thumb,
.stats-wrap::-webkit-scrollbar-thumb,
.colors-wrap::-webkit-scrollbar-thumb,
.mirror-wrap::-webkit-scrollbar-thumb,
.war-wrap::-webkit-scrollbar-thumb,
.chronicle-wrap::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; }

.blocs-scroll, .stats-scroll {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 48px 80px;
}

.page-header { margin-bottom: 40px; max-width: 720px; }
.page-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.page-eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--gold);
}
.page-title {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--text);
  margin-bottom: 18px;
  font-style: italic;
}
.page-lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 580px;
}

/* === Bündnisse-Grid === */
.bloc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}
.bloc-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1), border-color 200ms, background 200ms, box-shadow 200ms;
  color: var(--text);
  font-family: var(--body);
}
.bloc-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.035);
  box-shadow: 0 18px 38px rgba(0,0,0,0.4);
}
.bloc-card-emblem {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(0,0,0,0.2));
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.bloc-card-emblem svg,
.bloc-card-emblem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bloc-card-emblem.text {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.94);
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.bloc-card-body {
  flex: 1;
  padding: 18px 22px;
}
.bloc-card-body h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 10px;
  font-style: italic;
}
.bloc-card-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  letter-spacing: 0.05em;
}
.bloc-card-meta .count {
  font-family: var(--display);
  font-style: normal;
  font-size: 28px;
  color: var(--gold);
  font-weight: 500;
}
.bloc-card-meta .label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.bloc-card-arrow {
  position: absolute;
  top: 16px; right: 16px;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.45);
  padding: 8px;
  border-radius: 999px;
  width: 32px; height: 32px;
  box-sizing: border-box;
  transition: all 200ms;
}
.bloc-card:hover .bloc-card-arrow {
  color: var(--gold);
  transform: translateX(2px);
  background: rgba(0,0,0,0.65);
}

/* Im Bündnis-Panel: text-badge anstelle einer Flagge */
.flag-display.text-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 600;
  font-style: italic;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.02em;
}

/* === Farben-Ansicht === */
.colors-scroll {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 48px 80px;
}
.color-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.color-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: all 160ms;
}
.color-tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.color-tab .dot {
  width: 12px; height: 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.color-tab .lbl {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--text);
}
.color-tab em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.color-section {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
}
.color-section-header {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 26px 28px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.color-section-bar {
  width: 8px;
  align-self: stretch;
  border-radius: 4px;
  box-shadow: 0 0 24px 1px var(--color);
}
.color-section-text { flex: 1; }
.color-section-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.color-section-header h2 {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.0;
  margin-bottom: 8px;
  color: var(--text);
}
.color-section-header p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 720px;
}
.color-section-count {
  font-family: var(--display);
  font-style: italic;
  font-size: 56px;
  color: var(--color);
  filter: brightness(1.2) saturate(1.1);
  line-height: 1;
  font-weight: 500;
  align-self: center;
  text-shadow: 0 0 36px var(--color);
}

.color-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.color-country {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 96px;
  position: relative;
}
.color-country:hover {
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}
.color-country.expanded {
  grid-column: span 2;
  background: rgba(212,165,116,0.06);
  border-color: var(--gold);
}
.color-country .cc-flag {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
.color-country .cc-name {
  font-family: var(--display);
  font-size: 17px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
}
.cc-meaning {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.color-country.expanded .cc-meaning {
  max-height: 320px;
  margin-top: 4px;
}
.cc-meaning .cc-mtxt {
  color: var(--text);
  font-family: var(--body);
}
.cc-meaning .cc-dim { color: var(--text-mute); font-style: italic; }
.cc-skel {
  height: 11px;
  margin: 5px 0;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.06) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.cc-skel.s2 { width: 70%; }
.cc-detail-link {
  margin-top: 10px;
  background: rgba(212,165,116,0.10);
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.cc-detail-link:hover { background: rgba(212,165,116,0.22); color: var(--text); }

/* === Einigung vs. Trennung === */
.uvs-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px;
}
.uvs-bar-row { margin-bottom: 26px; }
.uvs-bar {
  display: flex;
  width: 100%;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
}
.uvs-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.95);
  position: relative;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  transition: filter 200ms;
  cursor: default;
}
.uvs-seg:hover { filter: brightness(1.1); }
.seg-trennung { background: linear-gradient(135deg, #c44e3a, #8e2f1f); }
.seg-einigung { background: linear-gradient(135deg, #5fb87a, #2d7a4a); }
.seg-neu      { background: linear-gradient(135deg, #7a8aa6, #4a566c); }
.uvs-seg-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
}
.uvs-seg-lbl {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.85;
}

.uvs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 26px;
}
@media (max-width: 760px) {
  .uvs-grid { grid-template-columns: 1fr; }
}
.uvs-col h4 {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.uvs-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.seg-trennung-text { color: #e8856e; }
.seg-einigung-text { color: #7fd29a; }
.uvs-col p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.uvs-examples {
  font-family: var(--display);
  font-style: italic;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

.uvs-resume {
  padding: 22px 24px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(212,165,116,0.06);
}
.uvs-resume-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.uvs-resume p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.uvs-resume p strong { color: var(--gold-bright); font-weight: 600; }
.uvs-resume p em { color: var(--text); font-style: italic; }

/* === Chronik === */
.chronicle-scroll {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 48px 80px;
}
.chronicle-section { margin-bottom: 48px; }
.chronicle-h {
  font-family: var(--display);
  font-style: italic;
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.chronicle-h em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-left: 12px;
  text-transform: uppercase;
}
.chronicle-sub {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 22px;
  max-width: 720px;
  line-height: 1.55;
}

/* Antike-Strip */
.ancient-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.ancient-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 180ms;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ancient-card:hover {
  border-color: var(--border-strong);
  background: rgba(212,165,116,0.06);
  transform: translateY(-1px);
}
.ancient-year {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  font-weight: 500;
  line-height: 1;
}
.ancient-flag {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
.ancient-name {
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.15;
}
.ancient-note {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-dim);
}

/* Chart */
.chart-wrap {
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 14px;
}
.chronicle-chart {
  display: block;
  width: 100%;
  height: auto;
}
.chronicle-chart .bar {
  fill: var(--gold);
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 160ms, fill 160ms;
}
.chronicle-chart .bar:hover { opacity: 1; }
.chronicle-chart .bar.empty { opacity: 0.08; cursor: default; pointer-events: none; }
.chronicle-chart .bar.peak  { fill: #ffcc66; opacity: 0.95; }
.chronicle-chart .bar.selected {
  fill: #ffe6a8;
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255,204,102,0.7));
}

.chronicle-chart .grid line {
  stroke: rgba(255,255,255,0.06);
  stroke-width: 0.5;
}
.chronicle-chart .grid text,
.chronicle-chart .x-axis text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  fill: var(--text-mute);
}
.chronicle-chart .x-axis line {
  stroke: rgba(255,255,255,0.18);
  stroke-width: 0.5;
}
.chronicle-chart .axis-line {
  stroke: rgba(255,255,255,0.22);
  stroke-width: 0.6;
}
.chronicle-chart .axis-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--gold);
}
.chronicle-chart .annotation text {
  font-family: var(--display);
  font-style: italic;
  font-size: 12px;
  fill: var(--text);
}
.chronicle-chart .annotation .ann-count {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  fill: var(--gold);
  letter-spacing: 0.04em;
}

/* Dekaden-Detail */
.chronicle-detail-empty {
  padding: 32px 24px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.015);
  color: var(--text-mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.chr-detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.chr-detail-head h3 {
  font-family: var(--display);
  font-style: italic;
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
}
.chr-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}
.chr-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.chr-row {
  display: grid;
  grid-template-columns: 56px 48px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 160ms;
}
.chr-row:hover {
  background: rgba(212,165,116,0.06);
  border-color: var(--border-strong);
}
.chr-year {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  font-weight: 500;
}
.chr-flag {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
.chr-name {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}
.chr-note {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-top: 2px;
}

/* === Schlachtfeld === */
.war-scroll {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 48px 80px;
}
.war-section { margin-bottom: 56px; }
.war-h {
  font-family: var(--display);
  font-size: 28px;
  font-style: italic;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.war-sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 720px;
  margin-bottom: 22px;
}

/* Konflikt-Karten */
.war-conflicts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.war-conflict {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.war-conflict-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, rgba(196,78,58,0.10), rgba(0,0,0,0));
}
.war-conflict-title {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}
.war-conflict-year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.war-conflict-body {
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  gap: 18px;
  padding: 22px;
  align-items: center;
}
@media (max-width: 760px) {
  .war-conflict-body { grid-template-columns: 1fr; }
}
.war-side {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.war-side-right { justify-content: flex-end; }
.war-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 160ms;
}
.war-flag:hover { background: rgba(212,165,116,0.08); border-color: var(--border-strong); }
.war-flag img {
  width: 38px;
  height: 28px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
.war-flag-meta { display: flex; flex-direction: column; }
.war-flag-name {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  line-height: 1.15;
  color: var(--text);
}
.war-flag-year {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.war-shared {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px;
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.war-shared-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 32px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.war-shared-num small { font-size: 16px; color: var(--gold-bright); margin-left: 1px; }
.war-shared-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 4px;
}
.war-shared-verbal {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--text);
  margin-top: 8px;
}
.war-shared-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 10px;
}
.war-shared-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.war-shared-chip .dot { width: 8px; height: 8px; border-radius: 999px; }
.war-shared-none {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* Timeline */
.war-timeline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  max-height: 620px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.tl-row {
  display: grid;
  grid-template-columns: 70px 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 160ms;
}
.tl-row:hover { background: rgba(212,165,116,0.06); }
.tl-year {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  font-weight: 500;
}
.tl-flag {
  width: 48px; height: 36px;
  object-fit: cover; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
.tl-name {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tl-origin {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid;
  border-radius: 999px;
}
.tl-palette {
  display: flex;
  align-items: center;
  gap: 3px;
}
.tl-pal-chip {
  width: 11px; height: 16px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
.tl-pal-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-mute);
  margin-left: 6px;
  letter-spacing: 0.06em;
}

/* Violence list */
.war-violence {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.violence-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: rgba(196,78,58,0.04);
  border: 1px solid rgba(196,78,58,0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: all 200ms;
}
.violence-card:hover {
  background: rgba(196,78,58,0.08);
  border-color: rgba(196,78,58,0.5);
  transform: translateY(-1px);
}
.violence-flag {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.violence-body { flex: 1; min-width: 0; }
.violence-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 10px;
}
.violence-head h4 {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}
.violence-meta { display: flex; gap: 8px; align-items: center; }
.violence-year {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.violence-origin {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid;
  border-radius: 999px;
}
.violence-body p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* Origins grid */
.war-origins {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 16px;
}
.origin-group {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  border-top: 4px solid var(--origin);
}
.origin-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.origin-head h4 {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  color: var(--origin);
}
.origin-stats { display: flex; gap: 18px; }
.origin-stats > div {
  display: flex; flex-direction: column; align-items: flex-end;
}
.origin-stats .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}
.origin-stats .lbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 2px;
}
.origin-top {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
}
.origin-top-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.origin-top-chip .dot { width: 8px; height: 8px; border-radius: 999px; }
.origin-top-chip em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  color: var(--gold);
  margin-left: 2px;
}
.origin-flag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 4px;
}
.origin-flag {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: all 160ms;
  aspect-ratio: 4 / 3;
}
.origin-flag:hover {
  transform: scale(1.05);
  border-color: var(--gold);
  z-index: 1;
}
.origin-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Spiegel-Ansicht === */
.mirror-scroll {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 48px 80px;
}

.mirror-detail {
  margin-bottom: 40px;
  min-height: 120px;
}
.mirror-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 56px 24px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.015);
  color: var(--text-mute);
  text-align: center;
}
.mirror-empty p { max-width: 360px; font-size: 14px; line-height: 1.6; }
.mirror-empty svg { color: var(--gold); opacity: 0.7; }

.mirror-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.mirror-card.loading .mirror-bars { opacity: 0.4; }
.mirror-card-head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 32px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.025), rgba(0,0,0,0.15));
}
.mirror-flag {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10), 0 6px 16px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.mirror-head-text { flex: 1; }
.mirror-card .country-name {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.1;
  color: var(--text);
}
.mirror-score-big {
  text-align: right;
}
.mirror-score-big .num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 52px;
  line-height: 1;
  color: var(--gold);
}
.mirror-score-big .num small {
  font-size: 24px;
  color: var(--gold-bright);
  font-style: normal;
  font-weight: 500;
}
.mirror-score-big .lbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 4px;
}
.mirror-score-big.tendenz-zustand .num    { color: #5fb87a; }
.mirror-score-big.tendenz-sehnsucht .num  { color: #e89274; }
.mirror-score-big.tendenz-spannung .num   { color: var(--gold-bright); }

.mirror-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  padding: 28px 32px 32px;
}
@media (max-width: 920px) {
  .mirror-body { grid-template-columns: 1fr; }
}

.mirror-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mirror-row {
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.mirror-row-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.mirror-wert {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}
.mirror-quelle {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.mirror-score {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-left: 6px;
}
.mirror-score small {
  font-size: 12px;
  color: var(--text-mute);
  font-style: normal;
  margin-left: 1px;
}
.mirror-track {
  position: relative;
  height: 10px;
  background: rgba(0,0,0,0.35);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.mirror-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: linear-gradient(to right, #e89274 0%, #d4a574 50%, #5fb87a 100%);
  border-radius: 999px;
  transition: width 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mirror-midline {
  position: absolute;
  top: -2px; bottom: -2px;
  left: 50%;
  width: 1px;
  background: rgba(255,255,255,0.18);
}
.mirror-reason {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}
.mirror-row.tendenz-zustand    { border-color: rgba(95,184,122,0.30); }
.mirror-row.tendenz-sehnsucht  { border-color: rgba(232,146,116,0.30); }

.mirror-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.balance-wrap {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(0,0,0,0.2));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.balance-svg { width: 100%; height: auto; display: block; }
.balance-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--text-mute);
  transition: fill 200ms;
}
.balance-label.on { fill: var(--gold-bright); font-weight: 600; }

.mirror-verdict {
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.mirror-verdict-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.mirror-verdict-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--text);
}
.mirror-resume {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-dim);
}
.mirror-verdict.tendenz-zustand   .mirror-verdict-name { color: #87d29c; }
.mirror-verdict.tendenz-sehnsucht .mirror-verdict-name { color: #f3aa8e; }

.mirror-loading-note {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 16px 0 24px;
}

.mirror-skel-bars {
  padding: 22px 32px 6px;
}

.mirror-grid-section { margin-top: 16px; }
.mirror-grid-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.mirror-grid-title::before {
  content: ""; width: 22px; height: 1px; background: var(--gold);
}
.mirror-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.mirror-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: all 160ms;
}
.mirror-chip:hover {
  border-color: var(--border-strong);
  background: rgba(212,165,116,0.05);
  transform: translateX(1px);
}
.mirror-chip.active {
  border-color: var(--gold);
  background: rgba(212,165,116,0.12);
}
.mirror-chip-name {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Statistik-Grid === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 32px;
}
.stats-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
}
.stats-card header {
  margin-bottom: 20px;
}
.stats-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.stats-card h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 6px;
  color: var(--text);
}
.stats-card header p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}
.stats-chart {
  display: flex;
  justify-content: center;
  padding: 8px 0 12px;
}
.pie-svg {
  width: 320px;
  height: 320px;
}
.pie-slice {
  transition: opacity 180ms, transform 220ms cubic-bezier(0.22,0.61,0.36,1);
  cursor: default;
  transform-origin: center;
  transform-box: fill-box;
}
.pie-slice.dimmed { opacity: 0.18; }
.pie-slice.active {
  filter: drop-shadow(0 6px 14px rgba(212,165,116,0.55));
}
.pie-center-num {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 500;
  fill: var(--text);
  font-style: italic;
}
.pie-center-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  fill: var(--text-mute);
  text-transform: uppercase;
}

.stats-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 160ms, opacity 160ms;
}
.legend-row.active { background: rgba(212,165,116,0.10); }
.legend-row.dimmed { opacity: 0.30; }
.legend-swatches {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}
.legend-chip {
  width: 12px;
  height: 18px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
.legend-text { flex: 1; min-width: 0; }
.legend-label {
  font-family: var(--display);
  font-size: 16px;
  font-style: italic;
  color: var(--text);
  font-weight: 500;
}
.legend-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-top: 2px;
}
