/* dist/client/styles.css */
:root {
  color-scheme: dark;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 17px;
  color: #e8edf1;
  background: #10151c;
  --blue: #98d7ff;
  --gold: #f3c97b;
  --south-color:#98d7ff;
  --north-color:#9ce0a7;
  --muted: #a9b6c3;
  --line: #35414f;
  --panel: #1a222d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: .42;
}
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.site-header {
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 16px;
  border-bottom: 1px solid #27313e;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--blue);
  border: 1px solid #48576a;
  border-radius: 10px;
  padding: 8px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.brand-mark span {
  color: var(--gold);
  font-weight: 400;
}
h1 {
  margin: 0;
  font-size: 1.125rem;
  letter-spacing: -.025em;
}
.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .875rem;
}
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.roster-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.roster-question {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .8rem;
  line-height: 1;
}
.roster-inline {
  margin-top: 10px;
  color: var(--blue);
  font-size: .875rem;
  min-height: 32px;
}
.roster-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.local-label {
  color: var(--muted);
  font-size: .875rem;
  margin-right: 12px;
}
.button {
  min-height: 42px;
  border: 1px solid #405064;
  background: #25313f;
  color: #e8edf1;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: .875rem;
  font-weight: 600;
}
.button:hover:not(:disabled) {
  background: #334356;
}
.button.quiet {
  background: transparent;
}
.button.primary {
  background: var(--blue);
  color: #0c2130;
  border-color: var(--blue);
}
.button.primary:hover:not(:disabled) {
  background: #c0e6ff;
}
.game-layout {
  margin: auto;
  padding: 8px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 28vw, 440px);
  gap: 18px 20px;
  align-items: start;
}
.battlefield {
  min-width: 0;
  width: 100%;
}
.board-heading,
.board-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 4px 22px;
}
.board-footer {
  margin-top: 4px;
  margin-bottom: 0;
}
.army-heading {
  font-size: .875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.army-heading > span:last-child {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 400;
  margin-left: 5px;
}
.team-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}
.north {
  --team: var(--north-color);
}
.south {
  --team: var(--south-color);
}
.army-blue {
  --team:#98d7ff;
}
.army-green {
  --team:#9ce0a7;
}
.army-red {
  --team:#ffaaa2;
}
.army-heading {
  color: var(--team);
}
.board-spec {
  font-size: .75rem;
  color: var(--muted);
}
.board-frame {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto 18px;
}
.ranks {
  display: grid;
  grid-template-rows: repeat(var(--board-size, 13), 1fr);
  align-items: center;
  color: var(--muted);
  font-size: .75rem;
  text-align: left;
}
.files {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(var(--board-size, 13), 1fr);
  align-items: end;
  text-align: center;
  color: var(--muted);
  font-size: .75rem;
}
.board {
  display: grid;
  grid-template-columns: repeat(var(--board-size, 13), minmax(0, 1fr));
  grid-template-rows: repeat(var(--board-size, 13), minmax(0, 1fr));
  aspect-ratio: 1;
  border: 1px solid #576676;
  background: #576676;
  gap: 1px;
  position: relative;
}
.square {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #273440;
  color: #ecf0f4;
}
.square.light {
  background: #303f4c;
}
.square:hover {
  filter: brightness(1.17);
}
.square.selected {
  z-index: 2;
}
.square.selected::after {
  content: "";
  position: absolute;
  inset: 1px;
  border: 2px solid #f3eedc;
  z-index: 4;
  pointer-events: none;
}
.square.last-action {
  background-image: linear-gradient(#ffffff16, #ffffff16);
}
.token {
  width: 98%;
  height: 98%;
  border-radius: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      145deg,
      #25384599,
      #13202a66);
  color: #ecf3ff;
  border: 1px solid var(--team);
  box-shadow: 0 2px 3px #0006;
  font-weight: 750;
  line-height: 1;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.sprite-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  transform: scaleX(var(--facing,1));
}
.unit-sprite {
  visibility: hidden;
  position: absolute;
  inset: 0;
  background-size: var(--attack-grid,200% 200%);
  background-position: 0 0;
  background-repeat: no-repeat;
  image-rendering: auto;
  transform: translate(var(--display-x,0%), var(--display-y,0%)) scale(var(--display-zoom,1));
  transform-origin: 50% 96.5%;
}
.token.soldier {
  --attack-grid:400% 200%;
  --motion-grid:800% 200%;
  --idle-animation:footman-idle;
}
.token.soldier .unit-sprite {
  inset: -50%;
}
.death-sprite {
  visibility: hidden;
  position: absolute;
  inset: 0;
  background-size: 400% 200%;
  background-position: 0 0;
  background-repeat: no-repeat;
  image-rendering: auto;
}
.preview-dying .sprite-window {
  overflow: visible;
}
.preview-dying .unit-letter {
  visibility: hidden;
}
.token.archer {
  --idle-x-1:.71875%;
  --idle-x-2:2.08125%;
  --idle-x-3:2.959375%;
}
.token.assassin {
  --idle-x-1:-.653125%;
  --idle-x-2:.81875%;
  --idle-x-3:.0625%;
}
.token.rider {
  --idle-x-2:-2.065625%;
}
.token.commander {
  --idle-x-1:.178125%;
  --idle-x-2:1.253125%;
  --idle-x-3:-.403125%;
}
.token.defender {
  --idle-animation:shield-idle;
  --idle-x-3:.18125%;
}
.token.catapult {
  --idle-x-1:-.1375%;
  --idle-x-2:-.109375%;
  --idle-x-3:-.240625%;
  --idle-y:-.3125%;
}
.token.expanded-motion {
  --motion-grid:800% 200%;
}
.token.personality-idle .motion-sprite,
.token.readiness-idle .motion-sprite {
  animation: none !important;
}
.token.expanded-idle {
  --idle-animation:footman-idle;
}
.token.expanded-attack {
  --attack-grid:400% 200%;
}
.token.expanded-attack .unit-sprite {
  inset: -50%;
}
.token:not(.race-unit) .sprite-window {
  overflow: visible;
}
.token.expanded-attack .unit-sprite,
.token.soldier .unit-sprite {
  transform: translate(calc(var(--display-x,0%) / 2), calc(var(--display-y,0%) / 2)) scale(var(--display-zoom,1));
  transform-origin: 50% 73.25%;
}
.unit-letter {
  position: absolute;
  left: -1px;
  top: -1px;
  padding: 1px 2px;
  min-width: 9px;
  border-radius: 2px;
  background: #0b1119e6;
  color: var(--team);
  font-size: 12px;
  z-index: 2;
}
.token.portrait {
  width: 160px;
  height: 160px;
  border-width: 2px;
}
.token.portrait .unit-letter {
  font-size: 16px;
  padding: 3px 4px;
}
.selection-art {
  margin-top: 10px;
}
.selection-art[hidden] {
  display: none;
}
.rule-piece {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.rule-art .token.portrait {
  width: 140px;
  height: 140px;
}
.rule-art {
  display: grid;
  gap: 8px;
  justify-items: center;
}
.rule-art .button {
  font-size: .75rem;
  padding: 6px 10px;
  min-height: 32px;
}
.animation-hidden {
  visibility: hidden;
}
@keyframes unit-idle {
  0%, 100% {
    background-position: 0 0;
    translate: 0 0;
  }
  25% {
    background-position: 33.333333% 0;
    translate: calc(var(--idle-x-1,0%) * var(--motion-zoom,1)) var(--idle-y,0%);
  }
  50% {
    background-position: 66.666667% 0;
    translate: calc(var(--idle-x-2,0%) * var(--motion-zoom,1)) var(--idle-y,0%);
  }
  75% {
    background-position: 100% 0;
    translate: calc(var(--idle-x-3,0%) * var(--motion-zoom,1)) var(--idle-y,0%);
  }
}
@keyframes footman-idle {
  0%, 100% {
    background-position: 0 0;
    translate: 0 0;
  }
  12.5% {
    background-position: 14.285714% 0;
  }
  25% {
    background-position: 28.571429% 0;
  }
  37.5% {
    background-position: 42.857143% 0;
  }
  50% {
    background-position: 57.142857% 0;
  }
  62.5% {
    background-position: 71.428571% 0;
  }
  75% {
    background-position: 85.714286% 0;
  }
  87.5% {
    background-position: 100% 0;
  }
}
@keyframes shield-idle {
  0%, 100% {
    background-position: 0 0;
    translate: 0 0;
  }
  50% {
    background-position: 100% 0;
    translate: var(--idle-x-3) 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .square.selected:not(.command-ally) > .token:not(.race-unit) .motion-sprite,
  #selection-art .token:not(.race-unit):not([data-piece-id=""]) .motion-sprite,
  .art-card[aria-pressed=true] .token:not(.race-unit) .motion-sprite {
    animation: var(--idle-animation,unit-idle) 2134ms step-end infinite;
    animation-delay: var(--idle-delay,0ms);
  }
}
.art-card .preview-moving .motion-sprite {
  animation: none;
  translate: 0 0;
}
.preview-attacking .sprite-window,
.battle-unit .sprite-window {
  overflow: visible;
}
.battle-effects {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: visible;
}
.battle-unit,
.battle-projectile,
.battle-pulse,
.battle-spark {
  position: absolute;
  display: block;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.battle-unit .token {
  width: 100%;
  height: 100%;
}
.battle-unit .unit-letter {
  display: none;
}
.battle-unit {
  z-index: 2;
}
.battle-casualty {
  z-index: 1;
}
.battle-pulse,
.battle-projectile,
.battle-spark {
  z-index: 3;
}
.battle-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.battle-trail polyline {
  stroke: var(--team);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3 7;
}
.battle-spark {
  background: var(--team);
  border-radius: 30%;
  box-shadow: 0 0 6px var(--team);
}
.move-impact {
  border-radius: 50% !important;
  background: transparent !important;
  border-color: #d1edff99 !important;
  box-shadow: 0 0 8px #c0e6ff44 !important;
}
.battle-pulse {
  border-radius: 25%;
  background: #fff1ce66;
  border: 2px solid #ffd58c;
  box-shadow: 0 0 10px #ffda9866;
}
.blast-impact {
  background:
    radial-gradient(
      circle,
      #fff2a3,
      #f78b29aa 40%,
      #b63b2b66 65%,
      transparent 75%);
  border-color: #f9c66a;
}
.slash-impact {
  background:
    linear-gradient(
      135deg,
      transparent 42%,
      #ffeedacc 46%,
      #ffba8766 56%,
      transparent 60%);
  border-color: #ffb58b;
}
.arrow-impact {
  background: #fff0cc55;
  border-color: #ffdb95;
}
.holy-impact {
  background:
    radial-gradient(
      circle,
      #fffce9bb,
      #ffdd6655 60%,
      transparent 75%);
  border-color: #fff0a8;
}
.charge-impact {
  background: #d8e6ff44;
  border-color: #e1edff88;
}
.battle-projectile.arrow {
  color: #ffe4b3;
  height: auto !important;
  filter: drop-shadow(0 1px 2px #000);
}
.battle-projectile.arrow svg {
  width: 100%;
  display: block;
}
.battle-projectile.stone {
  border-radius: 35%;
  background:
    linear-gradient(
      135deg,
      #e5dac0,
      #8e8371);
  border: 2px solid #453d35;
  box-shadow: 0 0 5px #f4b47788;
}
.token.commander {
  border-radius: 25%;
  border-width: 2px;
}
.token.assassin {
  font-style: italic;
}
.token.catapult {
  border-radius: 14%;
  border-style: double;
  border-width: 2px;
}
.token.used {
  opacity: .48;
}
.square.selected .token.used {
  opacity: 1;
}
.used-mark {
  position: absolute;
  right: -4px;
  bottom: -3px;
  font-size: .75rem;
  line-height: 1;
  background: #14202b;
  color: #ecf0f4;
  border-radius: 50%;
  padding: 1px;
}
.square.legal-move:not(:has(> .ground-action-cues))::after,
.square.legal-move > .ground-action-cues::after {
  content: "";
  width: 21%;
  height: 21%;
  border-radius: 50%;
  background: #dcf6ff;
  position: absolute;
  box-shadow: 0 0 0 3px #081d2540;
}
.square.legal-capture:not(:has(> .ground-action-cues))::after,
.square.legal-capture > .ground-action-cues::after,
.square.legal-shoot:not(:has(> .ground-action-cues))::after,
.square.legal-shoot > .ground-action-cues::after,
.square.hint-attack:not(:has(> .ground-action-cues))::before,
.square.hint-attack > .ground-action-cues::before,
.square.command-ally:not(:has(> .ground-action-cues))::after,
.square.command-ally > .ground-action-cues::after,
.square.command-chosen:not(:has(> .ground-action-cues))::after,
.square.command-chosen > .ground-action-cues::after,
.legend-capture {
  --corner-length:clamp(5px,18%,11px);
  --corner-width:2px;
  background:
    linear-gradient(currentColor, currentColor) left top / var(--corner-length) var(--corner-width),
    linear-gradient(currentColor, currentColor) left top / var(--corner-width) var(--corner-length),
    linear-gradient(currentColor, currentColor) right top / var(--corner-length) var(--corner-width),
    linear-gradient(currentColor, currentColor) right top / var(--corner-width) var(--corner-length),
    linear-gradient(currentColor, currentColor) left bottom / var(--corner-length) var(--corner-width),
    linear-gradient(currentColor, currentColor) left bottom / var(--corner-width) var(--corner-length),
    linear-gradient(currentColor, currentColor) right bottom / var(--corner-length) var(--corner-width),
    linear-gradient(currentColor, currentColor) right bottom / var(--corner-width) var(--corner-length);
  background-repeat: no-repeat;
}
.square.legal-capture:not(:has(> .ground-action-cues))::after,
.square.legal-capture > .ground-action-cues::after,
.square.legal-shoot:not(:has(> .ground-action-cues))::after,
.square.legal-shoot > .ground-action-cues::after {
  content: "";
  position: absolute;
  inset: 1px;
  color: #ff9b91;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 1px 0 #101820);
}
.square.command-ally:not(:has(> .ground-action-cues))::after,
.square.command-ally > .ground-action-cues::after,
.square.command-chosen:not(:has(> .ground-action-cues))::after,
.square.command-chosen > .ground-action-cues::after {
  content: "";
  position: absolute;
  inset: 2px;
  color: var(--gold);
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px #101820);
}
.square.command-chosen:not(:has(> .ground-action-cues))::after,
.square.command-chosen > .ground-action-cues::after {
  border: 0;
  border-radius: 0;
  --corner-width:3px;
  --corner-length:30%;
}
.square.command-source.selected::after {
  border-color: #98d7ff;
  border-style: dashed;
}
.square.command-destination.legal-move:not(:has(> .ground-action-cues))::after,
.square.command-destination.legal-move > .ground-action-cues::after {
  background: var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
}
.order-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px 22px;
  padding: 10px 14px;
  border: 1px solid #836b40;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: #28251e;
}
.order-guide strong {
  color: #ffe1a9;
  font-size: 1rem;
}
.order-guide p {
  margin: 4px 0 0;
  font-size: .875rem;
  line-height: 1.4;
  color: #e2d6c0;
}
.order-guide .button {
  flex-shrink: 0;
}
.order-button {
  border-color: #836b40;
  color: #ffe1a9;
}
.undo-note {
  grid-column: 1 / -1;
  font-size: .825rem;
  line-height: 1.4;
  color: var(--muted);
  margin: 8px 0 0;
}
.button.danger {
  background: #873a36;
  border-color: #d88178;
  color: #fff;
}
@media (max-width: 600px) {
  .order-guide {
    align-items: flex-start;
    flex-direction: column;
    margin-left: 0;
  }
}
.square.legal-jump:not(:has(> .ground-action-cues))::after,
.square.legal-jump > .ground-action-cues::after {
  content: "";
  position: absolute;
  width: 22%;
  height: 22%;
  border: 2px solid #dcf6ff;
  transform: rotate(45deg);
  z-index: 3;
  pointer-events: none;
}
.square.setup-target {
  box-shadow: inset 0 0 0 1px #edf7ff55;
}
.square.hint-move:not(:has(> .ground-action-cues))::after,
.square.hint-move > .ground-action-cues::after {
  content: "";
  position: absolute;
  width: 10%;
  height: 10%;
  min-width: 3px;
  min-height: 3px;
  border-radius: 50%;
  background: #dce6ef77;
  z-index: 3;
  pointer-events: none;
}
.square.hint-attack:not(:has(> .ground-action-cues))::before,
.square.hint-attack > .ground-action-cues::before {
  content: "";
  position: absolute;
  inset: 3px;
  color: #ffaca36e;
  --corner-width:1px;
  z-index: 3;
  pointer-events: none;
}
.square.danger-preview {
  background-image: linear-gradient(#fa9c7040, #fa9c7040);
  box-shadow: inset 0 0 0 2px #ffb78cc0;
}
.board-key {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
}
.legend-move {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dcf6ff;
}
.legend-capture {
  width: 13px;
  height: 13px;
  color: #ff9b91;
  --corner-length:5px;
  margin-left: 6px;
}
.game-sidebar {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.turn-card {
  position: relative;
  padding: 16px;
  border: 1px solid #405165;
  border-top: 3px solid var(--team);
  border-radius: 12px;
  background: var(--panel);
}
.turn-card > .help-button {
  position: absolute;
  top: 9px;
  right: 9px;
}
.turn-card .action-display {
  margin-right: 27px;
}
.turn-card.draw {
  --team: #ced2db;
}
.eyebrow {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .1em;
}
h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 9px 0 18px;
  letter-spacing: -.025em;
}
.action-display {
  display: flex;
  gap: 14px;
  align-items: center;
}
#actions-left {
  font-size: 3.4rem;
  line-height: 1;
  color: var(--team);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.action-display strong {
  font-size: .875rem;
  font-weight: 500;
}
.action-pips {
  display: flex;
  gap: 5px;
  margin-top: 9px;
}
.pip {
  width: 21px;
  height: 5px;
  background: var(--team);
  border-radius: 2px;
}
.pip.spent {
  opacity: .18;
}
#end-turn {
  width: 100%;
  background: var(--team);
  border-color: var(--team);
  color: #14212c;
}
.undo-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  margin-top: 5px;
}
.turn-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}
.turn-card .eyebrow {
  grid-column: 1;
}
.turn-card h2 {
  grid-column: 1;
  margin: 0;
  font-size: 1.2rem;
}
.turn-card .action-display {
  grid-column: 2;
  grid-row: 1 / 3;
  gap: 8px;
}
#actions-left {
  font-size: 2.6rem;
}
.action-pips {
  margin-top: 5px;
}
.turn-card #end-turn,
.turn-card #back-setup,
.turn-card .undo-button {
  grid-column: 1 / -1;
}
.turn-card .undo-button {
  margin: 0;
  min-height: 30px;
  padding: 4px 10px;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 8px 0;
}
.sidebar-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #1a232db3;
}
.sidebar-card[hidden] {
  display: none;
}
.selection-content {
  display: grid;
  gap: 14px;
}
.selection-copy {
  min-width: 0;
}
.selection-copy h3 {
  margin: 0;
  font-size: 1.2rem;
  text-align: center;
}
.selection-content .selection-art {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
#selection-art .token.portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#selection-art .unit-letter {
  display: none;
}
.selection-panel .selection-position {
  margin: 6px 0 0;
  text-align: center;
  font-size: 1rem;
}
#selection-description:not([hidden]):not(:empty) {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.selection-content p:empty,
.selection-content p[hidden] {
  display: none;
}
.selection-panel p {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.6;
  margin: 8px 0;
}
.piece-rule {
  display: block;
  margin: 0 0 8px;
  line-height: 1.45;
}
.piece-rule:last-child {
  margin-bottom: 0;
}
.unit-rules {
  margin: 10px 0;
  padding-left: 20px;
  font-size: .875rem;
  line-height: 1.55;
}
.unit-rules li {
  padding-left: 2px;
  margin-bottom: 9px;
}
.unit-rules li:last-child {
  margin-bottom: 0;
}
.unit-rules strong {
  color: #eef4f8;
}
.piece-rule strong {
  color: #e8edf1;
  font-size: inherit;
}
.piece-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.piece-actions .active {
  background: #d4e8f8;
  color: #14212c;
  border-color: #d4e8f8;
}
.ability-badge {
  padding: 6px 9px;
  border: 1px solid #607285;
  border-radius: 5px;
  font-size: .875rem;
}
.ability-badge.spent {
  color: var(--muted);
  opacity: .65;
}
.piece-actions p {
  margin: 0;
}
.piece-actions:empty {
  display: none;
}
.hint-key {
  color: #bbc4d0;
}
.recruit-panel[hidden] {
  display: none;
}
.recruit-panel p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 10px 0;
}
.recruit-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.recruit-options .button {
  padding: 8px;
  text-align: left;
}
.recruit-options .active {
  border-color: var(--blue);
  color: var(--blue);
  background: #2c4558;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.section-heading h3 {
  margin: 0;
}
.section-heading span {
  color: var(--muted);
  font-size: .75rem;
}
.help-button {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid #5e6c7b88;
  border-radius: 50%;
  background: transparent;
  color: #9caabb;
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.help-button:hover,
.help-button[aria-expanded=true] {
  border-color: #9baec4;
  color: #edf4fc;
  background: #304154;
}
.help-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.help-popover {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(320px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 16px;
  border: 1px solid #64788d;
  border-radius: 10px;
  background: #202d3b;
  color: #d2dde9;
  box-shadow: 0 8px 30px #0008;
  font-size: 1rem;
  line-height: 1.55;
}
.help-popover > strong {
  color: #f1f5fa;
}
.help-popover p {
  margin: 10px 0 0;
}
.help-popover .piece-rule strong {
  color: #f1f5fa;
}
.territory-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: .875rem;
  border-bottom: 1px solid #283340;
}
.territory-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.territory-row:first-child {
  padding-top: 0;
}
.territory-state {
  color: var(--muted);
  font-size: .875rem;
  text-align: right;
}
.territory-state.north,
.territory-state.south {
  color: var(--team);
}
.territory-state.contested {
  color: #ffa69c;
}
.history-panel {
  color: var(--muted);
  font-size: .875rem;
}
.history-panel summary {
  cursor: pointer;
}
.history-panel ol {
  padding-left: 20px;
  line-height: 1.65;
  font-size: .75rem;
}
.game-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px 14px;
  border-left: 2px solid #6b8299;
  background: #1a242f;
  border-radius: 0 6px 6px 0;
  color: #d1dee9;
  font-size: .875rem;
  line-height: 1.5;
}
.game-message.error {
  border-color: #ff9b91;
}
.game-message[hidden] {
  display: none;
}
dialog {
  width: min(600px, calc(100% - 32px));
  max-height: 85vh;
  overflow: auto;
  border: 1px solid #536478;
  border-radius: 14px;
  background: #1a222d;
  color: #e8edf1;
  padding: 26px;
  box-shadow: 0 16px 70px #0008;
}
dialog::backdrop {
  background: #000a;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.dialog-heading h2 {
  margin: 0;
}
dialog p,
dialog li {
  line-height: 1.7;
  font-size: 1rem;
  color: #c8d4df;
}
dialog h3 {
  margin-top: 22px;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.rule-piece {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.rule-piece strong {
  color: #e8edf1;
}
.rule-piece p {
  margin: 7px 0;
  font-size: .875rem;
}
@media (min-width: 1050px) and (min-height: 600px) {
  .game-layout {
    grid-template-columns: minmax(0, calc(100dvh - 104px)) clamp(320px, 28vw, 440px);
    justify-content: center;
  }
  .game-sidebar {
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-right: 6px;
    padding-bottom: 6px;
  }
}
@media (max-width: 950px) {
  .site-header {
    padding: 18px 20px;
  }
  .local-label {
    display: none;
  }
  .game-layout {
    padding: 20px;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .turn-card {
    padding: 16px;
  }
  .board-key {
    display: none;
  }
}
@media (max-width: 700px) {
  .site-header {
    padding: 14px;
    gap: 12px;
  }
  .brand-mark {
    display: none;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .button {
    padding: 8px 10px;
    font-size: .75rem;
  }
  .game-layout {
    display: flex;
    flex-direction: column;
    padding: 16px 10px;
    gap: 20px;
  }
  .battlefield {
    width: 100%;
  }
  .game-sidebar {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px 16px;
  }
  .turn-card {
    grid-row: span 2;
  }
  .territories-panel {
    grid-column: 1 / -1;
  }
  .history-panel {
    grid-column: 1 / -1;
  }
  .game-message {
    order: -1;
    margin: 0;
    width: 100%;
  }
  .token {
    font-size: clamp(.75rem, 3vw, 1.1rem);
    border-width: 1px;
    width: 82%;
    height: 82%;
  }
  .token.commander {
    border-width: 2px;
  }
  .used-mark {
    font-size: .625rem;
  }
  .army-heading > span:last-child {
    display: none;
  }
  .board-heading,
  .board-footer {
    margin-left: 20px;
  }
  .selection-panel p {
    font-size: .875rem;
  }
  .piece-actions .button {
    padding: 7px 10px;
  }
  .board-frame {
    grid-template-columns: 18px minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .token {
    transition: opacity .14s;
  }
  .button {
    transition: background .14s;
  }
}
@media (max-width: 700px) {
  .recruit-panel {
    grid-column: 1 / -1;
  }
  .turn-card {
    grid-row: auto;
  }
}
@media (max-width: 700px) {
  .square > .token {
    width: 98%;
    height: 98%;
    border-width: 1px;
  }
  .square > .token.catapult {
    border-width: 2px;
  }
  .unit-letter {
    font-size: 10.5px;
  }
  .rule-piece {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
  }
  .rule-art .token.portrait {
    width: 100px;
    height: 100px;
  }
}
.motion-sprite {
  position: absolute;
  inset: 0;
  background-size: var(--motion-grid,400% 200%);
  background-position: 0 0;
  background-repeat: no-repeat;
  image-rendering: auto;
  transform: translate(var(--display-x,0%), var(--display-y,0%)) scale(var(--display-zoom,1));
  transform-origin: 50% 96.5%;
}
.preview-attacking .unit-sprite {
  visibility: visible;
}
.preview-attacking .motion-sprite {
  visibility: hidden;
}
.preview-attacking.embedded-companion-attack .orc-wolf-companion {
  visibility: hidden;
}
.token.opponent {
  opacity: .76;
  border-style: dashed;
  background: #101820a3;
}
.token.opponent .sprite-window {
  filter: saturate(.88) brightness(.94);
}
.token.shield-protected {
  box-shadow: inset 0 0 7px color-mix(in srgb, var(--team) 35%, transparent), 0 0 5px color-mix(in srgb, var(--team) 45%, transparent);
}
.token.commander {
  --hero-glow:0 0 9px color-mix(in srgb,var(--team) 40%,transparent);
  box-shadow: var(--hero-glow), inset 0 0 5px color-mix(in srgb, var(--team) 14%, transparent);
}
.token.commander.shield-protected {
  box-shadow: var(--hero-glow), inset 0 0 7px color-mix(in srgb, var(--team) 35%, transparent);
}
.shield-mark {
  position: absolute;
  right: -1px;
  top: -1px;
  width: clamp(9px, 1.2vw, 14px);
  height: clamp(11px, 1.4vw, 16px);
  padding: 1px;
  border-radius: 3px;
  color: var(--team);
  background: #10151ce6;
  z-index: 3;
}
.shield-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.token.portrait .shield-mark {
  width: 20px;
  height: 24px;
  padding: 2px;
}
.protection-note {
  color: #c7e8fb !important;
  font-size: .875rem;
}
.commander-panel[hidden] {
  display: none;
}
.commander-panel h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}
.commander-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.commander-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 12px 8px;
  border: 1px solid #536579;
  border-radius: 10px;
  background: var(--panel);
  color: inherit;
}
.commander-choice[aria-pressed=true] {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  background: #253644;
}
.commander-choice:hover {
  background: #2c3c4b;
}
.commander-choice .token.portrait {
  width: 88px;
  height: 88px;
}
.commander-choice strong {
  font-size: .875rem;
}
.commander-choice > span:last-child {
  font-size: .825rem;
  line-height: 1.35;
  color: var(--muted);
}
@media (max-width: 700px) {
  .commander-panel {
    grid-column: 1 / -1;
  }
}
.square:hover > .token.opponent,
.square.selected > .token.opponent,
.square.legal-capture > .token.opponent,
.square.legal-shoot > .token.opponent {
  opacity: 1;
}
.token.rogue-cloaked {
  opacity: .48;
  border-style: dotted;
  background: #19334455;
  box-shadow: inset 0 0 10px #9ae8fb28;
}
.token.rogue-spotted,
.square:hover > .token.rogue-spotted,
.square.legal-capture > .token.rogue-spotted,
.square.legal-shoot > .token.rogue-spotted {
  opacity: .48;
  border: 1px dotted #c2f4ff;
  background: #7ad9fa12;
  box-shadow: 0 0 8px #b5ebff55;
}
.token.rogue-spotted .sprite-window {
  filter: grayscale(.6) brightness(1.4);
}
.token.rogue-spotted::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid #c2f4ff66;
  pointer-events: none;
}
.stealth-note {
  color: #acd9e5;
}
.stealth-echo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .token.assassin {
    transition:
      opacity .4s,
      background .4s,
      box-shadow .4s;
  }
  .token.rogue-spotted::after {
    animation: rogue-shimmer 1.8s ease-in-out infinite;
  }
  .token.stealth-echo {
    animation: rogue-vanish .42s ease-in forwards;
  }
}
@keyframes rogue-shimmer {
  50% {
    opacity: .3;
    box-shadow: 0 0 6px #c2f4ff66;
  }
}
@keyframes rogue-vanish {
  to {
    opacity: 0;
    filter: blur(3px);
  }
}
.square.selected > .token.opponent .sprite-window,
.square.legal-capture > .token.opponent .sprite-window,
.square.legal-shoot > .token.opponent .sprite-window {
  filter: none;
}
@media (max-width: 480px) {
  .site-header {
    align-items: flex-start;
    gap: 8px;
  }
  .header-actions {
    max-width: 220px;
    gap: 5px;
  }
  .header-actions .button {
    padding: 7px 8px;
    min-height: 36px;
  }
}
.audio-controls {
  position: relative;
}
.audio-controls > summary {
  display: flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
}
.audio-controls > summary::-webkit-details-marker {
  display: none;
}
.audio-controls[open] > summary {
  border-color: var(--blue);
  color: var(--blue);
}
.audio-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 28px);
  padding: 18px;
  border: 1px solid #52667c;
  border-radius: 12px;
  background: #1a222dfc;
  box-shadow: 0 12px 40px #0009;
}
.audio-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
}
.audio-row + .audio-row {
  margin-top: 18px;
}
.audio-row output {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
#music-volume {
  width: 100%;
  accent-color: var(--blue);
  margin: 12px 0 4px;
  cursor: pointer;
}
#music-volume:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}
.music-status {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.4;
  margin: 6px 0 16px;
}
.effects-row {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.music-credit {
  font-size: .65rem;
  color: var(--muted);
  display: block;
  margin-top: 14px;
}
@media (max-width: 480px) {
  .audio-panel {
    position: fixed;
    top: 90px;
    right: 14px;
  }
}
body[data-environment=forest] {
  background: #0d1714;
  --panel:#182720;
  --line:#354d43;
}
body[data-environment=wasteland] {
  background: #1a1411;
  --panel:#2a211b;
  --line:#5a4634;
}
.board {
  background-image: var(--terrain);
  background-size: cover;
  gap: 0;
  border-color: #849080;
}
.square {
  background: rgba(12, 24, 31, .20);
  box-shadow: inset -1px -1px 0 #cbdcd53a;
}
.square.light {
  background: rgba(198, 212, 203, .07);
}
.territory-ground {
  position: absolute;
  inset: 0;
  z-index: 0;
  box-sizing: border-box;
  pointer-events: none;
  background: transparent;
  border-style: solid;
  border-width: var(--territory-top,0px) var(--territory-right,0px) var(--territory-bottom,0px) var(--territory-left,0px);
  border-color: #d0c8ad66;
}
.territory-ground.territory-owned {
  background: transparent;
  border-color: color-mix(in srgb, var(--territory-color) 60%, transparent);
}
.territory-ground.territory-unknown {
  border-color: #d0c8ad40;
  border-style: dashed;
}
.territory-ground.territory-contested {
  border-style: dashed;
  border-color: #eed3a8bb;
  animation: territory-boundary-breathe 4s ease-in-out infinite;
}
.square[data-elevation] > .territory-ground {
  translate: 0 var(--ground-lift);
}
@keyframes territory-boundary-breathe {
  0%, 100% {
    border-color: #eed3a880;
  }
  50% {
    border-color: #fff0d4dd;
  }
}
@media (prefers-reduced-motion: reduce) {
  .territory-ground.territory-contested {
    animation: none;
  }
}
.board .square.aura-south {
  background-image: linear-gradient(color-mix(in srgb, var(--south-color) 14%, transparent), color-mix(in srgb, var(--south-color) 14%, transparent));
}
.board .square.aura-north {
  background-image: linear-gradient(color-mix(in srgb, var(--north-color) 14%, transparent), color-mix(in srgb, var(--north-color) 14%, transparent));
}
.board .square.aura-south.aura-north {
  background-image: linear-gradient(#e5e2c82b, #e5e2c82b);
}
.territory-effect {
  position: absolute;
  z-index: 0;
  box-sizing: border-box;
  border: 2px solid var(--team);
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--team) 12%, transparent),
      transparent 35%,
      transparent 65%,
      color-mix(in srgb, var(--team) 12%, transparent));
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--team) 25%, transparent), 0 0 10px color-mix(in srgb, var(--team) 22%, transparent);
  pointer-events: none;
}
.territory-effect.contested {
  --team:#edbd82;
  border-style: dashed;
}
.territory-effect > span {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--team);
  background: #10151ced;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 650;
  box-shadow: 0 1px 4px #0006;
}
.level-options {
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.level-choice {
  border: 1px solid #53616b;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #18232b;
}
.level-choice:has(input:checked) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.level-choice input {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 20px;
  height: 20px;
  accent-color: #98d7ff;
}
.level-choice img {
  display: block;
  width: 100%;
  aspect-ratio: 2.2;
  object-fit: cover;
}
.level-choice > span {
  display: block;
  padding: 9px;
}
.level-choice strong {
  font-size: .82rem;
}
.level-choice small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  margin: 5px 0 0;
}
#restart-dialog {
  width: min(650px, calc(100vw - 24px));
}
.track-credits {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 12px;
}
.track-credits summary {
  cursor: pointer;
}
.track-credits ul {
  padding-left: 17px;
  margin: 8px 0;
}
.track-credits li {
  margin: 8px 0;
}
.track-credits a {
  color: #a9d8ef;
}
body {
  min-height: 100dvh;
}
.turn-card[data-phase=setup] .eyebrow {
  grid-column: 1 / -1;
}
.turn-card[data-phase=setup] .action-display {
  grid-row: 2;
}
.turn-card[data-phase=setup] .action-display strong {
  display: block;
  max-width: 95px;
}
.crown-mark {
  width: 15px;
  height: 15px;
  display: block;
}
.token.portrait .crown-mark {
  width: 23px;
  height: 23px;
}
.army-turn {
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: .65rem;
  font-weight: 500;
  white-space: nowrap;
}
.color-panel[hidden] {
  display: none;
}
.color-panel h3 {
  margin: 0 0 10px;
}
.color-options {
  display: flex;
  gap: 8px;
}
.army-color-choice {
  flex: 1;
  min-height: 38px;
  border: 1px solid #52616f;
  border-radius: 7px;
  background: var(--panel);
  color: var(--swatch);
  font-size: .875rem;
}
.army-color-choice::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--swatch);
  margin-right: 7px;
}
.army-color-choice[aria-pressed=true] {
  border-color: var(--swatch);
  box-shadow: inset 0 0 0 1px var(--swatch);
  background: color-mix(in srgb, var(--swatch) 12%, var(--panel));
}
@media (max-width: 700px) {
  .color-panel {
    grid-column: 1 / -1;
  }
  .army-turn {
    font-size: .6rem;
    padding: 1px 3px;
  }
  .army-heading {
    gap: 5px;
  }
}
.commander-panel .section-heading h3,
.color-panel .section-heading h3 {
  margin: 0;
}
.commander-choice .token.portrait {
  width: 72px;
  height: 72px;
}
.commander-choice {
  padding: 10px 6px;
}
@media (max-width: 700px) {
  .game-sidebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .selection-panel {
    grid-column: 1 / -1;
  }
  .help-button {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
}
.section-heading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-heading h3 > span:not(.setup-step-mark) {
  color: inherit;
  font-size: inherit;
}
.section-heading .setup-step-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #576878;
  border-radius: 50%;
  color: #c5d0dc;
  font-size: .875rem;
  flex-shrink: 0;
}
.setup-step-mark[hidden],
.action-display[hidden],
#back-setup[hidden],
#history-panel[hidden] {
  display: none;
}
.sidebar-card[data-setup-status=active] {
  border-color: var(--setup-accent);
  background: var(--panel);
  box-shadow: inset 3px 0 var(--setup-accent);
}
.sidebar-card[data-setup-status=active] {
  background: color-mix(in srgb, var(--setup-accent) 12%, #1a222d);
  box-shadow:
    inset 4px 0 var(--setup-accent),
    0 0 0 2px color-mix(in srgb, var(--setup-accent) 24%, transparent),
    0 5px 22px #0005;
}
.sidebar-card[data-setup-status=upcoming] {
  opacity: .48;
}
.sidebar-card[data-setup-status=done] {
  opacity: .66;
}
.sidebar-card[data-setup-status=done]:is(:hover, :focus-within),
.sidebar-card[data-setup-status=upcoming]:is(:hover, :focus-within) {
  opacity: 1;
}
.sidebar-card {
  transition:
    opacity .2s,
    border-color .2s,
    background .2s,
    box-shadow .2s;
}
.board-stage {
  position: relative;
}
.setup-confirm {
  position: absolute;
  z-index: 12;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 8px;
  width: min(300px, 78%);
  padding: 22px;
  border: 1px solid var(--ready-accent);
  border-radius: 14px;
  background: #15202df5;
  box-shadow: 0 12px 45px #0009;
}
.setup-confirm[hidden],
#turn-card[hidden] {
  display: none;
}
.setup-confirm .button.primary {
  background: var(--ready-accent);
  border-color: var(--ready-accent);
  font-size: 1rem;
}
.setup-confirm .button.quiet {
  min-height: 34px;
  border-color: transparent;
  color: #b8c6d3;
  font-weight: 400;
}
.setup-start-dock {
  position: sticky;
  z-index: 11;
  top: 0;
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 6px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #15202df2;
  box-shadow: 0 3px 12px #0006;
}
.setup-start-dock[hidden] {
  display: none;
}
.setup-start-dock #end-turn {
  width: auto;
  min-width: 145px;
  min-height: 42px;
  background: #223445;
  border-color: #60758a;
  color: #e8f0f7;
}
.setup-start-dock #end-turn:hover:not(:disabled),
.setup-start-dock #end-turn:focus-visible {
  background: var(--team);
  border-color: var(--team);
  color: #101d28;
  outline: 2px solid var(--team);
  outline-offset: 2px;
}
.setup-start-dock #end-turn.setup-ready {
  background: var(--team);
  border-color: var(--team);
  color: #101d28;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--team) 30%, transparent);
}
.roster-help {
  text-decoration: none;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.hero-roster-link {
  color: var(--blue);
  font-size: .875rem;
}
#selection-panel > .undo-button {
  margin-top: 8px;
  min-height: 30px;
  padding: 4px 8px;
  background: transparent;
  border-color: transparent;
  font-weight: 400;
  font-size: .825rem;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23dbe6ee' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-position: right 11px center !important;
  background-size: 12px 8px !important;
  background-repeat: no-repeat !important;
  padding-right: 32px !important;
}
@media (prefers-reduced-motion: reduce) {
  .sidebar-card {
    transition: none;
  }
}
.sidebar-card[data-setup-status=active] .setup-step-mark {
  background: var(--setup-accent);
  border-color: var(--setup-accent);
  color: #14212c;
}
.sidebar-card[data-setup-status=done] {
  border-color: #34404c;
  background: #171f28;
}
.sidebar-card[data-setup-status=done] .setup-step-mark {
  color: #b7c9d7;
  border-color: #506577;
}
.sidebar-card[data-setup-status=done] :is(.color-options, .commander-options, .selection-content, .piece-actions) {
  opacity: .75;
}
.sidebar-card[data-setup-status=done]:is(:hover, :focus-within) :is(.color-options, .commander-options, .selection-content, .piece-actions) {
  opacity: 1;
}
.sidebar-card[data-setup-status=active] .layout-confirm {
  border-color: var(--setup-accent);
  color: var(--setup-accent);
}
.turn-card[data-phase=setup] {
  grid-template-columns: minmax(0, 1fr);
}
.turn-card[data-phase=setup] h2 {
  padding-right: 30px;
}
.turn-card[data-phase=setup] #end-turn:not(.setup-ready) {
  background: transparent;
  color: #d1dbe5;
  border-color: #526678;
}
.turn-card[data-phase=setup] #end-turn.setup-ready {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--team) 25%, transparent);
}
.selection-copy h3[hidden] {
  display: none;
}
[hidden],
.game-layout[hidden],
.match-lobby[hidden],
#match-bar[hidden] {
  display: none !important;
}
.match-heading {
  max-width: 1500px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#match-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}
#match-code {
  font-family: monospace;
  letter-spacing: .08em;
}
#connection-status {
  margin: 0;
  color: #acb5c1;
  font-size: 13px;
}
#connection-status.error {
  color: #f3b0a6;
}
.match-lobby {
  max-width: 1040px;
  margin: 36px auto;
  padding: 24px;
}
.match-lobby > p {
  color: #b7c3ce;
  line-height: 1.6;
}
.lobby-options {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(230px, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.lobby-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
  min-width: 0;
  padding: 24px;
  background: #17232e;
  border: 1px solid #394754;
  border-radius: 12px;
}
.lobby-card h3 {
  margin: 0 0 8px;
}
.lobby-card input,
.lobby-card select {
  padding: 12px;
  border: 1px solid #586778;
  border-radius: 6px;
  background: #101820;
  color: #edf4fa;
  font: inherit;
  max-width: 100%;
}
.visually-hidden,
.mode-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.match-choice {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #35414f;
  margin: 0;
  padding: 13px 0;
}
.match-choice:first-child {
  padding-top: 0;
}
.match-choice:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.match-choice-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  font-weight: 600;
}
.match-picker {
  position: relative;
}
.match-picker .match-picker-help {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 28px;
  height: 28px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: #8f9cab;
}
.match-picker .match-picker-help:hover {
  color: #edf4fc;
  background: transparent;
}
.match-picker .opponent-picker legend {
  padding-right: 32px;
}
.mode-switch {
  display: flex;
  padding: 3px;
  gap: 3px;
  border: 1px solid #405064;
  border-radius: 8px;
  background: #101820;
}
.mode-switch label {
  position: relative;
  cursor: pointer;
}
.mode-switch span {
  display: block;
  padding: 7px 11px;
  min-width: 67px;
  text-align: center;
  border-radius: 5px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
}
.mode-switch input:checked + span {
  color: #102431;
  background: var(--blue);
}
.mode-switch input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.mode-switch label:hover span {
  color: #fff;
}
.mode-switch label:hover input:checked + span {
  color: #102431;
  background: #bce5ff;
}
.match-picker .mode-switch input {
  padding: 0;
  border: 0;
  width: 1px;
  height: 1px;
}
.match-picker .level-choice input {
  padding: 0;
  width: 16px;
  height: 16px;
  left: 8px;
  top: 8px;
}
.level-choice:has(input:focus-visible) {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.match-picker-note {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}
#restart-options {
  margin: 18px 0;
}
#restart-dialog .dialog-actions {
  margin-top: 20px;
}
#saved-matches {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.catapult-choices {
  display: flex;
  gap: 8px;
}
.catapult-choices button[aria-pressed=true] {
  background: var(--south-color);
  color: #101820;
}
.fog-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.fog-layer[hidden] {
  display: none;
}
.board.has-organic-fog > .square {
  z-index: auto;
}
.board.has-organic-fog > .square:is(.selected, [data-elevation], .turn-event-focus) {
  z-index: auto;
}
.board.has-organic-fog > .square.fogged {
  z-index: 1;
}
.board.has-organic-fog > .square:hover {
  filter: none;
}
.board.has-organic-fog > .square:not(.fogged) > :is(.token, .landscape-object-layer, .ent-obstacle, .construction-site) {
  z-index: 3;
}
.board.has-organic-fog > .square:not(.fogged)::after {
  z-index: 4;
}
.board.has-organic-fog > .square.friendly-fog-figure {
  z-index: auto;
}
.board.has-organic-fog > .square.friendly-fog-figure > :is(.token, .kingdom-tile-status, .unit-action-dots, .kingdom-protection, .hero-upgrade-cue, .unit-affliction-badge) {
  z-index: 25;
}
.friendly-actor-layer {
  position: absolute;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  overflow: visible;
}
.board > button.square {
  z-index: 2;
}
.board > button.square.selected {
  z-index: 3;
}
.board .square.fogged {
  background-image: linear-gradient(#b6cbd54d, #b6cbd54d);
}
.board.has-cloud-fog .square.fogged {
  background-image: none;
}
.board {
  --terrain-cell:calc(100cqw / var(--board-size,13));
  --stone-top:#b7b8a9;
  --stone-face:#81877d;
  --stone-foot:#434d47;
  --stone-joint:#333b3488;
  --stone-block:calc(var(--terrain-cell) * .5);
  --stone-tint:#d9ded219;
  --stone-rim:#e0e1c996;
}
body[data-environment=wasteland] .board:not([data-environment]),
.board[data-environment=wasteland] {
  --stone-top:#c4aa80;
  --stone-face:#9a805c;
  --stone-foot:#594734;
  --stone-joint:#51412d88;
  --stone-block:calc(var(--terrain-cell) * .58);
  --stone-tint:#dab77619;
  --stone-rim:#e6cba594;
}
body[data-environment=forest] .board:not([data-environment]),
.board[data-environment=forest] {
  --stone-top:#b0b797;
  --stone-face:#7d896b;
  --stone-foot:#475b44;
  --stone-joint:#354d3688;
  --stone-block:calc(var(--terrain-cell) * .54);
  --stone-tint:#8da16e22;
  --stone-rim:#d3dec18c;
}
.high-ground-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.unit-shadow-layer {
  filter: blur(min(3px, calc(var(--relief-blur,2px) * .35)));
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.unit-shadow-layer[hidden] {
  display: none;
}
.high-ground-step {
  position: absolute;
  transform: translateY(calc(-1 * var(--step-rise)));
  --cap-height:clamp(1.5px,calc(var(--terrain-cell) * .035),4px);
}
.high-ground-step::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateY(var(--step-wall));
  border-radius: 1px;
  background: #17251e22;
  box-shadow: calc(var(--terrain-cell) * .09) calc(var(--terrain-cell) * .12) calc(var(--terrain-cell) * .1) #101b1680;
  opacity: var(--terrain-shadow,1);
  transition: opacity 2.1s linear;
}
.high-ground-surface {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--stone-tint), var(--stone-tint)), var(--terrain);
  box-shadow:
    inset 0 1px 0 var(--stone-rim),
    inset 1px 0 0 var(--stone-rim),
    inset -1px 0 0 #29362d88;
}
.high-ground-grid {
  position: absolute;
  inset: 0;
  clip-path: inset(var(--cap-height));
  background-image:
    linear-gradient(
      90deg,
      #e5e0c451 0 1px,
      transparent 1px),
    linear-gradient(#e5e0c451 0 1px, transparent 1px);
  background-size: var(--terrain-cell) var(--terrain-cell);
}
.high-ground-face {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: var(--step-wall);
  display: flex;
  flex-direction: column;
  background: linear-gradient(var(--stone-face), var(--stone-foot));
  box-shadow: inset 1px 0 0 #d3d0aa30, inset -1px 0 0 #23312766;
}
.high-ground-course {
  flex: 1;
  background-image:
    linear-gradient(
      90deg,
      var(--stone-joint) 0 1px,
      transparent 1px);
  background-size: var(--stone-block) 100%;
  border-bottom: 1px solid var(--stone-joint);
}
.high-ground-course:nth-child(even) {
  background-position-x: calc(var(--stone-block) * .5);
}
.high-ground-cap {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - var(--cap-height));
  height: calc(var(--cap-height) * 2);
  background: linear-gradient(var(--stone-top), var(--stone-face));
  box-shadow: inset 0 1px 0 var(--stone-rim), inset 0 -1px 0 #2c372f77;
}
body[data-environment=wasteland] .high-ground-cap {
  clip-path: polygon(0 12%, 32% 0, 64% 10%, 100% 0, 100% 90%, 68% 100%, 34% 92%, 0 100%);
}
body[data-environment=forest] .high-ground-cap {
  background-image: linear-gradient(#9eac8266, #536f4622), linear-gradient(var(--stone-top), var(--stone-face));
}
.board > button.square[data-elevation] {
  z-index: 3;
  background-color: transparent;
  background-image: none;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}
.board > .square[data-elevation="2"] {
  z-index: 4;
}
.board > .square[data-elevation].selected {
  z-index: 5;
}
.high-ground-hit {
  position: absolute;
  inset: 0;
  translate: 0 var(--ground-lift);
  pointer-events: auto;
}
.square[data-elevation]::before,
.square[data-elevation]::after {
  translate: 0 var(--ground-lift);
}
.square[data-elevation]:focus-visible {
  outline: 0;
}
.square[data-elevation]:focus-visible > .high-ground-hit {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.square[data-elevation].last-action > .high-ground-hit {
  background: #ffffff16;
}
.square[data-elevation].aura-south > .high-ground-hit {
  background-image: linear-gradient(color-mix(in srgb, var(--south-color) 14%, transparent), color-mix(in srgb, var(--south-color) 14%, transparent));
}
.square[data-elevation].aura-north > .high-ground-hit {
  background-image: linear-gradient(color-mix(in srgb, var(--north-color) 14%, transparent), color-mix(in srgb, var(--north-color) 14%, transparent));
}
.square[data-elevation].aura-south.aura-north > .high-ground-hit {
  background-image: linear-gradient(#e5e2c82b, #e5e2c82b);
}
.square[data-elevation].danger-preview > .high-ground-hit {
  background: #fa9c7040;
  box-shadow: inset 0 0 0 2px #ffb78cc0;
}
.board .square[data-elevation].friendly-fire,
.board .square[data-elevation].hero-danger {
  box-shadow: none;
}
.square[data-elevation].friendly-fire > .high-ground-hit {
  box-shadow: inset 0 0 0 3px #ffb575;
}
.square[data-elevation].hero-danger > .high-ground-hit {
  box-shadow: inset 0 0 0 4px #ff5b62, 0 0 0 2px #fff2;
}
.square[data-elevation] > .token {
  top: var(--ground-lift);
}
.square[data-elevation] > .remnants-layer {
  top: var(--ground-lift);
  bottom: calc(-1 * var(--ground-lift));
}
.high-ground-note {
  color: #e1d5b3;
  margin: 0 0 8px;
}
.remnants-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .20;
  pointer-events: none;
  overflow: hidden;
}
.square:has(> .token) > .remnants-layer {
  opacity: .12;
}
.corpse-sprite {
  position: absolute;
  width: 68%;
  height: 68%;
  bottom: -12%;
  left: calc(16% + var(--remnant-offset));
  background-size: 400% 200%;
  background-position: 0 0;
  background-repeat: no-repeat;
  filter: grayscale(1) sepia(.35);
  transform: rotate(76deg) scale(.9, .38);
}
.corpse-sprite.catapult {
  transform: rotate(18deg) scale(.9, .42);
}
@media (max-width: 740px) {
  .lobby-options {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .match-lobby {
    margin: 12px auto;
    padding: 18px;
  }
  .lobby-card {
    padding: 18px;
  }
  .match-heading {
    padding: 8px 14px;
  }
}
@media (min-width: 1050px) and (min-height: 600px) {
  .game-layout {
    grid-template-columns: minmax(0, calc(100dvh - 174px)) clamp(320px, 28vw, 440px);
  }
  .game-sidebar {
    max-height: calc(100dvh - 144px);
  }
}
.opponent-picker {
  border: 0;
  padding: 0 0 1rem;
  margin: 0 0 .5rem;
  border-bottom: 1px solid #344052;
  min-width: 0;
}
.opponent-picker legend {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .65rem;
}
.opponent-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}
.opponent-options label {
  position: relative;
  cursor: pointer;
}
.opponent-options input {
  position: absolute;
  opacity: 0;
}
.opponent-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 3.6rem;
  padding: .55rem;
  border: 1px solid #44516a;
  border-radius: 8px;
  background: #1b2634;
  font-size: .9rem;
}
.opponent-options input:checked + span {
  border-color: #9bcfff;
  background: #263f59;
  color: #e6f4ff;
}
.opponent-options input:focus-visible + span {
  outline: 3px solid #f3c97b;
  outline-offset: 3px;
}
.difficulty-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: .9rem;
}
.difficulty-options label {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .9rem;
}
.difficulty-options select {
  background: #182433;
  color: #f1f6fc;
  border: 1px solid #53647c;
  border-radius: 6px;
  padding: .4rem .6rem;
  font: inherit;
}
.opponent-note {
  font-size: .9rem;
  color: #c2d0e0;
  margin: .65rem 0 0;
  line-height: 1.5;
}
.watch-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem;
  margin: .5rem auto 1rem;
  max-width: 1600px;
  padding: 0 1rem;
  font-size: .9rem;
}
.watch-controls span {
  color: #c2d0e0;
}
.opponent-picker [hidden],
.watch-controls[hidden] {
  display: none !important;
}
@media (max-width: 540px) {
  .opponent-options {
    grid-template-columns: 1fr;
  }
  .opponent-options span {
    min-height: 2.7rem;
  }
  .difficulty-options {
    gap: .7rem;
  }
}
.square.unit-spent > .token,
.square.unit-recruit > .token {
  opacity: .68;
}
.square.unit-spent .used-mark,
.square.unit-recruit .used-mark {
  right: 1px;
  bottom: 1px;
  padding: 2px;
  border: 1px solid #abb8c8;
  font-size: clamp(12px, 1vw, 16px);
  z-index: 4;
}
.board-key,
#availability-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.legend-spent {
  color: #c5d0dc;
}
.board .square.friendly-fire {
  box-shadow: inset 0 0 0 3px #ffb575;
}
.board .square.hero-danger {
  box-shadow: inset 0 0 0 4px #ff5b62, 0 0 0 2px #fff2;
  z-index: 5;
}
.square.hero-danger > .token {
  outline: 2px solid #ff5b62;
  outline-offset: -3px;
}
.attack-preview {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #9cd5ee;
  background: #101b28;
  font-size: .875rem;
  line-height: 1.5;
}
.attack-preview.friendly-warning {
  border-color: #ffb575;
  color: #ffdab2;
}
.attack-preview.hero-warning {
  border-color: #ff5b62;
  color: #ffd3d6;
  background: #38242c;
  font-weight: 600;
}
.turn-card[data-phase=play] #end-turn {
  background: transparent;
  border-color: #46596c;
  color: #d3deea;
  min-height: 36px;
  padding: 6px 12px;
  font-weight: 500;
}
.turn-card[data-phase=play] #end-turn:hover:not(:disabled) {
  background: #263747;
}
.scorecard {
  font-size: .82rem;
  color: #c5d4e3;
  padding-left: 12px;
  border-left: 1px solid #46596c;
}
.turn-recap h3,
.rematch-panel h3 {
  margin: 0;
  font-size: .94rem;
}
.turn-recap p,
.rematch-panel p {
  font-size: .875rem;
  line-height: 1.5;
  color: #c5d0dc;
  margin: 8px 0;
}
.turn-recap summary {
  font-size: .875rem;
  cursor: pointer;
  color: #a9d9f4;
}
.turn-recap ul {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: .875rem;
  line-height: 1.5;
}
.turn-recap li + li {
  margin-top: 6px;
}
.rematch-panel {
  border-color: #67819a;
}
.rematch-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  margin: 12px 0;
  cursor: pointer;
}
.rematch-switch input {
  width: 18px;
  height: 18px;
  accent-color: #98d7ff;
}
.rematch-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .scorecard {
    width: 100%;
    border: 0;
    padding: 0;
  }
  .board-footer {
    align-items: flex-start;
  }
  .board-key {
    justify-content: flex-end;
    max-width: 58%;
    font-size: 12px;
  }
  .turn-recap,
  .rematch-panel {
    grid-column: 1 / -1;
  }
}
.catapult-choices button[aria-pressed=true]:hover:not(:disabled) {
  background: var(--south-color);
  color: #101820;
}
.token.race-unit .sprite-window {
  overflow: visible;
}
.token.race-unit:not(.portrait) {
  container-type: inline-size;
  container-name: unit-art;
}
@container unit-art (max-width:192px) {
  .token.race-unit:not(.portrait) > .sprite-window > :is(.motion-sprite, .unit-sprite, .death-sprite) {
    --sampled-idle:var(--race-idle-medium);
    --sampled-walk:var(--race-walk-medium);
    --sampled-attack:var(--race-attack-medium);
    --sampled-death:var(--race-death-medium);
  }
}
@container unit-art (max-width:96px) {
  .token.race-unit:not(.portrait) > .sprite-window > :is(.motion-sprite, .unit-sprite, .death-sprite) {
    --sampled-idle:var(--race-idle-small);
    --sampled-walk:var(--race-walk-small);
    --sampled-attack:var(--race-attack-small);
    --sampled-death:var(--race-death-small);
  }
}
.token.race-unit .motion-sprite,
.token.race-unit .unit-sprite,
.token.race-unit .death-sprite {
  inset: auto;
  transform: none;
  animation: none;
  translate: 0 0;
}
.battle-unit.stealth-shimmer {
  opacity: .18;
  filter: brightness(2) drop-shadow(0 0 4px #bdedff);
}
.battle-shockwave {
  position: absolute;
  border-radius: 50%;
  border: 3px solid #efbc74;
  box-shadow: 0 0 6px #f6d498, 0 0 14px #cc713b;
  pointer-events: none;
}
#race-options .button[aria-pressed=true] {
  border-color: var(--setup-accent,var(--blue));
  background: #334356;
}
#race-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#race-options .button:last-child {
  grid-column: 1 / -1;
}
@media (prefers-reduced-motion: reduce) {
  .battle-unit.stealth-shimmer {
    filter: none;
  }
}
.ent-obstacle {
  position: absolute;
  width: 92%;
  height: 112%;
  left: 4%;
  bottom: calc(-2% - var(--ground-lift,0px));
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 2px #0009);
}
.ent-obstacle svg {
  display: block;
  width: 100%;
  height: 100%;
}
.unit-roots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
  filter: drop-shadow(0 0 3px #a7ce5b55);
}
.root-shadow {
  stroke: #203521;
  stroke-width: 7;
}
.root-vines {
  stroke: #91b55d;
  stroke-width: 3;
}
.rooted .unit-roots {
  animation: root-rise .5s ease-out, root-breathe 2.6s .5s ease-in-out infinite;
  transform-origin: 50% 95%;
}
.roots-note {
  color: #b8d995;
}
.roots-impact {
  border-color: #a8d577;
  background: #699d4d55;
  box-shadow: 0 0 15px #9cce7077;
}
.battle-tree {
  position: absolute;
  display: block;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
  transform-origin: 50% 95%;
}
.battle-tree .ent-obstacle {
  bottom: -2%;
}
.battle-projectile.bolt,
.battle-projectile.flame {
  color: #d8e8b9;
  height: auto !important;
  filter: drop-shadow(0 1px 2px #000);
}
.battle-projectile.bolt svg,
.battle-projectile.flame svg,
.battle-projectile.glaive svg {
  width: 100%;
  display: block;
}
.battle-projectile.flame {
  color: #ffe2a1;
  filter: drop-shadow(-4px 0 3px #ff5d21) drop-shadow(-8px 0 6px #dd3017);
}
.battle-projectile.glaive svg {
  animation: glaive-spin .35s linear infinite;
}
@keyframes root-rise {
  from {
    opacity: 0;
    scale: .45 .05;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
@keyframes root-breathe {
  0%, 100% {
    opacity: .8;
  }
  50% {
    opacity: 1;
  }
}
@keyframes glaive-spin {
  to {
    rotate: 360deg;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rooted .unit-roots,
  .battle-projectile.glaive svg {
    animation: none;
  }
}
.token.burrowed .sprite-window {
  opacity: .12;
  translate: 0 24%;
  scale: .7;
}
.token.burrowed::after {
  content: "";
  position: absolute;
  width: 65%;
  height: 18%;
  left: 17.5%;
  bottom: 9%;
  border: 2px dashed #96806d;
  border-radius: 50%;
  background: #322d26aa;
}
.battle-pulse.burrow-impact {
  border: 4px dashed #8e7355;
  background: #73563855;
  border-radius: 50%;
  scale: 1 .3;
}
.battle-hook-chain {
  height: 4px !important;
  width: 0;
  transform-origin: left center;
  background:
    repeating-linear-gradient(
      90deg,
      #d1d5d0 0 4px,
      #535b58 4px 7px);
  border: 1px solid #303431;
}
.battle-hook,
.battle-hook-chain {
  position: absolute;
  display: block;
  pointer-events: none;
  z-index: 3;
}
.battle-hook {
  color: #cad2ce;
  transform: translate(-50%, -50%);
}
.battle-hook svg {
  width: 100%;
  height: 100%;
}
.battle-projectile.fireball {
  width: 65px;
  height: 32px;
  filter: drop-shadow(0 0 6px currentColor);
}
.fire-trail {
  position: absolute;
  inset: 32% 8% 4%;
  pointer-events: none;
  z-index: 3;
  opacity: .82;
  filter: drop-shadow(0 0 5px #ff832a);
}
.fire-trail svg {
  width: 100%;
  height: 100%;
}
.fire-hazard {
  box-shadow: inset 0 -5px 9px #ef65284d;
}
.token .poison-status,
.token .ghoul-status {
  position: absolute;
  right: 2%;
  top: 6%;
  font-size: clamp(10px, 1.2vw, 17px);
  line-height: 1;
  background: #192516db;
  border: 1px solid #accb71;
  border-radius: 50%;
  color: #c9ee84;
  padding: 2px;
  z-index: 8;
}
.token .ghoul-status {
  left: 1%;
  right: auto;
  color: #d5e5ff;
  border-color: #a9c5ef;
  background: #142033db;
}
.token.poisoned .sprite-window {
  filter: drop-shadow(0 0 3px #95c34d);
}
.poison-note {
  color: #d8e997;
}
.battle-projectile.venom {
  color: #a4d54e;
  width: calc(var(--terrain-cell)*.44) !important;
}
.battle-projectile.frost {
  color: #b6e8ff;
  width: calc(var(--terrain-cell)*.65) !important;
}
.battle-pulse.resurrection-impact {
  border: 3px solid #b8ddff;
  background: #89c4e744;
}
.battle-pulse.poison-impact {
  border: 3px solid #b8d764;
  background: #8fb44544;
}
.battle-pulse.fire-impact {
  border: 3px solid #ff9d58;
  background: #eb733f66;
}
#selection-art[role=button] {
  cursor: pointer;
}
#selection-art[role=button]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.summoned-mountain {
  --mountain-earth:#535a53;
  --mountain-rim:#a6ab9b;
}
.board[data-environment=wasteland] .summoned-mountain,
body[data-environment=wasteland] .board:not([data-environment]) .summoned-mountain {
  --mountain-earth:#87603c;
  --mountain-rim:#bd9766;
}
.board[data-environment=forest] .summoned-mountain,
body[data-environment=forest] .board:not([data-environment]) .summoned-mountain {
  --mountain-earth:#47503a;
  --mountain-rim:#85906b;
}
.board .summoned-mountain .high-ground-surface,
.board[data-landscape=true][data-scenery-level=citadel] .summoned-mountain .high-ground-surface {
  background: none;
  box-shadow: none;
  z-index: 1;
}
.summoned-mountain .high-ground-grid {
  opacity: .48;
}
.summoned-mountain .landform-mesh {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}
.summoned-mountain .landform-south,
.summoned-mountain .landform-se {
  filter: brightness(.73);
}
.summoned-mountain .landform-west,
.summoned-mountain .landform-sw {
  filter: brightness(.85);
}
.summoned-mountain .landform-north,
.summoned-mountain .landform-ne {
  filter: brightness(1.13);
}
.high-ground-step::before {
  display: none;
}
.high-ground-step .landform-mesh {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}
.high-ground-step .high-ground-grid {
  opacity: .26;
}
.complete-landform .high-ground-surface {
  box-shadow: inset 0 1px 2px #adb6b436, inset 0 -1px 2px #26333855;
}
.complete-landform[data-material=citadel] .high-ground-grid {
  opacity: .12;
}
.high-ground-step .landform-face {
  filter: saturate(var(--relief-saturation,1)) brightness(var(--relief-face,.86));
  transition: filter .6s;
}
.high-ground-step .landform-west,
.high-ground-step .landform-nw {
  filter: saturate(var(--relief-saturation,1)) brightness(var(--relief-west,.82));
}
.high-ground-step .landform-east,
.high-ground-step .landform-ne {
  filter: saturate(var(--relief-saturation,1)) brightness(var(--relief-east,.82));
}
.high-ground-step .landform-north {
  filter: saturate(var(--relief-saturation,1)) brightness(var(--relief-north,.95));
}
.high-ground-step .landform-south,
.high-ground-step .landform-se,
.high-ground-step .landform-sw {
  filter: saturate(var(--relief-saturation,1)) brightness(var(--relief-south,.7));
}
.high-ground-step[data-material=citadel] {
  --relief-saturation:.3;
  --mountain-seam:#29332e;
}
.high-ground-step[data-material=citadel] .landform-rubble {
  filter: saturate(.3) brightness(.85);
}
.relief-shadow {
  position: absolute;
  pointer-events: none;
  left: calc(var(--step-wall) * var(--relief-left,0));
  top: var(--step-wall);
  width: calc(100% + var(--step-wall) * var(--relief-absX,.4) + var(--terrain-cell) * .3);
  height: calc(100% + var(--step-wall) * var(--relief-y,.3) + var(--terrain-cell) * .15);
  margin-left: calc(var(--terrain-cell) * -.15);
  transform: scaleX(var(--relief-sign,1));
  opacity: var(--relief-opacity,.25);
  filter: blur(var(--relief-blur,2px));
  transition:
    width .5s,
    height .5s,
    left .5s,
    opacity .5s;
}
.relief-shadow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #251e15;
  clip-path: polygon(0 0, calc(100% - var(--step-wall) * var(--relief-absX,.4)) 0, 100% calc(var(--step-wall) * var(--relief-y,.3)), 100% 100%, calc(var(--step-wall) * var(--relief-absX,.4)) 100%, 0 calc(100% - var(--step-wall) * var(--relief-y,.3)));
}
@property --terrain-foreground { syntax:"<number>";inherits:false;initial-value:0 }
.movement-route-overlay .terrain-route-transition {
  fill: none;
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 6 4;
}
.movement-route-overlay .terrain-route-cue rect {
  fill: #17221ff5;
  stroke-width: 1.3;
}
.movement-route-overlay .terrain-route-cue text {
  font: 700 11px system-ui;
}
.terrain-route-stops .route-step {
  fill: #101923;
  stroke-width: 1.3;
}
.terrain-route-stops text {
  font-weight: 650;
  fill: #f5faff;
}
.kingdom-tile-status .kingdom-health {
  opacity: .55;
}
.painted-landform .relief-shadow {
  display: none;
}
.painted-landform .high-ground-surface {
  background-image: none;
  box-shadow: none;
}
.painted-landform .high-ground-grid {
  display: none;
}
.board[data-terrain-appearance=painted] > button.square:not(.friendly-fire, .hero-danger) {
  box-shadow: inset -1px -1px 0 #eadfc338;
}
.painted-terrace-art {
  position: absolute;
  inset: calc(-1 * var(--painted-outset-top)) calc(-1 * var(--painted-outset-side)) calc(-1 * var(--painted-outset-bottom));
  pointer-events: none;
  border-style: solid;
  border-color: transparent;
  border-width: var(--painted-border-top) var(--painted-border-side) var(--painted-border-bottom);
  border-image-source: url(./assets/terrain/painted-desert-plateau-study.png);
  border-image-slice: 150 140 400 140 fill;
  border-image-repeat: stretch;
  filter: saturate(.65) brightness(.9);
}
.sandbox-terrain-study {
  padding: 12px;
  border: 1px solid #bda16a77;
  background: #29251d;
  margin-bottom: 12px;
}
.sandbox-terrain-study button {
  margin: 4px 4px 0 0;
}
.painted-terrain-top {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.painted-top-rim {
  stroke: #b1b7a37a;
}
.painted-landform[data-material=citadel] .painted-terrace-art {
  filter: grayscale(.9) saturate(.35) brightness(.95);
}
.painted-landform[data-material=forest] .painted-terrace-art {
  filter: sepia(.25) hue-rotate(28deg) saturate(.45) brightness(.73);
}
.painted-landform[data-material=forest] .painted-top-rim {
  stroke: #82945b8a;
}
.citadel-lookout .high-ground-surface {
  background: none !important;
  box-shadow: none;
}
.painted-lookout-art {
  position: absolute;
  inset: calc(-1 * var(--lookout-top)) calc(-1 * var(--lookout-right)) calc(-1 * var(--lookout-bottom)) calc(-1 * var(--lookout-left));
  pointer-events: none;
  border-style: solid;
  border-color: transparent;
  border-width: var(--lookout-top) var(--lookout-right) var(--lookout-bottom) var(--lookout-left);
  border-image-source: url(./assets/terrain/painted-citadel-lookout-v1.png);
  border-image-repeat: stretch;
  filter: saturate(.7) brightness(.86);
}
.summoned-earth-top .summoned-earth {
  filter: saturate(.42) brightness(.73);
}
.painted-landform[data-material=citadel] .summoned-earth-top .summoned-earth {
  filter: saturate(.18) brightness(.7);
}
.painted-landform[data-material=forest] .summoned-earth-top .summoned-earth {
  filter: saturate(.36) brightness(.58);
}

/* dist/client/landscape-atmosphere.css */
.scenery .landscape-weather-dormant,
.scenery .landscape-weather-dormant span {
  animation-play-state: paused !important;
}
.scenery-paused .scenery span {
  animation-play-state: paused !important;
}
.board[data-landscape=true] .scenery-light > .landscape-ground-detail {
  inset: 0;
  overflow: hidden;
}
.board[data-landscape=true] .landscape-ground-detail > span {
  position: absolute;
}
.board[data-landscape=true] .landscape-edge-depth {
  inset: 0;
  background:
    radial-gradient(
      ellipse at 48% 46%,
      transparent 28%,
      #09151618 65%,
      #050e1459 100%);
}
.board[data-landscape=true] .scenery-moon {
  background-image: linear-gradient(#91b9d0, #7094b5), var(--terrain);
  filter: saturate(.65) contrast(1.09) brightness(1.17);
  mask-image:
    linear-gradient(
      140deg,
      #000 5%,
      #000e6 28%,
      #00080 62%,
      #00018 100%);
  -webkit-mask-image:
    linear-gradient(
      140deg,
      #000 5%,
      #000e6 28%,
      #00080 62%,
      #00018 100%);
}
.board[data-landscape=true] .scenery-warm {
  background:
    linear-gradient(
      140deg,
      #f7d190,
      #db916343 45%,
      #42578755 90%);
  mix-blend-mode: soft-light;
}
.board[data-landscape=true] .landscape-directional-light {
  inset: 0;
  background:
    linear-gradient(
      140deg,
      #bfd2df25,
      transparent 42%,
      #17234c22);
  opacity: var(--landscape-moon);
  mix-blend-mode: screen;
}
.board[data-landscape=true] .landscape-golden-light {
  inset: 0;
  opacity: var(--landscape-golden);
  mix-blend-mode: screen;
  background:
    linear-gradient(
      130deg,
      #ffe8a174,
      transparent 43%,
      #51649e1c);
}
.board[data-landscape=true] .landscape-sun-patch,
.board[data-landscape=true] .landscape-pool-glint,
.board[data-landscape=true] .landscape-pool-ripple,
.board[data-landscape=true] .landscape-torch-pool,
.board[data-landscape=true] .landscape-torch-flame,
.board[data-landscape=true] .landscape-snow-landing,
.board[data-landscape=true] .landscape-snow-rest,
.board[data-landscape=true] .landscape-flood-eddy {
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  transform: translate(-50%, -50%);
  animation-delay: var(--delay);
  animation-duration: var(--duration);
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.board[data-landscape=true] .landscape-canopy-shadow {
  inset: -5%;
  background:
    radial-gradient(
      ellipse at 8% 13%,
      #03170eb3 0 3%,
      transparent 8%),
    radial-gradient(
      ellipse at 20% 12%,
      #08221566 0 3%,
      transparent 8%),
    radial-gradient(
      ellipse at 11% 27%,
      #071c1499 0 5%,
      transparent 11%),
    radial-gradient(
      ellipse at 84% 15%,
      #041b147a 0 4%,
      transparent 11%),
    radial-gradient(
      ellipse at 95% 31%,
      #052218b3 0 5%,
      transparent 11%),
    radial-gradient(
      ellipse at 13% 77%,
      #071a1599 0 4%,
      transparent 11%),
    radial-gradient(
      ellipse at 73% 91%,
      #021c1477 0 4%,
      transparent 11%);
  opacity: calc(.25 + var(--landscape-sun) * .28);
  animation: landscape-canopy-breathe 22s ease-in-out infinite alternate;
  mix-blend-mode: multiply;
}
.board[data-landscape=true] .landscape-sun-patch {
  background:
    radial-gradient(
      ellipse,
      #f5eaa846 0%,
      #cce29726 34%,
      transparent 72%);
  opacity: var(--landscape-sun);
  mix-blend-mode: screen;
  animation-name: landscape-dapple-sway;
}
.board[data-landscape=true] .landscape-pool-glint {
  background:
    radial-gradient(
      ellipse at 40% 38%,
      #d3edf457,
      transparent 65%);
  border-radius: 47% 53% 60% 40% / 50% 65% 35% 50%;
  opacity: calc(.18 + var(--landscape-wet) * .35 + var(--landscape-moon) * .30);
  mix-blend-mode: screen;
  animation-name: landscape-water-shimmer;
}
.board[data-landscape=true] .landscape-pool-ripple {
  border: 1px solid #d7eefb7a;
  border-radius: 50%;
  opacity: var(--landscape-wet);
  animation-name: landscape-pool-ring;
  animation-duration: 4.2s;
  width: calc(var(--w) * .55);
  height: calc(var(--h) * .55);
}
.board[data-landscape=true][data-scenery-level=citadel] .scenery-lamps {
  opacity: 0;
}
.board[data-landscape=true] .landscape-torch-pool {
  background:
    radial-gradient(
      ellipse,
      #fff3b5b5 0%,
      #eeb96270 13%,
      #ee933940 32%,
      transparent 70%);
  opacity: calc(.08 + var(--landscape-night) * .80);
  mix-blend-mode: screen;
  animation-name: landscape-torch-glow;
  animation-duration: 4.2s;
}
.board[data-landscape=true] .landscape-torch-flame {
  background:
    radial-gradient(
      ellipse at 50% 68%,
      #ffffdd 0%,
      #ffcf6c 34%,
      #f98d21 60%,
      transparent 77%);
  border-radius: 48% 48% 40% 40%;
  filter: drop-shadow(0 0 3px #ffc051);
  opacity: calc(.38 + var(--landscape-night) * .55);
  animation-name: landscape-flame;
  animation-duration: 1.6s;
}
.board[data-landscape=true] .landscape-wet-stones {
  inset: 0;
  background-image:
    linear-gradient(
      140deg,
      #8fa9b4,
      #172838),
    var(--terrain);
  background-size: cover;
  background-blend-mode: color;
  filter: contrast(1.4) brightness(1.04);
  mask-image:
    radial-gradient(
      ellipse at 28% 42%,
      #0008 0%,
      transparent 24%),
    radial-gradient(
      ellipse at 70% 65%,
      #0009,
      transparent 32%);
  -webkit-mask-image:
    radial-gradient(
      ellipse at 28% 42%,
      #0008 0%,
      transparent 24%),
    radial-gradient(
      ellipse at 70% 65%,
      #0009,
      transparent 32%);
  opacity: calc(var(--landscape-wet) * .47);
  mix-blend-mode: screen;
}
.board[data-landscape=true] .landscape-snow-cover {
  inset: 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  filter: brightness(var(--landscape-snow-brightness));
  transition: opacity 1.6s ease, filter .55s linear !important;
}
.board[data-landscape=true] .landscape-snow-tier-0 {
  opacity: var(--landscape-snow-edge);
}
.board[data-landscape=true] .landscape-snow-tier-1 {
  opacity: var(--landscape-snow-path);
}
.board[data-landscape=true] .landscape-snow-tier-2 {
  opacity: var(--landscape-snow-deep);
}
.board[data-landscape=true][data-scenery-level=citadel] .high-ground-layer {
  z-index: 1;
  filter: brightness(var(--landscape-object-brightness,1));
}
.board[data-landscape=true][data-scenery-level=citadel] .high-ground-surface {
  background-image: none;
}
.board[data-landscape=true] .landscape-snow-melt {
  inset: 0;
  background-image:
    linear-gradient(
      135deg,
      #a3c4d0,
      #324756),
    var(--terrain);
  background-size: cover;
  background-blend-mode: color;
  mask-image:
    radial-gradient(
      ellipse at 17% 28%,
      #000 0%,
      transparent 24%),
    radial-gradient(
      ellipse at 82% 76%,
      #000,
      transparent 30%),
    radial-gradient(
      ellipse at 56% 7%,
      #000,
      transparent 25%);
  -webkit-mask-image:
    radial-gradient(
      ellipse at 17% 28%,
      #000 0%,
      transparent 24%),
    radial-gradient(
      ellipse at 82% 76%,
      #000,
      transparent 30%),
    radial-gradient(
      ellipse at 56% 7%,
      #000,
      transparent 25%);
  opacity: calc(var(--landscape-snow-melt) * .34);
  mix-blend-mode: screen;
  transition: opacity 1.6s ease !important;
}
.board[data-landscape=true] .landscape-snow-field {
  inset: -22%;
  transform: rotate(calc(var(--landscape-snow-slant) * -1));
  transition: transform 1.6s ease, opacity .7s ease;
}
.board[data-landscape=true] .landscape-snow-storm-veil {
  inset: 0;
  background:
    linear-gradient(
      120deg,
      #29485cd9,
      #526d8299 48%,
      #2d4c62cc);
  opacity: var(--landscape-snow-storm-opacity,0);
  transition: opacity .8s ease;
}
.board[data-landscape=true] .landscape-snow-spindrift {
  inset: -18%;
  background:
    radial-gradient(
      ellipse at 12% 28%,
      #e3eefbd1,
      transparent 48%),
    radial-gradient(
      ellipse at 77% 64%,
      #dce9f4b3,
      transparent 46%),
    linear-gradient(
      135deg,
      transparent 22%,
      #e3edf977 43%,
      transparent 67%);
  opacity: var(--landscape-snow-spindrift,0);
  transform-origin: center;
  animation: landscape-snow-spindrift 18s linear infinite;
  transition: opacity .8s ease;
}
.board[data-landscape=true][data-landscape-still=true] .landscape-snow-spindrift {
  animation-play-state: paused;
}
.board[data-landscape=true] .landscape-snow-gust-field {
  animation: landscape-snow-gust-sway 24s ease-in-out infinite alternate;
}
.board[data-landscape=true] .landscape-snow-flakes {
  inset: -192px 0 0;
  background-repeat: repeat;
  background-size: 192px 192px;
  animation: landscape-snow-fall var(--snow-duration) linear var(--snow-delay) infinite;
  transition: opacity .7s ease;
}
.board[data-landscape=true] .landscape-snow-crystal {
  width: 2px;
  height: 2px;
  border-radius: 45%;
  background: #edf4fa;
  animation: landscape-snow-land var(--duration) linear var(--delay) infinite;
}
.board[data-landscape=true] .landscape-snow-speck {
  inset: 0;
  background: #dceaf2;
  border-radius: 50%;
  animation: landscape-snow-settle var(--duration) linear var(--delay) infinite;
}
.board[data-landscape=true] .landscape-desert-relief {
  inset: 0;
  mix-blend-mode: soft-light;
  background:
    linear-gradient(
      135deg,
      #ebd7a341,
      transparent 45%,
      #3a162351);
  opacity: calc(.3 + var(--landscape-sun) * .45);
}
.board[data-landscape=true] .landscape-dust-veil {
  inset: 0;
  background:
    linear-gradient(
      110deg,
      #d8bd87e8,
      #d1b381d1 42%,
      #b89a6cba);
  opacity: var(--landscape-dust-opacity);
  transition: opacity .8s ease;
}
.board[data-landscape=true] .landscape-sand-field {
  inset: -18%;
  overflow: visible;
  transform: rotate(var(--landscape-wind-angle));
  transform-origin: 50% 50%;
  transition: opacity .5s linear;
  animation: landscape-wind-heading 180s ease-in-out infinite alternate;
}
.board[data-landscape=true] .landscape-sand-grains {
  inset: 0 -192px 0 0;
  background-repeat: repeat;
  background-size: 192px 192px;
  animation: landscape-grain-drift var(--grain-duration) linear var(--grain-delay) infinite;
  transition: opacity .5s linear;
}
.board[data-landscape=true] .landscape-flood-water {
  inset: 0;
  opacity: var(--landscape-event,0);
  background:
    radial-gradient(
      ellipse at 32% 30%,
      #4b849e77 0%,
      #466d8d35 17%,
      transparent 29%),
    radial-gradient(
      ellipse at 70% 70%,
      #397b9277 0%,
      #385d8840 20%,
      transparent 34%),
    radial-gradient(
      ellipse at 20% 77%,
      #527d9680 0%,
      #41688e33 14%,
      transparent 26%),
    radial-gradient(
      ellipse at 75% 28%,
      #528d9f77 0%,
      #41658e33 15%,
      transparent 24%);
  mix-blend-mode: screen;
}
.board[data-landscape=true] .landscape-flood-eddy {
  opacity: var(--landscape-event,0);
  background:
    repeating-radial-gradient(
      ellipse,
      transparent 0 11%,
      #b9dfec2b 12% 13%,
      transparent 14% 26%);
  border-radius: 50%;
  mask-image:
    radial-gradient(
      ellipse,
      #0009,
      transparent 72%);
  -webkit-mask-image:
    radial-gradient(
      ellipse,
      #0009,
      transparent 72%);
  animation-name: landscape-flood-flow;
}
.board[data-landscape=true][data-landscape-event=none] .landscape-flood-eddy {
  animation-play-state: paused;
}
@keyframes landscape-canopy-breathe {
  from {
    transform: translate(-.9%, -.3%) rotate(-.4deg);
  }
  to {
    transform: translate(.8%, .5%) rotate(.5deg);
  }
}
@keyframes landscape-dapple-sway {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(-9deg);
  }
  50% {
    transform: translate(-45%, -48%) rotate(-5deg);
  }
}
@keyframes landscape-water-shimmer {
  0%, 100% {
    transform: translate(-50%, -50%) scale(.92, 1);
  }
  50% {
    transform: translate(-49%, -50%) scale(1.06, .92);
  }
}
@keyframes landscape-pool-ring {
  0% {
    transform: translate(-50%, -50%) scale(.1);
    opacity: 0;
  }
  15% {
    opacity: calc(var(--landscape-wet) * .6);
  }
  80%, 100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}
@keyframes landscape-torch-glow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  47% {
    transform: translate(-50%, -50%) scale(.94, 1.03);
  }
  71% {
    transform: translate(-50%, -50%) scale(1.04, .98);
  }
}
@keyframes landscape-flame {
  0%, 100% {
    transform: translate(-50%, -50%) scale(.9, 1.03) rotate(-3deg);
  }
  40% {
    transform: translate(-50%, -50%) scale(1.04, .84) rotate(4deg);
  }
  75% {
    transform: translate(-50%, -50%) scale(.86, 1.09) rotate(-5deg);
  }
}
@keyframes landscape-wind-heading {
  from {
    transform: rotate(calc(var(--landscape-wind-angle) - 3deg));
  }
  to {
    transform: rotate(calc(var(--landscape-wind-angle) + 3deg));
  }
}
@keyframes landscape-grain-drift {
  from {
    transform: translateX(-192px);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes landscape-snow-fall {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(192px);
  }
}
@keyframes landscape-snow-gust-sway {
  from {
    transform: rotate(calc(var(--landscape-snow-slant) * -1 - 2deg));
  }
  to {
    transform: rotate(calc(var(--landscape-snow-slant) * -1 + 2deg));
  }
}
@keyframes landscape-snow-spindrift {
  0% {
    opacity: 0;
    transform: translate(calc(var(--landscape-wind-x) * -8%), -4%);
  }
  18%, 78% {
    opacity: var(--landscape-snow-spindrift,0);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--landscape-wind-x) * 8%), 5%);
  }
}
@keyframes landscape-snow-land {
  0% {
    transform: translate(calc(var(--landscape-wind-x) * -18px), calc(var(--snow-fall) * -1));
    opacity: 0;
  }
  12% {
    opacity: .9;
  }
  38% {
    transform: translate(calc(var(--landscape-wind-x) * -8px), calc(var(--snow-fall) * -.55));
    opacity: 1;
  }
  72% {
    transform: translate(0, 0);
    opacity: 1;
  }
  76%, 100% {
    transform: translate(0, 0);
    opacity: 0;
  }
}
@keyframes landscape-snow-settle {
  0%, 70% {
    opacity: 0;
  }
  73%, 88% {
    opacity: .88;
  }
  100% {
    opacity: 0;
  }
}
@keyframes landscape-flood-flow {
  0%, 100% {
    transform: translate(-51%, -50%) scale(1, 1.04) rotate(-4deg);
  }
  50% {
    transform: translate(-48%, -48%) scale(1.05, .96) rotate(3deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .board[data-landscape=true] .scenery span {
    animation: none !important;
    transition: none !important;
  }
  .board[data-landscape=true] .landscape-pool-ripple {
    display: none;
  }
  .board[data-landscape=true] .landscape-snow-cover,
  .board[data-landscape=true] .landscape-snow-melt {
    transition: none !important;
  }
}
.board[data-landscape=true] .landscape-forest-pond {
  transform: translate(-50%, -50%);
  background: url(./assets/landscape-weather/forest-pond-v1.webp) center/100% 100% no-repeat;
  filter: brightness(calc(.47 + var(--landscape-sun,1) * .53)) saturate(.92);
  transition: filter .55s linear;
  isolation: isolate;
}
.landscape-pond-surface {
  inset: 0;
  overflow: hidden;
  clip-path: polygon(33.756% 16.222%, 45.156% 17.667%, 48.063% 26.333%, 54.62% 35.111%, 64.978% 41.111%, 71.311% 36.333%, 79.583% 37.333%, 85.693% 41.667%, 89.27% 48.667%, 88.45% 57.778%, 84.501% 65.667%, 76.826% 68.778%, 70.045% 73.111%, 66.095% 79.111%, 58.346% 83.222%, 47.317% 85.333%, 37.109% 82.778%, 28.39% 77.667%, 21.833% 72.444%, 18.331% 63.778%, 16.542% 53.889%, 14.456% 45%, 15.574% 37%, 19.747% 28.444%, 26.155% 22.556%);
}
.landscape-pond-reflection {
  inset: 0;
  background:
    radial-gradient(
      ellipse at 40% 35%,
      #b6d9bf3b,
      transparent 32%),
    linear-gradient(
      150deg,
      transparent 28%,
      #c2e6d020 42%,
      transparent 49%,
      #a8d3d822 67%,
      transparent 75%);
  opacity: calc(.30 + var(--landscape-wet,0) * .25);
  animation: landscape-pond-shimmer 18s ease-in-out infinite alternate;
}
.landscape-lily-pad {
  aspect-ratio: 1;
  background: url(./assets/landscape-weather/forest-pond-lily-v1.webp) center/contain no-repeat;
  transform-origin: center;
  animation: landscape-lily-drift var(--pad-duration) ease-in-out var(--pad-delay) infinite alternate;
}
.landscape-pond-raindrop {
  width: 13%;
  height: 12%;
  opacity: clamp(0, calc((var(--landscape-wet,0) - var(--pond-drop-threshold)) * 4), 1);
}
.landscape-pond-wave {
  inset: 0;
  border: 1px solid #c9e6d678;
  border-radius: 50%;
  animation: landscape-pond-rain-ring var(--pond-drop-duration) ease-out var(--pond-drop-delay) infinite;
}
.water-surface-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.water-contact-layer {
  position: absolute;
  z-index: 25;
  pointer-events: none;
}
.water-contact-layer[hidden],
.board[data-scenery-mode=off] .water-contact-layer {
  display: none;
}
.board[data-water-gpu] .landscape-pond-surface {
  visibility: hidden;
}
.board[data-scenery-mode=off] .water-surface-layer {
  display: none;
}
.board[data-landscape-still=true] .landscape-pond-wave {
  animation-play-state: paused;
}
@keyframes landscape-lily-drift {
  from {
    transform: translate(-52%, -49%) rotate(var(--pad-angle));
  }
  to {
    transform: translate(-42%, -40%) rotate(calc(var(--pad-angle) + 9deg));
  }
}
@keyframes landscape-pond-shimmer {
  from {
    transform: translate(-1%, 1%) scale(.98, 1.03);
  }
  to {
    transform: translate(2%, -1%) scale(1.03, .98);
  }
}
@keyframes landscape-pond-rain-ring {
  0% {
    transform: translate(-50%, -50%) scale(.10);
    opacity: 0;
  }
  12% {
    opacity: .9;
  }
  64%, 100% {
    transform: translate(-50%, -50%) scale(calc(1.15 + var(--landscape-wet,0) * .85));
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .landscape-forest-pond,
  .landscape-forest-pond * {
    animation: none !important;
    transition: none !important;
  }
  .landscape-pond-raindrop {
    display: none;
  }
}
.landscape-tumbleweed-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.landscape-tumbleweed-runner {
  position: absolute;
  left: -8%;
  width: calc(50% / var(--board-size));
  height: calc(50% / var(--board-size));
  animation: landscape-tumbleweed-travel 120s linear -60s infinite;
}
.landscape-tumbleweed-runner .landscape-tumbleweed {
  width: 100% !important;
  height: 100% !important;
  bottom: 0;
  animation: landscape-tumbleweed-spin 120s linear -60s infinite;
}
@keyframes landscape-tumbleweed-travel {
  0%, 2% {
    transform: translateX(0);
    opacity: 0;
  }
  2.1% {
    opacity: 1;
    animation-timing-function: ease-out;
  }
  5%, 7% {
    transform: translateX(calc(var(--scenery-width) * .28));
    opacity: 1;
    animation-timing-function: ease-in-out;
  }
  10%, 13% {
    transform: translateX(calc(var(--scenery-width) * .52));
    opacity: 1;
    animation-timing-function: ease-in;
  }
  19% {
    transform: translateX(calc(var(--scenery-width) * 1.17));
    opacity: 1;
  }
  19.1%, 100% {
    transform: translateX(calc(var(--scenery-width) * 1.17));
    opacity: 0;
  }
}
@keyframes landscape-tumbleweed-spin {
  0%, 2% {
    transform: translateX(-50%) rotate(0);
    animation-timing-function: ease-out;
  }
  5%, 7% {
    transform: translateX(-50%) rotate(780deg);
    animation-timing-function: ease-in-out;
  }
  10%, 13% {
    transform: translateX(-50%) rotate(1450deg);
    animation-timing-function: ease-in;
  }
  19%, 100% {
    transform: translateX(-50%) rotate(3260deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .landscape-tumbleweed-track {
    display: none;
  }
}
.landscape-tumbleweed {
  left: 50%;
  background: url(./assets/landscape-weather/tumbleweed-v1.webp) center/contain no-repeat;
  filter: brightness(var(--landscape-object-brightness,1)) saturate(var(--landscape-object-saturation,1));
}
.board[data-landscape=true] .landscape-tumbleweed-track {
  transform: scaleX(var(--landscape-wind-sign,1));
}
.rain-air-layer,
.rain-ground-layer {
  position: absolute;
  pointer-events: none;
}
.rain-air-layer {
  z-index: 28;
}
.rain-ground-layer {
  z-index: 0;
}
.rain-air-layer[hidden],
.rain-ground-layer[hidden] {
  display: none;
}
.board[data-rain-gpu=true] :is(.scenery-rain, .scenery-impact) {
  visibility: hidden;
  animation-play-state: paused !important;
}
.board[data-rain-gpu=true] :is(.scenery-rain, .scenery-impact) > .scenery-ink {
  animation-play-state: paused !important;
}

/* dist/client/night-lighting.css */
.board[data-night-lighting] .scenery-light > .night-light-additions {
  inset: 0;
  overflow: hidden;
}
.night-light-additions > .night-deeper-shade {
  inset: 0;
  background:
    linear-gradient(
      135deg,
      #030b15,
      #020a09 67%);
  opacity: calc(var(--landscape-night)*.34);
}
.board[data-night-lighting][data-scenery-level=forest] .night-deeper-shade {
  background:
    radial-gradient(
      ellipse 14% 10% at 78% 67%,
      transparent 22%,
      #020a0970 58%,
      #020a09 100%);
}
.board[data-scenery-level=citadel] .night-deeper-shade {
  opacity: calc(var(--landscape-night)*.035);
}
.board > .night-surface-light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  mix-blend-mode: color-dodge;
  opacity: calc(var(--landscape-night)*.94);
  pointer-events: none;
}
.night-surface-light[hidden],
.night-wisp-cores[hidden],
.night-roaming-wisp[hidden] {
  display: none;
}
.board > .night-wisp-cores {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.board > .night-wisp-cores-behind {
  z-index: 0;
}
.night-roaming-wisp {
  position: absolute;
  width: .75%;
  height: 1%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse,
      #eefff6 0%,
      #adf4eacc 25%,
      #6ac5d666 57%,
      transparent 75%);
  box-shadow: 0 0 8.75px 3.75px #7ae6df45;
  transition: left 80ms linear, top 80ms linear;
}
.board[data-night-lighting][data-scenery-level=forest] .scenery-moon {
  opacity: calc(var(--scenery-moon)*.30);
}
.board[data-night-lighting][data-scenery-level=forest] .landscape-directional-light {
  opacity: calc(var(--landscape-moon)*.25);
}
.board[data-night-lighting][data-scenery-level=forest] .scenery-firefly {
  display: none;
}
.board[data-night-lighting][data-scenery-level=forest] .landscape-forest-pond {
  filter: brightness(calc(.65 + var(--landscape-sun,1)*.35)) saturate(.96);
}
.night-pond-disclosure {
  position: absolute;
  inset: 0;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.night-water-moon {
  position: absolute;
  left: 41.35%;
  top: 22.95%;
  width: 15.3%;
  height: 22.1%;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse,
      #f0fff7 0% 29%,
      #cff5eedb 43%,
      #a1e1e973 63%,
      transparent 79%);
  mask-image:
    repeating-linear-gradient(
      175deg,
      #000 0 3px,
      #000b 3.5px 4px,
      #000 5px 7px,
      #0005 7.5px 8px);
  opacity: calc(var(--landscape-night)*(1 - var(--landscape-wet)*.18));
  animation: night-moon-ripple 9s ease-in-out infinite alternate;
  transition: left 1.2s ease-in-out, top 1.2s ease-in-out;
}
@keyframes night-moon-ripple {
  from {
    transform: translate(-4%, 0) scale(.97, 1);
  }
  to {
    transform: translate(5%, 3%) scale(1.06, .92);
  }
}
.board[data-surface-light=false] .night-surface-light {
  display: none;
}
.board[data-surface-light=true] .night-pool {
  opacity: calc(var(--landscape-night)*.23);
}
.board[data-surface-light=true] .landscape-torch-pool {
  opacity: calc(.04 + var(--landscape-night)*.24);
}
.night-light-additions > .night-pool,
.night-light-additions > .night-mushroom,
.night-light-additions > .night-wisp,
.night-light-additions > .night-brazier {
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
}
.night-light-additions > .night-pool {
  width: var(--w);
  height: var(--h);
  mix-blend-mode: screen;
  opacity: var(--landscape-night);
}
.night-pool > span {
  inset: 0;
  background:
    radial-gradient(
      ellipse,
      #69e4b046 0%,
      #42c3aa26 25%,
      #2d869110 46%,
      transparent 72%);
  animation: night-light-breathe 13s ease-in-out var(--delay) infinite alternate;
}
.night-pool.firefly-pool > span {
  background:
    radial-gradient(
      ellipse,
      #e2ed7352,
      #bacd5130 22%,
      #88a63213 44%,
      transparent 70%);
  animation-duration: 11s;
}
.night-pool.wisp-pool > span {
  background:
    radial-gradient(
      ellipse,
      #a4f3e762,
      #64c4d03a 21%,
      #348baa12 47%,
      transparent 71%);
}
.night-light-additions > .night-mushroom {
  width: 1.2%;
  height: .6%;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse,
      #cefce7b0,
      #6dedbc70 30%,
      transparent 72%);
  opacity: calc(var(--landscape-night)*.8);
}
.night-light-additions > .night-wisp {
  width: .6%;
  height: .8%;
  opacity: var(--landscape-night);
  animation: night-wisp-drift 14s ease-in-out var(--delay) infinite alternate;
}
.night-wisp > span {
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse,
      #eefff6 0%,
      #adf4eacc 25%,
      #6ac5d666 57%,
      transparent 75%);
  box-shadow: 0 0 7px 3px #7ae6df45;
  animation: night-light-breathe 7s ease-in-out var(--delay) infinite alternate;
}
.board[data-night-lighting][data-scenery-level=forest] .scenery-firefly > .scenery-ink {
  box-shadow: 0 0 6px 2px #e9ff8b99, 0 0 15px 5px #d5ef6038;
}
.board[data-night-lighting] .landscape-torch-pool {
  width: calc(15% + var(--landscape-night)*4%);
  height: calc(15% + var(--landscape-night)*3%);
  background:
    radial-gradient(
      ellipse,
      #ffebaaa6 0%,
      #efb15e7d 15%,
      #dd862941 34%,
      #c16e2510 55%,
      transparent 72%);
}
.night-pool.brazier-pool > span {
  background:
    radial-gradient(
      ellipse,
      #ffe3a286 0%,
      #e6a14b5c 17%,
      #c782292a 36%,
      transparent 70%);
  animation-duration: 4.7s;
}
.night-light-additions > .night-brazier {
  width: 2.1%;
  height: 3.2%;
}
.night-brazier > svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: brightness(.8);
}
.night-brazier > .night-flame {
  left: 30%;
  top: -10%;
  width: 40%;
  height: 45%;
  border-radius: 50% 50% 35% 35%;
  background:
    radial-gradient(
      ellipse at 50% 70%,
      #fff1c9 10%,
      #ffc164 35%,
      #ef83238c 58%,
      transparent 77%);
  opacity: calc(.2 + var(--landscape-night)*.8);
  animation: night-flame 2.6s ease-in-out var(--delay) infinite alternate;
}
.board[data-braziers=false] .night-brazier,
.board[data-braziers=false] .brazier-pool {
  display: none;
}
.scenery-paused .night-light-additions span {
  animation-play-state: paused !important;
}
.scenery-paused .night-water-moon {
  animation-play-state: paused !important;
}
.scenery-paused .night-roaming-wisp {
  transition: none;
}
@keyframes night-light-breathe {
  from {
    opacity: .68;
    transform: scale(.98);
  }
  to {
    opacity: 1;
    transform: scale(1.03);
  }
}
@keyframes night-wisp-drift {
  from {
    transform: translate(-70%, 5%);
  }
  to {
    transform: translate(50%, -150%);
  }
}
@keyframes night-flame {
  0%, 100% {
    transform: scale(.95, 1);
  }
  45% {
    transform: scale(1.1, .88);
  }
  80% {
    transform: scale(.9, 1.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .night-light-additions span,
  .night-water-moon {
    animation-play-state: paused !important;
  }
  .night-roaming-wisp {
    transition: none;
  }
}
.night-light-additions {
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.night-light-suspended > .night-surface-light,
.night-light-suspended > .night-wisp-cores {
  display: none;
}
.night-light-suspended .night-pool,
.night-light-suspended .night-mushroom,
.night-light-suspended .night-water-moon,
.night-light-suspended .night-flame {
  visibility: hidden;
}
.board > .night-pond-disclosure {
  position: absolute;
  inset: auto;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.night-pond-disclosure[hidden] {
  display: none;
}
.board > .night-pond-disclosure .night-water-moon {
  filter: brightness(.86);
  opacity: calc(var(--landscape-night)*(1 - var(--landscape-wet)*.18)*var(--pond-moon-strength,1));
}
.night-roaming-wisp {
  transition:
    left 80ms linear,
    top 80ms linear,
    opacity 160ms linear;
}
.night-roaming-wisp {
  transform: translate(-50%, -50%) scale(var(--wisp-scale,1));
  filter: brightness(var(--wisp-light,1));
}
.night-roaming-wisp.night-super-wisp:after {
  content: "";
  position: absolute;
  inset: 15% -26%;
  border: 1px solid #b9fff43b;
  border-radius: 50%;
  rotate: -24deg;
  opacity: var(--wisp-super-blend,0);
  box-shadow: 0 0 3px #94f9ea29;
  pointer-events: none;
}
.night-wisp-composited > .night-roaming-wisp {
  left: 0;
  top: 0;
  transition: translate 80ms linear, opacity 80ms linear;
  will-change: translate, opacity;
}
.scenery-paused .night-wisp-composited > .night-roaming-wisp {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .night-wisp-composited > .night-roaming-wisp {
    transition: none;
  }
}
.board[data-scenery-mode=off] > .night-pond-disclosure {
  display: none;
}
.night-pond-context {
  position: absolute;
  inset: 0;
  background: url(./assets/landscape-weather/forest-pond-v1.webp) center/100% 100% no-repeat;
  filter: brightness(.55) saturate(.72);
  opacity: calc(var(--landscape-night)*.68);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.board.has-organic-fog[data-sandbox-landscape=forest-noon] > .square:not(.fogged):not(.friendly-fog-figure) > .token {
  z-index: 5;
}
.board > .night-wisp-gpu-cores {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  background: transparent;
  border: 0;
}
.board[data-wisp-renderer=gpu] > .night-surface-light:not(.night-gpu-light) {
  visibility: hidden;
}
.night-light-suspended > .night-wisp-gpu-cores {
  display: none;
}
.night-roaming-wisp:before {
  content: "";
  position: absolute;
  inset: -65%;
  border: 1px solid #caffedb3;
  border-radius: 50%;
  opacity: var(--wisp-magic,0);
  transform: scale(var(--wisp-magic-radius,1));
  box-shadow: 0 0 6px #9cebdc99;
  transition: transform 80ms linear, opacity 80ms linear;
  pointer-events: none;
}

/* dist/client/atmosphere.css */
.board {
  isolation: isolate;
  --scenery-width:640px;
  --scenery-height:640px;
  --scenery-wind-x:1;
  --scenery-wind-y:0;
  --rain-slant:.32;
  --rain-angle:18deg;
}
.board > .square {
  z-index: 1;
}
.board > .square.selected {
  z-index: 2;
}
.scenery,
.scenery span {
  position: absolute;
  pointer-events: none;
}
.scenery {
  display: contents;
}
.scenery-light,
.scenery-weather {
  inset: 1px;
  overflow: hidden;
}
.scenery-light {
  inset: 0;
  z-index: 0;
}
.scenery-weather {
  z-index: 4;
}
.scenery-light > .scenery-ground {
  inset: 1px;
  overflow: hidden;
}
.scenery-light > span {
  inset: 0;
  transition: opacity 2.1s linear;
}
.scenery-dim {
  background: #01050d;
  opacity: var(--scenery-dim,0);
}
.scenery-warm {
  background:
    linear-gradient(
      135deg,
      #ffc25c,
      #e68239 55%,
      #a13e36);
  opacity: var(--scenery-warm,.07);
}
.scenery-moon {
  background-image: linear-gradient(#a8c8ee, #a8c8ee), var(--terrain);
  background-size: cover;
  background-blend-mode: multiply;
  filter: saturate(.55) contrast(1.08) brightness(1.18);
  -webkit-mask-image:
    linear-gradient(
      135deg,
      #000 0%,
      #000 18%,
      #000b3 38%,
      #00040 62%,
      transparent 82%);
  mask-image:
    linear-gradient(
      135deg,
      #000 0%,
      #000 18%,
      #000b3 38%,
      #00040 62%,
      transparent 82%);
  opacity: var(--scenery-moon,0);
}
.scenery-dawn {
  background:
    linear-gradient(
      155deg,
      #ffd0b5,
      #c386b3 60%,
      transparent);
  opacity: var(--scenery-dawn,0);
}
.scenery-lamps {
  background:
    radial-gradient(
      ellipse at 6% 14%,
      #ffe3a1 0%,
      #eaaa5270 3%,
      #cd6e242b 7%,
      transparent 15%),
    radial-gradient(
      ellipse at 94% 86%,
      #ffe3a1 0%,
      #eaaa5270 3%,
      #cd6e242b 7%,
      transparent 15%),
    radial-gradient(
      ellipse at 5% 85%,
      #ffd08d 0%,
      #db8b4166 3%,
      transparent 12%),
    radial-gradient(
      ellipse at 95% 15%,
      #ffd08d 0%,
      #db8b4166 3%,
      transparent 12%);
  opacity: var(--scenery-lamps,0);
}
.scenery-light > .scenery-clouds {
  inset: -30%;
  background:
    radial-gradient(
      ellipse at 15% 22%,
      #102034 0%,
      #10203488 16%,
      transparent 36%),
    radial-gradient(
      ellipse at 72% 76%,
      #102034 0%,
      #10203477 20%,
      transparent 43%);
  opacity: var(--scenery-clouds,.1);
  animation: scenery-cloud-drift 38s ease-in-out infinite alternate;
}
.scenery-light > .scenery-mist {
  inset: 5% -35% -25%;
  background:
    radial-gradient(
      ellipse at 23% 72%,
      #e2fff1 0%,
      #cbe9e877 15%,
      transparent 35%),
    radial-gradient(
      ellipse at 80% 40%,
      #dbeef8 0%,
      transparent 29%);
  opacity: var(--scenery-mist,.1);
  animation: scenery-ground-drift 24s ease-in-out infinite alternate;
}
.scenery-light > .scenery-dust {
  inset: 0 -40% -25%;
  background:
    radial-gradient(
      ellipse at 10% 76%,
      #f6d99e 0%,
      #e5b46d99 18%,
      transparent 42%),
    radial-gradient(
      ellipse at 74% 40%,
      #f4cf90 0%,
      transparent 31%);
  opacity: var(--scenery-dust,.1);
  animation: scenery-ground-drift 15s ease-in-out infinite alternate;
}
.scenery-particle {
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  opacity: 0;
  transition: opacity 2.1s linear;
}
.scenery-particle,
.scenery-ink {
  animation-duration: var(--duration);
  animation-delay: var(--delay);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.scenery-ink {
  inset: 0;
  animation-name: scenery-flight-fade;
}
.scenery-rain {
  width: 0;
  height: 0;
}
.scenery-rain > .scenery-ink {
  background:
    linear-gradient(
      transparent,
      #b1d7ee88 28%,
      #e6f5ff);
}
.scenery-rain.scenery-landing {
  top: var(--y);
  width: 0;
  height: 0;
  animation-name: scenery-rain-land;
}
.scenery-rain.scenery-landing > .scenery-ink {
  inset: auto;
  left: calc((-.625px - var(--scenery-storm,0) * .325px) * var(--scenery-scale,1));
  bottom: 0;
  width: calc((1.25px + var(--scenery-storm,0) * .65px) * var(--scenery-scale,1));
  height: calc((12px + var(--depth) * 12px) * (1 + var(--scenery-storm,0) * .75) * var(--scenery-scale,1));
  transform-origin: 50% 100%;
  transform: rotate(var(--rain-angle));
  animation-name: scenery-drop-fade;
}
.scenery-impact {
  width: calc((6px + var(--depth) * 5px) * (1 + var(--scenery-storm,0) * .5) * var(--scenery-scale,1) * var(--splash-spread,1));
  height: calc((3px + var(--depth) * 2px) * (1 + var(--scenery-storm,0) * .5) * var(--scenery-scale,1));
  transform: translate(-50%, -50%) rotate(calc(var(--scenery-wind-x) * 12deg));
}
.scenery-impact > .scenery-ink {
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at 50% 60%,
      transparent 39%,
      #d7edf7 43% 51%,
      transparent 57%),
    radial-gradient(
      circle at 20% 18%,
      #e6f7ff 0 .8px,
      transparent 1.2px),
    radial-gradient(
      circle at 75% 9%,
      #e6f7ff 0 .8px,
      transparent 1.2px),
    radial-gradient(
      circle at 94% 48%,
      #d7edf7 0 .7px,
      transparent 1.1px);
  opacity: 0;
  animation-name: scenery-impact-pulse;
}
.scenery-leaf {
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * .55);
  animation-name: scenery-leaf-drift;
}
.scenery-leaf,
.scenery-resting-leaf {
  width: calc(var(--size) * (1 + var(--scenery-storm,0) * .3) * var(--scenery-scale,1) * var(--leaf-width,1));
  height: calc(var(--size) * .55 * (1 + var(--scenery-storm,0) * .3) * var(--scenery-scale,1));
}
.scenery-leaf > .scenery-ink,
.scenery-resting-leaf > .scenery-ink {
  border-radius: 70% 12% 70% 12%;
  background: var(--leaf-color,#d6b965);
  box-shadow: 1px 1px 0 #3b502aaa;
}
.scenery-leaf.scenery-landing {
  left: var(--x);
  animation-name: scenery-leaf-land;
}
.scenery-leaf.scenery-landing > .scenery-ink {
  animation-name: scenery-landing-leaf-fade;
}
.scenery-resting-leaf {
  transform: rotate(calc(var(--rotation) + 180deg)) scale(.78, .55);
}
.scenery-resting-leaf > .scenery-ink {
  opacity: 0;
  filter: brightness(.8);
  box-shadow: 0 1px 2px #13201488;
  animation-name: scenery-leaf-rest;
}
.scenery-leaf.leaf-rest-medium {
  animation-name: scenery-leaf-land-medium;
}
.scenery-leaf.leaf-rest-long {
  animation-name: scenery-leaf-land-long;
}
.scenery-leaf.leaf-rest-medium > .scenery-ink {
  animation-name: scenery-leaf-flight-medium;
}
.scenery-leaf.leaf-rest-long > .scenery-ink {
  animation-name: scenery-leaf-flight-long;
}
.scenery-resting-leaf.leaf-rest-medium > .scenery-ink {
  animation-name: scenery-leaf-rest-medium;
}
.scenery-resting-leaf.leaf-rest-long > .scenery-ink {
  animation-name: scenery-leaf-rest-long;
}
.scenery-firefly {
  animation-name: scenery-firefly-drift;
}
.scenery-firefly > .scenery-ink {
  background: #f3ffbb;
  border-radius: 50%;
  box-shadow: 0 0 5px 2px #e9ff8b88, 0 0 12px 3px #ddff6e33;
  animation-name: scenery-firefly-fade;
}
.scenery-mote {
  left: var(--x);
  animation-name: scenery-mote-drift;
}
.scenery-mote > .scenery-ink {
  background: #ffe0a1;
  border-radius: 50%;
  box-shadow: 1px 1px 0 #88613155;
}
.scenery-mote.scenery-skimming {
  left: var(--x);
  width: calc((5px + var(--scenery-storm,0) * 13px) * var(--scenery-scale,1));
  height: 1.5px;
  animation-name: scenery-sand-skim;
}
.scenery-mote.scenery-skimming > .scenery-ink {
  background:
    linear-gradient(
      90deg,
      transparent,
      #d8ad68,
      #fff0c4,
      transparent);
  border-radius: 50%;
  box-shadow: none;
}
.scenery-wind {
  left: var(--x);
  width: calc(70px + var(--depth) * 80px);
  height: 1px;
  animation-name: scenery-wind-drift;
}
.scenery-wind > .scenery-ink {
  background:
    linear-gradient(
      90deg,
      transparent,
      #f2d6a5,
      transparent);
}
.scenery-off .scenery {
  display: none;
}
.scenery-paused .scenery span {
  animation-play-state: paused;
}
.scenery .scenery-dormant,
.scenery .scenery-dormant > .scenery-ink {
  animation-play-state: paused;
}
.scenery-controls {
  margin: 7px 0 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
}
.scenery-status {
  color: #bbcedb;
  font-size: .82rem;
  line-height: 1.35;
}
.scenery-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #43515e;
  border-radius: 7px;
  background: #111a22;
}
.scenery-toggle button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #9eafbd;
  font: inherit;
  font-size: .82rem;
  min-height: 30px;
  padding: 4px 9px;
}
.scenery-toggle button:hover {
  background: #253749;
  color: #eef7ff;
}
.scenery-toggle button[aria-pressed=true] {
  color: #e7f6ff;
  background: #344c60;
  box-shadow: inset 0 0 0 1px #718ea4;
}
@keyframes scenery-cloud-drift {
  from {
    transform: translate(-10%, -6%);
  }
  to {
    transform: translate(12%, 9%);
  }
}
@keyframes scenery-ground-drift {
  from {
    transform: translate(-12%, 4%);
  }
  to {
    transform: translate(14%, -5%);
  }
}
@keyframes scenery-flight-fade {
  0%, 100% {
    opacity: 0;
  }
  12%, 82% {
    opacity: 1;
  }
}
@keyframes scenery-drop-fade {
  0%, 64%, 100% {
    opacity: 0;
  }
  8%, 62% {
    opacity: 1;
  }
}
@keyframes scenery-impact-pulse {
  0%, 64% {
    opacity: 0;
    transform: scale(.3);
  }
  67% {
    opacity: 1;
    transform: scale(.55);
  }
  94%, 100% {
    opacity: 0;
    transform: scale(1.6);
  }
}
@keyframes scenery-landing-leaf-fade {
  0%, 60%, 100% {
    opacity: 0;
  }
  12%, 58% {
    opacity: 1;
  }
}
@keyframes scenery-leaf-rest {
  0%, 58%, 100% {
    opacity: 0;
  }
  60%, 93% {
    opacity: 1;
  }
}
@keyframes scenery-leaf-flight-medium {
  0%, 40%, 100% {
    opacity: 0;
  }
  6%, 38% {
    opacity: 1;
  }
}
@keyframes scenery-leaf-flight-long {
  0%, 22%, 100% {
    opacity: 0;
  }
  3%, 20% {
    opacity: 1;
  }
}
@keyframes scenery-leaf-rest-medium {
  0%, 38%, 100% {
    opacity: 0;
  }
  40%, 94% {
    opacity: 1;
  }
}
@keyframes scenery-leaf-rest-long {
  0%, 20%, 100% {
    opacity: 0;
  }
  22%, 96% {
    opacity: 1;
  }
}
@keyframes scenery-firefly-fade {
  0%, 100% {
    opacity: 0;
  }
  25%, 65% {
    opacity: 1;
  }
}
@keyframes scenery-rain-land {
  0% {
    transform: translate(calc(var(--scenery-height) * var(--fall-height) * (1 + var(--scenery-storm,0) * .6) * var(--rain-slant)), calc(var(--scenery-height) * var(--fall-height) * (1 + var(--scenery-storm,0) * .6) * -1));
  }
  64%, 100% {
    transform: translate(0, 0);
  }
}
@keyframes scenery-leaf-land {
  0% {
    transform: translate(calc(var(--scenery-width) * var(--leaf-travel) * var(--scenery-wind-x) * -1), calc(var(--scenery-height) * var(--fall-height) * -1)) rotate(var(--rotation));
  }
  38% {
    transform: translate(calc(var(--scenery-width) * var(--leaf-travel) * var(--scenery-wind-x) * -.48), calc(var(--scenery-height) * var(--fall-height) * -.58)) rotate(calc(var(--rotation) + 100deg));
  }
  53% {
    transform: translate(-7px, -9px) rotate(calc(var(--rotation) + 165deg)) scale(.9, .8);
  }
  60%, 100% {
    transform: translate(0, 0) rotate(calc(var(--rotation) + 180deg)) scale(.78, .55);
  }
}
@keyframes scenery-leaf-land-medium {
  0% {
    transform: translate(calc(var(--scenery-width) * var(--leaf-travel) * var(--scenery-wind-x) * -1), calc(var(--scenery-height) * var(--fall-height) * -1)) rotate(var(--rotation));
  }
  24% {
    transform: translate(calc(var(--scenery-width) * var(--leaf-travel) * var(--scenery-wind-x) * -.4), calc(var(--scenery-height) * var(--fall-height) * -.45)) rotate(calc(var(--rotation) + 110deg));
  }
  40%, 100% {
    transform: translate(0, 0) rotate(calc(var(--rotation) + 180deg)) scale(.78, .55);
  }
}
@keyframes scenery-leaf-land-long {
  0% {
    transform: translate(calc(var(--scenery-width) * var(--leaf-travel) * var(--scenery-wind-x) * -1), calc(var(--scenery-height) * var(--fall-height) * -1)) rotate(var(--rotation));
  }
  13% {
    transform: translate(calc(var(--scenery-width) * var(--leaf-travel) * var(--scenery-wind-x) * -.4), calc(var(--scenery-height) * var(--fall-height) * -.45)) rotate(calc(var(--rotation) + 110deg));
  }
  22%, 100% {
    transform: translate(0, 0) rotate(calc(var(--rotation) + 180deg)) scale(.78, .55);
  }
}
@keyframes scenery-leaf-drift {
  0% {
    transform: translate(calc(var(--scenery-width) * -.65 * var(--scenery-wind-x)), -80px) rotate(var(--rotation));
  }
  45% {
    transform: translate(0, var(--sway)) rotate(calc(var(--rotation) + 155deg));
  }
  100% {
    transform: translate(calc(var(--scenery-width) * .65 * var(--scenery-wind-x)), calc(90px + var(--scenery-height) * var(--scenery-wind-y))) rotate(calc(var(--rotation) + 310deg));
  }
}
@keyframes scenery-firefly-drift {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(var(--sway), -25px);
  }
}
@keyframes scenery-mote-drift {
  from {
    transform: translate(calc(var(--scenery-width) * -.6 * var(--scenery-wind-x)), 25px);
  }
  to {
    transform: translate(calc(var(--scenery-width) * .6 * var(--scenery-wind-x)), calc(var(--scenery-height) * var(--scenery-wind-y)));
  }
}
@keyframes scenery-wind-drift {
  from {
    transform: translate(calc(var(--scenery-width) * -.7 * var(--scenery-wind-x)), 0) rotate(calc(var(--scenery-wind-y) * 25deg));
  }
  to {
    transform: translate(calc(var(--scenery-width) * .7 * var(--scenery-wind-x)), calc(var(--scenery-height) * var(--scenery-wind-y))) rotate(calc(var(--scenery-wind-y) * 25deg));
  }
}
@keyframes scenery-sand-skim {
  from {
    transform: translate(calc(var(--scenery-width) * -.07 * var(--scenery-wind-x)), 4px) rotate(calc(var(--scenery-wind-y) * 25deg));
  }
  to {
    transform: translate(calc(var(--scenery-width) * (.10 + var(--scenery-storm,0) * .18) * var(--scenery-wind-x)), -4px) rotate(calc(var(--scenery-wind-y) * 25deg));
  }
}
@media (prefers-reduced-motion: reduce) {
  .board {
    transition: none;
  }
  .scenery span {
    animation: none !important;
    transition: none !important;
  }
  .scenery-weather,
  .scenery-ground {
    display: none;
  }
}
@media (min-width: 1050px) and (min-height: 600px) {
  .game-layout {
    grid-template-columns: minmax(0, calc(100dvh - 220px)) clamp(320px, 28vw, 440px);
  }
}
@media (max-width: 700px) {
  .scenery-controls {
    margin-left: 18px;
  }
  .scenery-toggle {
    margin-left: auto;
  }
}

/* dist/client/snow.css */
.snow-surface-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  filter: brightness(var(--landscape-snow-brightness,1));
}
.board[data-scenery-mode=off] .snow-surface-layer {
  display: none;
}
.forest-litter-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  filter: brightness(var(--landscape-ground-brightness,1));
}
.board[data-scenery-mode=off] .forest-litter-layer {
  display: none;
}
.board .snow-surface-layer,
.board .forest-litter-layer {
  height: calc(100% * var(--board-size,13) / var(--board-rows,var(--board-size,13))) !important;
  bottom: auto;
  clip-path: inset(0 0 calc(100% * (1 - var(--board-rows,var(--board-size,13)) / var(--board-size,13))) 0);
}

/* dist/client/ambient-wildlife.css */
.wildlife-squirrel {
  position: absolute;
  width: 68%;
  height: 68%;
  max-width: none;
  z-index: 3;
  pointer-events: none;
  filter: brightness(var(--landscape-object-brightness,1)) saturate(var(--landscape-object-saturation,.92));
  image-rendering: auto;
}
.wildlife-squirrel[hidden] {
  display: none;
}
.desert-wildlife-animal {
  position: absolute;
  max-width: none;
  pointer-events: none;
  image-rendering: auto;
  filter: brightness(var(--landscape-object-brightness,1)) saturate(var(--landscape-object-saturation,.92));
}
.desert-wildlife-animal[hidden] {
  display: none;
}

/* dist/client/gorge-board.css */
.gorge-terrain-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  filter: saturate(.83) brightness(.84);
}

/* dist/client/blight-terrain.css */
.blight-terrain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
}
.blight-terrain path {
  stroke-linejoin: round;
  stroke-linecap: round;
}
.high-ground-surface:has(> .blight-terrain) > .high-ground-grid {
  z-index: 1;
}
.blight-material-texture {
  filter: saturate(.94) brightness(1.04);
}
.blight-material-plates {
  opacity: .075;
  stroke: #e0bc8714;
  stroke-width: .6;
}
.blight-material-gravel {
  opacity: .37;
  stroke: #100e1024;
  stroke-width: .45;
}
.blight-painted-heat {
  fill: #ffc075;
  opacity: .18;
  animation: blight-painted-smolder calc(var(--coal-time) * 1.3) ease-in-out var(--coal-delay) infinite;
}
@keyframes blight-painted-smolder {
  0%, 100% {
    fill: #321005;
    opacity: .78;
  }
  26% {
    fill: #ffdda3;
    opacity: .92;
  }
  49% {
    fill: #63200b;
    opacity: .62;
  }
  73% {
    fill: #ff9d47;
    opacity: .88;
  }
}
.blight-fissure-bed {
  fill: none;
  stroke: #271617;
  stroke-width: 2.8;
  opacity: .36;
}
.blight-fissure-halo {
  fill: none;
  stroke: #ed5728;
  stroke-width: 4.2;
  opacity: .15;
}
.blight-fissure-red {
  fill: none;
  stroke: #d14927;
  stroke-width: 1.35;
  opacity: .40;
}
.blight-fissure-heart {
  fill: none;
  stroke: #ffc078;
  stroke-width: .85;
  opacity: .42;
  stroke-dasharray: 7 2 12 5 3 8;
}
.blight-fissure-branch {
  fill: none;
  stroke: #a13722;
  stroke-width: .85;
  opacity: .38;
}
.blight-coal-bed {
  fill: #261515;
  opacity: .86;
}
.blight-coal-orange {
  fill: #a44122;
  opacity: .65;
}
.blight-coal-radiance {
  opacity: .7;
}
.blight-animated .blight-coal-radiance {
  transform-origin: 0 0;
  animation: blight-smolder calc(var(--coal-time) * 1.3) ease-in-out var(--coal-delay) infinite;
}
.blight-coal-hot {
  fill: #efad64;
  opacity: .65;
}
.blight-animated .blight-coal-hot {
  animation: blight-coal-breathe var(--coal-time) ease-in-out var(--coal-delay) infinite;
}
.blight-heat-vapor {
  opacity: 0;
  animation: blight-heat-rise var(--vapor-time) ease-out var(--vapor-delay) infinite;
}
.blight-water-reflection {
  fill: none;
  stroke: #d5683e;
  stroke-width: 1.5;
  opacity: .27;
  mix-blend-mode: screen;
}
.blight-terrain[data-night=true] .blight-material-texture {
  filter: saturate(.86) brightness(.81);
}
.blight-terrain[data-night=true] .blight-material-gravel {
  opacity: .27;
}
.blight-terrain[data-night=true] .blight-fissure-halo {
  opacity: .18;
}
.blight-terrain[data-night=true] .blight-fissure-red {
  stroke: #e45c2f;
}
.blight-terrain[data-night=true] .blight-fissure-heart {
  opacity: .55;
  stroke: #ffd093;
}
.blight-terrain[data-night=true] .blight-water-reflection {
  opacity: .39;
}
.blight-terrain[data-paused=true] * {
  animation-play-state: paused !important;
}
.blight-lava-surface {
  filter: saturate(.89) brightness(.92);
}
.gorge-terrain-layer image.blight-gorge-scorched {
  filter: grayscale(.35) sepia(.48) saturate(1.18) brightness(.78) contrast(1.06);
}
.blight-scenery-replacement {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.square[data-elevation] > .blight-scenery-replacement {
  translate: 0 var(--ground-lift);
}
.blight-scenery > .landscape-object-layer > .landscape-tree,
.blight-scenery > .landscape-object-layer > .landscape-prop {
  visibility: hidden;
}
.blight-scenery > .landscape-known-terrain > .landscape-tree,
.blight-scenery > .landscape-known-terrain > .landscape-prop {
  visibility: hidden;
}
.terrain-remembered > .blight-scenery-replacement {
  opacity: .63;
  filter: saturate(.65);
}
.fog-departing > .blight-scenery-replacement {
  opacity: calc(1 - .37 * var(--fog-memory-progress,0));
  filter: saturate(calc(1 - .35 * var(--fog-memory-progress,0)));
}
.blight-scenery-replacement > .landscape-tree {
  filter: grayscale(.8) sepia(.22) brightness(.62) contrast(1.07);
  animation: none !important;
}
.blight-scenery[data-blight-scenery=charred-prop] > .blight-scenery-replacement > .landscape-prop {
  filter: grayscale(.83) sepia(.34) brightness(.61) contrast(1.1);
}
.blight-scenery-glitter {
  position: absolute;
  left: 43%;
  top: 58%;
  width: 2.5px;
  height: 2.5px;
  background: #ffc185;
  box-shadow:
    0 0 3px #f97032,
    10px -17px 0 -.3px #ff7c40,
    -8px 9px 0 -.4px #f7b175;
  opacity: 0;
  animation: blight-scenery-glitter var(--glitter-time) ease-in-out var(--glitter-delay) infinite;
}
@keyframes blight-scenery-glitter {
  0%, 19%, 30%, 67%, 83%, 100% {
    opacity: 0;
  }
  22%, 26% {
    opacity: .76;
  }
  72% {
    opacity: .95;
  }
  76% {
    opacity: .38;
  }
}
.recorded-board > .square {
  z-index: 2;
}
.recorded-board .blight-scenery-glitter {
  animation: none;
  opacity: .3;
}
.in-menu .blight-scenery-glitter {
  animation-play-state: paused;
}
@keyframes blight-heat-rise {
  0%, 12%, 57%, 100% {
    opacity: 0;
  }
  15% {
    transform: translate(0, 0) scale(.65);
    opacity: 0;
  }
  25% {
    opacity: var(--vapor-peak,.34);
  }
  44% {
    opacity: var(--vapor-end,.14);
  }
  57% {
    transform: translate(var(--vapor-drift), -23px) scale(1.25);
    opacity: 0;
  }
}
@keyframes blight-coal-breathe {
  0%, 100% {
    opacity: .12;
  }
  23% {
    opacity: 1;
  }
  44% {
    opacity: .25;
  }
  76% {
    opacity: .94;
  }
}
.blight-gorge-lava {
  opacity: 1;
  filter: saturate(1.05) brightness(1.1);
}
.blight-lava-vapor {
  --vapor-peak:.65;
  --vapor-end:.25;
  animation-name: blight-lava-steam;
}
.blight-gorge-vapor {
  --vapor-peak:.69;
}
@keyframes blight-lava-steam {
  0%, 12%, 80%, 100% {
    opacity: 0;
  }
  12% {
    transform: translate(0, 0) scale(.8);
  }
  27% {
    opacity: var(--vapor-peak);
  }
  61% {
    opacity: var(--vapor-end);
  }
  80% {
    transform: translate(var(--vapor-drift), -38px) scale(1.35);
  }
}
@keyframes blight-smolder {
  0%, 100% {
    opacity: .08;
    transform: scale(.6);
  }
  27% {
    opacity: 1;
    transform: scale(1.13);
  }
  51% {
    opacity: .15;
    transform: scale(.73);
  }
  76% {
    opacity: .9;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .blight-terrain *,
  .blight-scenery-glitter {
    animation: none !important;
  }
  .blight-heat-vapor {
    display: none;
  }
  .blight-scenery-glitter {
    opacity: .24;
  }
}
.blight-soul-event {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
  isolation: isolate;
}
.square[data-elevation] > .blight-soul-event {
  translate: 0 var(--ground-lift);
}
.blight-soul-ground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.blight-soul-fissure {
  fill: #100b0d;
  stroke: #d36638;
  stroke-width: .7;
  transform-origin: 50px 58px;
  animation: blight-soul-open var(--soul-time) ease-in-out both;
}
.blight-soul-lip {
  transform-origin: 50px 58px;
  animation: blight-soul-lip-top var(--soul-time) ease-in-out both;
}
.blight-soul-lip-bottom {
  animation-name: blight-soul-lip-bottom;
}
.blight-soul-rise {
  position: absolute;
  left: 14%;
  top: -2%;
  width: 72%;
  height: 84%;
  transform-origin: 50% 85%;
  animation: blight-soul-rise var(--soul-time) ease-out both;
  filter: grayscale(1) sepia(.26);
  mask-image:
    linear-gradient(
      to top,
      transparent 0%,
      #000 18%,
      #000 95%,
      transparent);
}
.blight-soul-palette-1 .blight-soul-rise {
  filter: grayscale(1) sepia(.28) hue-rotate(62deg);
}
.blight-soul-palette-2 .blight-soul-rise {
  filter: grayscale(1) sepia(.18) hue-rotate(235deg);
}
.blight-soul-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  animation: blight-soul-frame-0 var(--soul-time) linear both;
}
.blight-soul-frame-1 {
  animation-name: blight-soul-frame-1;
}
.blight-soul-frame-2 {
  animation-name: blight-soul-frame-2;
}
.blight-soul-frame-3 {
  animation-name: blight-soul-frame-3;
}
@keyframes blight-soul-open {
  0%, 100% {
    transform: scaleY(.03);
    opacity: 0;
  }
  12% {
    opacity: .8;
  }
  35%, 63% {
    transform: scaleY(1);
    opacity: 1;
  }
  90% {
    transform: scaleY(.06);
    opacity: .4;
  }
}
@keyframes blight-soul-lip-top {
  0%, 100% {
    transform: translateY(0);
  }
  35%, 62% {
    transform: translate(var(--lip-x), calc(var(--lip-y) * -1)) rotate(calc(var(--lip-angle) * -1));
  }
}
@keyframes blight-soul-lip-bottom {
  0%, 100% {
    transform: translateY(0);
  }
  35%, 62% {
    transform: translate(calc(var(--lip-x) * -1), var(--lip-y)) rotate(var(--lip-angle));
  }
}
@keyframes blight-soul-rise {
  0%, 8% {
    opacity: 0;
    transform: translateY(22%);
  }
  23% {
    opacity: .74;
  }
  52% {
    opacity: .84;
  }
  77% {
    opacity: .34;
  }
  100% {
    opacity: 0;
    transform: translate(var(--soul-drift), -15%);
  }
}
@keyframes blight-soul-frame-0 {
  0%, 20% {
    opacity: 1;
  }
  25%, 100% {
    opacity: 0;
  }
}
@keyframes blight-soul-frame-1 {
  0%, 20% {
    opacity: 0;
  }
  25%, 43% {
    opacity: 1;
  }
  49%, 100% {
    opacity: 0;
  }
}
@keyframes blight-soul-frame-2 {
  0%, 43% {
    opacity: 0;
  }
  49%, 66% {
    opacity: 1;
  }
  80%, 100% {
    opacity: 0;
  }
}
@keyframes blight-soul-frame-3 {
  0%, 66% {
    opacity: 0;
  }
  80%, 100% {
    opacity: 1;
  }
}
.in-menu .blight-soul-event {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .blight-soul-event {
    display: none;
  }
}
.blight-soul-held * {
  animation-delay: -1400ms !important;
  animation-play-state: paused !important;
}
.blight-soul-outcome-struggle .blight-soul-rise {
  animation-name: blight-soul-struggle;
}
.blight-soul-outcome-dragged .blight-soul-rise {
  animation-name: blight-soul-dragged;
}
.blight-soul-outcome-struggle .blight-soul-frame-0,
.blight-soul-outcome-dragged .blight-soul-frame-0 {
  animation-name: blight-soul-return-0;
}
.blight-soul-outcome-struggle .blight-soul-frame-1,
.blight-soul-outcome-dragged .blight-soul-frame-1 {
  animation-name: blight-soul-return-1;
}
.blight-soul-outcome-struggle .blight-soul-frame-2,
.blight-soul-outcome-dragged .blight-soul-frame-2 {
  animation-name: blight-soul-return-2;
}
.blight-soul-outcome-struggle .blight-soul-frame-3,
.blight-soul-outcome-dragged .blight-soul-frame-3 {
  display: none;
}
@keyframes blight-soul-struggle {
  0%, 8% {
    opacity: 0;
    transform: translateY(28%);
  }
  27% {
    opacity: .76;
    transform: translate(-2%, 5%);
  }
  42% {
    opacity: .84;
    transform: translate(2%, 1%);
  }
  53% {
    transform: translate(-2%, 5%);
  }
  64% {
    opacity: .64;
    transform: translate(1%, 1%);
  }
  83% {
    opacity: .2;
    transform: translateY(20%);
  }
  100% {
    opacity: 0;
    transform: translateY(40%);
  }
}
@keyframes blight-soul-dragged {
  0%, 8% {
    opacity: 0;
    transform: translateY(26%);
  }
  33% {
    opacity: .74;
    transform: translate(-1%, 3%);
  }
  55% {
    opacity: .84;
    transform: translate(3%, -8%);
  }
  63% {
    opacity: .72;
    transform: translate(1%, -6%);
  }
  79% {
    opacity: .25;
    transform: translateY(20%);
  }
  91%, 100% {
    opacity: 0;
    transform: translateY(45%);
  }
}
@keyframes blight-soul-return-0 {
  0%, 18% {
    opacity: 1;
  }
  32%, 76% {
    opacity: 0;
  }
  91%, 100% {
    opacity: 1;
  }
}
@keyframes blight-soul-return-1 {
  0%, 18% {
    opacity: 0;
  }
  32%, 37% {
    opacity: 1;
  }
  49%, 60% {
    opacity: 0;
  }
  73%, 79% {
    opacity: 1;
  }
  91%, 100% {
    opacity: 0;
  }
}
@keyframes blight-soul-return-2 {
  0%, 37% {
    opacity: 0;
  }
  49%, 60% {
    opacity: 1;
  }
  73%, 100% {
    opacity: 0;
  }
}
.blight-seams-animated .blight-fissure-heart {
  animation: blight-seam-heat calc(var(--heat-time) * .5) ease-in-out var(--heat-delay) infinite, blight-seam-flow calc(var(--heat-time) * .42) linear var(--heat-delay) infinite;
}
.blight-seams-animated .blight-fissure-halo {
  animation: blight-seam-halo calc(var(--heat-time) * .5) ease-in-out var(--heat-delay) infinite;
}
.blight-terrain[data-night=true] {
  --seam-low:.35;
  --seam-high:.9;
  --halo-low:.12;
  --halo-high:.36;
}
@keyframes blight-seam-heat {
  0%, 100% {
    opacity: var(--seam-low,.24);
  }
  38% {
    opacity: var(--seam-high,.84);
  }
  71% {
    opacity: var(--seam-low,.24);
  }
}
@keyframes blight-seam-halo {
  0%, 100% {
    opacity: var(--halo-low,.07);
  }
  38% {
    opacity: var(--halo-high,.30);
  }
  71% {
    opacity: var(--halo-low,.07);
  }
}
@keyframes blight-seam-flow {
  to {
    stroke-dashoffset: -37;
  }
}
.blight-lava-surface,
.blight-gorge-lava {
  animation: blight-lava-heat 13s ease-in-out -4s infinite;
  --lava-brightness:.92;
  --lava-saturation:.89;
}
.blight-gorge-lava {
  --lava-brightness:1.1;
  --lava-saturation:1.05;
  animation-duration: 17s;
  animation-delay: -9s;
}
.blight-lava-texture {
  animation: blight-lava-drift 21s ease-in-out -7s infinite;
}
@keyframes blight-lava-drift {
  0%, 100% {
    transform: translate(-1.2px, .4px);
  }
  37% {
    transform: translate(1.6px, -1.1px);
  }
  69% {
    transform: translate(.3px, 1.3px);
  }
}
@keyframes blight-lava-heat {
  0%, 100% {
    filter: saturate(var(--lava-saturation)) brightness(calc(var(--lava-brightness) * .90));
  }
  36% {
    filter: saturate(var(--lava-saturation)) brightness(calc(var(--lava-brightness) * 1.14));
  }
  68% {
    filter: saturate(var(--lava-saturation)) brightness(calc(var(--lava-brightness) * .98));
  }
}
.blight-soul-fissure {
  stroke: #6e392b;
  stroke-width: .45;
}
.blight-soul-fissure-glow {
  fill: none;
  stroke: #ed995e;
  stroke-width: .6;
  stroke-dasharray: 3 6 2 10;
  transform-origin: 50px 58px;
  animation: blight-soul-open var(--soul-time) ease-in-out both;
  opacity: .5;
}
@media (prefers-reduced-motion: reduce) {
  .blight-lava-surface,
  .blight-gorge-lava {
    animation: none !important;
  }
}
.blight-seam-front path {
  fill: none;
  animation: blight-seam-front var(--front-time) ease-in-out var(--front-delay) infinite;
}
.blight-seam-front-glow {
  stroke: #fa6b27;
  stroke-width: 5;
  stroke-dasharray: 12 120;
}
.blight-seam-front-core {
  stroke: #ffe4b2;
  stroke-width: 1.6;
  stroke-dasharray: 4 128;
}
@keyframes blight-seam-front {
  0% {
    stroke-dashoffset: 14;
    opacity: 0;
  }
  12% {
    opacity: .85;
  }
  78% {
    opacity: .85;
  }
  100% {
    stroke-dashoffset: -118;
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .blight-seam-front {
    display: none;
  }
}

/* dist/client/welcome.css */
body.in-menu {
  background: #090e14;
}
.in-menu > .site-header,
.in-menu > .match-heading {
  display: none;
}
.match-lobby {
  position: relative;
  isolation: isolate;
  max-width: 1240px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 48px clamp(24px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  background:
    radial-gradient(
      ellipse at 30% 48%,
      #29303955,
      transparent 65%);
}
.welcome-emblem {
  min-width: 0;
  width: 100%;
}
.welcome-emblem img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 18px 30px #0005);
}
.welcome-menu {
  width: 100%;
  max-width: 360px;
  justify-self: center;
  text-align: center;
}
.welcome-choices {
  display: grid;
  gap: 8px;
}
.welcome-choice {
  display: block;
  width: 100%;
  position: relative;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 12px 14px;
  background: transparent;
  color: #c8c6bd;
  text-decoration: none;
  font: 16px/1.3 Georgia, serif;
  transition:
    background .15s,
    border-color .15s,
    color .15s;
}
.welcome-choice:hover:not(:disabled) {
  color: #ffebc7;
  background: #c5a26a12;
  border-color: #8f754650;
}
.welcome-choice:focus-visible,
.welcome-help:focus-visible {
  outline: 2px solid #f0d09a;
  outline-offset: 4px;
}
.welcome-choice.welcome-primary {
  color: #f6e1ba;
  border-color: #b2905866;
  background:
    linear-gradient(
      100deg,
      #72512718,
      #a47a322d,
      #72512718);
  box-shadow: inset 0 0 20px #be8e2310;
}
.welcome-choice small {
  display: block;
  margin-top: 7px;
  color: #a1aaa9;
  font:
    11px/1.5 -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  letter-spacing: .02em;
}
.welcome-choice:disabled {
  opacity: .4;
}
.welcome-external {
  font: 12px sans-serif;
  color: #897d69;
}
.welcome-status {
  color: #a5b3be;
  font-size: 12px;
  line-height: 1.5;
  min-height: 18px;
  margin: 14px 0 4px;
}
.welcome-status.error {
  color: #ffb5a4;
}
.welcome-help {
  color: #aaa99f;
  background: none;
  border: 0;
  font-size: 12px;
  padding: 9px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.welcome-menu #sign-in {
  display: inline-block;
  margin-top: 18px;
}
dialog.welcome-dialog {
  width: min(670px, calc(100vw - 24px));
  max-height: calc(100svh - 32px);
  border: 1px solid #8c77534d;
  background: #141c25;
}
.welcome-dialog::backdrop {
  background: #04070ce6;
  backdrop-filter: blur(6px);
}
.welcome-dialog .lobby-card {
  border: 0;
  padding: 8px 0 0;
  background: none;
}
.welcome-dialog .dialog-heading h2 {
  font: normal 28px Georgia, serif;
  color: #f1dcb8;
}
.welcome-dialog #create-match {
  margin-top: 12px;
}
.about-story {
  font-size: 1rem;
  line-height: 1.65;
}
.about-story p {
  margin: 16px 0 0;
}
#join-code {
  text-transform: uppercase;
  letter-spacing: .1em;
}
#saved-matches {
  display: grid;
  gap: 10px;
}
#saved-matches .button {
  text-align: left;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .match-lobby {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
    align-content: center;
  }
  .welcome-emblem {
    width: min(330px, 76vw);
    justify-self: center;
  }
  .welcome-menu {
    max-width: 330px;
  }
  .welcome-choice {
    padding: 10px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-choice {
    transition: none;
  }
}
#welcome-install-actions {
  grid-column: 2;
  text-align: center;
  padding: 16px 0 4px;
}
#welcome-install-actions:empty {
  display: none;
}
.welcome-menu:has(.welcome-page:not([hidden]):not([data-welcome-page=home])) #welcome-install-actions {
  display: none;
}
.match-save-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-self: end;
  padding: 3px 9px !important;
  border: 1px solid #a9986944;
  border-radius: 20px;
  font-size: 11px !important;
  color: #c4c5b2 !important;
  cursor: pointer;
}
.match-save-note::before {
  content: "\25c8";
  opacity: .7;
}
.friends-dialog {
  width: min(620px, calc(100vw - 28px));
  border-radius: 14px;
  padding: 24px;
  background:
    radial-gradient(
      ellipse at 0 0,
      #61704a22,
      transparent 65%),
    #19251f;
}
.friends-dialog .dialog-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #c6ab6944;
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.friends-dialog .dialog-heading h2 {
  flex: 1;
  margin: 0;
}
.friend-privacy {
  font: 16px system-ui;
  opacity: .65;
  cursor: pointer;
}
.friend-sharing,
.friend-profile-settings {
  border: 1px solid #bca36a44;
  border-radius: 8px;
  padding: 12px 14px;
  background: #d8c98a05;
}
.friend-sharing {
  margin-bottom: 16px;
}
.friend-sharing summary,
.friend-profile-settings summary {
  font: 600 17px Georgia, serif;
  cursor: pointer;
  color: #e4d3ab;
}
.friend-sharing-hint {
  font-size: 13px;
  opacity: .7;
}
.friend-games {
  padding: 12px 0;
  margin: 14px 0;
  border-top: 1px solid #c6ab6929;
}
.friend-games h3 {
  font-size: 18px;
  margin: 0 0 10px;
}
.friend-games p,
.friends-list > p {
  font-size: 13px;
  opacity: .6;
}
.friend-profile-settings {
  margin-top: 16px;
}
.friend-profile {
  margin-top: 12px;
}
.friend-row {
  border-radius: 8px;
  border: 1px solid #bca36a33;
  padding: 12px;
  margin: 6px 0;
  background: #c5b37b08;
}
@media (max-width: 600px) {
  #welcome-install-actions {
    grid-column: 1;
  }
  .friends-dialog {
    padding: 18px;
  }
}
.friends-dialog {
  min-height: 0;
}
.friends-dialog .friends-list:empty,
.friends-dialog .friends-status:empty {
  display: none;
}
.friend-profile-settings {
  margin-top: 18px;
}

/* dist/client/board-view.css */
.board-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  isolation: isolate;
}
.board-view-tools {
  display: flex;
  gap: 8px;
}
.board-view-tools .button {
  flex: 1;
  min-height: 38px;
  padding: 7px 10px;
}
.turn-controls {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.sidebar-disclosure > summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  min-height: 28px;
  align-content: center;
}
.sidebar-disclosure > summary > span {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 400;
}
.disclosure-content {
  margin-top: 12px;
}
.disclosure-content > .help-button {
  margin: 0 0 10px auto;
}
.settings-dialog {
  width: min(490px, calc(100vw - 24px));
  max-height: 100dvh;
  overflow: auto;
}
.settings-dialog .dialog-heading h2 {
  margin: 0;
}
.battlefield-settings {
  margin: 20px 0;
}
.battlefield-facts {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  font-size: .875rem;
}
.battlefield-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.battlefield-facts dt {
  color: var(--muted);
}
.battlefield-facts dd {
  margin: 0;
  text-align: right;
}
.settings-dialog .scenery-controls {
  margin: 16px 0 0;
  align-items: flex-start;
}
.settings-dialog .scenery-status {
  font-size: .875rem;
}
.settings-dialog .scenery-toggle button {
  font-size: .875rem;
}
.settings-dialog .audio-controls > summary {
  width: 100%;
}
.settings-dialog .audio-panel {
  position: static;
  width: 100%;
  max-width: none;
  margin-top: 10px;
  box-shadow: none;
}
.settings-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
html:fullscreen {
  background: #10151c;
}
body.board-expanded {
  overflow: hidden;
}
.board-expanded > .site-header,
.board-expanded > .match-heading {
  display: none;
}
.board-expanded .game-layout {
  display: grid;
  grid-template-columns: var(--expanded-field-width,minmax(0,1fr)) minmax(var(--expanded-panel-width,300px), 1fr);
  gap: 16px;
  justify-content: start;
  align-items: start;
  height: 100dvh;
  padding: 0;
  max-width: none;
}
.board-expanded .battlefield {
  width: var(--expanded-field-width,100%);
}
.board-expanded .game-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-height: 100dvh;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-top: calc(var(--pinned-turn-height,0px) + 10px);
  padding: 12px 12px 12px 0;
  scrollbar-width: thin;
}
.board-expanded .turn-controls {
  position: sticky;
  top: 0;
  z-index: 25;
  padding-bottom: 6px;
  background: #10151c;
}
.board-expanded .turn-card {
  padding: 12px;
  border-radius: 10px;
  gap: 7px 10px;
}
.board-expanded .turn-card h2 {
  font-size: 1.05rem;
}
.board-expanded #actions-left {
  font-size: 2.25rem;
}
.board-expanded .undo-note {
  margin: 0;
  grid-column: 1 / -1;
}
.board-expanded .sidebar-card {
  padding: 12px;
}
.board-expanded .game-message {
  order: initial;
  width: 100%;
  margin: 0;
}
.board-expanded .watch-controls {
  margin: 0;
  width: 100%;
  flex-wrap: wrap;
  font-size: .875rem;
}
.board-expanded #connection-status {
  margin: 0;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--muted);
}
.board-expanded #connection-status.error {
  color: #ffaaa2;
}
.board-expanded .game-layout.expanded-stacked {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}
.board-expanded .expanded-stacked .battlefield {
  justify-self: start;
}
.board-expanded .expanded-stacked .game-sidebar {
  display: flex;
  max-height: 100%;
  padding-right: 4px;
}
.board-expanded .board-key {
  display: none;
}
.board-frame {
  display: block;
}
.board {
  container-type: inline-size;
}
.tile-coordinate {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, calc(60cqw / var(--board-size,13)), 56px);
  font-weight: 700;
  line-height: 1;
  color: #e1edf2;
  opacity: .22;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.board-coordinates-on .tile-coordinate {
  display: flex;
}
.tile-coordinate.corner {
  padding: 7%;
  font-size: clamp(12px, calc(40cqw / var(--board-size,13)), 38px);
}
.tile-coordinate.rank.corner {
  align-items: flex-start;
  justify-content: flex-start;
}
.tile-coordinate.file.corner {
  align-items: flex-end;
  justify-content: flex-end;
}
.army-detail {
  display: grid;
  gap: 3px;
}
.army-detail > span {
  color: var(--team);
}
.army-detail small {
  font-size: .8125rem;
}
.coordinate-setting {
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  font-size: .875rem;
  min-height: 44px;
}
.coordinate-setting input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}
.coordinate-note {
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
  margin: 0 0 14px 30px;
}
.settings-dialog .settings-board-key {
  display: flex;
  flex-wrap: wrap;
  max-width: none;
  justify-content: flex-start;
}
.board-expanded .expanded-stacked .game-sidebar {
  padding: 0 12px 12px;
}
.board-expanded .game-layout:has(.setup-start-dock:not([hidden])) {
  grid-template-rows: auto minmax(0, 1fr);
}
.board-expanded .game-layout.expanded-stacked:has(.setup-start-dock:not([hidden])) {
  grid-template-rows: auto auto minmax(0, 1fr);
}
.board-expanded .setup-start-dock {
  margin: 0;
}
.board {
  grid-template-rows: repeat(var(--board-rows,var(--board-size,13)), minmax(0, 1fr));
  aspect-ratio: var(--board-size,13) / var(--board-rows,var(--board-size,13));
}
.board-expanded .game-layout {
  grid-template-columns: var(--expanded-field-width,minmax(0,1fr)) minmax(0, 1fr);
  gap: 16px;
}
.board-expanded .game-sidebar {
  min-width: 0;
}
.board > :is(.fog-layer, .fog-unknown, .fog-object-underlay, .unit-shadow-layer, .tree-depth-layer, .tree-fog-layer, .tree-fog-figures, .night-surface-light, .night-wisp-cores) {
  height: calc(100% * var(--board-size,13) / var(--board-rows,var(--board-size,13))) !important;
  bottom: auto;
  clip-path: inset(0 0 calc(100% * (1 - var(--board-rows,var(--board-size,13)) / var(--board-size,13))) 0);
}
.board > :is(.tree-depth-layer, .tree-fog-layer, .tree-fog-figures)[data-tree-viewport] {
  inset: auto;
  left: var(--tree-x);
  top: var(--tree-y);
  width: var(--tree-width);
  height: var(--tree-height) !important;
  clip-path: none;
}

/* dist/client/friends.css */
.friends-dialog {
  max-width: 540px;
  width: calc(100% - 24px);
}
.friends-dialog > p,
.friends-dialog details p,
.friend-games p {
  color: var(--muted,#abb2bb);
  font-size: .9rem;
  line-height: 1.5;
}
.friend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #ffffff18;
  flex-wrap: wrap;
}
.friend-row > div {
  flex: 1;
  min-width: 100px;
}
.friend-row strong,
.friend-presence {
  display: block;
}
.friend-presence {
  font-size: .8rem;
  color: #a5abb6;
  margin-top: 4px;
}
.friend-presence.online {
  color: #a6dc9a;
}
.friends-dialog summary {
  cursor: pointer;
  padding: 12px 0;
}
.friend-row details {
  font-size: .8rem;
}
.friend-row details[open] {
  flex-basis: 100%;
}
.friend-profile,
.add-friend-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 16px 0;
}
.friend-profile label,
.add-friend-form label {
  grid-column: 1/-1;
}
.friends-dialog input {
  min-width: 0;
  max-width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 10px;
  border: 1px solid #ffffff30;
  border-radius: 6px;
  background: #121821;
  color: #eee;
}
.friends-dialog button {
  min-height: 44px;
}
.friend-sharing > input {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  font-family: monospace;
}
.friend-games {
  margin: 18px 0;
}
.friend-games > div {
  display: grid;
  gap: 8px;
}
.friends-status {
  min-height: 1.4em;
}
.friends-dialog[aria-busy=true] button {
  opacity: .6;
  pointer-events: none;
}

/* dist/client/install-app.css */
.install-game-dialog {
  width: min(100% - 28px, 520px);
  max-height: calc(100dvh - 40px);
  box-sizing: border-box;
  overflow: auto;
  padding: 24px;
  background: #17212b;
  color: #f3ead7;
  border: 1px solid #596775;
  border-radius: 18px;
  box-shadow: 0 20px 90px #0009;
}
.install-game-dialog::backdrop {
  background: #050b13c9;
  backdrop-filter: blur(5px);
}
.install-game-dialog h3 {
  margin: 22px 0 10px;
  font-size: 1.05rem;
}
.install-game-dialog p,
.install-steps {
  font-size: .94rem;
  line-height: 1.6;
}
.install-summary {
  margin-bottom: 10px;
  color: #e5e8ec;
}
.install-state,
.install-note {
  color: #b9c6d4;
}
.install-steps {
  padding-left: 24px;
}
.install-steps li + li {
  margin-top: 8px;
}
.install-game-dialog .button {
  min-height: 44px;
  white-space: normal;
}
.install-other-devices {
  border-top: 1px solid #384654;
  padding-top: 14px;
  margin-top: 18px;
}
.install-other-devices summary {
  cursor: pointer;
  min-height: 30px;
  color: #e9d39a;
}
.install-other-devices p {
  color: #c4cfdb;
}
.install-other-devices strong {
  color: #e9edf2;
}
.install-updates {
  border-top: 1px solid #384654;
  margin-top: 18px;
}
.install-update-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.install-support {
  display: inline-block;
  color: #dec690;
  margin-top: 12px;
  min-height: 34px;
}
.install-game-entry {
  margin-top: 10px;
}
.game-update-notice {
  position: absolute;
  z-index: 10;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  max-width: calc(100% - 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 10px 6px 16px;
  border: 1px solid #a6865180;
  border-radius: 10px;
  background: #1e150bf2;
  box-shadow: 0 6px 24px #0007;
  color: #e8d39b;
  font-size: .9rem;
  line-height: 1.5;
  white-space: nowrap;
}
.game-update-label {
  font-weight: 600;
}
.game-update-notice[hidden],
.install-game-dialog [hidden] {
  display: none !important;
}
.game-update-notice .button {
  min-height: 44px;
}
@media (max-width: 480px) {
  .game-update-notice {
    gap: 8px;
    padding-left: 12px;
    font-size: .85rem;
  }
  .game-update-notice .button {
    padding-inline: 10px;
  }
}
@media (max-width: 480px) {
  .install-game-dialog {
    padding: 18px;
    max-height: calc(100dvh - 24px);
  }
  .install-game-dialog .dialog-heading {
    gap: 12px;
  }
  .install-game-dialog h2 {
    font-size: 1.3rem;
  }
}
.offline-download-status {
  font-size: .84rem;
  line-height: 1.5;
  max-width: 42ch;
  margin: 14px auto 0;
  text-align: center;
  color: #eadfc9;
}
.offline-download-status:empty {
  display: none;
}
.install-offline {
  margin-top: 24px;
  border-top: 1px solid #9c8966;
  padding-top: 12px;
}
.install-offline .button {
  margin: 6px 8px 6px 0;
}
.sandbox-update-notice {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #c5a56e;
  border-radius: 8px;
  background: #302819;
}
.sandbox-update-notice[hidden] {
  display: none;
}

/* dist/client/mobile-controls.css */
.mobile-board-viewport {
  display: contents;
}
.mobile-board-tools[hidden] {
  display: none;
}
.board-navigation-active .mobile-board-viewport {
  display: block;
  width: 100%;
  height: var(--mobile-viewport-height,auto);
  overflow: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
  scrollbar-width: none;
  overflow-anchor: none;
}
.board-navigation-active .mobile-board-viewport::-webkit-scrollbar {
  display: none;
}
.board-navigation-active .board-frame {
  width: var(--mobile-frame-width,100%);
  margin-inline: auto;
}
.board-navigation-active .board {
  touch-action: pan-x pan-y pinch-zoom;
}
.board-navigation-active .square {
  user-select: none;
  -webkit-touch-callout: none;
}
.mobile-board-viewport.board-panning,
.mobile-board-viewport.board-panning * {
  cursor: grabbing !important;
}
.board-focus-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.board-focus-tools .button {
  white-space: nowrap;
  font-size: .8rem;
  min-height: 38px;
  padding: 7px 9px;
}
.board-focus-tools [aria-pressed=true] {
  border-color: #be9c5c;
  background: #4c402b;
  color: #fff0c9;
}
.sidebar-navigation.board-view-tools {
  flex-wrap: wrap;
  align-items: center;
}
.board-expanded.board-navigation-active:not(.mobile-controls-active) .game-layout:not(.expanded-stacked) .game-sidebar {
  padding-top: 0;
}
.board-expanded.board-navigation-active:not(.mobile-controls-active) .game-layout:not(.expanded-stacked) .sidebar-navigation {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  flex-shrink: 0;
  padding: 12px 0 8px;
  background: #10151c;
}
.board-expanded.board-navigation-active:not(.mobile-controls-active) .turn-controls {
  top: var(--board-navigation-height,60px);
}
.board-navigation-active .mobile-board-viewport:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.mobile-controls-active .game-layout,
.mobile-controls-active.board-expanded .game-layout.expanded-stacked {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px max(10px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
}
.mobile-controls-active .battlefield,
.mobile-controls-active.board-expanded .battlefield {
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
}
.mobile-controls-active .game-sidebar,
.mobile-controls-active.board-expanded .game-sidebar {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: none;
  overflow: visible;
  gap: 12px;
  padding: 0;
  flex-shrink: 0;
}
.mobile-controls-active.board-expanded .game-layout {
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding-top: max(12px, env(safe-area-inset-top));
}
.mobile-controls-active.board-expanded .turn-controls {
  position: static;
}
.mobile-controls-active .site-header {
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
  align-items: flex-start;
}
.mobile-controls-active .header-actions {
  gap: 8px;
}
.mobile-controls-active .match-heading {
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
}
.mobile-controls-active .header-actions .button {
  font-size: .8125rem;
}
.mobile-controls-active .mobile-board-tools {
  margin: 8px 0 10px;
}
.mobile-controls-active .mobile-board-size {
  display: flex;
  gap: 8px;
}
.mobile-controls-active .mobile-board-size .button {
  flex: 1;
}
.mobile-controls-active .mobile-board-size .button {
  padding: 7px 5px;
  font-size: .8rem;
  white-space: nowrap;
}
.mobile-controls-active .sidebar-navigation .board-focus-tools {
  display: none;
}
.mobile-controls-active .mobile-board-size [aria-pressed=true] {
  border-color: var(--blue);
  color: var(--blue);
  background: #263d4b;
}
.mobile-controls-active #mobile-board-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.4;
}
.mobile-controls-active .mobile-board-viewport {
  display: block;
  width: 100%;
  height: var(--mobile-viewport-height,auto);
  overflow: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scrollbar-color: #6d8394 #18232b;
}
.mobile-controls-active .mobile-board-viewport:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.mobile-controls-active .board-frame {
  width: var(--mobile-frame-width,100%);
  margin-inline: auto;
  display: block;
}
.mobile-controls-active .board {
  touch-action: pan-x pan-y pinch-zoom;
}
.mobile-controls-active .square {
  -webkit-touch-callout: none;
  user-select: none;
}
.mobile-controls-active .board-heading,
.mobile-controls-active .board-footer {
  margin-left: 22px;
}
.mobile-controls-active .board-footer {
  flex-wrap: wrap;
}
.mobile-controls-active .board-key {
  display: none;
}
.mobile-controls-active .button,
.mobile-controls-active .board-view-tools .button,
.mobile-controls-active .setup-confirm .button,
.mobile-controls-active #selection-panel > .undo-button,
.mobile-controls-active .army-color-choice,
.mobile-controls-active .welcome-choice,
.mobile-controls-active .welcome-help,
.mobile-controls-active summary {
  min-height: 44px;
}
.mobile-controls-active .help-button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  flex-basis: 44px;
}
.mobile-controls-active .color-options {
  flex-wrap: wrap;
}
.mobile-controls-active .army-color-choice {
  min-width: 80px;
}
.mobile-controls-active .turn-card .action-display {
  margin-right: 44px;
}
.mobile-controls-active .piece-actions {
  gap: 8px;
}
.mobile-controls-active input:not([type=checkbox], [type=radio], [type=range]),
.mobile-controls-active select,
.mobile-controls-active textarea {
  font-size: 16px;
  min-height: 44px;
}
.mobile-controls-active input[type=range] {
  min-height: 44px;
}
.mobile-controls-active dialog {
  width: min(670px, calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 18px;
}
.mobile-controls-active .match-lobby {
  padding-top: max(28px, env(safe-area-inset-top));
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}
@media (orientation: landscape) and (max-height: 700px) {
  .mobile-controls-active .welcome-emblem {
    width: min(260px, 35vw);
    justify-self: center;
  }
  .mobile-controls-active .match-lobby {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
  }
}
.mobile-controls-active.board-expanded .game-layout,
.mobile-controls-active.board-expanded .game-layout.expanded-stacked {
  padding: 0;
}
.mobile-controls-active.board-expanded .battlefield {
  display: flex;
  flex-direction: column;
}
.mobile-controls-active.board-expanded .board-stage {
  order: -1;
}
.mobile-controls-active.board-expanded .mobile-board-tools {
  margin: 10px max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left));
}
.mobile-controls-active.board-expanded .game-sidebar {
  padding: 0 max(10px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
}
.mobile-controls-active .mobile-board-size .board-zoom,
.board-focus-tools .board-zoom {
  flex: 0 0 36px;
  min-width: 36px;
  padding-inline: 4px;
}
.mobile-controls-active .mobile-board-size {
  gap: 4px;
  flex-wrap: wrap;
}
.mobile-controls-active .mobile-board-size .button {
  font-size: 12px;
  min-height: 44px;
}

/* dist/client/war-menu.css */
:root {
  --camp-gold:#d2ad68;
  --camp-light:#f9e5ad;
  --camp-iron:#514c42;
  --camp-ink:#15110e;
}
body {
  background: #15130f;
}
.button,
.welcome-choice,
.welcome-help,
.sidebar-disclosure > summary,
dialog h2,
dialog h3,
.game-sidebar h2,
.game-sidebar h3,
legend,
.match-choice-heading,
#lobby-title {
  font-family:
    Georgia,
    "Times New Roman",
    serif;
}
.button,
.welcome-choice {
  color: #f0dfbf;
  border: 2px solid #736247;
  border-radius: 3px;
  background:
    linear-gradient(
      180deg,
      #474137,
      #27221a 45%,
      #181714);
  box-shadow:
    inset 0 1px #cfb98866,
    inset 0 -2px #0009,
    0 2px 5px #0007;
  text-shadow: 0 2px 2px #000;
}
.button:hover:not(:disabled),
.welcome-choice:hover:not(:disabled) {
  color: #fff1b5;
  border-color: #d6b36b;
  background: linear-gradient(#665436, #3a2b19);
  box-shadow: inset 0 1px #ffe3a6, 0 0 14px #ce972331;
}
.button:focus-visible,
.welcome-choice:focus-visible,
.welcome-help:focus-visible {
  outline: 2px solid #ffe1a0;
  outline-offset: 3px;
}
.button.primary {
  color: #ffedbc;
  background:
    linear-gradient(
      #34573d,
      #1b3827 55%,
      #122719);
  border-color: #bb9654;
}
.button.primary:hover:not(:disabled) {
  background: linear-gradient(#467444, #244d2f);
  border-color: #f3d286;
}
.button.danger {
  background: linear-gradient(#683a31, #39201a);
  border-color: #93604b;
  color: #ffe0bb;
}
.button:disabled,
.welcome-choice:disabled {
  opacity: .4;
  filter: saturate(.4);
  cursor: default;
}
.match-lobby {
  max-width: none;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  padding: clamp(88px, 10svh, 120px) clamp(20px, 4vw, 56px);
  background:
    linear-gradient(
      90deg,
      #100a0305,
      #100a0310),
    url(./assets/menu/tavern-warboard-v6.jpg) center/cover;
  gap: 0;
}
.welcome-title-banner {
  position: relative;
  width: calc(100% + 72px);
  margin: 0 -36px 26px;
  text-align: center;
}
.welcome-menu {
  grid-column: 1;
  position: relative;
  max-width: 430px;
  padding: 32px 28px 14px;
  border: 1px solid #a68651a6;
  border-top-color: #e0c18caa;
  border-bottom-color: #70513199;
  border-radius: 12px;
  background:
    linear-gradient(
      115deg,
      #281b0b9c,
      #160d079e);
  box-shadow:
    inset 0 0 0 1px #e4c5891a,
    inset 0 1px 0 #efd29a1f,
    inset 0 -1px 0 #07030180,
    0 18px 38px #0006;
}
#lobby-title {
  position: relative;
  margin: 0;
  padding: 4px 16px;
  line-height: 0;
}
.welcome-title-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.warboard-wordmark {
  display: block;
  width: 100%;
  height: auto;
  margin-block: -4%;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px #000a);
}
.lobby-subtitle {
  margin: 4px 0 0;
  color: #eddbb4;
  font: normal .9375rem/1.5 Georgia, serif;
  letter-spacing: .1em;
  text-shadow: 0 2px 2px #000;
}
.welcome-menu .welcome-choice {
  border: 1px solid #ba925f99;
  border-radius: 2px 12px 2px 12px;
  background:
    linear-gradient(
      110deg,
      #71553470,
      #29201696);
  box-shadow: inset 0 1px #e4c08855, 0 3px 6px #0003;
}
.welcome-menu .welcome-choice:hover:not(:disabled) {
  background:
    linear-gradient(
      110deg,
      #92713c9c,
      #51371dad);
}
.welcome-menu .welcome-choice.welcome-primary {
  background:
    linear-gradient(
      110deg,
      #50613791,
      #26371da8);
}
.welcome-page-heading {
  margin: -9px 0 22px;
}
.welcome-page-heading h3 {
  margin: 13px 0 0;
  font: normal 1.5rem Georgia, serif;
  color: #f1d8a7;
}
.welcome-page-heading h3:focus {
  outline: 0;
}
.welcome-page {
  position: relative;
  isolation: isolate;
}
.welcome-page:not(#welcome-home) {
  padding: 16px 14px 20px;
  border-block: 2px solid #b79760;
  border-radius: 3px 8px 5px 2px;
  background:
    radial-gradient(
      ellipse at 10% 0,
      #f6dfad99,
      transparent 70%),
    linear-gradient(
      105deg,
      #d3b989e8,
      #f0d9aceb 50%,
      #cdb07ee3);
  box-shadow: inset 0 0 20px #76451a45, 0 5px 14px #0004;
}
.welcome-page:not(#welcome-home)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      #a46e3540,
      transparent 16%,
      transparent 85%,
      #a46e3540);
}
.welcome-page:not(#welcome-home) .welcome-page-heading {
  margin: 0 0 18px;
}
.welcome-page:not(#welcome-home) :is(h3, .welcome-back) {
  color: #49301a;
}
.welcome-page:not(#welcome-home) .welcome-back:hover {
  color: #1e1208;
}
.welcome-page:not(#welcome-home) .welcome-back:focus-visible {
  outline-color: #664220;
}
.welcome-back {
  display: block;
  border: 0;
  color: #e2c594;
  background: none;
  padding: 4px 0;
  font: 1rem Georgia, serif;
  cursor: pointer;
}
.welcome-back:hover {
  color: #fff0ba;
}
.welcome-back:focus-visible {
  outline: 2px solid #efd194;
  outline-offset: 4px;
}
.welcome-menu > .welcome-status {
  margin: 10px 0 0;
  min-height: 1.5em;
}
.welcome-choices {
  gap: 13px;
}
.welcome-choice {
  padding: 15px 18px;
  font-size: 1.35rem;
  font-weight: normal;
}
.welcome-choice.welcome-primary {
  color: #ffe6a1;
  background: linear-gradient(#424f31, #26301e);
  border-color: #bea066;
}
.welcome-choice small {
  color: #d1c3aa;
  font-size: .875rem;
  line-height: 1.4;
  font-family: Georgia, serif;
}
.welcome-help {
  display: inline-block;
  font-size: .875rem;
  line-height: 1.4;
  color: #d9c28e;
  text-decoration: none;
  padding: 10px 8px;
}
.welcome-help:hover {
  color: #fff0b8;
  text-decoration: underline;
}
.welcome-page .install-game-entry {
  color: #49321d;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
}
.welcome-page .install-game-entry:hover {
  color: #24180d;
}
.welcome-status {
  color: #dacdb7;
  font-size: .875rem;
}
dialog,
dialog.welcome-dialog,
.settings-dialog {
  padding: 24px;
  color: #f0e0c1;
  border: 5px ridge #74634a;
  border-radius: 3px;
  background: linear-gradient(#17120edc, #17120ee8), url(./assets/menu/tavern-warboard-v6.jpg) center/cover;
  box-shadow:
    0 0 0 2px #181715,
    inset 0 0 42px #0008,
    0 20px 90px #000c;
  max-height: calc(100dvh - 24px);
}
dialog::backdrop,
.welcome-dialog::backdrop {
  background: #090804bb;
  backdrop-filter: blur(3px);
}
dialog h2,
.welcome-dialog .dialog-heading h2 {
  color: var(--camp-light);
  font-size: 1.9rem;
  font-weight: normal;
  text-shadow: 0 2px #000;
}
dialog h3 {
  color: #e3c78b;
}
dialog p,
dialog li {
  color: #dacdb8;
}
.main-menu-dialog {
  width: min(430px, calc(100vw - 24px));
}
.menu-match-info {
  margin: 8px 0 20px;
  font-size: .875rem;
  text-align: center;
}
.camp-menu {
  display: grid;
  gap: 12px;
}
.camp-menu > .button {
  font-size: 1.18rem;
  padding: 13px;
  text-align: center;
  text-decoration: none;
}
.menu-sign {
  width: 100%;
  font-size: 1.15rem;
  letter-spacing: .03em;
  min-height: 46px;
  border: 3px ridge #96815a;
  background: linear-gradient(#4b3525, #291b12);
}
.board-expanded .game-layout {
  background: #15130f;
}
.board-expanded .game-sidebar {
  padding: 10px;
  background: linear-gradient(#19130eee, #15110cf5), url(./assets/menu/tavern-warboard-v6.jpg) right/cover;
}
.board-expanded .turn-controls {
  background: #1a140f;
}
.sidebar-card,
.turn-card,
.board-expanded .turn-card,
.board-expanded .sidebar-card {
  border: 2px solid #66553b;
  border-radius: 3px;
  background:
    linear-gradient(
      130deg,
      #292319,
      #171813);
  box-shadow: inset 0 1px #a58b4e38, 0 2px 6px #0005;
}
.game-sidebar .section-heading {
  border-bottom: 1px solid #8b73465c;
  padding-bottom: 9px;
  margin-bottom: 10px;
}
.game-sidebar h3 {
  color: #e8cf98;
  font-size: 1rem;
}
.game-sidebar h2 {
  color: #f2dbac;
}
.setup-step-mark {
  border-color: #927b4e;
  background: #38291d;
  color: #e4c98b;
}
.sidebar-card[data-setup-status=active] {
  border-color: #cbb079;
  box-shadow: inset 0 1px #a58b4e38, 0 0 0 1px #cbb07940;
}
.sidebar-card[data-setup-status=done] .setup-step-mark {
  color: #c3d79a;
  background: #28311c;
  border-color: #688347;
}
#race-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#race-options .race-choice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 7px 3px;
  min-height: 98px;
  font-size: .875rem;
  border-color: #6d624e;
}
.race-choice img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px #0008);
}
.sidebar-card[data-setup-status=done] :is(.color-options, .commander-options, .selection-content, .piece-actions) {
  opacity: 1;
}
#race-options .race-choice[data-race=humans] {
  background: linear-gradient(#152a40, #111820);
}
#race-options .race-choice[data-race=orcs] {
  background: linear-gradient(#452720, #211513);
}
#race-options .race-choice[data-race=elves] {
  background: linear-gradient(#30263f, #111e20);
}
#race-options .race-choice[data-race=undead] {
  background: linear-gradient(#23333e, #11161b);
}
#race-options .race-choice[aria-pressed=true] {
  border-color: #e6bd6f;
  box-shadow: inset 0 0 18px #dfac291f, 0 0 0 1px #ad843d;
  color: #ffe6a2;
}
#race-options .button:last-child {
  grid-column: 1 / -1;
}
.army-color-choice,
.commander-choice {
  border-radius: 3px;
  border-color: #796546;
  background: linear-gradient(#2b281f, #181b19);
}
.commander-choice[aria-pressed=true] {
  border-color: #cfaf6b;
  background: #283428;
}
.commander-choice strong {
  font-family: Georgia, serif;
  color: #f2dbac;
}
.commander-choice span {
  color: #c3bea9;
}
.help-button {
  background: #302c23;
  border-color: #8a754e;
  color: #e0c48b;
}
.setup-start-dock,
.board-expanded .setup-start-dock {
  display: none;
}
.board-expanded .game-layout:has(.setup-start-dock:not([hidden])) {
  grid-template-rows: none;
}
.setup-confirm {
  top: 50%;
  width: min(430px, 85%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  gap: 10px;
}
.setup-confirm .button.primary {
  font-family: Georgia, serif;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: normal;
  line-height: 1.2;
  padding: 22px 15px;
  color: #ffebac;
  background:
    linear-gradient(
      90deg,
      #182019ee,
      #243e25f5,
      #182019ee);
  border: 2px solid #ae8a4f;
  box-shadow: 0 8px 30px #0009, inset 0 0 28px #3f673326;
  text-shadow: 0 3px 2px #000;
}
.setup-confirm .button.primary:hover:not(:disabled),
.setup-confirm .button.primary:focus {
  color: #fff4cf;
  border-color: #ffe29a;
  background:
    linear-gradient(
      90deg,
      #243326f5,
      #385e32fa,
      #243326f5);
  box-shadow: 0 0 26px #e8c6654a, 0 8px 30px #0009;
}
.setup-confirm .button.quiet {
  width: max-content;
  justify-self: center;
  padding: 7px 14px;
  border: 1px solid #8b794c80;
  background: #191a16df;
  color: #e8dcc4;
}
.battle-result {
  position: absolute;
  z-index: 15;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(480px, 86%);
  padding: 30px 20px;
  border-block: 3px solid #ba985c;
  text-align: center;
  background:
    linear-gradient(
      90deg,
      #15150df2,
      #283521f5,
      #15150df2);
  box-shadow: 0 10px 40px #000a;
}
.battle-result h2 {
  color: #ffe6a1;
  font: normal clamp(2.5rem, 6vw, 5rem)/1.1 Georgia, serif;
  margin: 0;
  text-shadow: 0 4px #000;
}
.battle-result p {
  color: #eee0bf;
  margin: 14px 0 20px;
}
.battle-result[data-outcome=defeat] {
  background:
    linear-gradient(
      90deg,
      #20120ff2,
      #492420f5,
      #20120ff2);
  border-color: #95664d;
}
.battle-result[data-outcome=defeat] h2 {
  color: #f2b694;
}
.battle-result[hidden] {
  display: none;
}
.game-tooltip {
  position: fixed;
  inset: auto;
  margin: 0;
  pointer-events: none;
  width: max-content;
  max-width: min(300px, calc(100vw - 16px));
  padding: 10px 13px;
  background: #dfc89c;
  color: #2c2013;
  border: 2px solid #8c6e3a;
  border-radius: 3px;
  box-shadow: 0 6px 18px #0008;
  font-size: .875rem;
  line-height: 1.45;
}
.help-popover {
  background: #d8c197;
  color: #2b2419;
  border-color: #927446;
  border-radius: 3px;
}
.help-popover p,
.help-popover strong {
  color: inherit;
}
.audio-panel {
  background: #211c14;
  border-color: #756043;
}
.battlefield-facts dt,
.coordinate-note,
.settings-dialog .scenery-status,
.music-status {
  color: #c1b79f;
}
.mode-switch,
.opponent-options {
  border-color: #796b50;
}
.mode-switch label span,
.opponent-options label span {
  font-family: Georgia, serif;
}
.mode-switch input:checked + span,
.opponent-options input:checked + span {
  background: #425035;
  color: #ffe9b3;
  border-color: #c8a260;
}
.level-choice {
  border-radius: 3px;
  border-color: #776849;
}
input,
select {
  accent-color: #bd9d60;
}
dialog input:not([type=radio]):not([type=checkbox]):not([type=range]),
dialog select {
  background: #171710;
  border: 1px solid #897345;
  color: #f1e3c4;
  border-radius: 3px;
}
.board-viewport {
  background:
    radial-gradient(
      ellipse,
      #283022,
      #11130f);
}
.board-expanded .expanded-stacked .game-sidebar {
  padding: 10px;
}
.board-expanded .game-layout.expanded-stacked:has(.setup-start-dock:not([hidden])) {
  grid-template-rows: auto minmax(0, 1fr);
}
.learning-dialog {
  width: min(620px, calc(100vw - 24px));
}
.faq-question {
  border-bottom: 1px solid #b7975e66;
  padding: 13px 0;
}
.faq-question summary {
  cursor: pointer;
  color: #f3d7a2;
  font: 1.1rem/1.4 Georgia, serif;
}
.faq-question p {
  line-height: 1.6;
  margin-bottom: 0;
}
.faq-question + button {
  margin-top: 18px;
}
.tutorial-progress {
  color: #baab8c;
  font-size: .8rem;
}
.tutorial-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(360px, 100%);
  margin: 20px auto;
  border: 3px ridge #b6965f;
}
.tutorial-square {
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background: #73613f;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tutorial-square.dark {
  background: #403b29;
}
.tutorial-square.tutorial-island {
  background: #806936;
  box-shadow: inset 0 0 0 3px #d9b86a;
}
.tutorial-square.selected {
  outline: 3px solid #e2d389;
  outline-offset: -3px;
}
.tutorial-square > .token {
  pointer-events: none;
}
.tutorial-square:focus-visible {
  outline: 3px solid #e8d997;
  outline-offset: -3px;
}
.tutorial-status {
  min-height: 2.7em;
  color: #eed092;
  line-height: 1.5;
}
dialog:is(.welcome-dialog, .learning-dialog, .settings-dialog, .main-menu-dialog, .install-game-dialog, #rules-dialog, #restart-dialog) {
  color: #382615;
  border: 4px ridge #ab8550;
  border-radius: 5px 12px 6px 3px;
  background:
    radial-gradient(
      ellipse at 18% 5%,
      #fae8bd66,
      transparent 68%),
    linear-gradient(
      105deg,
      #cfb487ed,
      #eddbb4ed 50%,
      #ceb180ed);
  box-shadow:
    0 0 0 2px #352516,
    inset 0 0 38px #75401c55,
    0 20px 70px #000a;
}
dialog:is(.welcome-dialog, .learning-dialog, .settings-dialog, .main-menu-dialog, .install-game-dialog, #rules-dialog, #restart-dialog) :is(h2, h3, p, li, dt, dd, summary, label, legend, .friend-presence, .install-support) {
  color: #49321d;
  text-shadow: none;
}
dialog:is(.welcome-dialog, .learning-dialog, .settings-dialog, .main-menu-dialog, .install-game-dialog, #rules-dialog, #restart-dialog) .button {
  color: #f0dfbf;
}
dialog:is(.welcome-dialog, .learning-dialog, .settings-dialog, .main-menu-dialog, .install-game-dialog, #rules-dialog, #restart-dialog) .friend-presence.online {
  color: #31582c;
}
dialog :is(.level-choice, .opponent-options) :is(span, strong) {
  color: #f0dfbf;
}
dialog .level-choice small {
  color: #c9b997;
}
dialog .match-picker-note,
.main-menu-dialog .scorecard {
  color: #614629;
}
#game-settings .audio-panel :is(p, li, strong, label) {
  color: #dacdb8;
}
#game-settings .audio-panel summary {
  color: #eed8a5;
}
.learning-dialog .faq-question summary {
  color: #4f3217;
}
.learning-dialog .tutorial-progress {
  color: #765536;
}
.learning-dialog .tutorial-status {
  color: #62441f;
}
@keyframes menu-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes parchment-unfold {
  from {
    opacity: .45;
    transform: translateY(-5px) scaleY(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}
@keyframes ink-written {
  from {
    clip-path: inset(0 100% 0 0);
    filter: blur(1px);
  }
  to {
    clip-path: inset(0);
    filter: blur(0);
  }
}
@keyframes parchment-pass {
  from {
    opacity: .55;
    transform: scaleY(.1);
  }
  to {
    opacity: 0;
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .in-menu .welcome-menu {
    animation: menu-arrive 1620ms 250ms ease-out both;
  }
  .welcome-page:not(#welcome-home):not([hidden]) {
    transform-origin: 50% 0;
    animation: parchment-unfold 320ms ease-out;
  }
  .welcome-page:not(#welcome-home):not([hidden])::before {
    content: "";
    position: absolute;
    inset: -4px;
    z-index: 2;
    pointer-events: none;
    border-block: 2px solid #b5894590;
    background:
      linear-gradient(
        #d8ba8766,
        #f3dfb733,
        #ab763d40);
    transform-origin: 50% 0;
    animation: parchment-pass 420ms ease-out both;
  }
  .welcome-page:not([hidden]) h3 {
    width: fit-content;
    margin-inline: auto;
    animation: ink-written 430ms 60ms ease-out backwards;
  }
  dialog:is(.welcome-dialog, .learning-dialog, .settings-dialog, .main-menu-dialog, .install-game-dialog, #rules-dialog, #restart-dialog)[open] {
    transform-origin: 50% 15%;
    animation: parchment-unfold 320ms ease-out;
  }
  dialog:is(.welcome-dialog, .learning-dialog, .settings-dialog, .main-menu-dialog, .install-game-dialog, #rules-dialog, #restart-dialog)[open] h2 {
    animation: ink-written 460ms 50ms ease-out backwards;
  }
}
@media (max-width: 720px) {
  .match-lobby {
    padding: 88px 20px;
  }
  .welcome-menu {
    grid-column: 1;
  }
  .welcome-menu {
    padding: 22px 20px 12px;
    max-width: 360px;
  }
  .welcome-title-banner {
    width: calc(100% + 40px);
    margin: 0 -20px 24px;
  }
  #lobby-title {
    padding: 4px 16px;
  }
  .welcome-choice {
    padding: 11px 14px;
    font-size: 1.05rem;
  }
  .setup-confirm .button.primary {
    padding: 17px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button,
  .welcome-choice {
    transition: none;
  }
}

/* dist/client/menu-ornaments.css */
dialog#main-menu-dialog {
  --menu-border:url(./assets/menu/menu-citadel-border.svg);
  --menu-mark:url(./assets/menu/menu-citadel-engraving.svg);
  --menu-paper:#e2d3ad;
  --menu-edge:#b19b73;
  padding: 24px 30px;
  border: 3px ridge #a68856;
  border-radius: 4px 9px 4px 3px;
  background-image:
    var(--menu-border),
    var(--menu-border),
    repeating-linear-gradient(
      0deg,
      #55341903 0 1px,
      transparent 1px 4px),
    radial-gradient(
      ellipse at 30% 0,
      #fff6dd8a,
      transparent 65%),
    linear-gradient(
      100deg,
      var(--menu-edge),
      var(--menu-paper) 15%,
      var(--menu-paper) 85%,
      var(--menu-edge));
  background-size:
    12px 80px,
    12px 80px,
    auto,
    auto,
    auto;
  background-position:
    7px 0,
    calc(100% - 7px) 0,
    center,
    center,
    center;
  background-repeat:
    repeat-y,
    repeat-y,
    repeat,
    no-repeat,
    no-repeat;
  box-shadow:
    0 0 0 2px #352516,
    inset 0 0 0 4px #f4e4bf44,
    inset 0 0 25px #624a2c35,
    0 20px 70px #000a;
}
dialog#main-menu-dialog[data-map-theme=forest] {
  --menu-border:url(./assets/menu/menu-forest-border.svg);
  --menu-mark:url(./assets/menu/menu-forest-engraving.svg);
  --menu-paper:#d5d8b7;
  --menu-edge:#97a382;
  border-color: #7b8766;
}
dialog#main-menu-dialog[data-map-theme=wasteland] {
  --menu-border:url(./assets/menu/menu-wasteland-border.svg);
  --menu-mark:url(./assets/menu/menu-wasteland-engraving.svg);
  --menu-paper:#dcc29a;
  --menu-edge:#ae865c;
  border-color: #9c7651;
}
.main-menu-dialog .dialog-heading {
  padding-bottom: 10px;
  border-bottom: 1px solid #72553050;
}
.main-menu-dialog .menu-match-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 6px 0 14px;
  min-height: 38px;
  font-size: .8rem;
}
.main-menu-dialog .menu-match-info::before {
  content: "";
  flex: 0 0 38px;
  height: 38px;
  background: var(--menu-mark) center/contain no-repeat;
  pointer-events: none;
}
.main-menu-dialog .camp-menu {
  gap: 10px;
}
.main-menu-dialog .camp-menu > .button {
  border-width: 1px;
  border-radius: 2px;
  box-shadow:
    inset 0 1px #dcc79b4a,
    inset 0 -2px #0008,
    0 2px 4px #3e291f55;
}
.welcome-menu {
  border-color: #997749;
  background:
    repeating-linear-gradient(
      2deg,
      #dbc28c06 0 1px,
      transparent 1px 7px),
    repeating-linear-gradient(
      178deg,
      #0000000b 0 2px,
      transparent 2px 17px),
    linear-gradient(
      100deg,
      #23160ff0,
      #3c291be0 28%,
      #24170ee8 72%,
      #3a2518eb);
  box-shadow:
    inset 0 0 0 3px #17100b8a,
    inset 0 0 0 4px #ad89532e,
    inset 0 1px #dfc2944d,
    0 18px 38px #0008;
}
.welcome-menu::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid #bc995847;
  border-radius: 6px;
  background:
    radial-gradient(
      circle at 7px 7px,
      #dfc388 0 1px,
      #71502b 2px,
      #160f0990 3px,
      transparent 4px),
    radial-gradient(
      circle at calc(100% - 7px) 7px,
      #dfc388 0 1px,
      #71502b 2px,
      #160f0990 3px,
      transparent 4px),
    radial-gradient(
      circle at 7px calc(100% - 7px),
      #dfc388 0 1px,
      #71502b 2px,
      #160f0990 3px,
      transparent 4px),
    radial-gradient(
      circle at calc(100% - 7px) calc(100% - 7px),
      #dfc388 0 1px,
      #71502b 2px,
      #160f0990 3px,
      transparent 4px);
}
#welcome-home .welcome-choice {
  border-color: #9e81594d;
  border-radius: 3px;
  background:
    repeating-linear-gradient(
      1deg,
      #f3c99005 0 1px,
      transparent 1px 6px),
    linear-gradient(
      100deg,
      #2c1e1494,
      #6a4d2c60 48%,
      #2c1e1494);
  box-shadow:
    inset 0 1px #e8c89726,
    inset 0 -1px #0a07065e,
    0 2px 4px #0003;
}
#welcome-home .welcome-choice:hover:not(:disabled) {
  background:
    linear-gradient(
      100deg,
      #3b2819c7,
      #80603787 48%,
      #3b2819c7);
  border-color: #c8a771b3;
}
.welcome-page:not(#welcome-home) {
  box-shadow:
    inset 0 0 20px #76451a35,
    inset 0 0 0 1px #fff5d755,
    0 5px 14px #0004;
}
@media (max-width: 480px) {
  dialog#main-menu-dialog {
    padding: 22px 26px;
  }
  .main-menu-dialog .dialog-heading {
    gap: 10px;
  }
  .main-menu-dialog .dialog-heading h2 {
    font-size: clamp(1.45rem, 6.3vw, 1.9rem);
  }
  .main-menu-dialog .dialog-heading .button {
    padding-inline: 12px;
  }
  .main-menu-dialog .menu-match-info {
    gap: 7px;
    font-size: .76rem;
  }
  .main-menu-dialog .menu-match-info::before {
    flex-basis: 32px;
    height: 32px;
  }
}

/* dist/client/play-panel.css */
.game-sidebar {
  gap: 10px;
}
.selection-panel {
  position: relative;
}
.selection-help-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
}
.selection-panel .section-heading {
  padding-right: 36px;
}
.selection-panel[data-phase=play] .selection-content {
  gap: 8px;
}
.selection-panel .selection-position {
  font-size: .75rem;
  color: #bcae8e;
  margin: 5px 0 0;
}
.piece-actions:empty {
  display: none;
}
.ability-badge {
  font-size: .75rem;
  padding: 5px 9px;
  background: #c7b7800b;
  border-color: #8d80534d;
  color: #d9cea8;
}
.ability-badge.spent {
  opacity: .42;
}
.target-key {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #c9c0a6;
  font-size: .75rem;
  min-height: 28px;
}
.target-key .legend-capture {
  margin-left: 12px;
}
.target-actions {
  position: fixed;
  inset: auto;
  margin: 0;
  min-width: 145px;
  max-width: calc(100vw - 16px);
  padding: 7px;
  display: none;
  gap: 5px;
  border: 2px solid #a28a58;
  border-radius: 4px;
  background: #211e16f5;
  box-shadow: 0 6px 24px #0009;
}
.target-actions:popover-open {
  display: grid;
}
.target-actions .button {
  text-align: left;
  min-height: 42px;
}
.target-actions .button:last-child {
  border-color: transparent;
  opacity: .7;
}
.square.legal-choice:not(:has(> .ground-action-cues))::after,
.square.legal-choice > .ground-action-cues::after {
  content: "\25c8";
  position: absolute;
  inset: 2px;
  width: auto;
  height: auto;
  border-radius: 0;
  background:
    linear-gradient(
      135deg,
      #dcf6ff 45%,
      #ff9b91 55%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font: 700 clamp(14px, 2.2vw, 25px)/1 sans-serif;
  display: grid;
  place-items: center;
  box-shadow: none;
  z-index: 4;
  filter: drop-shadow(0 1px 2px #000);
  pointer-events: none;
}
.setup-confirm {
  width: min(340px, 72%);
  pointer-events: none;
}
.setup-confirm #setup-ready {
  pointer-events: auto;
  font-size: clamp(1.35rem, 3vw, 2.6rem);
  padding: 16px 12px;
}
.setup-confirm:not(.is-ready) #setup-ready {
  opacity: .68;
  filter: none;
  color: #b6ad98;
  background: #201f1ce0;
  border-color: #74684d;
  box-shadow: 0 4px 15px #0005;
}
.setup-confirm.is-ready #setup-ready {
  color: #ffedbc;
  border-color: #e4c87b;
  background:
    linear-gradient(
      90deg,
      #253926ec,
      #375a31f2,
      #253926ec);
  box-shadow: 0 0 22px #d1b36b26, 0 6px 18px #0007;
}
.sidebar-card[data-setup-locked=true] {
  opacity: 1;
}
.sidebar-card[data-setup-locked=true] .section-heading h3::after {
  content: "Random";
  font: normal .65rem -apple-system, sans-serif;
  letter-spacing: .04em;
  color: #b5b495;
  border: 1px solid #7e80514d;
  border-radius: 3px;
  padding: 3px 5px;
}
.sidebar-card[data-setup-locked=true] button:disabled {
  opacity: 1;
  filter: none;
}
#race-options .race-choice:last-child {
  grid-column: auto;
}
#race-panel[data-setup-locked=true] #race-options {
  grid-template-columns: 1fr;
}
#race-panel[data-setup-locked=true] .race-choice {
  flex-direction: row;
  min-height: 72px;
}
#commander-panel[data-setup-locked=true] .commander-options {
  grid-template-columns: 1fr;
}
.turn-card {
  border-top-color: var(--team);
}
.turn-card .action-display {
  grid-column: 1 / -1;
  grid-row: auto;
  margin: 3px 0;
  gap: 12px;
}
#actions-left {
  font-size: 3.65rem;
  font-weight: 650;
  text-shadow: 0 2px 5px #0008;
}
.action-display strong {
  color: #ddd2b9;
  font-size: .9rem;
}
.action-pips {
  gap: 5px;
  flex-wrap: wrap;
}
.action-pips .pip {
  width: 22px;
  height: 6px;
}
.resource-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: none;
}
.resource-sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: 6px;
  padding: 5px 0 10px;
}
.resource-counter {
  display: grid;
  grid-template-columns: 22px auto;
  justify-content: center;
  align-items: center;
  gap: 1px 6px;
  padding: 7px 3px;
  background: #090d0760;
  border: 1px solid #9e895f2b;
  border-radius: 3px;
  color: #d7bc80;
}
.resource-counter strong {
  color: #f0dfb4;
  font-size: 1.18rem;
  font-variant-numeric: tabular-nums;
}
.resource-counter small {
  grid-column: 1 / -1;
  text-align: center;
  color: #b7ad96;
  font-size: .65rem;
}
[data-tooltip]:focus-visible {
  outline: 2px solid #e5c78a;
  outline-offset: 3px;
}
.territory-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d1c5a9;
}
.territory-name .resource-icon {
  width: 20px;
  height: 20px;
  color: #b5a77f;
}
.territory-row {
  border-color: #8b79502d;
  min-height: 36px;
}
.territory-state {
  font-size: 1rem;
}
.territory-state.south {
  color: var(--south-color);
}
.territory-state.north {
  color: var(--north-color);
}
.territory-state.contested {
  color: #e1b985;
}
.territory-state.unknown {
  color: #a5a794;
}
.turn-history > h3 {
  margin: 0 0 8px;
  color: #d0c098;
}
.turn-history p {
  font-size: .8rem;
  color: #bbb29c;
  line-height: 1.5;
}
.turn-history .recap-meta {
  color: #978f79;
  font-size: .7rem;
  margin: 0 0 5px;
}
.turn-history .turn-recap {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.turn-history details > summary {
  min-height: 32px;
  display: list-item;
  cursor: pointer;
  color: #c8b789;
  font-size: .8rem;
  padding: 6px 0;
}
.turn-history #history-panel {
  border-top: 1px solid #8b795033;
  margin-top: 9px;
}
.turn-history ol {
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}
.turn-history ol li {
  border-left: 2px solid #88734866;
  padding: 0 0 0 9px;
  margin: 10px 0;
  color: #c4bda9;
  line-height: 1.5;
}
.history-meta {
  display: block;
  color: #938f7e;
  font-size: .65rem;
  margin-bottom: 3px;
}
.board-viewport::after {
  background:
    radial-gradient(
      ellipse,
      transparent 65%,
      #050a1230);
}
@media (max-width: 720px) {
  .turn-history {
    grid-column: 1 / -1;
  }
  .setup-confirm #setup-ready {
    padding: 12px 9px;
  }
  .square.legal-choice:not(:has(> .ground-action-cues))::after,
  .square.legal-choice > .ground-action-cues::after {
    font-size: 18px;
  }
}
.setup-confirm {
  justify-items: stretch;
}
.sidebar-card[data-setup-locked=true][data-setup-mode=default] .section-heading h3::after {
  content: "Default";
}

/* dist/client/replay.css */
.replay-page main {
  max-width: 980px;
  margin: auto;
  padding: 20px;
}
.replay-page header,
.replay-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.replay-page header {
  justify-content: space-between;
}
.replay-page a {
  text-decoration: none;
}
.replay-page p {
  line-height: 1.5;
}
.replay-page label.button {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  height: auto;
}
.replay-page input[type=file] {
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
.recorded-game-controls {
  margin: 12px auto 20px;
  padding: 14px 18px;
  max-width: 1050px;
  background: #18211eed;
  border: 1px solid #8c78524d;
  border-radius: 10px;
}
.recorded-game-controls > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.recorded-game-controls h1 {
  margin: 0 0 12px;
  font: 1.2rem Georgia, serif;
}
.recorded-game-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.recorded-game-controls input[type=file] {
  max-width: 100%;
}
.recorded-game-controls .replay-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.recorded-game-controls .replay-controls[hidden] {
  display: none;
}
.recorded-game-controls p {
  line-height: 1.5;
  font-size: .88rem;
}
.recorded-game-controls .recorded-game-legacy {
  display: inline-block;
  margin-top: 12px;
  font-size: .8rem;
}
.recorded-game-mode :is(#match-lobby, #watch-controls, #turn-replay, #end-turn, #undo, #new-game, #rematch-panel, #battle-chat, #battle-result, #surrender-button, #cheat-menu, [data-menu-new], [data-menu-home], [data-history-stats], #action-pips, #resource-sources, #actions-label) {
  display: none !important;
}
.recorded-game-mode #turn-guidance,
.recorded-game-mode #action-sources {
  display: none;
}
.replay-controls input {
  flex: 1;
  min-width: 120px;
  min-height: 44px;
}
#replay-board {
  max-width: 760px;
  margin: 20px auto;
  container-type: inline-size;
}
#replay-board .square {
  cursor: default;
}
.recorded-board {
  container-type: inline-size;
  grid-template-rows: repeat(var(--board-rows,var(--board-size)), minmax(0, 1fr));
  aspect-ratio: var(--board-size) / var(--board-rows,var(--board-size));
}
.recorded-board > :is(.fog-layer, .fog-unknown, .fog-object-underlay) {
  height: calc(100% * var(--board-size) / var(--board-rows,var(--board-size))) !important;
  bottom: auto;
  clip-path: inset(0 0 calc(100% * (1 - var(--board-rows,var(--board-size)) / var(--board-size))) 0);
}
.recorded-board > .square[data-elevation] {
  z-index: 3;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
}
.recorded-board > .square[data-elevation="2"] {
  z-index: 4;
}
.recorded-board > .square[data-elevation] > .high-ground-hit {
  pointer-events: none;
}
.saved-game-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.saved-game-row > :first-child {
  flex: 1;
}
dialog.turn-review-dialog {
  width: min(850px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  max-height: calc(100dvh - 20px);
  padding: 16px;
  color: #eee6d0;
  background: #1b211efc;
  border: 1px solid #a38c5d;
}
.turn-review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.turn-review-heading h2 {
  margin: 0;
  font: 1.1rem Georgia, serif;
  color: #efe2bf;
}
.turn-review-heading .button {
  flex: none;
  min-height: 44px;
}
.turn-review-content[hidden],
.turn-review-status[hidden] {
  display: none;
}
.turn-review-board {
  width: min(100%, max(280px, calc(100dvh - 260px)));
  margin: 16px auto;
}
.turn-review-board .square {
  cursor: default;
}
.turn-review-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.turn-review-controls .button {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
}
.turn-review-controls input {
  flex: 1;
  min-width: 55px;
  min-height: 44px;
  accent-color: #d1b573;
}
.turn-review-caption {
  min-height: 2.8em;
  font-size: .85rem;
  line-height: 1.4;
  margin: 10px 0 6px;
}
.turn-review-detail,
.turn-review-status {
  font-size: .78rem;
  line-height: 1.4;
  color: #c4c8bf;
  margin: 8px 0;
}
@media (max-width: 600px) {
  dialog.turn-review-dialog {
    padding: 10px;
  }
  .turn-review-heading {
    align-items: flex-start;
  }
  .turn-review-heading h2 {
    font-size: .95rem;
    line-height: 1.4;
  }
  .turn-review-board {
    width: 100%;
    margin: 12px auto;
  }
}
.turn-review-actions {
  display: flex;
  gap: 6px;
  overflow: auto;
  padding: 4px 1px 10px;
  scrollbar-width: thin;
}
.turn-review-actions .button {
  flex: 0 0 auto;
  max-width: 240px;
  min-height: 44px;
  white-space: normal;
  text-align: left;
  font-size: .8rem;
}
.turn-review-actions .button.active {
  border-color: #ead29a;
  background: #bfa57526;
  color: #fff0c9;
}
@media (max-width: 600px) {
  .turn-review-controls {
    flex-wrap: wrap;
  }
  .turn-review-controls input {
    flex-basis: 100%;
  }
  .turn-review-board {
    width: min(100%, max(260px, calc(100dvh - 340px)));
  }
}

/* dist/client/orc-hero-effects.css */
.orc-hero-fx {
  position: absolute;
  pointer-events: none;
  display: block;
  z-index: 7;
  color: #d3c99c;
  transform-origin: 50% 50%;
}
.orc-hero-fx svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.orc-hero-lightning,
.orc-hero-lightning-contact,
.orc-hero-totem-pulse {
  color: #aac6c7;
  filter: drop-shadow(0 0 2px #b5d7cb66);
}
.orc-hero-net {
  z-index: 6;
  filter: drop-shadow(0 1px 1px #30261a55);
}
.orc-hero-howl,
.orc-hero-howl-ally,
.orc-hero-wolf-order,
.orc-hero-wolf-landing {
  color: #c4d2ad;
  z-index: 4;
}
.orc-hero-blood {
  color: #a85b3d;
  z-index: 4;
}
.orc-hero-fissure {
  z-index: 3;
  color: #9a8464;
}
.orc-hero-totem-place,
.orc-hero-totem-carving {
  color: #b7ac78;
  z-index: 5;
}
.orc-hero-storm-call {
  color: #b2c7c7;
  filter: drop-shadow(0 0 2px #92b7bc44);
}
.swordmaster-fx {
  z-index: 7;
  filter: none;
}
.swordmaster-ground-ring,
.swordmaster-execute-crack,
.swordmaster-hamstring-hold {
  z-index: 3;
}
.swordmaster-spark,
.swordmaster-parry-contact,
.swordmaster-hamstring-contact {
  z-index: 8;
}

/* dist/client/orc-companion.css */
.orc-wolf-companion {
  position: absolute;
  background-repeat: no-repeat;
  image-rendering: auto;
  pointer-events: none;
}

/* dist/client/orc-hero-ground.css */
.starter-ground-blood-trail {
  filter: drop-shadow(0 1px 2px #130504);
  opacity: .95;
}
.token.stun-totem svg,
.token.stun-totem img {
  width: 76%;
  height: 96%;
  position: absolute;
  bottom: 0;
  left: 12%;
  overflow: visible;
  filter: drop-shadow(0 3px 3px #0009);
}
.token.stun-totem img[src*=earth-totem-v2] {
  width: 108%;
  height: auto;
  max-height: none;
  left: -4%;
  bottom: -2%;
  object-fit: contain;
}

/* dist/client/weapon-attack-effects.css */
.weapon-attack {
  position: absolute;
  pointer-events: none;
  transform-origin: center;
  isolation: isolate;
  z-index: 3;
}
.weapon-attack svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.weapon-arrow-shaft,
.weapon-crossbow-quarrel,
.weapon-spear-long-shaft,
.weapon-ballista-siege-lance,
.weapon-wind-rider-barbed-javelin {
  filter: drop-shadow(0 1px 1px #101816a6);
}
.weapon-catapult-boulder {
  filter: drop-shadow(1px 2px 1px #10171077);
}
.weapon-catapult-fall-shadow {
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse,
      #17221dad,
      transparent 70%);
  filter: blur(2px);
}
.weapon-catapult-impact-dust {
  border-radius: 46% 54% 38% 62%;
  background:
    radial-gradient(
      ellipse at 35% 70%,
      #b7ad928a,
      transparent 58%),
    radial-gradient(
      ellipse at 71% 48%,
      #93866c99,
      transparent 64%);
  filter: blur(1px);
}
.weapon-catapult-wheel-settle {
  border-radius: 45% 55% 39% 61%;
  background:
    radial-gradient(
      ellipse,
      #a89a798c,
      transparent 68%);
  filter: blur(.35px);
}
.weapon-huntress-crescent-glaive {
  filter: drop-shadow(0 0 2px #c4d1df66);
}
.weapon-mage-cinder-clot {
  filter: drop-shadow(0 0 4px #bf6148aa);
}
.weapon-mage-embers {
  filter: drop-shadow(0 0 2px #ffb55b88);
}
.weapon-spider-venom-glob {
  filter: drop-shadow(0 1px 2px #445d2377);
}
.weapon-cleric-sun-lance,
.weapon-cleric-consecrated-flash {
  filter: drop-shadow(0 0 4px #f6d77e88);
  mix-blend-mode: screen;
}
.weapon-cleric-gold-fall {
  background:
    linear-gradient(
      transparent,
      #ffe6a0,
      transparent);
}
.weapon-shaman-forked-current,
.weapon-shaman-grounding-forks {
  filter: drop-shadow(0 0 3px #388ee788);
  mix-blend-mode: screen;
}
.weapon-moonweaver-lunar-crescent,
.weapon-moonweaver-moon-split {
  filter: drop-shadow(0 0 4px #beb4d788);
  mix-blend-mode: screen;
}
.weapon-necromancer-wailing-skull {
  filter: drop-shadow(-3px 0 5px #42698b99);
}
.weapon-necromancer-soul-tear,
.weapon-necromancer-lost-breath {
  filter: blur(.4px);
  mix-blend-mode: screen;
}
.weapon-gryphon-storm-spear,
.weapon-gryphon-thunder-pin {
  filter: drop-shadow(0 0 3px #8ed9ff77);
}
.weapon-hippogryph-claw-wind {
  filter: blur(.25px);
}
.weapon-frost-wyrm-breath-plume {
  border-radius: 35% 62% 54% 48%;
  background:
    radial-gradient(
      ellipse at 74% 48%,
      #dbf6ffb3,
      #83b6cd80 30%,
      #bfdbe133 55%,
      transparent 72%);
  filter: blur(1.5px);
  mix-blend-mode: screen;
}
.weapon-frost-wyrm-ice-needle {
  filter: drop-shadow(0 0 2px #b8edff66);
}
.weapon-tiger-burning-arrow {
  filter: drop-shadow(-2px 0 3px #e9a440bb);
}
.weapon-tiger-flame-lick {
  mix-blend-mode: screen;
  filter: blur(.3px);
}
.weapon-tower-elves-living-thorn {
  filter: drop-shadow(0 1px 1px #2d423c88);
}
.weapon-tower-undead-tooth-wisp {
  filter: blur(1px);
}
.weapon-orc-blood-shaman-blood-knot,
.weapon-orc-blood-shaman-ritual-fracture {
  filter: drop-shadow(0 0 3px #852f3a88);
}

/* dist/client/frost-bolt.css */
.frost-fx {
  position: absolute;
  display: block;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 5;
}
.frost-fx svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}
.frost-blade-stroke {
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 2px #8ad9f5aa);
}
.frost-charge,
.frost-impact {
  background:
    radial-gradient(
      ellipse,
      #f4ffff 0%,
      #d8ffffbf 9%,
      #77dffb88 23%,
      #298fc035 45%,
      #18427100 69%);
  mix-blend-mode: screen;
}
.frost-ground-light {
  background:
    radial-gradient(
      ellipse,
      #e4ffffb0 0%,
      #6bcef674 25%,
      #4487ab20 52%,
      transparent 70%);
  mix-blend-mode: screen;
  z-index: 2;
}
.frost-spark {
  border-radius: 50%;
  background: #eaffff;
  box-shadow: 0 0 5px #85edff, 0 0 10px #71cfff;
  mix-blend-mode: screen;
}
.frost-crystal {
  transform: translate(-50%, -93%);
  transform-origin: 50% 93%;
  filter: drop-shadow(0 0 2px #a5ecff66);
}
.frost-crown {
  z-index: 7 !important;
}
.frost-facet-glint {
  mix-blend-mode: screen;
}
.frost-mist {
  background:
    radial-gradient(
      ellipse at 28% 50%,
      #d7f5ff70,
      transparent 40%),
    radial-gradient(
      ellipse at 62% 44%,
      #b9e5f78c,
      transparent 47%),
    radial-gradient(
      ellipse at 46% 65%,
      #7bbbd575,
      transparent 49%);
  filter: blur(3px);
  mix-blend-mode: screen;
  z-index: 8;
}
.frost-fracture {
  z-index: 3;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 3px #83dcff);
}
.frost-fracture svg {
  fill: none;
  stroke: #c8f5ff;
  stroke-width: 1;
  stroke-linejoin: bevel;
}
.frost-chip {
  background:
    linear-gradient(
      120deg,
      #fff,
      #a3eaff 35%,
      #2568a1 65%,
      #d1fbff);
  clip-path: polygon(40% 0, 100% 25%, 64% 100%, 0 68%);
  z-index: 9;
}
.frost-rime {
  background:
    radial-gradient(
      ellipse at 50% 75%,
      transparent 23%,
      #a0e9ff75 44%,
      transparent 61%);
  mix-blend-mode: screen;
  z-index: 8;
}

/* dist/client/hero-martial-effects.css */
.hmartial-fx {
  position: absolute;
  display: block;
  pointer-events: none;
  transform-origin: 50% 50%;
  z-index: 5;
  color: var(--hmartial-light);
  --hmartial-light:#f5d387;
  --hmartial-soft:#e7b65466;
}
.hmartial-fx svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hmartial-gold {
  --hmartial-light:#f5d387;
  --hmartial-soft:#e7b65466;
}
.hmartial-glass {
  --hmartial-light:#b4e8ff;
  --hmartial-soft:#a4b9f55c;
}
.hmartial-silver {
  --hmartial-light:#e5f0df;
  --hmartial-soft:#cbeaff66;
}
.hmartial-wind {
  --hmartial-light:#aadbc3;
  --hmartial-soft:#70baaa45;
}
.hmartial-blood {
  --hmartial-light:#e87557;
  --hmartial-soft:#d7433244;
}
.hmartial-earth {
  --hmartial-light:#e6b46b;
  --hmartial-soft:#aa774c66;
}
.hmartial-spirit {
  --hmartial-light:#c0edda;
  --hmartial-soft:#8ddaba66;
}
.hmartial-glow {
  background:
    radial-gradient(
      ellipse,
      var(--hmartial-soft),
      transparent 65%);
  mix-blend-mode: screen;
  z-index: 3;
}
.hmartial-spark {
  border-radius: 50%;
  background: #fff5d9;
  box-shadow: 0 0 4px var(--hmartial-light);
  mix-blend-mode: screen;
  z-index: 8;
}
.hmartial-chip {
  background:
    linear-gradient(
      130deg,
      #fff5d4,
      var(--hmartial-light) 40%,
      #70604c 75%,
      var(--hmartial-light));
  clip-path: polygon(45% 0, 100% 30%, 65% 100%, 0 72%);
  z-index: 8;
}
.hmartial-dust {
  background:
    radial-gradient(
      ellipse at 25% 58%,
      var(--hmartial-soft),
      transparent 42%),
    radial-gradient(
      ellipse at 65% 45%,
      var(--hmartial-soft),
      transparent 45%),
    radial-gradient(
      ellipse at 47% 61%,
      var(--hmartial-soft),
      transparent 53%);
  filter: blur(2px);
  z-index: 4;
}
.hmartial-link {
  z-index: 4;
  filter: drop-shadow(0 0 2px var(--hmartial-soft));
}
.hmartial-chevron,
.hmartial-order-arrival,
.hmartial-fracture,
.hmartial-rays,
.hmartial-hoofprints,
.hmartial-endurance-stride,
.hmartial-hamstring-bind,
.hmartial-landing-mark {
  z-index: 3;
  mix-blend-mode: screen;
}
.hmartial-hammer-dent,
.hmartial-return-cleft {
  z-index: 3;
}
.hmartial-fracture {
  filter: drop-shadow(0 0 2px var(--hmartial-soft));
}
.hmartial-fracture svg {
  transform: scaleY(.5);
}
.hmartial-hamstring-bind svg,
.hmartial-hoofprints svg {
  transform: scaleY(.65);
}
.hmartial-hammer {
  filter: drop-shadow(1px 2px 2px #1a202975) drop-shadow(0 0 3px #ffe0a175);
  z-index: 8;
}
.hmartial-speed-streak {
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--hmartial-light) 80%,
      #fff9e8);
  clip-path: polygon(0 47%, 91% 43%, 100% 50%, 91% 57%, 0 53%);
  mix-blend-mode: screen;
}
.hmartial-standard {
  filter: drop-shadow(0 0 2px #eebf8055);
  z-index: 4;
}
.hmartial-rally-ribbon,
.hmartial-rally-crown {
  filter: drop-shadow(0 0 2px #efba7655);
  mix-blend-mode: screen;
  z-index: 7;
}
.hmartial-glass-shield {
  filter: drop-shadow(0 0 2px #baddff55);
  z-index: 7;
}
.hmartial-bash-contact {
  filter: drop-shadow(0 0 1px #c3e3ed44);
  z-index: 8;
}
.hmartial-bash-edge {
  filter: drop-shadow(1px 0 1px #52687655);
  z-index: 8;
}
.hmartial-glass-fragment {
  background:
    linear-gradient(
      125deg,
      #fff9d9d0,
      #9ed7ff50 45%,
      #807dc178);
  clip-path: polygon(48% 0, 100% 35%, 60% 100%, 0 75%);
  z-index: 7;
}
.hmartial-arch,
.hmartial-sanctuary,
.hmartial-sanctuary-footing {
  filter: drop-shadow(0 0 2px #b9c9ff66);
  mix-blend-mode: screen;
  z-index: 7;
}
.hmartial-vault-feather,
.hmartial-bash-slice,
.hmartial-impact-star {
  mix-blend-mode: screen;
  z-index: 8;
}
.hmartial-stealth-slip,
.hmartial-stealth-wake,
.hmartial-whirlwind,
.hmartial-whirlwind-contact {
  filter: drop-shadow(0 1px 1px #203b3544);
  z-index: 7;
}
.hmartial-ink {
  background:
    linear-gradient(
      30deg,
      #253d35,
      var(--hmartial-light));
  clip-path: polygon(20% 0, 85% 18%, 100% 70%, 40% 100%, 0 65%);
  z-index: 8;
}
.hmartial-mirror-plane,
.hmartial-mirror-split {
  filter: drop-shadow(0 0 2px #d2ffe74f);
  z-index: 7;
}
.hmartial-hamstring-cut {
  filter: drop-shadow(0 0 2px #81281f55);
  z-index: 8;
}
.hmartial-hamstring-bind {
  filter: drop-shadow(0 0 2px #803c2566);
}
.hmartial-slab {
  filter: drop-shadow(1px 3px 2px #312a2655);
  z-index: 6;
}
.hmartial-ancestor,
.hmartial-spirit-veil {
  filter: drop-shadow(0 0 3px #a3dfbd66);
  mix-blend-mode: screen;
  z-index: 7;
}
.hmartial-return-mantle {
  filter: drop-shadow(0 0 3px #eace9366);
  mix-blend-mode: screen;
  z-index: 7;
}
.hmartial-spirit-stone {
  filter: drop-shadow(0 0 2px #ffd49c66);
  z-index: 7;
}
.hmartial-spirit-column {
  background:
    linear-gradient(
      90deg,
      transparent 8%,
      #b4f3d000 20%,
      #a6e9bc26 35%,
      #f7ffe546 49%,
      #b4f2d02e 60%,
      transparent 85%);
  clip-path: polygon(33% 100%, 17% 26%, 33% 0, 70% 0, 84% 25%, 67% 100%);
  filter: blur(2px);
  mix-blend-mode: screen;
  z-index: 6;
}
.hmartial-whirlwind .whirlwind-front {
  stroke-dashoffset: inherit;
}

/* dist/client/hero-mystic-effects.css */
.hmystic-fx {
  position: absolute;
  display: block;
  pointer-events: none;
  z-index: 5;
  contain: layout style;
}
.hmystic-fx svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hmystic-glow {
  background:
    radial-gradient(
      ellipse,
      #e1f3b5a6 0%,
      #9cb65b55 22%,
      #40704920 49%,
      transparent 70%);
  mix-blend-mode: screen;
}
.hmystic-glow.hmystic-grave {
  background:
    radial-gradient(
      ellipse,
      #e4f4d9b8 0%,
      #94c8b264 22%,
      #6599b62e 45%,
      transparent 68%);
}
.hmystic-glow.hmystic-silk {
  background:
    radial-gradient(
      ellipse,
      #fff4d9bd,
      #ccdcc754 25%,
      transparent 66%);
}
.hmystic-glow.hmystic-chitin {
  background:
    radial-gradient(
      ellipse,
      #e9e5aa91,
      #9cae6442 28%,
      transparent 66%);
}
.hmystic-growth-collar {
  filter: drop-shadow(0 1px 1px #15251a66);
  z-index: 3;
}
.hmystic-growth-bud {
  color: #a2c978;
  filter: drop-shadow(0 0 1px #e4e7bb66);
  z-index: 7;
}
.hmystic-leaf {
  color: #9fcb7a;
  filter: drop-shadow(0 0 2px #c7e7a733);
  z-index: 8;
}
.hmystic-sight-seed {
  filter: drop-shadow(0 0 1px #e1ffd466);
  z-index: 8;
}
.hmystic-rain-petal {
  filter: drop-shadow(0 0 2px #d5efe533);
  z-index: 7;
}
.hmystic-rain-ripple {
  mix-blend-mode: screen;
  z-index: 4;
}
.hmystic-veins {
  z-index: 3;
  filter: drop-shadow(0 0 2px currentColor);
}
.hmystic-root {
  color: #bbd79b;
}
.hmystic-ember {
  color: #f8a75c;
}
.hmystic-chitin {
  color: #bac78c;
}
.hmystic-forest-eye {
  filter: drop-shadow(0 0 3px #a5e8bc66);
  z-index: 7;
}
.hmystic-rain-canopy {
  background:
    radial-gradient(
      ellipse at 32% 48%,
      #d9f8d481,
      transparent 43%),
    radial-gradient(
      ellipse at 62% 43%,
      #91d8b367,
      transparent 46%),
    radial-gradient(
      ellipse at 49% 60%,
      #71ac9e55,
      transparent 57%);
  filter: blur(2px);
  mix-blend-mode: screen;
  z-index: 6;
}
.hmystic-healing-filaments {
  color: #d4f4ce;
  filter: blur(.35px);
  mix-blend-mode: screen;
  z-index: 7;
}
.hmystic-thorn-cord,
.hmystic-root-knot {
  filter: drop-shadow(0 1px 1px #172113aa);
  z-index: 8;
}
.hmystic-thorn-bark {
  background:
    linear-gradient(
      125deg,
      #d5c092,
      #555b32);
  clip-path: polygon(12% 0, 89% 17%, 63% 100%, 0 65%);
  z-index: 7;
}
.hmystic-sight-ray {
  height: 2px !important;
  background:
    linear-gradient(
      90deg,
      transparent,
      #d6f5b9,
      transparent);
  mix-blend-mode: screen;
  z-index: 3;
}
.hmystic-healing-bed {
  background:
    radial-gradient(
      ellipse,
      #e3efd772,
      #76cdab61 24%,
      #60847715 57%,
      transparent 70%);
  mix-blend-mode: screen;
  z-index: 3;
}
.hmystic-pollen-rain {
  background:
    linear-gradient(
      0deg,
      #f4ffe0,
      #b6e4c2a8 23%,
      #6dbba237 70%,
      transparent);
  border-radius: 70% 20% 50% 30%;
  box-shadow: 0 0 4px #e2ffd333;
  mix-blend-mode: screen;
  z-index: 7;
}
.hmystic-arrow {
  filter: drop-shadow(0 0 3px #ff9e385e);
  z-index: 9;
}
.hmystic-volley-arrow,
.hmystic-volley-launch {
  filter: drop-shadow(0 0 2px #f7d99470);
  z-index: 9;
}
.hmystic-astral-bow {
  color: #e8b969;
  filter: drop-shadow(0 0 3px #f7ca7880);
  z-index: 8;
}
.hmystic-hunter-sight,
.hmystic-prey-dart {
  filter: drop-shadow(0 0 2px #c8d5f966);
  z-index: 9;
}
.hmystic-ember-tongue {
  color: #dd713b;
  transform-origin: 50% 88%;
  filter: drop-shadow(0 0 3px #e86a2740);
  z-index: 7;
}
.hmystic-ember,
.hmystic-starlight,
.hmystic-soul-mote,
.hmystic-silk-shuttle,
.hmystic-chitin-dust {
  border-radius: 50%;
  background: #ffcf81;
  box-shadow: 0 0 4px #fda35d80;
  z-index: 9;
}
.hmystic-veins.hmystic-ember {
  background: none;
  box-shadow: none;
}
.hmystic-starlight {
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  background: #fff0bc;
}
.hmystic-hunter-chevron {
  color: #eec982;
  filter: drop-shadow(0 0 2px #f9c48b80);
  z-index: 7;
}
.hmystic-prey-star {
  filter: drop-shadow(0 0 4px #ffd59d77);
  z-index: 8;
}
.hmystic-charge-claws {
  color: #edc18e;
  filter: drop-shadow(0 0 3px #fff0bd55);
  z-index: 4;
}
.hmystic-charge-strike {
  filter: drop-shadow(0 0 3px #ffc76980);
  z-index: 8;
}
.hmystic-arrow-scar {
  background:
    radial-gradient(
      ellipse,
      #fff1bf,
      #e89d48aa 25%,
      #c95b2255 48%,
      transparent 69%);
  z-index: 4;
}
.hmystic-grave-opening {
  background:
    radial-gradient(
      ellipse,
      #101e27bb 0%,
      #3b5f558c 36%,
      #a9c89775 48%,
      transparent 64%);
  z-index: 3;
}
.hmystic-resurrection-cleft {
  z-index: 3;
}
.hmystic-resurrection-ledge {
  filter: drop-shadow(0 2px 1px #171c23bb);
  z-index: 4;
}
.hmystic-resurrection-bone {
  filter: drop-shadow(0 1px 1px #171f2dbb);
  z-index: 8;
}
.hmystic-resurrection-breath {
  background:
    linear-gradient(
      90deg,
      transparent,
      #9caecb26 29%,
      #dddcca66 46%,
      #c2d0df2e 64%,
      transparent);
  clip-path: polygon(24% 100%, 12% 69%, 31% 43%, 37% 6%, 58% 0, 62% 43%, 90% 74%, 75% 100%);
  filter: blur(1.5px);
  mix-blend-mode: screen;
  z-index: 6;
}
.hmystic-resurrection-lift {
  filter: drop-shadow(0 0 2px #a7bad54f);
  z-index: 7;
}
.hmystic-pact-contract {
  filter: drop-shadow(0 0 2px #60274788);
  z-index: 7;
}
.hmystic-pact-bond {
  filter: drop-shadow(0 0 2px #bd668e55);
  z-index: 6;
}
.hmystic-pact-essence {
  filter: drop-shadow(0 0 1px #bd729955);
  z-index: 9;
}
.hmystic-pact-absorption {
  filter: drop-shadow(0 0 3px #d995b455);
  z-index: 8;
}
.hmystic-grave-mist,
.hmystic-grave-breath {
  background:
    radial-gradient(
      ellipse at 32% 58%,
      #b6d1bd9c,
      transparent 48%),
    radial-gradient(
      ellipse at 64% 42%,
      #91b6b686,
      transparent 45%),
    radial-gradient(
      ellipse at 52% 66%,
      #50717470,
      transparent 61%);
  filter: blur(2px);
  mix-blend-mode: screen;
  z-index: 6;
}
.hmystic-grave-flow {
  background:
    linear-gradient(
      0deg,
      transparent,
      #bad7bf66 46%,
      #80a8a637 63%,
      transparent);
  filter: blur(3px);
  mix-blend-mode: screen;
  z-index: 4;
}
.hmystic-grave-chip {
  background: #918b70;
  clip-path: polygon(13% 23%, 68% 4%, 96% 56%, 43% 93%, 0 64%);
  z-index: 5;
}
.hmystic-silk-web {
  z-index: 4;
  filter: drop-shadow(0 0 2px #d4dfce77);
}
.hmystic-silk-web svg {
  fill: none;
  stroke: #e2e7d4;
  stroke-width: 1;
  stroke-linecap: round;
}
.hmystic-silk-shuttle {
  background: #edf1d8;
  box-shadow: 0 0 4px #dde3bb88;
}
.hmystic-chitin-spike {
  transform-origin: 50% 94%;
  filter: drop-shadow(0 1px 2px #25292099);
  z-index: 8;
}
.hmystic-chitin-splinter {
  z-index: 5;
}
.hmystic-impale-crack {
  color: #bbb089;
  filter: drop-shadow(0 1px 1px #171e17);
  z-index: 3;
}
.hmystic-impale-dust {
  background:
    radial-gradient(
      ellipse at 31% 60%,
      #998a697d,
      transparent 47%),
    radial-gradient(
      ellipse at 66% 43%,
      #c0ad7a67,
      transparent 44%);
  filter: blur(1.5px);
  z-index: 5;
}
.hmystic-burrow-opening {
  background:
    radial-gradient(
      ellipse,
      #19241ae8 0%,
      #252e23cf 31%,
      #7f81599e 48%,
      transparent 67%);
  z-index: 3;
}
.hmystic-earth-plate {
  filter: drop-shadow(1px 2px 1px #25251f77);
  z-index: 7;
}
.hmystic-earth-dust {
  background:
    radial-gradient(
      ellipse at 35% 50%,
      #b2a48580,
      transparent 49%),
    radial-gradient(
      ellipse at 65% 50%,
      #98967970,
      transparent 45%);
  filter: blur(2px);
  z-index: 8;
}
.hmystic-carapace-ridge {
  transform-origin: 50% 90%;
  filter: drop-shadow(0 1px 1px #26372299);
  z-index: 7;
}
.hmystic-locust {
  filter: drop-shadow(0 0 1px #e2e7ad77);
  z-index: 9;
}
.hmystic-swarm-wake {
  color: #b7c895;
  filter: drop-shadow(0 0 2px #b9cf9655);
  z-index: 4;
}
.hmystic-chitin-dust {
  background: #c6d4a0;
  box-shadow: 0 0 3px #9eb57966;
}

/* dist/client/troop-physical-effects.css */
.troop-physical {
  position: absolute;
  pointer-events: none;
  isolation: isolate;
  contain: layout style;
}
.troop-physical svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.troop-brace-lamella,
.troop-pinning-ground-nail,
.troop-weighted-net-cast,
.troop-weighted-net-catch,
.troop-hook-iron-head,
.troop-hook-chain-out,
.troop-hook-chain-return {
  filter: drop-shadow(0 1px 1px #171d2345);
}
.troop-charge-compression,
.troop-pounce-low-draft,
.troop-roar-breath-fan,
.troop-gust-pressure-scroll,
.troop-gust-pushed-air {
  mix-blend-mode: screen;
}
.troop-sabotage-shear {
  filter: drop-shadow(0 0 1px #211c1750);
}
.troop-vanish-cloak-fold {
  filter: blur(.45px);
}
.troop-pitch-fire-crown {
  filter: drop-shadow(0 -1px 2px #e78c2d28);
}
.troop-battering-masonry,
.troop-demolition-splinter,
.troop-slam-clod,
.troop-burrow-soil-plate,
.troop-siege-chisel-spall {
  filter: drop-shadow(0 1px 1px #241c184a);
}
.troop-axe-cleave-face,
.troop-maul-claw,
.troop-scythe-harvest-edge {
  mix-blend-mode: screen;
}
.troop-reveal-feather-fan,
.troop-far-sight-lens,
.troop-far-sight-survey {
  mix-blend-mode: screen;
}
.troop-medicine-leaf-compress,
.troop-fusion-rib-lattice {
  filter: drop-shadow(0 1px 1px #29322425);
}
.troop-owl-scout-release {
  filter: drop-shadow(0 1px 1px #22323c38);
}
.troop-web-spoke-loom {
  filter: drop-shadow(0 1px 1px #313c2925);
}
.troop-devour-drawn-breath,
.troop-devour-release-heave {
  filter: blur(.4px);
}
.troop-ground-frost-exhalation,
.troop-ground-frost-teeth {
  mix-blend-mode: screen;
}
.troop-ground-frost-plate {
  filter: drop-shadow(0 1px 1px #608a9825);
}
@media (prefers-reduced-motion: reduce) {
  .troop-physical {
    display: none;
  }
}

/* dist/client/troop-spell-effects.css */
.troop-spell {
  position: absolute;
  pointer-events: none;
  isolation: isolate;
  contain: layout style;
}
.troop-spell svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.troop-benediction-palm,
.troop-healing-suture,
.troop-healing-stitch,
.troop-healing-seal {
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 2px #f7cf7845);
}
.troop-cleanse-curtain,
.troop-cleanse-last-drop {
  mix-blend-mode: screen;
}
.troop-cleansed-scale {
  filter: drop-shadow(0 1px 1px #1c19272b);
}
.troop-bloodlust-warpaint {
  filter: drop-shadow(0 0 2px #54171130);
}
.troop-bloodlust-sinew,
.troop-bloodlust-cinder {
  mix-blend-mode: screen;
}
.troop-purge-crack {
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 2px #d9d2ef50);
}
.troop-purge-shell {
  filter: drop-shadow(0 0 1px #e2d8ff35);
}
.troop-sleep-crescent,
.troop-sleep-lid {
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 2px #bcb1df30);
}
.troop-bridge-handline {
  mix-blend-mode: screen;
}
.troop-bridge-tread {
  filter: drop-shadow(0 2px 1px #24335725);
}
.troop-chill-whisper,
.troop-silence-rime {
  mix-blend-mode: screen;
}
.troop-chill-breath {
  border-radius: 43% 57% 62% 38%;
  background:
    radial-gradient(
      ellipse at 28% 51%,
      #bbd8dc70,
      transparent 42%),
    radial-gradient(
      ellipse at 65% 42%,
      #97bdc452,
      transparent 56%);
  filter: blur(1.4px);
  mix-blend-mode: screen;
}
.troop-wall-cut {
  filter: drop-shadow(0 1px 1px #252f2840);
}
.troop-wall-bone-collar,
.troop-wall-soil {
  filter: drop-shadow(0 1px 1px #292b2440);
}
.troop-field-care-bandage,
.troop-field-dressing {
  filter: drop-shadow(0 1px 1px #39332825);
}
.troop-well-tithe,
.troop-well-marrow {
  mix-blend-mode: screen;
}
.troop-fountain-droplet,
.troop-fountain-surface {
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: reduce) {
  .troop-spell {
    display: none;
  }
}

/* dist/client/kingdoms.css */
.kingdom-selection-details {
  display: grid;
  gap: .38rem;
  width: 100%;
  font-size: .8rem;
}
.kingdom-xp-label {
  display: flex;
  gap: .5rem;
  justify-content: space-between;
  color: #dcd5b8;
}
.kingdom-xp-label {
  margin-top: .45rem;
  color: #c1cbd9;
}
.kingdom-meter {
  height: 5px;
  overflow: hidden;
  background: #111918;
  border: 1px solid #ffffff1c;
  border-radius: 6px;
}
.kingdom-meter > span {
  height: 100%;
  display: block;
  background:
    linear-gradient(
      90deg,
      #4e976a,
      #a2d58b);
  border-radius: inherit;
}
.kingdom-meter.experience > span {
  background:
    linear-gradient(
      90deg,
      #53719b,
      #a0c1ed);
}
.kingdom-meter.construction > span {
  background:
    linear-gradient(
      90deg,
      #aa7635,
      #eccb7b);
}
.kingdom-status,
.kingdom-trait {
  margin: .2rem 0;
  color: #b6bdad;
  line-height: 1.45;
}
.kingdom-trait {
  font-size: .76rem;
}
.kingdom-skills {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.kingdom-skill {
  padding: .2rem .4rem;
  border: 1px solid #8394b438;
  border-radius: 4px;
  background: #91b2eb0c;
  font-size: .72rem;
  color: #c8d5e6;
}
.kingdom-action-section {
  flex: 1 0 100%;
  min-width: 0;
}
.kingdom-action-section h4 {
  margin: .65rem 0 .4rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #c6b080;
}
.kingdom-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
}
.kingdom-action {
  display: flex !important;
  flex-direction: column;
  gap: .2rem;
  align-items: flex-start !important;
  text-align: left !important;
  min-height: 48px;
  padding: .55rem .6rem !important;
  white-space: normal !important;
  line-height: 1.2 !important;
}
.kingdom-action span {
  font-size: .79rem;
}
.kingdom-action small {
  font-size: .64rem;
  color: #a4ae9f;
  font-weight: 400;
}
.kingdom-action[aria-pressed=true] {
  border-color: #d8b668 !important;
  background: #9576372b !important;
  box-shadow: inset 0 0 14px #deb46416;
}
.kingdom-targeting {
  flex: 1 0 100%;
  padding: .6rem;
  border: 1px solid #d9b76c65;
  border-radius: 6px;
  background: #8e72232b;
}
.kingdom-targeting p {
  font-size: .8rem;
  margin: 0 0 .5rem;
  color: #eee0b4;
}
.kingdom-tile-status {
  position: absolute;
  inset: auto 7% 5%;
  height: 4px;
  z-index: 18;
  pointer-events: none;
}
.kingdom-tile-status .kingdom-meter {
  height: 4px;
  border: 0;
  box-shadow: 0 1px 2px #000c;
  background: #241b18;
}
.kingdom-hp-count {
  position: absolute;
  right: -2px;
  bottom: 4px;
  background: #101c19de;
  color: #e6f5dc;
  border: 1px solid #97b48145;
  border-radius: 3px;
  padding: 0 2px;
  font: 700 clamp(7px, .85vw, 11px)/1.2 system-ui;
}
.kingdom-tile-job {
  position: absolute;
  left: -1px;
  bottom: 5px;
  color: #eed795;
  text-shadow: 0 1px 3px #000;
  font: 700 clamp(8px, .95vw, 12px)/1 system-ui;
}
.kingdom-tile-job.producing {
  color: #b4e296;
}
.square.kingdom-construction {
  box-shadow: inset 0 0 0 1px #bba66855;
}
.square.legal-build:after {
  width: 25%;
  height: 25%;
  border: 2px solid #57401e !important;
  background: #ffe3a0;
  box-shadow: 0 0 0 2px #241a0c9e, 0 0 8px #f6cc7080;
  z-index: 14;
}
.kingdom-farm-active .token {
  filter: drop-shadow(0 1px 4px #d4c26820);
}
.kingdom-action-section:last-child {
  padding-bottom: .2rem;
}
.kingdom-economy-note {
  font-size: .7rem;
  color: #b3bda8;
}
.kingdom-pip-overflow {
  font-size: .7rem;
  align-self: center;
  color: #dbc997;
  margin-left: .3rem;
}
@media (max-width: 600px) {
  .kingdom-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kingdom-action {
    min-height: 48px;
  }
  .kingdom-selection-details {
    font-size: .75rem;
  }
  .kingdom-tile-status {
    inset: auto 5% 4%;
  }
  .kingdom-hp-count {
    font-size: 8px;
  }
  .kingdom-tile-job {
    font-size: 9px;
  }
}
.kingdom-particle,
.kingdom-sigil,
.kingdom-ribbon,
.kingdom-web-cast,
.kingdom-ice-spire,
.kingdom-build-dust,
.kingdom-hit {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.kingdom-ice {
  --kingdom-glow:#a7f0ff;
  color: #c6f7ff;
}
.kingdom-grove {
  --kingdom-glow:#a0dfb2;
  color: #beefd0;
}
.kingdom-grave {
  --kingdom-glow:#96c774;
  color: #c4e59f;
}
.kingdom-fire {
  --kingdom-glow:#ff843c;
  color: #ffd191;
}
.kingdom-web {
  --kingdom-glow:#d4d0b1;
  color: #f1edd3;
}
.kingdom-gold {
  --kingdom-glow:#e7bf6c;
  color: #fff0b2;
}
.kingdom-arcane {
  --kingdom-glow:#a291e5;
  color: #d2c5ff;
}
.kingdom-stone {
  --kingdom-glow:#d4be94;
  color: #ddd3ad;
}
.kingdom-particle {
  background: var(--kingdom-glow,#d5bd8d);
  clip-path: polygon(50% 0, 100% 52%, 50% 100%, 0 45%);
  box-shadow: 0 0 9px var(--kingdom-glow,#d5bd8d);
}
.kingdom-sigil svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  filter: drop-shadow(0 0 3px var(--kingdom-glow));
}
.kingdom-sigil {
  mix-blend-mode: screen;
}
.kingdom-ribbon {
  background:
    linear-gradient(
      0deg,
      transparent,
      currentColor,
      transparent);
  box-shadow: 0 0 10px var(--kingdom-glow);
  border-radius: 100%;
  mix-blend-mode: screen;
}
.kingdom-web-cast svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #e4ecd8;
  stroke-width: 1.7;
  filter: drop-shadow(0 0 2px #708970);
}
.kingdom-ice-spire {
  transform-origin: center bottom;
  filter: drop-shadow(0 0 5px #79dbffa0);
  z-index: 3;
}
.kingdom-ice-spire svg {
  height: 100%;
  width: 100%;
}
.kingdom-build-dust {
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse,
      #d3bd8b85 0%,
      #82715865 35%,
      #65584828 55%,
      transparent 70%);
  filter: blur(2px);
}
.kingdom-hit {
  display: grid;
  place-items: center;
  color: #ffcebd;
  font: 800 clamp(14px, 2vw, 28px)/1 system-ui;
  text-shadow: 0 1px 2px #1d0808, 0 0 6px #ff7547;
}
.kingdom-hit.healed {
  color: #c9f5b2;
  text-shadow: 0 1px 2px #143514, 0 0 6px #71c476;
}
.kingdom-rain {
  border-radius: 50%;
  clip-path: none;
  filter: drop-shadow(0 0 4px currentColor);
}
.kingdom-destroyed .token {
  filter: sepia(.5) brightness(.65);
}
@media (prefers-reduced-motion: reduce) {
  .kingdom-particle,
  .kingdom-rain {
    display: none;
  }
  .kingdom-farm-active .token {
    animation: none !important;
  }
}
.kingdom-residents {
  flex: 1 0 100%;
  display: grid;
  gap: .35rem;
}
.kingdom-residents h4 {
  margin: .5rem 0;
  font-size: .75rem;
  color: #c4b98e;
}
.kingdom-residents button {
  min-height: 42px;
  font-size: .8rem;
}
.kingdom-overview summary {
  font-size: .8rem;
  font-weight: 650;
  color: #d5c395;
  cursor: pointer;
  min-height: 24px;
}
.kingdom-overview[hidden] {
  display: none;
}
.kingdom-overview .kingdom-economy-note {
  line-height: 1.6;
  margin: .6rem 0;
}
.kingdom-job-list {
  display: grid;
  gap: .3rem;
}
.kingdom-job-list button {
  font-size: .73rem;
  min-height: 36px;
  text-align: left;
}
.kingdom-ground-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.kingdom-ground-web {
  width: 100%;
  height: 100%;
  stroke: #e1e1c888;
  stroke-width: 1;
  fill: none;
}
.kingdom-sentinel {
  position: absolute;
  width: 35%;
  height: 35%;
  bottom: 8%;
  left: 5%;
  filter: drop-shadow(0 0 3px #b0d4ed);
  z-index: 2;
}
.kingdom-sentinel svg {
  width: 100%;
  height: 100%;
}
.kingdom-choice-description {
  line-height: 1.4 !important;
  color: #b9c4b8 !important;
}
.square[data-elevation] > .kingdom-tile-status,
.square[data-elevation] > .kingdom-ground-effects {
  translate: 0 var(--ground-lift);
}
.kingdom-building {
  border-radius: 8% !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.kingdom-building:before {
  content: "";
  position: absolute;
  width: 57%;
  height: 13%;
  left: 20%;
  bottom: 9%;
  border-radius: 50%;
  background: var(--team);
  opacity: .4;
  filter: blur(3px);
}
.kingdom-building.opponent {
  opacity: .92;
}
.kingdom-build-badge {
  position: absolute;
  right: 2px;
  top: 3px;
  font-size: 14px;
  color: #e7cd93;
  text-shadow: 0 1px 3px #000;
}
.kingdom-farm-motes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.kingdom-farm-motes i {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #e6dda0;
  left: 32%;
  bottom: 25%;
  border-radius: 50%;
  box-shadow: 0 0 4px #cfbf65;
  animation: kingdom-harvest 3.8s infinite ease-in-out;
}
.kingdom-farm-motes i:nth-child(2) {
  left: 64%;
  animation-delay: -1.3s;
}
.kingdom-farm-motes i:nth-child(3) {
  left: 45%;
  animation-delay: -2.6s;
}
@keyframes kingdom-harvest {
  0%, 100% {
    opacity: 0;
    translate: 0 0;
  }
  30% {
    opacity: .7;
  }
  80% {
    opacity: 0;
    translate: 3px -15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kingdom-farm-motes i {
    animation: none;
    opacity: .6;
  }
}
.kingdom-flourish {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 5px var(--kingdom-glow));
  transform-origin: center;
}
.kingdom-flourish svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.kingdom-ancestor .token {
  filter: sepia(.5) saturate(.7) brightness(1.8) drop-shadow(0 0 8px #f5cf79);
}
.kingdom-leaf {
  clip-path: ellipse(27% 50%);
  border-radius: 90% 0;
  background:
    linear-gradient(
      55deg,
      #447551,
      #d4f5b4);
}
.kingdom-bone {
  clip-path: polygon(0 0, 28% 0, 30% 30%, 69% 30%, 72% 0, 100% 0, 100% 100%, 72% 100%, 69% 70%, 30% 70%, 28% 100%, 0 100%);
  width: 15px !important;
  height: 5px !important;
  background: #e1d9b5;
}
.kingdom-locust {
  clip-path: polygon(50% 40%, 0 0, 15% 80%, 45% 60%, 50% 100%, 55% 60%, 85% 80%, 100% 0);
  background: #c6d892;
}
.kingdom-protection {
  position: absolute;
  inset: 7%;
  z-index: 15;
  pointer-events: none;
  color: #f3d488;
  opacity: .65;
  filter: drop-shadow(0 0 2px #dfc879);
}
.kingdom-protection svg {
  width: 100%;
  height: 100%;
  fill: #e9c2750a;
  stroke: currentColor;
  stroke-width: 1.8;
}
.kingdom-protection.carapace {
  color: #c0d68c;
}
.kingdom-protection.ancestor {
  color: #bcdfe9;
  filter: drop-shadow(0 0 3px #c8e7ea);
}
.kingdom-condition {
  position: absolute;
  left: 0;
  bottom: 13px;
  font: 700 10px/1 system-ui;
  color: #edc987;
  text-shadow: 0 1px 2px #000;
}
.kingdom-underground {
  position: absolute;
  left: 8%;
  top: 6%;
  border-radius: 50%;
  color: #e6d6a7;
  background: #221b2eda;
  border: 1px solid #ad997e;
  font: bold 13px/12px system-ui;
  padding: 0 3px;
  z-index: 19;
}
.resource-sources.kingdom-sources {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (prefers-reduced-motion: reduce) {
  .kingdom-ancestor {
    display: none;
  }
}
.battle-projectile.flaming-arrow {
  color: #ffd491;
  filter: drop-shadow(-6px 0 2px #f3882a) drop-shadow(-12px 0 5px #ff643e);
}
.kingdom-ground-blight,
.kingdom-ground-waystone,
.kingdom-ground-frost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.kingdom-ground-blight {
  background:
    radial-gradient(
      ellipse,
      #3f682137,
      transparent 73%);
  stroke: #a4bd7066;
  stroke-width: 1.8;
  fill: none;
}
.kingdom-ground-blight circle {
  fill: #45592820;
  stroke: none;
}
.kingdom-ground-waystone {
  stroke: #bdddf175;
  stroke-width: 1.2;
  fill: #a8d3ee0c;
  filter: drop-shadow(0 0 3px #94b8ed55);
}
.kingdom-ground-frost {
  stroke: #d1f6ffab;
  stroke-width: 1.4;
  fill: none;
  background:
    radial-gradient(
      ellipse,
      #a3d8e738,
      transparent 73%);
}
.kingdom-compact {
  display: grid;
  grid-template-columns: minmax(100px, 42%) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
}
.kingdom-compact .selection-content {
  display: contents !important;
}
.kingdom-compact .selection-art {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  position: relative;
  isolation: isolate;
  max-width: 320px;
  margin: 0 !important;
}
#selection-panel.kingdom-compact #selection-art > .token.portrait {
  margin-bottom: 12%;
}
.kingdom-compact .selection-art:before,
.kingdom-compact .selection-art:after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(94% / 1.12);
  width: 64%;
  aspect-ratio: 1;
  z-index: -1;
  pointer-events: none;
  transform:
    translate(-50%, -50%) matrix(
      .72, .26,
      -.72, .26,
      0, 0);
  border: 1px solid #756641;
}
.kingdom-compact .selection-art:before {
  top: calc(94% / 1.12 + 3px);
  background: #534b35;
}
.kingdom-compact .selection-art:after {
  background:
    radial-gradient(
      ellipse at 50% 50%,
      #17180c66,
      transparent 60%),
    linear-gradient(#191d1010, #191d1030),
    var(--portrait-terrain);
  background-size: cover;
}
.kingdom-compact .selection-copy {
  grid-column: 2;
  grid-row: 1;
  padding-right: 36px;
}
.kingdom-compact .selection-identity {
  display: flex;
  align-items: center;
  gap: 6px 10px;
  flex-wrap: nowrap;
  min-width: 0;
}
.kingdom-compact .selection-identity h3 {
  font-size: 1.05rem;
  min-width: 0;
  line-height: 1.2;
}
.kingdom-compact .selection-position {
  flex: none;
  margin: 0;
  font-size: .78rem;
  color: #cfbd91;
  white-space: nowrap;
}
.kingdom-health-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: #f4e7c9;
  font: 700 .8rem/1.2 system-ui;
}
.kingdom-health-count svg {
  width: 14px;
  height: 14px;
  fill: #e2a69a;
  flex: none;
}
.kingdom-compact .selection-copy h3,
.kingdom-compact .selection-position {
  text-align: left;
}
.kingdom-compact #selection-description {
  margin-top: 7px;
  padding-top: 7px;
}
.kingdom-compact #piece-actions {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}
.kingdom-compact .kingdom-action-section h4 {
  margin: 7px 0;
  font-size: .76rem;
  letter-spacing: .07em;
}
.kingdom-action-grid {
  grid-template-columns: repeat(auto-fill, 64px) !important;
  gap: 7px;
  max-width: 100%;
  width: 100%;
}
.button.kingdom-action {
  position: relative;
  display: block !important;
  width: 100%;
  aspect-ratio: 1;
  min-height: 64px;
  padding: 3px !important;
  overflow: hidden;
  border: 2px solid #857048 !important;
  background:
    radial-gradient(
      ellipse at 50% 70%,
      #65512d70,
      #161811) !important;
  box-shadow: inset 0 0 0 1px #1a120b, 0 2px 3px #0006;
}
.button.kingdom-action:hover,
.button.kingdom-action:focus-visible {
  border-color: #e4c781 !important;
  filter: brightness(1.18);
}
.button.kingdom-action[aria-pressed=true] {
  border-color: #ffe2a0 !important;
  box-shadow: 0 0 8px #d5aa5466, inset 0 0 8px #dbb45d55;
}
.command-picture {
  display: block;
  position: absolute;
  inset: 3px;
}
.command-picture .token.portrait {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.command-picture .unit-letter {
  display: none;
}
.command-symbol {
  display: block;
  width: 100%;
  height: 100%;
  padding: 6px;
  fill: #bb97572b;
  stroke: #eed49a;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 2px #000);
}
.kingdom-action .command-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.button.kingdom-ability-command {
  border-color: #b39acb !important;
}
.button.kingdom-ability-command:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 6px;
  height: 6px;
  background: #d4b8ef;
  transform: rotate(45deg);
  box-shadow: 0 0 0 1px #302537;
  pointer-events: none;
}
.button.kingdom-ability-command:hover,
.button.kingdom-ability-command:focus-visible {
  border-color: #d9b7f0 !important;
}
.button.kingdom-ability-command[aria-pressed=true] {
  border-color: #f0d0ff !important;
  box-shadow: 0 0 0 1px #aa77c2, inset 0 0 12px #ba8dd64d;
}
.kingdom-action .command-cost,
.kingdom-action .command-navigation-mark {
  position: absolute;
  bottom: 2px;
  right: 3px;
  color: #fff0bc;
  background: #15130fdd;
  border-radius: 2px;
  padding: 0 2px;
  font: 700 13px/1.4 system-ui;
}
.kingdom-ability-command .command-recovery {
  position: absolute;
  right: 3px;
  top: 3px;
  min-width: 17px;
  text-align: center;
  padding: 1px 3px;
  border-radius: 3px;
  background: #18131eed;
  color: #ead1ff;
  font: 700 13px/1.3 system-ui;
}
.kingdom-targeting {
  padding: 5px 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kingdom-targeting p {
  flex: 1;
  margin: 0;
  font-size: .7rem;
  line-height: 1.35;
}
.kingdom-targeting .button {
  min-height: 32px;
  padding: 4px 7px;
  font-size: .72rem;
  flex: none;
}
.kingdom-health {
  display: flex;
  gap: 2px;
  --health-color:#83dc82;
  align-items: center;
  flex-wrap: nowrap;
}
.kingdom-health.hurt {
  --health-color:#ead268;
}
.kingdom-health.critical {
  --health-color:#f17262;
}
.health-point {
  display: block;
  width: 15px;
  height: 12px;
  background: var(--health-color);
  border: 1px solid #142817;
  box-shadow: inset 0 1px 1px #ffffffe0;
  clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%);
}
.health-point.lost {
  background: #202820;
  box-shadow: inset 0 0 0 1px #aab39a;
  opacity: .7;
}
.kingdom-tile-status {
  height: auto;
  bottom: 3%;
  left: 2%;
  right: 2%;
}
.kingdom-tile-status .kingdom-health {
  gap: 1px;
  width: 100%;
}
.kingdom-tile-status .health-point {
  flex: 1 1 0;
  max-width: none;
  min-width: 0;
  height: clamp(4px, .6vw, 8px);
  border: 0;
}
.kingdom-xp-label {
  color: #ebd693;
  font-size: .82rem;
  margin-top: 7px;
}
.kingdom-meter.experience {
  height: 10px;
  border-color: #b19656;
  background: #101527;
}
.kingdom-xp-next {
  margin: 0;
  font-size: .7rem;
  color: #d6c79c;
}
.kingdom-skills {
  gap: 2px;
}
.kingdom-skill {
  font-size: .65rem;
  padding: 2px 4px;
}
.square > .token.under-construction {
  opacity: 1;
}
.square.build-site-hint:before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px dashed #ffe2a4;
  box-shadow: inset 0 0 0 1px #34280dcc;
  background: #e6b75e20;
  z-index: 4;
  pointer-events: none;
}
.kingdom-placement-preview {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .48;
  z-index: 12;
}
.kingdom-placement-preview > .token {
  position: absolute;
  inset: 5%;
  width: 90%;
  height: 90%;
  margin: 0;
}
.square:hover > .kingdom-placement-preview,
.square:focus-visible > .kingdom-placement-preview,
.square.build-preview-focus > .kingdom-placement-preview {
  opacity: .8;
  filter: drop-shadow(0 0 3px #e8c878);
}
.square[data-elevation] > .kingdom-placement-preview {
  translate: 0 var(--ground-lift);
}
.kingdom-work-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.kingdom-work-light:before {
  content: none;
}
.kingdom-work-light i {
  position: absolute;
  left: 60%;
  top: 24%;
  width: 12%;
  height: 12%;
  border-radius: 50%;
  background: #cdc8b488;
  filter: blur(1px);
  animation: kingdom-smoke 3.4s ease-out infinite;
}
.kingdom-work-light i:nth-child(2) {
  animation-delay: -1.1s;
}
.kingdom-work-light i:nth-child(3) {
  animation-delay: -2.2s;
}
@keyframes kingdom-smoke {
  0% {
    opacity: 0;
    transform: translateY(5px) scale(.5);
  }
  25% {
    opacity: .65;
  }
  100% {
    opacity: 0;
    transform: translate(6px, -15px) scale(1.6);
  }
}
.turn-card:has(.kingdom-overview:not([hidden])) .resource-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 2px 0 6px;
}
.turn-card:has(.kingdom-overview:not([hidden])) .resource-counter {
  display: flex;
  gap: 4px;
  padding: 3px 6px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.turn-card:has(.kingdom-overview:not([hidden])) .resource-counter .resource-icon {
  width: 14px;
  height: 14px;
}
.turn-card:has(.kingdom-overview:not([hidden])) .resource-counter strong {
  font-size: .85rem;
}
.turn-card:has(.kingdom-overview:not([hidden])) #actions-left {
  font-size: 2.4rem;
}
.kingdom-overview .kingdom-economy-note {
  margin: 5px 0;
  font-size: .7rem;
}
.kingdom-overview .kingdom-job-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 5px 0;
}
.kingdom-job-list .button {
  padding: 4px 7px;
  min-height: 30px;
  font-size: .68rem;
  white-space: normal;
}
.kingdom-territory-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  padding-top: 5px;
  border-top: 1px solid #ad956b30;
}
.kingdom-territory-summary span {
  font-size: .62rem;
  color: #c3ba9f;
}
@media (max-width: 700px) {
  .kingdom-compact {
    grid-column: 1 / -1;
    grid-template-columns: minmax(88px, 30%) minmax(0, 1fr);
    gap: 6px;
  }
  .kingdom-compact .selection-copy {
    padding-right: 36px;
  }
  .kingdom-compact .selection-identity {
    gap: 4px 6px;
  }
  .kingdom-compact .selection-identity h3 {
    font-size: .9rem;
  }
  .kingdom-compact .selection-position {
    font-size: .7rem;
  }
  .kingdom-health-count {
    font-size: .72rem;
  }
  .kingdom-health-count svg {
    width: 12px;
    height: 12px;
  }
  .kingdom-compact .kingdom-trait {
    font-size: .67rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kingdom-work-light i {
    display: none;
  }
  .kingdom-work-light:before {
    animation: none;
  }
}
.kingdom-overview {
  grid-column: 1 / -1;
  margin: 3px 0 8px;
  min-width: 0;
}
.kingdom-compact #attack-preview {
  grid-column: 1 / -1;
  margin: 0;
}
#selection-panel.kingdom-compact #selection-description {
  margin-top: 6px;
  padding-top: 6px;
  gap: 5px;
}
#selection-panel.kingdom-compact .kingdom-trait,
#selection-panel.kingdom-compact .kingdom-status,
#selection-panel.kingdom-compact .kingdom-xp-next {
  margin: 0;
  font-size: .72rem;
  line-height: 1.35;
}
#selection-panel.kingdom-compact .kingdom-targeting p {
  margin: 0;
  font-size: .7rem;
  line-height: 1.35;
}
#selection-panel.kingdom-compact .kingdom-skills:empty {
  display: none;
}
.skill-illustration {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
  filter: drop-shadow(0 1px 2px #0008);
}
.kingdom-action:has(.skill-illustration) {
  background: #10151c !important;
}
.kingdom-action:hover .skill-illustration,
.kingdom-action:focus-visible .skill-illustration {
  filter: brightness(1.15) drop-shadow(0 0 4px #ead59c66);
}
.kingdom-skills .kingdom-skill {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 1px;
  border-color: #a88b5a77;
}
.kingdom-skill small {
  position: absolute;
  right: 0;
  bottom: 0;
  background: #10131eee;
  color: #eadabb;
  font: 700 10px/1.3 system-ui;
  padding: 0 2px;
}
.kingdom-level-up {
  pointer-events: none;
  z-index: 8;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 7px #ffd76c88);
}
.kingdom-level-up svg {
  width: 100%;
  height: 100%;
}
.kingdom-level-up-label {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: none;
  display: grid;
  place-items: center;
  color: #fff3ba;
  font: 700 clamp(12px, 1.4vw, 22px)/1.15 Georgia, serif;
  text-shadow: 0 2px 3px #171208, 0 0 8px #d9a438;
  white-space: nowrap;
  z-index: 9;
}
.kingdom-tile-status .hero-tile-xp {
  height: 3px !important;
  margin-bottom: 3px;
  border: 1px solid #9b83c087 !important;
  border-radius: 2px;
  background: #141021 !important;
  box-shadow: 0 1px 2px #000c;
}
.kingdom-tile-status .hero-tile-xp > span {
  background:
    linear-gradient(
      90deg,
      #7154a2,
      #dac3fc);
}
.kingdom-xp-gain {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -90%);
  color: #f9e1a1;
  font: 700 clamp(10px, 1.3vw, 18px)/1.3 Georgia, serif;
  white-space: nowrap;
  text-shadow: 0 1px 3px #201509, 0 0 5px #5b351a;
}
.kingdom-site-worker {
  position: absolute;
  inset: 25% -4% -3% 25%;
  pointer-events: none;
  z-index: 13;
}
.kingdom-site-worker > .token {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.kingdom-exit-flag {
  position: absolute;
  inset: 0;
  z-index: 20;
  color: #f6d795;
  opacity: .43;
  filter: drop-shadow(0 1px 2px #16150b);
  pointer-events: none;
}
.kingdom-exit-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}
.kingdom-exit-flag.rally-flag-draggable {
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.rally-flag-dragging,
.rally-flag-dragging .rally-flag-draggable {
  cursor: grabbing;
}
.kingdom-exit-flag.rally-drag-ghost {
  position: fixed;
  inset: auto;
  z-index: 1000;
  opacity: .8;
  color: #eb7868;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.rally-drag-ghost.rally-drop-invalid {
  opacity: .3;
}
.square.rally-drop-valid:after,
.square.rally-drop-invalid:after {
  content: "";
  position: absolute;
  inset: 2%;
  z-index: 32;
  pointer-events: none;
  border: 2px solid #f3d48b;
  background: #e9ba5526;
  border-radius: 4%;
}
.square.rally-drop-invalid:after {
  border-color: #d67b6b;
  background: #a73e2926;
}
.square[data-elevation].rally-drop-valid:after,
.square[data-elevation].rally-drop-invalid:after {
  translate: 0 var(--ground-lift);
}
.kingdom-recruit-preview {
  position: absolute;
  inset: 0;
  opacity: .24;
  pointer-events: none;
  z-index: 11;
}
.kingdom-recruit-preview > .token {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
#board-viewport {
  position: relative;
  overflow: clip;
}
.turn-banner {
  --banner-cloth:#282847;
  --banner-thread:#e4c98b;
  position: absolute;
  left: 50%;
  top: clamp(12px, 8%, 72px);
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(88%, 410px);
  padding: 12px 20px 17px;
  pointer-events: none;
  color: var(--banner-thread);
  background:
    repeating-linear-gradient(
      0deg,
      #ffffff04 0 1px,
      transparent 1px 3px),
    linear-gradient(
      100deg,
      #0004,
      transparent 25%,
      #ffffff08 50%,
      #0003),
    var(--banner-cloth);
  border: 1px solid var(--banner-thread);
  outline: 1px solid #0008;
  box-shadow:
    0 5px 18px #0008,
    inset 0 0 0 4px #0004,
    inset 0 0 0 5px #bfa57555;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 94% 100%, 6% 100%, 0 84%);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
}
.turn-banner-citadel {
  --banner-cloth:#292943;
  --banner-thread:#f0d8a0;
}
.turn-banner-forest {
  --banner-cloth:#173630;
  --banner-thread:#d1e4c5;
}
.turn-banner-wasteland {
  --banner-cloth:#593725;
  --banner-thread:#eac58e;
}
.turn-banner-sigil {
  width: 53px;
  height: 53px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px #0008);
}
.turn-banner-copy {
  flex: 1;
  text-align: center;
  display: grid;
  gap: 4px;
}
.turn-banner-copy small {
  font: small-caps 11px/1.3 Georgia, serif;
  letter-spacing: .12em;
}
.turn-banner-copy strong {
  font-weight: 400;
  font-size: clamp(23px, 3vw, 31px);
  letter-spacing: .08em;
  text-shadow: 0 1px 1px #0008;
}
.turn-banner-stitch {
  height: 47px;
  width: 5px;
  flex: none;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 4px,
      var(--banner-thread) 4px 5px,
      transparent 5px 8px);
  opacity: .6;
}
.turn-event-caption {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  z-index: 80;
  max-width: 90%;
  padding: 6px 14px;
  pointer-events: none;
  text-align: center;
  color: #f3dfb8;
  background: #191c1de8;
  border: 1px solid #c1a97777;
  box-shadow: 0 2px 8px #0006;
  font: 14px/1.35 Georgia, serif;
}
@media (max-width: 600px) {
  .turn-banner {
    gap: 8px;
    padding: 9px 12px 15px;
  }
  .turn-banner-sigil {
    width: 40px;
    height: 40px;
  }
  .turn-banner-copy small {
    font-size: 9px;
    letter-spacing: .08em;
  }
  .turn-banner-copy strong {
    font-size: 24px;
  }
}
@media (max-width: 700px) {
  .kingdom-action-grid {
    grid-template-columns: repeat(auto-fill, 64px) !important;
    gap: 6px;
  }
  .button.kingdom-action {
    min-height: 64px;
  }
}
.kingdom-farm-worker {
  position: absolute;
  left: 34%;
  bottom: 10%;
  width: 35%;
  aspect-ratio: 1;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.kingdom-farm-worker > .token {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.kingdom-farm-worker .unit-letter,
.kingdom-farm-worker .used-mark {
  display: none;
}
.kingdom-farm-motes {
  z-index: 3;
}
.kingdom-farm-motes i {
  width: 5%;
  height: 5%;
  left: 40%;
  bottom: 20%;
  background: #ffe29d;
  box-shadow: 0 0 3px #ffcf79;
}
.kingdom-farm-motes i:nth-child(2) {
  left: 60%;
}
.kingdom-farm-motes i:nth-child(3) {
  left: 49%;
}
@keyframes kingdom-harvest {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(.6);
  }
  25% {
    opacity: .9;
  }
  85% {
    opacity: 0;
    transform: translateY(-16px) scale(1);
  }
}
.kingdom-residents .button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.game-sidebar {
  container-type: inline-size;
  container-name: warboard-sidebar;
}
.kingdom-compact #selection-health {
  flex: none;
}
@container warboard-sidebar (max-width:400px) {
  .kingdom-action-grid {
    grid-template-columns: repeat(auto-fill, 64px) !important;
    gap: 6px;
  }
  .button.kingdom-action {
    min-height: 64px;
  }
  .kingdom-compact {
    grid-template-columns: minmax(68px, 30%) minmax(0, 1fr);
    gap: 6px;
  }
  .kingdom-compact .selection-identity {
    gap: 4px 6px;
  }
  .kingdom-compact .selection-identity h3 {
    font-size: .9rem;
  }
  .kingdom-compact .selection-position {
    font-size: .7rem;
  }
  .kingdom-compact .kingdom-health-count {
    font-size: .72rem;
  }
  .kingdom-compact .kingdom-health-count svg {
    width: 12px;
    height: 12px;
  }
}
.kingdom-readiness {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1 0 100%;
  margin: 0 0 4px;
  font-size: .72rem;
  color: #b9c4b8;
}
.kingdom-readiness-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #738c6866;
  background: #16241988;
  border-radius: 3px;
  padding: 3px 5px;
  color: #cfe3b8;
  line-height: 1.1;
}
.kingdom-readiness-badge .command-symbol {
  width: 20px;
  height: 20px;
  padding: 1px;
  stroke: #cfe3b8;
  flex: none;
}
.kingdom-readiness-badge b {
  font-size: .85rem;
  min-width: 9px;
  text-align: center;
}
.kingdom-readiness-badge.spent {
  color: #aba792;
  background: #201e1866;
  border-color: #71664e66;
}
.kingdom-readiness-badge.spent .command-symbol {
  stroke: #8d8975;
}
.kingdom-readiness-badge:focus-visible {
  outline: 2px solid #ead19a;
  outline-offset: 2px;
}
.command-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.selection-vitals {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 7px;
}
#selection-readiness .kingdom-readiness {
  display: flex;
  margin: 0;
  gap: 10px;
}
#selection-readiness .kingdom-readiness-badge {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  font-size: .78rem;
}
#selection-readiness .command-symbol {
  width: 17px;
  height: 17px;
  padding: 0;
  filter: none;
}
#selection-readiness .kingdom-readiness-badge.spent {
  opacity: .5;
}
#selection-panel.kingdom-compact .selection-identity {
  flex-wrap: wrap;
  gap: 4px 8px;
}
#selection-position {
  border: 0;
  border-bottom: 1px dotted #bda56b55;
  padding: 0;
  background: none;
  color: #cfbd91;
  cursor: pointer;
  font: inherit;
}
.kingdom-residents {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 5px;
}
.kingdom-residents .kingdom-resident {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  min-height: 42px;
  padding: 3px 9px 3px 3px;
  font-size: .78rem;
  text-align: left;
}
.kingdom-resident > .command-portrait {
  width: 34px;
  height: 34px;
  flex: none;
}
.kingdom-resident > span:not(.kingdom-health-count) {
  display: grid;
  gap: 2px;
}
.kingdom-resident small {
  font: 11px/1.1 system-ui;
  color: #b6bc9f;
}
.kingdom-resident .kingdom-health-count {
  margin-left: 4px;
  font-size: .72rem;
}
.kingdom-residents h4 {
  flex-basis: 100%;
  margin: 0;
  font-size: .7rem;
}
.kingdom-residents > .button:not(.kingdom-resident) {
  width: auto;
  min-height: 30px;
  padding: 4px 8px;
}
.kingdom-compact .selection-art.building-portrait:before,
.kingdom-compact .selection-art.building-portrait:after {
  width: 70%;
  top: calc(91% / 1.12);
}
.kingdom-compact .selection-art.building-portrait:before {
  top: calc(91% / 1.12 + 3px);
}
.square.legal-build:after {
  width: 24% !important;
  height: 24% !important;
  left: 50% !important;
  top: 50% !important;
  inset-inline-end: auto !important;
  transform: translate(-50%, -50%) !important;
  border: 1px solid #f2da8eb5 !important;
  border-radius: 50% !important;
  background: #f6d48370 !important;
  box-shadow: 0 0 0 1px #31251166 !important;
}
.square.build-site-hint:before {
  inset: 4px;
  border-width: 1px;
  background: transparent;
  opacity: .65;
}
.square.build-site-hint.selected:before {
  inset: auto;
  width: 24%;
  height: 24%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #f2da8eb5;
  border-radius: 50%;
  background: #f6d48370;
}
.square.build-site-self:before {
  display: none !important;
}
.square.unit-spent > .token:not(.rogue-cloaked):not(.rogue-spotted),
.square.unit-recruit > .token:not(.rogue-cloaked):not(.rogue-spotted),
.square .token.opponent:not(.rogue-cloaked):not(.rogue-spotted) {
  opacity: 1;
}
.kingdom-tile-status .kingdom-health {
  opacity: .73;
}
.kingdom-tile-status .hero-tile-xp {
  opacity: .73;
}
.kingdom-tile-status .health-point {
  box-shadow: inset 0 1px 0 #ffffff70;
}
.kingdom-tile-status .hero-tile-xp {
  height: 5px !important;
  margin-bottom: 3px;
  opacity: 1;
}
.square > .token .used-mark,
.battle-unit > .token .used-mark {
  display: none;
}
.unit-readiness-summary {
  margin: 5px 0 0;
  color: #b6bca6;
  font: 11px/1.4 system-ui;
}
.unit-readiness-summary[data-empty=true] {
  color: #dcc995;
}
.turn-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}
.turn-actions #end-turn,
.turn-actions #undo {
  flex: 0 0 auto;
  width: auto;
  min-height: 34px;
  margin: 0;
  padding: 6px 13px;
  border-radius: 5px;
  font: 600 13px/1.2 system-ui;
  box-shadow: none;
}
.turn-actions #end-turn {
  border: 1px solid #bda46a7a;
  background: linear-gradient(#3b402988, #282d2188);
  color: #e5d7b3;
}
.turn-actions #end-turn:hover {
  border-color: #dec68f;
  background: #484e32;
}
.turn-actions #undo {
  padding: 6px 9px;
  border-color: transparent;
  background: transparent;
  color: #bbbca9;
}
.turn-actions #undo:disabled {
  opacity: .38;
}
.turn-weather {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  margin: 5px 0 10px;
  color: #dedec4;
  font: 500 15px/1.4 system-ui;
}
.turn-weather.changed {
  animation: weather-update 650ms ease-out;
}
@keyframes weather-update {
  from {
    opacity: .25;
    translate: 0 3px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
.turn-banner-copy .turn-banner-weather {
  font: 12px/1.5 system-ui;
  letter-spacing: .025em;
  text-transform: none;
  color: #ece4c7;
}
.tile-panel {
  padding: 10px 13px !important;
  font: 12px/1.5 system-ui;
}
.tile-info-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #ebd6a3;
}
.tile-info-heading button {
  border: 0;
  background: none;
  color: #bdbea7;
  width: 28px;
  height: 28px;
  font-size: 20px;
}
.tile-panel p {
  font-size: 12px !important;
  margin: 3px 0 7px;
}
.tile-reachable {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  color: #b8c1a6;
}
.tile-unit {
  width: 35px;
  height: 35px;
  padding: 1px;
  border: 1px solid #a4916055;
  background: #28302366;
  border-radius: 4px;
}
.tile-inspected {
  outline: 1px solid #ffe0a6;
  outline-offset: -3px;
}
@media (prefers-reduced-motion: no-preference) {
  .square > .token:not(.race-unit):not(.personality-idle):not(.readiness-idle) .motion-sprite {
    animation: var(--idle-animation,unit-idle) 2134ms step-end infinite;
    animation-delay: var(--idle-delay,0ms);
  }
}
.square:not(.ambient-idle) > .token:not(.race-unit) .motion-sprite {
  animation-play-state: paused;
}
@media (max-width: 700px) {
  .turn-actions #end-turn,
  .turn-actions #undo {
    min-height: 40px;
  }
  .tile-panel:not([hidden]) {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 135;
    max-height: 180px;
    overflow: auto;
    background: #20251bf5;
    border: 1px solid #9c875e;
    border-radius: 8px;
  }
  .selection-vitals {
    gap: 9px;
    margin-top: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .turn-weather.changed {
    animation: none;
  }
}
.turn-actions,
#turn-weather,
#unit-readiness-summary {
  grid-column: 1 / -1;
}
@container warboard-sidebar (min-width:420px) {
  .turn-card[data-phase=play] .action-display {
    grid-column: 2;
    grid-row: 1 / 4;
    margin: 0 35px 0 15px;
  }
  .turn-card[data-phase=play] #turn-weather {
    grid-column: 1;
    margin-bottom: 0;
  }
  .turn-card[data-phase=play] .resource-sources {
    min-height: 30px;
  }
  .turn-card[data-phase=play] .kingdom-overview {
    margin: 0;
  }
  .turn-card[data-phase=play] .turn-actions {
    margin-top: 0;
  }
}
.kingdom-work-light:before {
  background: #ffdf895e;
  box-shadow: 0 0 7px 3px #f8ba5126;
  border: 1px solid #ffdf8966;
}
.kingdom-production {
  margin: .65rem 0;
  padding: .75rem;
  border: 1px solid #987342;
  background:
    linear-gradient(
      135deg,
      #392c19ed,
      #181b17ed);
  border-radius: 8px;
  text-align: left;
  min-width: 0;
  color: #f2e0bc;
}
.production-current {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.production-portrait {
  flex: 0 0 58px;
  height: 58px;
  display: grid;
  place-items: center;
}
.production-portrait .command-portrait,
.production-queue-portrait .command-portrait {
  width: 100%;
  height: 100%;
}
.production-copy {
  min-width: 0;
}
.production-copy h4 {
  font-size: 1rem;
  margin: 0 0 .25rem;
  color: #e8c27f;
}
.production-copy > strong {
  font-size: 1.05rem;
  display: block;
  overflow-wrap: anywhere;
}
.production-time {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: .4rem 0;
  font-size: .85rem;
}
.production-time b {
  font-size: 1.2rem;
}
.production-time svg {
  width: 23px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.production-book {
  width: 44px;
  fill: none;
  stroke: #dec28d;
  stroke-width: 1.6;
}
.kingdom-production .kingdom-meter {
  height: 6px;
  margin: .5rem 0;
}
.production-note {
  font-size: .8rem;
  line-height: 1.4;
  margin: .55rem 0 0;
  color: #d1c4ad;
}
.kingdom-production.ready {
  border-color: #dec17b;
  background:
    linear-gradient(
      135deg,
      #49381c,
      #1d241c);
}
.production-place {
  margin-top: .6rem;
  width: 100%;
}
.production-queue {
  border-top: 1px solid #b4914c44;
  margin-top: .65rem;
  padding-top: .5rem;
}
.production-queue h5 {
  font-size: .78rem;
  margin: 0 0 .4rem;
  color: #ceb98e;
}
.production-queue > p {
  font-size: .75rem;
  margin: 0;
  color: #acaa99;
}
.production-queue ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .4rem;
}
.production-queue li {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}
.production-queue li > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.production-queue-portrait {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
}
.production-queue-portrait .production-book {
  width: 26px;
}
.production-queue strong {
  font-size: .85rem;
}
.production-queue small {
  display: block;
  font-size: .72rem;
  color: #b9ad95;
}
.kingdom-help-section h4 {
  margin: .7rem 0 .25rem;
  color: #dec28d;
  font-size: .9rem;
}
.kingdom-help-section p {
  margin: 0;
  line-height: 1.5;
}
.kingdom-help-section:first-child h4 {
  margin-top: 0;
}
.help-popover .kingdom-help-section h4 {
  color: #513717;
}
.help-popover:has(.kingdom-help-section) {
  width: min(440px, calc(100vw - 24px));
  max-height: min(76dvh, 700px);
  overflow-y: auto;
  max-width: min(440px, calc(100vw - 24px));
}
.kingdom-ground-blight {
  background:
    radial-gradient(
      ellipse at 32% 37%,
      #151412bb,
      transparent 66%),
    radial-gradient(
      ellipse at 73% 72%,
      #211a15ba,
      transparent 72%),
    linear-gradient(#25221cb3, #171914a8);
  stroke: none;
  fill: none;
  opacity: .9;
  mix-blend-mode: normal;
}
.kingdom-ground-blight .scorched-ash {
  fill: #100f0c80;
  stroke: #65605130;
  stroke-width: .4;
}
.kingdom-ground-blight .scorched-coal {
  fill: #bd4b22;
  filter: drop-shadow(0 0 2px #ee701b);
}
.kingdom-ground-blight .scorched-flame {
  fill: #f5aa52;
  transform-origin: 0 0;
  filter: drop-shadow(0 0 1px #ff621e);
  animation: scorched-flicker var(--ember-duration) ease-in-out var(--ember-delay) infinite;
}
.kingdom-ground-blight .scorched-spark {
  fill: #ffc775;
  animation: scorched-spark var(--ember-duration) ease-out var(--ember-delay) infinite;
}
@keyframes scorched-flicker {
  0%, 100% {
    opacity: .25;
    scale: .75 .6;
  }
  35% {
    opacity: .85;
    scale: 1 1.15;
  }
  65% {
    opacity: .5;
    scale: .8 .9;
  }
}
@keyframes scorched-spark {
  0%, 15% {
    opacity: 0;
    translate: 0 0;
  }
  30% {
    opacity: .8;
  }
  100% {
    opacity: 0;
    translate: 2px -9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kingdom-ground-blight .scorched-flame,
  .kingdom-ground-blight .scorched-spark {
    animation: none;
  }
  .kingdom-ground-blight .scorched-flame {
    opacity: .6;
  }
  .kingdom-ground-blight .scorched-spark {
    display: none;
  }
}
.kingdom-travel-note,
.kingdom-builder-note {
  margin: .45rem 0;
  font-size: .78rem;
  line-height: 1.4;
  color: #dacbaa;
  text-align: left;
}
.kingdom-tile-countdown {
  position: absolute;
  top: 4%;
  right: 3%;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
  padding: 2px 3px;
  border-radius: 3px;
  background: #141a1cd9;
  color: #ffe1a2;
  text-shadow: 0 1px 2px #000;
  font: 700 clamp(10.4px, 1.235vw, 15.6px)/1 system-ui;
  box-shadow: 0 1px 3px #0006;
}
.kingdom-tile-countdown svg {
  height: 1em;
  width: .8em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.square[data-elevation] > .kingdom-tile-countdown {
  translate: 0 var(--ground-lift);
}
.square[data-elevation] > .unit-action-dots,
.square[data-elevation] > .kingdom-building-usage,
.square[data-elevation] > .kingdom-exit-flag,
.square[data-elevation] > .kingdom-recruit-preview,
.square[data-elevation] > .kingdom-protection {
  translate: 0 var(--ground-lift);
}
.command-symbol.demolition-picture {
  stroke-width: 1.2;
  padding: 2px;
}
@media (max-width: 600px) {
  .kingdom-tile-countdown {
    font-size: 11.7px;
    gap: 0;
    padding: 1px 0;
  }
}
.enemy-movement-note {
  font: 12px/1.45 system-ui;
  color: #d9c7b6;
  margin: .4rem 0;
}
.square.enemy-move-hint:after {
  content: "";
  position: absolute;
  inset: 13%;
  width: auto;
  height: auto;
  transform: none;
  border: 1px dashed #f1b47cad;
  border-radius: 4px;
  background: #e3a56c22;
  box-shadow: inset 0 0 8px #e3a56c1c;
  pointer-events: none;
  z-index: 3;
}
.square.enemy-move-hint {
  cursor: default;
}
.square.turn-event-focus:before {
  content: "";
  position: absolute;
  inset: 5%;
  z-index: 24;
  border: 2px solid #ffe6a1b3;
  border-radius: 7%;
  background: #ffe0a914;
  box-shadow: 0 0 12px #f5d68a55, inset 0 0 10px #f5d68a26;
  pointer-events: none;
  animation: turn-event-glow 1.7s ease-in-out infinite;
}
@keyframes turn-event-glow {
  0%, 100% {
    opacity: .55;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .square.turn-event-focus:before {
    animation: none;
    opacity: .8;
  }
}
.turn-banner {
  display: block;
}
.turn-banner-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.turn-banner.turn-summary {
  clip-path: none;
  border-radius: 2px;
  padding-bottom: 12px;
  top: clamp(8px, 3%, 26px);
  width: min(84%, 390px);
}
.turn-summary-list {
  position: relative;
  list-style: none;
  margin: 12px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid #d9c49344;
  max-height: min(26vh, 185px);
  overflow: auto;
  scrollbar-width: thin;
  pointer-events: auto;
}
.turn-summary-list[hidden] {
  display: none;
}
.turn-summary-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 4px;
  font: 13px/1.4 system-ui;
  color: #ddd6bd;
  opacity: .48;
  transition: opacity .25s, background .25s;
}
.turn-summary-item[data-state=active] {
  opacity: 1;
  background: #f5d68a12;
  color: #fff2cd;
}
.turn-summary-item[data-state=done] {
  opacity: .8;
  color: #ccd9b8;
}
.turn-summary-mark {
  flex: none;
  width: 18px;
  text-align: center;
  font: 700 17px/1 system-ui;
}
@media (max-width: 600px) {
  .turn-banner-heading {
    gap: 8px;
  }
  .turn-banner.turn-summary {
    width: min(88%, 350px);
    padding: 9px 12px;
  }
  .turn-summary-item {
    font-size: 12px;
    padding: 5px 2px;
  }
  .turn-summary-list {
    max-height: 130px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .turn-summary-item {
    transition: none;
  }
}
.kingdom-compact .selection-art.building-portrait:before,
.kingdom-compact .selection-art.building-portrait:after {
  display: none;
}
.kingdom-compact .selection-art > .kingdom-building.portrait {
  isolation: isolate;
}
.kingdom-compact .selection-art > .kingdom-building.portrait:before,
.kingdom-compact .selection-art > .kingdom-building.portrait:after {
  content: "";
  position: absolute;
  left: var(--building-ground-x,50%);
  top: var(--building-ground-y,86%);
  width: var(--building-ground-size,78%);
  height: auto;
  aspect-ratio: 1;
  z-index: -1;
  pointer-events: none;
  transform:
    translate(-50%, -50%) matrix(
      .72, .36,
      -.72, .36,
      0, 0);
  border: 1px solid #756641;
  opacity: 1;
  filter: none;
  border-radius: 0;
}
.kingdom-compact .selection-art > .kingdom-building.portrait:before {
  top: calc(var(--building-ground-y,86%) + 3px);
  background: #534b35;
}
.kingdom-compact .selection-art > .kingdom-building.portrait:after {
  background:
    radial-gradient(
      ellipse at 50% 50%,
      #17180c44,
      transparent 60%),
    linear-gradient(#191d1010, #191d1030),
    var(--portrait-terrain);
  background-size:
    100% 100%,
    100% 100%,
    var(--portrait-terrain-size,cover);
  background-position:
    center,
    center,
    var(--portrait-terrain-position,center);
  background-repeat: no-repeat;
}
.kingdom-building[data-race=humans].staffed-farm > .kingdom-farm-worker {
  left: 57%;
  bottom: 20%;
  width: 28%;
}
.square.legal-placement:after {
  display: none;
}
.tile-reach-outline {
  position: absolute;
  inset: 1px;
  border: 3px solid color-mix(in srgb, var(--reach-color) 60%, #fff1c6);
  border-radius: 8%;
  box-shadow: inset 0 0 0 1px #13180b, 0 0 5px #fff0b644;
  z-index: 23;
  pointer-events: none;
}
.square[data-elevation] > .tile-reach-outline {
  translate: 0 var(--ground-lift);
}
.command-picture .revival-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 23px;
  height: 23px;
  padding: 2px;
  border: 1px solid #a6c19b;
  border-radius: 4px;
  background: #17251eee;
  fill: #bce0aa;
  stroke: #edf7d9;
  stroke-width: 1.5;
}
.kingdom-compact .selection-identity {
  --selection-label-size:20px;
  font-size: 20px;
}
.kingdom-compact .selection-identity h3 {
  flex: none;
  font-size: inherit;
  white-space: nowrap;
  margin: 0;
}
.kingdom-compact .selection-identity .selection-position {
  font-size: .85em;
  line-height: 1.2;
  flex: none;
  white-space: nowrap;
}
.turn-banner-copy strong {
  font-size: clamp(19px, 2.6vw, 27px);
  letter-spacing: .025em;
}
.turn-banner.turn-summary {
  pointer-events: auto;
  width: min(88%, 440px);
  max-height: calc(100% - 24px);
  overflow: auto;
}
.turn-summary-list {
  max-height: min(34vh, 250px);
}
.turn-recap-button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid #bfa57555;
  border-radius: 4px;
  padding: 7px 9px;
  text-align: left;
  cursor: pointer;
  min-height: 40px;
}
.turn-recap-button:hover,
.turn-recap-button:focus-visible {
  background: #f5d68a22;
  outline: 1px solid #eed89b;
}
.turn-recap-button[hidden] {
  display: none;
}
.turn-summary-item .turn-recap-button {
  flex: 1;
  border-color: transparent;
}
.turn-recap-section {
  font: 600 11px/1.5 system-ui;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #eed89b;
  padding: 9px 4px 3px;
}
.turn-recap-hint {
  font: 12px/1.5 system-ui;
  color: #ddd6bd;
  margin: 10px 0 0;
}
.turn-required-item {
  display: grid;
  gap: 6px;
  border-top: 1px solid #bfa57555;
  padding: 9px 0;
  font: 13px/1.4 system-ui;
}
.turn-required-item strong {
  color: #f5d68a;
}
@media (max-width: 600px) {
  .turn-summary-list {
    max-height: 25vh;
  }
  .turn-recap-button {
    min-height: 44px;
  }
  .turn-banner.turn-summary {
    width: 92%;
    top: 6px;
  }
  .turn-banner-copy strong {
    font-size: 21px;
  }
}
.turn-banner.turn-summary-mobile {
  position: fixed;
  left: 10px;
  right: 10px;
  top: auto;
  bottom: 10px;
  transform: none;
  width: auto;
  margin: 0;
  max-height: 45dvh;
  z-index: 210;
}
.turn-summary-mobile .turn-summary-list {
  max-height: 140px;
}
.battle-time-icon {
  width: 23px;
  height: 23px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.battle-time-icon.sun {
  color: #edc675;
}
.battle-time-icon.moon {
  color: #bfd3e9;
  fill: #bfd3e933;
}
.square.legal-enter:not(:has(> .ground-action-cues))::after,
.square.legal-enter > .ground-action-cues::after {
  content: "\21b3";
  position: absolute;
  inset: 5%;
  z-index: 12;
  display: grid;
  place-items: center;
  border: 2px solid #efda9c;
  border-radius: 6px;
  background: #2d4b3766;
  color: #fff0b4;
  font: bold clamp(20px, 3vw, 35px)/1 system-ui;
  pointer-events: none;
  text-shadow: 0 2px 3px #000;
}
.turn-banner-heading {
  position: relative;
  isolation: isolate;
  min-height: 92px;
}
.turn-banner-heading::before {
  content: "";
  position: absolute;
  inset: -8px -12px;
  z-index: -1;
  opacity: .17;
  background: center / cover no-repeat url(./assets/menu/menu-citadel-engraving.svg);
  mask-image:
    linear-gradient(
      90deg,
      #000,
      transparent);
}
.turn-banner-forest .turn-banner-heading::before {
  background-image: url(./assets/menu/menu-forest-engraving.svg);
}
.turn-banner-wasteland .turn-banner-heading::before {
  background-image: url(./assets/menu/menu-wasteland-engraving.svg);
}
.turn-banner-heading .turn-banner-sigil {
  position: absolute;
  right: -2px;
  top: 1px;
  width: 25px;
  height: 25px;
  opacity: .24;
}
.turn-banner-copy .turn-banner-weather {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
}
.turn-banner-weather .battle-time-icon {
  width: 21px;
  height: 21px;
}
@media (max-width: 600px) {
  .turn-banner-heading {
    min-height: 76px;
  }
  .turn-banner-copy .turn-banner-weather {
    font-size: 13px;
  }
}
.desert-witch-doctor {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.desert-witch-doctor .token,
.witch-doctor-vanishing .token {
  filter: saturate(.15) brightness(.8);
  opacity: .9;
}
.desert-witch-doctor .token {
  position: absolute;
  inset: 1%;
  width: 98%;
  height: 98%;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: 0;
  animation: none;
}
.witch-doctor-vanishing .token {
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: 0;
}
.desert-witch-doctor .unit-letter,
.desert-witch-doctor .used-mark,
.witch-doctor-vanishing .unit-letter {
  display: none;
}
.witch-doctor-smoke {
  background:
    radial-gradient(
      ellipse,
      #afa79c80 0%,
      #77736c50 38%,
      transparent 70%);
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
#turn-card[data-phase=play] .turn-budget {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 14px;
  padding-top: 10px;
  border-top: 1px solid #c2ad7026;
}
#turn-card[data-phase=play] .turn-budget .action-display {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  justify-content: flex-start;
}
#turn-card[data-phase=play] .turn-budget .resource-sources {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 0;
  margin: 0;
  padding: 0;
}
#turn-card[data-phase=play] .turn-budget .turn-actions {
  grid-column: 2;
  grid-row: 1 / 3;
  margin: 0;
  gap: 5px;
}
.turn-budget .resource-counter {
  padding: 3px 6px;
  border-color: #c2ad7029;
  font-size: 12px;
}
.turn-budget .resource-counter svg {
  width: 13px;
  height: 13px;
}
.turn-budget #end-turn {
  min-width: 104px;
  min-height: 40px;
}
.turn-budget #undo {
  width: 28px;
  min-width: 28px;
  padding: 5px;
  font-size: 19px;
}
.kingdom-overview {
  display: none !important;
}
.unit-readiness-summary {
  font-size: 13px;
  color: #e5d7b3;
}
.kingdom-idle-worker .token:not(.used)::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid var(--team);
  pointer-events: none;
  animation: idle-worker-ring 4.8s ease-in-out infinite;
}
@keyframes idle-worker-ring {
  0%, 100% {
    opacity: .12;
  }
  50% {
    opacity: .48;
  }
}
.kingdom-garrison-count {
  position: absolute;
  right: 1px;
  bottom: 15px;
  padding: 2px 3px;
  border-radius: 4px;
  background: #17231ce8;
  color: #dccb99;
  font: 600 10px/1 system-ui;
}
.turn-banner.turn-summary {
  width: min(92%, 560px);
  padding: 16px 22px;
  border-radius: 12px 12px 22px 22px;
}
.turn-banner-copy strong {
  font-size: clamp(27px, 3.3vw, 38px);
}
.turn-banner-copy small {
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 600;
  letter-spacing: .06em;
}
.turn-banner-copy .turn-banner-weather {
  font-size: 14px;
}
.turn-summary-item {
  font-size: 16px;
}
.turn-recap-hint {
  font-size: 11px;
  opacity: .65;
}
.turn-ready-faces {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
}
.turn-ready-face {
  display: inline-block;
  width: 56px;
  height: 56px;
  flex: none;
  overflow: hidden;
  position: relative;
  border: 1px solid #c7af7055;
  border-radius: 50%;
  background: #17231c;
}
.turn-ready-face > .token {
  width: 100%;
  height: 100%;
  margin: 0;
  position: absolute;
  inset: 0;
}
.turn-required-item strong {
  display: block;
}
.turn-required-item {
  font-size: 14px;
}
#setup-ready {
  position: relative;
  overflow: hidden;
  min-height: 56px;
  border-radius: 12px 12px 25px 25px;
  border: 1px solid #e5c477;
  background:
    radial-gradient(
      ellipse at 50% 0,
      #ae76345c,
      transparent 75%),
    linear-gradient(
      120deg,
      #332c1b,
      #686039,
      #332c1b);
  box-shadow:
    inset 0 0 0 3px #1d201b,
    inset 0 0 0 4px #c5a65c55,
    0 4px 16px #0006;
  font: 600 22px/1.3 Georgia, serif;
  letter-spacing: .04em;
  text-shadow: 0 2px 3px #000;
}
#setup-ready::before,
#setup-ready::after {
  content: "\2727";
  margin: 0 14px;
  color: #e6c679;
}
@media (max-width: 600px) {
  #turn-card[data-phase=play] .turn-budget {
    gap: 5px 8px;
  }
  .turn-budget #end-turn {
    min-width: 96px;
    padding: 8px;
  }
  .turn-banner.turn-summary {
    padding: 12px 14px;
    width: 94%;
  }
  .turn-banner-copy strong {
    font-size: 29px;
  }
  .turn-summary-item {
    font-size: 14px;
  }
  .turn-ready-face {
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kingdom-idle-worker .token::after {
    animation: none;
    opacity: .25;
  }
}
.turn-ready-face > .command-portrait {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
}
.home-shield-point {
  color: #b8d9de;
  font: 600 11px/1 system-ui;
  padding: 3px 5px;
  border: 1px solid #acd3d34d;
  border-radius: 5px;
  cursor: pointer;
}
.build-duration {
  position: absolute;
  right: 3px;
  bottom: 3px;
  z-index: 30;
  background: #1d281ee8;
  color: #e6d4a7;
  border-radius: 4px;
  padding: 2px 4px;
  font: 600 11px system-ui;
  pointer-events: none;
}
#turn-card[data-phase=play] .turn-budget {
  gap: 6px 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}
#turn-card[data-phase=play] .turn-budget .action-display {
  gap: 6px;
  align-items: center;
}
#turn-card[data-phase=play] .turn-budget #actions-left {
  font-size: 2rem;
}
#turn-card[data-phase=play] .turn-budget .action-display strong {
  font-size: 10px;
}
#turn-card[data-phase=play] .turn-budget .action-pips {
  max-width: 68px;
  gap: 3px;
}
#turn-card[data-phase=play] .turn-budget .turn-actions {
  display: flex;
  flex-wrap: nowrap;
  align-self: start;
  align-items: center;
  padding: 0;
}
#turn-card[data-phase=play] .turn-budget #end-turn {
  min-width: 88px;
  padding: 8px;
  font-size: 12px;
}
#turn-card[data-phase=play] .turn-budget #undo {
  width: 23px;
  min-width: 23px;
  padding: 4px;
  font-size: 19px;
}
#turn-card[data-phase=play] .turn-budget .resource-sources {
  border: 0;
  min-width: 0;
}
#turn-card[data-phase=play] .turn-budget .resource-counter {
  min-height: 24px;
  gap: 4px;
  padding: 3px 5px;
}
#turn-card[data-phase=play] .turn-budget .resource-counter .resource-icon {
  width: 13px;
  height: 13px;
}
#turn-card[data-phase=play] .turn-budget .resource-counter strong {
  font-size: 12px;
}
.setup-confirm {
  container-type: inline-size;
}
.setup-confirm #setup-ready {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35em;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  font-size: clamp(18px, 8cqi, 30px);
  padding: 18px 12px;
  border-radius: 12px 12px 28px 28px;
}
.setup-confirm #setup-ready::before,
.setup-confirm #setup-ready::after {
  flex: none;
  margin: 0;
  font-size: .7em;
}
@media (max-width: 600px) {
  .setup-confirm #setup-ready {
    padding: 15px 8px;
  }
}
.kingdom-action .command-work-steps {
  position: absolute;
  left: 3px;
  bottom: 2px;
  font: 700 13px/1.4 system-ui;
  color: #fff0bc;
  background: #15130fbb;
  border-radius: 3px;
  padding: 1px 3px;
}
.sidebar-navigation {
  justify-content: center;
  grid-column: 1/-1;
}
.sidebar-navigation #main-menu-button {
  flex: 0 0 auto;
  min-width: 112px;
  width: auto;
}
.board-expanded:not(.mobile-controls-active) .game-layout:not(.expanded-stacked) .game-sidebar {
  padding-top: 62px;
}
.board-expanded:not(.mobile-controls-active) .game-layout:not(.expanded-stacked) .sidebar-navigation {
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 30;
}
.sidebar-navigation #main-menu-button,
.setup-confirm #setup-ready {
  transition:
    translate .14s ease,
    filter .14s ease,
    box-shadow .14s ease;
  box-shadow:
    inset 0 1px #fff2,
    inset 0 -3px #0005,
    0 4px 8px #0006;
}
.sidebar-navigation #main-menu-button:hover:not(:disabled),
.sidebar-navigation #main-menu-button:focus-visible,
.setup-confirm #setup-ready:hover:not(:disabled),
.setup-confirm #setup-ready:focus-visible {
  translate: 0 -2px;
  filter: brightness(1.15);
  box-shadow:
    inset 0 1px #fff3,
    inset 0 -3px #0005,
    0 6px 12px #0006,
    0 0 12px #dfbf6833;
}
.sidebar-navigation #main-menu-button:active:not(:disabled),
.setup-confirm #setup-ready:active:not(:disabled) {
  translate: 0 1px;
  filter: brightness(1.06);
  box-shadow: inset 0 2px 5px #0006, 0 1px 3px #0005;
}
@media (prefers-reduced-motion: reduce) {
  .sidebar-navigation #main-menu-button,
  .setup-confirm #setup-ready {
    transition: none;
  }
  .sidebar-navigation #main-menu-button:is(:hover, :active, :focus-visible),
  .setup-confirm #setup-ready:is(:hover, :active, :focus-visible) {
    translate: none;
  }
}
#turn-card[data-phase=play] #turn-number {
  font-size: .86rem;
}
#turn-card[data-phase=play] #turn-title {
  font-size: 1.8rem;
}
#turn-card[data-phase=play] #turn-weather {
  font-size: 1.1rem;
}
#turn-card[data-phase=play] .turn-budget .action-display {
  display: grid;
  grid-template-columns: 24px auto;
  column-gap: 8px;
  row-gap: 3px;
}
.army-action-symbol {
  width: 24px;
  height: 30px;
  color: #ecd395;
  grid-row: 1;
}
#turn-card[data-phase=play] .turn-budget #actions-left {
  font-size: 2.8rem;
  grid-column: 2;
  grid-row: 1;
}
#turn-card[data-phase=play] .turn-budget .action-display > div {
  grid-column: 2;
  grid-row: 2;
}
#turn-card[data-phase=play] .turn-budget .action-pips {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: 86px;
  max-width: 86px;
  margin-top: 0;
}
#turn-card[data-phase=play] .turn-budget .action-pips .pip {
  width: auto;
  height: 6px;
}
#turn-card[data-phase=play] .turn-budget .resource-counter {
  min-height: 36px;
  gap: 6px;
  padding: 5px 8px;
}
#turn-card[data-phase=play] .turn-budget .resource-counter .resource-icon {
  width: 20px;
  height: 20px;
}
#turn-card[data-phase=play] .turn-budget .resource-counter strong {
  font-size: 16px;
}
#turn-card[data-phase=play] .turn-budget .resource-sources {
  grid-column: 1/-1;
  grid-row: 2;
}
#turn-card[data-phase=play] .turn-budget .turn-actions {
  grid-row: 1;
  align-self: center;
}
#turn-card[data-phase=play] .turn-budget #end-turn {
  font-size: 15px;
  min-height: 48px;
  min-width: 108px;
}
#turn-card[data-phase=play] .turn-budget #undo {
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 7px;
  font-size: 23px;
  border: 1px solid #81b5d9;
  background: linear-gradient(#386a8b, #234d70);
  color: #eef7ff;
  border-radius: 5px;
  box-shadow: inset 0 1px #ffffff20;
  opacity: 1;
}
#turn-card[data-phase=play] .turn-budget #undo:disabled {
  border-color: #7290a538;
  background: transparent;
  color: #8b9aa6;
  box-shadow: none;
  opacity: .45;
  cursor: default;
}
.square.economy-highlight {
  outline: 2px solid #f1d27f;
  outline-offset: -3px;
  box-shadow: inset 0 0 16px #f1d27f33;
}
.home-inscription {
  position: absolute;
  inset: 21%;
  width: 58%;
  height: 58%;
  fill: none;
  stroke: var(--home-inscription-color);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .28;
  filter: drop-shadow(0 1px 0 #0009);
}
.kingdom-unavailable-note {
  display: grid;
  gap: 4px;
  padding: 10px 13px;
  margin: 10px 0 0;
  border-left: 3px solid #a2bed0;
  background:
    linear-gradient(
      90deg,
      #81a9bf16,
      transparent);
  color: #d7e2e8;
  border-radius: 3px;
  font: 14px/1.4 system-ui;
}
.kingdom-unavailable-note strong {
  font: 600 16px/1.3 Georgia, serif;
  color: #e6edf0;
}
.kingdom-recovery-note {
  padding: 8px 10px;
  border-left: 3px solid #a78a50;
  background: #a78a5014;
  font: 14px/1.4 system-ui;
}
#turn-card[data-phase=play] .weather-icon {
  width: 28px;
  height: 28px;
}
#turn-card[data-phase=play] .weather-intensity {
  font-size: 12px;
}
#turn-card[data-phase=play] .weather-remaining {
  font-size: 14px;
}
.turn-summary.turn-placement-required {
  pointer-events: auto;
}
.turn-required-item {
  display: flex;
  align-items: center;
  gap: 9px;
}
.turn-required-item[data-state=done] {
  color: #ccd9b8;
}
.turn-required-item[data-state=blocked] {
  opacity: .65;
}
.turn-required-item .turn-recap-button:disabled {
  cursor: default;
  opacity: .8;
}
.turn-placement-required .turn-summary-list {
  max-height: 18vh;
}
.turn-placement-required .turn-recap-hint {
  font-size: 15px;
  opacity: 1;
  color: #f4dfad;
}
.kingdom-xp-label {
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 3px;
}
.kingdom-xp-label > * {
  white-space: nowrap;
}
@container warboard-sidebar (max-width:300px) {
  #turn-card[data-phase=play] .turn-budget {
    grid-template-columns: minmax(0, 1fr);
  }
  #turn-card[data-phase=play] .turn-budget .turn-actions {
    grid-column: 1;
    grid-row: 3;
    justify-content: flex-end;
  }
}
.production-portrait.production-redirect {
  padding: 0;
  border: 1px solid #cdb16b66;
  border-radius: 5px;
  background: #a98b3215;
  cursor: pointer;
}
.production-portrait.production-redirect:hover,
.production-portrait.production-redirect:focus-visible {
  border-color: #e4c981;
  background: #ac8b3538;
  outline: 2px solid #e4c98155;
  outline-offset: 2px;
}
.kingdom-exit-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: max-content;
  margin: 8px 0;
  padding: 4px 9px;
  border: 1px solid #bda76c55;
  border-radius: 6px;
  background: #d6ba5520;
  color: #f0d293;
  cursor: pointer;
}
.kingdom-exit-cue .command-portrait {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.kingdom-exit-cue > svg {
  width: 52px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.turn-weather,
.turn-banner-weather {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.weather-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  cursor: pointer;
  min-height: 28px;
  border-radius: 4px;
  pointer-events: auto;
}
.weather-chip:focus-visible {
  outline: 2px solid #efd394;
  outline-offset: 3px;
}
.weather-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.weather-extreme {
  color: #f4ca80;
}
.weather-intensity {
  font: 700 10px/1 system-ui;
  align-self: flex-start;
}
.weather-remaining {
  font-size: 12px;
}
.turn-banner,
.turn-banner.turn-summary {
  box-sizing: border-box;
  max-width: calc(100% - 16px);
}
.turn-banner-heading {
  min-width: 0;
}
.turn-banner-copy {
  min-width: 0;
}
.turn-banner-copy strong {
  overflow-wrap: anywhere;
  line-height: 1.16;
  font-size: clamp(22px, 2.7vw, 32px);
  letter-spacing: .015em;
}
.turn-banner-copy .turn-banner-weather {
  flex-wrap: wrap;
}
.turn-placement-required .turn-recap-hint {
  margin: 0;
  font-size: 14px;
  color: #ffe3a2;
}
.kingdom-building-usage .kingdom-garrison-count {
  left: 2px;
  right: auto;
  top: 2px;
  bottom: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  pointer-events: auto;
  cursor: pointer;
  font-size: 11px;
}
.kingdom-garrison-count svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.kingdom-building-idle {
  position: absolute;
  top: 3px;
  left: 3px;
  color: #eadfb994;
  font: bold 16px/1 system-ui;
  pointer-events: auto;
  cursor: pointer;
}
.kingdom-building-usage:has(.kingdom-garrison-count) .kingdom-building-idle {
  top: 20px;
}
.kingdom-ground-blight .scorched-coal {
  fill: #842c12;
  filter: none;
}
.kingdom-ground-blight .scorched-ember {
  fill: #f38b32;
  opacity: .75;
}
.kingdom-ground-blight.scorched-animated .scorched-ember {
  animation: scorched-coal-flicker var(--ember-duration) linear var(--ember-delay) infinite;
}
.kingdom-ground-blight .scorched-spark {
  filter: none;
  animation: scorched-spark 4.7s ease-out -1.2s infinite;
}
@keyframes scorched-coal-flicker {
  0%, 100% {
    opacity: .32;
  }
  19% {
    opacity: .9;
  }
  31% {
    opacity: .55;
  }
  43% {
    opacity: 1;
  }
  58% {
    opacity: .38;
  }
  74% {
    opacity: .8;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kingdom-ground-blight.scorched-animated .scorched-ember {
    animation: none;
  }
  .kingdom-ground-blight .scorched-spark {
    display: none;
  }
}
@media (max-width: 600px) {
  .turn-banner-copy strong {
    font-size: 23px;
  }
  .turn-banner-heading {
    gap: 8px;
  }
  .turn-banner.turn-summary-mobile {
    width: auto;
    max-width: calc(100vw - 20px);
  }
  .turn-banner.turn-placement-required.turn-summary-mobile {
    bottom: 8px;
    top: auto;
  }
}
.kingdom-building-usage {
  position: absolute;
  inset: 0;
  z-index: 19;
  pointer-events: none;
}
.game-sidebar > .turn-banner.turn-summary-side,
.battle-panel > .turn-banner.turn-summary-side {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  max-width: 100%;
  max-height: none;
  overflow: visible;
  margin: 0;
  z-index: 1;
}
#board-viewport > .turn-banner {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.turn-recap-ready .turn-banner-heading {
  display: flex;
}
.turn-summary-side .turn-summary-list {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.turn-recap-close {
  position: absolute;
  right: 7px;
  top: 5px;
  display: grid;
  place-items: center;
  padding: 2px 8px;
  min-height: 28px;
  font-size: 21px;
  border-color: transparent;
  z-index: 2;
}
.turn-summary-side {
  padding-top: 32px !important;
}
.turn-recap-empty .turn-summary-list {
  display: none;
}
.turn-recap-empty .turn-recap-hint {
  font-size: 24px;
  text-align: center;
  margin: 0;
  opacity: .8;
}
.turn-recap-loading {
  font-size: 24px;
  text-align: center;
}
.turn-placement-required .turn-recap-hint {
  display: none;
}
.turn-placement-required .turn-summary-list {
  display: block;
  max-height: 18vh;
}
.turn-placement-required.turn-summary-side {
  padding-top: 10px !important;
}
.turn-required-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.turn-required-items[hidden] {
  display: none;
}
.turn-required-items > .turn-recap-section {
  padding: 4px 0 0;
}
.turn-required-item {
  padding: 0;
  border: 0;
  gap: 8px;
  min-width: 0;
}
.turn-required-item .turn-recap-button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  flex: 1;
  min-width: 0;
  background: #172d25;
  line-height: 1.4;
}
.turn-required-item[data-active=true] .turn-recap-button {
  border: 2px solid #f4d88b;
  padding: 7px;
  background: #303e28;
}
.turn-choice-copy {
  flex: 1;
  min-width: 0;
}
.turn-choice-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #f1e5c5;
}
.turn-choice-copy small {
  display: block;
  margin-top: 4px;
  font: 12px/1.5 system-ui;
  color: #bccaad;
}
.turn-choice-cost {
  display: block;
  margin-top: 5px;
  color: #f4d88b;
  font: 600 13px/1.4 system-ui;
}
.turn-choice-arrow {
  font-size: 23px;
  flex: none;
  color: #f4d88b;
}
.turn-required-item[data-attention=center] .turn-recap-button {
  animation: placement-row-strong .7s ease-out both;
}
.turn-required-item[data-attention=gentle] .turn-recap-button {
  animation: placement-row-gentle 4s ease-in-out infinite;
}
.turn-required-item .command-portrait {
  width: 44px;
  height: 48px;
  object-fit: contain;
}
.turn-choice-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.turn-required-item[data-state=done] {
  opacity: .72;
}
.weather-severity {
  font: 500 12px/1.2 system-ui;
}
.square.turn-event-focus {
  z-index: 8;
}
.board:has(> .turn-event-focus) > .square:not(.turn-event-focus) > .token {
  filter: brightness(.82);
}
.placement-attention-layer {
  position: absolute;
  inset: 0;
  z-index: 38;
  pointer-events: none;
}
.placement-attention-layer[hidden] {
  display: none;
}
.placement-attention-layer > span {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid #f4d88b;
  border-radius: 9%;
  box-shadow: 0 0 5px #eaca7733;
  opacity: .75;
}
.placement-attention-layer > .placement-attention-source {
  border-width: 3px;
  box-shadow: 0 0 9px #eaca7766;
}
.placement-attention-source:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse,
      #fff0a999,
      transparent 80%);
  mix-blend-mode: screen;
  opacity: 0;
}
.placement-attention-layer[data-phase=center] .placement-attention-source {
  animation: placement-source-cue var(--placement-center-time) ease-out both;
}
.placement-attention-layer[data-phase=center] .placement-attention-source:before {
  animation: placement-source-wash var(--placement-center-time) ease-out both;
}
.placement-attention-layer[data-phase=outer] .placement-attention-exit {
  animation: placement-exit-cue var(--placement-outer-time) ease-out both;
}
.placement-attention-layer[data-phase=gentle] .placement-attention-source {
  animation: placement-gentle-source var(--placement-gentle-time) ease-in-out infinite;
}
.placement-attention-layer[data-phase=gentle] .placement-attention-exit {
  animation: placement-gentle-exit var(--placement-gentle-time) .8s ease-in-out infinite;
}
@keyframes placement-source-cue {
  0%, 100% {
    opacity: .75;
    border-color: #f4d88b;
    box-shadow: 0 0 9px #eaca7766;
  }
  20%, 50% {
    opacity: 1;
    border-color: #fff9cf;
    box-shadow: 0 0 34px #ffec9dee, inset 0 0 18px #fff0a988;
  }
}
@keyframes placement-source-wash {
  0%, 100% {
    opacity: 0;
  }
  20%, 50% {
    opacity: .64;
  }
}
@keyframes placement-exit-cue {
  0%, 100% {
    opacity: .75;
    background: transparent;
    box-shadow: 0 0 5px #eaca7733;
  }
  20%, 50% {
    opacity: 1;
    border-color: #fff0b2;
    background: #e0e9ad66;
    box-shadow: inset 0 0 16px #fff0ab99, 0 0 10px #fff0ab88;
  }
}
@keyframes placement-gentle-source {
  0%, 65%, 100% {
    box-shadow: 0 0 5px #eaca7744;
  }
  22%, 40% {
    box-shadow: 0 0 15px #eaca77aa;
  }
}
@keyframes placement-gentle-exit {
  0%, 65%, 100% {
    box-shadow: none;
    background: transparent;
  }
  22%, 40% {
    box-shadow: inset 0 0 10px #eaca776a;
    background: #cbe09740;
  }
}
@keyframes placement-row-strong {
  0%, 100% {
    background: #303e28;
    box-shadow: none;
  }
  20%, 50% {
    background: #52603b;
    box-shadow: 0 0 24px #fbe9a5aa, inset 0 0 10px #fff0a944;
  }
}
@keyframes placement-row-gentle {
  0%, 65%, 100% {
    box-shadow: 0 0 5px #eaca7744;
  }
  22%, 40% {
    box-shadow: 0 0 15px #eaca77aa;
  }
}
@media (prefers-reduced-motion: reduce) {
  .placement-attention-layer > span,
  .placement-attention-layer > span:before,
  .turn-required-item .turn-recap-button {
    animation: none !important;
  }
  .placement-attention-layer > span {
    opacity: .75;
  }
  .square.turn-event-focus:before {
    animation: none;
  }
}
.turn-summary-side .turn-banner-heading {
  min-height: 64px;
}
.turn-summary-side .turn-banner-copy strong {
  font-size: 24px;
}
.in-menu #board .kingdom-ground-blight .scorched-ember,
.in-menu #board .kingdom-ground-blight .scorched-spark {
  animation-play-state: paused;
}
.kingdom-countdown-layer {
  position: absolute;
  inset: 0;
  z-index: 24;
  pointer-events: none;
}
.kingdom-counter-cell {
  position: absolute;
  pointer-events: none;
}
.kingdom-counter-cell[data-elevation] > .kingdom-tile-countdown {
  translate: 0 var(--ground-lift);
}
.kingdom-exit-flag.kingdom-rally-remote {
  color: #eb7868;
  filter: drop-shadow(0 1px 2px #000);
}
.kingdom-exit-flag.kingdom-rally-placement-preview {
  color: #eb7868;
  opacity: .9;
  pointer-events: none;
  animation: rally-placement-blink 1.1s ease-in-out infinite;
}
@keyframes rally-placement-blink {
  0%, 100% {
    opacity: .9;
  }
  50% {
    opacity: .25;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kingdom-rally-placement-preview {
    animation: none !important;
    opacity: .9;
  }
}
.kingdom-order-route {
  position: absolute;
  left: 43%;
  top: 43%;
  width: 14%;
  height: 14%;
  border: 2px solid #ecc58b;
  border-radius: 50%;
  background: #74542eb0;
  z-index: 22;
  pointer-events: none;
}
.fogged > .kingdom-order-route {
  opacity: .45;
  border-style: dashed;
}
.kingdom-build-plan {
  position: absolute;
  inset: 8%;
  display: grid;
  place-items: center;
  border: 2px dashed #ecc58b;
  border-radius: 7px;
  color: #ffe8b3;
  background: #64492955;
  font: 700 17px/1 system-ui;
  z-index: 22;
  pointer-events: none;
}
.kingdom-build-plan.kingdom-build-plan-quiet {
  inset: 12%;
  border: 1px dashed #e8cf9966;
  background: #6449290b;
}
.standing-order-controls {
  display: grid;
  gap: 7px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #b8a16b55;
  border-radius: 7px;
  background: #29312480;
}
.standing-order-note {
  margin: 0;
  font: 13px/1.4 system-ui;
  color: #eed7ac;
}
.standing-order-controls > small {
  font: 11px/1.4 system-ui;
  color: #b9c8b1;
}
.building-order-list {
  margin: 0;
  padding-left: 20px;
  font: 12px/1.5 system-ui;
  color: #e0ddc6;
}
.standing-order-controls > .button {
  justify-self: start;
}
.square:has(> .token.animation-hidden) > :is(.kingdom-tile-status, .unit-action-dots, .hero-upgrade-cue, .unit-affliction-badge) {
  visibility: hidden;
}
.kingdom-tile-status {
  transition: opacity 420ms ease-out;
}
.square.kingdom-vitals-resting > .kingdom-tile-status {
  opacity: .28;
}
.square.kingdom-vitals-resting:is(.selected, :hover, :focus-visible) > .kingdom-tile-status {
  opacity: .7;
}
.battle-unit > .kingdom-tile-status {
  bottom: 3%;
  left: 2%;
  right: 2%;
  visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
  .kingdom-tile-status {
    transition: none;
  }
}
.turn-banner.turn-handoff {
  width: max-content;
  max-width: 90%;
  min-height: 0;
  padding: 16px 26px;
  background: #18292fee;
  border: 1px solid #9ab7bd77;
  box-shadow: 0 3px 15px #0005;
  color: #d7e9e9;
  animation: none;
}
.turn-handoff .turn-banner-heading {
  min-height: 0;
  padding: 0;
  gap: 14px;
}
.turn-handoff .turn-banner-copy strong {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: none;
}
.turn-handoff-symbol {
  font: clamp(30px, 4vw, 42px)/1 system-ui;
  color: #aeced1;
  flex: none;
}
@media (max-width: 600px) {
  .turn-banner.turn-handoff {
    padding: 14px 18px;
  }
  .turn-handoff .turn-banner-heading {
    gap: 10px;
  }
}
.building-plan-draft {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}
.building-plan-draft .button {
  font-size: 12px;
  padding: 5px 8px;
  min-height: 34px;
}
.square.legal-build:not(:has(> .ground-action-cues))::after,
.square.legal-build > .ground-action-cues::after {
  inset: 8% !important;
  width: auto !important;
  height: auto !important;
  left: 8% !important;
  top: 8% !important;
  transform: none !important;
  border: 2px solid #e6d392 !important;
  border-radius: 7px !important;
  background: #d0bd5020 !important;
  box-shadow: none !important;
}
.square.legal-build.planning-site:not(:has(> .ground-action-cues))::after,
.square.legal-build.planning-site > .ground-action-cues::after {
  border-style: dashed !important;
  border-color: #b9cee5 !important;
  background: #86a6bf16 !important;
}
.square.planning-site > .kingdom-placement-preview {
  opacity: .24;
}
.square.legal-build:not(.planning-site) > .kingdom-placement-preview {
  opacity: .55;
}
.button.kingdom-action-waiting .command-picture {
  opacity: .48;
  filter: saturate(.5);
}
.building-commands .kingdom-action-grid {
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)) !important;
  max-width: 360px;
}
.building-commands .button.kingdom-action {
  min-height: 94px;
  max-width: 120px;
}
.standing-order-controls {
  padding: 6px 8px;
  gap: 4px;
  margin: 5px 0;
  width: 100%;
}
.standing-order-controls > .button {
  font-size: 12px;
  min-height: 30px;
  padding: 4px 8px;
}
.building-order-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 3px;
}
.building-order-list > li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
}
.building-order-list > li > span:nth-child(2) {
  flex: 1;
}
.building-order-list .button {
  font: 20px/1 system-ui;
  min-height: 32px;
  min-width: 32px;
  padding: 3px;
}
.building-order-picture {
  width: 34px;
  height: 34px;
  position: relative;
  flex: none;
}
.building-order-picture > .token.portrait {
  width: 100%;
  height: 100%;
  margin: 0;
}
@media (max-width: 700px) {
  .building-commands .kingdom-action-grid {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)) !important;
  }
  .building-commands .button.kingdom-action {
    min-height: 84px;
  }
}
.command-dock .building-commands .kingdom-action-grid {
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)) !important;
}
.command-dock .building-commands .button.kingdom-action {
  min-height: 84px;
  max-height: 100px;
}
.unit-range-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 4px 0 12px;
}
.unit-range-stat {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-variant-numeric: tabular-nums;
  color: inherit;
}
.unit-range-stat svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.unit-range-modified {
  color: #efb773;
}
.unit-attack-demo {
  font-size: 12px;
}
.unit-attack-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.unit-attack-dialog .ability-demo {
  position: relative;
  inset: auto;
  min-height: 250px;
  margin-bottom: 12px;
}
.unit-attack-dialog .ability-demo-board {
  --demo-height-limit:220px !important;
}
.unit-attack-dialog .ability-demo-caption {
  min-height: 42px;
}
.starter-ground-trap,
.starter-ground-scorch,
.starter-ground-plague {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  pointer-events: none;
}
.starter-ground-trap {
  z-index: 1;
}
.starter-ground-plague {
  z-index: 2;
}
.starter-cast {
  position: absolute;
  pointer-events: none;
}
.starter-cast svg {
  width: 100%;
  height: 100%;
}
.unit-range-stat {
  background: none;
  border: 0;
  padding: 4px 2px;
  font: inherit;
  cursor: pointer;
  border-radius: 4px;
}
.unit-range-stat:hover,
.unit-range-stat:focus-visible {
  background: #e3c78918;
  outline: 1px solid #d4bd825c;
}
.unit-preview-popover {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(340px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  overflow: auto;
  padding: 10px;
  background: #1c241cf7;
  color: #eedbb6;
  border: 1px solid #a18a5c;
  border-radius: 10px;
  box-shadow: 0 8px 32px #0009;
}
.unit-preview-heading {
  display: block;
  padding-right: 28px;
  font-size: 18px;
  line-height: 1.3;
}
.unit-preview-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 26px;
  cursor: pointer;
}
.unit-preview-description {
  font: 14px/1.45 system-ui;
  margin: 10px 0 0;
  color: #d5d5bd;
}
.unit-preview-popover .ability-demo {
  position: relative;
  inset: auto;
  min-height: 0;
  margin-top: 6px;
}
.unit-preview-popover .ability-demo-board {
  --demo-height-limit:min(var(--preview-stage-height,500px),500px) !important;
  --demo-cell-limit:100vw !important;
}
.unit-preview-popover .ability-demo-caption {
  font-size: 15px;
  min-height: 42px;
}
.unit-preview-popover .ability-demo-label {
  display: none;
}
.unit-preview-popover .ability-demo-viewport {
  --demo-height-limit:min(var(--preview-stage-height,500px),500px);
  padding: 18px 2px 6px;
}
.square.approach-preview:after {
  content: "";
  position: absolute;
  inset: 2%;
  z-index: 32;
  pointer-events: none;
  background: #a8d27625;
  border: 2px solid #c6dc82aa;
  border-radius: 4%;
}
.square.approach-preview:after {
  background: #efc86635;
  border-color: #f9de99;
}
#target-actions .approach-choice {
  width: 82px;
  height: 82px;
  padding: 8px;
}
#target-actions .approach-choice svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #efcf89;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#target-actions .approach-choice circle {
  fill: #7cb8e0;
  stroke: #b3e0fb;
}
@media (max-width: 700px) {
  .unit-preview-description {
    font-size: 13px;
  }
}
#target-actions .rally-target-choice {
  display: grid;
  place-items: center;
  width: 76px;
  min-height: 68px;
  gap: 2px;
  padding: 8px;
}
#target-actions .rally-target-choice > span {
  font-size: 25px;
}
#target-actions .rally-target-choice small {
  font-size: 12px;
}
.kingdom-rally-follow:after {
  content: "\25ce";
  position: absolute;
  right: 3%;
  bottom: 2%;
  font: 700 20px/1 system-ui;
  color: #f5dea4;
}
.rally-training-cue {
  animation: rally-training-notice 800ms ease-out 2;
}
@keyframes rally-training-notice {
  0%, 100% {
    filter: drop-shadow(0 0 1px #ecd195);
  }
  40% {
    filter: drop-shadow(0 0 9px #ffdc89);
    scale: 1.12;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rally-training-cue {
    animation: none;
    filter: drop-shadow(0 0 6px #ffdc89);
  }
}
.orc-smoke-ground {
  position: absolute;
  inset: -3%;
  border-radius: 36%;
  background:
    radial-gradient(
      ellipse at 30% 45%,
      #b9baba88,
      transparent 65%),
    radial-gradient(
      ellipse at 70% 60%,
      #696e71bb,
      transparent 75%);
  pointer-events: none;
  z-index: 3;
}
.orc-smoke-ground.orc-magic-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
  opacity: .64;
  background:
    radial-gradient(
      ellipse at 27% 66%,
      #bbc3bf45,
      transparent 65%),
    radial-gradient(
      ellipse at 75% 55%,
      #3c464a66,
      transparent 70%);
}
.orc-smoke-ground.orc-magic-field > svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: .72;
}
.unit-range-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 75;
  pointer-events: none;
  overflow: visible;
}
.unit-range-overlay rect {
  fill: #a8d2761c;
  stroke: #c6dc82b3;
  stroke-width: 1.5;
}
.unit-range-overlay[data-range=sight] rect {
  fill: #8bbce41c;
  stroke: #aad7f5bf;
}
.unit-range-overlay[data-range=attack] rect {
  fill: #e4a2681c;
  stroke: #e8bf80bf;
}
.unit-range-overlay[data-range=attack] rect[data-attack-target=true] {
  fill: #e75d4555;
  stroke: #ffe0a8;
  stroke-width: 3;
}
.unit-range-stat[aria-pressed=true] {
  background: #e3c78918;
  outline: 1px solid #d4bd825c;
}
.unit-preview-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(112px, 30%, 166px);
  align-items: center;
  gap: 10px;
  position: relative;
  margin: 8px 0 0;
  padding: 12px 10px;
  border: 1px solid #9684a759;
  border-radius: 5px;
  background:
    linear-gradient(
      145deg,
      #232820,
      #171e19);
  min-width: 0;
}
.unit-preview-inline[hidden] {
  display: none;
}
#selection-panel.kingdom-compact #selection-preview {
  grid-column: 1 / -1;
  grid-row: 3;
}
.unit-preview-inline .unit-preview-heading {
  font-size: 16px;
  padding-right: 0;
  line-height: 1.15;
}
.unit-preview-inline .unit-preview-close {
  right: 4px;
  top: 3px;
  font-size: 22px;
  min-height: 28px;
  width: 26px;
  padding: 0;
}
.unit-preview-inline .ability-demo {
  position: relative;
  inset: auto;
  min-height: 0;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
}
.unit-preview-copy {
  min-width: 0;
  padding-top: 20px;
}
.unit-preview-inline .ability-demo-viewport {
  margin: 0 auto !important;
}
.unit-preview-inline .ability-demo-board {
  --demo-height-limit:300px !important;
  --demo-cell-limit:100vw !important;
}
.unit-preview-inline .ability-demo-viewport {
  --demo-height-limit:300px;
}
.unit-preview-inline .ability-demo-caption {
  font: 13px/1.3 system-ui;
  min-height: 0;
  padding: 7px 0 0;
  margin: 0;
  color: #ece6d0;
  text-align: left;
}
.unit-preview-inline .ability-demo .weather-readout {
  display: none;
}
.unit-preview-inline .ability-demo-label {
  display: none;
}
.unit-preview-inline .unit-preview-description,
.unit-preview-inline .unit-preview-facts,
.unit-preview-inline .unit-preview-unavailable {
  font: 12px/1.4 system-ui;
  margin: 4px 0;
  color: #c2c7b5;
}
.unit-preview-inline .unit-preview-unavailable {
  color: #e6c18c;
}
.command-dock:has(.unit-preview-inline:not([hidden])) {
  max-height: 74dvh;
}
.command-dock .unit-preview-inline {
  margin: 2px 0 6px;
}
.command-dock .unit-preview-inline .ability-demo-board {
  --demo-height-limit:210px !important;
}
.command-dock .unit-preview-inline .ability-demo-viewport {
  --demo-height-limit:210px;
}
.token.orc-totem {
  width: 100%;
  height: 100%;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.orc-totem-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  scale: 1.08;
  transform-origin: 50% 95.703125%;
  filter: drop-shadow(0 2px 2px #0007);
}
.orc-fear-ground,
.orc-blood-ground {
  position: absolute;
  inset: 3%;
  pointer-events: none;
  z-index: 3;
  border-radius: 20%;
  box-shadow: inset 0 0 10px #cb62ed77;
  border: 1px solid #d880e688;
  background:
    radial-gradient(
      ellipse,
      #58287122,
      #af43d04d);
}
.orc-fear-ground::after {
  content: "";
  position: absolute;
  inset: 16% 37%;
  border-radius: 45%;
  box-shadow: 0 0 9px #e8b3ff;
  background:
    linear-gradient(
      transparent,
      #d498ebbb,
      transparent);
  animation: orc-totem-mist 1700ms ease-in-out infinite alternate;
}
.orc-blood-ground {
  border-color: #df665e99;
  background:
    radial-gradient(
      ellipse,
      #a5111122,
      #b42b414d);
  box-shadow: inset 0 0 10px #e5303655;
}
@keyframes orc-totem-mist {
  to {
    opacity: .35;
    transform: translateY(-10%) scaleX(1.2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .orc-fear-ground::after {
    animation: none;
  }
}
.orc-fear-ground.orc-magic-field,
.orc-blood-ground.orc-magic-field {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
}
.orc-fear-ground.orc-magic-field::after {
  content: none;
}
.orc-fear-ground.orc-magic-field {
  left: 0;
  right: 0;
  top: -42%;
  bottom: 2%;
  opacity: .78;
}
.orc-fear-ground.orc-magic-field > svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 2px #d082df55);
}
.orc-blood-ground.orc-magic-field {
  inset: 0;
  opacity: .8;
  background:
    radial-gradient(
      ellipse at 48% 70%,
      #9d183620,
      transparent 62%);
}
.orc-blood-ground.orc-magic-field > svg {
  width: 100%;
  height: 100%;
  transform: scaleY(.65);
  transform-origin: 50% 80%;
}
.totem-facing-option::after {
  content: "";
  position: absolute;
  inset: 5%;
  border: 2px dashed #cb94e777;
  border-radius: 14%;
  pointer-events: none;
  z-index: 20;
}
.totem-facing-active::after {
  border-style: solid;
  border-color: #efc0ff;
  background: #8c39aa44;
  box-shadow: 0 0 12px #c95cef99;
}
.totem-placement-ghost {
  position: absolute;
  inset: 0;
  z-index: 21;
  pointer-events: none;
  opacity: .82;
}
.bloodlust-empowered .sprite-window {
  transform: scale(1.14);
  filter: var(--orc-blood-filter);
  animation: orc-blood-body 1600ms ease-in-out infinite alternate;
}
.bloodlust-empowered .sprite-window::before,
.bloodlust-empowered .sprite-window::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 3;
}
.bloodlust-empowered .sprite-window::before {
  inset: 6% -5% 3%;
  opacity: .65;
  background:
    radial-gradient(
      ellipse at 17% 67%,
      #d319455c,
      transparent 29%),
    radial-gradient(
      ellipse at 83% 45%,
      #ae173b59,
      transparent 31%),
    radial-gradient(
      ellipse at 48% 91%,
      #fa43534c,
      transparent 38%);
}
.bloodlust-empowered .sprite-window::after {
  inset: 9% 4% 0;
  opacity: .75;
  background:
    linear-gradient(
      165deg,
      #ffd1ba22,
      #fb5c6b,
      #94162a66);
  clip-path: polygon(12% 88%, 8% 63%, 16% 39%, 12% 20%, 17% 37%, 11% 64%, 15% 86%, 23% 73%, 17% 93%, 8% 96%, 18% 89%, 75% 95%, 87% 74%, 85% 56%, 93% 33%, 87% 56%, 90% 77%, 78% 97%);
}
.orc-blood-filter {
  position: absolute;
  pointer-events: none;
}
@keyframes orc-blood-body {
  to {
    filter: var(--orc-blood-filter) drop-shadow(0 0 3px #ef454599);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bloodlust-empowered .sprite-window {
    animation: none;
  }
}
.blood-wave-choosing .totem-facing-option {
  box-shadow: inset 0 0 0 2px #aa344ccc;
  background-color: #9b223444;
}
.blood-wave-choosing .totem-facing-active {
  box-shadow: inset 0 0 0 3px #ee8f96;
  background-color: #b42f485f;
}
.blood-wave-sacrifice-option {
  box-shadow: inset 0 0 0 3px #f0a19c !important;
}
.ability-direction-hint {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 4px;
  z-index: 22;
  pointer-events: none;
  text-align: center;
  background: #251b1de8;
  color: #ffcbc4;
  font: 600 clamp(9px, 1.2vw, 13px)/1.3 system-ui;
  padding: 5px;
  border-radius: 3px;
}
.ability-demo-fitted .ability-demo-viewport {
  position: relative;
  padding: 0;
  margin: 6px auto;
  width: min(100%, calc((var(--demo-columns) + 1)*var(--demo-height-limit,420px)/(var(--demo-rows) + 1)));
  aspect-ratio: calc(var(--demo-columns) + 1)/calc(var(--demo-rows) + 1);
}
.ability-demo-fitted .ability-demo-board {
  position: absolute;
  left: calc(50%/(var(--demo-columns) + 1));
  top: calc(50%/(var(--demo-rows) + 1));
  width: calc(100%*var(--demo-columns)/(var(--demo-columns) + 1));
  margin: 0;
}
.unit-preview-inline .ability-demo-fitted .ability-demo-viewport {
  --demo-height-limit:300px;
}
.command-dock .unit-preview-inline .ability-demo-fitted .ability-demo-viewport {
  --demo-height-limit:210px;
}
.ability-target-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 76;
  pointer-events: none;
  overflow: visible;
  color: #d9b9ef;
}
.ability-target-area {
  fill: #c799ea20;
  stroke: #d8b6ee99;
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}
.ability-target-aim {
  fill: #e9d3ff18;
  stroke: #e6ccf4c7;
  stroke-width: 1.5;
}
.ability-target-route,
.ability-target-arrow {
  fill: none;
  stroke: #e1c2efe0;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ability-target-route {
  stroke-dasharray: 5 4;
}
.ability-target-landing {
  fill: #d8b5ed2e;
  stroke: #dfbdeccc;
  stroke-width: 1.5;
}
.ability-target-silhouette {
  fill: #e6c9f34d;
  stroke: #e2c8ef80;
  stroke-width: 1;
}
.ability-target-friend {
  fill: #ef9d5224;
  stroke: #ffc087;
  stroke-width: 2.5;
}
.ability-target-overlay[data-ability=orc-smoke] .ability-target-area {
  fill: #d0d6d82b;
  stroke: #dbe0e1a3;
  rx: 12px;
}
.ability-chain-shadow,
.ability-chain-bolt {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ability-chain-shadow {
  stroke: #082635;
  stroke-width: 6;
}
.ability-chain-bolt {
  stroke: #b4f3ff;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 3px #38c9ff);
}
.ability-chain-outline {
  fill: #4dd9ff16;
  stroke: #8deaff;
  stroke-width: 2.5;
}
.ability-chain-badge {
  fill: #102b3af2;
  stroke: #b4f3ff;
  stroke-width: 2;
}
.ability-chain-number {
  fill: #ecfcff;
  font-family: system-ui, sans-serif;
  font-weight: 800;
}
.ability-legal-target {
  animation: ability-target-breathe 2.8s ease-in-out infinite;
}
.ability-legal-glow {
  fill: #ad85e4;
  fill-opacity: .085;
  stroke: none;
}
.ability-legal-recipient .ability-legal-glow {
  stroke: #e5c6ff;
  stroke-width: 2.5;
  fill-opacity: .12;
}
.ability-legal-recipient {
  animation: none;
  opacity: 1;
}
.ability-legal-rune {
  fill: #291b40;
  fill-opacity: .7;
  stroke: #d5b2ff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 2px #a985d9);
}
@keyframes ability-target-breathe {
  0%, 100% {
    opacity: .48;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ability-legal-target {
    animation: none;
    opacity: .8;
  }
}
#selection-panel.kingdom-compact:not(.choosing-hero-ability):not(.choosing-hero-stat) {
  grid-template-columns: minmax(100px, 42%) minmax(0, 1fr);
  grid-template-rows: min-content 1fr;
  padding: 18px 20px 18px 36px;
  column-gap: 16px;
}
#selection-panel.kingdom-compact:not(.choosing-hero-ability):not(.choosing-hero-stat) .selection-art {
  max-width: 290px;
  justify-self: center;
}
#selection-panel.kingdom-compact:not(.choosing-hero-ability):not(.choosing-hero-stat) .selection-copy {
  padding: 0;
  justify-self: center;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
#selection-panel.kingdom-compact .selection-identity {
  justify-content: center;
  --selection-label-size:22px;
}
#selection-panel.kingdom-compact .selection-vitals {
  justify-content: center;
  gap: 6px 10px;
  row-gap: 4px;
}
#selection-readiness {
  display: contents;
}
#selection-readiness .kingdom-readiness {
  display: contents;
}
#selection-readiness .kingdom-readiness-badge {
  font: 600 14px/1.15 system-ui;
  cursor: pointer;
  min-height: 28px;
  white-space: nowrap;
}
#selection-readiness .kingdom-readiness-badge b {
  font-size: inherit;
}
#selection-readiness .kingdom-readiness-badge svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
#selection-panel.kingdom-compact .kingdom-xp-compact {
  width: 100%;
  max-width: 240px;
  justify-self: center;
}
#selection-panel.kingdom-compact .unit-status-row {
  justify-content: center;
}
#selection-panel.kingdom-compact #piece-actions {
  align-self: start;
  justify-self: center;
  width: 100%;
  max-width: 400px;
}
#selection-panel.kingdom-compact .kingdom-action-section > h4 {
  text-align: center;
  margin: 6px 0 8px;
}
#selection-panel.kingdom-compact .kingdom-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(68px, 80px)) !important;
  justify-content: center;
  gap: 8px;
}
#selection-panel.kingdom-compact .button.kingdom-action {
  min-height: 68px;
}
.unit-preview-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.unit-preview-fact {
  white-space: nowrap;
  font-weight: 650;
  color: #e2d6b2;
}
.unit-preview-inline[data-preview-layout=wide] {
  grid-template-columns: minmax(0, 1fr);
}
.unit-preview-inline[data-preview-layout=wide] .unit-preview-copy {
  grid-row: 1;
  padding: 0 48px 0 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.unit-preview-inline[data-preview-layout=wide] .ability-demo {
  grid-row: 2;
}
.unit-preview-inline[data-preview-layout=wide] .ability-demo-caption {
  flex-basis: 100%;
  padding-top: 0;
}
@container warboard-sidebar (max-width:430px) {
  #selection-panel.kingdom-compact:not(.choosing-hero-ability):not(.choosing-hero-stat) {
    grid-template-columns: minmax(72px, 30%) minmax(0, 1fr);
    padding: 14px 14px 14px 24px;
    column-gap: 10px;
  }
  #selection-readiness .kingdom-readiness-badge {
    font-size: 12px;
    gap: 2px;
  }
  #selection-panel.kingdom-compact .selection-vitals {
    gap: 2px 8px;
  }
  #selection-panel.kingdom-compact .kingdom-action-grid {
    grid-template-columns: repeat(auto-fit, minmax(64px, 72px)) !important;
    gap: 6px;
  }
}
#selection-panel.kingdom-compact:not(.choosing-hero-ability):not(.choosing-hero-stat) .selection-art:not(.building-portrait) {
  transform: translateY(48px);
  margin-bottom: 48px !important;
}
#selection-panel.kingdom-compact #piece-actions .kingdom-action-grid.ability-row {
  grid-template-columns: repeat(var(--ability-count), minmax(0, 80px)) !important;
  gap: clamp(4px, 1cqw, 8px);
  width: 100%;
}
#selection-panel.kingdom-compact .ability-row > .kingdom-action {
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
}
#selection-panel .command-recovery {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
#selection-panel:has([data-action-kind=ability]:is(:hover, :focus-visible)) .kingdom-ability-command {
  animation: selection-ability-cue 1.1s ease-in-out infinite;
}
body:has(#selection-health:is(:hover, :focus-visible)) #board .square.selected .kingdom-health {
  animation: selection-health-cue 1.1s ease-in-out infinite;
}
@keyframes selection-ability-cue {
  0%, 100% {
    box-shadow: 0 0 0 1px #d9c28d33;
  }
  50% {
    box-shadow: 0 0 10px 2px #e8cc8b88;
  }
}
@keyframes selection-health-cue {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.65) drop-shadow(0 0 3px #ffd9b8);
  }
}
@media (prefers-reduced-motion: reduce) {
  #selection-panel:has([data-action-kind=ability]:is(:hover, :focus-visible)) .kingdom-ability-command {
    animation: none;
    outline: 1px solid #d9c28d;
  }
  body:has(#selection-health:is(:hover, :focus-visible)) #board .square.selected .kingdom-health {
    animation: none;
    filter: brightness(1.4);
  }
}
.orc-persistent-fields {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 26;
  overflow: hidden;
}
.orc-persistent-fields > canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.orc-fields-ready .orc-magic-field {
  visibility: hidden;
}
.bloodlust-empowered .sprite-window::after {
  display: none;
}
.kingdom-action-grid.kingdom-roster-grid {
  display: grid;
  align-items: start;
  width: 100%;
}
#selection-panel.kingdom-compact #piece-actions .kingdom-action-grid.kingdom-roster-grid,
.command-dock .building-commands .kingdom-action-grid.kingdom-roster-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: none;
  gap: 12px;
}
.kingdom-troop-family {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border: 1px solid #81714b66;
  background: #16171288;
  min-width: 0;
}
.troop-family-name {
  font: 600 13px Georgia, serif;
  text-align: center;
  color: #ead7a5;
}
.troop-family-training {
  display: flex;
  justify-content: center;
}
.troop-family-research {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  border-top: 1px solid #81714b55;
  padding-top: 6px;
  width: 100%;
}
.troop-family-research:empty {
  display: none;
}
.troop-family-research .button.kingdom-action {
  width: 46px !important;
  height: 46px !important;
  min-width: 0;
  min-height: 0 !important;
  max-height: none;
  aspect-ratio: 1;
  padding: 2px !important;
}
.troop-family-research .command-picture {
  width: 100%;
  height: 100%;
}
.kingdom-compact:has(.kingdom-roster-grid) .selection-art {
  grid-row: 1;
  max-width: 180px;
}
.kingdom-compact #piece-actions:has(.kingdom-roster-grid) {
  grid-column: 1 / -1;
  grid-row: 2;
}
.kingdom-roster-grid > .kingdom-action {
  grid-column: 1 / -1;
  width: 64px !important;
  min-height: 64px !important;
  max-height: 64px;
}
.clan-sigil {
  position: absolute;
  z-index: 3;
  bottom: 2%;
  left: 36%;
  width: 28%;
  height: 28%;
  padding: 2px;
  background: #22251fe8;
  border: 1px solid #d2bb7b;
  border-radius: 50%;
  color: #dfd6ae;
  pointer-events: none;
}
.clan-sigil path {
  fill: currentColor;
  stroke: #30291f;
  stroke-width: 1.2;
  fill-rule: evenodd;
}
.clan-advanced {
  color: #ef7661;
}
.clan-spirit {
  color: #bbc1cf;
}
.clan-aviary {
  color: #e2c374;
}
.command-picture {
  position: relative;
}
.rally-troop-ghost {
  position: absolute;
  inset: 0;
  opacity: .55;
  pointer-events: none;
}
.kingdom-exit-flag.kingdom-rally-placement-preview:has(.rally-troop-ghost) {
  width: 100%;
  height: 100%;
  inset: 0;
  opacity: 1;
  animation: none;
}
.kingdom-rally-placement-preview:has(.rally-troop-ghost) > svg {
  position: absolute;
  inset: 12% 0 auto auto;
  width: 35%;
  height: 60%;
  z-index: 2;
}

/* dist/client/movement-path.css */
.movement-route-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 76;
  pointer-events: none;
  overflow: visible;
  filter: drop-shadow(0 1px 2px #07101c);
}
.movement-route-overlay polyline {
  fill: none;
  stroke: #8fd0ff;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.movement-route-overlay .cursor-route {
  stroke-dasharray: 5 4;
}
.movement-route-overlay .route-arrow {
  fill: #8fd0ff;
}
.movement-route-overlay .route-step {
  fill: #101b2b;
  stroke: #8fd0ff;
  stroke-width: 1;
}
.movement-route-overlay text {
  fill: #f1f8ff;
  font: 500 12px sans-serif;
}
.movement-route-overlay .route-strike {
  stroke: #ffbd80;
  stroke-width: 3;
  stroke-linecap: round;
}
.movement-route-overlay .route-attack-step {
  stroke: #ffbd80;
}
.movement-route-overlay .fog-move-target {
  fill: #dcf6ff;
  stroke: #122330;
  stroke-width: 1;
}
.movement-route-overlay .scent-shadow-base {
  fill: #14121a;
  opacity: .7;
}
.movement-route-overlay .scent-shadow {
  fill: #24212b;
  stroke: #bdb3bb;
  stroke-width: 1.5;
}
.movement-route-overlay .scent-drop {
  fill: #b32939;
  stroke: #ffd1c4;
  stroke-width: 1.5;
}
.movement-route-overlay .scent-mark {
  opacity: .8;
}
.movement-route-overlay .scent-mark-active {
  opacity: 1;
  filter: drop-shadow(0 0 5px #ff8d8d);
}
.movement-route-overlay .scent-route polyline {
  stroke: #ee9191;
  stroke-width: 2;
}
.movement-route-overlay .scent-route .route-arrow {
  fill: #ffd1c4;
}
.movement-route-overlay .scent-route-unavailable {
  opacity: .45;
}
.scent-targets {
  margin-bottom: 8px;
}
.scent-target[aria-pressed=true] {
  border-color: #ee9191;
  background: #49272c;
}
.movement-route-controls {
  margin-top: 10px;
}
.movement-route-summary {
  margin: 0 0 7px;
  color: #c7d8e7;
  font-size: .85rem;
  line-height: 1.4;
}
.movement-route-buttons {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.movement-route-buttons .button {
  min-height: 40px;
}
@media (max-width: 600px) {
  .movement-route-buttons .button {
    min-height: 44px;
  }
}
body.mobile-controls-active:has(#piece-actions .movement-route-controls, #piece-actions .kingdom-targeting) > .command-wheel-layer .command-wheel-opener,
body.mobile-controls-active:has(#piece-actions .movement-route-controls, #piece-actions .kingdom-targeting) > .status-wheel-layer .status-wheel-opener {
  display: none !important;
}
.movement-route-overlay .route-shot {
  fill: none;
  stroke: #ffd38b;
  stroke-width: 3;
  stroke-dasharray: 6 4;
  stroke-linecap: round;
}
.movement-route-overlay .route-weapon {
  color: #ffe2a7;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  filter: drop-shadow(0 1px 2px #000);
}
.movement-route-overlay .route-weapon svg {
  width: 24px;
  height: 24px;
  overflow: visible;
}
.movement-route-overlay .route-fire-position {
  fill: none;
  stroke: #ffd38b;
  stroke-width: 2;
}
.movement-route-overlay .route-weapon-badge {
  fill: #18231fee;
  stroke: #d7bc7a;
  stroke-width: 1;
}
.movement-route-overlay .route-shot-range {
  fill: #ffe2a7;
  stroke: none;
  font: bold 14px system-ui;
}
.movement-route-overlay .route-shot-target {
  fill: #ffd38b;
  stroke: #18231f;
  stroke-width: 1;
}
.movement-route-overlay .route-shot-range-label {
  fill: #e3cfa8;
  stroke: none;
  font: 10px system-ui;
}
.movement-route-overlay .route-shot-cost {
  fill: #d3dfdf;
  stroke: none;
  font: 10px system-ui;
}

/* dist/client/ground-cue-depth.css */
.ground-action-cues {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
  mask-image: var(--ground-cue-mask,none);
  mask-size: calc(var(--terrain-cell) * var(--board-size)) calc(var(--terrain-cell) * var(--board-size));
  mask-position: calc(var(--terrain-cell) * var(--cue-col) * -1) calc(var(--terrain-cell) * var(--cue-row) * -1 - var(--ground-lift,0px));
  mask-repeat: no-repeat;
}
.square[data-elevation] > .ground-action-cues {
  translate: 0 var(--ground-lift);
}
.movement-route-overlay,
.ability-target-overlay,
.battle-trail {
  mask-image: var(--ground-cue-mask,none);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

/* dist/client/guided-learning.css */
dialog.guide-dialog {
  width: min(1010px, calc(100vw - 24px));
  padding: 20px;
}
.guide-session[hidden],
.guide-chooser[hidden],
.guide-primary[hidden],
.guide-controls button[hidden] {
  display: none;
}
.guide-progress-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 12px;
}
.guide-chapter {
  margin: 0;
  font-size: .85rem;
  flex: 1;
}
.guide-progress-line progress {
  width: 110px;
  height: 6px;
  accent-color: #6e6035;
}
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 22px;
  align-items: start;
}
.guide-field {
  min-width: 0;
  width: 100%;
  max-width: max(320px, calc(100dvh - 320px));
  justify-self: center;
}
.guide-budget {
  margin: 0 0 9px;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.5;
  min-height: 2.5em;
}
.guide-viewport {
  border: 3px ridge #997747;
  border-radius: 3px;
  overflow: clip;
}
.guide-board {
  --terrain:url(./assets/terrain/human-citadel-v2.png);
  width: 100%;
  margin: 0;
  border: 0;
  transform-origin: 0 0;
}
.guide-board > .guide-square {
  aspect-ratio: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.guide-board > .guide-square.guide-required {
  z-index: 4;
  box-shadow: inset 0 0 0 3px #fff1a7, inset 0 0 16px #ffd56c50;
}
.guide-board > .guide-square.guide-actor::after {
  content: "";
  position: absolute;
  inset: 3px;
  width: auto;
  height: auto;
  border: 2px solid #ffe6a3;
  border-radius: 3px;
  background: none;
}
.guide-board > .guide-square:focus-visible {
  outline: 3px solid #b3f0ff;
  outline-offset: -3px;
  z-index: 5;
}
.guide-coordinate {
  position: absolute;
  left: 3px;
  bottom: 2px;
  z-index: 5;
  color: #f2e5c9;
  font: 10px/1 sans-serif;
  background: #18201dcc;
  padding: 1px;
  pointer-events: none;
}
.guide-key {
  margin: 9px 0 0;
  font-size: .75rem;
  line-height: 1.4;
}
.guide-speaker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font: 1rem Georgia, serif;
}
.guide-portrait {
  width: 60px;
  height: 60px;
  flex: none;
}
.guide-portrait > .token.portrait {
  width: 60px;
  height: 60px;
}
.guide-bubble {
  padding: 16px;
  border: 1px solid #95703e;
  border-radius: 3px 16px 16px 16px;
  background: #fff0cd8a;
  position: relative;
  box-shadow: 0 3px 10px #5a3c1615;
}
.guide-bubble h3 {
  margin: 0 0 9px;
  font-size: 1.1rem;
}
.guide-bubble p {
  font-size: .94rem;
  line-height: 1.6;
  margin: 0;
}
.guide-bubble .guide-prompt {
  margin: 13px 0 0;
  border-top: 1px solid #98774355;
  padding-top: 10px;
  font-weight: 700;
  line-height: 1.4;
}
.guide-status {
  margin: 12px 0 0;
  min-height: 2.8em;
  font-size: .85rem;
  line-height: 1.4;
}
.guide-primary {
  width: 100%;
  min-height: 44px;
}
.guide-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #93723f66;
}
.guide-controls .button {
  min-height: 44px;
  font-size: .82rem;
}
.guide-chooser > p {
  font-size: .94rem;
  line-height: 1.5;
}
.guide-completion:empty {
  display: none;
}
.guide-completion {
  padding: 10px 12px;
  background: #68845328;
  border-left: 3px solid #627a42;
}
.guide-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.guide-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 15px;
  border: 1px solid #92723f;
  border-radius: 4px;
  text-align: left;
  color: #49321d;
  background: #f5e4c066;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
}
.guide-choice:first-child {
  grid-column: 1 / -1;
  background: #fff2d099;
}
.guide-choice:hover,
.guide-choice:focus-visible {
  background: #fff3d1;
  outline: 2px solid #78613a;
}
.guide-choice strong {
  font: 1.15rem Georgia, serif;
}
.guide-choice span {
  font-size: .87rem;
  line-height: 1.4;
}
.guide-choice .guide-duration {
  color: #775737;
  font-size: .78rem;
}
@media (prefers-reduced-motion: no-preference) {
  .guide-board .guide-required {
    animation: guide-cue 1.8s ease-in-out infinite;
  }
}
@keyframes guide-cue {
  50% {
    box-shadow: inset 0 0 0 3px #fff7d2, inset 0 0 24px #ffe6a377;
  }
}
@media (max-width: 720px) {
  dialog.guide-dialog {
    padding: 12px;
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
  .guide-dialog .dialog-heading {
    gap: 8px;
    margin-bottom: 10px;
  }
  .guide-dialog .dialog-heading h2 {
    font-size: 1.35rem;
  }
  .guide-dialog .dialog-heading .button {
    min-height: 44px;
    padding: 7px 10px;
    font-size: .8rem;
  }
  .guide-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .guide-field,
  .guide-conversation {
    width: 100%;
    max-width: none;
  }
  .guide-conversation {
    display: contents;
  }
  .guide-speaker {
    display: none;
  }
  .guide-bubble {
    order: -1;
    padding: 11px;
    border-radius: 3px 12px 12px 12px;
  }
  .guide-bubble h3 {
    font-size: 1rem;
    margin-bottom: 5px;
  }
  .guide-bubble p {
    font-size: .86rem;
    line-height: 1.45;
  }
  .guide-bubble .guide-prompt {
    margin-top: 8px;
    padding-top: 7px;
  }
  .guide-budget {
    min-height: 0;
    font-size: .76rem;
    margin-bottom: 6px;
  }
  .guide-status {
    margin: 0;
    min-height: 0;
  }
  .guide-status:empty {
    display: none;
  }
  .guide-controls {
    margin-top: 10px;
    padding-top: 9px;
    gap: 7px;
  }
  .guide-controls .button {
    padding: 7px 9px;
    font-size: .75rem;
  }
  .guide-key {
    font-size: .68rem;
    margin-top: 5px;
  }
  .guide-progress-line {
    margin-bottom: 8px;
    gap: 8px;
  }
  .guide-chapter {
    font-size: .75rem;
  }
  .guide-progress-line progress {
    width: 70px;
  }
  .guide-choices {
    grid-template-columns: 1fr;
  }
}

/* dist/client/battle-sandbox.css */
.sandbox-tools {
  margin-top: 16px;
  border-top: 2px solid #98754a;
  padding-top: 16px;
}
.sandbox-tools h2 {
  font-size: 1rem;
  margin: 0 0 8px;
}
.sandbox-tools p {
  font-size: .82rem;
  line-height: 1.45;
  margin: 8px 0;
}
.sandbox-tools summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 700;
}
.sandbox-tool-actions,
.sandbox-tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}
.sandbox-tool-body {
  display: grid;
  gap: 14px;
  padding-bottom: 8px;
}
.sandbox-tool-grid label {
  display: grid;
  gap: 5px;
  font-size: .8rem;
  flex: 1 1 135px;
  min-width: 0;
}
.sandbox-tool-grid select {
  max-width: 100%;
  width: 100%;
  min-height: 36px;
}
.sandbox-tool-grid .sandbox-checkbox {
  display: flex;
  flex-basis: 100%;
  gap: 8px;
  align-items: center;
}
.sandbox-palette {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.sandbox-palette button {
  font-size: .8rem;
  white-space: normal;
  min-height: 40px;
}
.sandbox-palette [aria-pressed=true] {
  outline: 2px solid var(--blue);
}
.sandbox-tool-body {
  max-height: min(65vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}
.sandbox-palette {
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 3px;
}
.sandbox-editor-status:empty {
  display: none;
}
.sandbox-paused {
  border: 1px solid #c5a56e;
  padding: 12px;
  margin-bottom: 12px;
  background: #302819;
}
.sandbox-paused[hidden] {
  display: none;
}
.sandbox-paused p {
  margin: 6px 0 10px;
  font-size: .85rem;
}
.sandbox-art-panel {
  border: 1px solid #a0bb91;
}
.sandbox-art-panel label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0;
  font-size: .85rem;
}
.sandbox-art-panel select {
  max-width: 100%;
  width: 100%;
}
.sandbox-art-panel p {
  font-size: .8rem;
  line-height: 1.45;
}
.sandbox-art-panel .subtle {
  opacity: .75;
}
.sandbox-art-panel {
  grid-column: 1/-1;
  border: 0;
  border-top: 1px solid #a0bb9166;
  padding-top: 10px;
  margin-top: 10px;
}
.sandbox-art-panel h3 {
  font-size: .9rem;
  margin: 0;
}
.sandbox-art-panel label {
  margin: 8px 0;
}
.sandbox-art-panel p {
  margin: 6px 0;
}
.sandbox-art-panel details {
  font-size: .75rem;
}
.sandbox-art-panel summary {
  cursor: pointer;
}
.sandbox-art-panel select {
  font-size: .8rem;
  min-height: 34px;
}
.sandbox-art-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.sandbox-art-link {
  font-size: .75rem;
}
.sandbox-art-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(125px, .55fr);
  gap: 10px;
}
.sandbox-art-controls label {
  min-width: 0;
}
.sandbox-art-panel iframe[hidden] {
  display: none;
}
.sandbox-sounds {
  grid-column: 1/-1;
  min-width: 0;
  border-top: 1px solid #a0bb9166;
  margin-top: 10px;
  padding-top: 10px;
}
.sandbox-sounds summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .9rem;
  padding: 5px 0;
}
.sandbox-sounds p {
  font-size: .8rem;
  line-height: 1.45;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.sandbox-sounds label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: .8rem;
  margin: 10px 0;
}
.sandbox-sounds select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 36px;
  font-size: .8rem;
}
.sandbox-sounds .sandbox-tool-actions {
  margin: 8px 0;
}
.sandbox-art-source {
  font-weight: 600;
}
.attack-frame-review {
  margin: 12px 0;
  border: 1px solid #a0bb9166;
  padding: 8px;
  min-width: 0;
}
.attack-frame-picture {
  width: 100%;
  max-width: 240px;
  background-repeat: no-repeat;
  background-color: #111820;
  margin: auto;
}
.attack-frame-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr));
  gap: 7px;
}
.attack-frame-buttons button {
  font-family: system-ui, sans-serif;
  font-size: .8rem;
  line-height: 1.35;
  padding: 8px 6px;
  min-width: 0;
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.attack-frame-buttons [aria-pressed=true] {
  outline: 2px solid #dfc27e;
}
.attack-frame-review [hidden] {
  display: none;
}
.battle-panel.art-versions #selection-panel {
  order: 1;
}
.battle-panel.art-versions #sandbox-tools {
  order: 2;
}
.battle-panel.art-versions #battle-overview {
  order: 3;
  max-height: 240px;
  overflow: auto;
}

/* dist/client/building-availability.css */
.kingdom-action-unavailable {
  cursor: pointer;
  border-style: dashed;
}
.kingdom-action-unavailable .command-picture {
  opacity: .43;
  filter: grayscale(.62);
}
.kingdom-action-unavailable .command-cost {
  opacity: .8;
}
.button.kingdom-ability-command:not(.kingdom-action-unavailable) .command-picture {
  opacity: 1;
  filter: none;
}
.button.kingdom-ability-command:not(.kingdom-action-unavailable) .command-cost {
  opacity: 1;
}
.button.kingdom-ability-command.kingdom-action-unavailable {
  border-color: #716779 !important;
  border-style: dashed !important;
  box-shadow: inset 0 0 0 1px #1a120b, 0 2px 3px #0006;
}
.button.kingdom-ability-command.kingdom-action-unavailable:after {
  opacity: .35;
}
.button.kingdom-ability-command.kingdom-action-unavailable:is(:hover, :focus-visible) {
  filter: none;
}
.button.kingdom-ability-command.kingdom-action-unavailable .skill-illustration {
  filter: none;
}
.kingdom-action-unavailable:focus-visible {
  outline: 2px solid var(--gold,#d7bc78);
  outline-offset: 2px;
}
.kingdom-command-help {
  margin: .7rem 0 0;
  padding: .65rem .75rem;
  border-left: 2px solid #b99d60;
  background: #181b19b8;
  color: #dfdccf;
  font-size: .82rem;
  line-height: 1.45;
}

/* dist/client/unit-status.css */
.unit-status-group {
  min-width: 0;
  width: 100%;
}
.unit-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.unit-status-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  min-width: 0;
  min-height: 0;
  padding: 6px;
  border: 1px solid #b297595e;
  border-radius: 5px;
  background: #27241bd9;
  color: #e5d49c;
  cursor: pointer;
  touch-action: manipulation;
}
.unit-status-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px #000b);
}
.unit-status-race {
  color: #e9dda8;
  border-color: #c5ae6b88;
  background: #5a472237;
}
.unit-status-aura {
  color: #b2dce1;
  border-color: #7db8c277;
  background: #26495455;
}
.unit-status-condition {
  color: #e5bd99;
  border-color: #b88d5f66;
}
.unit-status-icon:hover,
.unit-status-icon[aria-expanded=true] {
  background: #68593266;
  border-color: #e8cc87;
}
.unit-status-icon:focus-visible {
  outline: 2px solid #f0d596;
  outline-offset: 2px;
}
.unit-status-icon small {
  position: absolute;
  right: 1px;
  bottom: 0;
  min-width: 10px;
  padding: 0 2px;
  border-radius: 2px;
  background: #161810bc;
  color: #f8edc3;
  text-shadow: 0 1px 2px #000;
  font: 700 10px/1.25 system-ui;
}
.unit-status-explanation {
  margin: 6px 0 0;
  padding: 7px 9px;
  background: #171a17d9;
  border: 1px solid #a88c4d66;
  border-radius: 4px;
  font-size: .76rem;
  line-height: 1.45;
  color: #ded7bd;
  overflow-wrap: anywhere;
}
.unit-status-explanation[hidden] {
  display: none;
}
@media (pointer: coarse) {
  .unit-status-icon {
    width: 44px;
    height: 44px;
    padding: 10px;
  }
  .unit-status-row {
    gap: 3px;
  }
  .unit-status-icon small {
    right: 3px;
    bottom: 2px;
    font-size: 11px;
  }
}
.unit-status-icon[data-active=false] {
  color: #adad96;
  background: #24251c;
  border-color: #8d896143;
}
.unit-status-icon[data-active=true] {
  color: #c8e6b3;
  border-color: #94b575b3;
  background: #334a2966;
}
.unit-status-icon[data-active=true]:after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d1efa8;
  box-shadow: 0 0 3px #a9d87466;
}
.unit-status-icon.unit-status-named {
  display: flex;
  gap: 7px;
  width: auto;
  max-width: 100%;
  padding: 6px 16px 6px 7px;
  text-align: left;
}
.unit-status-named svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.unit-status-name {
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.unit-affliction-badge {
  position: absolute;
  left: 3%;
  top: 3%;
  z-index: 20;
  display: flex;
  gap: 1px;
  align-items: center;
  max-width: 96%;
  padding: 1px 2px;
  border: 1px solid #b791665e;
  border-radius: 3px;
  background: #191813e8;
  color: #f0cda0;
  pointer-events: none;
}
.unit-affliction-badge i {
  display: block;
  width: clamp(8px, 1.1vw, 13px);
  height: clamp(8px, 1.1vw, 13px);
}
.unit-affliction-badge svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.unit-affliction-badge i[data-pending=true] {
  opacity: .6;
}
.unit-affliction-badge small {
  font: 700 8px/1 system-ui;
}
.square[data-elevation] > .unit-affliction-badge {
  translate: 0 var(--ground-lift);
}

/* dist/client/battle-polish.css */
@media (pointer: fine) {
  .square[data-action-cursor=move] {
    cursor: url(./assets/cursors/move.svg) 9 5, pointer;
  }
  .square[data-action-cursor=bow] {
    cursor: url(./assets/cursors/bow.svg) 36 20, crosshair;
  }
  .square[data-action-cursor=attack] {
    cursor: url(./assets/cursors/attack.svg) 34 4, crosshair;
  }
  .square[data-action-cursor=build] {
    cursor: url(./assets/cursors/build.svg) 11 7, pointer;
  }
  .square[data-action-cursor=work] {
    cursor: url(./assets/cursors/work.svg) 5 3, pointer;
  }
  .square[data-action-cursor=spell] {
    cursor: url(./assets/cursors/spell.svg) 27 4, crosshair;
  }
  .square[data-action-cursor=mount] {
    cursor: url(./assets/cursors/mount.svg) 8 31, pointer;
  }
  .square[data-action-cursor=drop] {
    cursor: url(./assets/cursors/drop.svg) 20 32, pointer;
  }
  .square[data-action-cursor=spear] {
    cursor: url(./assets/cursors/spear.svg) 33 5, crosshair;
  }
}
.wyvern-transport-cue {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #c99d48;
  border-radius: 8px;
  background: #332711;
}
.wyvern-transport-cue p {
  margin: 0;
}
.wyvern-rider-status {
  margin: 6px 0;
  color: #f5daa0;
  font-size: 13px;
}
.square .unit-letter {
  display: none;
}
.kingdom-compact .selection-art:before,
.kingdom-compact .selection-art:after {
  width: 74%;
}
.kingdom-compact .selection-art:after {
  background-size:
    100% 100%,
    100% 100%,
    var(--portrait-terrain-size,cover);
  background-position:
    center,
    center,
    var(--portrait-terrain-position,center);
  background-repeat: no-repeat;
}
.kingdom-action .command-cost,
.kingdom-action .command-navigation-mark {
  z-index: 5;
  background: #18140cbf;
  font-size: 11px;
  padding: 1px 3px;
  text-shadow: 0 1px 2px #000;
}
.kingdom-action .command-cost {
  display: flex;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
}
.kingdom-action .command-cost svg {
  width: 8px;
  height: 12px;
  fill: #ffd46c;
  flex: none;
}
.kingdom-action .command-cost span {
  font-size: inherit;
}
.kingdom-action .command-picture {
  inset: 0;
}
.kingdom-action .command-picture:has(.command-symbol) {
  inset: 0 0 16px;
}
.board > :is(button, div).square:is(.legal-move, .legal-jump, .legal-choice) {
  z-index: 6;
}
.resource-counter small {
  display: none;
}
.resource-sources.kingdom-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.resource-sources.kingdom-sources .resource-counter {
  flex: 0 0 auto;
  gap: 5px;
  min-height: 30px;
  padding: 3px 7px;
  cursor: pointer;
}
.action-display .action-total {
  font-size: .45em;
  color: #c3bda9;
  white-space: nowrap;
}
.command-dock[hidden] {
  display: none !important;
}
.command-dock {
  position: fixed;
  inset: auto 0 0;
  z-index: 95;
  display: block;
  border-top: 1px solid #aa8c56;
  background: linear-gradient(#242419f5, #151910fa);
  box-shadow: 0 -5px 22px #0008;
  padding: 5px max(10px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  max-height: 46dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.command-dock-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #e6cf95;
}
.command-dock-heading strong {
  font: 600 .85rem/1.2 Georgia, serif;
}
.command-dock-heading .button {
  min-height: 44px;
  min-width: 44px;
  padding: 0 8px;
}
.command-dock #piece-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 0;
}
.command-dock .kingdom-action-grid {
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)) !important;
  gap: 5px;
}
.command-dock .button.kingdom-action {
  min-height: 58px;
  max-height: 76px;
}
.command-dock .kingdom-action-section h4 {
  display: none;
}
.command-dock .kingdom-action-section {
  margin-top: 3px;
}
.command-dock .kingdom-readiness {
  margin: 0;
}
.command-dock .kingdom-residents {
  gap: 3px;
}
.command-dock .kingdom-residents h4 {
  margin: 0;
  font-size: .7rem;
}
.command-dock .kingdom-residents .button {
  min-height: 36px;
  padding: 3px 8px;
}
.has-command-dock .game-layout {
  padding-bottom: calc(var(--command-dock-height) + 16px) !important;
}
.in-menu .command-dock {
  display: none !important;
}
@media (max-height: 500px) {
  .command-dock {
    max-height: 44dvh;
  }
  .command-dock .kingdom-action-grid {
    grid-template-columns: repeat(auto-fill, 52px) !important;
  }
  .command-dock .button.kingdom-action {
    min-height: 52px;
  }
}
.turn-review-shortcuts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.turn-review-shortcuts[hidden] {
  display: none;
}
.turn-review-shortcuts .button {
  flex: 1;
  min-height: 44px;
  white-space: nowrap;
}
#turn-card[data-phase=play] {
  padding: 16px 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 16px;
  align-items: start;
}
#turn-card[data-phase=play] #turn-number {
  font-size: .72rem;
  letter-spacing: .13em;
  grid-row: 1;
}
#turn-card[data-phase=play] #turn-title {
  font-size: 1.3rem;
  line-height: 1.2;
  grid-row: 2;
}
#turn-card[data-phase=play] #turn-weather {
  grid-column: 1/-1;
  grid-row: 3;
  margin: 5px 0 9px;
  font-size: .78rem;
}
#turn-card[data-phase=play] .action-display {
  grid-column: 2;
  grid-row: 1/3;
  align-items: center;
  gap: 9px;
  margin: 0 30px 0 0;
}
#turn-card[data-phase=play] #actions-left {
  font-size: 2.65rem;
  line-height: 1;
  white-space: nowrap;
}
#turn-card[data-phase=play] .action-display strong {
  font-size: .83rem;
  display: block;
}
#turn-card[data-phase=play] .action-pips {
  display: flex;
  flex-wrap: wrap;
  max-width: 122px;
  gap: 4px;
  margin-top: 6px;
}
#turn-card[data-phase=play] .resource-sources {
  grid-column: 1/-1;
  grid-row: 4;
  gap: 8px;
  padding: 0 0 12px;
  border-bottom: 1px solid #b89a5d33;
  margin: 0;
}
#turn-card[data-phase=play] .resource-counter {
  min-height: 38px;
  gap: 7px;
  padding: 5px 10px;
  background: #10160e60;
  border: 1px solid #b89a5d38;
  border-radius: 5px;
}
#turn-card[data-phase=play] .resource-counter .resource-icon {
  width: 22px;
  height: 22px;
}
#turn-card[data-phase=play] .resource-counter strong {
  font-size: 1.05rem;
}
#turn-card[data-phase=play] .turn-actions {
  grid-row: 5;
  gap: 12px;
  margin: 7px 0 0;
}
#turn-card[data-phase=play] #end-turn,
#turn-card[data-phase=play] #undo {
  min-height: 42px;
  padding: 9px 16px;
  font-size: .88rem;
}
#turn-card[data-phase=play] #end-turn {
  background: linear-gradient(#494930bb, #2b3023bb);
  border-color: #bba3729c;
  color: #f4e5bf;
}
#turn-card[data-phase=play] #unit-readiness-summary {
  grid-row: 6;
  font-size: .76rem;
  margin: 5px 0;
  line-height: 1.5;
}
#turn-card[data-phase=play] .kingdom-overview {
  grid-row: 7;
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid #b89a5d26;
  font-size: .86rem;
}
.turn-review-shortcuts > .sidebar-disclosure {
  width: 100%;
}
.turn-review-shortcuts summary {
  font-size: .95rem;
  padding: 3px 0;
  cursor: pointer;
}
.turn-replay-options {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.turn-replay-options .button {
  font-size: .86rem;
}
@container warboard-sidebar (max-width:360px) {
  #turn-card[data-phase=play] {
    padding: 14px 12px;
    gap: 5px 9px;
  }
  #turn-card[data-phase=play] #turn-title {
    font-size: 1.1rem;
  }
  #turn-card[data-phase=play] #actions-left {
    font-size: 2.2rem;
  }
  #turn-card[data-phase=play] .action-display {
    gap: 6px;
    margin-right: 40px;
  }
  #turn-card[data-phase=play] .action-display strong {
    font-size: .7rem;
  }
  #turn-card[data-phase=play] .action-pips {
    max-width: 80px;
  }
}
.turn-replay-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.turn-replay-options .button {
  flex: 1 1 120px;
  min-width: 0;
}
@media (hover: hover) and (pointer: fine) {
  .square[data-action-cursor=enter] {
    cursor: url(./assets/cursors/enter.svg) 4 20, pointer;
  }
}
.kingdom-action .command-cost,
.kingdom-action .command-work-steps {
  font: 700 12px/1.3 system-ui;
  padding: 1px 3px;
  opacity: .55;
  transition: opacity .15s;
}
.kingdom-action .command-cost span {
  font-size: inherit;
}
.kingdom-action:hover .command-cost,
.kingdom-action:hover .command-work-steps,
.kingdom-action:focus-visible .command-cost,
.kingdom-action:focus-visible .command-work-steps {
  opacity: 1;
}
@media (hover: none) {
  .kingdom-action .command-cost,
  .kingdom-action .command-work-steps {
    opacity: 1;
  }
}
.square > .token.under-construction[data-race=undead] {
  opacity: 1;
  filter: drop-shadow(0 1px 1px #080e10) drop-shadow(0 0 2px #cbe0d8);
}
.square.build-site-self > .kingdom-placement-preview {
  inset: auto 0 4% auto;
  width: 49%;
  height: 49%;
  opacity: .85;
  z-index: 17;
  background: #19201bd9;
  border: 1px solid #efdfa5;
  border-radius: 4px;
}
.square.planning-site:not(:hover):not(:focus-visible):not(.build-preview-focus):not(.build-site-self):not(.has-build-plan) > .kingdom-placement-preview {
  visibility: hidden;
}
.square.planning-site:not(:hover):not(:focus-visible):not(.has-build-plan) > .build-duration {
  visibility: hidden;
}
.square.planning-site.legal-build:after {
  width: 12%;
  height: 12%;
  opacity: .4;
}
.square.planning-site.has-build-plan:after,
.square.planning-site.build-site-self:after {
  display: none;
}

/* dist/client/command-wheel.css */
.command-wheel-layer {
  position: fixed;
  inset: 0;
  z-index: 125;
  pointer-events: none;
}
.in-menu > .command-wheel-layer {
  display: none !important;
}
.command-wheel-opener,
.command-wheel-popover {
  position: fixed;
  pointer-events: auto;
}
.command-wheel-opener[hidden],
.command-wheel-popover[hidden] {
  display: none !important;
}
.command-wheel-opener {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  min-width: 0;
  min-height: 0;
  padding: 13.75px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #e8d9ad;
  touch-action: manipulation;
}
.command-wheel-opener:before {
  content: "";
  position: absolute;
  inset: 13.75px;
  border: 1px solid #c9b47da6;
  border-radius: 50%;
  background: #1b221ad9;
  box-shadow: 0 1px 4px #0008;
}
.command-wheel-opener .command-symbol {
  position: relative;
  width: 27.5px;
  height: 27.5px;
  padding: 5px;
  stroke-width: 2;
}
.command-wheel-opener:hover:before,
.command-wheel-opener:focus-visible:before {
  background: #555032;
  border-color: #f9dda0;
}
.command-wheel-popover {
  width: 0;
  height: 0;
  pointer-events: none;
}
.command-wheel-popover .quick-command-bubble {
  position: absolute;
  pointer-events: auto;
  animation: quick-bubbles-in 180ms ease-out;
}
.quick-command-bubble:first-child {
  left: -21.5px;
  top: -76.5px;
}
.quick-command-bubble:nth-child(2) {
  left: 33.5px;
  top: -21.5px;
}
.quick-command-bubble {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 43px;
  height: 43px;
  padding: 7px;
  border-radius: 50%;
  border: 1px solid #bda56cba;
  background: #20281bef;
  color: #ead7a6;
  box-shadow: 0 2px 5px #0005;
  touch-action: manipulation;
}
.quick-command-bubble .command-symbol {
  width: 100%;
  height: 100%;
  padding: 1px;
}
.quick-command-bubble:hover,
.quick-command-bubble:focus-visible {
  background: #4d5030;
  border-color: #fae2a2;
}
.quick-command-bubble[aria-disabled=true] {
  color: #8b8e80;
  opacity: .65;
  cursor: pointer;
}
.quick-command-bubble[aria-disabled=true] .command-symbol {
  stroke: currentColor;
}
@keyframes quick-bubbles-in {
  from {
    opacity: 0;
    transform: translate(-6px, 5px) scale(.72);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .command-wheel-popover .quick-command-bubble {
    animation: none;
  }
}
.quick-command-explanation {
  position: fixed;
  pointer-events: auto;
  display: flex;
  align-items: start;
  gap: 8px;
  width: min(270px, calc(100vw - 16px));
  padding: 10px 12px;
  border: 1px solid #bd9e63;
  border-radius: 4px;
  color: #f3e8cb;
  background: #24291bf5;
  box-shadow: 0 3px 12px #0008;
  font: 14px/1.4 system-ui;
}
.quick-command-explanation[hidden] {
  display: none !important;
}
.quick-command-explanation p {
  flex: 1;
  margin: 0;
}
.quick-command-explanation button {
  flex: none;
  min-width: 32px;
  min-height: 32px;
  margin: -4px -6px -4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 22px/1 system-ui;
  cursor: pointer;
}
.quick-command-bubble:nth-child(3) {
  left: -21.5px;
  top: 33.5px;
}
.quick-command-bubble .command-portrait {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* dist/client/hero-learning.css */
#selection-panel.kingdom-compact .selection-art:not(.building-portrait) {
  transform: translateY(32px);
  margin-bottom: 32px !important;
}
.hero-learning {
  width: 100%;
  min-width: 0;
  padding: 10px 0 2px;
}
.hero-learning h4 {
  margin: 0;
  color: #f1d69c;
  font: 700 1.2075rem/1.2 Georgia, serif;
  text-shadow: 0 1px 5px #000;
}
.hero-ability-choices {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}
button.hero-ability-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 76px;
  border: 1px solid #7f806256;
  border-left: 3px solid #8c9874;
  border-radius: 2px;
  padding: 9px;
  text-align: left;
  white-space: normal;
  background:
    linear-gradient(
      115deg,
      #34413bb5,
      #101815cc);
  box-shadow: inset 0 1px #dfead010, 0 2px 5px #0004;
  color: #e9e4d1;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
button.hero-ability-choice:is(:hover, :focus-visible) {
  border-color: #a9c8b1;
  background:
    linear-gradient(
      115deg,
      #3f5750e0,
      #15221ef0);
  outline-offset: 3px;
}
button.hero-ability-choice:disabled {
  opacity: .6;
  cursor: wait;
}
.hero-ability-art {
  position: relative;
  flex: none;
  width: 44px;
  height: 48px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 2px 5px #000);
}
.hero-ability-art svg {
  width: 100%;
  height: 100%;
}
.hero-ability-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.hero-ability-copy strong {
  font: 700 .92rem/1.1 Georgia, serif;
  color: #f3e6bf;
}
.hero-ability-description {
  font: 400 .75rem/1.35 system-ui;
  color: #d0d3c8;
}
.hero-ability-facts {
  font: 600 .65rem/1.4 system-ui;
  color: #a9c6ba;
}
#selection-art.showing-ability-demo {
  padding: 0 !important;
  align-self: start;
  min-height: 225px;
}
#selection-art.showing-ability-demo > .token,
#selection-art.showing-ability-demo:before,
#selection-art.showing-ability-demo:after {
  visibility: hidden;
}
.ability-demo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(
      ellipse at 50% 52%,
      #35453b99,
      transparent 75%);
  pointer-events: none;
}
.ability-demo-label {
  color: #b1c7b9;
  font: 600 9px/1.4 system-ui;
  text-transform: uppercase;
  letter-spacing: .15em;
  text-align: center;
  margin: 10px 0;
}
.ability-demo-viewport {
  width: 100%;
  overflow: visible;
  padding-top: 15px;
}
.ability-demo-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  isolation: isolate;
  --terrain-cell:40px;
  --south-color:#65c58a;
  --north-color:#c9574f;
}
.ability-demo-board .ability-demo-tile {
  position: relative;
  aspect-ratio: 1;
  background: #25352d66 !important;
  border: 1px solid #88ab8b18 !important;
  padding: 0;
  min-width: 0;
  min-height: 0;
  box-shadow: none;
  overflow: visible;
}
.ability-demo-board .ability-demo-tile.in-range {
  background: #759a8833 !important;
  border-color: #a2c4b12b !important;
}
.ability-demo-board .ability-demo-tile.demo-target {
  box-shadow: inset 0 0 0 2px #cbdcc0;
  background: #a9c4a344 !important;
}
.ability-demo-board .token {
  width: 98%;
  height: 98%;
  pointer-events: none;
}
.ability-demo-board .demo-health {
  position: absolute;
  bottom: -1px;
  right: 0;
  z-index: 6;
  font: 700 8px/1 system-ui;
  color: #e4efda;
  background: #15231edd;
  padding: 2px;
}
.ability-demo-caption {
  min-height: 28px;
  margin: 12px 5px 5px;
  text-align: center;
  font: 600 10px/1.4 system-ui;
  color: #d5e1cd;
}
@container (max-width:450px) {
  .choosing-hero-ability #piece-actions {
    grid-column: 1/-1 !important;
    grid-row: 3 !important;
  }
  .hero-ability-choice {
    min-height: 70px;
  }
  .choosing-hero-ability .selection-art {
    max-width: 240px;
  }
}
@media (max-width: 600px) {
  .choosing-hero-ability #piece-actions {
    grid-column: 1/-1 !important;
    grid-row: 3 !important;
  }
  .hero-ability-description {
    font-size: .73rem;
  }
  #selection-art.showing-ability-demo {
    min-height: 190px;
  }
  .ability-demo-label {
    font-size: 8px;
  }
  .ability-demo-caption {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button.hero-ability-choice {
    transition: none;
  }
}
#selection-panel.choosing-hero-ability .selection-copy {
  grid-column: 1/-1;
  grid-row: 1;
}
#selection-panel.choosing-hero-ability .selection-art {
  grid-column: 1/-1;
  grid-row: 2;
  width: 200px;
  height: 224px;
  max-width: none;
  justify-self: center;
  padding: 0;
  transform: none !important;
  margin-bottom: 0 !important;
}
#selection-panel.choosing-hero-ability #piece-actions {
  grid-column: 1/-1 !important;
  grid-row: 3 !important;
}
#selection-panel.choosing-hero-ability #selection-art.showing-ability-demo {
  width: 100%;
  height: 226px;
  min-height: 226px;
}
.ability-demo-board {
  max-width: 390px;
  margin: auto;
}
#selection-panel.choosing-hero-ability {
  grid-template-rows: auto 320px auto;
}
#selection-panel.choosing-hero-ability .selection-art {
  align-self: center;
}
#selection-panel.choosing-hero-ability #selection-art.showing-ability-demo {
  height: 320px;
  min-height: 320px;
}
.ability-demo > *,
.ability-demo-viewport {
  flex: none;
}
.ability-demo .kingdom-xp-gain {
  display: none;
}
.ability-demo-board:has(> .battle-effects) .demo-health {
  visibility: hidden;
}
#selection-art.showing-ability-demo > .token {
  display: none;
}
#selection-panel.kingdom-compact {
  column-gap: 22px;
}
@container warboard-sidebar (min-width:560px) {
  #selection-panel.choosing-hero-ability {
    grid-template-columns: minmax(240px, 42%) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  #selection-panel.choosing-hero-ability .selection-copy {
    grid-column: 2;
    grid-row: 1;
  }
  #selection-panel.choosing-hero-ability #piece-actions {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }
  #selection-panel.choosing-hero-ability .selection-art {
    grid-column: 1;
    grid-row: 1/span 2;
    width: 100%;
    height: auto;
    max-width: 320px;
    align-self: center;
  }
  #selection-panel.choosing-hero-ability #selection-art.showing-ability-demo {
    height: 320px;
    min-height: 320px;
  }
  .hero-ability-art {
    width: 54px;
    height: 54px;
  }
}
.ability-demo-board {
  grid-template-columns: repeat(var(--demo-columns), minmax(0, 1fr));
  width: min(100%, calc(var(--demo-columns)*min(var(--demo-cell-limit,76px), var(--demo-height-limit,160px)/var(--demo-rows))));
  max-width: 100%;
}
.ability-demo-viewport {
  padding: 28px 12px 8px;
}
.ability-demo-board .ability-demo-tile.demo-path {
  background: #75bcd329 !important;
  border-color: #b9e7f04d !important;
}
.ability-demo-board .ability-demo-tile.demo-target {
  box-shadow: inset 0 0 0 2px #cbdcc0;
  background: #a9c4a344 !important;
}
.ability-demo-board .ability-demo-tile.demo-path:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #c5e7eda6;
  z-index: 1;
  pointer-events: none;
}
.ability-demo-label {
  font-size: 11.5px;
  margin: 6px 0;
}
.ability-demo-caption {
  font-size: 13.8px;
  line-height: 1.5;
  min-height: 36px;
  margin: 8px 12px;
  color: #e0e7d5;
}
.ability-demo-board .demo-health {
  font-size: 10px;
}
.hero-ability-art {
  width: 52px;
  height: 56px;
}
.hero-ability-copy strong {
  font-size: 1rem;
}
.hero-ability-description {
  font-size: .8rem;
  line-height: 1.45;
}
.hero-ability-facts {
  font-size: .7rem;
}
.hero-ability-upgrade {
  position: absolute;
  right: -3px;
  top: -2px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid #eed18b;
  border-radius: 3px;
  background: #49391c;
  color: #fff0b6;
  font: 700 16px/1 system-ui;
  box-shadow: 0 0 5px #e5ba4a55;
}
.hero-learning h4 {
  animation: hero-choice-heading 2.8s ease-in-out infinite;
}
.choosing-hero-ability .selection-art:not(.showing-ability-demo) {
  animation: hero-choice-glow 2.8s ease-in-out infinite;
}
@keyframes hero-choice-glow {
  0%, 100% {
    filter: brightness(1.04) drop-shadow(0 0 3px #efd17b55);
  }
  50% {
    filter: brightness(1.22) drop-shadow(0 0 8px #ffd46ba6);
  }
}
@keyframes hero-choice-heading {
  0%, 100% {
    color: #f1d69c;
    text-shadow: 0 1px 5px #000;
  }
  50% {
    color: #fff0bd;
    text-shadow: 0 1px 5px #000, 0 0 9px #e5ba4a99;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-learning h4 {
    animation: none;
    color: #fff0bd;
  }
  .choosing-hero-ability .selection-art:not(.showing-ability-demo) {
    animation: none;
    filter: drop-shadow(0 0 5px #efd17b88);
  }
}
.hero-stat-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
button.hero-ability-choice.hero-stat-choice {
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 9px;
  text-align: center;
}
.hero-stat-choice strong {
  font: 700 1.05rem/1.2 system-ui;
  color: #f3e6bf;
}
.hero-stat-art {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 28px;
  color: #cbd9c9;
}
.hero-stat-art svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-stat-choice[data-upgrade=health] .hero-stat-art {
  color: #e2a69a;
}
.hero-stat-choice[data-upgrade=health] svg {
  fill: currentColor;
  stroke: none;
}
#selection-panel.choosing-hero-stat {
  grid-template-columns: minmax(85px, 26%) minmax(0, 1fr);
  grid-template-rows: auto auto;
}
#selection-panel.choosing-hero-stat .selection-copy {
  grid-column: 1/-1;
  grid-row: 1;
}
#selection-panel.choosing-hero-stat .selection-art {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  height: 160px;
  max-width: 125px;
}
#selection-panel.choosing-hero-stat #piece-actions {
  grid-column: 2 !important;
  grid-row: 2 !important;
}
.hero-upgrade-cue {
  position: absolute;
  inset: 4%;
  z-index: 28;
  pointer-events: none;
  border: 1px solid #edcf86;
  border-radius: 12%;
  background:
    radial-gradient(
      ellipse,
      #efc86124,
      transparent 75%);
  box-shadow: inset 0 0 10px #f0cc7766, 0 0 7px #edcf8644;
  animation: hero-upgrade-reminder 2.8s ease-in-out infinite;
}
@keyframes hero-upgrade-reminder {
  0%, 100% {
    opacity: .2;
  }
  50% {
    opacity: .9;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-upgrade-cue {
    animation: none;
    opacity: .65;
  }
}
.ability-demo-board.mountain-demo {
  container-type: inline-size;
  --terrain-cell:calc(100cqw / var(--demo-columns));
  --terrain:url(./assets/terrain/human-citadel-v2.png);
  --stone-rim:#a6b4a188;
}
.ability-demo-board.mountain-demo .high-ground-layer {
  z-index: 1;
}
.ability-demo-board.mountain-demo .token {
  z-index: 2;
}
.ability-demo-board.mountain-demo .high-ground-surface {
  background-size: calc(var(--terrain-cell)*13) calc(var(--terrain-cell)*13) !important;
  background-position: calc(var(--terrain-cell)*-4) calc(var(--terrain-cell)*-4) !important;
}

/* dist/client/race-sidebar.css */
.game-sidebar[data-race] {
  position: relative;
  isolation: isolate;
  background-color: #191b17;
  background-image: linear-gradient(#10151238, #10151258), var(--race-surround);
  background-size: auto, cover;
  background-position: center;
  border-radius: 3px;
}
.game-sidebar[data-race=humans] {
  --race-material:url(./assets/menu/sidebar-humans.svg);
  --race-surround:url(./assets/menu/sidebar-surround-humans.svg);
}
.game-sidebar[data-race=orcs] {
  --race-material:url(./assets/menu/sidebar-orcs.svg);
  --race-surround:url(./assets/menu/sidebar-surround-orcs.svg);
}
.game-sidebar[data-race=elves] {
  --race-material:url(./assets/menu/sidebar-elves.svg);
  --race-surround:url(./assets/menu/sidebar-surround-elves.svg);
}
.game-sidebar[data-race=undead] {
  --race-material:url(./assets/menu/sidebar-undead.svg);
  --race-surround:url(./assets/menu/sidebar-surround-undead.svg);
}
.game-sidebar[data-race] .turn-controls {
  background: transparent;
}
.game-sidebar[data-race] :is(.sidebar-card, .turn-card) {
  background-color: #191b17 !important;
  background-image:
    linear-gradient(
      110deg,
      #171a15b5,
      #151712b5),
    var(--race-material) !important;
  background-size: auto, 340px !important;
  backdrop-filter: none;
}
.board-expanded:not(.mobile-controls-active) .game-layout:not(.expanded-stacked) .game-sidebar {
  height: 100%;
  max-height: 100%;
  align-self: stretch;
  justify-content: safe center;
  padding: 62px 16px 16px;
}
.board-expanded:not(.mobile-controls-active) .game-layout:not(.expanded-stacked) .game-sidebar > * {
  flex-shrink: 0;
}
.board-expanded:not(.mobile-controls-active) .game-layout:not(.expanded-stacked) .game-sidebar .turn-controls {
  background-color: #191b17;
  background-image: linear-gradient(#10151238, #10151258), var(--race-surround);
  background-size: auto, cover;
  background-position: center;
}

/* dist/client/landscape-board.css */
.board[data-world-landscape=true] .square {
  background: rgba(8, 20, 18, .075);
  box-shadow: inset -1px -1px 0 #cbdcd524;
}
.board[data-world-landscape=true] .square.light {
  background: rgba(198, 212, 203, .025);
}
.board[data-world-landscape=true].has-cloud-fog .square.fogged {
  background: transparent !important;
  box-shadow: none !important;
}
.board[data-world-landscape=true] .square.fog-departing {
  background: rgba(8, 20, 18, calc(.075 * (1 - var(--fog-memory-progress,0))));
  box-shadow: inset -1px -1px 0 rgba(203, 220, 213, calc(.1412 * (1 - var(--fog-memory-progress,0))));
}
.board[data-world-landscape=true] .square.light.fog-departing {
  background: rgba(198, 212, 203, calc(.025 * (1 - var(--fog-memory-progress,0))));
}
.board[data-world-landscape=true].has-cloud-fog .square.fogged.fog-arriving {
  background: rgba(8, 20, 18, calc(.075 * var(--fog-memory-progress,0))) !important;
  box-shadow: inset -1px -1px 0 rgba(203, 220, 213, calc(.1412 * var(--fog-memory-progress,0))) !important;
}
.board[data-world-landscape=true].has-cloud-fog .square.light.fogged.fog-arriving {
  background: rgba(198, 212, 203, calc(.025 * var(--fog-memory-progress,0))) !important;
}
.board.has-organic-fog > .square.fogged.fog-arriving {
  z-index: auto;
}
.board.has-organic-fog > .square.fog-arriving > :is(.token, .landscape-object-layer, .ent-obstacle, .construction-site) {
  z-index: 3;
}
.board.has-organic-fog[data-world-landscape=true] > .square.fog-unit-entering > :is(.token, .kingdom-tile-status, .kingdom-protection, .kingdom-building-usage, .unit-action-dots) {
  opacity: calc(var(--fog-figure-opacity,1) * var(--fog-memory-progress,0));
}
.board.has-organic-fog[data-world-landscape=true] > .square.fog-unit-departing > :is(.token, .kingdom-tile-status, .kingdom-protection, .kingdom-building-usage, .unit-action-dots) {
  opacity: calc(var(--fog-figure-opacity,1) * (1 - var(--fog-memory-progress,0)));
}
.square:is(.fog-unit-entering, .fog-unit-departing) > .token:is(.rogue-cloaked, .rogue-spotted) {
  --fog-figure-opacity:.48;
}
.square:is(.fog-arriving, .fog-unit-entering) > .landscape-memory-layer {
  opacity: calc(1 - var(--fog-memory-progress,0));
}
.square.fog-unit-departing > .landscape-memory-layer {
  opacity: var(--fog-memory-progress,0);
}
.board.has-organic-fog > .square:has(> .landscape-memory-layer) {
  z-index: auto;
}
.board.has-organic-fog > .square > .landscape-memory-layer {
  z-index: 24;
}
.square:is(.fog-unit-entering, .fog-unit-departing) > .kingdom-protection {
  --fog-figure-opacity:.65;
}
.board[data-world-landscape=true] .square.fogged:focus-visible {
  outline: 1px dashed #d7d1ae;
  outline-offset: -3px;
}
.board[data-world-landscape=true] .square[data-elevation] .token .sprite-window {
  filter: brightness(var(--landscape-object-brightness,1)) saturate(var(--landscape-object-saturation,1));
}
.board[data-world-landscape=true] .token .sprite-window {
  filter: brightness(var(--landscape-object-brightness,1)) saturate(var(--landscape-object-saturation,1));
}
.board[data-world-landscape=true] .square.selected .token .sprite-window {
  filter: brightness(var(--landscape-object-brightness,1)) saturate(var(--landscape-object-saturation,1));
}
.board[data-water-gpu] > .square.water-grid-softened:not(.fogged) {
  background: transparent;
  box-shadow: none;
}
.board[data-water-gpu] > .square.water-grid-softened:not(.fogged) > .territory-ground {
  border-color: transparent;
}

/* dist/client/landscape-objects.css */
.landscape-object-layer,
.landscape-memory-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.landscape-object-layer {
  z-index: 0;
  overflow: visible;
}
.landscape-object {
  position: absolute;
  background-repeat: no-repeat;
  pointer-events: none;
  transform-origin: 50% 96%;
  filter: brightness(var(--landscape-object-brightness,1)) saturate(var(--landscape-object-saturation,1)) drop-shadow(1px 3px 1px #08140666);
}
.landscape-object.landscape-tree:not(.landscape-static) {
  animation: landscape-tree-sway var(--landscape-sway-duration,10s) ease-in-out var(--landscape-sway-delay,0s) infinite alternate;
}
@keyframes landscape-tree-sway {
  from {
    rotate: calc(var(--landscape-wind,0) * var(--landscape-wind-x,1) * .15deg);
  }
  to {
    rotate: calc(var(--landscape-wind,0) * var(--landscape-wind-x,1) * .75deg);
  }
}
.scenery-paused .landscape-tree,
.board[data-landscape-still=true] .landscape-tree {
  animation-play-state: paused !important;
}
.square.has-landscape-tree:hover .landscape-tree {
  opacity: .5;
}
.board[data-sandbox-landscape=forest-noon] .square.has-landscape-tree:hover .landscape-tree {
  opacity: 1;
}
.tree-depth-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 26;
  pointer-events: none;
}
.tree-depth-layer[hidden] {
  display: none;
}
.token.landscape-neutral-token {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.token.landscape-neutral-token .sprite-window {
  overflow: visible;
}
.token.landscape-neutral-token .motion-sprite,
.token.landscape-neutral-token .unit-sprite,
.token.landscape-neutral-token .death-sprite {
  display: none !important;
}
.landscape-debris {
  position: absolute;
  left: 15%;
  bottom: 13%;
  width: 70%;
  height: 31%;
  opacity: .78;
  z-index: 0;
  filter: brightness(var(--landscape-object-brightness,1));
  pointer-events: none;
}
.landscape-debris svg {
  display: block;
  width: 100%;
  height: 100%;
}
.citadel-sewer-grate {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  filter: brightness(var(--landscape-object-brightness,1)) saturate(var(--landscape-object-saturation,1));
  opacity: calc(1 - var(--landscape-snow-cover,0) * .32);
}
.citadel-sewer-visitor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.citadel-sewer-visitor[hidden] {
  display: none;
}
.citadel-sewer-visitor svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.landscape-stump {
  position: absolute;
  width: 32%;
  height: 18%;
  left: 34%;
  bottom: 16%;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse,
      #b49766 20%,
      #70583b 24% 45%,
      #bca173 48% 63%,
      #3c3220 66%);
  border: 1px solid #30291e;
  pointer-events: none;
}
.landscape-cactus-remains {
  position: absolute;
  left: 25%;
  bottom: 18%;
  width: 50%;
  height: 20%;
  filter: brightness(var(--landscape-object-brightness,1));
  pointer-events: none;
}
.landscape-cactus-remains i {
  position: absolute;
  width: 45%;
  height: 38%;
  border: 1px solid #425231;
  border-radius: 35%;
  background: linear-gradient(#89976a, #465939);
  rotate: -18deg;
}
.landscape-cactus-remains i:nth-child(2) {
  left: 55%;
  top: 48%;
  width: 27%;
  rotate: 32deg;
}
.landscape-cactus-remains i:nth-child(3) {
  left: 25%;
  top: 63%;
  width: 21%;
  rotate: -42deg;
}
.landscape-memory-layer {
  z-index: 2;
}
.landscape-memory,
.landscape-memory-ink {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.landscape-memory-frame {
  position: absolute;
  background-repeat: no-repeat;
}
.landscape-memory-ink {
  opacity: .27;
  filter: grayscale(1) sepia(.2) contrast(.7) drop-shadow(1px 0 0 #d8caa580) drop-shadow(-1px 0 0 #d8caa550);
}
.landscape-memory-age {
  position: absolute;
  right: 2%;
  bottom: 2%;
  padding: 0 2px;
  border: 1px solid #d9c59b55;
  border-radius: 2px;
  background: #151910bd;
  color: #d6c7a5;
  font: 600 clamp(7px, .9vw, 11px)/1.2 system-ui;
  opacity: .78;
}
.landscape-memory-layer * {
  animation: none !important;
  transition: none !important;
}
.square[data-elevation] > .landscape-object-layer,
.square[data-elevation] > .landscape-memory-layer {
  translate: 0 var(--ground-lift);
}
@media (prefers-reduced-motion: reduce) {
  .landscape-object.landscape-tree {
    animation: none !important;
  }
}
.landscape-felling {
  position: absolute;
  transform: translate(-50%, -50%);
  transform-origin: 50% 95%;
  pointer-events: none;
}
.landscape-known-terrain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .65;
  filter: saturate(.42) brightness(.78);
}
.landscape-known-terrain .landscape-object {
  filter: drop-shadow(1px 3px 1px #08140655);
  animation: none !important;
}
.board[data-sandbox-landscape=forest-noon] .scenery-light {
  display: none;
}
.landscape-known-building {
  position: absolute;
  background-repeat: no-repeat;
  pointer-events: none;
}
.square[data-elevation] > .landscape-known-terrain {
  translate: 0 var(--ground-lift);
}
.fog-departing > .landscape-object-layer {
  opacity: calc(1 - var(--fog-memory-progress,0));
}
.fog-departing > .landscape-known-terrain {
  opacity: calc(.65 * var(--fog-memory-progress,0));
}
.fog-arriving > .landscape-object-layer {
  opacity: var(--fog-memory-progress,0);
}
.fog-arriving > .landscape-known-terrain {
  opacity: calc(.65 * (1 - var(--fog-memory-progress,0)));
}
.board.has-organic-fog .square:is(.fog-arriving, .fog-departing) > .landscape-known-terrain {
  z-index: 1;
}
.tree-fog-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 24;
  pointer-events: none;
}
.tree-fog-layer[hidden] {
  display: none;
}
.tree-fog-figures {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  pointer-events: none;
}
.tree-fog-figures[hidden] {
  display: none;
}
.board.has-organic-fog > .square:not(.fogged) > :is(.kingdom-tile-status, .unit-action-dots, .kingdom-protection) {
  z-index: 27;
}
.forest-gpu-ground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.forest-gpu-tree {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.board[data-forest-lighting-renderer=gpu] {
  background-image: none !important;
}

/* dist/client/corpse-art.css */
.remnants-layer.corpse-remnants-layer {
  z-index: 0;
  opacity: 1;
  overflow: visible;
}
.square:has(> .token) > .remnants-layer.corpse-remnants-layer {
  opacity: var(--corpse-occupied-opacity);
}
.corpse-pose,
.corpse-camera {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.corpse-camera {
  inset: calc(1% + 1px);
}
.corpse-pose {
  opacity: var(--corpse-opacity,.8);
  translate: var(--corpse-offset,0%) 0;
  filter: var(--corpse-rest-filter);
  animation: none !important;
  transition: none !important;
}
.corpse-frame {
  position: absolute;
  background-repeat: no-repeat;
  animation: none !important;
  transition: none !important;
}
.corpse-stage-1 {
  filter: saturate(.55) brightness(var(--landscape-object-brightness,1));
}
.corpse-stage-2 {
  filter: saturate(.35) sepia(.12) brightness(var(--landscape-object-brightness,1));
}
.corpse-stage-3 {
  filter: saturate(.15) sepia(.2) brightness(var(--landscape-object-brightness,1));
}
.corpse-remnants-layer:has(> .water-remains) {
  z-index: 1;
}
.corpse-pose.water-remains {
  filter: var(--corpse-wet-filter);
  mask-image: var(--corpse-wet-mask);
}

/* dist/client/unit-selection.css */
.square:has(> .token:not(.kingdom-building)).selected:not(.legal-move, .legal-shoot, .legal-capture, .legal-jump, .legal-choice, .legal-build)::after {
  display: none;
}
.square.selected:has(> .token),
.square:has(> .token):focus-visible,
.square:has(> .token).tile-inspected {
  outline: 0;
}
.square:has(> .token):focus-visible > .high-ground-hit {
  outline: 0;
}
.square > .token:not(.kingdom-building),
.battle-unit > .token:not(.kingdom-building) {
  border-width: 1px;
  border-style: solid;
  border-color: transparent;
  border-radius: 16%;
  box-shadow: none;
  transition: border-color .12s, box-shadow .12s;
}
.square:not(.selected, .unit-hover, :focus-visible) > .token:not(.kingdom-building),
.battle-unit > .token:not(.kingdom-building) {
  background: none;
}
.square:has(> .token:not(.kingdom-building)):hover {
  filter: none;
}
.square.unit-hover:not(.selected):not(:focus-visible) > .token:not(.kingdom-building) {
  border-color: color-mix(in srgb, var(--team) 45%, transparent);
}
.square.selected > .token:not(.kingdom-building),
.square:focus-visible > .token:not(.kingdom-building) {
  border-color: color-mix(in srgb, var(--team) 55%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--team) 55%, #fff);
}
.square.command-source.selected > .token:not(.kingdom-building) {
  border-style: dashed;
  border-color: #98d7ff;
}
.square.hero-danger > .token {
  outline: 0;
}
.square.hero-danger:is(.selected, :focus-visible, .unit-hover) > .token {
  border-color: #ff5b62;
}
.square.selected:has(> .kingdom-building)::after,
.square:focus-visible:has(> .kingdom-building)::after {
  content: "";
  position: absolute;
  inset: 1px;
  border: 2px solid #f3eedc;
  border-radius: 8%;
  background: none;
  pointer-events: none;
  z-index: 4;
}
.square > .token.rogue-spotted::after {
  display: none;
}
.square.unit-spent > .token:not(.kingdom-building) {
  opacity: 1;
}
.legend-available,
.legend-spent {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid var(--ready-color,#aec991);
  border-radius: 2px;
}
.legend-spent {
  border-color: #93978e;
}

/* dist/client/status-wheel.css */
.status-wheel-layer {
  position: fixed;
  inset: 0;
  z-index: 126;
  pointer-events: none;
}
.in-menu > .status-wheel-layer {
  display: none !important;
}
.status-wheel-opener,
.status-wheel-fan,
.status-wheel-detail {
  position: fixed;
}
.status-wheel-opener[hidden],
.status-wheel-fan[hidden],
.status-wheel-detail[hidden] {
  display: none !important;
}
.status-wheel-opener {
  display: grid;
  place-items: center;
  pointer-events: auto;
  width: 55px;
  height: 55px;
  min-height: 0;
  min-width: 0;
  padding: 18px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #e8d9ad;
  touch-action: manipulation;
}
.status-wheel-opener:before {
  content: "";
  position: absolute;
  inset: 13.75px;
  border: 1px solid #c9b47da6;
  border-radius: 50%;
  background: #1b221aeb;
  box-shadow: 0 1px 4px #0008;
}
.status-wheel-opener svg {
  position: relative;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.status-wheel-opener[data-harmful=true] {
  color: #e0ac80;
}
.status-wheel-opener[data-harmful=true]:before {
  border-color: #ce9969;
}
.status-wheel-opener[data-temporary=true]:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  right: 14px;
  top: 13px;
  background: #ddb882;
}
.status-wheel-opener small {
  position: absolute;
  right: 11px;
  bottom: 10px;
  padding: 0 2px;
  border-radius: 2px;
  background: #192016ed;
  color: #dccb9e;
  font: 600 10px/1.2 system-ui;
}
.status-wheel-opener:hover:before,
.status-wheel-opener[aria-expanded=true]:before {
  background: #555032;
  border-color: #f9dda0;
}
.status-wheel-opener:focus-visible {
  outline: 2px solid #e5c78a;
  outline-offset: -10px;
}
.status-wheel-fan {
  width: 0;
  height: 0;
  pointer-events: none;
}
.status-wheel-fan > .status-wheel-bubble {
  position: absolute;
  pointer-events: auto;
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: 50%;
  background: #252b20f5;
  box-shadow: 0 2px 6px #0008;
  cursor: pointer;
}
.status-wheel-bubble[data-harmful=true] {
  color: #edb78b;
  border-color: #c49470;
}
.status-wheel-bubble small {
  right: 2px;
  bottom: 1px;
  font-size: 10px;
}
.status-wheel-detail {
  pointer-events: auto;
  padding: 10px 12px;
  border: 1px solid #a88c4d99;
  border-radius: 6px;
  background: #1b2119f7;
  box-shadow: 0 3px 10px #0009;
  color: #e0d8bc;
  font: .78rem/1.5 system-ui;
  overflow: auto;
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: no-preference) {
  .status-wheel-bubble {
    animation: status-fan-in 150ms ease-out;
  }
  @keyframes status-fan-in {
    from {
      opacity: 0;
      transform: scale(.8);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}

/* dist/client/battle-preparation.css */
.battle-preparation {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 17, 23, .82);
  color: #f6eddc;
}
.battle-preparation[hidden] {
  display: none;
}
.battle-preparation-card {
  width: min(100%, 340px);
  padding: 28px 24px;
  text-align: center;
  background: #1b242b;
  border: 1px solid #ab8e5b;
  border-radius: 12px;
  box-shadow: 0 16px 60px #0008;
}
.battle-preparation-card strong {
  display: block;
  font-size: 1.35rem;
}
.battle-preparation-card p {
  margin: 12px 0 0;
  color: #d0c7b8;
  line-height: 1.5;
}

/* dist/client/battle-overview.css */
.turn-heading {
  min-width: 0;
}
#turn-card[data-phase=play] {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 6px 12px;
  padding: 10px 12px 12px;
}
#turn-card[data-phase=play] > .help-button {
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  font-size: 12px;
  transform: translateY(-50%);
}
#turn-card[data-phase=play] .turn-heading {
  grid-column: 1;
  grid-row: 1;
}
#turn-card[data-phase=play] #turn-number {
  font-size: 12px;
}
#turn-card[data-phase=play] #turn-title {
  font-size: 27px;
  margin: 1px 0 5px;
  line-height: 1.15;
}
#turn-card[data-phase=play] #turn-weather {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 16px;
  margin: 0;
}
#turn-card[data-phase=play] .weather-chip {
  gap: 5px;
  font-size: 16px;
  min-height: 26px;
}
#turn-card[data-phase=play] .weather-icon,
#turn-card[data-phase=play] .weather-time svg {
  width: 23px;
  height: 23px;
}
#turn-card[data-phase=play] .weather-remaining {
  font-size: 12px;
}
#turn-card[data-phase=play] .turn-budget {
  display: contents;
}
#turn-card[data-phase=play] .turn-energy {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
#turn-card[data-phase=play] .turn-budget .action-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
}
#turn-card[data-phase=play] .army-action-symbol {
  width: 34px;
  height: 44px;
  flex: none;
}
#turn-card[data-phase=play] .turn-budget #actions-left {
  font-size: 46px;
  line-height: 1.05;
  white-space: nowrap;
}
#turn-card[data-phase=play] .action-total {
  font-size: 20px;
}
#turn-card[data-phase=play] .action-display > div {
  display: none;
}
#turn-card[data-phase=play] .turn-budget .resource-sources {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  min-height: 0;
  width: 100%;
}
#turn-card[data-phase=play] .turn-budget .resource-counter {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  gap: 4px;
  min-height: 26px;
  flex: none;
}
#turn-card[data-phase=play] .turn-budget .resource-counter .resource-icon {
  width: 19px;
  height: 19px;
}
#turn-card[data-phase=play] .turn-budget .resource-counter strong {
  font-size: 16px;
}
#turn-card[data-phase=play] .turn-budget .turn-actions {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  align-self: center;
  justify-self: end;
  width: 112px;
  min-width: 112px;
  padding: 0;
  margin: 0;
}
#turn-card[data-phase=play] .turn-budget #end-turn {
  grid-column: 1/-1;
  grid-row: 1;
  font-size: 15px;
  min-height: 43px;
  padding: 8px 10px;
  width: 100%;
  min-width: 112px;
}
#turn-card[data-phase=play] .turn-budget #undo,
#turn-card[data-phase=play] .turn-budget #turn-replay {
  grid-column: auto;
  grid-row: 2;
  min-width: 44px;
  width: 100%;
  min-height: 38px;
  height: 38px;
  padding: 7px;
  border: 1px solid #82936c80;
  background: #333b2b;
  color: #ecdfb6;
  border-radius: 4px;
  box-shadow: none;
}
#turn-card[data-phase=play] .turn-actions svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#turn-card[data-phase=play] .turn-budget #undo:disabled,
#turn-card[data-phase=play] #turn-replay:disabled {
  opacity: .4;
  background: transparent;
}
#turn-card[data-phase=play] .unit-readiness-summary {
  grid-column: 1/-1;
  margin: 0;
  text-align: center;
}
.weather-extreme .weather-icon {
  animation: extreme-weather-pulse 2.4s ease-in-out infinite;
}
@keyframes extreme-weather-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .35;
  }
}
.battle-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  padding: 15px 16px;
  min-width: 0;
}
.battle-overview[hidden] {
  display: none;
}
.overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 35px;
  margin-bottom: 10px;
}
.overview-heading h3 {
  font: 700 23px/1.2 Georgia, serif;
  color: #eee0b7;
  margin: 0;
}
.overview-heading h3 small {
  font: 14px system-ui;
  color: #bdc2ae;
}
.overview-next {
  font: 13px system-ui;
  color: #c4dbb4;
  background: none;
  border: 0;
  padding: 6px 0;
  white-space: nowrap;
  min-height: 36px;
}
.overview-next:disabled {
  color: #a7ad9b;
  opacity: .65;
}
.overview-units {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 7px;
  align-content: start;
}
.overview-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 4px;
  color: #c9ddba;
}
.overview-unit:hover,
.overview-order:hover {
  background: #747e4329;
}
.overview-unit[aria-pressed=true],
.overview-order[aria-pressed=true] {
  border-color: #d5bd79;
  background: #535c343b;
}
.overview-portrait {
  position: relative;
  display: block;
  width: 100%;
  max-width: 74px;
  aspect-ratio: 1;
  background: #3b432d;
  border-radius: 4px;
}
.overview-portrait > .command-portrait {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: .75;
  filter: saturate(.65);
  transition: filter 150ms, opacity 150ms;
}
.overview-unit.is-spent .overview-portrait > .command-portrait {
  opacity: .45;
  filter: saturate(.45);
}
.overview-unit.is-working .overview-portrait > .command-portrait {
  opacity: .75;
}
.overview-effects {
  position: absolute;
  right: -3px;
  top: -4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
  max-width: 48px;
}
.overview-effect {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #273429;
  border: 1px solid #93b89c;
  color: #d2e9c7;
  box-shadow: 0 1px 2px #0008;
}
.overview-effect.harmful {
  background: #3b2a23;
  border-color: #b99462;
  color: #f0ce91;
}
.overview-effect svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.overview-health {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  height: 3px;
  background: #171c15;
  border-radius: 2px;
  overflow: hidden;
}
.overview-health > span {
  display: block;
  height: 100%;
  background: #e1a699;
}
.overview-allowances {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  min-height: 20px;
}
.overview-allowances svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.overview-allowances .used {
  opacity: .35;
}
.overview-production {
  border-left: 1px solid #a5905b4d;
  padding-left: 16px;
  min-width: 0;
}
.overview-order {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 7px 3px;
  margin-bottom: 5px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  text-align: left;
  color: #eddfba;
  min-width: 0;
}
.overview-order-art {
  display: grid;
  place-items: center;
  min-width: 0;
}
.overview-order-art > .command-portrait,
.overview-order-art > .production-book {
  width: 42px;
  height: 46px;
  object-fit: contain;
}
.overview-order-copy {
  min-width: 0;
}
.overview-order-copy strong {
  display: block;
  font: 500 14px/1.3 system-ui;
  overflow-wrap: anywhere;
}
.overview-order-copy > small {
  display: block;
  font: 12px/1.35 system-ui;
  color: #bcc1ad;
  margin-top: 2px;
}
.overview-progress {
  display: block;
  margin-top: 5px;
  height: 4px;
  border-radius: 2px;
  background: #464c34;
  overflow: hidden;
}
.overview-progress > span {
  display: block;
  height: 100%;
  background: #cbb672;
}
.overview-wait {
  display: flex;
  align-items: center;
  gap: 4px;
  font: 14px system-ui;
  color: #dbc589;
  max-width: 66px;
  overflow-wrap: anywhere;
}
.overview-wait svg,
.overview-queue svg {
  width: 16px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  flex: none;
}
.overview-queue {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font: 12px system-ui;
  color: #bac1ab;
  margin-top: 6px;
}
.overview-queue > .command-portrait,
.overview-queue > .production-book {
  width: 23px;
  height: 23px;
  object-fit: contain;
}
.overview-empty {
  font: 14px/1.4 system-ui;
  color: #b6bdab;
  margin: 8px 0;
}
.overview-locate > .high-ground-hit,
.overview-locate:not(:has(> .high-ground-hit)) {
  animation: overview-locate 1.6s ease-out;
}
@keyframes overview-locate {
  0%, 45% {
    outline: 3px solid #ffe3a2;
    outline-offset: -3px;
  }
  100% {
    outline: 3px solid transparent;
    outline-offset: -3px;
  }
}
.kingdom-compact .kingdom-action-section > h4 {
  display: block;
  font-size: 13px;
  text-transform: none;
  letter-spacing: .03em;
}
.kingdom-xp-compact .kingdom-meter.experience {
  box-sizing: border-box;
  height: 8px;
  border: 0;
  margin-top: 4px;
}
.turn-review-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 14px;
  font: 14px system-ui;
}
.turn-review-choice select {
  font: inherit;
  color: inherit;
  background: #293325;
  border: 1px solid #8b967a;
  border-radius: 4px;
  padding: 7px;
  max-width: 100%;
}
.battle-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}
.board-expanded:not(.mobile-controls-active) .game-layout:not(.expanded-stacked) .game-sidebar {
  box-sizing: border-box;
  height: 100dvh;
  justify-content: flex-start;
  padding: 64px 16px 12px;
}
.board-expanded:not(.mobile-controls-active) .game-layout:not(.expanded-stacked) .battle-panel {
  margin-block: auto;
}
@container warboard-sidebar (max-width:430px) {
  #turn-card[data-phase=play] {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  #turn-card[data-phase=play] .turn-budget .turn-actions {
    grid-column: 2;
    grid-row: 1;
  }
  #turn-card[data-phase=play] .turn-energy {
    grid-column: 1/-1;
    grid-row: 2;
    gap: 3px;
  }
  #turn-card[data-phase=play] #turn-weather {
    gap: 4px 10px;
  }
  .battle-overview {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .overview-production {
    border-left: 0;
    border-top: 1px solid #a5905b4d;
    padding: 12px 0 0;
  }
}
@container warboard-sidebar (max-width:310px) {
  #turn-card[data-phase=play] #turn-title {
    font-size: 19px;
  }
  #turn-card[data-phase=play] .weather-chip {
    font-size: 14px;
  }
  #turn-card[data-phase=play] .weather-icon,
  #turn-card[data-phase=play] .weather-time svg {
    width: 20px;
    height: 20px;
  }
  #turn-card[data-phase=play] .turn-budget .turn-actions {
    min-width: 100px;
  }
  #turn-card[data-phase=play] .turn-budget #end-turn {
    min-width: 100px;
    font-size: 14px;
  }
  .battle-overview {
    padding: 12px;
  }
  .overview-units {
    gap: 8px 5px;
  }
}
@media (pointer: coarse) {
  #turn-card[data-phase=play] .turn-budget #undo,
  #turn-card[data-phase=play] .turn-budget #turn-replay {
    min-height: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .weather-extreme .weather-icon,
  .overview-locate > .high-ground-hit,
  .overview-locate:not(:has(> .high-ground-hit)) {
    animation: none;
  }
}
#turn-card[data-phase=play] .turn-budget #undo {
  grid-column: 1;
}
#turn-card[data-phase=play] .turn-budget #turn-replay {
  grid-column: 2;
}
@container warboard-sidebar (min-width:640px) {
  .overview-units {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@container warboard-sidebar (max-width:430px) {
  .overview-units {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.overview-unit:is(:hover, :focus-visible, [aria-pressed=true]) .overview-portrait > .command-portrait {
  opacity: 1;
  filter: none;
}

/* dist/client/chat.css */
.chat-panel {
  position: fixed;
  z-index: 1600;
  right: 18px;
  bottom: 18px;
  width: min(370px, calc(100vw - 24px));
  max-height: min(650px, 80dvh);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  color: #f0e0c1;
  border: 2px ridge #96815a;
  border-radius: 4px;
  background:
    linear-gradient(
      145deg,
      #30261bf5,
      #17120efc);
  box-shadow: 0 12px 50px #000b;
  font:
    1rem/1.5 Georgia,
    "Times New Roman",
    serif;
}
.chat-panel[hidden],
.chat-panel [hidden],
.battle-chat-feed[hidden] {
  display: none !important;
}
.chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.chat-heading h2 {
  margin: 0;
  font: normal 1.2rem Georgia, serif;
  color: #f9e5ad;
  overflow-wrap: anywhere;
}
.chat-heading .button {
  padding: 5px 10px;
  font-size: .88rem;
}
.chat-back {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  color: #d2ad68;
  cursor: pointer;
  font: inherit;
}
.chat-messages {
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: 42dvh;
  scrollbar-color: #756043 #20190f;
  padding-right: 5px;
}
.chat-message {
  padding: 7px 10px;
  margin: 6px 20px 6px 0;
  background: #181713;
  border: 1px solid #66573e;
  border-radius: 2px 8px 8px 8px;
  overflow-wrap: anywhere;
}
.chat-message.own {
  margin: 6px 0 6px 20px;
  background: #283326;
  border-color: #66734b;
  border-radius: 8px 2px 8px 8px;
}
.chat-message strong {
  font-size: .82rem;
  color: #dec185;
}
.chat-message p {
  margin: 2px 0;
  white-space: pre-wrap;
}
.chat-compose {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
}
.chat-compose textarea {
  flex: 1;
  width: 0;
  min-width: 0;
  resize: none;
  max-height: 90px;
  field-sizing: content;
  border: 1px solid #8c7551;
  border-radius: 3px;
  padding: 7px 9px;
  background: #110f0bd9;
  color: #f4e7c9;
  font:
    1rem/1.45 Georgia,
    "Times New Roman",
    serif;
}
.chat-compose textarea::placeholder {
  color: #b6a78c;
}
.chat-compose .chat-icon {
  flex-shrink: 0;
  padding: 4px;
  width: 32px;
  min-height: 34px;
  font: 1.2rem Georgia, serif;
  background: transparent;
  border: 1px solid transparent;
  color: #e4c890;
  box-shadow: none;
}
.chat-compose .chat-icon:hover {
  background: #d9b5661c;
  border-color: #88704c;
}
.chat-status,
.chat-note {
  font-size: .8rem;
  margin: 0;
  color: #cabb9f;
}
.chat-status:empty {
  display: none;
}
.chat-conversations {
  display: grid;
  gap: 8px;
  overflow: auto;
}
.chat-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chat-options .button {
  padding: 5px 9px;
  font-size: .86rem;
}
.chat-opener {
  width: 100%;
  margin-top: 7px;
}
.chat-panel :focus-visible {
  outline: 2px solid #f1d28a;
  outline-offset: 2px;
}
.battle-chat-compose {
  position: absolute;
  z-index: 900;
  left: 16px;
  right: auto;
  bottom: 16px;
  width: min(540px, calc(100% - 32px));
  max-height: 70%;
  padding: 6px;
  background: #18150ee8;
  border: 1px solid #96815a9c;
  box-shadow: 0 3px 14px #0006;
  gap: 6px;
}
.battle-chat-feed {
  position: absolute;
  z-index: 899;
  left: 24px;
  bottom: 22px;
  width: min(520px, calc(100% - 48px));
  max-height: 38%;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  color: #fff1d5;
  font:
    1rem/1.4 Georgia,
    "Times New Roman",
    serif;
  text-shadow:
    0 1px 3px #000,
    1px 0 3px #000,
    -1px 0 3px #000;
}
.battle-chat-feed.composing {
  bottom: 76px;
}
.battle-chat-line {
  background:
    linear-gradient(
      90deg,
      #121009b8,
      transparent);
  padding: 3px 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  transition: opacity 1s ease;
}
.battle-chat-line strong {
  color: #e8c986;
}
.battle-chat-line.fading {
  opacity: 0;
}
.in-menu .battle-chat-feed,
.in-menu .battle-chat-compose {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .battle-chat-line {
    transition: none;
  }
}
@media (max-width: 600px) {
  .chat-panel {
    right: 12px;
    bottom: 12px;
    padding: 12px;
    max-height: 85dvh;
  }
  .chat-messages {
    max-height: 40dvh;
  }
  .chat-compose textarea {
    font-size: 16px;
  }
  .chat-opener {
    min-height: 40px;
  }
  .sidebar-navigation:has(.chat-opener:not([hidden])) {
    display: flex;
    gap: 6px;
  }
  .sidebar-navigation .chat-opener {
    margin: 0;
    width: auto;
  }
  .battle-chat-compose {
    left: 8px;
    right: auto;
    bottom: 8px;
    width: calc(100% - 16px);
    padding: 4px;
  }
  .battle-chat-feed {
    left: 12px;
    bottom: 16px;
    width: calc(100% - 24px);
  }
  .battle-chat-feed.composing {
    bottom: 66px;
  }
  .chat-compose .chat-icon {
    width: 30px;
  }
}

/* dist/client/cheats.css */
.cheat-dialog {
  width: min(620px, calc(100vw - 24px));
  font-family:
    Georgia,
    "Times New Roman",
    serif;
}
.cheat-note {
  font-size: .9rem;
  line-height: 1.5;
}
.cheat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 20px 0 12px;
}
.cheat-form label {
  grid-column: 1/-1;
  color: #e4c78d;
}
.cheat-form input,
.cheat-summon select {
  min-width: 0;
  width: 100%;
  padding: 10px;
  border: 1px solid #927b52;
  border-radius: 3px;
  color: #f6e8c7;
  background: #17130e;
  font: 1rem Georgia, serif;
}
.cheat-form .button {
  padding: 9px 15px;
}
.cheat-list {
  margin: 16px 0 0;
  display: grid;
  gap: 0;
}
.cheat-list > div {
  padding: 12px 0;
  border-top: 1px solid #6e593c66;
}
.cheat-list dt,
.cheat-list dd {
  margin: 0;
}
.cheat-code-name {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font: 1rem/1.4 Georgia, serif;
  color: #f1d391;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.cheat-code-name:hover {
  text-decoration: underline;
}
.cheat-list dd {
  font-size: .86rem;
  color: #c7b99e;
  line-height: 1.5;
  margin-top: 4px;
}
.cheat-status {
  font-size: .9rem;
  color: #f2dba7;
}
.cheat-status:empty {
  display: none;
}
.cheat-summon {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #806e4c;
  background: #273122;
}
.cheat-summon[hidden] {
  display: none;
}
.cheat-placement {
  padding: 12px;
  border: 2px solid #d2ad68;
  background: #2a2518;
  font-family: Georgia, serif;
  color: #f1dca7;
}
.cheat-placement p {
  margin: 0 0 8px;
}
.cheat-badge {
  margin: 7px 0 0;
  text-align: center;
  color: #d4b475;
  font: .8rem/1.4 Georgia, serif;
}
.square.cheat-place-target {
  box-shadow: inset 0 0 0 2px #d6b87599;
  cursor: crosshair;
}
.cheat-dialog :focus-visible {
  outline: 2px solid #f1d391;
  outline-offset: 3px;
}
@media (max-width: 500px) {
  .cheat-dialog {
    padding: 16px;
  }
  .cheat-form {
    grid-template-columns: 1fr;
  }
  .cheat-form label {
    grid-column: 1;
  }
  .cheat-code-name {
    font-size: .94rem;
  }
}

/* <stdin> */
