.opponent-radio {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #e2eced;
  border: 1px solid #a8bdc0;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 12px;
  font-size: 13px;
}
.opponent-radio > .icon {
  width: 28px;
  height: 28px;
  color: #397fba;
}
.opponent-radio p {
  margin: 3px 0 0;
}
.opponent-radio strong {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #406779;
}
.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 15px;
}
.banner-art {
  display: grid;
  place-items: center;
  height: 130px;
  background:
    linear-gradient(150deg, #ffffff44, transparent), var(--banner-color);
  clip-path: polygon(10% 0, 90% 0, 90% 78%, 50% 100%, 10% 78%);
  margin: 0 auto 18px;
  width: 105px;
  color: #fff3cf;
  filter: drop-shadow(0 3px 0 #183f4533);
}
.banner-art > .icon {
  height: 55px;
  width: 55px;
}
.banner-card h3 {
  min-height: 2.5em;
  text-align: center;
}
.banner-card > .row {
  align-items: center;
}
.banner-card .pill {
  padding: 4px 7px;
}
.banner-card button {
  padding: 8px 11px;
}
.profile-banner {
  border-top: 6px solid var(--banner-color) !important;
}
.profile-banner > .icon {
  color: #efd184;
  height: 40px;
  width: 40px;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 22px 0;
}
.badge-card {
  display: grid;
  justify-items: stretch;
  text-align: left;
  gap: 12px;
  padding: 20px;
  border-radius: 12px;
  background: #fffbee;
  border: 1px solid #bdc4af;
}
.badge-card > .icon {
  height: 34px;
  width: 34px;
  color: var(--tier);
}
.badge-card h3 {
  margin: 0;
}
.tier-dots {
  display: flex;
  gap: 6px;
}
.tier-dots span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid var(--tier);
  border-radius: 50%;
  color: var(--tier);
  opacity: 0.5;
}
.tier-dots .earned {
  opacity: 1;
  background: var(--tier);
  color: #fff9ed;
}
.tier-dots .icon {
  width: 16px;
  height: 16px;
}
.bronze {
  --tier: #967044;
}
.silver {
  --tier: #6d858a;
}
.gold {
  --tier: #9e7c23;
}
.platinum {
  --tier: #49836f;
}
.diamond {
  --tier: #4288a4;
}
.tier-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  opacity: 0.6;
}
.tier-row.earned {
  opacity: 1;
  border-color: var(--tier);
  background: #edf0e0;
}
.tier-row > .icon {
  height: 32px;
  width: 32px;
  color: var(--tier);
}
.tier-row .meter {
  margin-top: 5px;
}
.tier-row .pill {
  font-size: 12px;
}
.reward-badges {
  display: grid;
  gap: 5px;
  text-align: left;
  margin-top: 16px;
}
.reward-badges > div {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  background: #edf0dd;
  border-radius: 5px;
  font-size: 13px;
}
.reward-badges .icon {
  color: var(--tier);
}
@font-face {
  font-family: Jura;
  src: url("/assets/fonts/Jura-Bold.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #193d42;
  --muted: #576c68;
  --paper: #f4edda;
  --line: #c4c5ac;
  --gold: #efc45f;
  --blue: #397fba;
  --yellow: #e9bd48;
  --radius: 12px;
  --font: Jura, "Trebuchet MS", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 600 16px/1.5 var(--font);
  background-image:
    radial-gradient(ellipse at top, #fffcf0, transparent 65%),
    linear-gradient(90deg, #e0dbc629 1px, transparent 1px),
    linear-gradient(#e0dbc629 1px, transparent 1px);
  background-size:
    auto,
    32px 32px,
    32px 32px;
}
h1,
h2,
h3,
p {
  margin: 0 0 0.7em;
}
h1 {
  font-size: clamp(27px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 25px;
  line-height: 1.2;
}
h3 {
  font-size: 19px;
}
p {
  max-width: 65ch;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  background: #fffdf4;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.25;
}
button:hover,
.button:hover {
  background: #f5df9c;
  border-color: #a48945;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
.primary {
  background: var(--ink);
  color: #ffefbe;
  border-color: var(--ink);
  box-shadow: 0 3px 0 #0d252a;
}
.primary:hover {
  background: #285a60;
  color: white;
}
button.gold,
.button.gold {
  background: var(--gold);
  border-color: #c59e46;
  color: #243f3e;
}
.danger {
  color: #8e3f32;
}
.quiet {
  border-color: transparent;
  background: transparent;
}
.icon {
  height: 22px;
  width: 22px;
  flex: none;
  vertical-align: middle;
}
button .icon {
  height: 20px;
  width: 20px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  border: 1px solid #acb5a8;
  background: #fffef8;
  padding: 9px 12px;
  border-radius: 7px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 14px;
}
small,
.small {
  font-size: 13px;
}
small {
  display: block;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  color: #666c4c;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.stack {
  display: grid;
  gap: 14px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.panel {
  padding: 22px;
  background: #fffdf2d9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 #d5d3be66;
}
.panel.tint {
  background: #e3ead7;
}
.panel.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: #315b60;
}
.panel.dark .muted {
  color: #c3d2c1;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.pill .icon {
  width: 16px;
  height: 16px;
}
.blue {
  --team: #397fba;
  --team-text: #fff;
}
.yellow {
  --team: #e9bd48;
  --team-text: #263c3c;
}
.team-label {
  color: var(--ink);
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.team-label:before {
  content: "";
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: var(--team);
  box-shadow: 0 0 0 2px #193d4225;
}
.masthead,
.navigation,
main {
  width: min(1260px, calc(100% - 48px));
  margin-inline: auto;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0 14px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 12px;
  text-decoration: none;
  align-items: center;
  line-height: 1.2;
  font-size: 24px;
}
.brand small {
  margin-top: 5px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
#header-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
.navigation {
  display: flex;
  gap: 4px;
  padding: 9px 0;
  overflow: auto;
  scrollbar-width: thin;
}
.navigation button {
  white-space: nowrap;
  font-size: 14px;
  background: transparent;
  border-color: transparent;
}
.navigation button.active {
  background: var(--ink);
  color: var(--paper);
}
main {
  padding: 24px 0 70px;
  min-height: 65vh;
}
.skip {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 50;
  padding: 12px;
  background: white;
}
.skip:focus {
  top: 8px;
}
:focus-visible {
  outline: 3px solid #b36b15;
  outline-offset: 3px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 26px 0 34px;
}
.hero .tagline {
  font-size: 18px;
  max-width: 35ch;
}
.hero-art {
  position: relative;
  max-width: 450px;
  transform: rotate(3deg);
  margin: auto;
  padding: 20px;
  background: #e3e5ce;
  border: 1px solid #a8b19a;
  border-radius: 12px;
  box-shadow: 0 16px 32px #193d4217;
}
.hero-river {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #75aebb;
  border: 2px solid #4c7e87;
  border-radius: 4px;
  overflow: hidden;
}
.hero-river span {
  aspect-ratio: 1;
  background: #b7ca8c;
  border: 1px solid #66856544;
  display: grid;
  place-items: center;
}
.hero-river span:nth-child(n + 13):nth-child(-n + 24) {
  background: #75aebb;
}
.hero-river span:nth-child(15),
.hero-river span:nth-child(21) {
  background: repeating-linear-gradient(0deg, #b58c5e 0 7px, #8a653f 7px 8px);
}
.variant-card {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.variant-card > .icon {
  height: 38px;
  width: 38px;
  margin-bottom: 14px;
}
.variant-card p {
  font-size: 14px;
  color: var(--muted);
}
.variant-card button {
  margin-top: auto;
  align-self: flex-start;
}
.variant-number {
  position: absolute;
  right: 20px;
  top: 16px;
  opacity: 0.3;
  font-size: 30px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-heading p {
  margin: 8px 0 0;
}
.meter-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.meter progress {
  display: block;
  height: 10px;
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #d7dcc8;
}
.meter progress::-webkit-progress-bar {
  background: #d7dcc8;
}
.meter progress::-webkit-progress-value {
  background: #3e7a70;
}
.meter progress::-moz-progress-bar {
  background: #3e7a70;
}
.game-top {
  margin-bottom: 14px;
}
.game-top h1 {
  font-size: 26px;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 20px;
  align-items: start;
}
.battle-field {
  min-width: 0;
}
.board-scroll {
  max-width: 100%;
  overflow: auto;
  border-radius: 8px;
  overscroll-behavior: contain;
}
.coordinate-board {
  display: grid;
  grid-template-columns: 22px repeat(12, minmax(0, 1fr));
  background: #f5eacb;
  border: 2px solid #647e63;
  border-radius: 5px;
  overflow: hidden;
  user-select: none;
  touch-action: manipulation;
}
.axis {
  display: grid;
  place-items: center;
  font-size: clamp(10px, 1.2vw, 13px);
  line-height: 1;
  min-height: 21px;
  color: #4a6555;
}
.cell {
  padding: 0;
  min-height: 0;
  min-width: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  background: #bacc94;
  border-top: 1px solid #31564230;
  border-left: 1px solid #31564230;
  isolation: isolate;
}
.cell.grass:nth-child(even) {
  background: #b0c58a;
}
.cell.water {
  background: #72acbb;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent 0 12px,
    #fff2 12px 13px,
    transparent 13px 24px
  );
}
.cell.bridge {
  background: repeating-linear-gradient(0deg, #c4a16e 0 12%, #8f714b 12% 15%);
  border-left: 3px solid #8f714b;
  border-right: 3px solid #8f714b;
}
.cell.road {
  background: #d6c794;
}
.cell.forest {
  background: #7d9c68;
}
.cell .terrain-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #315b3a66;
  z-index: -1;
}
.terrain-icon > .icon {
  width: 65%;
  height: 65%;
}
.cell.shop,
.cell.trench {
  background: #c1b389;
  border-top: 4px solid var(--team);
}
.cell:hover {
  filter: brightness(1.06);
  z-index: 2;
}
.cell.selected {
  box-shadow:
    inset 0 0 0 3px #fff4be,
    inset 0 0 0 6px #183f45;
  z-index: 3;
}
.cell.legal:after {
  content: "";
  position: absolute;
  inset: 31%;
  border-radius: 50%;
  background: #173e416e;
  border: 2px solid #fff5c9;
  pointer-events: none;
  z-index: 3;
}
.cell.legal.attack:after {
  inset: 9%;
  background: transparent;
  border: 3px solid #9b3f29;
  border-radius: 50%;
}
.cell.last {
  box-shadow: inset 0 0 0 2px #fff5c9;
}
.piece {
  position: relative;
  display: grid;
  place-items: center;
  width: 75%;
  height: 82%;
  border-radius: 45% 45% 25% 25%;
  background: var(--team);
  color: var(--team-text);
  border: 2px solid #183f45;
  box-shadow: 0 3px 0 #183f4577;
  z-index: 2;
  line-height: 1;
}
.piece > .icon {
  position: absolute;
  width: 75%;
  height: 75%;
  opacity: 0.3;
}
.piece strong {
  font-size: clamp(11px, 1.6vw, 20px);
  position: relative;
  text-shadow: 0 1px 1px #fff4;
}
.piece.commander {
  border-color: #745619;
  box-shadow:
    0 3px 0 #745619,
    0 0 0 1px #e9c65f;
}
.piece .gear {
  position: absolute;
  right: -10%;
  bottom: -10%;
  display: grid;
  place-items: center;
  width: 42%;
  height: 42%;
  background: #fffae5;
  border: 1px solid #193d42;
  border-radius: 50%;
  color: #193d42;
}
.gear .icon {
  height: 85%;
  width: 85%;
}
.piece.recovering {
  opacity: 0.55;
  background: #d9d8c5;
  border-style: dashed;
  box-shadow: none;
}
.recover-timer {
  position: absolute;
  right: 0;
  top: 0;
  background: #fff4d6;
  color: #783d2f;
  border: 1px solid #783d2f;
  border-radius: 50%;
  font-size: 10px;
  min-width: 15px;
  line-height: 15px;
  z-index: 4;
}
.cell-items {
  position: absolute;
  bottom: 1px;
  left: 1px;
  display: flex;
  background: #fff8;
  border-radius: 3px;
  z-index: 3;
  font-size: 10px;
}
.cell-items .icon {
  width: 14px;
  height: 14px;
}
.board-caption {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
}
.board-caption button {
  min-height: 36px;
  padding: 5px 9px;
}
.unit-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
}
.unit-choice {
  padding: 7px 3px;
  display: grid;
  gap: 4px;
  justify-items: center;
  background: #fff9e6;
  min-width: 0;
}
.unit-choice .piece {
  height: 34px;
  width: 30px;
}
.unit-choice .piece strong {
  font-size: 14px;
}
.unit-choice small {
  font-size: 11px;
}
.unit-choice.active {
  background: #f1d58c;
  border-color: #927236;
  box-shadow: inset 0 0 0 1px #927236;
}
.command-panel {
  display: grid;
  gap: 14px;
}
.command-panel .panel {
  padding: 16px;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}
.action-grid button {
  font-size: 13px;
  padding: 8px 6px;
}
.action-grid button.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.unit-details {
  display: flex;
  gap: 14px;
  align-items: center;
}
.unit-details > .piece {
  width: 45px;
  height: 52px;
  flex: none;
}
.unit-details .piece strong {
  font-size: 20px;
}
.stats-list {
  display: grid;
  gap: 7px;
  font-size: 13px;
  margin: 12px 0;
}
.stats-list > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.stats-list .icon {
  width: 17px;
  height: 17px;
}
.command-form {
  display: flex;
  gap: 8px;
}
.command-form input {
  min-width: 0;
}
.command-form button {
  padding: 8px 12px;
  flex: none;
}
.speech-status {
  min-height: 22px;
  font-size: 12px;
  color: var(--muted);
}
.log {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 255px;
  overflow: auto;
  font-size: 13px;
}
.log li {
  padding: 8px 0;
  border-bottom: 1px solid #bdc5b4;
}
.log .team-label:before {
  width: 7px;
  height: 7px;
}
.battle-balance {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 15px;
  margin-bottom: 12px;
  background: #fff9e9;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.battle-balance .turn-state {
  flex: 1;
}
.battle-balance .wallet {
  display: flex;
  gap: 6px;
  align-items: center;
}
.battle-balance .icon {
  height: 19px;
  width: 19px;
}
.instructions {
  background: #e4ead7;
  border-left: 4px solid #4d7662;
  padding: 12px 15px;
  margin-bottom: 12px;
  font-size: 14px;
}
.notice {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #173e41;
  color: #fff3cb;
  box-shadow: 0 4px 20px #0003;
  max-width: min(90vw, 650px);
  padding: 14px 20px;
  border-radius: 10px;
  z-index: 100;
  font-size: 14px;
}
.notice.error {
  background: #853e30;
}
dialog {
  background: #fffbee;
  color: var(--ink);
  border: 1px solid #9baf9e;
  border-radius: 16px;
  padding: 30px;
  width: min(600px, calc(100vw - 28px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  box-shadow: 0 25px 100px #102e3d55;
}
dialog::backdrop {
  background: #1436389c;
  backdrop-filter: blur(3px);
}
.dialog-close {
  position: absolute;
  right: 8px;
  top: 7px;
  border: 0;
  background: transparent;
  padding: 4px;
  width: 38px;
  min-height: 38px;
  font-size: 25px;
}
dialog h2 {
  padding-right: 22px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  flex-wrap: wrap;
}
.shop-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.shop-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #e9ecd9;
  border-radius: 8px;
}
.shop-item > .icon {
  height: 29px;
  width: 29px;
}
.shop-item button {
  font-size: 13px;
}
.reward {
  text-align: center;
  padding-top: 8px;
}
.reward > .icon {
  width: 78px;
  height: 78px;
  color: #a27924;
}
.reward .gains {
  font-size: 25px;
  margin: 20px 0;
  color: #2b6d5d;
  justify-content: center;
}
.reward .gains .icon {
  height: 28px;
  width: 28px;
}
.campaign-track {
  display: grid;
  gap: 14px;
  counter-reset: mission;
}
.mission-card {
  display: flex;
  gap: 20px;
  align-items: center;
}
.mission-marker {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 2px solid #527767;
  border-radius: 50%;
  background: #dbe3bd;
}
.mission-card.locked {
  opacity: 0.6;
}
.mission-card.complete .mission-marker {
  background: var(--ink);
  color: #fff1c5;
}
.mission-card button {
  flex: none;
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.badge {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  background: #fff8e6;
}
.badge > .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  color: #a37c30;
}
.badge.locked {
  opacity: 0.55;
}
.setting-row {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.setting-row input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-height: 0;
}
.guide-dots {
  display: flex;
  gap: 5px;
  margin: 20px 0;
}
.guide-dots span {
  height: 5px;
  flex: 1;
  background: #d8d9c6;
}
.guide-dots span.active {
  background: #295e60;
}
.guide-target {
  outline: 4px solid #b9882c;
  outline-offset: 5px;
}
.print-sheet {
  display: none;
}
.replay-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.replay-bar input {
  padding: 0;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #478363;
  display: inline-block;
}
.status-dot.offline {
  background: #a37627;
}
[hidden] {
  display: none !important;
}
.loading {
  padding: 40px;
  text-align: center;
}
.error-panel {
  border-color: #a5513a;
}
.board-scroll.enlarged .coordinate-board {
  min-width: 650px;
}
.stats-big {
  font-size: 34px;
  line-height: 1.1;
}
.empty-state {
  padding: 30px;
  text-align: center;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.route-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.route-list button {
  width: 100%;
  justify-content: space-between;
}
.shelf {
  margin-top: 24px;
}
.print-preview {
  padding: 15px;
  border: 2px dashed var(--line);
}
.mobile-only {
  display: none;
}
.cell > .piece {
  position: absolute;
  inset: 10% 14%;
  width: auto;
  height: auto;
}
.game-top > div:first-child {
  flex: 1;
  min-width: 0;
}
.command-form > button:last-child {
  font-size: 0;
  width: 46px;
  padding: 10px;
}
.command-form > button:last-child .icon {
  width: 23px;
  height: 23px;
}
.battle-field > .panel[data-guide="orders"] {
  margin-bottom: 14px;
}
.skip {
  clip-path: inset(100%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
}
@media (min-width: 741px) {
  .board-scroll {
    width: min(100%, max(460px, calc(100svh - 390px)));
    margin-inline: auto;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 306px;
    max-width: 1100px;
    margin-inline: auto;
  }
  .game-top {
    max-width: 1100px;
    margin-inline: auto;
  }
  .game-top h1 {
    font-size: 24px;
  }
  .game-top .eyebrow {
    margin-bottom: 5px;
  }
}
@media (min-width: 1450px) {
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 335px;
  }
}
@media (max-width: 1000px) {
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 14px;
  }
  .masthead,
  .navigation,
  main {
    width: calc(100% - 32px);
  }
  .brand {
    font-size: 21px;
  }
  .command-panel .panel {
    padding: 12px;
  }
  .game-top h1 {
    font-size: 22px;
  }
  .hero {
    gap: 20px;
  }
}
@media (max-width: 740px) {
  .masthead,
  .navigation,
  main {
    width: calc(100% - 24px);
  }
  .masthead {
    padding: 12px 0;
    gap: 8px;
  }
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .brand img {
    width: 37px;
    height: 42px;
  }
  .brand small {
    font-size: 10px;
    max-width: 24ch;
  }
  .masthead #header-tools button {
    font-size: 12px;
    padding: 7px 9px;
  }
  .masthead #header-tools .header-xp {
    display: none;
  }
  .navigation {
    position: sticky;
    top: 0;
    z-index: 12;
    background: #f4eddaf5;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
    padding: 5px 0;
  }
  .navigation button {
    padding: 7px 10px;
    min-height: 40px;
  }
  .navigation .icon {
    width: 18px;
    height: 18px;
  }
  main {
    padding-top: 16px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 8px 0 25px;
    gap: 25px;
  }
  .hero-art {
    max-width: 340px;
    width: 85%;
    padding: 12px;
  }
  .hero h1 {
    max-width: 13ch;
  }
  .hero .tagline {
    font-size: 16px;
  }
  .game-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .coordinate-board {
    grid-template-columns: 17px repeat(12, minmax(0, 1fr));
  }
  .axis {
    font-size: 10px;
    min-height: 17px;
  }
  .piece {
    border-width: 1.5px;
  }
  .piece strong {
    font-size: 12px;
  }
  .command-panel {
    grid-template-columns: 1fr;
  }
  .command-panel .panel {
    padding: 14px;
  }
  .action-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .action-grid button {
    font-size: 12px;
    min-height: 46px;
  }
  .unit-details > .piece {
    width: 38px;
    height: 44px;
  }
  .stats-list {
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
  }
  .stats-list > div {
    font-size: 12px;
  }
  .unit-strip {
    gap: 5px;
  }
  .unit-choice {
    padding: 5px 2px;
    min-height: 58px;
  }
  .unit-choice .piece {
    width: 25px;
    height: 28px;
  }
  .unit-choice small {
    font-size: 10px;
  }
  .battle-balance {
    font-size: 13px;
    padding: 8px 10px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .battle-balance .turn-state {
    min-width: 38%;
  }
  .game-top {
    align-items: flex-start;
    gap: 8px;
  }
  .game-top h1 {
    font-size: 20px;
  }
  .game-top .row button {
    padding: 6px 8px;
    min-height: 38px;
  }
  .board-caption {
    gap: 6px;
    font-size: 12px;
  }
  .board-caption .pill {
    font-size: 10px;
    padding: 3px 6px;
  }
  .board-caption button {
    font-size: 11px;
  }
  .page-heading {
    margin-bottom: 18px;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .panel {
    padding: 18px;
  }
  .variant-card {
    min-height: 205px;
  }
  .two,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .badge-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mission-card {
    gap: 12px;
    flex-wrap: wrap;
  }
  .mission-card .grow {
    min-width: 180px;
  }
  .mission-marker {
    width: 44px;
    height: 44px;
  }
  .mission-card button {
    margin-left: 56px;
  }
  .shop-list {
    gap: 8px;
  }
  .shop-item {
    padding: 11px;
  }
  .shop-item button {
    padding: 8px;
  }
  .print-preview {
    overflow: hidden;
  }
  .mobile-only {
    display: block;
  }
  .desktop-only {
    display: none;
  }
  dialog {
    padding: 25px 20px;
  }
  .cell .terrain-icon .icon {
    height: 75%;
    width: 75%;
  }
  .cell-items .icon {
    height: 10px;
    width: 10px;
  }
  .recover-timer {
    font-size: 8px;
    min-width: 12px;
    line-height: 12px;
  }
  .stats-big {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .panel {
    animation: arrive 0.2s ease-out;
  }
  .piece {
    transition: box-shadow 0.15s;
  }
  .cell {
    transition: filter 0.1s;
  }
  @keyframes arrive {
    from {
      opacity: 0.5;
      transform: translateY(3px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media print {
  body {
    background: white;
    color: black;
    font-family: Arial, sans-serif;
  }
  .masthead,
  .navigation,
  #content,
  #notice,
  dialog {
    display: none !important;
  }
  .print-sheet {
    display: block;
  }
  .print-sheet h1 {
    font-size: 22px;
  }
  .print-sheet .coordinate-board {
    width: 180mm;
    border-color: #333;
    break-inside: avoid;
  }
  .print-sheet .axis {
    font-size: 10px;
  }
  .print-sheet .piece {
    box-shadow: none;
  }
  .print-sheet .cell,
  .print-sheet .piece {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-sheet .tokens {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8mm;
  }
  .print-sheet .token {
    border: 1px dashed #555;
    padding: 4mm;
    text-align: center;
  }
  .print-sheet .token .piece {
    width: 12mm;
    height: 14mm;
    margin: auto;
  }
  .print-sheet .page-break {
    break-before: page;
  }
  .print-sheet .rules-print {
    font-size: 11px;
    line-height: 1.4;
  }
  .print-sheet .rules-print p {
    max-width: none;
  }
}

@media (max-width: 740px) {
  .badge-card {
    padding: 14px;
    gap: 10px;
  }
  .badge-card h3 {
    font-size: 16px;
  }
  .tier-dots {
    gap: 4px;
  }
  .tier-dots span {
    width: 24px;
    height: 24px;
  }
  .game-top > .row button {
    font-size: 0;
    width: 38px;
    padding: 7px;
  }
  .game-top > .row button .icon {
    width: 22px;
    height: 22px;
  }
  .banner-card {
    padding: 13px;
  }
  .banner-card > .row {
    display: grid;
    gap: 7px;
  }
  .banner-card > .row button {
    width: 100%;
  }
}

.banner-card {
  display: flex;
  flex-direction: column;
}
.banner-card h3 {
  min-height: 3em;
}
.banner-card > .row {
  display: grid;
  gap: 9px;
  grid-template-columns: 1fr;
  margin-top: auto;
}
.banner-card > .row .pill {
  justify-self: start;
}
.banner-card > .row button {
  width: 100%;
}

.objective-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 7px 0 14px;
}
.reward .objective-meters {
  margin-top: 14px;
}
.reward .shelf {
  margin-top: 18px;
}

@media print {
  .print-sheet .tokens {
    grid-template-columns: repeat(6, 1fr);
    gap: 6mm;
    margin-bottom: 8mm;
  }
  .print-sheet .coin-tokens {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 3mm;
    margin-bottom: 6mm;
  }
  .print-sheet .coin-token {
    display: grid;
    place-items: center;
    width: 12mm;
    height: 12mm;
    border-radius: 50%;
    border: 1px solid #7c713c;
    background: #f1df93;
    color: #183f45;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-sheet .print-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5mm;
  }
  .print-sheet .print-cards article {
    border: 1px dashed #777;
    padding: 5mm;
    min-height: 42mm;
    break-inside: avoid;
  }
  .print-sheet .print-cards h2 {
    font-size: 14px;
  }
  .print-sheet .print-cards p {
    font-size: 11px;
    line-height: 1.4;
  }
  .print-sheet .recovery-strip {
    font-size: 9px;
    display: flex;
    gap: 4mm;
  }
  .print-sheet h2 {
    font-size: 15px;
  }
  .print-sheet .token {
    padding: 3mm 1mm;
    font-size: 9px;
  }
  .print-sheet .token strong {
    display: block;
    margin-top: 2mm;
  }
  .print-sheet .coordinate-board .piece {
    display: none;
  }
}

.mobile-orders {
  display: none;
}
@media (max-width: 740px) {
  .mobile-orders {
    display: grid;
    grid-template-columns: 28px repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 5px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 25;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    background: #f4eddaee;
    border-top: 1px solid #a8b39e;
    box-shadow: 0 -4px 14px #183f451c;
    backdrop-filter: blur(8px);
  }
  .mobile-orders > .piece {
    width: 26px;
    height: 32px;
  }
  .mobile-orders button {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 52px;
    padding: 5px 1px;
    font-size: 10px;
    border-color: #c3c7ae;
    line-height: 1.15;
  }
  .mobile-orders button .icon {
    width: 20px;
    height: 20px;
  }
  .mobile-orders button.active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }
  .mobile-orders.rally {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-inline: 16px;
  }
  .mobile-orders.rally button {
    flex-direction: row;
    font-size: 13px;
  }
  .has-mobile-orders main {
    padding-bottom: 160px;
  }
  .cell {
    scroll-margin-bottom: 95px;
  }
  .shop-item p {
    font-size: 12px;
    line-height: 1.35;
  }
}

.command-form > button:not([type="submit"]) {
  font-size: 0;
  width: 46px;
  padding: 10px;
}
.command-form > button:not([type="submit"]) .icon {
  width: 23px;
  height: 23px;
}
.command-form .narration-on {
  color: #a17827;
  background: #f2e4b8;
}

body.playing .masthead {
  padding: 10px 0;
}
body.playing .brand small {
  display: none;
}
body.playing .navigation {
  padding: 5px 0;
}
body.playing main {
  padding-top: 12px;
}
body.playing .game-top {
  margin-bottom: 12px;
}
body.playing .game-top .eyebrow {
  margin: 0 0 3px;
}
body.playing .battle-balance {
  padding: 7px 12px;
  margin-bottom: 8px;
}
body.playing .instructions {
  padding: 9px 12px;
  margin-bottom: 8px;
}
body.playing .opponent-radio {
  padding: 8px 12px;
  margin-bottom: 8px;
}
@media (max-width: 740px) {
  body.playing .masthead .brand {
    font-size: 19px;
  }
  body.playing .brand img {
    width: 34px;
    height: 40px;
  }
  body.playing .masthead {
    min-height: 58px;
  }
  body.playing .game-top h1 {
    font-size: 23px;
  }
  body.playing .game-top .eyebrow {
    font-size: 10px;
  }
  body.playing .instructions {
    font-size: 13px;
  }
  body.playing .opponent-radio {
    font-size: 12px;
  }
}

@media print {
  .print-sheet .recovery-group {
    display: grid;
    grid-template-columns: 20mm 1fr;
    align-items: center;
    gap: 3mm;
    margin: 4mm 0;
    font-size: 10px;
  }
  .print-sheet .recovery-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2mm;
  }
  .print-sheet .recovery-strip > span {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 1mm;
  }
  .print-sheet .recovery-strip b {
    grid-column: 1/-1;
  }
  .print-sheet .recovery-strip i {
    font-style: normal;
    border: 1px solid #aaa;
    padding: 1mm;
  }
  .print-sheet .recovery-group strong {
    font-size: 9px;
  }
}

body.sending .coordinate-board {
  cursor: progress;
}
body.sending .cell {
  pointer-events: none;
}
body.sending .turn-state small {
  color: #7d641f;
}

.skill-status {
  display: flex;
  gap: 7px;
  align-items: center;
  border: 1px solid #b0bca3;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  background: #e7ecda;
  margin: 10px 0;
}
.skill-status .icon {
  width: 18px;
  height: 18px;
  flex: none;
}

@media (max-width: 740px) {
  html {
    scroll-padding-top: 65px;
    scroll-padding-bottom: 105px;
  }
  .board-caption button {
    scroll-margin-block: 65px 105px;
  }
}

.command-panel,
.command-panel .panel,
.action-grid button {
  min-width: 0;
}
.action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.action-grid button {
  overflow-wrap: anywhere;
  hyphens: auto;
}
@media (max-width: 740px) {
  .action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

[data-banner="banner_gor"] .banner-art {
  color: #172622;
}
.profile-banner[data-banner="banner_gor"] > .icon {
  color: #172622;
  background: #e9bd48;
  border: 1px solid #d5b64c;
  border-radius: 6px;
  padding: 6px;
  width: 48px;
  height: 48px;
}
