:root {
  --gloom: #121614;
  --parchment: #c9b896;
  --ink: #1a1612;
  --blood: #7a2e2a;
  --gold: #c4a15a;
  --mist: #6e7a76;
  --ember: #9a6e38;
  --radius: 12px;
  --radius-sm: 8px;

  /* Path-kind accents (a colored ledger spine per kind of encounter) */
  --tavern: #2a4a37;
  --training: #4a6a8a;
  --easy: #6f7c4a;
  --hard: #8a5a2e;
  --swarm: #5c4b73;

  /* Battle Log ink-stamp washes, tuned for contrast against parchment */
  --blood-wash: rgba(122, 46, 42, 0.14);
  --line: rgba(0, 0, 0, 0.12);

  /* Battle Log side washes: a lighter tint than the ink-stamp washes above,
     so the .num/.hit/etc chips still read as distinct pills against the row. */
  --soldier-wash: rgba(196, 161, 90, 0.12);
  --enemy-wash: rgba(122, 46, 42, 0.09);

  /* Rank-tier accents: three families of three, matching the Tactical Tier
     groupings in overview.md — muted commoner tones (Levies/Vintenar/Sentinar),
     richer officer bronze/rust (Sergeant/Esquire/Captain), and jewel-toned
     nobility (Knight/Duke/Earl). All dark enough that parchment text stays
     legible on every one — same pairing already used for --tavern/--training
     text against the parchment ledger background. */
  --tier-1: #4a4640; /* Rank 1 · Levies   */
  --tier-2: #574a34; /* Rank 2 · Vintenar */
  --tier-3: #5c4b22; /* Rank 3 · Sentinar */
  --tier-4: #6b4423; /* Rank 4 · Sergeant */
  --tier-5: #7a3f2a; /* Rank 5 · Esquire  */
  --tier-6: #6e2f4a; /* Rank 6 · Captain  */
  --tier-7: #5a2a63; /* Rank 7 · Knight   */
  --tier-8: #4a2a5c; /* Rank 8 · Duke     */
  --tier-9: #8f7132; /* Rank 9 · Earl     */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Oldenburg, Georgia, "Times New Roman", serif;
  color: var(--parchment);
  background: var(--gloom);
}

h1, h2, h3, button, .menu {
  font-family: "Cinzel Decorative", Georgia, serif;
  letter-spacing: 0.02em;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

button {
  font-size: 15px;
  cursor: pointer;
  border: 0;
  border-radius: var(--radius-sm);
  transition: filter 0.15s ease, transform 0.08s ease, background-color 0.15s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

button:not(:disabled):hover {
  filter: brightness(1.08);
}

button:not(:disabled):active {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
  }
}

.topbar {
  padding: 24px min(5vw, 32px);
  border-bottom: 1px solid var(--mist);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.brand h1 {
  margin: 0;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.game-version {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

/* Shared parchment page — every screen is a page in the same campaign ledger */
.ledger-card {
  margin: 48px auto;
  padding: 28px 24px;
  background: var(--parchment);
  color: var(--ink);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.name-screen { max-width: 28rem; }
.run-screen { max-width: 44rem; }

.run-seed {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--mist);
}

.name-screen label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

input[type="text"],
select {
  font: inherit;
  font-size: 15px;
  padding: 9px 11px;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  background: var(--gloom);
  color: var(--parchment);
  transition: border-color 0.15s ease;
}

input[type="text"]:hover,
select:hover {
  border-color: var(--ember);
}

.name-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

#clear-name {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--mist);
  padding: 8px 14px;
}

#clear-name:not(:disabled):hover {
  background: rgba(0, 0, 0, 0.06);
}

#begin-campaign,
#start-battle,
#new-game {
  padding: 8px 18px;
  background: var(--gold);
  color: var(--ink);
}

#new-game {
  margin-top: 18px;
}

#retreat {
  padding: 8px 18px;
  background: var(--blood);
  color: var(--parchment);
}

