:root {
  --bg: #0b0f17;
  --surface: #121826;
  --surface-2: #171f31;
  --border: #212a3c;
  --border-2: #2d3850;
  --text: #e7ebf3;
  --text-2: #a5afc2;
  --text-3: #6c788d;
  --amber: #f5a524;
  --red: #f0526b;
  --green: #34c77b;
  --land: #1f2738;
  --land-line: #2b3549;
  --ocean: #0d1422;
  --radius: 12px;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --committee: #ef5a54;
  --vanguard: #2cc8e0;
  --free_ports: #f59645;
  --union: #6f8cff;
  --directorate: #b07cff;
  --gaia: #48c774;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--sans);
  font-feature-settings: 'cv11', 'ss01';
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

.num,
.v,
td.n {
  font-variant-numeric: tabular-nums;
}

/* ---------- top bar ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 23, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--amber);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 13px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(245, 165, 36, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 165, 36, 0);
  }
}

.nav {
  display: flex;
  gap: 4px;
  height: 100%;
}

.nav a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--text);
}

.nav a.active {
  color: var(--text);
  border-bottom-color: var(--amber);
}

.status {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.stat-pill .k {
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-pill .v {
  font-weight: 700;
  font-size: 14px;
}

.banner {
  max-width: 1272px;
  margin: 16px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(245, 165, 36, 0.5);
  border-radius: 10px;
  background: rgba(245, 165, 36, 0.07);
  color: #fcd38a;
  font-size: 14px;
}

/* ---------- page ---------- */

.view {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 12px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.page-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lede {
  margin: 6px 0 0;
  max-width: 680px;
  color: var(--text-2);
}

.grid {
  display: grid;
  gap: 20px;
}

.cols-main {
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr);
  align-items: start;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.card.flush {
  padding: 0;
  overflow-x: auto;
}

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

.flush .card-head {
  margin: 0;
  padding: 16px 20px 12px;
}

.label {
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta {
  color: var(--text-3);
  font-size: 13px;
}

.muted {
  color: var(--text-2);
}

.faint {
  color: var(--text-3);
}

.stack > * + * {
  margin-top: 20px;
}

/* ---------- identity ---------- */

.emblem {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c) 22%, var(--surface));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent);
  font-size: 17px;
}

.emblem.sm {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 12px;
}

.emblem.lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 28px;
}

.bloc-name {
  font-weight: 700;
  color: var(--text);
}

