/* Side cards */
.rail {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  padding: 8px 3px 12px;
  transition: transform 0.2s ease;
}

.rail--left {
  grid-area: units;
  transform: none;
}

.rail--right {
  grid-area: support;
  transform: none;
}

.is-battle-screen .rail--right.rail--system-locked {
  opacity: 0.84;
  filter: blur(0.7px) saturate(0.82) brightness(0.9);
  transform: none;
}

.is-battle-screen .rail {
  align-self: stretch;
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 0;
  padding-top: var(--battle-top-y);
}

.rail__label {
  --rail-plaque-accent: #76b9ad;
  --rail-plaque-accent-bright: #a1ded0;
  --rail-plaque-wash: rgba(68, 145, 134, 0.2);
  position: relative;
  isolation: isolate;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  min-width: 0;
  padding: 6px 11px 5px;
  overflow: hidden;
  border: 1px solid rgba(224, 211, 168, 0.52);
  border-left: 4px solid var(--rail-plaque-accent);
  border-radius: 1px;
  color: #f2dfae;
  background:
    linear-gradient(105deg, var(--rail-plaque-wash), transparent 44%),
    repeating-linear-gradient(0deg, rgba(248, 231, 184, 0.035) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #252a26, #0b100f 72%, #050807);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.32),
    inset 0 1px rgba(255, 244, 208, 0.1),
    0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: left;
  text-transform: uppercase;
}

.rail--right .rail__label {
  --rail-plaque-accent: #c4664f;
  --rail-plaque-accent-bright: #ee9b74;
  --rail-plaque-wash: rgba(179, 75, 56, 0.24);
}

.is-battle-screen .rail__label {
  min-height: 40px;
  padding: 6px 11px 5px;
}

.rail__label::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #82775f;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.7),
    inset 1px 1px rgba(255, 243, 200, 0.28);
}

.rail__label-title {
  min-width: 0;
  overflow: hidden;
  color: #f4e1ad;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-shadow: 0 1px rgba(0, 0, 0, 0.76);
  white-space: nowrap;
}

.rail__cards {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  min-height: 0;
}

.is-battle-screen .rail__cards {
  gap: var(--battle-rail-card-gap);
}

/* Bottom controls */
.dock {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: var(--dock-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  pointer-events: none;
}

.is-battle-screen .dock {
  left: auto;
  right: var(--board-frame-right);
  width: var(--board-frame-width);
}

.command-panel {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, auto) auto;
  align-items: stretch;
  width: fit-content;
  max-width: min(720px, 100%);
  min-width: 0;
  min-height: 56px;
  overflow: hidden;
  border: 1px solid rgba(224, 192, 120, 0.52);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(31, 34, 32, 0.98), rgba(7, 10, 10, 0.98));
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: auto;
  transform: translateX(-50%);
}

.command-panel[hidden] {
  display: none;
}

.hint {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 0 1 auto;
  width: max-content;
  max-width: 520px;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 8px 16px;
  overflow: hidden;
  color: rgba(250, 247, 237, 0.92);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}

.command-panel--with-discard .hint {
  padding-left: 16px;
}

.command-panel--enemy-info {
  grid-template-columns: minmax(0, auto) 44px;
  width: min(480px, calc(100% - 18px));
  max-width: min(480px, calc(100% - 18px));
  min-width: 0;
}

.command-panel--enemy-info .hint {
  min-height: 50px;
  padding: 8px 14px;
  justify-content: flex-start;
}

.command-panel--enemy-info .hint__name {
  flex: 0 0 170px;
  min-width: 150px;
  max-width: 170px;
  text-align: left;
}

.command-panel--enemy-info .enemy-stat-line {
  gap: 6px;
  margin-left: 6px;
}

.command-panel--enemy-info .unit-stat-line span {
  min-width: 26px;
  padding-inline: 5px;
}

.enemy-threat-chips {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  max-width: 104px;
  overflow: hidden;
}

