:root {
  --ink: #22352b;
  --muted: #687f6c;
  --paper: #ecf0e3;
  --line: #cbd7bd;
  --green: #c8ef6e;
  --dark: #20372b;
  --red: #d55e49;
  --blue: #33778e;
  --gold: #c5a44c;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #182a21;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  position: fixed;
  inset: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 3px solid #dcf788;
  outline-offset: 2px;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.shell {
  height: 100vh;
  height: var(--app-height, 100dvh);
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--safe-top, env(safe-area-inset-top, 0px))
    var(--safe-right, env(safe-area-inset-right, 0px))
    var(--safe-bottom, env(safe-area-inset-bottom, 0px))
    var(--safe-left, env(safe-area-inset-left, 0px));
  background: var(--paper);
  overflow: hidden;
}
.topbar {
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: var(--dark);
  color: #edf6dd;
  border-bottom: 1px solid #506545;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.brand-icon {
  display: grid;
  place-items: center;
  font-size: 24px;
  background: var(--green);
  color: #27422d;
  width: 26px;
  height: 30px;
  transform: skew(-7deg);
  font-weight: 900;
}
.top-context {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 13px;
  letter-spacing: 1px;
  color: #b6c4a6;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.field-time {
  font: 13px monospace;
  color: #dce8c3;
}
.wallet {
  display: flex;
  align-items: center;
  gap: 12px;
}
.currency {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}
.currency i {
  font-style: normal;
  color: #e5c675;
  font-size: 15px;
}
.currency.trophy i {
  color: #b5ceb1;
}
.icon-button {
  background: #34503c;
  border: 1px solid #56724a;
  min-width: 34px;
  min-height: 34px;
  border-radius: 5px;
  font-size: 18px;
  color: #e5efd8;
}
.workspace {
  min-height: 0;
  flex: 1;
  display: flex;
  overflow: hidden;
}
.workspace main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  max-width: 1600px;
  width: 100%;
  margin: auto;
  height: 100%;
  overflow: hidden;
}
.view {
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.battle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-rows: minmax(0, 1fr) 162px;
  grid-template-areas: 'arena detail' 'hand detail';
  gap: 10px;
  height: 100%;
  min-height: 0;
}
.arena-wrap {
  grid-area: arena;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #839d70;
  border-radius: 8px;
  overflow: hidden;
  background: #dbe5c8;
}
.arena-header {
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  background: #f4f7ea;
  border-bottom: 1px solid #b4c69d;
  gap: 8px;
}
.arena-header > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: #e2ebd3;
  border: 1px solid #bccdaa;
  border-radius: 3px;
  padding: 5px 7px;
  white-space: nowrap;
}
.arena-header strong {
  font-size: 13px;
  white-space: nowrap;
}
.match-clock {
  display: flex;
  align-items: center;
  gap: 10px;
}
.match-clock > span {
  font-size: 13px;
  letter-spacing: 0.6px;
  color: #648151;
}
.match-clock > b {
  font: 700 22px monospace;
}
.match-clock button {
  min-width: 30px;
  height: 30px;
  border: 1px solid #a7bd8d;
  background: #e4eed5;
  border-radius: 4px;
  font-size: 14px;
}
.map-container {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #d4e2bd;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}
.battle-score {
  position: absolute;
  inset: 8px 12px auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  gap: 10px;
}
.battle-score > span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
  background: #f3f7e9ed;
  border: 1px solid #a6bea2;
}
.battle-score b {
  font: 700 14px monospace;
}
.ally-score {
  color: #296f85;
}
.enemy-score {
  color: #ac4c35;
}
.start-overlay {
  position: absolute;
  left: 50%;
  bottom: 15%;
  transform: translateX(-50%);
  width: min(330px, 90%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: #f3f7e8f5;
  border: 1px solid #8da66c;
  box-shadow: 0 4px 20px #334b2625;
  border-radius: 7px;
  text-align: center;
}
.start-overlay > strong {
  font-size: 18px;
}
.start-overlay > span {
  font-size: 13px;
  color: #617c50;
}
.primary {
  background: var(--green);
  border: 1px solid #9cbe55;
  border-radius: 4px;
  box-shadow: 0 2px 0 #8ead4d;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-height: 40px;
}
.primary:hover {
  background: #dafa8a;
}
.start-overlay .primary {
  width: 100%;
  margin-top: 2px;
}
.battle-toast {
  position: absolute;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  background: #203729ef;
  border: 1px solid #6f9a50;
  border-radius: 5px;
  color: #edf8d9;
  max-width: 94%;
  width: max-content;
  padding: 10px 13px;
  font-size: 13px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.battle-toast.show {
  opacity: 1;
}
.lane-buttons {
  position: absolute;
  bottom: 14px;
  left: 13%;
  right: 13%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  gap: 20px;
}
.lane-buttons button {
  pointer-events: auto;
  background: #d8f296ed;
  border: 1px solid #7c9c40;
  color: #304c22;
  border-radius: 5px;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 2px 0 #617d36;
}
.energy-bar {
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  background: #f3f6e8;
  border-top: 1px solid #aabf92;
}
.energy-icon {
  font-size: 27px;
  line-height: 1;
  color: #587b36;
}
.energy-bar > strong {
  font: 700 19px monospace;
  min-width: 42px;
}
.energy-bar small {
  font-size: 13px;
  color: #728663;
  font-weight: normal;
}
.energy-cells {
  display: flex;
  flex: 1;
  gap: 4px;
  min-width: 0;
}
.energy-cell {
  height: 12px;
  flex: 1;
  background: #d4dfc3;
  border-radius: 2px;
}
.energy-cell.filled {
  background: #9dc65b;
}
.energy-bar > span:last-of-type {
  font-size: 13px;
  color: #6f845e;
  white-space: nowrap;
}
.energy-bar button {
  background: #e4efce;
  border: 1px solid #a9c47f;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 9px;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
}
.energy-bar button small {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.2px;
  color: #51733c;
}
.hand-dock {
  grid-area: hand;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.deck-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 20px;
  flex: 0 0 20px;
  gap: 10px;
}
.deck-heading > strong {
  font-size: 13px;
  color: #526c42;
  font-weight: normal;
  white-space: nowrap;
}
.text-button {
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: bold;
  padding: 3px 0;
  color: #53753f;
  white-space: nowrap;
}
.hand {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  flex: 1;
  min-height: 0;
}
.card {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: 1fr;
  background: #f7f9ee;
  border: 1px solid #a8bd92;
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 2px 0 #bacda6;
  transition:
    background 0.12s,
    border-color 0.12s;
}
.card:hover {
  background: #edf4d8;
}
.card.selected {
  border: 2px solid #658b2f;
  box-shadow: inset 0 0 0 2px #daf4a6;
  background: #eaf4d5;
}
.card.unaffordable {
  background: #e3e7da;
}
.card.unaffordable .card-top .cost {
  color: #a3543e;
  border-color: #c29882;
  background: #eee2d7;
}
.card.unaffordable:after {
  content: attr(data-wait);
  position: absolute;
  right: 5px;
  top: 5px;
  font-size: 13px;
  color: #a05b3d;
  background: #f2e5d6;
  padding: 3px;
  border-radius: 3px;
}
.card-top {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}
.cost {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  font: 700 13px monospace;
  border: 1px solid #9bad79;
  background: #f5fadf;
  color: #526f2d;
  padding: 3px 5px;
  border-radius: 4px;
}
.card-key {
  font: 13px monospace;
  color: #6e8657;
  border: 1px solid #c5d7ad;
  padding: 2px 4px;
  border-radius: 3px;
  background: #f4f8e8;
}
.troop-art {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at bottom, #d8e3bd, transparent 80%);
}
.troop-art svg {
  width: 100%;
  height: 100%;
  max-height: 105px;
  filter: drop-shadow(0 3px 0 #284e2515);
}
.card > .troop-art {
  padding-top: 14px;
}
.card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 9px 6px 7px;
}
.card-info strong {
  font-size: 13px;
  line-height: 1.05;
  white-space: nowrap;
}
.card-role {
  font-size: 13px;
  line-height: 1.1;
  color: #547048;
}
.card-power {
  font-size: 13px;
  font-weight: bold;
  color: #496b35;
  line-height: 1.05;
}
.card-stats {
  display: flex;
  gap: 5px;
  font: 700 13px monospace;
  white-space: nowrap;
}
.card-stats span {
  padding: 3px 4px;
  border: 1px solid #c7d7b5;
  border-radius: 3px;
  background: #e9f0dc;
}
.card-stats span:last-child {
  color: #9a4e35;
  background: #f0e7d6;
  border-color: #d9c7ac;
}
.card-multiplier {
  font: 13px monospace;
  color: #688451;
  position: absolute;
  bottom: 3px;
  left: 4px;
}
.next-card {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 16px;
  flex: 0 0 16px;
  font-size: 13px;
  color: #6e8460;
  white-space: nowrap;
}
.next-card > span:first-child {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.next-card > b {
  font-size: 13px;
}
.keyboard-note {
  margin-left: auto;
  font: 13px monospace;
  color: #7d9170;
}
.inspector {
  grid-area: detail;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: #f6f8ed;
  border: 1px solid #bbcba5;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.detail-portrait {
  height: 155px;
  min-height: 80px;
  flex: 0 1 155px;
  background: radial-gradient(ellipse, #dce8bd, transparent 70%);
  display: grid;
  place-items: center;
}
.detail-portrait svg {
  height: 100%;
  width: 100%;
  max-height: 180px;
}
.detail-title {
  margin: 6px 0 13px;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.8px;
  font-weight: bold;
  color: #66824d;
}
.detail-title h2 {
  font-size: 25px;
  letter-spacing: -0.8px;
  margin: 8px 0;
}
.detail-title .text-button {
  font-size: 13px;
}
.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.detail-stats > div {
  background: #e9f0da;
  border: 1px solid #c8d8ad;
  border-radius: 4px;
  padding: 10px;
}
.detail-stats span {
  font-size: 13px;
  font-weight: bold;
  color: #708359;
  display: block;
  letter-spacing: 0.3px;
}
.detail-stats strong {
  font: 700 22px monospace;
  display: block;
  margin-top: 5px;
  color: #354e27;
  white-space: nowrap;
}
.detail-stats > div:nth-child(2) {
  background: #f4e9d8;
  border-color: #ddc9ad;
}
.detail-stats > div:nth-child(2) strong {
  color: #9f5337;
}
.power-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  border-top: 1px solid #d1ddbf;
  padding-top: 15px;
}
.power-line > b {
  font-size: 13px;
}
.power-line > span {
  font-size: 13px;
  color: #728561;
}
.inspector > p {
  font-size: 13px;
  line-height: 1.6;
  color: #567144;
  margin: 12px 0;
}
.counter-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #dcc3a7;
  background: #f1e7d5;
  padding: 9px;
  border-radius: 4px;
  margin-top: auto;
  align-items: center;
}
.counter-line > span {
  font-size: 13px;
  color: #a3855d;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.counter-line > strong {
  font-size: 13px;
  color: #9d603e;
}
.inspection-hint {
  font-size: 13px;
  color: #7e926b;
  margin-top: 12px;
  line-height: 1.6;
}
.game-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  height: 54px;
  flex: 0 0 54px;
  padding: 5px 12px;
  background: #f1f5e6;
  border-top: 1px solid #aabe96;
  padding-bottom: max(5px, env(safe-area-inset-bottom));
}
.nav {
  background: none;
  border: 1px solid transparent;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 5px;
  min-width: 115px;
}
.nav > span {
  font-size: 23px;
  line-height: 1;
}
.nav i {
  font: 13px monospace;
  color: #647f4b;
  background: #e0eacb;
  border-radius: 3px;
  padding: 3px;
}
.nav.active {
  background: var(--green);
  border-color: #abca68;
  color: #365823;
}
.nav:hover {
  background: #e1edc9;
}
.page-heading {
  height: 49px;
  flex: 0 0 49px;
  display: flex;
  align-items: center;
  padding-bottom: 8px;
}
.page-heading h1 {
  font-size: 23px;
  letter-spacing: -0.7px;
  margin: 0 0 5px;
}
.page-heading p {
  font-size: 13px;
  margin: 0;
  color: #6f8560;
}
.collection-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 10px 14px;
  background: #e4edcf;
  border: 1px solid #c1d1a4;
  border-radius: 5px;
  min-height: 52px;
}
.section-banner h2 {
  font-size: 14px;
  margin: 0 0 4px;
}
.section-banner p {
  font-size: 13px;
  line-height: 1.3;
  margin: 0;
  color: #6c8455;
}
.deck-slots {
  display: flex;
  align-items: center;
  gap: 4px;
}
.deck-slots span {
  font: 13px monospace;
  display: grid;
  place-items: center;
  width: 24px;
  height: 26px;
  background: #d3e0b8;
  border: 1px solid #adc389;
  border-radius: 3px;
}
.deck-count {
  font: 13px monospace;
  margin-left: 5px;
}
.troop-grid,
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
  flex: 1;
}
.troop-tile {
  display: grid;
  grid-template-columns: minmax(100px, 30%) minmax(0, 1fr);
  border: 1px solid #b6c89a;
  background: #f7f9ef;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.troop-tile .troop-art {
  background: radial-gradient(ellipse at bottom, #dce7c1, #eaf0d8);
  padding-top: 10px;
}
.troop-tile .troop-art svg {
  max-height: 165px;
  min-height: 0;
}
.troop-tile.locked .troop-art {
  background: radial-gradient(ellipse at bottom, #e9d5b1, #f4e8d1);
}
.troop-tile .card-top {
  left: 8px;
  right: auto;
  gap: 7px;
  top: 8px;
}
.troop-tile .card-top .tag {
  font-size: 13px;
}
.troop-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
.troop-body h3 {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin: 0 0 5px;
}
.troop-role {
  font-size: 13px;
  color: #617f48;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.troop-body p {
  font-size: 13px;
  line-height: 1.5;
  color: #637e51;
  margin: 9px 0;
}
.troop-stats {
  display: flex;
  gap: 12px;
  font: 700 13px monospace;
  margin: 4px 0 9px;
}
.troop-tile button {
  font-size: 13px;
  min-height: 36px;
  background: #e3edce;
  border: 1px solid #adc78a;
  border-radius: 4px;
  font-weight: bold;
}
.troop-tile button.in-deck {
  background: #d2eba3;
}
.troop-tile.locked button {
  background: var(--dark);
  color: #eff8dc;
  border-color: #476735;
}
.pagination {
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.pagination button {
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid #b0c590;
  background: #e5eed3;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
}
.pagination span {
  font: 13px monospace;
  color: #617d4b;
  min-width: 36px;
  text-align: center;
}
.operation {
  border: 1px solid #becfa3;
  border-radius: 5px;
  background: #f5f8e9;
  min-height: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr auto;
  gap: 7px 12px;
  position: relative;
}
.operation.completed {
  background: #e4efce;
}
.operation.locked {
  background: #e5eadc;
}
.operation-num {
  font: 700 30px monospace;
  color: #849a62;
  grid-row: span 3;
}
.operation > .tag {
  position: absolute;
  top: 15px;
  right: 14px;
  font-size: 13px;
}
.operation h3 {
  font-size: 18px;
  margin: 14px 0 0;
  grid-column: 2;
}
.operation p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: #6d8558;
  grid-column: 2;
}
.operation .troop-role {
  font-size: 13px;
  grid-column: 2;
}
.operation button {
  grid-column: 1/-1;
  grid-row: 5;
  font-size: 13px;
  justify-content: space-between;
  min-height: 36px;
}
.orders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
  min-height: 0;
}
.order {
  border: 1px solid #b9cc9c;
  border-radius: 6px;
  background: #f7f9ed;
  padding: 18px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-content: center;
  min-height: 0;
}
.order-icon {
  font-size: 27px;
  color: #739646;
  grid-row: span 2;
}
.order h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.order p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 12px;
  color: #6d8655;
}
.order-progress {
  height: 6px;
  background: #dce7c8;
  overflow: hidden;
  border-radius: 5px;
}
.order-progress span {
  display: block;
  height: 100%;
  background: #92ba51;
}
.order-count {
  font: 13px monospace;
  color: #6d8852;
  grid-column: 2;
  margin-top: 5px;
}
.order button {
  grid-column: 1/-1;
  font-size: 13px;
  font-weight: bold;
  background: var(--green);
  border: 1px solid #a4c862;
  border-radius: 4px;
  min-height: 38px;
  margin-top: 7px;
}
dialog {
  position: fixed;
  top: calc(var(--viewport-top, 0px) + var(--app-height, 100vh) / 2);
  bottom: auto;
  margin: 0 auto;
  transform: translateY(-50%);
  padding: 0;
  border: 1px solid #829e68;
  border-radius: 9px;
  background: #f1f6e5;
  color: var(--ink);
  width: min(460px, calc(100% - 24px));
  max-height: calc(
    var(--app-height, 100vh) - 24px - env(safe-area-inset-top, 0px) -
      env(safe-area-inset-bottom, 0px)
  );
  box-shadow: 0 14px 60px #18321d5c;
}
dialog::backdrop {
  background: #172d20cb;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.modal-body {
  padding: 24px;
  position: relative;
}
.modal-body h2 {
  font-size: 25px;
  letter-spacing: -0.8px;
  margin: 14px 0;
}
.modal-body p {
  font-size: 13px;
  line-height: 1.7;
  color: #617d4d;
  margin: 10px 0;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 30px;
  min-height: 30px;
  background: #e1ecca;
  border: 1px solid #c1d4a4;
  border-radius: 50%;
  font-size: 19px;
}
.modal-art {
  height: 88px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse, #d5e6b4, transparent 70%);
}
.modal-art svg {
  width: 125px;
  height: 110px;
}
.modal-actions {
  display: flex;
  gap: 9px;
  margin-top: 16px;
}
.modal-actions button {
  flex: 1;
  font-size: 13px;
  font-weight: bold;
  border: 1px solid #b2c793;
  background: #e2edcb;
  border-radius: 4px;
  min-height: 40px;
  padding: 9px;
}
.modal-actions .primary {
  background: var(--green);
}
.modal-note {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #7a9066 !important;
}
.result-icon {
  font-size: 40px;
  display: block;
  text-align: center;
  color: #7c9f43;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 16px 0;
}
.results-grid div {
  background: #e2edcb;
  border: 1px solid #c0d59b;
  border-radius: 4px;
  text-align: center;
  padding: 12px;
}
.results-grid strong {
  font: 700 22px monospace;
  display: block;
}
.results-grid span {
  font-size: 13px;
  color: #6b8752;
  display: block;
  margin-top: 7px;
}
.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  font-size: 13px;
  min-height: 36px;
  border-bottom: 1px solid #d1dfbc;
}
.setting button {
  border: 1px solid #aac68a;
  border-radius: 3px;
  padding: 6px 10px;
  background: #e4eecd;
  font-size: 13px;
  min-height: 29px;
}
.setting input {
  accent-color: #7d9f49;
  width: 18px;
  height: 18px;
}
.danger {
  color: #a4543c !important;
}
.ad-progress {
  height: 7px;
  border-radius: 5px;
  background: #d2e0ba;
  overflow: hidden;
  margin: 16px 0;
}
.ad-progress div {
  height: 100%;
  background: #96bc53;
  transition: width 0.1s;
}
.demo-stage {
  height: 112px;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg, #e1ebcd, #e1ebcd 12px, #dbe6c4 12px, #dbe6c4 24px);
  border: 1px solid #bad099;
  border-radius: 4px;
  text-align: center;
}
.demo-stage strong {
  font-size: 23px;
  letter-spacing: -0.8px;
}
.demo-stage span {
  font-size: 13px;
  display: block;
  margin-top: 8px;
  color: #77945c;
}
.troop-manual-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 12px 0;
}
.troop-manual-stats > div {
  border: 1px solid #bbcf99;
  background: #e4efd0;
  padding: 8px;
  border-radius: 4px;
}
.troop-manual-stats small {
  display: block;
  font-size: 13px;
  color: #6a854d;
  margin-bottom: 4px;
}
.troop-manual-stats b {
  font: 700 16px monospace;
}
.manual-tactic {
  padding: 10px;
  background: #e3edcf;
  border-left: 3px solid #8bac52;
}
.guide-steps {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
}
.guide-steps span {
  width: 20px;
  height: 4px;
  border-radius: 3px;
  background: #d3e1bb;
}
.guide-steps .active {
  background: #83aa40;
}
#toast {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 92%;
  width: max-content;
  z-index: 99;
  background: #24402bef;
  color: #f0f9dd;
  border: 1px solid #8caa5b;
  border-radius: 5px;
  padding: 11px 18px;
  font-size: 13px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
