@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap");
:root {
  color-scheme: dark;
  --ink: #ecede2;
  --muted: #a9b5ad;
  --line: #c6c9aa28;
  --panel: #17282b;
  --sand: #dccca2;
  --mint: #a8c9b6;
  --blue: #87bee9;
  --red: #e5927c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #122426;
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 1px solid var(--line);
  background: #ffffff04;
  border-radius: 3px;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
button:hover {
  background: #dcdab217;
  border-color: #c7d2ba66;
}
button:active {
  transform: translateY(1px);
}
button:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 2px solid #b3d9c7;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.4;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
button span {
  float: right;
}
h1,
h2,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
}
h1 {
  font-size: 46px;
}
h2 {
  font-size: 26px;
  margin: 22px 0 9px;
}
p {
  color: var(--muted);
  line-height: 1.7;
}
kbd {
  font:
    10px "DM Sans",
    sans-serif;
  opacity: 0.4;
  margin-left: 8px;
}
.screen {
  position: fixed;
  inset: 0;
}
.menu {
  background: #153235 url("/assets/breakwater.webp") center center/cover
    no-repeat;
}
.menu-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(9, 26, 30, 0.95) 0%,
      rgba(13, 30, 32, 0.76) 25%,
      rgba(11, 29, 31, 0.16) 57%,
      transparent 80%
    ),
    linear-gradient(0deg, rgba(9, 23, 27, 0.9), transparent 25%);
}
.menu-content {
  position: absolute;
  left: 7.5%;
  top: 10%;
  width: 350px;
  max-width: 75vw;
}
.wordmark {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 99px;
  letter-spacing: 17px;
  line-height: 1;
  color: #eee9d7;
  position: relative;
  margin: 0 0 37px;
  text-shadow: 0 3px 25px #0004;
}
.wordmark-line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, #d9caa3aa, transparent);
  width: 275px;
  margin-top: 22px;
}
.menu-tagline {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 29px;
  color: #d9ded3;
  line-height: 1.3;
  letter-spacing: 0.1px;
  margin-bottom: 34px;
}
.menu-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu-actions button,
.pause-actions button {
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
}
.primary {
  background: var(--sand);
  border: 1px solid var(--sand);
  color: #263333;
  font-weight: 600;
  padding: 14px 20px;
  min-height: 46px;
}
.primary:hover {
  background: #efe4c3;
  border-color: #efe4c3;
}
.primary:disabled {
  opacity: 0.65;
}
.menu-actions button:not(.primary) {
  border-color: transparent;
  border-bottom: 1px solid #d4d9be1c;
  padding-left: 2px;
}
.menu-settings {
  display: grid;
  gap: 7px;
  margin-top: 20px;
  color: #a7b5af;
  font-size: 12px;
}
.menu-settings select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
  background: transparent;
  color: #d3dbd0;
}
.menu-settings label.check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 5px;
}
.check input {
  accent-color: #a4bca8;
}
#load-wrap {
  margin-top: 22px;
  font-size: 11px;
  color: #adbaaf;
}
.load-track {
  height: 2px;
  background: #ffffff16;
  overflow: hidden;
  margin-bottom: 9px;
}
.load-track i {
  display: block;
  height: 100%;
  width: 0;
  background: #d9cba3;
  transition: width 0.4s;
}
.menu-bottom {
  position: absolute;
  bottom: 30px;
  left: 7.5%;
  right: 4%;
  display: flex;
  gap: 30px;
  font-size: 11px;
  color: #bdc8be;
}
.menu-bottom span:last-child {
  margin-left: auto;
  opacity: 0.6;
}
.loading {
  z-index: 20;
  background:
    linear-gradient(#10272beb, #10272bf0),
    url("/assets/breakwater.webp") center/cover;
  display: grid;
  place-items: center;
  text-align: center;
}
.loading > div {
  width: min(520px, 80vw);
}
.loading h1 {
  margin: 28px 0 10px;
}
.loading .compass {
  font-size: 60px;
  color: #d2c49d;
  display: block;
  animation: turn 10s linear infinite;
}
.loading .load-track {
  margin: 45px auto 20px;
  width: 280px;
}
.loading .load-track i {
  width: 60%;
  animation: loading 1.4s ease-in-out infinite;
}
.loading #loading-tip {
  font-size: 12px;
  color: #a5b6ad;
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes loading {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(170%);
  }
}
#game {
  height: 100dvh;
  position: relative;
}
#battlefield {
  position: absolute;
  inset: 48px 0 194px;
  width: 100%;
  height: calc(100% - 242px);
  outline: none !important;
  touch-action: none;
}
.topbar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 23px;
  background: linear-gradient(0deg, #1b2b2d, #233335);
  border-bottom: 1px solid #dac89d55;
  box-shadow: 0 3px 12px #0004;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
}
.small-brand {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 23px;
  letter-spacing: 4px;
  border: 0;
  padding: 2px;
  background: none;
}
.separator {
  height: 20px;
  width: 1px;
  background: var(--line);
}
.resource {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b9c4ba;
}
.resource strong {
  font-size: 16px;
  font-weight: 500;
  color: #eeeadd;
  font-variant-numeric: tabular-nums;
}
.resource small {
  font-size: 10px;
  color: #8fa99c;
  margin-left: 6px;
}
.crate {
  font-size: 27px;
  color: #d6bd87;
}
.scoreboard {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 19px;
  font-variant-numeric: tabular-nums;
}
.scoreboard strong {
  font-weight: 500;
  min-width: 34px;
  font-size: 17px;
}
#match-clock {
  font-size: 16px;
  letter-spacing: 2px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 0 24px;
  color: #d4d9ca;
}
.blue-mark {
  color: var(--blue);
}
.red-mark {
  color: var(--red);
}
.top-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.top-actions button {
  width: 29px;
  height: 29px;
  font-size: 16px;
  border-color: transparent;
}
.mission-card {
  position: absolute;
  top: 68px;
  left: 23px;
  width: 278px;
  background: #14272be8;
  border: 1px solid #b1c0aa38;
  box-shadow: 0 3px 13px #0002;
  padding: 14px 16px;
  border-radius: 3px;
  pointer-events: auto;
}
.mission-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mission-card strong {
  font-size: 13px;
  font-weight: 500;
}
.mission-card button {
  margin-left: auto;
  border: 0;
  padding: 0 4px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border: 1px solid #cabb8d;
  transform: rotate(45deg);
}
.mission-card p {
  font-size: 11px;
  line-height: 1.65;
  margin: 10px 0;
}
.site-status {
  display: flex;
  gap: 12px;
  font-size: 10px;
  margin-top: 10px;
  color: #bdc9bc;
}
.site-status span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.view-switch {
  position: absolute;
  right: 22px;
  top: 68px;
  display: flex;
  border: 1px solid var(--line);
  background: #172a2de8;
  border-radius: 3px;
  padding: 3px;
  gap: 2px;
}
.view-switch button {
  border: 0;
  padding: 8px 12px;
  color: #bbc7bb;
  font-size: 11px;
}
.view-switch button.active {
  background: #c8d6b21c;
  color: #eee5cd;
}
.view-switch kbd {
  margin-left: 8px;
}
#notifications {
  position: absolute;
  left: 24px;
  top: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.notice {
  padding: 9px 13px;
  background: #182b2edc;
  border-left: 2px solid #a6c5b1;
  color: #d9e0d3;
  max-width: 350px;
  font-size: 11px;
  animation: appear 0.3s ease;
}
.notice.danger {
  border-left-color: #dca17d;
}
.notice time {
  opacity: 0.4;
  margin-right: 9px;
}
.camera-controls {
  position: absolute;
  right: 24px;
  bottom: 214px;
  display: flex;
  gap: 5px;
}
.camera-controls button {
  width: 29px;
  height: 29px;
  background: #14272cdd;
}
.command-deck {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  height: 170px;
  display: grid;
  grid-template-columns: 350px 1fr 270px;
  background: linear-gradient(#223234, #182a2c);
  border-top: 1px solid #bead7b88;
  box-shadow: 0 -5px 20px #0003;
}
.selection-panel {
  display: flex;
  gap: 13px;
  padding: 18px 15px 12px 22px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.portrait {
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  align-self: center;
  background: radial-gradient(ellipse, #5d665453, #16282b22);
  border: 1px solid #b3bea437;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait img {
  width: 96px;
  max-height: 96px;
  object-fit: contain;
}
.portrait > span {
  font-size: 45px;
  color: #b7bda457;
}
.selection-details {
  min-width: 0;
  flex: 1;
  padding-top: 9px;
}
#selection-title {
  font-size: 15px;
  font-weight: 500;
  color: #e3e6d9;
  white-space: nowrap;
}
#selection-subtitle {
  font-size: 10px;
  color: #9fafaa;
  margin: 5px 0 13px;
  line-height: 1.5;
}
.meter {
  height: 3px;
  background: #ffffff14;
  margin: 6px 0;
}
.meter i {
  height: 3px;
  display: block;
  background: #9cc4a5;
}
.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #afbcaf;
}
.ammo {
  display: flex;
  gap: 4px;
  margin: 7px 0;
}
.ammo i {
  width: 11px;
  height: 5px;
  border: 1px solid #8d9783;
  background: #c7b88a;
}
.ammo i.empty {
  background: transparent;
  opacity: 0.4;
}
#selection-status {
  font-size: 10px;
  color: #9db6aa;
  line-height: 1.5;
  max-width: 190px;
}
.command-panel {
  min-width: 0;
  padding: 0 18px;
}
.deck-tabs {
  height: 41px;
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.deck-tabs button {
  border: 0;
  background: none;
  height: 41px;
  padding: 0;
  border-bottom: 2px solid transparent;
  color: #9faea7;
  font-size: 11px;
}
.deck-tabs button.active {
  border-bottom-color: #d4c297;
  color: #e3dfcc;
}
#ai-status {
  font-size: 9px;
  color: #92aa9c;
  margin-left: auto;
}
.actions {
  display: flex;
  gap: 7px;
  padding: 12px 0 8px;
  align-items: flex-start;
  overflow-x: auto;
}
.action {
  min-width: 65px;
  max-width: 130px;
  height: 77px;
  border: 1px solid #a5b39730;
  background: #17282b66;
  padding: 7px 8px;
  font-size: 10px;
  text-align: center;
  position: relative;
  flex: 1;
  line-height: 1.35;
}
.action img {
  height: 37px;
  width: 100%;
  object-fit: contain;
  display: block;
  margin-top: -3px;
}
.action .glyph {
  font-size: 25px;
  font-family: Georgia, serif;
  color: #d1cfb4;
  height: 35px;
  display: block;
  float: none;
}
.action small {
  display: block;
  color: #b0bda8;
  font-size: 9px;
  margin-top: 3px;
}
.action kbd {
  position: absolute;
  right: 4px;
  top: 3px;
  font-size: 8px;
  margin: 0;
}
.action .cost {
  font-size: 9px;
  color: #d9c99e;
}
.action:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}
#queue-status {
  font-size: 10px;
  color: #a6b7aa;
  min-height: 18px;
}
.queue-track {
  display: inline-block;
  width: 60px;
  height: 3px;
  background: #ffffff15;
  vertical-align: middle;
  margin: 0 7px;
}
.queue-track i {
  display: block;
  height: 100%;
  background: #cfbf96;
}
.minimap-panel {
  padding: 10px;
  border-left: 1px solid var(--line);
  overflow: hidden;
}
.minimap-heading {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin: 0 2px 5px;
  color: #c0c9bb;
}
.minimap-heading span:last-child {
  font-size: 9px;
  color: #899d91;
}
#minimap {
  width: 100%;
  height: 130px;
  cursor: crosshair;
  border: 1px solid #c3bc9433;
  background: #11272a;
}
#game-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  padding: 0 23px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #112124;
  border-top: 1px solid #ffffff07;
  font-size: 9px;
  color: #83978e;
}
#game-bottom button {
  border: 0;
  background: none;
  font-size: 9px;
  color: #a5b5a7;
  padding: 2px;
}
#save-replay {
  margin-left: auto;
}
#order-hint {
  position: absolute;
  bottom: 212px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: #182d2fec;
  color: #e7d7ae;
  border: 1px solid #dfc58b65;
  pointer-events: none;
  font-size: 12px;
  white-space: nowrap;
}
dialog {
  background: linear-gradient(145deg, #233638, #14282b);
  color: var(--ink);
  border: 1px solid #c4b88c66;
  border-radius: 5px;
  padding: 38px;
  box-shadow: 0 24px 100px #0007;
  width: min(850px, 92vw);
  max-height: 90dvh;
}
dialog::backdrop {
  background: #071c22aa;
  backdrop-filter: blur(5px);
}
.dialog-close {
  position: absolute;
  top: 13px;
  right: 15px;
  border: 0;
  font-size: 25px;
  padding: 0 8px;
  background: none;
  color: #abbcaf;
}
dialog h1 {
  margin-bottom: 12px;
}
.lead {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 24px;
  color: #b9c8b9;
}
.manual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}
.manual-grid p {
  font-size: 12px;
  line-height: 1.75;
  margin-bottom: 8px;
}
.manual-foot {
  font-size: 10px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.dialog-done {
  width: 200px;
  margin-top: 8px;
}
.controls-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 12px;
  font-size: 11px;
  color: #9fb3a9;
}
.controls-list b {
  font-weight: 400;
  color: #d2dbc9;
}
#pause-dialog {
  width: 420px;
}
.pause-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.form-row {
  display: flex;
  gap: 15px;
}
form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  margin: 15px 0;
  flex: 1;
}
select,
input[type="number"] {
  color: #e1e5d8;
  background: #122528;
  border: 1px solid #b6c6aa44;
  border-radius: 3px;
  padding: 10px;
  max-width: 100%;
}
select option {
  background: #182d30;
}
#route-dialog {
  width: 520px;
}
#route-dialog .primary {
  width: 100%;
  margin: 12px 0;
}
#existing-routes {
  font-size: 11px;
  color: #a7bbae;
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.route-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.route-row button {
  padding: 5px 10px;
}
#results {
  width: 520px;
}
#results > button {
  margin: 15px 10px 0 0;
  padding: 12px 18px;
}
#result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 24px 0;
}
#result-stats > div {
  border: 1px solid var(--line);
  padding: 18px;
  font-size: 12px;
  color: #b5c5b8;
}
#result-stats strong {
  display: block;
  font-size: 32px;
  color: #eee4c9;
  font-weight: 400;
  margin-bottom: 4px;
}
#error-banner {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #713e30;
  padding: 15px 25px;
  border: 1px solid #d8a289;
  z-index: 99;
  max-width: 90vw;
}
#replay-timeline {
  position: absolute;
  bottom: 196px;
  left: 25%;
  right: 25%;
  background: #172b2eec;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#replay-timeline input {
  flex: 1;
}
#replay-timeline button {
  padding: 4px 8px;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1150px) {
  .command-deck {
    grid-template-columns: 290px 1fr 210px;
  }
  .selection-panel {
    padding-left: 12px;
    gap: 8px;
  }
  .portrait {
    width: 75px;
    flex-basis: 75px;
  }
  .portrait img {
    width: 73px;
  }
  #selection-title {
    font-size: 13px;
  }
  .command-panel {
    padding: 0 12px;
  }
  .deck-tabs {
    gap: 12px;
  }
  .deck-tabs kbd,
  #ai-status {
    display: none;
  }
  .scoreboard {
    left: 58%;
  }
  .resource small {
    display: none;
  }
  .topbar {
    gap: 15px;
  }
  .action {
    min-width: 57px;
    font-size: 9px;
    padding: 7px 4px;
  }
  .menu-content {
    top: 7%;
  }
  .wordmark {
    font-size: 85px;
  }
  .menu-tagline {
    font-size: 26px;
  }
}
@media (max-height: 760px) {
  .menu-content {
    top: 6%;
  }
  .wordmark {
    font-size: 77px;
    margin-bottom: 20px;
  }
  .wordmark-line {
    margin-top: 15px;
  }
  .menu-tagline {
    font-size: 24px;
    margin-bottom: 22px;
  }
  .menu-actions button {
    padding: 11px 14px;
  }
  .menu-settings {
    margin-top: 12px;
  }
  .menu-bottom {
    bottom: 18px;
  }
  #load-wrap {
    margin-top: 12px;
  }
  .manual-grid p {
    font-size: 11px;
  }
  dialog {
    padding: 27px;
  }
  h1 {
    font-size: 38px;
  }
  h2 {
    font-size: 22px;
  }
}
@media (max-width: 800px) {
  .command-deck {
    grid-template-columns: 220px 1fr;
    height: 154px;
  }
  .minimap-panel {
    display: none;
  }
  .selection-panel {
    padding: 10px;
  }
  .portrait {
    width: 58px;
    height: 70px;
    flex-basis: 58px;
  }
  .portrait img {
    width: 56px;
  }
  .selection-details {
    padding-top: 2px;
  }
  #selection-title {
    font-size: 12px;
    white-space: normal;
  }
  .topbar {
    padding: 0 12px;
    gap: 10px;
  }
  .small-brand {
    font-size: 18px;
  }
  .formations-count,
  .resource > span:last-of-type,
  .separator {
    display: none;
  }
  .scoreboard {
    left: 57%;
    gap: 8px;
  }
  #match-clock {
    padding: 0 10px;
    font-size: 13px;
    letter-spacing: 0;
  }
  .scoreboard strong {
    font-size: 14px;
    min-width: 22px;
  }
  .top-actions {
    gap: 2px;
  }
  .mission-card {
    top: 61px;
    left: 12px;
    width: 230px;
    padding: 11px;
  }
  .view-switch {
    top: 61px;
    right: 12px;
  }
  .view-switch button {
    padding: 7px;
  }
  .view-switch kbd {
    display: none;
  }
  #battlefield {
    bottom: 178px;
    height: calc(100% - 226px);
  }
  .camera-controls {
    bottom: 194px;
  }
  #notifications {
    top: 200px;
    left: 12px;
  }
  #game-bottom {
    padding: 0 12px;
  }
  #control-help {
    max-width: 62%;
    white-space: nowrap;
    overflow: hidden;
  }
  .manual-grid {
    grid-template-columns: 1fr;
  }
  .menu-bottom span:nth-child(2) {
    display: none;
  }
  .menu-content {
    left: 8%;
    width: 310px;
  }
  .menu-shade {
    background: linear-gradient(90deg, #0b2028ee, #0b202899 65%, #0b202833);
  }
  .deck-tabs {
    gap: 14px;
  }
  .deck-tabs button {
    font-size: 10px;
  }
  .actions {
    padding-top: 8px;
  }
  .action {
    height: 71px;
    min-width: 55px;
  }
  .action .glyph {
    height: 29px;
  }
  #order-hint {
    bottom: 193px;
    max-width: 95vw;
    white-space: normal;
  }
  .resource {
    gap: 4px;
  }
  .resource strong {
    font-size: 14px;
  }
  .mission-card p {
    font-size: 10px;
  }
  #result-stats {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 801px) and (max-width: 1050px) {
  .command-deck {
    grid-template-columns: 255px 1fr 180px;
  }
  .deck-tabs {
    gap: 15px;
  }
  .action {
    min-width: 56px;
    height: 83px;
    font-size: 9px;
    padding: 5px 3px;
  }
  .action small {
    font-size: 8px;
  }
  .selection-panel {
    gap: 8px;
  }
  .portrait {
    width: 65px;
    flex-basis: 65px;
    height: 80px;
  }
  .portrait img {
    width: 63px;
  }
  #queue-status {
    font-size: 9px;
  }
  .actions {
    padding-top: 8px;
  }
  .minimap-panel {
    padding: 8px;
  }
  .minimap-heading {
    font-size: 9px;
  }
  .resource {
    font-size: 11px;
  }
  .scoreboard {
    left: 59%;
    gap: 12px;
  }
  #match-clock {
    padding: 0 15px;
  }
  .topbar {
    gap: 12px;
  }
}