.dot-c {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  margin-right: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.tag.red {
  background: rgba(240, 82, 107, 0.12);
  color: #ff9aab;
  border-color: rgba(240, 82, 107, 0.3);
}

.tag.amber {
  background: rgba(245, 165, 36, 0.12);
  color: #fcd38a;
  border-color: rgba(245, 165, 36, 0.3);
}

.tag.green {
  background: rgba(52, 199, 123, 0.12);
  color: #8be3b4;
  border-color: rgba(52, 199, 123, 0.3);
}

.up {
  color: var(--green);
}

.down {
  color: var(--red);
}

/* ---------- map ---------- */

.map {
  display: block;
  width: 100%;
  height: auto;
  background: var(--ocean);
}

.map .graticule {
  fill: none;
  stroke: rgba(148, 163, 184, 0.06);
  stroke-width: 0.5;
}

.map .country {
  fill: var(--land);
  stroke: var(--land-line);
  stroke-width: 0.35;
}

.map .bloc {
  fill-opacity: 0.85;
  stroke: rgba(11, 15, 23, 0.6);
  stroke-width: 0.5;
  cursor: pointer;
}

.map .bloc-g:hover .bloc {
  fill-opacity: 1;
}

.map .zone {
  stroke-width: 1.2;
  cursor: pointer;
}

.map .route {
  fill: none;
  stroke-linecap: round;
}

.map .route.cut {
  stroke-dasharray: 2 5;
}

.map .move {
  fill: none;
  stroke-linecap: round;
}

.map .move.secret {
  stroke-dasharray: 5 4;
  animation: march 1.2s linear infinite;
}

@keyframes march {
  to {
    stroke-dashoffset: -18;
  }
}

.map .pin-name {
  font: 700 10px var(--sans);
  fill: #fff;
  paint-order: stroke;
  stroke: rgba(11, 15, 23, 0.95);
  stroke-width: 3.5px;
  text-anchor: middle;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.map .pin-emoji,
.map .pin-act {
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.map .pin-emoji {
  font-size: 15px;
}

.map .pin-act {
  font-size: 11px;
}

.map .war-ring {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  animation: ring 1.8s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes ring {
  from {
    transform: scale(0.6);
    opacity: 1;
  }
  to {
    transform: scale(2.2);
    opacity: 0;
  }
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 12.5px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.swatch {
  display: inline-block;
  width: 16px;
  height: 0;
  border-top: 2.5px solid var(--c);
}

.swatch.dash {
  border-top-style: dashed;
}

.swatch.box {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 3px;
  background: var(--c);
}

.tooltip {
  position: fixed;
  z-index: 50;
  max-width: 300px;
  padding: 10px 12px;
  pointer-events: none;
  background: #0f1523;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  font-size: 13px;
}

.tooltip b {
  display: block;
  margin-bottom: 2px;
}

/* ---------- lists ---------- */

.rows > * {
  border-top: 1px solid var(--border);
}

.rows > *:first-child {
  border-top: 0;
}

.brief {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 12px 20px;
  text-decoration: none;
}

.brief:hover {
  background: var(--surface-2);
}

.brief .what {
  font-weight: 600;
}

.brief .why {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.breaking {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 165, 36, 0.4);
  background: linear-gradient(90deg, rgba(245, 165, 36, 0.12), rgba(245, 165, 36, 0.02));
}

.breaking .label {
  color: var(--amber);
}

.breaking p {
  margin: 2px 0 0;
  font-weight: 600;
}

/* ---------- tables ---------- */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  padding: 10px 12px;
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 11px 12px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.table tr:last-child td {
  border-bottom: 0;
}

.table th:first-child,
.table td:first-child {
  text-align: left;
  padding-left: 20px;
}

.table th:last-child,
.table td:last-child {
  padding-right: 20px;
}

.table tbody tr {
  cursor: pointer;
}

.table tbody tr:hover td {
  background: var(--surface-2);
}

.who {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---------- bars ---------- */

.bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 3px;
  background: var(--c, var(--text-2));
}

.split {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-2);
}

.split > i {
  display: block;
  height: 100%;
  background: var(--c);
}

/* diverging bar: centre is zero */
.div-bar {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: var(--surface-2);
}

.div-bar::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: var(--border-2);
}

.div-bar > i {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 4px;
}

.zone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 6px 14px;
  align-items: center;
  padding: 11px 20px;
}

.zone-row .name {
  font-weight: 600;
}

.zone-row .split {
  grid-column: 1 / -1;
}

/* ---------- blocs index ---------- */

.bloc-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

.bloc-card:hover {
  border-color: color-mix(in srgb, var(--c) 60%, var(--border));
  transform: translateY(-2px);
}

.bloc-card .band {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 26%, var(--surface)), var(--surface) 70%);
}

.bloc-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.bloc-card .body {
  padding: 0 20px 18px;
}

.bloc-card .tagline {
  margin: 0 0 14px;
  color: var(--text-2);
  font-size: 14px;
}

.kv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kv div {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
}

.kv small {
  display: block;
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kv b {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* ---------- profile ---------- */

.profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 24%, var(--surface)), var(--surface) 60%);
}

.profile-head h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.back {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
}

.lore p {
  margin: 0 0 10px;
}

