:root {
  --ink: #ece2c7;
  --muted: #b9ad91;
  --paper: #d8c79f;
  --bg: #171a17;
  --panel: #242820;
  --panel-2: #303428;
  --border: #69634d;
  --gold: #c3a65a;
  --ally: #6d9db4;
  --enemy: #b25f56;
  --pending: #d7a94a;
  --success: #729b63;
  --danger: #bf554b;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 26, 23, 0.94), rgba(23, 26, 23, 0.94)),
    repeating-linear-gradient(35deg, #544c36 0, #544c36 1px, transparent 1px, transparent 8px);
  font-family: Georgia, "Times New Roman", serif;
  min-height: 100vh;
}

body.at-menu {
  overflow: auto;
}

body.at-menu #game-root {
  display: none;
}

body.in-game #start-screen {
  display: none;
}

.start-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem 3rem;
}

.start-frame {
  width: min(920px, 100%);
  padding: 2rem 2rem 2.2rem;
  background:
    linear-gradient(180deg, rgba(48, 52, 40, 0.96), rgba(28, 31, 24, 0.96));
  border: 1px solid var(--gold);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(216, 199, 159, 0.12);
}

.start-hero h1,
.start-hero h2 {
  margin-bottom: 0.55rem;
}

.start-lead {
  max-width: 42rem;
  margin-bottom: 1.6rem;
  color: var(--muted);
  line-height: 1.5;
}

.start-notice {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  color: #17170f;
  background: var(--paper);
  border-left: 4px solid var(--danger);
}

.start-actions {
  display: grid;
  gap: 0.9rem;
}

.start-choice {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem;
  text-align: left;
  background: rgba(15, 17, 14, 0.35);
}

.start-choice strong {
  color: var(--paper);
  font-size: 1.25rem;
}

.start-choice span:last-child {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.start-choice-continue:disabled span:last-child {
  font-style: italic;
}

.start-choice-locked {
  opacity: 0.82;
}

.account-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin: 0 0 1.2rem;
  padding: 0.7rem 0.85rem;
  background: rgba(15, 17, 14, 0.35);
  border: 1px solid var(--border);
}

.account-bar p {
  margin: 0;
  color: var(--muted);
}

.account-bar strong {
  color: var(--paper);
}

.account-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.account-form {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  background: rgba(15, 17, 14, 0.35);
  border: 1px solid var(--border);
}

.account-form h3 {
  margin: 0 0 0.35rem;
}

.account-form input {
  width: 100%;
}

@media (max-width: 720px) {
  .account-forms {
    grid-template-columns: 1fr;
  }
}

.start-back {
  margin-bottom: 1.1rem;
  padding: 0.4rem 0.7rem;
}

.start-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 1.2rem 1.5rem;
}

.start-create-fields label,
.start-field-label {
  display: block;
  margin: 0.85rem 0 0.4rem;
}

.start-create-fields input[type="text"],
.start-create-fields select {
  width: 100%;
  margin: 0 0 0.4rem;
}

.start-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.start-card {
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding: 0.75rem 0.8rem;
  color: var(--ink);
  background: rgba(15, 17, 14, 0.4);
  border: 1px solid var(--border);
  cursor: pointer;
}

.start-card.is-selected,
.start-card:has(input:checked) {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.start-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.start-card strong {
  color: var(--paper);
}

.start-card span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.start-preview {
  padding: 1rem;
  background: rgba(195, 166, 90, 0.08);
  border: 1px solid rgba(195, 166, 90, 0.35);
}

.start-preview h3 {
  margin: 0 0 0.35rem;
  color: var(--paper);
  font-size: 1.1rem;
}

.start-preview ul {
  margin: 0.7rem 0;
  padding-left: 1.1rem;
}

.start-preview-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.campaign-outline {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: rgba(15, 17, 14, 0.35);
  border: 1px solid rgba(195, 166, 90, 0.35);
}

.campaign-outline p {
  margin: 0.35rem 0 0.7rem;
  color: var(--muted);
}

.campaign-outline ol {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.campaign-outline li {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
}

.campaign-outline li span {
  flex: 0 0 1.4rem;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.start-create-submit {
  grid-column: 1 / -1;
}

.theater-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.theater-card {
  padding: 1.1rem 1.2rem;
  background: rgba(15, 17, 14, 0.35);
  border: 1px solid var(--border);
}

.theater-card h3 {
  margin-bottom: 0.5rem;
  color: var(--paper);
}

.theater-commanders {
  margin: 0 0 1.6rem;
}

.theater-commanders h3 {
  margin: 0.2rem 0 0.45rem;
}

.theater-commander-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.theater-commander-stats {
  color: var(--gold);
  font-size: 0.78rem;
}

.theater-meta,
.theater-commander {
  color: var(--muted);
  font-size: 0.88rem;
}

.theater-card .primary {
  margin-top: 0.4rem;
}

button,
select,
input[type="text"],
textarea {
  font: inherit;
}

button {
  color: var(--ink);
  background: #3a3d31;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  transition: background 150ms, transform 150ms, border-color 150ms;
}

button:hover:not(:disabled) {
  background: #494c3b;
  border-color: var(--gold);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button.primary {
  color: #17170f;
  background: var(--gold);
  border-color: #dfc474;
  font-weight: 700;
}

button.primary:hover:not(:disabled) {
  background: #d4ba70;
}

button.danger-outline {
  color: #e7aaa5;
  border-color: #86514c;
}

button.small {
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
}

.full-width {
  width: 100%;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  padding: 1.3rem max(1rem, calc((100% - 1400px) / 2));
  background: #20231c;
  border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.25rem;
  color: var(--paper);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
}

h2 {
  margin-bottom: 0;
  color: var(--paper);
  font-size: 1.35rem;
}

.eyebrow {
  margin-bottom: 0.3rem;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scenario {
  margin-bottom: 0;
  color: var(--muted);
}

.turn-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  grid-column: 1 / -1;
}

.map-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0 0.35rem;
  padding: 0.55rem 0.7rem;
  color: var(--paper);
  background: rgba(195, 166, 90, 0.08);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  cursor: pointer;
}

.map-option input {
  accent-color: var(--gold);
}

.map-option select {
  width: auto;
  margin: 0;
  padding: 0.28rem 0.4rem;
}

main {
  width: calc(100% - 1.5rem);
  max-width: none;
  margin: 1.4rem auto 3rem;
}

.notification {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 50%;
  max-width: min(520px, calc(100% - 2rem));
  padding: 0.85rem 1.2rem;
  color: #17170f;
  background: var(--paper);
  border-left: 5px solid var(--gold);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -20px);
  transition: opacity 180ms, transform 180ms;
}

.notification.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.game-status {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-left-width: 5px;
  background: #292d24;
}

.game-status.ongoing {
  border-left-color: var(--gold);
}

.game-status.victory {
  border-color: var(--success);
  background: #263724;
}

.game-status.defeat {
  border-color: var(--danger);
  background: #3a2522;
}

.game-status .recap-open-btn {
  margin-left: auto;
}

.panel {
  margin-bottom: 1rem;
  padding: 1.15rem;
  background: linear-gradient(145deg, rgba(48, 52, 40, 0.98), rgba(34, 38, 30, 0.98));
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(195, 166, 90, 0.35);
}

.badge,
.status-pill {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge.ally {
  color: #d6f1ff;
  background: #355668;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 0.75rem;
}

.stat {
  padding: 0.8rem;
  background: rgba(18, 21, 17, 0.5);
  border: 1px solid rgba(105, 99, 77, 0.65);
}

.stat span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.stat strong {
  font-size: 1.05rem;
}

.map-stage {
  position: relative;
  width: 100%;
  margin: 0 0 1rem;
}

.map-stage.map-disabled {
  margin: 0 0 1rem;
}

.order-bubble {
  position: fixed;
  z-index: 8;
  top: 5.5rem;
  left: 1.1rem;
  width: min(420px, calc(100vw - 2.2rem));
  max-height: min(78vh, 820px);
  overflow: auto;
  padding: 1rem 1.05rem 1.1rem;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(236, 226, 199, 0.1), transparent 42%),
    linear-gradient(145deg, rgba(32, 36, 28, 0.52), rgba(18, 22, 16, 0.46));
  border: 1px solid rgba(195, 166, 90, 0.7);
  border-radius: 18px 18px 18px 6px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(241, 202, 89, 0.12) inset;
  backdrop-filter: blur(7px) saturate(1.15);
  -webkit-backdrop-filter: blur(7px) saturate(1.15);
}

.order-bubble::after {
  position: absolute;
  top: -10px;
  right: 1.6rem;
  width: 18px;
  height: 18px;
  background: rgba(24, 28, 20, 0.5);
  border-top: 1px solid rgba(195, 166, 90, 0.7);
  border-right: 1px solid rgba(195, 166, 90, 0.7);
  content: "";
  transform: rotate(-45deg);
}

.order-bubble select,
.order-bubble input[type="text"],
.order-bubble textarea {
  background: rgba(18, 22, 16, 0.62);
}

.order-bubble-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(195, 166, 90, 0.35);
}

.order-bubble-tools {
  display: flex;
  align-items: flex-start;
  gap: 0.1rem;
  flex-shrink: 0;
}

.order-bubble-quick {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

.order-bubble-quick select {
  width: auto;
  min-width: 7.2rem;
  margin: 0;
  padding: 0.38rem 0.5rem;
}

#order-pace-wrap[hidden],
#order-pace-bar[hidden] {
  display: none;
}

.order-bubble-quick button {
  margin: 0;
  white-space: nowrap;
}

.order-bubble-quick button:hover:not(:disabled) {
  transform: none;
}

.dialog-collapse {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
  background: transparent;
  border-color: transparent;
}

.order-bubble-summary {
  display: none;
  margin: 0.2rem 0 0;
  color: var(--gold);
  font-size: 0.82rem;
}

.order-bubble.is-collapsed {
  width: min(560px, calc(100vw - 2.2rem));
  max-height: none;
  overflow: hidden;
  padding: 0.7rem 0.85rem;
}

.order-bubble.is-collapsed .order-bubble-body {
  display: none;
}

.order-bubble.is-collapsed .order-bubble-heading {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  align-items: center;
  cursor: pointer;
}

.order-bubble.is-collapsed .eyebrow,
.order-bubble.is-collapsed h2 {
  display: none;
}

.order-bubble.is-collapsed .order-bubble-heading > div:first-child {
  flex: 1 1 8rem;
  min-width: 0;
}

.order-bubble.is-collapsed .order-bubble-summary {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-bubble.is-collapsed .order-bubble-quick {
  display: flex;
}

.order-bubble.is-collapsed .order-bubble-tools {
  align-items: center;
  gap: 0.35rem;
}

#deployment-bubble.is-collapsed {
  width: min(640px, calc(100vw - 2.2rem));
}

#deployment-piece-bar {
  max-width: min(22rem, 42vw);
}