.retreat-note {
  margin: 10px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--blood);
}

.retreat-note[hidden] {
  display: none;
}

.run-screen h2 {
  margin: 0 0 16px;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 400;
  color: var(--ink);
}

/* Field labels: a clerk's quiet annotation, not a shouted eyebrow tag */
.field-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  color: var(--mist);
}

.hud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.hud-stat {
  margin: 0;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.hud-stat span {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.path-label {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.path-map {
  grid-column: 1 / -1;
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(196, 161, 90, 0.16), transparent 42%),
    radial-gradient(34% 26% at 18% 28%, rgba(42, 74, 55, 0.32), transparent 72%),
    radial-gradient(28% 22% at 80% 20%, rgba(110, 122, 118, 0.22), transparent 72%),
    radial-gradient(24% 20% at 68% 60%, rgba(42, 74, 55, 0.2), transparent 72%),
    linear-gradient(180deg, #152018 0%, var(--gloom) 100%);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35), inset 0 0 0 6px rgba(18, 22, 20, 0.25);
}

.path-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.path-edge {
  fill: none;
  stroke: var(--mist);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 0.4 3;
  opacity: 0.85;
}

.path-here {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  padding: 8px 16px 10px;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(196, 161, 90, 0.45);
}

.path-here::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
}

.path-here::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 1px solid rgba(196, 161, 90, 0.5);
  animation: path-here-pulse 2.4s ease-out infinite;
}

@keyframes path-here-pulse {
  0% { transform: scale(0.82); opacity: 0.9; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .path-here::after { animation: none; }
}

.path-fog {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 20px;
  border-radius: 60% 55% 60% 50% / 60% 65% 50% 60%;
  background: radial-gradient(circle at 35% 32%, rgba(170, 180, 175, 0.34), rgba(110, 122, 118, 0.14) 72%);
  box-shadow: 0 0 12px rgba(110, 122, 118, 0.3);
}

.path-node {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 9.5rem;
  padding: 13px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  cursor: pointer;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(26, 22, 18, 0.06), transparent 60%),
    radial-gradient(100% 120% at 88% 100%, rgba(26, 22, 18, 0.05), transparent 55%),
    var(--parchment);
  border: 1px solid var(--mist);
  border-left: 4px solid var(--mist);
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.15s ease, filter 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.path-node::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--mist);
  box-shadow: 0 0 0 2px var(--parchment);
}

.path-node[data-kind="easy"]::before { background: var(--easy); }
.path-node[data-kind="hard"]::before { background: var(--hard); }
.path-node[data-kind="swarm"]::before { background: var(--swarm); }
.path-node[data-kind="boss"]::before { background: var(--blood); }

.path-node::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 3;
  width: max-content;
  max-width: 12rem;
  padding: 7px 10px;
  font-family: Oldenburg, Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: normal;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--parchment);
  background: var(--gloom);
  border: 1px solid var(--ember);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.path-node[data-kind="easy"]::after { content: "A ragged patrol, poorly disciplined. Favorable odds."; }
.path-node[data-kind="hard"]::after { content: "A disciplined line awaits. Expect a costly fight."; }
.path-node[data-kind="swarm"]::after { content: "Countless foes press in. Numbers, not skill."; }
.path-node[data-kind="boss"]::after { content: "A named commander holds this ground."; }

.path-node:not(:disabled):hover,
.path-node:not(:disabled):focus-visible {
  z-index: 5;
  filter: brightness(1.08);
  border-color: var(--ember);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%) translateY(-3px);
}

.path-node:not(:disabled):hover::after,
.path-node:not(:disabled):focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.path-kind {
  display: block;
}

.path-field {
  display: block;
  font-family: Oldenburg, Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0.82;
}

.path-ahead {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 7.2rem;
  padding: 6px 6px;
  text-align: center;
  pointer-events: none;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink);
  background: color-mix(in srgb, var(--parchment) 78%, var(--mist));
  border: 1px dashed var(--mist);
  border-left: 3px solid var(--mist);
  border-radius: var(--radius-sm);
  opacity: 0.92;
}