.enemy-threat-chips__chip,
.enemy-info-overlay__threats__chip {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 3px 6px 2px;
  border: 1px solid rgba(128, 220, 212, 0.44);
  color: #b8e4dc;
  background: rgba(7, 16, 17, 0.66);
  font-family: var(--font-display);
  font-size: 8px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.enemy-threat-chips__chip--breach,
.enemy-info-overlay__threats__chip--breach {
  border-color: rgba(255, 97, 87, 0.68);
  color: #ffd7b8;
  background: rgba(72, 22, 21, 0.58);
}

.enemy-threat-chips__chip--hero,
.enemy-threat-chips__chip--elite,
.enemy-info-overlay__threats__chip--hero,
.enemy-info-overlay__threats__chip--elite {
  border-color: rgba(248, 203, 87, 0.62);
  color: #ffe8a8;
  background: rgba(59, 40, 18, 0.56);
}

.enemy-threat-chips__chip--control,
.enemy-info-overlay__threats__chip--control {
  border-color: rgba(208, 146, 245, 0.58);
  color: #e4c7ff;
  background: rgba(39, 24, 47, 0.54);
}

.enemy-threat-chips__chip--air,
.enemy-info-overlay__threats__chip--air {
  border-color: rgba(146, 200, 255, 0.58);
  color: #cce4ff;
  background: rgba(18, 33, 54, 0.54);
}

.hint__sentence {
  display: inline;
  min-width: 0;
  white-space: normal;
}

.hint__name,
.hint strong {
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  margin: 0;
  color: #f1c663;
  font-size: 14px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hint__sentence .hint__emphasis {
  display: inline;
  max-width: none;
  color: #f1c663;
  font-size: inherit;
  letter-spacing: 0.035em;
  text-overflow: clip;
  white-space: normal;
}

.command-panel--enemy-info .hint__name {
  flex: 0 0 170px;
  min-width: 150px;
  max-width: 170px;
  text-align: left;
}

.unit-stat-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: 12px;
}

.unit-stat-line span {
  min-width: 30px;
  padding: 3px 7px 2px;
  border: 1px solid rgba(224, 192, 120, 0.32);
  color: #f5e5b7;
  background: rgba(8, 12, 12, 0.52);
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.unit-info-chips {
  display: inline-flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-width: 112px;
  max-height: 34px;
  overflow: hidden;
  margin-left: 2px;
}

.unit-info-chip {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 3px 7px 2px;
  border: 1px solid rgba(224, 192, 120, 0.48);
  color: #ffe2a0;
  background: rgba(42, 31, 14, 0.74);
  font-family: var(--font-display);
  font-size: 8.5px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.target-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  overflow: hidden;
  margin-left: 0;
  color: #f6e8bf;
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.target-preview--support {
  display: -webkit-box;
  min-width: 0;
  max-width: 100%;
  line-height: 1.18;
  overflow: hidden;
  text-align: left;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.target-preview--blocked {
  max-width: 100%;
  color: #ffd7b0;
  white-space: normal;
  text-align: left;
}

.health-preview-pips {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 4px;
  border: 1px solid rgba(128, 220, 212, 0.34);
  border-radius: 3px;
  background: rgba(4, 18, 20, 0.74);
}

.health-preview-pip {
  width: 10px;
  height: 7px;
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: 2px;
}

.health-preview-pip.is-full {
  background: #188f4b;
}

.health-preview-pip.is-empty {
  background: rgba(55, 200, 120, 0.16);
}

.health-preview-pip.is-risk {
  background: #ef3d3d;
  animation: hp-risk 0.52s steps(1, end) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .health-preview-pip.is-risk {
    animation: none;
  }
}

.target-preview__estimate {
  color: rgba(246, 232, 191, 0.84);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.command-panel__action {
  flex: 0 0 auto;
  min-width: 160px;
  padding: 9px 16px;
  border: 0;
  border-left: 1px solid rgba(224, 192, 120, 0.4);
  color: #171a18;
  background:
    linear-gradient(180deg, #e0bd69, #aa7d2e);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.command-panel__action--info {
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  margin: 7px 8px 7px 0;
  border: 1px solid rgba(224, 192, 120, 0.5);
  border-radius: 999px;
  color: #f5d164;
  background:
    radial-gradient(circle at 50% 48%, rgba(224, 192, 120, 0.18), transparent 48%),
    rgba(15, 18, 17, 0.92);
  font-family: var(--font-display);
  font-size: 0;
  line-height: 1;
}

.command-panel__action--info::before {
  content: "i";
  display: block;
  color: currentColor;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
  transform: translateY(-1px);
}

.command-panel__action--info:hover {
  color: #fff1b8;
  background:
    radial-gradient(circle at 50% 48%, rgba(224, 192, 120, 0.3), transparent 52%),
    rgba(28, 31, 28, 0.98);
}

.command-panel__action:hover {
  background: linear-gradient(180deg, #edcf82, #bd8c34);
}

.command-panel__action:disabled {
  opacity: 0.62;
  cursor: default;
}

.command-panel__action[hidden] {
  display: none;
}

/* Legacy command panel remains in the DOM for keyboard/tutorial plumbing, but
   the visible battle command surface now lives on selected cards and recon. */
.is-battle-screen .dock {
  width: 1px;
  height: 1px;
  min-height: 0;
  overflow: visible;
}

.is-battle-screen .command-panel {
  left: -9999px;
  bottom: auto;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.is-battle-screen .discard-selected {
  display: none;
}

.is-battle-screen .card.is-selected {
  z-index: 4;
  border-color: rgba(141, 255, 242, 0.84);
  box-shadow:
    0 0 0 2px rgba(45, 217, 205, 0.48),
    0 0 22px rgba(45, 217, 205, 0.22),
    0 10px 26px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(203, 255, 247, 0.2),
    inset 0 0 22px rgba(45, 217, 205, 0.08);
  transform: scale(1.018);
}

.is-battle-screen .card.is-selected::after {
  border-color: rgba(141, 255, 242, 0.46);
  box-shadow: inset 0 0 18px rgba(45, 217, 205, 0.12);
}

.is-battle-screen .card.is-dimmed {
  opacity: 0.31;
  filter: grayscale(0.72) brightness(0.72);
}

.is-battle-screen .stage > .rail .rail__cards .card:is(.card--unit, .card--support):not(.locked-card),
#new-basecamp-screen .battle-hud-card:is(.card--unit, .card--support):not(.locked-card) {
  border-color: rgba(141, 255, 242, 0.36);
  background:
    linear-gradient(180deg, rgba(20, 27, 24, 0.96), rgba(3, 7, 8, 0.98));
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(141, 255, 242, 0.12);
}

.is-battle-screen .stage > .rail .rail__cards .card:is(.card--unit, .card--support) .card__art:has(img),
#new-basecamp-screen .battle-hud-card:is(.card--unit, .card--support) .card__art:has(img) {
  border-color: rgba(141, 255, 242, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 -18px 22px rgba(14, 11, 7, 0.1),
    0 0 12px rgba(45, 217, 205, 0.12);
}

.is-battle-screen .stage > .rail .rail__cards .card:is(.card--unit, .card--support) .card__name,
#new-basecamp-screen .battle-hud-card:is(.card--unit, .card--support) .card__name {
  border-color: rgba(141, 255, 242, 0.5);
  color: #f7e6ad;
  background:
    linear-gradient(90deg, rgba(117, 213, 205, 0.16), transparent 34%, rgba(117, 213, 205, 0.08)),
    linear-gradient(180deg, rgba(5, 22, 23, 0.98), rgba(1, 7, 8, 0.99));
  box-shadow:
    inset 0 0 0 1px rgba(141, 255, 242, 0.08),
    0 0 10px rgba(45, 217, 205, 0.12),
    0 2px 7px rgba(0, 0, 0, 0.42);
}

.is-battle-screen .stage > .rail .rail__cards .card.card--support:not(.locked-card),
#new-basecamp-screen .battle-hud-card.card--support:not(.locked-card) {
  border-color: rgba(184, 76, 65, 0.72);
  background:
    linear-gradient(180deg, rgba(33, 22, 20, 0.98), rgba(6, 5, 5, 0.99));
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(240, 181, 110, 0.13),
    inset 0 0 0 1px rgba(213, 104, 88, 0.18);
}

.is-battle-screen .stage > .rail .rail__cards .card.card--support:not(.locked-card)::before,
#new-basecamp-screen .battle-hud-card.card--support:not(.locked-card)::before {
  border-color: rgba(213, 104, 88, 0.3);
  background:
    linear-gradient(180deg, rgba(213, 104, 88, 0.2), transparent 16%, transparent 70%, rgba(0, 0, 0, 0.72)),
    repeating-linear-gradient(0deg, rgba(255, 220, 176, 0.06) 0 1px, transparent 1px 5px);
}

.is-battle-screen .stage > .rail .rail__cards .card.card--support:not(.locked-card) .card__art,
.is-battle-screen .stage > .rail .rail__cards .card.card--support:not(.locked-card) .card__art:has(img),
#new-basecamp-screen .battle-hud-card.card--support:not(.locked-card) .card__art,
#new-basecamp-screen .battle-hud-card.card--support:not(.locked-card) .card__art:has(img) {
  border-color: rgba(213, 104, 88, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 -18px 22px rgba(14, 11, 7, 0.16),
    0 0 12px rgba(213, 104, 88, 0.16);
}

.is-battle-screen .stage > .rail .rail__cards .card.card--support:not(.locked-card) .card__name,
#new-basecamp-screen .battle-hud-card.card--support:not(.locked-card) .card__name {
  border-color: rgba(213, 104, 88, 0.64);
  color: #ffe5b2;
  background:
    linear-gradient(90deg, rgba(213, 104, 88, 0.19), transparent 34%, rgba(240, 181, 110, 0.08)),
    linear-gradient(180deg, rgba(28, 12, 10, 0.98), rgba(6, 5, 5, 0.99));
  box-shadow:
    inset 0 0 0 1px rgba(255, 226, 180, 0.08),
    0 0 10px rgba(213, 104, 88, 0.16),
    0 2px 7px rgba(0, 0, 0, 0.42);
}

.is-battle-screen .stage > .rail .rail__cards .card.card--support:is(.card--id-cid-land-of-the-free-mini-gun, .card--id-cidlandofthefreeminigun):not(.locked-card) .card__art,
.is-battle-screen .stage > .rail .rail__cards .card.card--support:is(.card--id-cid-land-of-the-free-mini-gun, .card--id-cidlandofthefreeminigun):not(.locked-card) .card__art:has(img),
#new-basecamp-screen .battle-hud-card.card--support:is(.card--id-cid-land-of-the-free-mini-gun, .card--id-cidlandofthefreeminigun):not(.locked-card) .card__art,
#new-basecamp-screen .battle-hud-card.card--support:is(.card--id-cid-land-of-the-free-mini-gun, .card--id-cidlandofthefreeminigun):not(.locked-card) .card__art:has(img) {
  inset: 1px;
  border: 0;
  box-shadow: none;
}

.is-battle-screen .card.card--support:not(.locked-card).is-selected {
  border-color: rgba(238, 128, 102, 0.9);
  box-shadow:
    0 0 0 2px rgba(213, 104, 88, 0.5),
    0 0 22px rgba(213, 104, 88, 0.25),
    0 10px 26px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 225, 190, 0.18),
    inset 0 0 22px rgba(213, 104, 88, 0.1);
}

.recon-panel {
  position: absolute;
  z-index: 7;
  top: 92px;
  left: 18px;
  display: grid;
  gap: 10px;
  width: min(360px, 34%);
  min-width: 292px;
  max-height: min(430px, calc(100% - 178px));
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(141, 255, 242, 0.58);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  color: #f5e5b7;
  background:
    radial-gradient(circle at 12% 0%, rgba(117, 213, 205, 0.18), transparent 36%),
    linear-gradient(90deg, rgba(117, 213, 205, 0.15), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.036) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, rgba(5, 21, 22, 0.96), rgba(1, 6, 7, 0.97));
  box-shadow:
    0 0 0 1px rgba(45, 217, 205, 0.16),
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 26px rgba(45, 217, 205, 0.13),
    inset 0 1px rgba(255, 255, 255, 0.09),
    inset 0 0 28px rgba(45, 217, 205, 0.08);
  pointer-events: auto;
}