.order-bubble.is-collapsed .dialog-collapse,
.order-bubble.is-collapsed .dialog-collapse:hover:not(:disabled) {
  transform: rotate(-90deg);
}

.order-bubble.is-collapsed:hover {
  border-color: rgba(223, 196, 116, 0.9);
}

.order-bubble .form-help,
.order-bubble .movement-rules {
  font-size: 0.78rem;
}

.order-bubble #deployment-piece {
  width: 100%;
  margin: 0 0 0.85rem;
}

.order-bubble #finish-deployment-btn {
  margin-top: 0.25rem;
}

.order-bubble .movement-rules {
  margin: 0 0 0.85rem;
}

.order-bubble .movement-rules summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 700;
}

.order-bubble.is-inline,
.map-stage.map-disabled .order-bubble {
  position: static;
  width: auto;
  max-width: 720px;
  max-height: none;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.order-bubble.is-inline .dialog-close,
.order-bubble.is-inline .dialog-collapse,
.order-bubble.is-inline .order-bubble-quick,
.map-stage.map-disabled .order-bubble .dialog-close,
.map-stage.map-disabled .order-bubble .dialog-collapse,
.map-stage.map-disabled .order-bubble .order-bubble-quick,
.order-bubble.is-inline::after,
.map-stage.map-disabled .order-bubble::after {
  display: none;
}

.order-bubble.is-inline::after,
.map-stage.map-disabled .order-bubble::after {
  content: none;
}

#recap-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(10, 12, 9, 0.72);
}

#recap-overlay[hidden] {
  display: none !important;
}

#turn-brief-overlay {
  position: fixed;
  inset: 0;
  z-index: 29;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(10, 12, 9, 0.66);
}

#turn-brief-overlay[hidden] {
  display: none !important;
}

#mission-brief-overlay {
  position: fixed;
  inset: 0;
  z-index: 31;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(10, 12, 9, 0.74);
}

#mission-brief-overlay[hidden] {
  display: none !important;
}

.mission-bubble {
  width: min(720px, 100%);
}

.mission-figure {
  margin: 0 0 0.9rem;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(195, 166, 90, 0.45);
  background: #12150f;
}

.mission-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  object-position: center;
}

.mission-meta,
.mission-commander {
  margin: 0.15rem 0 0.55rem;
  color: var(--muted);
}

.mission-commander {
  color: var(--gold);
  font-style: italic;
}

.mission-objectives,
.mission-stakes {
  margin: 0.35rem 0 0.95rem;
  padding: 0;
  list-style: none;
}

.mission-objectives li,
.mission-stakes li {
  position: relative;
  margin: 0 0 0.45rem;
  padding: 0.55rem 0.75rem 0.55rem 2.1rem;
  border-left: 3px solid var(--gold);
  background: rgba(10, 12, 9, 0.32);
  line-height: 1.45;
}

.mission-objectives li {
  counter-increment: mission-obj;
}

.mission-objectives {
  counter-reset: mission-obj;
}