.path-ahead[data-kind="easy"] { border-left-color: var(--easy); }
.path-ahead[data-kind="hard"] { border-left-color: var(--hard); }
.path-ahead[data-kind="swarm"] { border-left-color: var(--swarm); }
.path-ahead[data-kind="boss"] { border-left-color: var(--blood); }

.path-node[data-kind="easy"] { border-left-color: var(--easy); }
.path-node[data-kind="hard"] { border-left-color: var(--hard); }
.path-node[data-kind="swarm"] { border-left-color: var(--swarm); }
.path-node[data-kind="boss"] { border-left-color: var(--blood); }

.path-node[data-selected] {
  z-index: 4;
  outline: 2px solid var(--ember);
  outline-offset: 2px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.path-node[data-selected] .path-kind {
  color: var(--blood);
  font-size: 15px;
  letter-spacing: 0.04em;
}

#campaign-path[hidden] {
  display: none;
}

#open-tavern,
#open-training {
  justify-self: stretch;
  margin-top: 4px;
}

#open-tavern {
  color: var(--parchment);
  background: var(--tavern);
}

#open-training {
  color: var(--parchment);
  background: var(--training);
}

#open-training:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tavern {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 18px;
  color: var(--ink);
  background: var(--parchment);
  border: 1px solid var(--ember);
  border-left: 4px solid var(--tavern);
  border-radius: var(--radius);
}

.tavern[hidden] {
  display: none;
}

.tavern h3 {
  margin: 0;
  color: var(--tavern);
}

.tavern p {
  margin: 0;
}

.tavern-rest {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 6px;
}

.tavern-note {
  font-size: 13px;
  font-style: italic;
  color: var(--mist);
}

#rest-tavern {
  align-self: start;
  color: var(--parchment);
  background: var(--tavern);
}

#leave-tavern {
  align-self: start;
  color: var(--ink);
  background: var(--gold);
}

.tavern-offers-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tavern-offers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tavern-offer {
  text-align: left;
  color: var(--ink);
  background: var(--parchment);
  border: 1px solid var(--ember);
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.tavern-offer:not(:disabled):hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.training {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 18px;
  color: var(--ink);
  background: var(--parchment);
  border: 1px solid var(--ember);
  border-left: 4px solid var(--training);
  border-radius: var(--radius);
}

.training[hidden] {
  display: none;
}

.training h3 {
  margin: 0;
  color: var(--training);
}

.training-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.training-promotions,
.training-converts,
.training-tactics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.training-promotions button,
.training-converts button,
.training-tactics button,
#advance-command {
  text-align: left;
  color: var(--ink);
  background: var(--parchment);
  border: 1px solid var(--ember);
  border-left: 4px solid var(--training);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.training-promotions button:not(:disabled):hover,
.training-converts button:not(:disabled):hover,
.training-tactics button:not(:disabled):hover,
#advance-command:not(:disabled):hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

#leave-training {
  align-self: start;
  color: var(--ink);
  background: var(--gold);
}

.briefing {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.briefing[hidden] {
  display: none;
}

.game-over {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.game-over[hidden] {
  display: none;
}

.game-over h3 {
  margin: 0 0 16px;
  font-size: clamp(18px, 2.8vw, 22px);
  font-weight: 400;
  color: var(--blood);
}

#game-over-summary {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.over-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 8px;
}

.over-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.over-stat-value {
  font-size: 20px;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-variant-numeric: tabular-nums;
}

.over-stat-label {
  font-size: 12px;
  color: var(--mist);
}

.over-stat-deaths .over-stat-value { color: var(--blood); }
.over-stat-wins .over-stat-value { color: var(--tavern); }

.over-legend {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.over-legend-label {
  margin: 0;
  font-size: 12px;
  font-style: italic;
  color: var(--mist);
}

.over-legend-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.over-legend-rank {
  font-weight: 400;
  font-size: 13px;
  color: var(--mist);
}

.over-legend-xp {
  margin: 0;
  font-size: 12px;
  color: var(--mist);
  align-self: flex-end;
}

.briefing-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.briefing h3 {
  margin: 0;
  font-size: clamp(18px, 2.8vw, 22px);
  font-weight: 400;
  color: var(--ink);
}

#briefing-summary {
  margin: 0;
  padding: 3px 10px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.matchup-hp {
  display: block;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.matchup-hp > span {
  display: block;
  height: 100%;
  background: var(--blood);
}

.standing {
  margin: 0;
  font-size: 12px;
  font-style: italic;
  color: var(--mist);
}

.briefing-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.battle-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

#play-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
}

#play-toggle svg {
  fill: currentColor;
}

.speed-cycle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--mist);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--mist);
}