.recon-panel[hidden] {
  display: none;
}

.recon-panel--low-card {
  top: auto;
  bottom: clamp(52px, 6vh, 78px);
}

.recon-panel::before,
.recon-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.recon-panel::before {
  inset: 5px;
  border-top: 1px solid rgba(141, 255, 242, 0.24);
  border-bottom: 1px solid rgba(141, 255, 242, 0.16);
}

.recon-panel::after {
  top: 0;
  right: 14px;
  width: 86px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(141, 255, 242, 0.78));
  box-shadow: 0 0 12px rgba(45, 217, 205, 0.5);
}

.recon-panel--locked {
  border-color: rgba(255, 92, 96, 0.62);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 92, 96, 0.16), transparent 36%),
    linear-gradient(90deg, rgba(255, 92, 96, 0.14), transparent 48%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, rgba(25, 12, 13, 0.96), rgba(4, 6, 7, 0.97));
}

.recon-panel--discovery {
  border-color: rgba(255, 217, 119, 0.62);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 217, 119, 0.14), transparent 36%),
    linear-gradient(90deg, rgba(117, 213, 205, 0.13), transparent 45%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.036) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, rgba(19, 20, 12, 0.96), rgba(4, 7, 7, 0.97));
}

.recon-panel__kicker {
  position: relative;
  z-index: 1;
  color: rgba(117, 213, 205, 0.9);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.recon-panel--locked .recon-panel__kicker {
  color: #ffaaa1;
}

.recon-panel__title {
  position: relative;
  z-index: 1;
  color: #ffe3a1;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.recon-panel__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  min-width: 0;
}

.recon-panel__enemy {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.recon-panel__enemy-image {
  width: 82px;
  height: 92px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 0 7px rgba(117, 213, 205, 0.34));
}

.recon-panel__enemy-summary {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.recon-panel__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.recon-panel__stat {
  min-width: 0;
  padding: 6px 6px 5px;
  border: 1px solid rgba(117, 213, 205, 0.24);
  background:
    linear-gradient(135deg, rgba(117, 213, 205, 0.08), transparent 46%),
    rgba(2, 8, 9, 0.68);
}

.recon-panel__stat-label {
  color: rgba(141, 255, 242, 0.58);
  font-size: 7px;
  line-height: 1;
}

.recon-panel__stat-value {
  margin-top: 3px;
  color: #fff4bf;
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1;
}

.recon-panel__health {
  display: grid;
  gap: 5px;
}

.recon-panel__health-label,
.recon-panel__estimate {
  color: #ffd879;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.recon-panel__estimate {
  padding: 8px 10px;
  border: 1px solid rgba(255, 92, 96, 0.46);
  color: #ffddd2;
  background: rgba(62, 15, 16, 0.58);
}

.recon-panel__copy {
  color: rgba(245, 229, 183, 0.82);
  font-size: 11px;
  line-height: 1.28;
  text-transform: none;
}

.recon-panel__copy--muted {
  color: rgba(245, 229, 183, 0.62);
}

.recon-panel__copy--blocked {
  color: #ffd0ba;
}

.recon-panel__copy--shield {
  color: #9efff4;
}

.recon-panel__copy--discovery {
  color: #fff1bd;
  font-weight: 700;
}

.recon-panel__cue-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.recon-panel__cue {
  padding: 4px 6px 3px;
  border: 1px solid rgba(117, 213, 205, 0.32);
  color: #c9fff6;
  background: rgba(5, 16, 17, 0.64);
  font-family: var(--font-label);
  font-size: 8px;
  line-height: 1;
}

.recon-panel__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 7px;
  margin-top: 4px;
}

.recon-panel__button {
  min-height: 36px;
  padding: 8px 12px 7px;
  border: 1px solid rgba(255, 217, 119, 0.68);
  border-radius: 2px;
  color: #15120a;
  background: linear-gradient(180deg, #f0ce78, #aa7d2e);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  cursor: pointer;
}

.recon-panel__button--secondary {
  color: #c9fff6;
  border-color: rgba(117, 213, 205, 0.44);
  background:
    linear-gradient(135deg, rgba(117, 213, 205, 0.12), transparent 48%),
    rgba(4, 13, 14, 0.88);
}

.recon-panel__button--swap {
  color: #d9fff8;
  border-color: rgba(141, 255, 242, 0.5);
  background:
    linear-gradient(180deg, rgba(117, 213, 205, 0.18), rgba(7, 23, 24, 0.92)),
    rgba(4, 13, 14, 0.9);
}

.recon-panel__button:disabled {
  cursor: default;
  opacity: 0.48;
  filter: grayscale(0.35);
}

.dock__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.discard-pile {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 46px;
  color: rgba(238, 225, 191, 0.72);
  pointer-events: auto;
}

.discard-pile::before,
.discard-pile__card {
  position: absolute;
  width: 28px;
  height: 38px;
  border: 1px solid rgba(225, 205, 159, 0.54);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(224, 192, 120, 0.16), transparent 42%),
    #242b29;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
}

.discard-pile::before {
  content: "";
  transform: translate(-4px, -2px) rotate(-7deg);
}

.discard-pile__card {
  display: grid;
  place-items: center;
  transform: rotate(4deg);
  font: 700 12px/1 var(--font-display);
}

.discard-pile__count {
  position: absolute;
  z-index: 2;
  right: -1px;
  bottom: 0;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: #111615;
  font-size: 9px;
  font-weight: 900;
}

.cannon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(120, 231, 205, 0.5);
  border-radius: 3px;
  color: #d7fff4;
  background: linear-gradient(#1f3a37, #122524);
  box-shadow: 0 5px 14px rgba(20, 40, 38, 0.3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: auto;
  cursor: pointer;
}

.cannon:disabled {
  opacity: 0.42;
  cursor: default;
}

.cannon__bolt {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #bff7ec, #2f9c8a 72%);
  box-shadow: 0 0 6px rgba(120, 231, 205, 0.7);
}

.cannon__power {
  min-width: 16px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(120, 231, 205, 0.18);
  color: #aef5e6;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.cannon.is-armed {
  border-color: #f5d887;
  box-shadow: 0 0 0 2px rgba(232, 188, 84, 0.48), 0 6px 16px rgba(40, 34, 20, 0.4);
}

.cannon.is-charged .cannon__power {
  background: #e6b95a;
  color: #241b0c;
}

.end-turn {
  min-width: 142px;
  padding: 11px 24px;
  border: 1px solid rgba(224, 192, 120, 0.66);
  border-radius: 3px;
  color: #171a18;
  background:
    linear-gradient(180deg, #e0bd69, #aa7d2e);
  box-shadow:
    0 5px 14px rgba(31, 38, 41, 0.28),
    0 0 16px rgba(224, 183, 88, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.24),
    inset 0 -1px rgba(69, 46, 15, 0.34);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: auto;
  cursor: pointer;
}

.end-turn:hover {
  background: linear-gradient(180deg, #edcf82, #bd8c34);
  box-shadow:
    0 5px 14px rgba(31, 38, 41, 0.3),
    0 0 22px rgba(224, 183, 88, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.28),
    inset 0 -1px rgba(69, 46, 15, 0.34);
}

.end-turn--hud {
  display: block;
  width: 148px;
  min-width: 0;
  min-height: 34px;
  padding: 8px 13px;
  font-size: 10px;
  text-align: center;
}

.dock #end-turn {
  display: none;
}

.end-turn:disabled {
  opacity: 0.45;
}