#toast.show {
  opacity: 1;
}
.selected-map {
  cursor: crosshair;
}
@media (max-width: 1050px) {
  .battle-grid {
    grid-template-columns: minmax(0, 1fr) 222px;
    grid-template-rows: minmax(0, 1fr) 157px;
  }
  .card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .card > .troop-art {
    padding: 7px 0 0;
  }
  .card > .troop-art svg {
    max-height: 65px;
  }
  .card-info {
    padding: 4px 7px 7px;
    gap: 3px;
  }
  .card-info strong {
    font-size: 13px;
  }
  .card-role {
    font-size: 13px;
  }
  .card-power {
    display: none;
  }
  .card-stats {
    font-size: 13px;
    gap: 4px;
  }
  .card-stats span {
    padding: 2px 3px;
  }
  .detail-portrait {
    flex-basis: 125px;
    min-height: 60px;
  }
  .inspector {
    padding: 14px;
  }
  .detail-title h2 {
    font-size: 23px;
  }
  .detail-stats strong {
    font-size: 20px;
  }
  .troop-tile {
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .troop-body h3 {
    font-size: 16px;
  }
  .troop-body p {
    font-size: 13px;
  }
  .troop-stats {
    gap: 7px;
    font-size: 13px;
  }
}
@media (max-width: 700px) and (min-height: 561px) {
  .topbar {
    padding: 0 10px;
    gap: 9px;
    height: 44px;
    flex-basis: 44px;
  }
  .brand {
    font-size: 13px;
    letter-spacing: 0.6px;
    gap: 6px;
  }
  .brand-icon {
    font-size: 21px;
    width: 22px;
    height: 26px;
  }
  .top-context {
    font-size: 13px;
    gap: 6px;
  }
  .top-context > b {
    display: none;
  }
  .field-time {
    font-size: 13px;
  }
  .wallet {
    gap: 7px;
  }
  .currency {
    font-size: 13px;
    gap: 3px;
  }
  .currency.trophy {
    display: none;
  }
  .icon-button {
    min-width: 29px;
    min-height: 30px;
    font-size: 16px;
  }
  .workspace main {
    padding: 7px 8px;
  }
  .battle-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .arena-wrap {
    flex: 1;
    min-height: 0;
    border-radius: 6px;
  }
  .arena-header {
    height: 34px;
    flex-basis: 34px;
    padding: 0 9px;
  }
  .arena-header strong {
    font-size: 13px;
  }
  .tag {
    font-size: 13px;
    padding: 4px 5px;
  }
  .match-clock {
    gap: 7px;
  }
  .match-clock > b {
    font-size: 20px;
  }
  .match-clock > span {
    font-size: 13px;
  }
  .match-clock button {
    height: 27px;
    min-width: 28px;
  }
  .battle-score {
    top: 7px;
    left: 8px;
    right: 8px;
  }
  .battle-score > span {
    padding: 4px 6px;
    font-size: 13px;
    gap: 4px;
  }
  .battle-score b {
    font-size: 13px;
  }
  .energy-bar {
    height: 40px;
    flex-basis: 40px;
    padding: 0 8px;
    gap: 6px;
  }
  .energy-bar > strong {
    font-size: 18px;
    min-width: 36px;
  }
  .energy-cell {
    height: 10px;
  }
  .energy-cells {
    gap: 3px;
  }
  .energy-bar > span:last-of-type {
    display: none;
  }
  .energy-bar button {
    padding: 5px 7px;
    gap: 5px;
    min-height: 30px;
    font-size: 13px;
  }
  .energy-bar button small {
    font-size: 13px;
  }
  .start-overlay {
    gap: 6px;
    padding: 12px;
    bottom: 15%;
    width: min(310px, 90%);
  }
  .start-overlay > strong {
    font-size: 16px;
  }
  .start-overlay > span {
    font-size: 13px;
  }
  .start-overlay .primary {
    min-height: 37px;
    padding: 9px;
    font-size: 13px;
  }
  .inspector {
    height: 116px;
    flex: 0 0 116px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-rows: 39px 35px 25px;
    padding: 6px 8px;
    gap: 2px 7px;
    border-radius: 5px;
    overflow: hidden;
  }
  .detail-portrait {
    height: 39px;
    min-height: 0;
    width: 48px;
    grid-row: 1;
    grid-column: 1;
  }
  .detail-portrait svg {
    width: 54px;
    height: 47px;
  }
  .detail-title {
    grid-row: 1;
    grid-column: 2;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .detail-title .eyebrow {
    font-size: 13px;
    letter-spacing: 0.4px;
  }
  .detail-title h2 {
    font-size: 16px;
    letter-spacing: -0.4px;
    margin: 3px 0 0;
  }
  .detail-title .text-button {
    position: absolute;
    top: 15px;
    right: 9px;
    font-size: 13px;
  }
  .detail-stats {
    grid-row: 2;
    grid-column: 1/-1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }
  .detail-stats > div {
    padding: 4px 5px;
  }
  .detail-stats span {
    font-size: 13px;
    letter-spacing: 0;
  }
  .detail-stats strong {
    font-size: 13px;
    margin-top: 3px;
  }
  .power-line {
    grid-row: 3;
    grid-column: 1/-1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
  }
  .power-line > b {
    font-size: 13px;
  }
  .power-line > span {
    font-size: 13px;
  }
  .inspector > p {
    display: none;
  }
  .counter-line {
    position: absolute;
    right: 8px;
    top: 35px;
    font-size: 13px;
    border: 0;
    padding: 0;
    background: none;
    margin: 0;
  }
  .counter-line > span {
    display: none;
  }
  .counter-line > strong {
    font-size: 13px;
  }
  .inspection-hint {
    display: none;
  }
  .hand-dock {
    height: 144px;
    flex: 0 0 144px;
    gap: 5px;
  }
  .deck-heading {
    height: 19px;
    flex-basis: 19px;
  }
  .deck-heading > strong {
    font-size: 13px;
  }
  .deck-heading .text-button {
    font-size: 13px;
  }
  .hand {
    gap: 5px;
  }
  .card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    border-radius: 5px;
  }
  .card-top {
    left: 4px;
    right: 4px;
    top: 4px;
  }
  .cost {
    font-size: 13px;
    padding: 2px 3px;
  }
  .card-key {
    display: none;
  }
  .card > .troop-art {
    padding-top: 6px;
  }
  .card > .troop-art svg {
    max-height: 60px;
    width: 70px;
    height: 100%;
  }
  .card-info {
    padding: 4px;
    gap: 4px;
  }
  .card-info strong {
    font-size: 13px;
    letter-spacing: -0.15px;
    white-space: nowrap;
  }
  .card-role {
    font-size: 13px;
    letter-spacing: -0.1px;
    white-space: nowrap;
  }
  .card-stats {
    font-size: 13px;
    gap: 3px;
    justify-content: space-between;
  }
  .card-stats span {
    padding: 2px;
    flex: 1;
    text-align: center;
  }
  .card-multiplier {
    font-size: 13px;
    left: auto;
    right: 3px;
    top: 7px;
    bottom: auto;
    background: #ecf6d5;
    padding: 2px;
    border-radius: 3px;
  }
  .next-card {
    height: 14px;
    flex-basis: 14px;
    font-size: 13px;
  }
  .next-card > b {
    font-size: 13px;
  }
  .keyboard-note {
    display: none;
  }
  .game-nav {
    height: 54px;
    flex-basis: 54px;
    padding: 4px 6px;
    gap: 3px;
  }
  .nav {
    flex: 1;
    min-width: 0;
    gap: 3px;
    flex-direction: column;
    padding: 4px 2px;
    font-size: 13px;
    position: relative;
  }
  .nav > span {
    font-size: 20px;
  }
  .nav i {
    position: absolute;
    top: 5px;
    right: 7px;
    font-size: 13px;
    padding: 2px;
  }
  .page-heading {
    height: 40px;
    flex-basis: 40px;
  }
  .page-heading h1 {
    font-size: 20px;
    margin-bottom: 3px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .section-banner {
    padding: 8px 10px;
    min-height: 46px;
  }
  .section-banner h2 {
    font-size: 13px;
  }
  .section-banner p {
    font-size: 13px;
  }
  .deck-slots {
    display: none;
  }
  .collection-view {
    gap: 7px;
  }
  .troop-grid,
  .campaign-grid {
    gap: 7px;
  }
  .troop-tile {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .troop-tile .troop-art {
    padding: 17px 0 0;
    min-height: 25px;
  }
  .troop-tile .troop-art svg {
    height: 100%;
    max-height: 108px;
    width: 120px;
  }
  .troop-tile .card-top {
    left: 6px;
    top: 6px;
    right: 6px;
    justify-content: space-between;
    gap: 2px;
  }
  .troop-tile .card-top .tag {
    font-size: 13px;
    padding: 3px 4px;
  }
  .troop-body {
    padding: 9px;
    justify-content: flex-start;
  }
  .troop-body h3 {
    font-size: 14px;
    margin: 0 0 3px;
  }
  .troop-role {
    font-size: 13px;
  }
  .troop-body p {
    font-size: 13px;
    line-height: 1.4;
    margin: 6px 0;
    min-height: 25px;
  }
  .troop-stats {
    font-size: 13px;
    gap: 4px;
    justify-content: space-between;
    margin: 3px 0 7px;
  }
  .troop-tile button {
    font-size: 13px;
    min-height: 32px;
  }
  .pagination {
    height: 34px;
    flex-basis: 34px;
    gap: 18px;
  }
  .pagination button {
    min-height: 32px;
    font-size: 13px;
  }
  .operation {
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .operation-num {
    font-size: 27px;
  }
  .operation > .tag {
    font-size: 13px;
    top: 12px;
    right: 9px;
  }
  .operation h3 {
    font-size: 15px;
    margin: 2px 0 0;
  }
  .operation p {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
  }
  .operation .troop-role {
    font-size: 13px;
  }
  .operation button {
    margin-top: auto;
    font-size: 13px;
    min-height: 32px;
    padding: 8px;
  }
  .orders {
    gap: 7px;
  }
  .order {
    padding: 12px;
    gap: 6px;
    grid-template-columns: 20px minmax(0, 1fr);
  }
  .order-icon {
    font-size: 23px;
  }
  .order h3 {
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 7px;
  }
  .order p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
  }
  .order-count {
    font-size: 13px;
  }
  .order button {
    min-height: 32px;
    font-size: 13px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-body h2 {
    font-size: 22px;
  }
  .modal-body p {
    font-size: 13px;
  }
  .lane-buttons {
    left: 9%;
    right: 9%;
    bottom: 12px;
  }
  .lane-buttons button {
    font-size: 13px;
    min-height: 36px;
    padding: 7px 11px;
  }
}
@media (max-width: 700px) and (min-height: 561px) and (max-height: 700px) {
  .hand-dock {
    height: 128px;
    flex-basis: 128px;
  }
  .inspector {
    height: 105px;
    flex-basis: 105px;
    grid-template-rows: 34px 31px 22px;
  }
  .detail-portrait {
    height: 34px;
  }
  .detail-title h2 {
    font-size: 15px;
  }
  .detail-stats > div {
    padding: 3px 4px;
  }
  .detail-stats strong {
    font-size: 13px;
    margin-top: 2px;
  }
  .card > .troop-art svg {
    max-height: 43px;
  }
  .card-info {
    gap: 3px;
  }
  .start-overlay {
    padding: 9px;
    gap: 4px;
  }
  .start-overlay > span {
    display: none;
  }
  .battle-toast {
    font-size: 13px;
  }
  .troop-body p {
    margin: 4px 0;
    min-height: 0;
    font-size: 13px;
  }
  .troop-body {
    padding: 7px;
  }
  .troop-tile .troop-art svg {
    max-height: 75px;
  }
  .operation p {
    font-size: 13px;
  }
  .order {
    padding: 10px;
  }
  .order p {
    font-size: 13px;
  }
  .order h3 {
    font-size: 13px;
  }
}
@media (max-height: 560px) {
  .topbar {
    height: 38px;
    flex-basis: 38px;
    padding: 0 10px;
  }
  .brand {
    font-size: 13px;
  }
  .brand-icon {
    height: 26px;
    font-size: 21px;
  }
  .icon-button {
    min-height: 28px;
    min-width: 30px;
    font-size: 16px;
  }
  .workspace main {
    padding: 5px 8px;
  }
  .game-nav {
    height: 40px;
    flex-basis: 40px;
    padding: 3px 7px;
  }
  .nav {
    min-width: 90px;
    font-size: 13px;
    padding: 3px 12px;
    gap: 6px;
  }
  .nav > span {
    font-size: 19px;
  }
  .battle-grid {
    grid-template-columns: minmax(0, 1fr) 268px;
    grid-template-rows: 96px minmax(0, 1fr);
    grid-template-areas: 'arena detail' 'arena hand';
    gap: 6px;
  }
  .arena-header {
    height: 30px;
    flex-basis: 30px;
    padding: 0 8px;
  }
  .arena-header strong {
    font-size: 13px;
  }
  .tag {
    font-size: 13px;
    padding: 3px 5px;
  }
  .match-clock > b {
    font-size: 18px;
  }
  .match-clock > span {
    display: none;
  }
  .match-clock button {
    height: 25px;
    min-width: 26px;
  }
  .energy-bar {
    height: 34px;
    flex-basis: 34px;
    padding: 0 8px;
    gap: 5px;
  }
  .energy-bar > span:last-of-type {
    display: none;
  }
  .energy-bar button {
    min-height: 26px;
    font-size: 13px;
    padding: 3px 6px;
  }
  .energy-bar button small {
    font-size: 5px;
  }
  .energy-bar > strong {
    font-size: 15px;
    min-width: 31px;
  }
  .energy-bar .energy-icon {
    font-size: 24px;
  }
  .energy-cells {
    gap: 2px;
  }
  .energy-cell {
    height: 9px;
  }
  .inspector {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: 27px 27px 19px;
    gap: 3px 6px;
    padding: 6px 8px;
    border-radius: 5px;
  }
  .detail-portrait {
    grid-column: 1;
    grid-row: 1;
    height: 28px;
    min-height: 0;
  }
  .detail-portrait svg {
    width: 40px;
    height: 38px;
  }
  .detail-title {
    grid-row: 1;
    grid-column: 2;
    margin: 0;
  }
  .detail-title h2 {
    font-size: 14px;
    margin: 2px 0 0;
  }
  .detail-title .eyebrow {
    font-size: 13px;
    letter-spacing: 0.3px;
  }
  .detail-title .text-button {
    position: absolute;
    top: 10px;
    right: 8px;
    font-size: 13px;
  }
  .detail-stats {
    grid-row: 2;
    grid-column: 1/-1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
  }
  .detail-stats > div {
    padding: 3px;
  }
  .detail-stats span {
    font-size: 5px;
    letter-spacing: 0;
  }
  .detail-stats strong {
    font-size: 13px;
    margin-top: 2px;
  }
  .power-line {
    grid-row: 3;
    grid-column: 1/-1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    border: 0;
    padding: 0;
    gap: 4px;
  }
  .power-line > b {
    font-size: 13px;
  }
  .power-line > span {
    font-size: 13px;
  }
  .inspector > p,
  .counter-line,
  .inspection-hint {
    display: none;
  }
  .hand-dock {
    gap: 4px;
  }
  .deck-heading {
    height: 17px;
    flex-basis: 17px;
  }
  .deck-heading > strong {
    font-size: 13px;
  }
  .deck-heading .text-button {
    font-size: 13px;
  }
  .hand {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .card {
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: 1fr;
    border-radius: 4px;
  }
  .card-top {
    top: 3px;
    left: 3px;
    right: 3px;
  }
  .cost {
    font-size: 13px;
    padding: 2px;
  }
  .card-key {
    display: none;
  }
  .card > .troop-art {
    padding-top: 12px;
  }
  .card > .troop-art svg {
    width: 55px;
    max-height: 52px;
  }
  .card-info {
    padding: 5px 4px;
    gap: 3px;
  }
  .card-info strong {
    font-size: 13px;
  }
  .card-role {
    font-size: 13px;
  }
  .card-power {
    display: none;
  }
  .card-stats {
    font-size: 13px;
    gap: 3px;
  }
  .card-stats span {
    padding: 2px;
  }
  .card-multiplier {
    font-size: 13px;
  }
  .card.unaffordable:after {
    font-size: 13px;
    padding: 2px;
  }
  .next-card {
    height: 12px;
    flex-basis: 12px;
    font-size: 13px;
  }
  .next-card > b {
    font-size: 13px;
  }
  .keyboard-note {
    display: none;
  }
  .battle-score {
    top: 5px;
    left: 6px;
    right: 6px;
  }
  .battle-score > span {
    font-size: 13px;
    padding: 3px 5px;
  }
  .battle-score b {
    font-size: 13px;
  }
  .start-overlay {
    padding: 9px;
    gap: 5px;
    bottom: 8%;
    width: min(260px, 90%);
  }
  .start-overlay > strong {
    font-size: 14px;
  }
  .start-overlay > span {
    display: none;
  }
  .start-overlay .primary {
    font-size: 13px;
    min-height: 30px;
    padding: 7px;
  }
  .lane-buttons {
    left: 6%;
    right: 6%;
    bottom: 7px;
  }
  .lane-buttons button {
    font-size: 13px;
    min-height: 30px;
    padding: 5px 10px;
  }
  .battle-toast {
    font-size: 13px;
    padding: 7px 10px;
  }
  .page-heading {
    height: 36px;
    flex-basis: 36px;
  }
  .page-heading h1 {
    font-size: 19px;
    margin: 0;
  }
  .page-heading p {
    display: none;
  }
  .section-banner {
    min-height: 34px;
    padding: 6px 10px;
  }
  .section-banner h2 {
    font-size: 13px;
    margin: 0;
  }
  .section-banner p {
    display: none;
  }
  .collection-view {
    gap: 6px;
  }
  .troop-grid,
  .campaign-grid {
    gap: 6px;
  }
  .troop-tile {
    grid-template-columns: 75px minmax(0, 1fr);
  }
  .troop-tile .troop-art svg {
    max-height: 87px;
  }
  .troop-tile .card-top {
    top: 5px;
    left: 5px;
  }
  .troop-tile .card-top .tag {
    display: none;
  }
  .troop-body {
    padding: 7px;
  }
  .troop-body h3 {
    font-size: 13px;
    margin: 0 0 3px;
  }
  .troop-role {
    font-size: 13px;
  }
  .troop-body p {
    display: none;
  }
  .troop-stats {
    font-size: 13px;
    gap: 6px;
    margin: 4px 0 6px;
  }
  .troop-tile button {
    font-size: 13px;
    min-height: 25px;
  }
  .pagination {
    height: 28px;
    flex-basis: 28px;
  }
  .pagination button {
    min-height: 26px;
    font-size: 13px;
    padding: 5px 10px;
  }
  .operation {
    padding: 10px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 3px 8px;
  }
  .operation-num {
    font-size: 23px;
  }
  .operation > .tag {
    font-size: 13px;
    top: 8px;
    right: 8px;
  }
  .operation h3 {
    font-size: 13px;
    margin: 8px 0 0;
  }
  .operation p {
    display: none;
  }
  .operation .troop-role {
    font-size: 13px;
  }
  .operation button {
    min-height: 26px;
    padding: 5px 10px;
    font-size: 13px;
  }
  .orders {
    gap: 6px;
  }
  .order {
    padding: 10px;
    gap: 4px;
    grid-template-columns: 24px minmax(0, 1fr);
  }
  .order h3 {
    font-size: 13px;
    margin: 0 0 4px;
  }
  .order p {
    display: none;
  }
  .order button {
    font-size: 13px;
    min-height: 26px;
    margin-top: 3px;
  }
  .order-count {
    font-size: 13px;
    margin: 0;
  }
  .order-icon {
    font-size: 21px;
  }
  .modal-body {
    padding: 16px;
  }
  .modal-body h2 {
    font-size: 21px;
    margin: 10px 0;
  }
  .modal-body p {
    font-size: 13px;
    line-height: 1.4;
    margin: 7px 0;
  }
  .modal-art {
    height: 48px;
  }
  .modal-art svg {
    height: 60px;
  }
  .modal-actions {
    margin-top: 10px;
  }
  .modal-actions button {
    min-height: 30px;
    font-size: 13px;
    padding: 6px;
  }
  .modal-note {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
  .setting {
    min-height: 28px;
    font-size: 13px;
  }
  .setting button {
    font-size: 13px;
    min-height: 23px;
    padding: 4px 8px;
  }
  .result-icon {
    font-size: 28px;
  }
  .results-grid {
    margin: 10px 0;
  }
  .results-grid div {
    padding: 7px;
  }
  .demo-stage {
    height: 65px;
  }
  .demo-stage strong {
    font-size: 19px;
  }
  .demo-stage span {
    font-size: 13px;
  }
  .troop-manual-stats {
    gap: 4px;
    margin: 8px 0;
  }
  .troop-manual-stats > div {
    padding: 6px;
  }
  .troop-manual-stats b {
    font-size: 13px;
  }
  .manual-tactic {
    padding: 7px;
  }
  #toast {
    bottom: 49px;
    font-size: 13px;
    padding: 8px 13px;
  }
}
@media (max-width: 580px) and (max-height: 560px) {
  .battle-grid {
    grid-template-columns: minmax(0, 1fr) 202px;
    grid-template-rows: 96px minmax(0, 1fr);
  }
  .brand {
    font-size: 13px;
  }
  .top-context {
    display: none;
  }
  .wallet {
    gap: 6px;
  }
  .currency {
    font-size: 13px;
  }
  .currency.trophy {
    display: none;
  }
  .nav {
    min-width: 0;
    flex: 1;
    padding: 3px 4px;
    font-size: 13px;
  }
  .nav i {
    display: none;
  }
  .arena-header strong {
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .arena-header .tag {
    display: none;
  }
  .card {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .card > .troop-art svg {
    width: 40px;
  }
  .card-info strong {
    font-size: 13px;
  }
  .card-role {
    font-size: 13px;
  }
  .card-stats {
    font-size: 13px;
  }
  .detail-title .text-button {
    font-size: 13px;
  }
  .detail-title h2 {
    font-size: 13px;
  }
  .power-line > span {
    font-size: 13px;
  }
  .detail-stats span {
    font-size: 4px;
  }
  .detail-stats strong {
    font-size: 13px;
  }
  .energy-cells {
    display: none;
  }
  .energy-bar > strong {
    margin-right: auto;
  }
  .troop-body h3 {
    font-size: 13px;
  }
  .troop-tile {
    grid-template-columns: 45px minmax(0, 1fr);
  }
  .troop-tile .troop-art svg {
    width: 60px;
  }
  .troop-stats {
    font-size: 13px;
    gap: 4px;
  }
  .deck-slots {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
/* Readable card labels and shared battlefield role codes. */
.card-code {
  position: absolute;
  left: 5px;
  bottom: 4px;
  padding: 2px 4px;
  font: 700 13px monospace;
  color: #fff9e9;
  border: 1px solid #fff4de;
  border-radius: 3px;
}
.card-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-title .eyebrow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 700px) and (min-height: 561px) {
  .card-info strong {
    font-size: 13px;
  }
  .card-role {
    font-size: 13px;
  }
  .card-stats {
    font-size: 13px;
    letter-spacing: -0.2px;
  }
  .detail-title {
    padding-right: 73px;
  }
  .card-code {
    font-size: 13px;
    padding: 2px 3px;
    left: 4px;
    bottom: 1px;
  }
  .inspector .power-line > b {
    font-size: 13px;
  }
  .inspector .power-line > span {
    font-size: 13px;
  }
}
@media (max-width: 350px) and (min-height: 561px) {
  .card-info strong {
    font-size: 13px;
  }
  .card-role {
    font-size: 13px;
  }
  .card-stats {
    font-size: 13px;
  }
  .top-context {
    display: none;
  }
  .wallet {
    margin-left: auto;
  }
  .nav i {
    display: none;
  }
}
.enemy-intel {
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 7px;
  background: #f6e5d9f0;
  border: 1px solid #d19478;
  border-radius: 3px;
  color: #9b4933;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  pointer-events: none;
}
.game-nav {
  height: calc(var(--nav-size, 54px) + env(safe-area-inset-bottom));
  flex-basis: calc(var(--nav-size, 54px) + env(safe-area-inset-bottom));
  padding-bottom: calc(var(--nav-pad, 5px) + env(safe-area-inset-bottom));
}
@media (max-height: 560px) {
  .shell {
    --nav-size: 40px;
    --nav-pad: 3px;
  }
  .enemy-intel {
    top: 27px;
    font-size: 13px;
    padding: 3px 5px;
  }
  .result-icon {
    display: none;
  }
  dialog:has(.troop-manual-stats) {
    width: min(600px, calc(100% - 24px));
  }
  .modal-body:has(.troop-manual-stats) {
    display: grid;
    grid-template-columns: 85px minmax(0, 1fr);
    column-gap: 12px;
  }
  .modal-body:has(.troop-manual-stats) > .eyebrow {
    grid-column: 1/-1;
  }
  .modal-body:has(.troop-manual-stats) > .modal-art {
    grid-column: 1;
    grid-row: 2/4;
    height: 104px;
    align-self: center;
  }
  .modal-body:has(.troop-manual-stats) > .modal-art svg {
    width: 95px;
    height: 95px;
  }
  .modal-body:has(.troop-manual-stats) > h2 {
    grid-column: 2;
    grid-row: 2;
  }
  .modal-body:has(.troop-manual-stats) > .troop-manual-stats {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
  }
  .modal-body:has(.troop-manual-stats) > p,
  .modal-body:has(.troop-manual-stats) > .modal-actions {
    grid-column: 1/-1;
  }
}
@media (max-height: 420px) {
  .modal-body {
    padding: 13px;
  }
  .modal-body h2 {
    margin: 8px 0;
    font-size: 19px;
  }
  .modal-body p {
    margin: 6px 0;
    font-size: 13px;
  }
  .results-grid {
    margin: 8px 0;
  }
  .results-grid div {
    padding: 6px;
  }
  .modal-body .eyebrow {
    font-size: 13px;
  }
  .modal-art {
    height: 38px;
  }
  .modal-art svg {
    height: 50px;
  }
  .guide-steps {
    margin-top: 10px;
  }
}
@media (min-width: 701px) and (min-height: 561px) and (max-height: 700px) {
  .inspector {
    padding: 12px;
  }
  .detail-portrait {
    flex-basis: 90px;
    min-height: 45px;
  }
  .detail-title {
    margin: 4px 0 9px;
  }
  .detail-title h2 {
    font-size: 21px;
    margin: 6px 0;
  }
  .detail-stats > div {
    padding: 7px;
  }
  .detail-stats strong {
    font-size: 18px;
  }
  .power-line {
    margin-top: 12px;
    padding-top: 10px;
  }
  .inspector > p {
    font-size: 13px;
    line-height: 1.4;
    margin: 9px 0;
  }
  .inspection-hint {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 8px;
  }
}
/* v3: arena first, a single compact card dock directly underneath. */
.battle-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
  grid-template-columns: none;
  grid-template-rows: none;
  grid-template-areas: none;
}
.arena-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
}
.hand-dock {
  flex: 0 0 145px;
  height: 145px;
  gap: 5px;
}
.battle-mode .top-context,
.battle-mode .currency {
  display: none;
}
.battle-mode .topbar {
  height: 38px;
  flex-basis: 38px;
}
.battle-mode .brand {
  font-size: 13px;
}
.battle-mode .brand-icon {
  height: 24px;
  width: 22px;
  font-size: 20px;
}
.battle-mode .icon-button {
  min-height: 27px;
  min-width: 29px;
  font-size: 15px;
}
.deck-heading {
  height: 31px;
  flex-basis: 31px;
  gap: 7px;
}
.deck-heading > strong {
  font-size: 13px;
  white-space: normal;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}
.lane-buttons {
  position: static;
  display: flex;
  gap: 5px;
  pointer-events: auto;
  flex-shrink: 0;
}
.lane-buttons button {
  font-size: 13px;
  min-height: 30px;
  min-width: 57px;
  padding: 5px 9px;
  box-shadow: none;
}
.dock-tools {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.energy-summary {
  font: 700 13px monospace;
  color: #557a33;
  min-width: 28px;
}
.dock-button {
  border: 1px solid #a3bb85;
  background: #e3edce;
  border-radius: 4px;
  width: 29px;
  min-height: 29px;
  font-size: 13px;
  font-weight: bold;
  padding: 0;
}
.hand {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 1fr;
  gap: 7px;
}
.card {
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: 1fr;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
}
.card > .troop-art {
  padding-top: 13px;
  z-index: 1;
}
.card > .troop-art svg {
  max-height: 82px;
  width: 100%;
  pointer-events: none;
}
.card-info {
  position: relative;
  z-index: 1;
  gap: 5px;
  padding: 7px;
}
.card-info strong {
  font-size: 13px;
  white-space: normal;
  line-height: 1.1;
  overflow: visible;
  text-overflow: clip;
}
.card-power {
  display: block;
  font-size: 13px;
  line-height: 1.15;
}
.card-stats {
  font-size: 13px;
  gap: 4px;
}
.card-stats span {
  padding: 2px 3px;
}
.card.unaffordable {
  background: #f1f3e9;
}
.card.unaffordable:after {
  z-index: 3;
}
.card-energy-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--energy-fill, 100%);
  background: #96bd5433;
  border-right: 1px solid #7ea44155;
  z-index: 0;
  pointer-events: none;
  transition: width 0.15s linear;
}
.card.dragging {
  opacity: 0.5;
}
.card-multiplier {
  right: 3px;
  left: auto;
  bottom: 4px;
  background: #f2f7e1;
  border-radius: 3px;
  padding: 2px;
  font-size: 13px;
}
.drag-ghost {
  position: fixed;
  z-index: 120;
  width: 100px;
  height: 107px;
  background: #edf5d9ee;
  border: 2px solid #588731;
  border-radius: 8px;
  box-shadow: 0 6px 18px #243f2755;
  transform: translate(-50%, -85%);
  pointer-events: none;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 4px;
}
.drag-ghost svg {
  height: 77px;
  width: 88px;
}
.drag-ghost strong {
  font-size: 13px;
  text-align: center;
}
.drag-ghost.invalid {
  border-color: #bc7259;
  opacity: 0.7;
}
.drop-preview {
  position: absolute;
  bottom: 17%;
  transform: translateX(-50%);
  background: #c8ef6eee;
  color: #294b20;
  border: 2px dashed #558632;
  border-radius: 8px;
  padding: 13px 15px;
  font-size: 13px;
  font-weight: bold;
  pointer-events: none;
}
.drop-preview.blocked {
  background: #efdfc7;
  color: #a25e3d;
  border-color: #c99b73;
}
.drag-tutorial {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: min(310px, 87%);
  text-align: center;
  background: #f4f8e7f0;
  border: 1px solid #8aaa60;
  box-shadow: 0 5px 20px #283e2733;
  border-radius: 10px;
  padding: 14px;
  pointer-events: none;
}
.drag-tutorial strong {
  font-size: 17px;
  display: block;
}
.drag-tutorial > span {
  font-size: 13px;
  display: block;
  margin-top: 5px;
  color: #5e7846;
}
.tutorial-path {
  height: 75px;
  position: relative;
  margin-top: 6px;
}
.tutorial-path > span {
  display: block;
  position: absolute;
  font-size: 29px;
  color: #4a743b;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  animation: drag-demo 2s ease-in-out infinite;
}
.tutorial-path > b {
  font-size: 25px;
  color: #7c9e50;
  position: absolute;
  left: 48%;
  top: 25px;
}
.tutorial-path > i {
  font-size: 13px;
  font-style: normal;
  color: #5b7a40;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
@keyframes drag-demo {
  0%,
  15% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  70%,
  85% {
    transform: translate(-50%, -45px);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -45px);
    opacity: 0;
  }
}
.level-transition {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #dce8cbde;
  z-index: 8;
  padding: 12px;
}
.campaign-celebration {
  width: min(430px, 100%);
  background: #f5f8e9f5;
  border: 1px solid #9bb674;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 10px 40px #34522d33;
  animation: celebrate-in 0.35s ease-out;
}
.celebration-sparkles {
  font-size: 27px;
  color: #9eae36;
  letter-spacing: 10px;
  margin-bottom: 10px;
  animation: sparkle 0.7s ease-out;
}
.retry .celebration-sparkles {
  display: none;
}
.campaign-celebration h2 {
  font-size: 26px;
  margin: 7px 0 20px;
}
.campaign-celebration p {
  font-size: 13px;
  line-height: 1.5;
  color: #617848;
  margin: 14px 0;
}
.campaign-celebration .primary {
  width: 100%;
}
.level-map {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-top: 4px;
  isolation: isolate;
}
.level-map:before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12%;
  right: 12%;
  height: 4px;
  background: #c5d7a5;
  z-index: -1;
}
.level-map:after {
  content: '';
  position: absolute;
  top: 24px;
  left: 12%;
  width: var(--path-progress, 55%);
  height: 4px;
  background: #88ae47;
  z-index: -1;
  transform-origin: left;
  animation: map-progress 0.9s 0.25s both;
}
.map-stop {
  width: 25%;
  min-width: 0;
}
.map-stop > span {
  display: grid;
  place-items: center;
  margin: 0 auto;
  width: 44px;
  height: 44px;
  border: 2px solid #c0d19f;
  background: #ecf2de;
  color: #7b9160;
  border-radius: 50%;
  font: 700 17px monospace;
}
.map-stop.complete > span {
  background: #c6e892;
  border-color: #84a952;
  color: #49732b;
}
.map-stop.just-cleared.complete > span {
  animation: node-pop 0.5s 0.15s both;
}
.map-stop.next-level > span {
  border-color: #688d3a;
  box-shadow: 0 0 0 4px #a4cd5d2b;
  animation: node-pop 0.5s 0.9s both;
}
.map-stop small {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #6b844e;
  margin-top: 9px;
  line-height: 1.3;
}
@keyframes celebrate-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes map-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes node-pop {
  0% {
    transform: scale(0.8);
  }
  70% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes sparkle {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.enemy-intel {
  top: 9px;
}
.battle-toast {
  top: 40%;
  font-size: 13px;
}
.start-overlay {
  bottom: 24%;
  padding: 13px;
  gap: 7px;
}
@media (max-width: 700px) {
  .workspace main {
    padding: 5px 6px;
  }
  .hand-dock {
    height: 146px;
    flex-basis: 146px;
  }
  .hand {
    gap: 5px;
  }
  .card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .card > .troop-art {
    padding-top: 8px;
  }
  .card > .troop-art svg {
    width: 72px;
    max-height: 52px;
  }
  .card-top {
    top: 4px;
    left: 4px;
    right: 4px;
  }
  .cost {
    font-size: 13px;
    padding: 2px 3px;
  }
  .card-info {
    padding: 4px;
    gap: 3px;
  }
  .card-info strong {
    font-size: 13px;
    line-height: 1.05;
    min-height: 21px;
    display: flex;
    align-items: center;
  }
  .card-power {
    font-size: 13px;
    white-space: normal;
    line-height: 1.1;
  }
  .card-stats {
    font-size: 13px;
    justify-content: space-between;
    gap: 2px;
  }
  .card-stats span {
    padding: 2px;
    flex: 1;
    text-align: center;
  }
  .deck-heading > strong {
    font-size: 13px;
  }
  .lane-buttons button {
    font-size: 13px;
    min-width: 48px;
    padding: 4px 6px;
  }
  .dock-tools {
    gap: 4px;
  }
  .dock-button {
    width: 27px;
    min-height: 28px;
  }
  .energy-summary {
    font-size: 13px;
    min-width: 24px;
  }
  .campaign-celebration {
    padding: 18px 13px;
  }
  .campaign-celebration h2 {
    font-size: 23px;
    margin-bottom: 16px;
  }
  .map-stop > span {
    height: 39px;
    width: 39px;
  }
  .level-map:before,
  .level-map:after {
    top: 22px;
  }
  .celebration-sparkles {
    font-size: 24px;
    letter-spacing: 7px;
  }
  .start-overlay > span {
    display: block;
  }
}
@media (max-height: 560px) {
  .battle-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .hand-dock {
    height: 107px;
    flex-basis: 107px;
  }
  .deck-heading {
    height: 28px;
    flex-basis: 28px;
  }
  .hand {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }
  .card {
    grid-template-columns: 43px minmax(0, 1fr);
    grid-template-rows: 1fr;
  }
  .card > .troop-art svg {
    width: 55px;
    max-height: 52px;
  }
  .card-info strong {
    font-size: 13px;
    min-height: 0;
  }
  .card-power {
    font-size: 13px;
  }
  .card-stats {
    font-size: 13px;
  }
  .campaign-celebration {
    padding: 10px;
    width: min(430px, 95%);
  }
  .celebration-sparkles {
    display: none;
  }
  .campaign-celebration h2 {
    font-size: 18px;
    margin: 3px 0 5px;
  }
  .campaign-celebration .eyebrow {
    font-size: 13px;
  }
  .map-stop > span {
    width: 29px;
    height: 29px;
    font-size: 13px;
  }
  .map-stop small {
    font-size: 13px;
    margin-top: 3px;
  }
  .level-map:before,
  .level-map:after {
    top: 17px;
  }
  .campaign-celebration p {
    font-size: 13px;
    margin: 6px 0;
  }
  .campaign-celebration .primary {
    min-height: 30px;
    font-size: 13px;
    padding: 6px;
  }
  .drag-tutorial {
    padding: 9px;
    top: 55%;
  }
  .drag-tutorial strong {
    font-size: 13px;
  }
  .drag-tutorial > span {
    font-size: 13px;
  }
  .tutorial-path {
    height: 39px;
  }
  .tutorial-path > span {
    font-size: 23px;
    animation-name: drag-demo-short;
  }
  .tutorial-path > b {
    display: none;
  }
  .tutorial-path > i {
    font-size: 13px;
  }
  .start-overlay {
    bottom: 15%;
    gap: 5px;
    padding: 9px;
  }
  .start-overlay > span {
    display: none;
  }
  .start-overlay > strong {
    font-size: 14px;
  }
  .start-overlay .primary {
    min-height: 32px;
    padding: 7px;
  }
  .drop-preview {
    font-size: 13px;
    padding: 7px;
  }
}
@keyframes drag-demo-short {
  0%,
  15% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  70%,
  85% {
    transform: translate(-50%, -24px);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -24px);
    opacity: 0;
  }
}
@media (max-width: 380px) {
  .deck-heading > strong {
    font-size: 13px;
  }
  .lane-buttons button {
    min-width: 43px;
    font-size: 13px;
  }
  .card-info strong {
    font-size: 13px;
  }
  .card-power {
    font-size: 13px;
  }
  .card-stats {
    font-size: 13px;
  }
  .dock-tools {
    gap: 3px;
  }
  .dock-button {
    width: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tutorial-path > span {
    animation: none;
  }
  .campaign-celebration,
  .celebration-sparkles,
  .level-map:after,
  .map-stop > span {
    animation: none !important;
  }
}
/* A winding campaign route animates toward the next playable node. */
.level-map {
  height: 94px;
  align-items: flex-start;
}
.level-map:before,
.level-map:after {
  display: none;
}
.map-stop:nth-of-type(even) {
  margin-top: 34px;
}
.map-road {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 94px;
  z-index: -1;
  overflow: visible;
}
.map-road path {
  fill: none;
  stroke: #c5d7a5;
  stroke-width: 5;
  stroke-linecap: round;
}
.map-road .map-road-fill {
  stroke: #88ae47;
  stroke-dasharray: var(--route-progress) 1;
  animation: road-reveal 0.9s 0.25s both;
}
@keyframes road-reveal {
  from {
    opacity: 0;
    stroke-dasharray: 0 1;
  }
  to {
    opacity: 1;
    stroke-dasharray: var(--route-progress) 1;
  }
}
@media (max-width: 700px) {
  .map-road path {
    stroke-width: 5;
  }
  .level-map {
    height: 94px;
  }
  .map-stop:nth-of-type(even) {
    margin-top: 34px;
  }
}
@media (max-height: 560px) {
  .level-map {
    height: 43px;
  }
  .map-road {
    height: 43px;
  }
  .map-stop:nth-of-type(even) {
    margin-top: 10px;
  }
  .map-stop small {
    display: none;
  }
  .map-stop > span {
    width: 27px;
    height: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .map-road .map-road-fill {
    animation: none;
  }
}

@media (max-height: 560px) {
  .map-road {
    top: 10px;
    height: 28px;
  }
}

#login-form {
  display: grid;
  gap: 14px;
}
#login-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
#login-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #879c6d;
  border-radius: 8px;
  background: #f7faef;
  color: #202c27;
  font: inherit;
}
#login-form input {
  font-size: 16px;
}
#login-error {
  color: #9b392b;
  min-height: 1.4em;
}
