.battle-page {
  --copper-light: #e06f74;
  color: var(--command-text);
}
.battle-page :focus-visible { outline-color: var(--copper-light); }
.battle-page .site-footer { border-top-color: var(--command-line); }
.battle-page .error-state { color: var(--command-text); background: var(--command); }
.battle-page .error-state .eyebrow,
.battle-page .error-state .text-link { color: var(--copper-light); }

.battle-hero {
  position: relative;
  overflow: hidden;
  min-height: min(720px, calc(100svh - var(--header-h)));
  color: var(--command-text);
  background: #090e0e;
}
.battle-hero-visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  margin: 0;
  background: var(--command);
}
.battle-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .96;
  filter: saturate(.82) contrast(1.06) brightness(.94);
}
.battle-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,11,11,.97) 0%, rgba(7,11,11,.83) 29%, rgba(7,11,11,.42) 52%, rgba(7,11,11,.05) 78%),
    linear-gradient(0deg, rgba(7,11,11,.72) 0%, rgba(7,11,11,.08) 52%);
}
.battle-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1600px, calc(100% - 2 * var(--gutter)));
  min-height: min(720px, calc(100svh - var(--header-h)));
  margin: auto;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 28px 0 58px;
}
.battle-hero .crumbs { grid-column: 1 / -1; color: #8e9790; }
.battle-hero .crumbs a:hover { color: var(--copper-light); }
.battle-hero-main { align-self: center; }
.battle-hero .eyebrow { color: var(--copper-light); }
.battle-hero-copy {
  align-self: end;
  max-width: 820px;
  padding-top: clamp(72px, 13vh, 128px);
}
.battle-hero h1 { max-width: 10ch; margin: 0; font-size: clamp(5.6rem, 10.5vw, 10.8rem); line-height: .8; letter-spacing: -.045em; }
.battle-hero-copy--long h1 { max-width: 13ch; font-size: clamp(4.5rem, 8.2vw, 8.4rem); line-height: .86; }
.battle-hero-copy--very-long h1 { max-width: 15ch; font-size: clamp(3.9rem, 6.8vw, 7rem); line-height: .9; }
.battle-hero-copy--wide-word h1 { max-width: 14ch; font-size: clamp(4.4rem, 8vw, 8rem); }
.battle-hero-meta {
  margin: 24px 0 0;
  color: var(--copper-light);
  font: 750 clamp(.72rem, 1vw, .86rem)/1.4 var(--mono);
  letter-spacing: .065em;
}
.battle-hero-copy .battle-question {
  max-width: 34ch;
  margin: 28px 0 0;
  color: #f1eadf;
  font: 520 clamp(1.5rem, 2.3vw, 2.2rem)/1.28 var(--serif);
  text-wrap: balance;
}
.battle-mechanism { margin: 30px 0 0; color: var(--copper-light); font: 700 .75rem var(--mono); letter-spacing: .09em; text-transform: uppercase; }

.battle-route {
  color: var(--command-text);
  background: #101515;
  border-top: 1px solid var(--command-line);
  border-bottom: 1px solid var(--command-line);
}
.battle-route--bottom { background: var(--command); }
.battle-route-inner {
  width: min(1600px, calc(100% - 2 * var(--gutter)));
  min-height: 112px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr) minmax(0, 1fr);
}
.battle-route-link,
.battle-route-context {
  min-width: 0;
  min-height: 112px;
  color: inherit;
  text-decoration: none;
}
.battle-route-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px clamp(14px, 2.2vw, 30px);
}
.battle-route-link--next { grid-template-columns: minmax(0, 1fr) auto; text-align: right; }
.battle-route-link--next .battle-route-arrow { order: 2; }
.battle-route-link > span:not(.battle-route-arrow) { min-width: 0; display: grid; gap: 3px; }
.battle-route-link small,
.battle-route-context span,
.battle-route-context small { color: #a7afa9; font: 700 .68rem/1.35 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.battle-route-link strong { overflow: hidden; color: #e9e2d5; font: 750 clamp(1.25rem, 2vw, 2rem)/1.05 var(--display); text-overflow: ellipsis; white-space: nowrap; }
.battle-route-link time { color: var(--copper-light); font: 700 .68rem/1.4 var(--mono); }
.battle-route-arrow { color: var(--copper-light); font-size: 1.35rem; transition: transform 160ms ease; }
.battle-route-link:hover,
.battle-route-link:focus-visible { color: white; background: rgba(255,255,255,.04); }
.battle-route-link--previous:hover .battle-route-arrow,
.battle-route-link--previous:focus-visible .battle-route-arrow { transform: translateX(-4px); }
.battle-route-link--next:hover .battle-route-arrow,
.battle-route-link--next:focus-visible .battle-route-arrow { transform: translateX(4px); }
.battle-route-context {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 16px 22px;
  border-right: 1px solid var(--command-line);
  border-left: 1px solid var(--command-line);
  text-align: center;
}
.battle-route-context strong { overflow-wrap: anywhere; color: #f0e8db; font: 750 clamp(1.2rem, 1.8vw, 1.8rem)/1 var(--display); }
.battle-route-context:hover,
.battle-route-context:focus-visible { color: white; background: rgba(166,92,57,.16); }
.battle-route-context:hover small,
.battle-route-context:focus-visible small { color: var(--copper-light); }
.battle-route-empty { min-height: 112px; }

.battle-subnav {
  position: sticky;
  z-index: 75;
  top: var(--header-h);
  color: #c5cbc4;
  background: rgba(16,21,21,.95);
  border-top: 1px solid var(--command-line);
  border-bottom: 1px solid var(--command-line);
  backdrop-filter: blur(14px);
}
.battle-subnav-inner {
  width: min(1600px, calc(100% - 2 * var(--gutter)));
  min-height: 52px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  overflow-x: auto;
  scrollbar-width: none;
}
.battle-subnav a { min-height: 48px; display: inline-flex; align-items: center; color: inherit; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.battle-subnav a:hover { color: var(--copper-light); }
.battle-subnav a[aria-current="location"] { color: var(--paper-light); }
.battle-subnav a[aria-current="location"]::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: 7px; vertical-align: middle; background: var(--copper-light); }

.command-surface { padding: clamp(44px, 5vw, 72px) clamp(10px, 1.5vw, 28px) 68px; color: var(--command-text); background: #0c1212; }
.command-titlebar {
  width: min(1600px, 100%);
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
}
.command-titlebar .eyebrow { color: var(--copper-light); }
.command-titlebar h2 { margin: 0; max-width: 16ch; font-size: clamp(2.8rem, 5vw, 5.2rem); line-height: .92; letter-spacing: -.048em; }
.command-titlebar > p { margin: 0; color: var(--command-muted); font-size: .9rem; }

.battle-workspace {
  width: min(1760px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 238px minmax(600px, 1fr) 318px;
  gap: 10px;
  align-items: stretch;
  outline: 0;
}
.phase-rail,
.map-panel,
.phase-insight {
  align-self: start;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(28,37,36,.97), rgba(15,22,22,.98));
  border: 1px solid var(--command-line);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.workspace-panel-title {
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: #e4ddd0;
  border-bottom: 1px solid var(--command-line);
  font: 700 .72rem var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.workspace-panel-title span:last-child { color: #aab3ad; }
.phase-buttons { padding: 7px; }
.phase-button {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  align-items: start;
  padding: 10px;
  color: #aeb7af;
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
}
.phase-button > span:first-child { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #748078; color: #d7ddd6; border-radius: 50%; font: 700 .7rem var(--mono); }
.phase-button strong { display: block; color: #d4d8d2; font: 500 .88rem/1.25 var(--serif); }
.phase-button small { display: block; margin-top: 5px; color: #aab3ad; font-size: .7rem; }
.phase-button:hover { background: rgba(255,255,255,.035); }
.phase-button.is-active { background: linear-gradient(90deg, rgba(166,92,57,.3), rgba(166,92,57,.05)); border-color: rgba(217,155,112,.24); }
.phase-button.is-active > span:first-child { color: var(--command); background: var(--copper-light); border-color: var(--copper-light); }
.phase-button.is-active strong { color: white; }

.map-legend { margin: 8px; padding: 16px 9px 9px; border-top: 1px solid var(--command-line); }
.workspace-label { margin: 0 0 13px; color: #aab3ad; font: 700 .7rem var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.legend-side { display: flex; align-items: center; gap: 9px; margin: 9px 0; font-size: .76rem; }
.legend-side i { width: 18px; height: 10px; background: var(--legend-color); border: 1px solid rgba(255,255,255,.2); }
.legend-note { margin: 16px 0 0; color: #aeb7b0; font-size: .75rem; line-height: 1.45; }

.map-panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.map-panel-head {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 14px 12px 20px;
  border-bottom: 1px solid var(--command-line);
}
.phase-overline { color: var(--copper-light); font: 700 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.phase-title { margin: 4px 0 0; font-size: clamp(1.4rem, 2vw, 2.1rem); line-height: 1; }
.phase-subtitle { margin: 5px 0 0; color: #8f9993; font-size: .75rem; }
.map-tools { position: relative; display: flex; gap: 5px; flex: 0 0 auto; }
.map-tools button {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #a2aba5;
  background: #111817;
  border: 1px solid var(--command-line);
  cursor: pointer;
}
.map-tools button::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  right: -1px;
  width: max-content;
  max-width: min(230px, 70vw);
  padding: 7px 9px;
  color: #f0e6d3;
  background: #080e0d;
  border: 1px solid rgba(217,155,112,.48);
  box-shadow: 0 8px 24px rgba(0,0,0,.34);
  font: 650 .68rem/1.35 var(--sans);
  letter-spacing: .02em;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 120ms ease, transform 120ms ease;
}
.map-tools button:hover::after,
.map-tools button:focus::after { opacity: 1; transform: translateY(0); }
.map-tools button[aria-pressed="true"]::before { content: ""; position: absolute; right: 3px; bottom: 3px; width: 4px; height: 4px; background: var(--copper-light); border-radius: 50%; }
.map-tools button:hover,
.map-tools button[aria-pressed="true"] { color: var(--copper-light); border-color: rgba(217,155,112,.5); background: rgba(166,92,57,.12); }
.map-tools button:disabled { opacity: .35; cursor: not-allowed; }
.map-tools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.map-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #46503b;
  aspect-ratio: 1000 / 660;
}
.map-stage--aerial {
  background: #46503b;
}
.map-zoom-shell { position: relative; width: 100%; height: 100%; transform-origin: center; transition: transform 250ms ease; }
.tactical-map { display: block; width: 100%; height: 100%; }
.terrain-aerial-image { filter: saturate(.82) contrast(.94) brightness(.88); }
.map-stage--aerial .terrain-zone { opacity: .28; }
.map-stage--aerial .terrain-road { opacity: .56; }
.terrain-road { fill: none; stroke: #dcc795; stroke-width: 4; stroke-linecap: round; opacity: .5; }
.terrain-zone--water { stroke: #a8d4d1; stroke-opacity: .38; }
.terrain-zone--coast { stroke: #f1d59a; stroke-opacity: .48; }
.terrain-zone--trench { stroke: #e2c18a; stroke-opacity: .58; stroke-dasharray: 6 4; }
.river-bank { fill: none; stroke: #1a312e; stroke-width: 58; opacity: .86; }
.river-water { fill: none; stroke: url(#river); stroke-width: 36; }
.map-label-leader-layer,
.map-label-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-label-leader-layer { z-index: 1; overflow: visible; }
.map-label-layer { z-index: 2; overflow: hidden; transition: opacity 180ms ease; }
.map-label {
  --label-opacity: 1;
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100% - 10px);
  overflow: hidden;
  border: 1px solid rgba(239,224,190,.17);
  border-radius: 3px;
  color: #f3ead8;
  background: rgba(8,13,13,.9);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: var(--label-opacity);
  pointer-events: none;
  will-change: transform;
}
.map-label.is-positioned { transition: opacity 180ms ease; }
.map-label.is-positioned.is-slot-stable { transition: transform 720ms cubic-bezier(.2,.75,.15,1), opacity 180ms ease; }
.map-label.is-phase-hidden,
.map-label.is-auto-hidden { opacity: 0; }
.map-label-leader {
  fill: none;
  stroke: rgba(240,228,201,.58);
  stroke-width: 1;
  stroke-dasharray: 2 2;
  vector-effect: non-scaling-stroke;
  transition: opacity 180ms ease;
  pointer-events: none;
}
.terrain-label { padding: 7px 11px; color: #e7dbc1; background: rgba(13,18,16,.78); font: 13px var(--serif); }
.terrain-label--camp { background: rgba(115,59,43,.82); border-color: rgba(217,155,112,.55); }
.terrain-label--settlement { background: rgba(43,51,47,.94); border-color: rgba(238,217,171,.62); }
.terrain-label--objective { background: rgba(139,78,43,.92); border-color: rgba(245,184,116,.74); }
.terrain-label--fortification { background: rgba(54,57,54,.96); border-color: rgba(213,203,178,.68); border-style: dashed; }
.terrain-label--water { color: #d5eeee; background: rgba(22,61,67,.92); border-color: rgba(151,207,207,.58); }
.terrain-label--coast { color: #f2dfb1; background: rgba(105,83,53,.92); border-color: rgba(240,210,143,.62); }
.terrain-label--trench { color: #f0d4a2; background: rgba(65,57,44,.96); border-color: rgba(220,180,116,.7); border-style: dashed; }
.north-marker circle { fill: rgba(12,17,15,.55); stroke: rgba(236,222,192,.55); }
.north-marker path { fill: #eee0bd; stroke: #171c19; stroke-width: 1.4; }
.north-marker text { fill: #fff1cf; font: 15px var(--serif); }

.map-formation,
.commander-token { transform-box: view-box; transform-origin: 0 0; transition: transform 1050ms cubic-bezier(.2,.75,.15,1), opacity 650ms ease; }
.map-formation { cursor: help; }
.formation-plate { fill: color-mix(in srgb, currentColor 28%, rgba(10,16,16,.9)); stroke: currentColor; stroke-width: 2; }
.formation-glyph { color: currentColor; }
.map-formation:hover .formation-plate,
.map-formation:focus .formation-plate { stroke-width: 4; filter: drop-shadow(0 0 6px currentColor); }
.formation-label { padding: 6px 9px; font: 10.5px var(--serif); }
.map-formation--ghost { pointer-events: none; transition: opacity 250ms ease; }
.map-formation--ghost .formation-plate { fill: none; stroke: #f0e4c9; stroke-dasharray: 5 4; }
.map-formation--ghost .formation-glyph { opacity: .25; }
.commander-token circle { fill: rgba(9,14,14,.94); stroke: currentColor; stroke-width: 2.3; }
.commander-token path { fill: currentColor; stroke: #081010; stroke-width: 1; }
.commander-label { padding: 6px 9px; color: #f0e6d3; border-color: rgba(217,155,112,.42); font: 600 10.5px var(--serif); }
.movement-layer { transition: opacity 180ms ease; }
.movement-arrow { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 11 8; animation: arrow-flow 900ms linear infinite; }
.movement-label { padding: 6px 9px; color: #f1e5ce; font: 10.5px var(--serif); }
.labels-hidden .map-label-layer,
.labels-hidden .map-label-leader-layer,
.labels-hidden .map-static-label-layer { opacity: 0; pointer-events: none; }
.paths-hidden .movement-label,
.paths-hidden .map-label-leader--movement { opacity: 0; }

.map-tooltip {
  position: absolute;
  z-index: 20;
  width: min(230px, calc(100% - 24px));
  padding: 11px 13px;
  color: #ddd9ce;
  background: rgba(9,14,14,.95);
  border: 1px solid rgba(217,155,112,.38);
  box-shadow: 0 14px 34px rgba(0,0,0,.34);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px));
  transition: opacity 100ms ease;
}
.map-tooltip.is-visible { opacity: 1; }
.map-tooltip strong { display: block; color: white; font: 500 .9rem var(--serif); }
.map-tooltip span { display: block; margin-top: 4px; color: #9ca69f; font-size: .67rem; }
.map-callout {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 16px;
  color: #c4c9c2;
  background: #101716;
  border-top: 1px solid rgba(217,155,112,.3);
}
.map-callout > span { color: var(--copper-light); font-size: 1rem; line-height: 1.35; }
.map-callout > div { min-width: 0; display: grid; grid-template-columns: minmax(160px, .38fr) minmax(0, 1fr); gap: 16px; align-items: baseline; }
.map-callout strong { color: var(--copper-light); font: 500 .82rem/1.4 var(--serif); }
.map-callout p { margin: 0; color: #b6bfb8; font-size: .72rem; line-height: 1.45; }

.map-playback {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 48px minmax(210px, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--command-line);
}
.map-step,
.map-play,
.speed-picker button { color: #cbd1ca; background: #111817; border: 1px solid var(--command-line); cursor: pointer; }
.map-step { min-height: 44px; padding: 0 13px; font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.map-step:disabled { opacity: .35; cursor: not-allowed; }
.map-play { width: 46px; height: 46px; display: grid; place-items: center; border-color: rgba(217,155,112,.55); border-radius: 50%; color: var(--copper-light); }
.map-play:hover { color: var(--command); background: var(--copper-light); }
.phase-scrubber { display: grid; gap: 7px; min-width: 0; }
.phase-scrubber > span { display: flex; justify-content: space-between; color: #aeb7b0; font: 700 .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.phase-scrubber input { width: 100%; accent-color: var(--copper-light); }
.speed-picker { display: flex; align-items: center; gap: 4px; }
.speed-picker > span { margin-right: 4px; color: #aeb7b0; font: 700 .66rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.speed-picker button { min-width: 36px; height: 36px; padding: 0 5px; font-size: .68rem; }
.speed-picker button[aria-pressed="true"] { color: var(--copper-light); border-color: var(--copper-light); }

.phase-insight { max-height: 900px; overflow-y: auto; scrollbar-width: thin; }
.insight-body { padding: 18px 16px; }
.phase-summary { color: #e0ddd4; font: 500 1rem/1.55 var(--serif); }
.insight-block,
.perspective,
.turning-point-box { margin-top: 10px; padding: 13px; background: rgba(255,255,255,.025); border: 1px solid var(--command-line); }
.insight-block > span,
.perspective > span,
.turning-point-box > span,
.phase-sources > span { display: block; margin-bottom: 7px; color: var(--copper-light); font: 700 .58rem var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.insight-block p,
.perspective p { margin: 0; color: #bbc3bc; font-size: .78rem; line-height: 1.55; }
.perspective { border-color: color-mix(in srgb, var(--side-color) 38%, var(--command-line)); }
.perspective > span { color: color-mix(in srgb, var(--side-color) 54%, white); }
.turning-point-box { margin-top: 14px; border-color: rgba(217,155,112,.35); }
.turning-point-box strong { color: #e3d9c7; font: 500 .82rem/1.5 var(--serif); }
.phase-sources { display: flex; flex-wrap: wrap; gap: 5px 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--command-line); }
.phase-sources > span { flex-basis: 100%; }
.phase-sources a { min-height: 32px; display: inline-flex; align-items: center; color: #b3bcb5; font-size: .7rem; text-decoration: underline; text-underline-offset: 3px; }
.map-method-note { width: min(1760px, 100%); margin: 14px auto 0; color: #b0b8b2; font-size: .75rem; }

.battle-workspace:fullscreen,
.battle-workspace.is-fullscreen { width: 100%; height: 100%; padding: 10px; background: #080d0d; grid-template-rows: minmax(0, 1fr); }
.battle-workspace:fullscreen .map-stage { min-height: 0; aspect-ratio: auto; }

.battle-content-section { padding: clamp(70px, 8vw, 116px) 0; color: var(--ink); background: var(--paper); }
.battle-content-section.alt { background: var(--paper-deep); }
.battle-content-section.dark { color: var(--command-text); background: var(--command-soft); }
.battle-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(42px, 9vw, 140px);
  align-items: end;
  margin-bottom: 54px;
}
.battle-section-head .eyebrow { color: var(--copper-dark); }
.dark .battle-section-head .eyebrow { color: var(--copper-light); }
.battle-section-head h2 { margin: 0; max-width: 15ch; font-size: clamp(2.8rem, 5.2vw, 5.5rem); line-height: .93; letter-spacing: -.04em; }
.battle-section-head > p { margin: 0; color: var(--ink-soft); }
.dark .battle-section-head > p { color: var(--command-muted); }

.context-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.context-grid--3 { grid-template-columns: repeat(3, 1fr); }
.context-block { min-height: 290px; display: grid; grid-template-rows: auto 1fr auto; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.context-block:last-child { border-right: 0; }
.context-block > span { color: var(--copper-dark); font: 500 2.4rem var(--serif); }
.context-block h3 { align-self: end; margin: 34px 0 15px; font-size: clamp(1.6rem, 2.4vw, 2.55rem); line-height: 1; }
.context-block p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.source-marks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 18px; }
.source-marks a { min-width: 32px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; color: var(--copper-dark); border: 1px solid var(--line); font: 700 .68rem/1 var(--mono); text-decoration: none; text-transform: uppercase; }

.force-comparison { display: grid; grid-template-columns: 1fr 72px 1fr; align-items: stretch; }
.force-side { padding: clamp(30px, 4vw, 56px); color: var(--command-text); background: var(--command); border-top: 4px solid var(--side-color); }
.force-versus { display: grid; place-items: center; color: var(--copper-dark); font: 500 1.7rem var(--serif); }
.force-kicker { color: var(--side-light, var(--side-color)); font: 750 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.force-side .source-marks a { color: var(--copper-light); background: rgba(255,255,255,.035); border-color: var(--command-line); }
.force-side h3 { margin: 16px 0 0; font-size: clamp(2.2rem, 4vw, 4.3rem); line-height: .9; }
.force-total { margin: 28px 0 0; color: #ece4d5; font: 500 clamp(1.3rem, 2vw, 1.8rem)/1.3 var(--serif); }
.force-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 0; padding: 18px 0; border-top: 1px solid var(--command-line); border-bottom: 1px solid var(--command-line); }
.force-breakdown span { display: block; color: #aeb7b0; font: 700 .68rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.force-breakdown strong { display: block; margin-top: 6px; color: #d8d5ca; font: 500 .92rem var(--serif); }
.force-goal { margin: 24px 0 0; color: #aab3ac; }
.force-goal strong { color: #e0d9cc; }
.formation-list { margin: 24px 0 0; padding: 0; list-style: none; }
.formation-list li { padding: 12px 0; border-top: 1px solid var(--command-line); color: #aeb7b0; font-size: .82rem; }
.formation-list b { display: block; color: #dbd8ce; font: 500 .94rem var(--serif); }

.technology-matrix { border-top: 1px solid var(--line-strong); }
.technology-head,
.technology-row { display: grid; grid-template-columns: .55fr 1fr 1fr 1.15fr; }
.technology-head > div { padding: 14px 18px; color: var(--muted); border-right: 1px solid var(--line); font: 700 .7rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.technology-row { border-top: 1px solid var(--line); }
.technology-cell { min-height: 160px; padding: 22px 18px; border-right: 1px solid var(--line); }
.technology-cell:last-child,
.technology-head > div:last-child { border-right: 0; }
.technology-cell h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.1; }
.technology-cell p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.technology-effect { background: rgba(166,92,57,.07); }
.advantage-tag { display: inline-block; margin-top: 16px; padding: 5px 8px; color: var(--copper-dark); border: 1px solid var(--line); font: 700 .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.mechanism-list { counter-reset: mechanism; border-top: 1px solid var(--command-line); }
.mechanism-row {
  counter-increment: mechanism;
  display: grid;
  grid-template-columns: 80px minmax(180px, .65fr) minmax(260px, 1.35fr);
  gap: clamp(20px, 5vw, 74px);
  align-items: center;
  min-height: 160px;
  border-bottom: 1px solid var(--command-line);
}
.mechanism-row > span { color: var(--copper-light); font: 500 2.8rem var(--serif); }
.mechanism-row h3 { margin: 0; color: #f0e8db; font-size: clamp(1.8rem, 3.3vw, 3.4rem); }
.mechanism-row p { margin: 0; color: var(--command-muted); }

.outcome-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 12px; }
.outcome-panel { padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line); background: rgba(255,255,255,.16); }
.outcome-panel h3 { margin: 0; font-size: clamp(2rem, 3.8vw, 4rem); line-height: .98; }
.casualty-row { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.casualty-row span { color: color-mix(in srgb, var(--side-color) 82%, var(--ink)); font: 750 .72rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.casualty-row strong { display: block; margin-top: 7px; font: 500 1.2rem/1.4 var(--serif); }
.consequence-list { margin: 24px 0 0; padding-left: 20px; color: var(--ink-soft); }
.consequence-list li { margin: 12px 0; }
.implication { max-width: 68ch; margin-top: 32px; padding-top: 25px; border-top: 1px solid var(--line-strong); color: var(--ink); font: 500 1.2rem/1.5 var(--serif); }
.implication > p { margin: 0; }

.myth-strip { display: grid; grid-template-columns: auto minmax(180px, .5fr) minmax(320px, 1.2fr); gap: clamp(24px, 5vw, 70px); align-items: center; margin-top: 14px; padding: 34px; color: var(--command-text); background: var(--command); }
.myth-verdict { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid var(--copper-light); border-radius: 50%; color: var(--copper-light); font: 750 .67rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.myth-strip h3 { margin: 0; font-size: clamp(2rem, 3.6vw, 3.8rem); }
.myth-strip p { margin: 0; color: var(--command-muted); }
.myth-strip .source-marks a { color: var(--copper-light); border-color: var(--command-line); }

.uncertainty-list { max-width: 72ch; border-top: 1px solid var(--line-strong); }
.uncertainty-row { display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.uncertainty-row span { color: var(--copper-dark); font: 700 .72rem var(--mono); }
.uncertainty-row p { margin: 0; color: var(--ink-soft); }

.battle-sources { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.battle-sources--3 { grid-template-columns: repeat(3, 1fr); }
.battle-source { min-height: 250px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.battle-source span { color: var(--copper-dark); font: 700 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.battle-source h3 { margin: 26px 0 12px; font-size: clamp(1.5rem, 2.6vw, 2.6rem); line-height: 1; }
.battle-source p { color: var(--ink-soft); font-size: .9rem; }
.battle-source .source-locator { color: var(--copper-dark); font: 700 .72rem/1.45 var(--mono); letter-spacing: .02em; }
.battle-source a { color: var(--copper-dark); font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

@keyframes arrow-flow { to { stroke-dashoffset: -19; } }

@media (max-width: 1440px) {
  .battle-workspace { grid-template-columns: 210px minmax(550px, 1fr) 280px; }
  .phase-button { min-height: 58px; }
  .phase-button small { display: none; }
  .map-playback { grid-template-columns: 44px 46px minmax(190px, 1fr) auto 44px; }
  .map-step span { display: none; }
}

@media (max-width: 1360px) {
  .battle-workspace { grid-template-columns: minmax(0, 1fr) 300px; }
  .phase-rail { grid-column: 1 / -1; display: grid; grid-template-columns: 170px 1fr; }
  .phase-rail .workspace-panel-title { border-right: 1px solid var(--command-line); }
  .phase-buttons { display: flex; overflow-x: auto; }
  .phase-button { min-width: 190px; }
  .map-legend {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto repeat(2, max-content) minmax(260px, 1fr);
    align-items: center;
    gap: 8px 18px;
    margin: 0;
    padding: 10px 14px;
  }
  .map-legend .workspace-label,
  .map-legend .legend-side,
  .map-legend .legend-note { margin: 0; }
  .map-legend .legend-note { justify-self: end; max-width: 52ch; text-align: right; }
  .map-stage { width: 100%; min-width: 0; min-height: 500px; aspect-ratio: auto; }
  .context-grid,
  .context-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .context-block:nth-child(2) { border-right: 0; }
  .context-grid--3 .context-block:last-child { grid-column: 1 / -1; min-height: 230px; border-right: 0; }
}

@media (max-width: 900px) {
  .battle-hero .crumbs { margin-bottom: 0; }
  .battle-hero h1 { font-size: clamp(4.8rem, 15vw, 7.5rem); }
  .command-titlebar { grid-template-columns: 1fr; gap: 24px; }
  .battle-workspace { grid-template-columns: 1fr; }
  .phase-rail { grid-column: auto; }
  .phase-insight { max-height: none; }
  .map-stage { min-height: 430px; aspect-ratio: auto; }
  .force-comparison { grid-template-columns: 1fr; gap: 8px; }
  .force-versus { min-height: 54px; }
  .technology-head { display: none; }
  .technology-row { grid-template-columns: 1fr; padding: 24px 0; }
  .technology-cell { min-height: 0; border-right: 0; padding: 9px 18px; }
  .technology-cell::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted); font: 700 .68rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
  .outcome-grid { grid-template-columns: 1fr; }
  .battle-sources--3 { grid-template-columns: repeat(2, 1fr); }
  .battle-sources--3 .battle-source:last-child { grid-column: 1 / -1; }

  .battle-route-inner { grid-template-columns: 1fr 1fr; }
  .battle-route-context { grid-column: 1 / -1; grid-row: 1; min-height: 92px; border-right: 0; border-bottom: 1px solid var(--command-line); border-left: 0; }
  .battle-route-link,
  .battle-route-empty { min-height: 92px; }
  .battle-route-empty { display: none; }
  .battle-route-link--previous,
  .battle-route-empty--previous { grid-column: 1; grid-row: 2; border-right: 1px solid var(--command-line); }
  .battle-route-link--next,
  .battle-route-empty--next { grid-column: 2; grid-row: 2; }
}

@media (max-width: 680px) {
  .battle-subnav { top: var(--header-h); }
  .battle-hero,
  .battle-hero-inner { min-height: min(760px, calc(100svh - var(--header-h))); }
  .battle-hero-visual img { object-position: 62% center; opacity: .92; }
  .battle-hero::before {
    background:
      linear-gradient(180deg, rgba(7,11,11,.45) 0%, rgba(7,11,11,.05) 32%, rgba(7,11,11,.58) 63%, rgba(7,11,11,.98) 100%),
      linear-gradient(90deg, rgba(7,11,11,.48) 0%, rgba(7,11,11,.04) 82%);
  }
  .battle-hero-inner { grid-template-rows: auto 1fr; gap: 0; padding: 20px 0 36px; }
  .battle-hero .crumbs { flex-wrap: nowrap; margin: 0; overflow: hidden; }
  .battle-hero .crumbs li { display: none; }
  .battle-hero .crumbs li:nth-last-child(-n + 2) { min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .battle-hero .crumbs li:nth-last-child(2) { flex: 1 1 auto; }
  .battle-hero .crumbs li:nth-last-child(2)::before { display: none; }
  .battle-hero .crumbs li:last-child { max-width: 38%; flex: 0 0 auto; }
  .battle-hero-copy { max-width: none; padding-top: 48px; }
  .battle-hero h1 { font-size: clamp(4rem, 17vw, 5.5rem); }
  .battle-hero-copy--long h1 { font-size: clamp(3.25rem, 13.2vw, 4.5rem); line-height: .9; }
  .battle-hero-copy--very-long h1 { font-size: clamp(2.75rem, 10.8vw, 3.9rem); line-height: .94; }
  .battle-hero-copy--wide-word h1 { max-width: none; font-size: clamp(2.7rem, 11vw, 3.8rem); overflow-wrap: anywhere; }
  .battle-hero-meta { margin-top: 18px; font-size: .68rem; letter-spacing: .045em; }
  .battle-hero-copy .battle-question { max-width: 28ch; margin-top: 20px; font-size: clamp(1.28rem, 6vw, 1.58rem); line-height: 1.32; text-wrap: pretty; }
  .command-surface { padding-inline: 8px; }
  .command-titlebar { gap: 18px; margin-bottom: 20px; }
  .command-titlebar h2 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .phase-rail { grid-template-columns: 1fr; }
  .phase-rail .workspace-panel-title { border-right: 0; }
  .phase-button { min-width: 170px; }
  .map-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 10px 12px 12px; }
  .map-legend .workspace-label,
  .map-legend .legend-note { grid-column: 1 / -1; }
  .map-legend .legend-note { justify-self: start; max-width: none; text-align: left; }
  .map-panel-head { align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 12px; }
  .phase-subtitle { display: none; }
  .map-tools { width: 100%; max-width: none; justify-content: flex-end; overflow-x: visible; }
  .map-tools button { flex: 0 0 44px; width: 44px; height: 44px; }
  .map-stage { min-height: 330px; }
  .map-callout { grid-template-columns: 20px minmax(0, 1fr); gap: 9px; padding: 11px 12px; }
  .map-callout > div { grid-template-columns: 1fr; gap: 3px; }
  .map-playback { grid-template-columns: 44px 46px minmax(120px, 1fr) 44px; }
  .speed-picker { display: none; }
  .map-step { width: 44px; min-height: 44px; padding: 0; }
  .context-grid,
  .context-grid--3 { grid-template-columns: 1fr; }
  .context-grid--3 .context-block:last-child { grid-column: auto; min-height: 0; }
  .context-block { min-height: 0; border-right: 0; }
  .battle-section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 38px; }
  .battle-section-head h2 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .mechanism-row { grid-template-columns: 52px 1fr; gap: 14px; padding: 24px 0; }
  .mechanism-row p { grid-column: 2; }
  .myth-strip { grid-template-columns: 72px 1fr; }
  .myth-strip > div { grid-column: 1 / -1; }
  .battle-sources,
  .battle-sources--3 { grid-template-columns: 1fr; }
  .battle-sources--3 .battle-source:last-child { grid-column: auto; }
  .source-marks a { min-width: 36px; min-height: 36px; }
  .battle-route-inner { width: 100%; }
  .battle-route-link { gap: 9px; padding: 13px 12px; }
  .battle-route-link strong { font-size: clamp(1.08rem, 5.8vw, 1.5rem); white-space: normal; }
  .battle-route-link time { display: none; }
  .battle-route-link--next .battle-route-arrow { align-self: center; }
  .battle-route-context { padding-inline: var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
  .movement-arrow { animation: none; stroke-dasharray: none; }
  .map-label,
  .map-label-leader,
  .map-label-layer { transition: none; }
}

@media (forced-colors: active) {
  .formation-plate,
  .map-formation--ghost .formation-plate { fill: Canvas; stroke: CanvasText; }
  .movement-arrow { stroke: CanvasText; }
  .map-label { color: CanvasText; background: Canvas; border-color: CanvasText; forced-color-adjust: none; }
  .map-label-leader { stroke: CanvasText; }
}