.speed-cycle svg {
  fill: currentColor;
}

.speed-cycle:hover {
  color: var(--ink);
}

.speed-cycle path[data-filled] {
  fill: var(--ember);
}

#skip-battle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--mist);
  color: var(--mist);
}

#skip-battle svg {
  fill: currentColor;
}

#skip-battle:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.briefing label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 160px;
}

.battle-log {
  list-style: none;
  margin: 0;
  padding: 4px 14px;
  max-height: 18rem;
  overflow-y: auto;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.03);
  font-size: 15px;
  line-height: 1.7;
}

.battle-log:empty::before {
  content: "No strikes recorded yet.";
  display: block;
  padding: 12px 2px;
  color: var(--mist);
  font-style: italic;
}

.battle-log li {
  margin: 0 0 6px;
  padding: 7px 12px;
  max-width: 80%;
  border-radius: var(--radius-sm);
  animation: strike-land 0.2s ease-out;
}

@keyframes strike-land {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .battle-log li { animation: none; }
}

.battle-log li:last-child {
  margin-bottom: 0;
}

.battle-log li[data-side="soldier"] {
  margin-right: auto;
  text-align: left;
  background: var(--soldier-wash);
  border-left: 3px solid var(--gold);
}

.battle-log li[data-side="enemy"] {
  margin-left: auto;
  text-align: right;
  background: var(--enemy-wash);
  border-right: 3px solid var(--blood);
}

.battle-log .num,
.battle-log .miss,
.battle-log .death,
.battle-log .kill {
  color: var(--blood);
  background: var(--blood-wash);
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.battle-log .hit,
.battle-log .crit,
.battle-log .resolute {
  color: var(--gold);
  background: var(--ink);
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.battle-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.summary-title {
  margin: 0;
  font-size: clamp(18px, 2.8vw, 22px);
  font-weight: 400;
  color: var(--ink);
}

.summary-header[data-outcome="win"] .summary-title {
  color: var(--tavern);
}

.summary-header[data-outcome="wipe"] .summary-title {
  color: var(--blood);
}

.summary-payout {
  margin: 0;
  padding: 3px 10px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: rgba(196, 161, 90, 0.18);
  border: 1px solid var(--gold);
  border-radius: 999px;
}

.summary-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 8px;
}

.summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.summary-stat-value {
  font-size: 18px;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-variant-numeric: tabular-nums;
}

.summary-stat-label {
  font-size: 11px;
  color: var(--mist);
}

.summary-roster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-soldier {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--parchment);
  color: var(--ink);
}

.summary-soldier.dead {
  color: var(--mist);
  background: transparent;
  border-style: dashed;
}

.summary-soldier-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.summary-soldier-rank {
  font-weight: 400;
  font-size: 12px;
  color: var(--mist);
}

.summary-soldier-dead {
  font-style: italic;
  color: var(--blood);
}

.summary-soldier-stats {
  margin: 0;
  font-size: 12px;
  color: var(--mist);
}

.summary-xp {
  color: var(--ember);
  font-weight: 600;
}