.lore dt {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lore dd {
  margin: 2px 0 0;
}

.goal {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(240, 82, 107, 0.5);
  background: rgba(240, 82, 107, 0.06);
}

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

.metric {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
}

.metric small {
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric .val {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.metric .val .lie {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
}

.metric svg {
  display: block;
  width: 100%;
  height: 26px;
  margin-top: 4px;
}

.res-row,
.rel-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  font-size: 14px;
}

.res-row .n,
.rel-row .n {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.elite-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}

.elite-card .face {
  font-size: 22px;
}

.elite-card b {
  display: block;
}

.elite-card .pow {
  font-weight: 700;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.elite-card .pow small {
  display: block;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.veto {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(240, 82, 107, 0.5);
  color: #ff9aab;
  font-size: 13.5px;
}

.decision {
  padding: 12px 0;
}

.quote {
  margin: 6px 0 0;
  padding-left: 12px;
  border-left: 3px solid color-mix(in srgb, var(--c) 55%, transparent);
  color: var(--text-2);
  font-style: italic;
}

.more {
  margin-top: 4px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--amber);
  font-size: 13px;
  cursor: pointer;
}

/* ---------- diplomacy ---------- */

.heat {
  border-collapse: separate;
  border-spacing: 4px;
  width: 100%;
  font-size: 13px;
}

.heat th {
  color: var(--text-3);
  font-weight: 600;
  font-size: 12px;
}

.heat td {
  height: 42px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.heat td.self {
  background: transparent;
}

.heat th.row {
  text-align: right;
  padding-right: 6px;
  white-space: nowrap;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  font-size: 14px;
}

.talks {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 460px;
}

.threads {
  border-right: 1px solid var(--border);
  max-height: 620px;
  overflow-y: auto;
}

.thread {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.thread:hover {
  background: var(--surface-2);
}

.thread.active {
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--amber);
}

.thread .pair {
  display: flex;
}

.thread .pair .emblem + .emblem {
  margin-left: -6px;
}

.thread small {
  display: block;
  color: var(--text-3);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  max-height: 620px;
  overflow-y: auto;
}

.chat .when {
  align-self: center;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}

.chat .event {
  align-self: center;
  max-width: 90%;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12.5px;
  text-align: center;
}

.bubble-row {
  display: flex;
  gap: 10px;
  max-width: 80%;
}

.bubble-row.right {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.bubble {
  padding: 10px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 13%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}

.bubble.secret {
  border-style: dashed;
}

.bubble .from {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 3px;
  font-size: 12.5px;
}

/* ---------- history ---------- */

.weeks {
  max-height: 720px;
  overflow-y: auto;
}

.week-item {
  display: block;
  width: 100%;
  padding: 12px 20px;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.week-item:hover {
  background: var(--surface-2);
}

.week-item.active {
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--amber);
}

.week-item b {
  display: block;
}

.week-item span {
  color: var(--text-2);
  font-size: 13px;
}

.chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart .axis text {
  fill: var(--text-3);
  font: 11px var(--sans);
}

.chart .axis line,
.chart .axis path {
  stroke: var(--border-2);
}

.chart .grid line {
  stroke: var(--border);
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-2);
  gap: 2px;
}

.seg button {
  padding: 5px 12px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.seg button.on {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--border-2);
}

.msg-line {
  padding: 12px 0;
}

.msg-line .route {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

.msg-line p {
  margin: 6px 0 0;
  color: var(--text-2);
}

.empty {
  padding: 28px;
  color: var(--text-3);
  text-align: center;
}

.footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .cols-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .top-inner {
    flex-wrap: wrap;
    height: auto;
    gap: 8px 16px;
    padding: 10px 16px 0;
  }
  .nav {
    order: 3;
    width: 100%;
    height: 42px;
    overflow-x: auto;
  }
  .nav a {
    padding: 0 10px;
  }
  .view {
    padding: 20px 16px 8px;
  }
  .banner {
    margin: 12px 16px 0;
  }
  .cols-2,
  .cols-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .talks {
    grid-template-columns: minmax(0, 1fr);
  }
  .threads {
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .bubble-row {
    max-width: 100%;
  }
  .table .hide-sm {
    display: none;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse,
  .map .move.secret,
  .map .war-ring {
    animation: none;
  }
}

/* ================= single-screen theatre ================= */

.tagline-top {
  margin: 0;
  color: var(--text-3);
  font-size: 13.5px;
}

.how-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.status {
  align-items: center;
}

.how {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.how-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 24px;
  color: var(--text-2);
  font-size: 13.5px;
}

.how-inner b {
  display: block;
  color: var(--text);
}

.theatre {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(360px, 1fr);
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 24px 8px;
  align-items: start;
}

.stage-col {
  min-width: 0;
}

.side-col {
  position: sticky;
  top: 76px;
  height: calc(100vh - 92px);
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.side-scroll {
  height: 100%;
  overflow-y: auto;
}

.side-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 18px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.side-head h2 {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.walk-btn {
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(245, 165, 36, 0.5);
  background: rgba(245, 165, 36, 0.1);
  color: #fcd38a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.stage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.map-wrap {
  position: relative;
}

.map-caption {
  position: absolute;
  z-index: 3;
  max-width: 300px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(11, 15, 23, 0.95);
  border: 1px solid var(--c);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 26px));
}

.map-caption.below {
  transform: translate(-50%, 36px);
}

.map-caption b {
  display: block;
  color: var(--c);
}

.map-caption q {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-style: italic;
}

.map.focusing .bloc-g:not(.is-focus) .bloc {
  fill-opacity: 0.22;
}

.map.focusing .mv:not(.is-focus) {
  opacity: 0.08;
}

.map .cable-line {
  display: none;
}

.map.focusing .cable-line.is-focus {
  display: inline;
}

.map .pin.dim {
  opacity: 0.35;
}

.player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.player .btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 13px;
}

.player .btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.player .btn.play {
  width: auto;
  padding: 0 12px;
  font-weight: 700;
}

.player .now {
  min-width: 150px;
}

.player .now b {
  display: block;
  font-size: 15px;
}

.player .now span {
  color: var(--text-3);
  font-size: 12.5px;
}

.player input[type='range'] {
  flex: 1;
  accent-color: var(--amber);
  min-width: 80px;
}

.live-chip {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ff9aab;
  background: rgba(240, 82, 107, 0.12);
  border: 1px solid rgba(240, 82, 107, 0.4);
  cursor: pointer;
}

.live-chip.past {
  color: var(--text-2);
  background: var(--surface-2);
  border-color: var(--border-2);
}

.tension-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 12.5px;
}

.tension-legend i {
  display: inline-block;
  width: 120px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2f9e6a, #e0b341, #f0526b);
}

/* chronicle */

.story {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: background 0.15s;
}

.story:hover,
.story.is-focus {
  background: var(--surface-2);
  border-left-color: var(--c);
}

.story-head {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.story-head .t {
  min-width: 0;
}

.story-head b {
  display: block;
  font-size: 15px;
}

.story-head span {
  color: var(--text-3);
  font-size: 12.5px;
}

.move-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  font-weight: 700;
  font-size: 15px;
}

.move-line .e {
  font-size: 20px;
  line-height: 1.1;
}

.effects {
  margin: 6px 0 0 30px;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 13.5px;
}

.effects li {
  margin-top: 3px;
}

.effects li.secret {
  color: #ff9aab;
}

.thought {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px dashed rgba(148, 163, 184, 0.25);
}

.thought small,
.says small {
  display: block;
  margin-bottom: 3px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.thought p {
  margin: 0;
  font-style: italic;
  color: #dde3ee;
}

.says {
  margin-top: 12px;
}

.say {
  margin-top: 6px;
  padding: 9px 12px;
  border-radius: 4px 12px 12px 12px;
  background: color-mix(in srgb, var(--c) 12%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  font-size: 14px;
}

.say.secret {
  border-style: dashed;
  background: rgba(240, 82, 107, 0.06);
  border-color: rgba(240, 82, 107, 0.35);
}

.say .to {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 3px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
}

.world-news {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(245, 165, 36, 0.1), transparent);
}

.world-news .label {
  color: var(--amber);
}

.world-news p {
  margin: 4px 0 0;
  font-weight: 600;
}

/* status cards */

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.state-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--c);
  border-radius: var(--radius);
  cursor: pointer;
}

.state-card:hover {
  background: var(--surface-2);
}

.state-card .top-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.state-card .top-line .t {
  flex: 1;
  min-width: 0;
}

.state-card .top-line b {
  display: block;
  font-size: 14px;
}

.state-card .top-line span {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert {
  display: block;
  font-size: 13px;
  color: var(--text-2);
}

.alert.bad {
  color: #ffb1bd;
}

.alert.warn {
  color: #fcd38a;
}

.alert.good {
  color: #8be3b4;
}

.mood-chip {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mood-chip.crisis {
  background: rgba(240, 82, 107, 0.15);
  color: #ff9aab;
}

.mood-chip.strained {
  background: rgba(245, 165, 36, 0.15);
  color: #fcd38a;
}

.mood-chip.stable {
  background: rgba(52, 199, 123, 0.13);
  color: #8be3b4;
}

/* dossier drawer, over the chronicle so the map stays in view */

.drawer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow-y: auto;
  background: var(--surface);
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 24%, var(--surface)), var(--surface) 70%);
  border-bottom: 1px solid var(--border);
}

.drawer-head h2 {
  margin: 0;
  font-size: 19px;
}

.drawer-head span {
  color: var(--text-2);
  font-size: 12.5px;
}

.drawer-head .x {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  cursor: pointer;
}

.drawer-body {
  padding: 4px 18px 24px;
}

.drawer-body h4 {
  margin: 20px 0 8px;
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-body p {
  margin: 0 0 8px;
}

.truth {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.truth td,
.truth th {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.truth th {
  color: var(--text-3);
  font-size: 11px;
  text-transform: uppercase;
}

.truth td:first-child,
.truth th:first-child {
  text-align: left;
  color: var(--text-2);
}

.truth .lie {
  color: #ff9aab;
}

@media (max-width: 1100px) {
  .theatre {
    grid-template-columns: minmax(0, 1fr);
  }
  .side-col {
    position: relative;
    top: 0;
    height: auto;
    overflow: visible;
  }
  .side-scroll {
    height: auto;
    overflow: visible;
  }
  .drawer {
    position: fixed;
    inset: 0;
    z-index: 40;
  }
  .how-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tagline-top {
    display: none;
  }
  .top-inner {
    padding: 10px 16px;
  }
  .theatre {
    padding: 14px 16px 8px;
  }
  .status-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .how-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .player {
    flex-wrap: wrap;
  }
  .player input[type='range'] {
    order: 5;
    flex-basis: 100%;
  }
  .map-caption {
    display: none;
  }
}

/* ================= compact board ================= */

.theatre {
  grid-template-columns: minmax(0, 1.9fr) minmax(340px, 1fr);
}

.map-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ocean);
}

.map-tools {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.map-tools > * {
  pointer-events: auto;
}

.map-tools .seg {
  background: rgba(11, 15, 23, 0.8);
  backdrop-filter: blur(6px);
}

.map-hint {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(11, 15, 23, 0.8);
  color: var(--text-3);
  font-size: 12.5px;
}

.map-tools .tension-legend {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(11, 15, 23, 0.8);
}

.map.focusing .pill:not(.is-focus) {
  opacity: 0.12;
}

.player {
  border-top: 0;
  padding: 12px 2px 4px;
}

.portraits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.portrait {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 10px 11px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--c);
  border-radius: 10px;
  cursor: pointer;
}

.portrait:hover {
  background: var(--surface-2);
}

.p-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.p-top b {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  white-space: nowrap;
}

.rank {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 800;
}

.p-bar small {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.p-bar small .alert {
  font-size: 10.5px;
  letter-spacing: 0;
  text-transform: none;
}

.p-goal,
.p-alert {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-goal {
  color: var(--text-2);
}

.p-alert.bad {
  color: #ffb1bd;
}

.p-alert.warn {
  color: #fcd38a;
}

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

.side-head .walk-btn {
  margin: 0;
  white-space: nowrap;
}

.story {
  padding: 11px 16px 12px;
  cursor: pointer;
}

.story .row1 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
}

.story .row1 b {
  flex: none;
}

.story .mv-text {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delta {
  flex: none;
  font-size: 12px;
  font-weight: 700;
}

.story .row2,
.story .row3 {
  margin: 5px 0 0 32px;
  font-size: 13.5px;
  color: var(--text-2);
}

.story .row2 i {
  color: #dde3ee;
}

.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story.open {
  background: var(--surface-2);
  border-left-color: var(--c);
  cursor: default;
}

.story-more {
  margin: 8px 0 0 32px;
}

.story-more .effects {
  margin: 0 0 8px;
}

.side-foot {
  margin: 0;
  padding: 12px 18px 18px;
  color: var(--text-3);
  font-size: 12.5px;
}

@media (max-width: 1280px) {
  .portraits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .map-tools {
    position: static;
    padding: 8px;
  }
  .map-hint {
    display: none;
  }
  .portraits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .story .row2,
  .story .row3,
  .story-more {
    margin-left: 0;
  }
}

/* the compact board widens the map on desktop only */
@media (max-width: 1100px) {
  .theatre {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ================= How it works article ================= */

.how-btn {
  text-decoration: none;
}

.article-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 24px 8px;
}

.article {
  max-width: 820px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.65;
}

.article h1 {
  margin: 6px 0 8px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.article .lede {
  max-width: none;
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text-2);
}

.article h2 {
  margin: 44px 0 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.article p {
  margin: 0 0 12px;
  color: #cdd4e1;
}

.article .back {
  display: inline-block;
  color: var(--amber);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

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

.pieces > div {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pieces b {
  display: block;
  margin-bottom: 4px;
  font-size: 15.5px;
}

.pieces p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-2);
}

.flow {
  position: relative;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.flow::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(var(--amber), rgba(245, 165, 36, 0.15));
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 18px;
}

.flow-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--amber);
  color: var(--amber);
  font-weight: 800;
  z-index: 1;
}

.flow-step b {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

.flow-step p {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--text-2);
}

.flow-step:last-child::after {
  content: '↻ and again, 30 minutes later';
  display: block;
  grid-column: 2;
  margin-top: 10px;
  color: var(--amber);
  font-size: 13.5px;
  font-weight: 700;
}

.sees {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px;
  font-size: 14.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sees th,
.sees td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.sees th {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sees td:first-child,
.sees th:first-child {
  text-align: left;
  color: var(--text);
}

.sees tr:last-child td {
  border-bottom: 0;
}

.sees .yes {
  color: var(--green);
  font-weight: 800;
}

.sees .no {
  color: var(--red);
  font-weight: 800;
}

.sees .some {
  color: #fcd38a;
  font-size: 13.5px;
}

.bullets {
  margin: 8px 0 12px;
  padding-left: 20px;
  color: #cdd4e1;
}

.bullets li {
  margin-bottom: 10px;
}

@media (max-width: 760px) {
  .article-wrap {
    padding: 20px 16px 8px;
  }
  .article h1 {
    font-size: 28px;
  }
  .pieces {
    grid-template-columns: minmax(0, 1fr);
  }
  .sees th,
  .sees td {
    padding: 8px 8px;
  }
}
