.is-battle-presentation-mars-sand.is-battle-screen:not(.is-dev-art-board) .battle-command-rail {
  position: absolute;
  z-index: 12;
  right: auto;
  bottom: 50px;
  left: calc(50% + var(--battle-shell-centre-offset-x));
  display: block;
  width: var(--battle-shell-width);
  height: var(--battle-command-height);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  pointer-events: auto;
  transform: translateX(-50%);
}

/* Keep the scripted Emergency Authority opening and replay free of normal
 * command controls. This exception must follow the rail's display owner. */
.is-battle-presentation-mars-sand.is-battle-screen.is-level-zero .battle-command-rail {
  display: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__controls {
  position: absolute;
  z-index: 1;
  top: var(--command-controls-top);
  right: var(--command-controls-right);
  bottom: var(--command-controls-bottom);
  left: var(--command-controls-left);
  display: grid;
  grid-template-columns: calc(39% - 14px) 22% max-content minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-layout-lab-item {
  z-index: var(--hud-lab-layer, 1);
  transform:
    translate(var(--hud-lab-x, 0), var(--hud-lab-y, 0))
    rotate(var(--hud-lab-rotation, 0deg))
    scale(var(--hud-lab-width, 1), var(--hud-lab-height, 1));
  transform-origin: center;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud__cluster--left.hud-layout-lab-item {
  transform:
    translate(var(--hud-lab-x, 0), var(--hud-lab-y, 0))
    rotate(var(--hud-lab-rotation, 0deg));
}

.is-battle-presentation-mars-sand .battle-command-rail .hud__cluster--left.hud-layout-lab-item > .hud-menu {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--hud-lab-width-percent, 100%);
  height: var(--hud-lab-height-percent, 100%);
  transform: translate(-50%, -50%);
}

.is-hud-layout-calibrating .battle-command-rail .hud-layout-lab-item {
  outline: 1px dashed rgba(110, 244, 231, 0.72);
  outline-offset: 3px;
  cursor: move;
}

.is-hud-layout-calibrating .battle-command-rail .hud-layout-lab-item.is-selected {
  outline: 2px solid #fff0a6;
  outline-offset: 4px;
  filter: none;
}

.is-hud-layout-calibrating .battle-command-rail::before,
.is-hud-layout-calibrating .battle-command-rail::after {
  position: absolute;
  z-index: 30;
  content: "";
  pointer-events: none;
}

.is-hud-layout-calibrating .battle-command-rail::before {
  inset: 15px 19px 9px -15px;
  border: 1px solid rgba(110, 244, 231, 0.58);
}

.is-hud-layout-calibrating .battle-command-rail::after {
  top: -120px;
  bottom: -24px;
  left: calc(50% - 17px);
  border-left: 1px dashed rgba(255, 231, 137, 0.88);
}

.is-battle-presentation-mars-sand .battle-command-rail__chassis {
  box-sizing: border-box;
  position: absolute;
  z-index: 0;
  top: calc(var(--command-controls-top) - 5px);
  right: calc(var(--command-controls-right) - 5px);
  bottom: calc(var(--command-controls-bottom) - 5px);
  left: calc(var(--command-controls-left) - 5px);
  display: block;
  /* Approved graphite rim follows the live controls, leaving the board's own
   * lower corners visible. It adds no size or movement to the toolbar layout. */
  background: #080d0f;
  border: 5px solid;
  border-top-color: #69777c;
  border-left-color: #505e63;
  border-right-color: #354146;
  border-bottom-color: #2b363c;
  border-radius: 8px;
  filter: none;
  pointer-events: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__chassis::before {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid #151d20;
  border-radius: 3px;
}

.is-battle-presentation-mars-sand .battle-command-rail__chassis::after {
  position: absolute;
  top: 0;
  right: 5px;
  left: 5px;
  height: 1px;
  content: "";
  background: #8c9697;
}

.is-battle-presentation-mars-sand .battle-command-rail__left,
.is-battle-presentation-mars-sand .battle-command-rail__right {
  display: contents;
}

.is-battle-presentation-mars-sand .battle-command-rail__left {
  margin: 0;
  padding: 0;
}

.is-battle-presentation-mars-sand .battle-command-rail__right {
  margin: 0;
  padding: 0;
}

.is-battle-presentation-mars-sand .battle-command-rail__controls .hud__cluster--left {
  /* The four live bays share real layout tracks, without scaled offsets. */
  grid-area: 1 / 1;
}

.is-battle-presentation-mars-sand .battle-command-rail__controls > .end-turn.enemy-turn-hud {
  grid-area: 1 / 2;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud {
  grid-area: 1 / 3;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-action-panel {
  grid-area: 1 / 4;
}

.is-battle-presentation-mars-sand.is-battle-screen .battle-command-rail .hud__cluster--left {
  position: relative;
  inset: auto;
  display: block;
  min-width: 0;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-menu {
  position: relative;
  width: 100%;
  height: 100%;
}

.is-battle-presentation-mars-sand .battle-command-rail .game-menu-dropdown {
  top: auto;
  bottom: calc(100% + 10px);
}

.is-battle-presentation-mars-sand.is-battle-screen .battle-command-rail .hud__menu.hud-identity-card {
  top: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-color: rgba(211, 169, 82, 0.46);
  border-radius: 8px 3px 8px 3px;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-identity-card__copy {
  padding: 0 20% 0 14%;
  justify-items: start;
  text-align: left;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-identity-card__copy span {
  --hud-calling-card-title-min-size: 9px;
  color: var(--battle-text-primary);
  font-size: var(--hud-identity-title-size);
  font-weight: 700;
  text-align: left;
  text-shadow: none;
}

.hud-identity-card__menu-icon {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 6%;
  display: grid;
  gap: clamp(2px, 3.5cqh, 6px);
  width: clamp(10px, 20cqh, 34px);
  padding:
    clamp(3px, 6cqh, 10px)
    clamp(2px, 4.7cqh, 8px);
  border-right: 1px solid rgba(231, 192, 101, 0.2);
  transform: translate(-50%, -50%);
}

.hud-identity-card__menu-icon i {
  display: block;
  width: clamp(6px, 10.5cqh, 18px);
  height: clamp(1px, 1.2cqh, 2px);
  background: rgba(247, 218, 148, 0.88);
  box-shadow: none;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-identity-card__menu-icon {
  gap: 4px;
  width: 24px;
  padding: 5px;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-identity-card__menu-icon i {
  width: 14px;
  height: 1px;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-identity-card__emblem {
  width: auto;
  height: var(--hud-identity-emblem-size);
  aspect-ratio: 1;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-identity-card__emblems {
  top: 0;
  right: var(--hud-identity-emblem-right);
  height: 100%;
  transform: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__doctrine {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.is-battle-presentation-mars-sand .battle-command-rail__doctrine .hud__section--doctrine {
  display: grid;
  grid-template-rows: auto 31px;
  justify-items: center;
  gap: var(--command-readout-content-gap);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 3px;
  border: 0;
  background: transparent;
}

.is-battle-presentation-mars-sand .battle-command-rail__doctrine .hud__label {
  color: var(--battle-text-secondary);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.is-battle-presentation-mars-sand .battle-command-rail__doctrine .doctrine-badge__mark {
  grid-row: 2;
  width: 30px;
  height: 30px;
}

.is-battle-presentation-mars-sand .battle-command-rail__doctrine .hud__val {
  display: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__controls > .end-turn.enemy-turn-hud {
  position: relative;
  inset: auto;
  align-self: stretch;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px;
  align-items: stretch;
  padding: 0;
  border-color: rgba(238, 192, 91, 0.82);
  border-radius: 8px 3px 8px 3px;
  color: var(--battle-text-primary);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  text-shadow: none;
  animation: none;
}

.is-battle-presentation-mars-sand .battle-command-rail .end-turn__action {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 8px 6px;
  font-family: var(--font-label);
  white-space: nowrap;
}

.is-battle-presentation-mars-sand .battle-command-rail .battle-turn-timer {
  display: grid;
  grid-template-rows: auto auto;
  place-content: center;
  min-width: 0;
  border-left: 1px solid rgba(238, 192, 91, 0.46);
  color: var(--battle-text-primary);
  line-height: 1;
  pointer-events: none;
}

.is-battle-presentation-mars-sand .battle-command-rail .battle-turn-timer__label {
  color: var(--battle-text-secondary);
  font-family: var(--font-label);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.is-battle-presentation-mars-sand .battle-command-rail .battle-turn-timer__value {
  margin-top: 4px;
  font-family: var(--font-data);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0;
}

.is-battle-presentation-mars-sand .battle-command-rail .battle-turn-timer.is-warning .battle-turn-timer__value {
  color: #f1bd58;
}

.is-battle-presentation-mars-sand .battle-command-rail .battle-turn-timer.is-critical .battle-turn-timer__value {
  color: #f0745f;
}

.battle-turn-timer__announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud {
  --enemy-strength-readout-width: 94px;
  position: relative;
  inset: auto;
  display: grid;
  grid-template-rows: auto 16px;
  align-content: center;
  justify-items: center;
  gap: 7px;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud__label {
  justify-items: center;
  width: var(--enemy-strength-readout-width);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-align: center;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud__dial {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: var(--enemy-strength-readout-width);
  height: 16px;
  aspect-ratio: auto;
  overflow: hidden;
  border: 1px solid rgba(232, 196, 116, 0.36);
  border-radius: 1px;
  background: rgba(6, 15, 15, 0.94);
  box-shadow: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud__dial::before {
  inset: 0;
  z-index: 2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud__dial::after {
  display: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud__core {
  position: absolute;
  inset: 2px auto 2px 2px;
  z-index: 1;
  width: calc(var(--enemy-strength-progress) - 4px);
  height: auto;
  aspect-ratio: auto;
  border-radius: 0;
  background: var(--battle-hostile);
  box-shadow: none;
  transition: width 0.35s ease;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud.is-low .enemy-strength-hud__dial,
.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud.is-critical .enemy-strength-hud__dial {
  background: rgba(6, 15, 15, 0.94);
}

.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud.is-low .enemy-strength-hud__core {
  background: transparent;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud.is-critical .enemy-strength-hud__core {
  background: transparent;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-action-panel {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  min-width: 0;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  grid-template-rows: minmax(0, 1fr);
  justify-content: space-between;
  gap: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box__topline,
.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box__status {
  display: contents;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  place-content: center;
  justify-items: center;
  gap: var(--command-readout-content-gap);
  min-width: 0;
  min-height: 0;
  padding: 7px 12px;
  border: 0;
  border-right: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__section::before {
  display: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__section::after {
  position: absolute;
  top: 50%;
  right: 0;
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(222, 181, 92, 0.46);
  box-shadow: none;
  content: "";
  transform: translateY(-50%);
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__section--cannon::after {
  display: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__label {
  grid-column: 1;
  color: var(--battle-text-secondary);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-align: center;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__val {
  grid-column: 1;
  justify-self: center;
  color: var(--battle-text-primary);
  font-family: var(--font-data);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: center;
  text-shadow: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__section--score .hud__score-meta {
  grid-column: 1;
  justify-content: center;
  width: auto;
  gap: 5px;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__section--score .score-multiplier {
  align-self: baseline;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__section--score .hud__val {
  grid-column: 1;
  justify-self: center;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__section--cannon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__section--cannon .hud__cannon-btn {
  display: grid;
  grid-template-rows: auto auto;
  place-content: center;
  justify-items: center;
  gap: var(--command-readout-content-gap);
  width: 100%;
  min-height: 0;
  padding: 0;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__section--cannon .hud__val {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

/* ENEMIES REMAINING is the typography authority for every command readout
 * label, including the score multiplier. Keep this as one shared contract so
 * individual bays cannot drift in font, colour, weight, or tracking. */
.is-battle-presentation-mars-sand .battle-command-rail {
  --command-readout-label-color: var(--battle-text-secondary);
  --command-readout-label-size: 8px;
  --command-readout-label-spacing: 0.1em;
  --command-readout-label-weight: 700;
  --command-readout-content-gap: 7px;
}

.is-battle-presentation-mars-sand .battle-command-rail__doctrine .hud__label,
.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud__label,
.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__label,
.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .score-multiplier,
.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .score-multiplier.is-boosted {
  color: var(--command-readout-label-color);
  font-family: var(--font-label);
  font-size: var(--command-readout-label-size);
  font-style: normal;
  font-variant: normal;
  font-weight: var(--command-readout-label-weight);
  line-height: 1;
  letter-spacing: var(--command-readout-label-spacing);
  word-spacing: 0;
  text-shadow: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .score-multiplier,
.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .score-multiplier.is-boosted {
  display: inline;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud {
  grid-template-columns: max-content;
  justify-content: center;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud__label {
  width: auto;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud__dial {
  width: 100%;
  min-width: 0;
}

/* All live bays share one mechanical datum inside the close-fitting casing. */
.is-battle-presentation-mars-sand.is-battle-screen .battle-command-rail .hud__menu.hud-identity-card,
.is-battle-presentation-mars-sand .battle-command-rail__doctrine,
.is-battle-presentation-mars-sand .battle-command-rail__controls > .end-turn.enemy-turn-hud,
.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud,
.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box {
  box-sizing: border-box;
  height: 100%;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 4px;
}


/* Dark instruments approved 23 September 2026; existing enamel surfaces retained.
 * Replaceable surfaces and source rectangles:
 * tools/art-source/command-enamel-v1/README.md. Geometry stays inside the
 * existing 96px/88px rail; no text or state is baked into these surfaces. */
.is-battle-presentation-mars-sand .battle-command-rail {
  --command-controls-top: 22px;
  --command-controls-right: 56px;
  --command-controls-bottom: 6px;
  --command-controls-left: 20px;
  --command-enamel: url("../assets/generated-art/ui/command-enamel-v1/enamel-panel.webp");
  --command-menu-plate: url("../assets/generated-art/ui/command-enamel-v1/menu-plate.webp");
  --command-timer-face: url("../assets/generated-art/ui/command-enamel-v1/timer-face.webp");
  --command-end-turn-face: url("../assets/generated-art/ui/command-enamel-v1/end-turn-face.webp");
  --command-readout-label-color: #292c29;
  --command-readout-label-size: 9px;
  --command-menu-width: 34px;
  --command-card-height: calc(var(--battle-command-height) - 36px);
  --command-readout-label-spacing: 0.025em;
  --command-readout-content-gap: 7px;
  --command-ink: #292c29;
  --command-ivory: #eee7cc;
}

.is-battle-presentation-mars-sand .battle-command-rail__controls {
  grid-template-columns: calc(var(--command-menu-width) + 3px + var(--command-card-height) * 4.5) 160px 282px minmax(0, 1fr);
  gap: 0;
  background: var(--command-enamel) center / 100% 100% no-repeat #e4dfcc;
  border: 1px solid #807d6e;
  border-radius: 3px;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud {
  grid-area: 1 / 2;
  grid-template-columns: minmax(0, 1fr);
  padding: 9px 15px;
  gap: 10px;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-action-panel {
  grid-area: 1 / 3;
  background: #282e2b;
  border: 3px solid #dbd5bd;
}

.is-battle-presentation-mars-sand .battle-command-rail__controls > .end-turn.enemy-turn-hud {
  grid-area: 1 / 4;
  grid-template-columns: 35% minmax(0, 1fr);
  justify-items: stretch;
  gap: 4px;
  padding: 3px;
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  animation: none;
  color: var(--command-ivory);
  font-size: 13px;
}

.is-battle-presentation-mars-sand .battle-command-rail .end-turn__action {
  grid-area: 1 / 2;
  padding: 5px;
  background: var(--command-end-turn-face) center / 100% 100% no-repeat #993728;
  border-radius: 3px;
  font-size: 13px;
  letter-spacing: 0.025em;
}

.is-battle-presentation-mars-sand .battle-command-rail #end-turn-hud::before,
.is-battle-presentation-mars-sand .battle-command-rail #end-turn-hud::after {
  content: none;
  display: none;
  background: none;
  box-shadow: none;
}

.is-battle-presentation-mars-sand .battle-command-rail .battle-turn-timer {
  grid-area: 1 / 1;
  align-content: center;
  justify-content: stretch;
  justify-items: center;
  padding: 6px 8px;
  border: 0;
  border-radius: 2px;
  background: var(--command-timer-face) center / 100% 100% no-repeat #262b2b;
  color: var(--command-ivory);
  text-align: center;
}

.is-battle-presentation-mars-sand .battle-command-rail .battle-turn-timer__label {
  display: block;
  width: 100%;
  padding-bottom: 4px;
  border-bottom: 1px solid #999a86;
  color: var(--command-ivory);
  text-align: center;
  font-family: var(--font-label);
  font-size: 9px;
}

.is-battle-presentation-mars-sand .battle-command-rail .battle-turn-timer__value {
  width: 100%;
  margin-top: 4px;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}

.is-battle-presentation-mars-sand.is-battle-screen .battle-command-rail .hud__menu.hud-identity-card {
  --hud-identity-emblem-size: 78%;
  padding: 0;
  border: 0;
  border-right: 1px solid #716f61;
  border-radius: 0;
  background: var(--command-menu-plate) left center / var(--command-menu-width) 100% no-repeat #e4dfcc;
  box-shadow: none;
  filter: none;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-identity-card__art {
  display: block;
  position: absolute;
  inset: 3px 3px 3px calc(var(--command-menu-width) + 4px);
  border: 1px solid #767b6e;
  border-radius: 2px;
  background: var(--hud-calling-card-image, none) right center / auto 100% no-repeat #123536;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-identity-card__shade {
  display: none;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-identity-card__copy {
  position: absolute;
  inset: 4px auto 4px calc(var(--command-menu-width) + 13px);
  width: 100px;
  padding: 0;
  align-content: center;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-identity-card__copy span {
  --hud-calling-card-title-min-size: 8px;
  color: var(--command-ivory);
  font-size: 10px;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-identity-card__menu-icon {
  left: 0;
  width: var(--command-menu-width);
  box-sizing: border-box;
  justify-items: center;
  border: 0;
  padding: 0;
  gap: 3px;
  transform: translateY(-50%);
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-identity-card__menu-icon i {
  width: 18px;
  height: 3px;
  background: var(--command-ink);
  box-shadow: none;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-identity-card__emblems {
  left: calc(100% - 3px - var(--command-card-height) * 6 * 0.094);
  right: auto;
  width: 0;
  justify-content: center;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-identity-card__emblem {
  flex: 0 0 auto;
  filter: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__section {
  padding: 5px 3px;
  grid-template-rows: 11px 32px;
  gap: 5px;
  align-content: center;
  color: var(--command-ivory);
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__section::after {
  position: absolute;
  content: "";
  top: 15%;
  bottom: 15%;
  left: 0;
  width: 1px;
  height: auto;
  background: #8e9488;
  transform: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__val,
.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__section--score .hud__val {
  color: var(--command-ivory);
  font-size: 28px;
  line-height: 1;
  align-self: center;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud__dial {
  width: 100%;
  height: 15px;
  border: 0;
  background: #d9d4c1;
  box-shadow: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud__core,
.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud.is-low .enemy-strength-hud__core,
.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud.is-critical .enemy-strength-hud__core {
  inset: 0 auto 0 0;
  width: var(--enemy-strength-progress);
  background: #be624b;
  box-shadow: none;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud__dial::before {
  /* Five equally sized outlined blocks, with opaque enamel between them. */
  inset: 0;
  background: url("../assets/ui/command-segments.svg") center / 100% 100% no-repeat;
  box-shadow: none;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-help-target:focus-visible,
.is-battle-presentation-mars-sand .battle-command-rail #menu-btn:focus-visible {
  outline: 2px solid #182f2e;
  outline-offset: 2px;
}

.is-battle-presentation-mars-sand .battle-command-rail #end-turn-hud:hover:not(:disabled) .end-turn__action {
  outline: 1px solid var(--command-ivory);
  outline-offset: -4px;
}

.is-battle-presentation-mars-sand .battle-command-rail #end-turn-hud:disabled {
  opacity: 0.65;
}

.is-battle-presentation-mars-sand .battle-command-rail .hud-help-target:hover,
.is-battle-presentation-mars-sand .battle-command-rail .hud-help-target:focus-visible,
.is-battle-presentation-mars-sand .battle-command-rail .hud-help-target:focus-within {
  color: var(--command-ink);
  background: transparent;
  box-shadow: none;
  filter: none;
}

.is-battle-presentation-mars-sand .battle-command-rail #end-turn-hud:hover,
.is-battle-presentation-mars-sand .battle-command-rail #end-turn-hud:focus-visible {
  color: var(--command-ivory);
}

.is-battle-presentation-mars-sand .battle-command-rail .enemy-strength-hud__label {
  width: calc(100% + 10px);
  max-width: calc(100% + 10px);
  white-space: normal;
  line-height: 1.2;
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__label,
.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .score-multiplier,
.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .score-multiplier.is-boosted {
  color: var(--command-ivory);
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__section--score .hud__val {
  width: 100%;
  place-items: center;
  font-size: min(28px, calc(140px / var(--score-character-count, 1)));
}

.is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__section--score .hud__val::before {
  font-size: min(28px, calc(140px / var(--score-previous-character-count, 1)));
}

.is-battle-presentation-mars-sand .battle-command-rail .battle-command-box .hud-help-target:focus-visible {
  outline: 2px solid var(--command-ivory);
  outline-offset: -3px;
}

@media (max-width: 1360px), (max-height: 760px) {
  .is-battle-presentation-mars-sand .battle-command-rail__right .enemy-strength-hud {
    padding: 5px 15px;
    gap: 6px;
  }

  .is-battle-presentation-mars-sand .battle-command-rail {
    --command-menu-width: 30px;
  }

  .is-battle-presentation-mars-sand .battle-command-rail__right .battle-command-box .hud__section {
    grid-template-rows: 11px 28px;
    gap: 3px;
    padding: 3px;
  }

  .is-battle-presentation-mars-sand .battle-command-rail .end-turn__action {
    font-size: 11px;
  }
}
