@font-face {
  font-family: "Barlow Condensed";
  src: url(barlow-condensed-800.woff2) format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url(instrument-serif.woff2) format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url(instrument-serif-italic.woff2) format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url(inter.woff2) format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #101c17;
  --foreground: #f2e9d6;
  --muted: #b6c0ae;
  --faint: #95a690;
  --gold: #e4be79;
  --gold-bright: #ffdb99;
  --ink: #1a2419;
  --line: #3a4a3c;
  --panel: #17271f;
  --serif: "Instrument Serif", Georgia, serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 280px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--foreground);
  background: radial-gradient(ellipse 60rem 36rem at 75% 13rem, #203a2b 0%, var(--background) 82%);
  font: 400 .875rem/1.55 var(--sans);
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
h1, h2, p, dl, dd, figure { margin: 0; }
svg { vertical-align: middle; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.125em;
  height: 1.125em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}
::selection { color: var(--ink); background: var(--gold-bright); }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10;
  padding: .5rem .9rem;
  transform: translateY(-180%);
  color: var(--ink);
  background: var(--gold);
}
.skip-link:focus { transform: none; }

.site-width { width: min(100% - clamp(2rem, 8vw, 8rem), 75rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.navigation { display: flex; align-items: center; gap: 1.8rem; min-height: 4.625rem; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  font: 800 1.65rem/.9 var(--display);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.wordmark .mark { color: var(--gold); font-size: 1.25rem; }
.navigation nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.125rem);
  margin-left: auto;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}
.navigation nav a, .navigation nav button, .site-footer button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: .25rem 0;
  gap: .38rem;
  border: 0;
  color: inherit;
  background: transparent;
}
.navigation nav a:hover, .navigation nav button:hover,
.site-footer button:hover, .text-button:hover { color: var(--gold-bright); }
.navigation .account-button {
  flex: none;
  max-width: 13rem;
  min-height: 2.375rem;
  padding: .38rem .9rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
}

