@charset "UTF-8";
/* Command instruments. These selectors deliberately exclude map city buttons. */
#battle-screen .battle-status,
#battle-screen .dispatch-panel {
  background: #102e32;
  color: var(--r14-paper);
  box-shadow: none;
}

#battle-screen .battle-status {
  border-bottom: 1px solid #a7814b66;
}

#battle-screen .battle-status .status-stat > span,
#battle-screen .battle-status .battle-clock small {
  color: #b2c2b8;
  font-weight: 400;
}

#battle-screen .battle-status .status-stat > b,
#battle-screen .battle-status .battle-clock > b {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -.03em;
  color: #f3e8ce;
}

#battle-screen .battle-status .icon-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-left: 1px solid #bd8d4b66;
  border-radius: 0;
  color: var(--r14-gold);
  background: transparent;
  box-shadow: none;
  transition: background-color 100ms, color 100ms;
}

#battle-screen #pause-button .r9-icon {
  width: 21px;
  height: 23px;
  stroke-width: 2.2;
}

#battle-screen .dispatch-panel {
  border-top: 1px solid #bd8d4b99;
  box-shadow: inset 0 2px 0 #e7cb860b;
}

#battle-screen .dispatch-heading > span {
  color: #c5d0c3;
  font-size: 11px;
  font-weight: 400;
}

#battle-screen .dispatch-actions {
  gap: 12px;
  align-items: center;
}

#battle-screen .dispatch-actions .ratio-buttons {
  gap: 0;
  min-width: 0;
  border: 1px solid #829b854d;
  border-radius: 3px;
  background: #163c3f;
  box-shadow: inset 0 1px 0 #fff5da08;
}

#battle-screen .dispatch-actions .ratio-buttons button {
  position: relative;
  isolation: isolate;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 2px 8px;
  border: 0;
  border-right: 1px solid #829b852b;
  border-radius: 0;
  background: transparent;
  color: #b4c6ba;
  box-shadow: none;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.05em;
  transition: background-color 100ms, color 100ms;
}

#battle-screen .dispatch-actions .ratio-buttons button:last-child {
  border-right: 0;
}

#battle-screen .dispatch-actions .ratio-buttons button > span {
  margin-left: 1px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 400;
}

/* The graduation line and pointer stay inside the full rectangular hit area. */
#battle-screen .dispatch-actions .ratio-buttons button::before {
  content: "";
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: 4px;
  height: 4px;
  background: repeating-linear-gradient(90deg, #9cb3a36b 0 1px, transparent 1px 8px);
  border-bottom: 1px solid #9cb3a34d;
  pointer-events: none;
}

#battle-screen .dispatch-actions .ratio-buttons button::after {
  content: "";
  display: block;
  position: absolute;
  top: 2px;
  left: calc(50% - 3px);
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid transparent;
  pointer-events: none;
}

#battle-screen .dispatch-actions .ratio-buttons button.active,
#battle-screen .dispatch-actions .ratio-buttons button[aria-pressed="true"] {
  background: linear-gradient(#37615a66, #244e4844);
  border-color: #829b852b;
  color: #f1d491;
  box-shadow: inset 0 -2px 0 #cda866;
  font-weight: 700;
}

#battle-screen .dispatch-actions .ratio-buttons button[aria-pressed="true"]::before {
  background: repeating-linear-gradient(90deg, #e7cb86 0 1px, transparent 1px 8px);
  border-bottom-color: #bd8d4b;
}

#battle-screen .dispatch-actions .ratio-buttons button[aria-pressed="true"]::after {
  border-top-color: #f1d491;
}

#battle-screen .select-all-button {
  position: relative;
  min-width: 58px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #b692575f;
  border-radius: 3px;
  color: #e4cf9d;
  background: #1a3e3e;
  box-shadow: inset 0 1px 0 #f3e8ce0d;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  transition: background-color 100ms, color 100ms;
}

#battle-screen .select-all-button[aria-pressed="true"] {
  color: #fff0bd;
  background: #31564a;
  border-color: #cfb16a;
  box-shadow: inset 0 -2px 0 #cfb16a;
}

#battle-screen .select-all-button:disabled {
  color: #80978d;
  border-color: #829b8533;
  background: #153639;
  box-shadow: none;
}

#battle-screen .map-controls,
#battle-screen .tactics-drawer > summary,
#battle-screen .battle-scoreboard .rank-heading {
  background: #102e32f5;
  border: 1px solid #b492576f;
  border-radius: 3px;
  color: #e9dfc4;
  box-shadow: 0 2px 4px #102a3226;
}

#battle-screen .map-controls {
  gap: 0;
  padding: 2px;
}

#battle-screen .map-controls button {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 1px;
  background: transparent;
  color: #d5decf;
  box-shadow: none;
  font-weight: 500;
  transition: background-color 100ms, color 100ms;
}

#battle-screen .map-controls button[data-action="map-home"],
#battle-screen .map-controls button[data-action="map-front"],
#battle-screen .map-controls button[data-action="map-fit"] {
  padding: 0 3px;
  font-size: 11px !important;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
}

#battle-screen .map-controls button[data-action="zoom-in"],
#battle-screen .map-controls button[data-action="zoom-out"] {
  color: #f1d491;
  background: #294b49;
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
}

#battle-screen .map-controls button[data-action="zoom-in"] {
  order: 2;
  border-radius: 2px 0 0 2px;
}