#force-roster {
  position: absolute;
  left: 23px;
  bottom: 210px;
  display: flex;
  gap: 5px;
  max-width: 55vw;
  overflow-x: auto;
  background: #13282c80;
  padding: 5px;
  border-radius: 3px;
}
#force-roster button {
  width: 40px;
  min-width: 40px;
  height: 38px;
  background: #183033cf;
  border: 1px solid #b6c2a330;
}
#force-roster button.active {
  border-color: #b3d9c1;
  background: #819e8033;
}
#force-roster img {
  width: 34px;
  height: 31px;
  object-fit: contain;
}
#force-roster:empty {
  display: none;
}
@media (max-width: 800px) {
  #force-roster {
    bottom: 192px;
    left: 12px;
    max-width: 70vw;
  }
  #force-roster button {
    width: 33px;
    min-width: 33px;
    height: 33px;
  }
  #force-roster img {
    width: 29px;
    height: 28px;
  }
}
@media (max-width: 600px) {
  .command-deck {
    grid-template-columns: 1fr;
  }
  .selection-panel {
    display: none;
  }
  .topbar {
    padding: 0 8px;
    gap: 8px;
  }
  .scoreboard {
    position: static;
    transform: none;
    margin-left: auto;
    gap: 7px;
  }
  .scoreboard strong {
    min-width: 18px;
    font-size: 13px;
  }
  #match-clock {
    font-size: 12px;
    padding: 0 8px;
  }
  .small-brand {
    font-size: 16px;
    letter-spacing: 2px;
  }
  .resource {
    gap: 3px;
  }
  .resource strong {
    font-size: 12px;
  }
  .crate {
    font-size: 21px;
  }
  .top-actions {
    margin-left: 0;
  }
  .top-actions button {
    width: 25px;
  }
  #audio-toggle,
  #help {
    display: none;
  }
  .mission-card {
    width: 215px;
  }
  .view-switch {
    top: 195px;
    left: 12px;
    right: auto;
  }
  .mission-card p {
    line-height: 1.5;
  }
  #notifications {
    top: 245px;
  }
  .notice {
    max-width: calc(100vw - 30px);
  }
  .camera-controls {
    right: 12px;
  }
  .command-panel {
    padding: 0 14px;
  }
  .action {
    max-width: 90px;
  }
  .menu-content {
    top: 8%;
  }
  .menu-bottom {
    left: 8%;
    right: 8%;
    font-size: 10px;
  }
  #replay-timeline {
    left: 12px;
    right: 12px;
    font-size: 10px;
  }
  #replay-view {
    padding: 6px;
    font-size: 10px;
    max-width: 120px;
  }
  #order-hint {
    font-size: 10px;
  }
  #force-roster {
    max-width: 65vw;
  }
}