.button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .65rem .96rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--foreground);
  background: transparent;
  font-weight: 650;
  line-height: 1.25;
  transition: background-color 140ms, border-color 140ms, color 140ms;
}
.button:hover:not(:disabled) { border-color: var(--gold); }
.button:disabled { color: var(--faint); }
.button.primary { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.button.primary:hover:not(:disabled) {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}
.button.primary:disabled { opacity: .65; }
.button.ghost { background: #19291f; }
.button.ghost:hover { background: #233829; }
.icon-button { width: 2.75rem; padding: 0; font-size: 1rem; }
.button .icon:last-child { margin-inline: .05rem; }

.network-status, .sandbox-banner {
  padding: .65rem .85rem;
  margin-block: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--gold-bright);
  background: #1b2a22;
}
.sandbox-banner { color: var(--muted); width: fit-content; }

.field-layout {
  display: grid;
  grid-template-areas: "intro board" "tools board";
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  column-gap: clamp(2.25rem, 5.1vw, 5rem);
  row-gap: clamp(1.5rem, 3.2vw, 2.75rem);
  align-items: center;
  padding-block: clamp(2.6rem, 5vw, 4.55rem) clamp(2rem, 4vw, 3.5rem);
}
.campaign { grid-area: intro; align-self: end; min-width: 0; }
.campaign-tools { grid-area: tools; align-self: start; min-width: 0; }
.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: .52rem;
  padding: .28rem .62rem;
  border: 1px solid #5f6149;
  border-radius: 99px;
  background: #263225;
  color: #ebcd96;
  font-size: .73rem;
  line-height: 1.55;
  font-weight: 650;
}
.phase-badge > span:first-child {
  width: .43rem;
  height: .43rem;
  border-radius: 100%;
  background: currentColor;
  box-shadow: 0 0 9px #e4be7970;
}
.phase-badge[data-phase="active"] {
  color: #d0e7b7;
  border-color: #567153;
  background: #27432c;
}
.phase-badge[data-phase="active"] > span:first-child { box-shadow: 0 0 9px #c7dfad90; }
.phase-badge[data-phase="paused"], .phase-badge[data-phase="finished"] {
  color: var(--muted);
  border-color: var(--line);
  background: var(--panel);
}
#campaign-title {
  margin: .62rem 0 .2rem;
  font: 800 clamp(4.65rem, 8.55vw, 8.15rem)/.87 var(--display);
  letter-spacing: -.012em;
  text-transform: uppercase;
}
.tagline {
  max-width: 100%;
  color: var(--gold);
  font: italic 400 clamp(2.4rem, 4.15vw, 4rem)/1.07 var(--serif);
  overflow-wrap: anywhere;
}
.campaign-description {
  max-width: 23rem;
  margin-top: 1.22rem;
  color: var(--muted);
  font-size: clamp(.94rem, 1.25vw, 1.05rem);
  line-height: 1.6;
}
.campaign-buttons { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.55rem; }
.campaign-buttons .button { min-height: 2.95rem; }
.campaign-buttons .primary { padding-inline: .97rem; gap: .85rem; }
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 29rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line);
}
.facts > div:not(:first-child) { border-left: 1px solid var(--line); padding-left: 1.05rem; }
.facts dt { display: flex; align-items: center; gap: .34rem; color: var(--muted); font-size: .75rem; }
.facts dt .icon { color: var(--gold); }
.facts dd {
  margin-top: .28rem;
  color: var(--foreground);
  font: 800 clamp(1.55rem, 2.5vw, 2.2rem)/1 var(--display);
}
.campaign-clock {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: .74rem;
}
.campaign-clock .icon { color: var(--gold); font-size: 1.15rem; }
.campaign-clock span, .campaign-clock time { display: block; }
.campaign-clock time {
  width: max-content;
  max-width: 100%;
  color: var(--foreground);
  font-size: .85rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.battlefield { grid-area: board; min-width: 0; }
.battlefield-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .7rem;
}
.battlefield h2, .roster h2, .orders h2, .public-activity h2 {
  font: 400 clamp(1.8rem, 3vw, 2.2rem)/1.03 var(--serif);
}
.battlefield-header p, .roster-header p {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .76rem;
}
.board-frame {
  position: relative;
  padding: .34rem;
  border: 1px solid #6a7053;
  border-radius: 3px;
  background: #17251b;
  box-shadow: 0 13px 34px #060e0a63;
}
.board-frame::before, .board-frame::after {
  position: absolute;
  z-index: 4;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  content: "";
}
.board-frame::before {
  background:
    linear-gradient(var(--gold), var(--gold)) top left/10px 1px,
    linear-gradient(var(--gold), var(--gold)) top left/1px 10px,
    linear-gradient(var(--gold), var(--gold)) bottom right/10px 1px,
    linear-gradient(var(--gold), var(--gold)) bottom right/1px 10px;
  background-repeat: no-repeat;
}
.board-frame::after {
  background:
    linear-gradient(var(--gold), var(--gold)) bottom left/10px 1px,
    linear-gradient(var(--gold), var(--gold)) bottom left/1px 10px,
    linear-gradient(var(--gold), var(--gold)) top right/10px 1px,
    linear-gradient(var(--gold), var(--gold)) top right/1px 10px;
  background-repeat: no-repeat;
}
.board-scroll { max-width: 100%; max-height: min(85vh, 48rem); overflow: auto; scrollbar-color: #7a896b #19291f; }
.board-sheet {
  --axis: clamp(1.1rem, 2.2vw, 1.75rem);
  display: grid;
  grid-template-areas: ". columns" "rows cells";
  grid-template-columns: var(--axis) minmax(0, 1fr);
  grid-template-rows: var(--axis) minmax(0, 1fr);
  padding: 0 .28rem .28rem 0;
  background:
    radial-gradient(ellipse at 65% 37%, #44674b91, transparent 70%),
    linear-gradient(140deg, #2d5239, #284b34 55%, #203d2a);
  isolation: isolate;
}
.board-scroll.is-enlarged .board-sheet { width: max(45rem, 100%); }
.board-columns, .board-rows {
  color: #d0d6ba;
  font-size: clamp(.5rem, 1.05vw, .67rem);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.board-columns {
  grid-area: columns;
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  place-items: center;
}
.board-rows {
  grid-area: rows;
  display: grid;
  grid-template-rows: repeat(15, minmax(0, 1fr));
  place-items: center;
}
.board-grid {
  position: relative;
  grid-area: cells;
  display: grid;
  grid-template-rows: repeat(15, minmax(0, 1fr));
  aspect-ratio: 1;
  border-left: 1px solid #a5b08865;
  border-top: 1px solid #a5b08865;
}
.board-row {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
}
.board-cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid #a5b0883d;
  border-bottom: 1px solid #a5b0883d;
}
.board-cell:nth-child(5n) { border-right-color: #a5b08865; }
.board-row:nth-child(5n) .board-cell { border-bottom-color: #a5b08865; }
.board-cell.covered {
  background: #305d3d;
  border-color: #b7c9a581;
}
.board-cell.cover-edge-n { border-top: 1px solid #b7c9a5; }
.board-cell.cover-edge-e { border-right-color: #b7c9a5; }
.board-cell.cover-edge-s { border-bottom-color: #b7c9a5; }
.board-cell.cover-edge-w { border-left: 1px solid #b7c9a5; }
.board-grid[role="grid"] .board-cell { cursor: crosshair; }
.board-grid[role="grid"] .board-cell:hover { background-color: #94ab7c55; }
.board-cell.selected {
  z-index: 3;
  box-shadow: inset 0 0 0 2px var(--gold-bright);
}
.board-cell:focus-visible {
  z-index: 4;
  outline-offset: -3px;
}
.board-cell.legal-move::after {
  position: absolute;
  inset: 40%;
  border-radius: 100%;
  background: var(--gold-bright);
  content: "";
}
.board-cell.legal-attack { box-shadow: inset 0 0 0 2px #ff9d96; }
.board-cell.legal-give { box-shadow: inset 0 0 0 2px #bce89f; }
.board-cell.occupied { z-index: 2; cursor: pointer; }
.board-cell.own { z-index: 3; }
.board-cell.own::before {
  position: absolute;
  inset: 9%;
  border: 1px solid #e8d7a7a9;
  border-radius: 3px;
  background: #b4c58d46;
  content: "";
}
.board-cell.occupied:focus-visible { z-index: 5; }

.token {
  position: absolute;
  bottom: 9%;
  left: 50%;
  display: flex;
  width: 88%;
  height: 115%;
  justify-content: center;
  transform: translateX(-50%);
  pointer-events: none;
  color: #e5c477;
}
.portrait {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 2px 1px #0a160e9c);
}
.tone-sky { color: #96cddd; }
.tone-rose { color: #e88f9c; }
.tone-lilac { color: #bdabdf; }
.tone-grass { color: #a6c781; }
.tone-sand { color: #e8bb77; }
.tone-rust { color: #d99773; }
.tone-teal { color: #79c6b5; }
.tone-pearl { color: #d6cdb7; }
.token-plate {
  position: absolute;
  top: 88%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: .22em;
  max-width: max(2.65rem, 225%);
  padding: .1em .34em .13em .26em;
  border-radius: 2px 3px 2px 2px;
  transform: translateX(-50%) rotate(-1deg);
  box-shadow: 0 1px 2px #15271aa0;
  background: #f0ead8;
  color: #19281d;
  font: 400 clamp(.53rem, 1.1vw, .81rem)/1.1 var(--serif);
  white-space: nowrap;
}
.board-grid .token-plate .flag { width: .99em; }
.token-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.board-grid[data-preview] .token {
  width: 157%;
  height: 185%;
  bottom: 4%;
}
.board-grid[data-preview] .token-plate {
  top: 87%;
  padding: .14em .45em .15em .3em;
  font-size: clamp(.61rem, 1.35vw, .98rem);
}
.board-grid[data-preview] .token-plate .flag { width: 1.12em; }
.board-grid[role="grid"] .board-cell:nth-child(-n+2) .token-plate { left: 9%; transform: rotate(-1deg); }
.board-grid[role="grid"] .board-cell:nth-child(n+14) .token-plate { left: auto; right: 9%; transform: rotate(-1deg); }
.board-caption {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: .75rem;
  margin-top: .65rem;
  color: var(--muted);
  font-size: .73rem;
}
.board-caption span:first-child { display: inline-flex; align-items: center; gap: .4rem; }
.board-caption span:last-child { text-align: right; }
.legend-range, .legend-move, .legend-attack, .legend-give, .legend-board {
  width: .66rem;
  height: .66rem;
  display: inline-block;
  flex: none;
  border: 1px solid #afc69f;
  border-radius: 1px;
  background: #305d3d;
}
.legend-move { background: var(--gold-bright); border-color: var(--gold-bright); border-radius: 50%; }
.legend-attack { background: transparent; border-color: #ff9d96; }
.legend-give { background: transparent; border-color: #bce89f; }
.legend-board { background: #90a994; border-color: #90a994; }
.board-selection {
  margin-top: .55rem;
  color: var(--foreground);
  min-height: 1.25rem;
  font-size: .8rem;
}

.orders {
  max-width: 29rem;
  padding-top: .95rem;
  border-top: 1px solid var(--line);
}
.orders-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.orders-name { color: var(--muted); overflow-wrap: anywhere; }
.player-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin-block: .7rem; }
.player-stats > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .46rem .55rem;
  background: #17271fc9;
}
.player-stats dt { display: flex; align-items: center; gap: .28rem; color: var(--muted); font-size: .7rem; }
.player-stats dt .icon { color: var(--gold); }
.player-stats dd { margin-top: .1rem; font: 800 1.45rem/1 var(--display); overflow-wrap: anywhere; }
.order-controls > summary { display: none; }
.action-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .38rem; }
.order-button { min-width: 0; justify-content: flex-start; background: #1b2d23; }
.order-button[aria-pressed="true"] { background: #3b5138; border-color: var(--gold); }
.order-button:disabled { background: #14221b; }
.order-hint { min-height: 2.2em; color: var(--muted); font-size: .81rem; margin-top: .55rem; }
.receipts { border-top: 1px solid var(--line); margin-top: .3rem; padding-block: .65rem .25rem; color: var(--muted); }
.receipts summary { width: fit-content; font-size: .79rem; cursor: pointer; }
.receipts summary span { margin-inline-start: .35rem; color: var(--gold); }
.receipts ul { padding-left: 1.2rem; margin-block: .4rem 0; color: var(--foreground); font-size: .8rem; }
.receipts li + li { margin-top: .35rem; }

.roster, .public-activity {
  padding-block: 1rem 1.3rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1.2rem;
}
.roster-header { display: flex; justify-content: space-between; gap: .65rem; align-items: center; }
.roster-icon { font-size: 1.55rem; color: var(--gold); margin-inline-end: .17rem; }
.roster-empty { margin-top: .9rem; color: var(--muted); font-size: .84rem; }
.roster-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: .45rem;
  list-style: none;
  padding: 0;
  margin: .9rem 0 0;
}
.roster-list li {
  padding: .64rem .68rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #17271f;
  display: flex;
  align-items: center;
  gap: .48rem;
  min-width: 0;
}
.roster-person { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-state { margin-left: auto; color: var(--muted); font-size: .71rem; white-space: nowrap; }
.roster-state[data-winner] { color: var(--gold); }
.public-activity ul { list-style: none; margin: .7rem 0 0; padding: 0; max-width: 42rem; }
.public-activity li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding-block: .34rem; color: var(--muted); }
.public-activity time { font-size: .73rem; }
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding-block: .4rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .77rem;
}
.site-footer span { display: inline-flex; align-items: center; gap: .4rem; }
.site-footer .icon { color: var(--gold); }

.dialog {
  width: min(100% - 2rem, 27rem);
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 1.25rem;
  border: 1px solid #687154;
  border-radius: 5px;
  box-shadow: 0 24px 70px #070c08ae;
  background: var(--panel);
  color: var(--foreground);
  overflow: auto;
}
.dialog::backdrop { background: #07100be0; }
.dialog-header { display: flex; justify-content: space-between; align-items: start; gap: .9rem; }
.dialog h2 { font: 400 2.5rem/1 var(--serif); overflow-wrap: anywhere; }
.dialog .icon-button { height: 2.75rem; flex: none; }
.dialog p { margin-top: .65rem; color: var(--muted); overflow-wrap: anywhere; }
.dialog p.form-error { color: #ffb9ad; }
.dialog .form-fields { display: grid; gap: .38rem; margin-top: 1rem; }
.form-fields label { margin-top: .16rem; font-size: .82rem; font-weight: 650; }
.form-fields input {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  margin-bottom: .25rem;
  border: 1px solid #71826b;
  border-radius: 3px;
  background: #101e16;
  color: var(--foreground);
  padding: .47rem .63rem;
  font-size: 1rem;
}
.form-fields input:disabled { opacity: .68; }
#account-submit { margin-top: .9rem; }
.dialog-actions { display: flex; gap: .55rem; margin-top: 1rem; }
.text-button {
  min-height: 2.75rem;
  display: block;
  padding: .45rem 0;
  margin-top: .28rem;
  border: 0;
  background: transparent;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: .18rem;
  text-align: left;
}
.rules-dialog { width: min(100% - 2rem, 34rem); }
.rules-list { border-top: 1px solid var(--line); margin-top: 1rem; }
.rules-list > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .5rem; padding-block: .61rem; border-bottom: 1px solid var(--line); }
.rules-list dt { display: flex; align-items: first baseline; gap: .45rem; font-weight: 650; }
.rules-list dt .icon { align-self: flex-start; margin-top: .2em; color: var(--gold); }
.rules-list dd, .dialog .keyboard-note { color: var(--muted); font-size: .82rem; }
.range-diagram { display: block; width: 5.5rem; height: 5.5rem; margin-top: .6rem; }

@media (max-width: 860px) {
  .field-layout { column-gap: clamp(1rem, 3.4vw, 2rem); }
  #campaign-title { font-size: clamp(3.65rem, 9vw, 5.8rem); }
  .tagline { font-size: clamp(2.2rem, 4.45vw, 3rem); }
  .facts dt { flex-wrap: wrap; gap: .18rem .28rem; }
  .facts > div:not(:first-child) { padding-left: .65rem; }
}

@media (max-width: 680px) {
  .navigation { min-height: 0; padding-block: .8rem .3rem; display: grid; grid-template-columns: 1fr auto; gap: .15rem .6rem; }
  .navigation .account-button { grid-area: 1 / 2; min-height: 2.4rem; }
  .navigation nav { grid-area: 2 / 1 / 3 / -1; justify-content: start; gap: 1.35rem; margin-left: 0; }
  .wordmark { grid-area: 1 / 1; font-size: 1.5rem; width: fit-content; }
  .field-layout {
    grid-template-areas: "intro" "tools" "board";
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.4rem;
    padding-block: 1.7rem 1.5rem;
  }
  .field-layout[data-playing] {
    grid-template-areas: "intro" "board" "tools";
    row-gap: .85rem;
    padding-block: .9rem 1.15rem;
  }
  #campaign-title { font-size: clamp(4.25rem, 16vw, 6.3rem); }
  .field-layout[data-playing] #campaign-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .tagline { font-size: clamp(2.36rem, 8.5vw, 3.5rem); }
  .field-layout[data-playing] .tagline {
    display: none;
    font-size: clamp(1.95rem, 6.75vw, 2.6rem);
    margin-top: .25rem;
  }
  .field-layout[data-playing="finished"] .tagline { display: block; }
  .field-layout[data-playing] :is(.campaign-description, .campaign-buttons, .facts) { display: none; }
  .campaign-description { margin-top: .75rem; }
  .campaign-buttons { margin-top: 1rem; }
  .facts { padding-top: .8rem; }
  .battlefield { max-width: 34rem; width: 100%; margin-inline: auto; }
  .field-layout[data-playing] .battlefield-header h2 { font-size: 1.75rem; }
  .field-layout[data-playing] .battlefield-header { margin-bottom: .5rem; }
  .field-layout[data-playing] .campaign-clock { margin-top: .65rem; }
  .orders { max-width: none; padding-top: .6rem; }
  .orders h2 { font-size: 1.6rem; }
  .player-stats { margin-block: .48rem; }
  .order-controls > summary {
    display: list-item;
    min-height: 2.75rem;
    padding: .58rem .65rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #1b2d23;
    color: var(--foreground);
    cursor: pointer;
    font-size: .84rem;
    font-weight: 650;
  }
  .order-controls > summary:hover { border-color: var(--gold); }
  .order-controls[open] .action-buttons { margin-top: .4rem; }
  .order-controls:not([open]) + .order-hint[data-actionable] { display: none; }
  .order-hint { min-height: auto; }
  .board-sheet { padding-right: .24rem; padding-bottom: .24rem; }
  .board-frame { padding: .26rem; }
  .token-plate { max-width: max(1.8rem, 200%); gap: .13em; }
}

@media (max-width: 340px) {
  #campaign-title { font-size: 3.75rem; }
  .navigation nav { gap: .85rem; }
  .navigation .account-button { max-width: 8.5rem; }
  .facts dt .icon { display: none; }
  .rules-list > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