.summary-acquired {
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: rgba(196, 161, 90, 0.08);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-continue {
  align-self: flex-start;
}

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

  .hud {
    flex-direction: column;
  }
}

.topbar-nav { display: flex; align-items: center; gap: 10px; }

#open-roster {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 12px;
  color: var(--parchment);
  background: rgba(196, 161, 90, 0.1);
  border: 1px solid var(--gold);
}
#open-roster[hidden] { display: none; }
#open-roster svg { flex: none; }
#open-roster .roster-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 12px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
}

.roster-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 5, 0.72);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px 40px;
  overflow-y: auto;
  z-index: 20;
}
.roster-backdrop[hidden] { display: none; }

.roster-modal {
  width: min(840px, 100%);
  background: var(--parchment);
  color: var(--ink);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.roster-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
}
.roster-head h2 { margin: 0 0 8px; font-size: clamp(19px, 3vw, 23px); font-weight: 400; color: var(--ink); }
.roster-head-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.roster-head-meta .hud-stat { font-size: 13px; padding: 6px 11px; }

#close-roster {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.06);
}
#close-roster:hover { background: rgba(0, 0, 0, 0.12); }

.roster-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 22px;
  font-size: 12px;
  color: var(--mist);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.03);
}
.roster-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.legend-swatch.hp { background: var(--blood); }
.legend-swatch.cap { background: repeating-linear-gradient(45deg, var(--mist) 0 3px, transparent 3px 6px); opacity: 0.7; }
.legend-swatch.xp { background: var(--gold); }

.roster-list { max-height: min(64vh, 660px); overflow-y: auto; padding: 16px 18px 20px; }

.tier-block { display: grid; grid-template-columns: 26px 1fr; column-gap: 14px; }

.tier-track { position: relative; }
.tier-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  bottom: 0;
  border-left: 2px dashed var(--tier-color);
  opacity: 0.7;
  transform: translateX(-50%);
}
.tier-block:last-child .tier-track::before { display: none; }

.tier-node {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--tier-color);
  border: 2px solid var(--parchment);
  box-shadow: 0 0 0 1px var(--tier-color);
}

.tier-content { padding-bottom: 22px; }
.tier-block:last-child .tier-content { padding-bottom: 2px; }

.tier-label { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.tier-label .rank-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: var(--tier-color);
  color: var(--parchment);
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 10.5px;
}
.tier-label .rank-name {
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tier-color);
}
.tier-label .rank-count { font-size: 11px; color: var(--mist); }

.tier-cards { display: flex; flex-wrap: wrap; gap: 14px; }

.soldier-card {
  flex: 1 1 250px;
  max-width: 360px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.18);
}
.soldier-card.wounded { outline: 2px solid var(--blood); outline-offset: -2px; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: var(--ink);
}
.card-header .soldier-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--parchment);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trait-good { color: var(--gold); }
.trait-bad { color: var(--blood); }
.trait-mixed { color: var(--ember); }

.tag {
  flex: none;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag.promotable { color: var(--ink); background: var(--gold); }
.tag.wounded { color: var(--parchment); background: var(--blood); }
.tag.capped { color: var(--parchment); background: rgba(255, 255, 255, 0.18); }

.card-body { display: flex; gap: 12px; padding: 12px; background: var(--tier-color); }

.card-avatar-wrap { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.card-avatar svg { color: var(--ink); }
.class-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--parchment); opacity: 0.75; }

.card-stats { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }

.bar-row { display: flex; align-items: center; gap: 8px; }
.bar-label { flex: none; width: 26px; font-size: 10px; color: var(--parchment); opacity: 0.75; font-family: "Cinzel Decorative", Georgia, serif; }
.bar-track { position: relative; flex: 1 1 auto; height: 7px; background: rgba(255, 255, 255, 0.22); border-radius: 999px; overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; height: 100%; border-radius: 999px 0 0 999px; }
.bar-fill.hp { background: var(--parchment); }
.bar-fill.xp { background: var(--gold); }
.bar-cap {
  position: absolute;
  inset: 0 0 0 auto;
  height: 100%;
  background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.55) 0 3px, transparent 3px 6px);
  opacity: 0.8;
}
.bar-value { flex: none; width: 56px; text-align: right; font-size: 10.5px; font-variant-numeric: tabular-nums; color: var(--parchment); opacity: 0.85; }