#battle-screen .map-controls button[data-action="zoom-out"] {
  order: 3;
  border-left: 1px solid #b4925752;
  border-radius: 0 2px 2px 0;
}

#battle-screen .map-controls button[data-action="map-home"] {
  order: 0;
}

#battle-screen .map-controls button[data-action="map-front"] {
  order: 1;
}

#battle-screen .map-controls button[data-action="map-fit"] {
  order: 5;
}

#battle-screen .map-controls #map-zoom {
  order: 4;
  color: #9db6a8;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
}

#battle-screen .battle-scoreboard .rank-heading {
  min-width: 100px;
  min-height: 44px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .03em;
}

#battle-screen .battle-scoreboard .rank-heading[aria-expanded="true"],
#battle-screen .tactics-drawer[open] > summary {
  border-color: #d4b77a;
  color: #f1d491;
  background: #244943;
}

#battle-screen .tactics-drawer > summary {
  min-width: 82px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 500;
  gap: 12px;
}

#battle-screen .tactics-drawer > summary > span {
  color: #cfa967;
}

#battle-screen .tactics-content {
  border-radius: 3px;
  border-color: #a78b58;
  box-shadow: 0 6px 22px #102a323d;
}

#battle-screen .route-buttons button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 2px;
  border: 1px solid #a9b9a2;
  background: #f3efdc;
  color: #34584d;
  font-size: 12px;
}

#battle-screen .route-buttons button[aria-pressed="true"] {
  background: #254b45;
  border-color: #254b45;
  color: #fff0bd;
  box-shadow: inset 0 -2px 0 #c6a367;
}

#battle-screen .battle-status .icon-button:active,
#battle-screen .map-controls button:active,
#battle-screen .tactics-drawer > summary:active,
#battle-screen .battle-scoreboard .rank-heading:active {
  color: #fff0bd;
  background-color: #35584f;
}

#battle-screen .dispatch-actions .ratio-buttons button:active,
#battle-screen .select-all-button:not(:disabled):active {
  background-color: #3b6154;
  color: #fff0bd;
}

#battle-screen .pause-overlay > div {
  border-radius: 4px;
  border-color: #ab8c53;
  box-shadow: 0 10px 35px #102a3245;
}

#pause-overlay h2 { color: #f3e8ce; }
#pause-overlay .player-trait { color: #d4c7a3; background: transparent; border: 0; box-shadow: none; }
#pause-overlay #player-trait b { color: #f3e8ce; }
#pause-overlay #player-trait span { color: #d4c7a3; }
#pause-overlay .pause-symbol { color: #e7cb86; }
#pause-overlay .text-button { color: #d4c7a3; min-height: 44px; }

.result-card {
  border-radius: 4px;
  border-color: #ad8d53;
  background: linear-gradient(145deg, #1b3f40, #102e32);
  box-shadow: 0 16px 48px #0b242b80;
}

.result-card .result-stats b {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -.04em;
}

.result-card .result-actions {
  gap: 9px;
}

.result-card .result-actions .quiet-button {
  min-height: 44px;
  height: auto;
  color: #dfd6ba;
  background: #1a4041;
  border: 1px solid #809b864d;
  border-radius: 3px;
  font-size: 13px;
  box-shadow: none;
}

.result-card .result-menu-button {
  margin: 0;
  font-size: 12px;
  color: #b1c0b0;
}

@media (max-height: 520px) and (orientation: landscape) {
  #app #result-dialog .command-button {
    white-space: nowrap;
    padding: 8px 10px;
    gap: 8px;
    font-size: 18px;
  }
  #app #result-dialog .command-button .command-seal { flex-basis: 24px; width: 24px; height: 30px; }
  #battle-screen .dispatch-actions {
    gap: 9px;
  }

  #battle-screen .dispatch-heading > span {
    font-size: 10px;
  }

  #battle-screen .battle-scoreboard {
    width: 100px;
  }

  #battle-screen .map-controls {
    bottom: calc(67px + var(--r3-safe-bottom));
  }

  #battle-screen .dispatch-actions .ratio-buttons button {
    font-size: 18px;
  }
}

@media (max-width: 580px) and (orientation: portrait) {
  #battle-screen .dispatch-panel {
    --dock-height: 86px;
    height: calc(86px + var(--r3-safe-bottom));
    padding-top: 31px;
  }

  #battle-screen .dispatch-actions {
    width: 100%;
  }

  #battle-screen .dispatch-heading {
    top: 10px;
    max-width: calc(100% - 24px);
  }

  #battle-screen {
    --dock-height: 86px;
  }

  #battle-screen .map-controls {
    bottom: calc(98px + var(--r3-safe-bottom));
  }

  #battle-screen .tactics-drawer {
    bottom: calc(154px + var(--r3-safe-bottom));
  }

  #battle-screen .minimap-panel {
    bottom: calc(98px + var(--r3-safe-bottom));
    width: 94px;
    padding: 4px;
  }

  #battle-screen #minimap { width: 84px; height: 64px; }

  #battle-screen .dispatch-actions .ratio-buttons button {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #battle-screen .battle-status .icon-button,
  #battle-screen .dispatch-actions .ratio-buttons button,
  #battle-screen .select-all-button,
  #battle-screen .map-controls button {
    transition: none;
  }
}