.mission-objectives li::before {
  content: counter(mission-obj);
  position: absolute;
  left: 0.65rem;
  top: 0.55rem;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.mission-stakes li {
  border-left-color: var(--danger);
}

.brief-bubble {
  width: min(520px, 100%);
}

.brief-card {
  padding: 1rem 1rem 0.35rem;
  border: 1px solid rgba(195, 166, 90, 0.45);
  border-radius: 14px;
  background: rgba(18, 21, 16, 0.45);
}

.brief-kicker {
  margin: 0;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brief-lead {
  margin: 0.35rem 0 0.85rem;
  font-size: 1.05rem;
}

.brief-list {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}

.brief-line {
  position: relative;
  margin: 0 0 0.55rem;
  padding: 0.55rem 0.7rem 0.55rem 0.85rem;
  border-left: 3px solid rgba(195, 166, 90, 0.55);
  background: rgba(10, 12, 9, 0.28);
  line-height: 1.45;
}

.brief-line.is-combat {
  border-left-color: #bf554b;
}

.brief-line.is-urgent {
  border-left-color: #f1ca59;
}

.brief-line.is-calme {
  border-left-color: #6d9db4;
}

.brief-bubble.is-speaking::after,
#turn-brief-overlay.is-speaking .brief-bubble::after {
  content: "Lecture du bulletin…";
  display: block;
  margin-top: 0.35rem;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recap-bubble {
  width: min(560px, 100%);
  max-height: min(90vh, 980px);
  overflow: auto;
  padding: 1.1rem 1.15rem 1.2rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 0, rgba(195, 166, 90, 0.16), transparent 42%),
    linear-gradient(165deg, #32382a 0%, #1c2118 55%, #161910 100%);
  border: 1px solid var(--gold);
  border-radius: 22px 22px 10px 22px;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(241, 202, 89, 0.12);
}

.recap-bubble-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.recap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.recap-actions button {
  flex: 1 1 8rem;
}

.recap-card {
  padding: 1.1rem 1rem 0.4rem;
  border: 1px solid rgba(195, 166, 90, 0.45);
  border-radius: 14px;
  background: rgba(18, 21, 16, 0.45);
}

.recap-kicker {
  margin: 0;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.recap-outcome {
  margin: 0.35rem 0 0;
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.recap-card.is-victory .recap-outcome {
  color: #9ec87f;
}

.recap-card.is-defeat .recap-outcome {
  color: #e08a80;
}

.recap-card h2 {
  margin: 0.55rem 0 0.2rem;
  font-size: 1.45rem;
}

.recap-meta,
.recap-commanders,
.recap-verdict {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.recap-commanders {
  color: var(--ink);
  font-size: 1.02rem;
}

.recap-commanders span {
  color: var(--gold);
  font-style: italic;
}

.recap-campaign {
  margin: 0.65rem 0 0;
  color: var(--gold);
}

.recap-progress {
  margin: 0.45rem 0 0;
  color: var(--ink);
  line-height: 1.4;
}

.recap-verdict {
  margin-top: 0.7rem;
  line-height: 1.45;
}

.recap-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 1rem 0 1.05rem;
}

.recap-tiles div {
  padding: 0.7rem 0.65rem 0.65rem;
  background: rgba(12, 14, 11, 0.55);
  border: 1px solid rgba(105, 99, 77, 0.7);
  border-radius: 8px;
}

.recap-tiles span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recap-tiles strong {
  font-size: 1.12rem;
}

.recap-losses-title,
.recap-roster-title {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: 0.92rem;
}

.recap-loss-row {
  margin-bottom: 0.75rem;
}

.recap-loss-row span {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.recap-loss-row strong {
  float: right;
}

.recap-loss-row.french strong {
  color: var(--ally);
}

.recap-loss-row.enemy strong {
  color: var(--enemy);
}

.recap-bar {
  height: 10px;
  margin: 0.4rem 0 0.35rem;
  overflow: hidden;
  background: #141711;
  border-radius: 99px;
}

.recap-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
}

.recap-loss-row.french .recap-bar i {
  background: var(--ally);
}

.recap-loss-row.enemy .recap-bar i {
  background: var(--enemy);
}

.recap-loss-row small {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
}

.recap-roster {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recap-roster li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(105, 99, 77, 0.45);
  font-size: 0.92rem;
}

.recap-roster span {
  color: var(--muted);
  white-space: nowrap;
}

.map-heading {
  position: sticky;
  top: 0;
  z-index: 7;
  overflow: hidden;
  isolation: isolate;
  gap: 0.75rem;
  margin: -1.15rem -1.15rem 1rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid rgba(241, 202, 89, 0.28);
  background: #3d5a7a;
  color: #f7f0dc;
  text-shadow: 0 1px 8px rgba(12, 16, 12, 0.65);
}

.map-heading-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.map-heading-sky::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 24, 19, 0.55) 0%, rgba(22, 24, 19, 0.12) 42%, transparent 70%);
  content: "";
}

.map-heading > :not(.map-heading-sky) {
  position: relative;
  z-index: 1;
}

.map-heading .primary {
  white-space: nowrap;
}

.map-heading-copy {
  min-width: 0;
}

.map-heading-copy h2,
.map-heading .eyebrow {
  color: #fff8e6;
}

.map-clock {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
  margin: 0;
  color: #fff8e6;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(12, 16, 12, 0.7);
}

.map-clock-face {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #fff8e0, #e4d2a0 58%, #c4a66a);
  border: 2px solid #f0d477;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.35),
    inset 0 0 0 2px rgba(80, 58, 18, 0.22);
}

.map-clock-face::before {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: repeating-conic-gradient(#5a4a22 0 1.8deg, transparent 1.8deg 30deg);
  mask: radial-gradient(circle, transparent 64%, #000 65%);
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 65%);
  content: "";
}

.map-clock-hour,
.map-clock-minute {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: 50% 100%;
  background: #2a2414;
  border-radius: 2px;
}

.map-clock-hour {
  width: 3px;
  height: 12px;
  margin-left: -1.5px;
  transform: rotate(300deg);
}

.map-clock-minute {
  width: 2px;
  height: 16px;
  margin-left: -1px;
  transform: rotate(0deg);
}

.map-clock-pivot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #6a4e1a;
  box-shadow: 0 0 0 1px #f0d477;
}

.map-heading-weather {
  margin: 0 0 0 auto;
  padding: 0.28rem 0.7rem;
  color: #231b08;
  background: rgba(255, 244, 200, 0.88);
  border: 1px solid rgba(138, 106, 36, 0.45);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: none;
  white-space: nowrap;
}

.sky-sun,
.sky-cloud,
.sky-precip,
.sky-mist {
  position: absolute;
  display: none;
}

.sky-sun {
  top: 8px;
  right: 22%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fffce3, #f1ca59 52%, #d4892a);
  box-shadow:
    0 0 18px 6px rgba(241, 202, 89, 0.75),
    0 0 0 10px rgba(255, 214, 120, 0.18),
    0 0 0 20px rgba(255, 214, 120, 0.08);
}

.sky-cloud {
  border-radius: 40px;
  background: #eef3f6;
  box-shadow:
    18px 6px 0 -2px #e8eef3,
    -16px 8px 0 -4px #dfe6ec,
    8px -8px 0 -6px #f4f7fa;
}

.sky-cloud.a { top: 14px; right: 8%; width: 72px; height: 22px; }
.sky-cloud.b { top: 28px; right: 26%; width: 90px; height: 26px; }
.sky-cloud.c { top: 10px; right: 40%; width: 58px; height: 18px; }

.sky-precip {
  inset: 0;
  background: repeating-linear-gradient(
    -22deg,
    transparent 0 10px,
    rgba(210, 224, 236, 0.55) 10px 11px,
    transparent 11px 20px
  );
  animation: sky-rain 0.55s linear infinite;
  opacity: 0.85;
}

.sky-mist {
  inset: -20% -10%;
  background:
    radial-gradient(ellipse at 30% 80%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(ellipse at 70% 30%, rgba(236, 236, 230, 0.5), transparent 50%),
    linear-gradient(180deg, rgba(210, 212, 204, 0.35), rgba(255, 255, 255, 0.55));
  filter: blur(8px);
  animation: sky-drift 8s ease-in-out infinite alternate;
}

.map-heading[data-weather="clear"] {
  background: linear-gradient(180deg, #5b91c7 0%, #87b5d8 58%, #d7b56a 100%);
}
.map-heading[data-weather="clear"] .sky-sun { display: block; }
.map-heading[data-weather="clear"] .sky-cloud {
  display: block;
  opacity: 0.45;
  background: #f7fbff;
}

.map-heading[data-weather="cloudy"] {
  background: linear-gradient(180deg, #6d7d8c 0%, #8b97a3 55%, #a9b1b8 100%);
}
.map-heading[data-weather="cloudy"] .sky-sun {
  display: block;
  opacity: 0.28;
  filter: grayscale(0.4);
  box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.2);
}
.map-heading[data-weather="cloudy"] .sky-cloud {
  display: block;
  background: #d7dde3;
  box-shadow:
    18px 6px 0 -2px #c5ccd3,
    -16px 8px 0 -4px #bcc4cb,
    8px -8px 0 -6px #e3e7eb;
}

.map-heading[data-weather="rain"] {
  background: linear-gradient(180deg, #2f3d4c 0%, #445564 52%, #5a6876 100%);
}
.map-heading[data-weather="rain"] .sky-cloud {
  display: block;
  background: #9aa6b2;
  box-shadow:
    18px 6px 0 -2px #88949f,
    -16px 8px 0 -4px #7b8792,
    8px -8px 0 -6px #aeb8c2;
}
.map-heading[data-weather="rain"] .sky-precip { display: block; }
.map-heading[data-weather="rain"] .map-heading-weather {
  background: rgba(186, 206, 222, 0.92);
}

.map-heading[data-weather="fog"] {
  background: linear-gradient(180deg, #8b8e86 0%, #b4b6ae 55%, #d4d5ce 100%);
}
.map-heading[data-weather="fog"] .sky-cloud {
  display: block;
  opacity: 0.35;
}
.map-heading[data-weather="fog"] .sky-mist { display: block; }
.map-heading[data-weather="fog"] .map-heading-weather {
  background: rgba(236, 236, 230, 0.92);
}

@keyframes sky-rain {
  to { background-position: 12px 18px; }
}

@keyframes sky-drift {
  from { transform: translateX(-8px); }
  to { transform: translateX(14px); }
}

label {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--paper);
  font-weight: 700;
}

select,
input[type="text"],
textarea {
  width: 100%;
  margin-bottom: 0.9rem;
  padding: 0.65rem;
  color: var(--ink);
  background: #191c17;
  border: 1px solid var(--border);
  border-radius: 3px;
}

select:focus,
input[type="text"]:focus,
textarea:focus {
  outline: 2px solid rgba(195, 166, 90, 0.5);
  border-color: var(--gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.form-help {
  margin: -0.35rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.movement-rules {
  margin: 0 0 0.9rem;
  padding: 0.55rem;
  color: var(--paper);
  background: rgba(195, 166, 90, 0.09);
  border-left: 3px solid var(--gold);
  font-size: 0.8rem;
  line-height: 1.4;
}

.zone-map {
  overflow-x: auto;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(12, minmax(0, 1fr));
  align-content: stretch;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 2px solid #80765a;
  background: #161813;
}

.map-board {
  position: relative;
}

.supply-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.supply-arrow-line {
  fill: none;
  stroke: #e0b84a;
  stroke-width: 0.07;
  stroke-dasharray: 0.22 0.16;
  stroke-linecap: round;
  animation: supply-flow 1.1s linear infinite;
}

.supply-arrow-head {
  fill: #f1ca59;
  stroke: #8a6a24;
  stroke-width: 0.02;
}

.supply-wagon {
  fill: #fff4c8;
  stroke: #8a6a24;
  stroke-width: 0.04;
}

.supply-eta-label {
  position: absolute;
  z-index: 5;
  padding: 0.12rem 0.35rem;
  color: #17170f;
  background: #f1ca59;
  border: 1px solid #8a6a24;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-family: Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  pointer-events: none;
  transform: translate(-50%, -130%);
  white-space: nowrap;
}

.unit-token.low-ammo {
  box-shadow: 0 0 0 2px #d7a94a, 1px 2px 4px rgba(0, 0, 0, 0.55);
}

.unit-token.low-ammo::before {
  position: absolute;
  top: -7px;
  right: -4px;
  z-index: 3;
  color: #f1ca59;
  font-size: 0.7rem;
  line-height: 1;
  content: "▸";
  text-shadow: 0 0 4px #000;
}

@keyframes supply-flow {
  to { stroke-dashoffset: -0.38; }
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.map-toolbar > span {
  flex: 1 1 12rem;
}

.map-zoom-controls {
  display: flex;
  gap: 0.3rem;
  margin-left: auto;
}

.map-zoom-controls button {
  min-width: 2rem;
  padding: 0.2rem 0.55rem;
}

.map-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 2px solid #80765a;
  background: #161813;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.map-viewport.is-panning {
  cursor: grabbing;
}

#map-terrain {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-overlays {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.map-cell-overlay {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
}

.map-cell-overlay .unit-token {
  pointer-events: auto;
  top: 50%;
  left: 50%;
  width: min(50px, max(16px, 86%));
  height: min(44px, max(14px, 74%));
}

.courier-token {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #3d3424;
  background: radial-gradient(circle at 35% 30%, #fff6d8, #e4c47a);
  border: 2px solid #5a4630;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #f4e6c1, 1px 2px 4px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  transform: translate(-50%, -50%) translate(calc(var(--stack-index) * 6px), calc(var(--stack-index) * 5px));
  animation: courier-pulse 1.6s ease-in-out infinite;
}

.courier-token.enemy-messenger {
  color: #f4e6c1;
  background: radial-gradient(circle at 35% 30%, #8a3a32, #5a1f1c);
  border-color: #c9a36a;
}

.intel-form {
  display: grid;
  gap: 0.8rem;
}

.intel-notes {
  display: grid;
  gap: 0.55rem;
}

.intel-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.7rem 0.8rem;
  background: rgba(15, 17, 14, 0.35);
  border: 1px solid var(--border);
}

.intel-note span {
  display: grid;
  gap: 0.2rem;
}

.intel-note small {
  color: var(--muted);
}

.intel-note.is-locked {
  opacity: 0.72;
}

.intel-note.incomplete {
  border-color: #8a6a3a;
}

.map-cell-overlay:not(.courier-only) .courier-token {
  top: auto;
  left: auto;
  right: 8%;
  bottom: 8%;
  transform: translate(calc(var(--stack-index) * 5px), calc(var(--stack-index) * -4px));
}

.courier-token .courier-mark {
  font-size: 0.72rem;
  line-height: 1;
}

.map-viewport.is-zoomed-out .courier-token {
  width: 11px;
  height: 11px;
}

.map-viewport.is-zoomed-out .map-cell-overlay:not(.courier-only) .courier-token {
  right: 2px;
  bottom: 2px;
}

.map-viewport.is-zoomed-out .courier-token .courier-mark {
  font-size: 0.45rem;
}

@keyframes courier-pulse {
  50% { box-shadow: 0 0 0 3px rgba(244, 230, 193, 0.55), 1px 2px 4px rgba(0, 0, 0, 0.45); }
}

.map-viewport.is-zoomed-out .counter-label,
.map-viewport.is-zoomed-out .counter-strength,
.map-viewport.is-zoomed-out .formation-mark {
  display: none;
}

.map-viewport.is-zoomed-out .unit-token {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 18px;
  height: 18px;
  padding: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.map-viewport.is-zoomed-out .unit-token:hover {
  transform: translate(-50%, -50%) scale(1.25);
}

.map-hover-label {
  position: absolute;
  z-index: 8;
  left: 8px;
  bottom: 8px;
  padding: 0.2rem 0.5rem;
  color: #f1e6c8;
  background: rgba(22, 24, 19, 0.9);
  border: 1px solid #80765a;
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  pointer-events: none;
}

.map-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(235, 224, 194, 0.14);
  cursor: crosshair;
  transition: filter 120ms, box-shadow 120ms;
}

.map-cell.enemy-deployment-half::before,
.map-cell.player-deployment-half::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
}

.map-cell.enemy-deployment-half::before {
  background: rgba(93, 27, 24, 0.3);
}

.map-cell.player-deployment-half::before {
  background: rgba(79, 116, 67, 0.12);
}

.map-cell.deployment-boundary {
  border-top: 3px solid #d7bd72;
}

.map-cell.enemy-deployment-half {
  cursor: not-allowed;
}

.map-cell.enemy-deployment-half.hq-placement-allowed {
  cursor: crosshair;
}

.map-cell:hover,
.map-cell:focus-visible {
  z-index: 2;
  outline: none;
  filter: brightness(1.25);
  box-shadow: inset 0 0 0 2px var(--paper);
}

.map-cell.targeted {
  z-index: 1;
  box-shadow: inset 0 0 0 3px #f1ca59;
}

.map-cell.movement-origin {
  box-shadow: inset 0 0 0 2px #d7a94a;
}

.map-cell.movement-destination {
  box-shadow: inset 0 0 0 3px #f1ca59;
}

.map-cell.battle-site {
  z-index: 2;
}

.map-cell.battle-site.battle-ally {
  box-shadow: inset 0 0 0 3px var(--ally), 0 0 10px rgba(109, 157, 180, 0.85);
}

.map-cell.battle-site.battle-enemy {
  box-shadow: inset 0 0 0 3px var(--danger), 0 0 10px rgba(191, 85, 75, 0.8);
}

.map-cell.battle-site.battle-draw {
  box-shadow: inset 0 0 0 3px var(--gold), 0 0 10px rgba(195, 166, 90, 0.8);
}

.event-marker {
  position: absolute;
  z-index: 5;
  right: 2px;
  bottom: 1px;
  color: #fff4d5;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
}

.battle-smoke {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.battle-smoke::before {
  position: absolute;
  right: 4%;
  bottom: -8%;
  left: 4%;
  height: 55%;
  background: radial-gradient(ellipse at 50% 80%, rgba(214, 208, 190, 0.42), rgba(120, 114, 98, 0.12) 55%, transparent 74%);
  filter: blur(7px);
  content: "";
  animation: powder-haze 4.2s ease-in-out infinite alternate;
}

.battle-smoke i {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle at 40% 40%, rgba(236, 232, 218, 0.8) 0%, rgba(168, 162, 146, 0.38) 42%, transparent 72%);
  filter: blur(5px);
  animation: powder-smoke 3.8s ease-in-out infinite;
}

.battle-smoke i:nth-child(1) { width: 46%; height: 40%; left: 4%; bottom: 6%; animation-duration: 3.4s; }
.battle-smoke i:nth-child(2) { width: 54%; height: 48%; left: 26%; bottom: 14%; animation-delay: 0.55s; }
.battle-smoke i:nth-child(3) { width: 38%; height: 36%; left: 48%; bottom: 2%; animation-delay: 1.1s; animation-duration: 4.2s; }
.battle-smoke i:nth-child(4) { width: 42%; height: 34%; left: 12%; bottom: 22%; animation-delay: 1.7s; animation-duration: 3.1s; }
.battle-smoke i:nth-child(5) { width: 36%; height: 32%; left: 58%; bottom: 18%; animation-delay: 2.2s; animation-duration: 4.6s; }

.battle-smoke.is-lingering::before {
  opacity: 0.55;
}

.battle-smoke.is-lingering i {
  animation-duration: 5.4s;
  filter: blur(7px);
}

.map-cell.battle-enemy .battle-smoke i {
  background: radial-gradient(circle at 40% 40%, rgba(232, 214, 198, 0.78) 0%, rgba(150, 118, 102, 0.36) 46%, transparent 72%);
}

.cell-coordinate {
  position: absolute;
  top: 2px;
  left: 3px;
  color: rgba(255, 255, 255, 0.4);
  font-family: Arial, sans-serif;
  font-size: 0.48rem;
  z-index: 1;
}

.terrain-p {
  background:
    radial-gradient(ellipse at 40% 35%, rgba(90, 120, 70, 0.35), transparent 55%),
    #5d7344;
}
.terrain-v {
  background:
    linear-gradient(180deg, #8b4633 38%, #cbb79a 38% 70%, #6e5a40 70%);
}
.terrain-h {
  background:
    repeating-linear-gradient(155deg, transparent 0 5px, rgba(40, 38, 22, 0.28) 5px 6px),
    linear-gradient(165deg, #e2dcb0 0%, #8a8c5c 42%, #3f4128 100%);
}
.terrain-w {
  background:
    radial-gradient(circle at 30% 35%, #3f6d3c 0 18%, transparent 19%),
    radial-gradient(circle at 70% 60%, #2c5430 0 16%, transparent 17%),
    #1c3320;
}
.terrain-e {
  background:
    linear-gradient(180deg, transparent 40%, rgba(190, 230, 235, 0.25) 50%, transparent 60%),
    linear-gradient(90deg, #2a5562, #3d7380);
  cursor: not-allowed;
}
.terrain-x {
  background:
    repeating-linear-gradient(90deg, #5c4632 0 4px, #b3946c 4px 8px),
    #2f5f6c;
}
.terrain-d {
  background:
    linear-gradient(90deg, #6e7a42 0 28%, #c4ae86 28% 72%, #6e7a42 72%);
}
.terrain-m {
  background:
    radial-gradient(ellipse at 40% 45%, #3a2a1c 0 18%, transparent 19%),
    linear-gradient(90deg, #6b5340 0 30%, #8a6a48 30% 70%, #6b5340 70%);
}
.terrain-f {
  background:
    linear-gradient(180deg, #243028 0 10%, #5c5348 10% 22%, #cfc0a0 22% 78%, #5c5348 78% 90%, #243028 90%),
    #6e6756;
}

.unit-token {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: 16px 1fr;
  grid-template-rows: 18px 10px 6px;
  width: 50px;
  height: 44px;
  overflow: visible;
  padding: 2px 2px 1px;
  color: #e0f4ff;
  background: linear-gradient(145deg, #547c91, #294859);
  border: 2px solid #9dc5d7;
  border-radius: 1px;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-family: Arial, sans-serif;
  cursor: pointer;
  --token-x: calc(-50% + var(--stack-index) * 3px);
  --token-y: calc(-50% + var(--stack-index) * 3px);
  transform: translate(var(--token-x), var(--token-y));
  transition: filter 150ms, transform 150ms;
}

.unit-token:hover {
  z-index: 5;
  filter: brightness(1.2);
  transform: translate(var(--token-x), var(--token-y)) scale(1.14);
}

.counter-symbol {
  display: grid;
  grid-row: 1;
  grid-column: 1;
  place-items: center;
  font-size: 0.88rem;
  line-height: 1;
}

.counter-label {
  align-self: center;
  grid-row: 1;
  grid-column: 2;
  overflow: hidden;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.counter-strength {
  grid-row: 3;
  grid-column: 1 / -1;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.counter-strength i {
  display: block;
  width: var(--unit-strength);
  height: 100%;
  background: #a9d19a;
}

.unit-token.enemy {
  color: #ffe5e1;
  background: linear-gradient(145deg, #9a5149, #612b27);
  border-color: #e2a39d;
}

.unit-token.enemy:not(.recently-moved):not(.engaged) {
  animation: enemy-reveal 420ms ease-out;
}

.unit-token.hq {
  color: #231b08;
  background: linear-gradient(145deg, #f0d477, #b99331);
  border-color: #ffdf78;
  font-weight: 700;
}

.unit-token.routed {
  color: #d1cbc0;
  background: #4b4943;
  border-color: #706d65;
  text-decoration: line-through;
  filter: grayscale(1);
  transform: translate(var(--token-x), var(--token-y)) rotate(-8deg);
}

.unit-token.recently-moved {
  animation: counter-arrival 650ms cubic-bezier(.2, .9, .25, 1.25);
}

.unit-token.engaged {
  animation: counter-clash 280ms ease-in-out 2;
}

.unit-token.order-target,
.map-cell.has-contact .unit-token.order-target,
.map-cell-overlay.has-contact .unit-token.order-target {
  box-shadow: 0 0 0 2px #fff4c8, 0 0 0 4px #f1ca59, 1px 2px 4px rgba(0, 0, 0, 0.55);
}

.unit-token.order-source {
  box-shadow: 0 0 0 2px #e7f3ff, 0 0 0 4px #6d9db4, 1px 2px 4px rgba(0, 0, 0, 0.55);
}

.map-cell.has-armies,
.map-cell-overlay.has-armies {
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 2px;
}

.map-cell.has-armies .unit-token,
.map-cell-overlay.has-armies .unit-token {
  position: relative;
  top: auto;
  left: auto;
  grid-template-columns: 12px 1fr;
  grid-template-rows: 13px 8px 5px;
  width: 40px;
  height: 32px;
  padding: 1px;
  transform: none;
}

.map-cell.has-armies .unit-token:hover,
.map-cell-overlay.has-armies .unit-token:hover {
  transform: scale(1.08);
}

.map-cell.has-contact .enemy-side .unit-token,
.map-cell-overlay.has-contact .enemy-side .unit-token {
  box-shadow: 0 3px 0 #f1ca59, 1px 2px 4px rgba(0, 0, 0, 0.55);
}

.map-cell.has-contact .ally-side .unit-token,
.map-cell-overlay.has-contact .ally-side .unit-token {
  box-shadow: 0 -3px 0 #f1ca59, 1px 2px 4px rgba(0, 0, 0, 0.55);
}

.map-cell.has-contact .enemy-side .unit-token.routed,
.map-cell.has-contact .ally-side .unit-token.routed,
.map-cell-overlay.has-contact .enemy-side .unit-token.routed,
.map-cell-overlay.has-contact .ally-side .unit-token.routed {
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.55);
}

.army-side {
  display: flex;
  flex: 1 1 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 0;
  max-height: 48%;
}

.contact-front {
  flex: 0 0 auto;
  width: 88%;
  height: 3px;
  margin: 2px auto;
  background: linear-gradient(90deg, transparent, #f1ca59, #fff4c8, #f1ca59, transparent);
  box-shadow: 0 0 8px rgba(241, 202, 89, 0.7);
}

.formation-mark {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 9px;
  margin: 0 3px;
  pointer-events: none;
}

.formation-mark.line {
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 3px);
}

.formation-mark.column {
  width: 7px;
  margin: 0 auto;
  background: repeating-linear-gradient(180deg, currentColor 0 1.4px, transparent 1.4px 2.3px);
}

.formation-mark.square {
  width: 10px;
  height: 7px;
  margin: 0 auto;
  border: 1px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) center / 7px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 5px no-repeat;
}

.formation-mark.skirmish {
  background-image: radial-gradient(circle, currentColor 0.9px, transparent 1.15px);
  background-size: 5px 4px;
}

.formation-mark.battery {
  background:
    radial-gradient(circle at 18% 50%, currentColor 1.15px, transparent 1.35px),
    radial-gradient(circle at 50% 50%, currentColor 1.15px, transparent 1.35px),
    radial-gradient(circle at 82% 50%, currentColor 1.15px, transparent 1.35px);
}

.legend-formation {
  width: 18px;
  height: 10px;
  color: #d9c48a;
  background-color: transparent;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin-top: 0.65rem;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.map-legend i {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-size: cover;
}

.map-legend i.legend-unit.ally {
  background: #355668;
  border-color: var(--ally);
}

.map-legend i.legend-unit.enemy {
  background: #773d38;
  border-color: var(--enemy);
}

.map-legend i.legend-unit.hq {
  background: #e0bd55;
  border-color: #ffdf78;
}

.map-legend i.legend-supply {
  background: linear-gradient(90deg, transparent, #f1ca59);
  border-color: #e0b84a;
  clip-path: polygon(0 40%, 65% 40%, 65% 15%, 100% 50%, 65% 85%, 65% 60%, 0 60%);
}

.map-legend i.legend-courier {
  background: #f4e6c1;
  border-color: #c4a15a;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #5a4630;
}

.map-legend i.legend-courier.enemy-messenger {
  background: #6a2b28;
  border-color: #c9a36a;
}

.map-legend i.legend-march {
  background: linear-gradient(90deg, transparent, #9dbfce);
  border-color: #6d9db4;
  clip-path: polygon(0 40%, 65% 40%, 65% 15%, 100% 50%, 65% 85%, 65% 60%, 0 60%);
}

.map-legend i.legend-smoke {
  border-color: rgba(214, 208, 190, 0.35);
  background:
    radial-gradient(circle at 35% 60%, rgba(230, 226, 214, 0.9) 0 38%, transparent 58%),
    radial-gradient(circle at 70% 40%, rgba(176, 170, 154, 0.75) 0 34%, transparent 56%),
    #5a574c;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
}

th,
td {
  padding: 0.68rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(105, 99, 77, 0.55);
}

th {
  color: var(--gold);
  background: rgba(15, 17, 14, 0.4);
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tr.neutralized {
  opacity: 0.55;
}

.meter {
  width: 82px;
  height: 7px;
  margin-top: 0.3rem;
  overflow: hidden;
  background: #141612;
  border-radius: 5px;
}

.meter > span {
  display: block;
  height: 100%;
  background: var(--ally);
}

.meter.morale > span {
  background: var(--gold);
}

.meter.endurance > span {
  background: #75a86d;
}

.meter.ammunition > span {
  background: #b57a3d;
}

.meter.cohesion > span {
  background: #7a8fb0;
}

.unit-token.disorganized {
  outline: 1px dashed #d7a94a;
}

.unit-token.formation-square::after {
  display: none;
}

.combat-narrative,
.combat-phases {
  margin: 0.6rem 0;
  padding: 0.6rem 0.75rem;
  background: rgba(236, 219, 177, 0.62);
  border: 1px solid rgba(70, 53, 31, 0.28);
}

.combat-headline {
  margin: 0 0 0.45rem;
  font-weight: 700;
}

.combat-factor-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.combat-scores {
  margin: 0.5rem 0 0;
}

.combat-consequences {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.combat-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.combat-phase {
  padding: 0.35rem;
  background: rgba(255, 248, 230, 0.55);
}

.combat-phase.skipped {
  opacity: 0.55;
}

.combat-phase h5 {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.status-pill.pending {
  color: #231c0b;
  background: var(--pending);
}

.status-pill.received {
  color: #10212a;
  background: var(--ally);
}

.status-pill.executed {
  color: #13200f;
  background: var(--success);
}

.status-pill.cancelled {
  color: #271311;
  background: #a47772;
}

.status-pill.intercepted {
  color: #2a1210;
  background: var(--danger);
}

.empty-state {
  padding: 1rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

.reports-list {
  display: grid;
  gap: 0.65rem;
  max-height: min(68vh, 680px);
  overflow-y: auto;
}

.reports-summary {
  margin-bottom: 0;
  color: var(--muted);
}

.reports-dialog {
  position: relative;
  width: min(860px, calc(100% - 2rem));
  max-height: 90vh;
  padding: 1.1rem;
  color: var(--ink);
  background: linear-gradient(145deg, #303428, #22261e);
  border: 1px solid var(--gold);
  border-top: 9px solid #76502f;
  border-bottom: 9px solid #76502f;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.72);
  transform-origin: top center;
}

.reports-dialog[open] {
  animation: parchment-unroll 650ms cubic-bezier(.2, .75, .25, 1);
}

.reports-dialog::before,
.reports-dialog::after {
  position: absolute;
  right: -10px;
  left: -10px;
  z-index: 2;
  height: 8px;
  content: "";
  background: linear-gradient(#a3794b, #5d3b22 45%, #3d2616 55%, #8b6139);
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.reports-dialog::before {
  top: -9px;
}

.reports-dialog::after {
  bottom: -9px;
}

.reports-dialog::backdrop {
  background: rgba(8, 10, 8, 0.82);
  backdrop-filter: blur(2px);
  animation: backdrop-appear 300ms ease-out;
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(195, 166, 90, 0.4);
}

.dialog-close {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 1.7rem;
  line-height: 1;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin: 0.7rem 0;
}

.dialog-actions label {
  margin: 0;
}

.dialog-actions select {
  width: auto;
  min-width: 110px;
  margin: 0;
}

.report {
  position: relative;
  padding: 1.15rem 1.35rem;
  color: #302719;
  background:
    radial-gradient(circle at 15% 20%, rgba(117, 77, 31, 0.09), transparent 24%),
    radial-gradient(circle at 85% 80%, rgba(117, 77, 31, 0.08), transparent 28%),
    linear-gradient(100deg, #d4c092, #ead9ad 45%, #cfb781);
  border: 1px solid #8b7048;
  box-shadow: inset 0 0 24px rgba(91, 61, 27, 0.18), 0 4px 12px rgba(0, 0, 0, 0.32);
}

.reports-dialog[open] .report {
  animation: dispatch-arrive 420ms ease-out both;
  animation-delay: calc(var(--dispatch-index) * 55ms + 180ms);
}

.reports-dialog[open] .turn-operations {
  animation: dispatch-arrive 380ms ease-out 120ms both;
}

.turn-operations {
  padding: 1rem 1.2rem;
  color: #302719;
  background: #d8c69b;
  border: 3px double #7d633c;
  box-shadow: inset 0 0 18px rgba(91, 61, 27, 0.15);
}

.turn-operations h3 {
  margin: 0 0 0.6rem;
  color: #46351f;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.operation-groups {
  display: grid;
  gap: 0.7rem;
}

.operation-group {
  padding: 0.65rem;
  background: rgba(255, 248, 222, 0.45);
  border: 1px solid rgba(70, 53, 31, 0.3);
}

.operation-group h4 {
  margin: 0 0 0.45rem;
  padding-bottom: 0.35rem;
  color: #46351f;
  border-bottom: 2px solid #76603c;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.allied-operations {
  border-left: 5px solid var(--ally);
}

.enemy-operations {
  border-left: 5px solid var(--enemy);
}

.combat-operations {
  border-left: 5px solid var(--gold);
}

.operation-empty {
  margin: 0.3rem 0;
  color: #71634c;
  font-size: 0.78rem;
  font-style: italic;
}

.turn-operations .operation-line {
  margin: 0.3rem 0;
  padding: 0.35rem 0.45rem;
  border-left: 3px solid var(--pending);
}

.turn-operations .advantage-ally {
  border-left-color: #385b71;
  background: rgba(53, 86, 104, 0.13);
}

.turn-operations .advantage-enemy {
  border-left-color: #7e302a;
  background: rgba(119, 61, 56, 0.13);
}

.turn-operations .advantage-draw {
  border-left-color: var(--gold);
}

.operation-icon {
  display: inline-block;
  width: 1.6rem;
  color: #6d4e25;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.combat-advantage {
  margin-top: 0.55rem;
  padding: 0.45rem;
  background: rgba(255, 248, 222, 0.55);
  border: 1px solid rgba(70, 53, 31, 0.35);
}

.advantage-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.3rem;
  color: #3e3020;
  font-size: 0.72rem;
}

.advantage-labels span:last-child {
  text-align: right;
}

.advantage-track {
  position: relative;
  display: flex;
  width: 100%;
  height: 15px;
  overflow: hidden;
  background: #6b5a43;
  border: 1px solid #4c3d2a;
}

.advantage-bar {
  display: block;
  height: 100%;
  transition: width 300ms ease;
}

.advantage-bar.ally {
  background: linear-gradient(90deg, #274c65, #6d9db4);
}

.advantage-bar.enemy {
  background: linear-gradient(90deg, #b25f56, #702d29);
}

.advantage-middle {
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 50%;
  width: 2px;
  background: #f1dfad;
  box-shadow: 0 0 3px #3c2e1d;
}

.combat-breakdown {
  margin-top: 0.65rem;
  color: #34291b;
  background: rgba(255, 248, 222, 0.62);
  border: 1px solid rgba(70, 53, 31, 0.42);
}

.combat-breakdown summary {
  padding: 0.55rem 0.65rem;
  color: #5d421f;
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}

.combat-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0 0.65rem 0.65rem;
}

.combat-side {
  padding: 0.65rem;
  background: rgba(236, 219, 177, 0.78);
  border: 1px solid rgba(70, 53, 31, 0.3);
}

.combat-side h4 {
  margin: 0 0 0.45rem;
  color: #352817;
  font-size: 0.95rem;
}

.combat-side h5 {
  display: flex;
  justify-content: space-between;
  margin: 0.55rem 0 0.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.combat-side p {
  margin: 0.25rem 0;
}

.combat-side .combat-weapon {
  padding: 0.3rem 0.4rem;
  color: #4b3018;
  background: rgba(177, 122, 58, 0.14);
  border-left: 3px solid #9a6332;
  font-size: 0.76rem;
}

.combat-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.combat-side li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0;
  border-bottom: 1px dotted rgba(70, 53, 31, 0.25);
  font-size: 0.74rem;
}

.combat-side li.positive strong {
  color: #38532f;
}

.combat-side li.negative strong {
  color: #8a2f29;
}

.combat-side .final-power {
  display: flex;
  justify-content: space-between;
  margin-top: 0.65rem;
  padding-top: 0.45rem;
  border-top: 2px solid rgba(70, 53, 31, 0.45);
  font-weight: 700;
}

.combat-side.estimated,
.combat-side.obscured {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(204, 189, 153, 0.78);
  font-style: italic;
}

.combat-verdict {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 0.65rem;
  color: #f0e2bd;
  background: #4a3b27;
  font-size: 0.78rem;
}

.report.ancien {
  filter: sepia(0.3);
  opacity: 0.82;
}

.report.urgent {
  border: 2px solid #8a2f29;
}

.report.combat {
  box-shadow: inset 0 0 0 2px rgba(126, 48, 42, 0.35), 0 4px 12px rgba(0, 0, 0, 0.32);
}

.dispatch-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.35rem;
  color: #493720;
  border-bottom: 1px solid rgba(73, 55, 32, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dispatch-place {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-style: italic;
  text-align: right;
}

.report .dispatch-address {
  margin: 1rem 0 0.65rem;
  font-style: italic;
}

.report .dispatch-content {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
}

.dispatch-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1rem;
  align-items: end;
  margin-top: 1rem;
  padding: 0.55rem 0 0;
  color: #493720;
  border-top: 1px solid rgba(73, 55, 32, 0.35);
  font-size: inherit;
  text-align: left;
}

.dispatch-signature {
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
}

.dispatch-category {
  grid-column: 1;
  font-family: Arial, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-stamp {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 0.35rem 0.5rem;
  color: #38532f;
  border: 2px solid currentColor;
  border-radius: 2px;
  font-family: Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.report-stamp.incertain {
  color: #7a5c1f;
}

.report-stamp.ancien {
  color: #675f50;
}

.report-stamp.urgent {
  color: #8a2f29;
  transform: rotate(2deg);
}

footer {
  padding: 1rem;
  color: #8e8775;
  text-align: center;
  font-size: 0.8rem;
}

@keyframes parchment-unroll {
  0% {
    opacity: 0;
    transform: perspective(900px) rotateX(-18deg) scaleY(0.08);
  }
  55% {
    opacity: 1;
    transform: perspective(900px) rotateX(3deg) scaleY(1.03);
  }
  100% {
    transform: perspective(900px) rotateX(0) scaleY(1);
  }
}

@keyframes backdrop-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dispatch-arrive {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(-0.4deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes counter-arrival {
  0% {
    opacity: 0;
    transform: translate(calc(var(--token-x) - 12px), calc(var(--token-y) + 8px)) scale(0.75);
  }
  70% {
    opacity: 1;
    transform: translate(calc(var(--token-x) + 2px), calc(var(--token-y) - 1px)) scale(1.08);
  }
  100% {
    transform: translate(var(--token-x), var(--token-y)) scale(1);
  }
}

@keyframes counter-clash {
  0%, 100% { transform: translate(var(--token-x), var(--token-y)); }
  35% { transform: translate(calc(var(--token-x) - 2px), var(--token-y)) rotate(-2deg); }
  70% { transform: translate(calc(var(--token-x) + 2px), var(--token-y)) rotate(2deg); }
}

@keyframes enemy-reveal {
  from {
    opacity: 0;
    filter: blur(3px);
    transform: translate(var(--token-x), var(--token-y)) scale(0.6);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate(var(--token-x), var(--token-y)) scale(1);
  }
}

@keyframes powder-smoke {
  0% {
    opacity: 0;
    transform: translate(0, 12%) scale(0.5);
  }
  16% {
    opacity: 0.82;
  }
  58% {
    opacity: 0.42;
    transform: translate(16%, -46%) scale(1.28);
  }
  100% {
    opacity: 0;
    transform: translate(28%, -86%) scale(1.6);
  }
}

@keyframes powder-haze {
  from {
    opacity: 0.35;
    transform: translateX(-4%) scaleX(0.94);
  }
  to {
    opacity: 0.7;
    transform: translateX(5%) scaleX(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .battle-smoke i,
  .battle-smoke::before {
    opacity: 0.4 !important;
    filter: blur(6px);
    transform: none !important;
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .start-create-layout,
  .start-card-grid,
  .theater-grid {
    grid-template-columns: 1fr;
  }

  .order-bubble {
    left: 0.75rem;
    width: min(100% - 1.5rem, 420px);
  }

  .combat-factor-columns,
  .combat-phases {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .turn-panel {
    justify-content: space-between;
  }

  .header-actions {
    grid-column: auto;
  }

  .header-actions button {
    flex: 1 1 45%;
  }

  .stats-grid,
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .map-grid,
  .map-viewport {
    min-width: 0;
  }

  .game-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .dispatch-footer {
    grid-template-columns: 1fr;
  }

  .report-stamp {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .combat-sides {
    grid-template-columns: 1fr;
  }

  .recap-bubble,
  .brief-bubble,
  .mission-bubble {
    width: min(100% - 1.2rem, 560px);
    max-height: 92vh;
  }

  .mission-figure img {
    max-height: 160px;
  }

  .game-status .recap-open-btn {
    margin-left: 0;
  }

  .recap-tiles {
    grid-template-columns: 1fr 1fr;
  }
}