.rank-capped-note { display: flex; align-items: center; gap: 6px; font-size: 11px; font-style: italic; color: var(--parchment); opacity: 0.8; }

@media (max-width: 620px) {
  .tier-block { grid-template-columns: 18px 1fr; column-gap: 8px; }
  .soldier-card { flex-basis: 100%; }
  .bar-value { width: 46px; }
}

/* ── Tabletop: the 3D table fills the window; rails sit over it ── */
html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.table-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  touch-action: none;
  background: radial-gradient(ellipse at 50% 60%, #1b211e 0%, #070908 70%);
}

.table-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.table-labels {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.table-veil {
  position: absolute;
  inset: 0;
  background: #050605;
  opacity: 0;
  pointer-events: none;
}

.table-tag {
  position: absolute;
  left: 0;
  top: 0;
  padding: 3px 9px 4px;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 12px;
  white-space: nowrap;
  color: var(--ink);
  background: var(--parchment);
  border: 1px solid var(--ember);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.table-tag[hidden] { display: none; }

.rail {
  position: fixed;
  top: 12px;
  bottom: 12px;
  z-index: 5;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--mist) transparent;
}

.rail-left {
  left: 12px;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px;
  background: rgba(10, 13, 12, 0.72);
  border: 1px solid rgba(110, 122, 118, 0.35);
  border-radius: var(--radius);
  backdrop-filter: blur(3px);
}

.rail-left .topbar {
  padding: 0;
  border: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.rail-left .brand h1 { font-size: 20px; }

.rail-left #company-heading {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--parchment);
}

.rail-left .hud {
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.rail-left .hud-stat {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--parchment);
  background: rgba(201, 184, 150, 0.06);
  border-color: rgba(201, 184, 150, 0.16);
}

.rail-left .run-gold span { color: var(--gold); }

.rail-left .topbar-nav { margin-top: auto; }
.rail-left #open-roster { width: 100%; justify-content: center; }

body[data-screen="name"] #run-hud { display: none; }

.rail-menu,
.panel-toggle { display: none; }

.rail-right {
  right: 12px;
  width: min(390px, 34vw);
  pointer-events: none;
}

.rail-right > * { pointer-events: auto; }

.rail-right .ledger-card {
  margin: 0;
  max-width: none;
  padding: 18px 16px;
  font-size: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.rail-right .name-screen { margin-top: 30vh; }

.rail-right .path-label {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.rail-right .path { gap: 10px; }

.rail-right .path-map { min-height: 330px; }

.rail-right .path-node {
  width: 6.2rem;
  padding: 7px 4px 6px;
  font-size: 10px;
}

.rail-right .path-ahead { transform: translate(-50%, -50%) scale(0.82); }

.rail-right .battle-log { max-height: 34vh; font-size: 13px; line-height: 1.55; }
.rail-right .battle-log li { max-width: 100%; }

.rail-right button { font-size: 13px; }

.roster-backdrop {
  justify-content: flex-end;
  align-items: stretch;
  padding: 12px;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
}

.roster-modal {
  width: min(460px, 42vw);
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

.roster-list { max-height: none; flex: 1; }

.soldier-card[data-focus] {
  outline: 3px solid var(--ember);
  outline-offset: 1px;
  box-shadow: 0 0 0 6px rgba(154, 110, 56, 0.25), 0 3px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 760px), (max-height: 480px) {
  .rail-left {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-radius: 0;
    border-width: 1px 0 0;
    overflow: visible;
  }

  .rail-left .topbar {
    order: 3;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .rail-left .brand { display: none; }
  .rail-left[data-open] .brand { display: flex; width: 100%; }
  .rail-left[data-open] .topbar { width: 100%; justify-content: space-between; order: 0; }

  .rail-menu,
  .panel-toggle {
    display: inline-flex;
    padding: 7px 12px;
    font-size: 12px;
    color: var(--parchment);
    background: rgba(201, 184, 150, 0.08);
    border: 1px solid rgba(201, 184, 150, 0.3);
  }

  #run-hud { order: 1; flex: 1; min-width: 0; }
  .rail-left #company-heading { display: none; }
  .rail-left[data-open] #company-heading { display: block; margin: 0 0 6px; }
  .rail-left .hud { flex-direction: row; gap: 6px; }
  .rail-left .hud-stat { gap: 6px; padding: 5px 8px; font-size: 12px; white-space: nowrap; }
  .rail-left .topbar-nav { order: 2; margin: 0; }
  .rail-left #open-roster { width: auto; padding: 7px 10px; font-size: 12px; }

  .rail-right {
    top: auto;
    left: 0;
    right: 0;
    bottom: var(--bar-height, 54px);
    width: auto;
    max-height: 50vh;
    padding: 0 8px;
  }

  .rail-right .panel-toggle {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    margin: 0 auto 4px;
    background: rgba(10, 13, 12, 0.85);
  }

  .rail-right[data-collapsed] > :not(.panel-toggle) { display: none; }
  .rail-right .name-screen { margin-top: 0; }
  .rail-right .ledger-card { padding: 12px; border-radius: var(--radius) var(--radius) 0 0; }
  .rail-right .path-map { min-height: 220px; order: 2; flex-basis: 100%; }
  .rail-right .path { display: flex; flex-wrap: wrap; }
  .rail-right .path > button { flex: 1; order: 1; }
  .rail-right .path-discovery { font-size: 12px; max-height: 5.5em; overflow-y: auto; }
  .rail-right .battle-log { max-height: 22vh; }

  .roster-backdrop { padding: 0 0 var(--bar-height, 54px); align-items: flex-end; }

  .roster-modal {
    width: 100%;
    max-height: 58vh;
    border-radius: var(--radius) var(--radius) 0 0;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .rail-right {
    top: 8px;
    left: auto;
    bottom: var(--bar-height, 54px);
    width: min(360px, 46vw);
    max-height: none;
  }

  .roster-modal { max-height: calc(100vh - var(--bar-height, 54px) - 8px); width: min(420px, 50vw); margin-left: auto; }
}

/* Battle: the scene is the subject; the right rail is the Battle Log ledger with controls under it */
.rail-right #battle-briefing:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

#battle-briefing > .briefing-header { order: 0; }
#battle-briefing > .standing { order: 0; }
#battle-briefing > .field-label { order: 1; margin: 0; }
#battle-briefing > .battle-log { order: 2; }
#battle-briefing > .briefing-controls { order: 3; }
#battle-briefing > .retreat-note { order: 4; }
#battle-briefing > .battle-summary { order: 1; }

.rail-right #battle-briefing .battle-log {
  max-height: none;
  height: clamp(10rem, 44vh, 30rem);
  background: rgba(255, 255, 255, 0.08);
}

.table-float {
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #e0645a;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9), 0 1px 0 #000;
  pointer-events: none;
}

.table-float-crit { font-size: 24px; color: #ff8a5a; }

@media (max-width: 760px), (max-height: 480px) {
  .rail-right #battle-briefing .battle-log { height: clamp(6rem, 20vh, 12rem); }
}

.tavern-offer[data-picked] {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(154, 110, 56, 0.22);
}

/* Sound: Master, Music, Effects, and Mute in the left rail (and the phone Menu) */
.sound-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(201, 184, 150, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(201, 184, 150, 0.04);
}

.sound-mute {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--parchment);
  background: rgba(201, 184, 150, 0.08);
  border: 1px solid rgba(201, 184, 150, 0.3);
}

.sound-mute[aria-pressed="true"] {
  color: var(--ink);
  background: var(--ember);
}

.sound-slider {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--mist);
}

.sound-slider input {
  width: 100%;
  accent-color: var(--ember);
}

@media (max-width: 760px), (max-height: 480px) {
  .rail-left .sound-slot { display: none; order: 4; width: 100%; }
  .rail-left[data-open] .sound-slot { display: block; }
}

/* Persistent lattice map: trail behind, choices, the road ahead, fog beyond */
.path-edge.walked {
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-dasharray: none;
  opacity: 1;
}

.path-ahead.path-far,
.path-ahead.path-past,
.path-ahead.path-trail {
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0.5;
}

.path-ahead.path-trail {
  opacity: 0.8;
  border-color: var(--gold);
}

.path-discovery {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--ember);
  border-radius: var(--radius-sm);
  background: rgba(26, 22, 18, 0.06);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

.path-discovery p { margin: 0 0 6px; }
.path-discovery p:last-child { margin: 0; }

.path-discovery-title {
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 13px;
  color: var(--blood);
}

.path-dot {
  position: absolute;
  z-index: 1;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--mist);
  background: rgba(110, 122, 118, 0.35);
}

.path-dot.path-trail { background: var(--gold); border-color: var(--gold); }
.path-dot[data-kind="hard"] { border-color: var(--hard); }
.path-dot[data-kind="swarm"] { border-color: var(--swarm); }
.path-dot[data-kind="boss"] { border-color: var(--blood); }

.card-bio {
  margin: 0;
  padding: 7px 12px 9px;
  font-size: 12px;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.85;
  border-top: 1px solid var(--line);
}

.summary-epitaph {
  margin: 4px 0 0;
  font-size: 12px;
  font-style: italic;
  color: var(--blood);
}

.table-tag {
  max-width: 280px;
  white-space: normal;
  text-align: center;
}

.battle-log .parried,
.battle-log .riposte {
  color: #2f4f5f;
  background: rgba(47, 79, 95, 0.12);
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.training-drills {
  display: grid;
  gap: 6px;
}

.battle-log .heals,
.battle-log .healed {
  color: #2e6048;
  background: rgba(46, 96, 72, 0.14);
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.table-float-heal { color: #7ee0a8; }

.battle-log .deserts {
  color: var(--mist);
  background: rgba(110, 122, 118, 0.16);
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  font-style: italic;
}

.summary-notes {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  font-style: italic;
  color: var(--blood);
}

/* Keyword tooltips: traits and Battlefields explain themselves on hover, focus, or tap */
[data-tip] {
  cursor: help;
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-radius: 3px;
  transition: background-color 0.12s ease, filter 0.12s ease;
}

[data-tip]:hover,
[data-tip]:focus-visible {
  filter: brightness(1.25);
  background-color: rgba(154, 110, 56, 0.18);
  outline: none;
}

.nc-tip {
  position: fixed;
  z-index: 60;
  max-width: 280px;
  padding: 8px 11px;
  font-family: Oldenburg, Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--parchment);
  background: rgba(14, 17, 16, 0.96);
  border: 1px solid var(--ember);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.nc-tip[hidden] { display: none; }

.field-note {
  margin: 2px 0 0;
  font-size: 12px;
  font-style: italic;
  color: var(--mist);
}

.path-sky {
  font-size: 9px;
  font-style: italic;
  color: var(--mist);
}

.rail-left .run-season { color: var(--mist); font-style: italic; }

/* Heraldry: company colour and sigil on the name screen */
.heraldry {
  display: grid;
  gap: 8px;
  margin: 14px 0 6px;
}

.heraldry-colours {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
}

.heraldry-swatch {
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-radius: 50%;
}

.heraldry-swatch[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ember);
}

.heraldry-sigils {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.heraldry-sigil {
  padding: 4px 9px;
  font-size: 11px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid var(--line);
}

.heraldry-sigil[aria-pressed="true"] {
  color: var(--parchment);
  background: var(--ember);
}
