.base-modal__footer {
  display: grid;
  place-items: center;
  padding: 5px 3px 0;
  border-top: 1px solid rgba(226, 177, 73, 0.2);
  color: rgba(242, 212, 138, 0.52);
  font-family: var(--font-label);
  font-size: 5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.base-modal__footer span:first-child {
  display: none;
}

@keyframes base-fieldwork-crate-arrival {
  0%, 20%, 40%, 60%, 80% {
    filter: saturate(0.35) brightness(0.48) drop-shadow(0 5px 5px rgba(0, 0, 0, 0.68));
    opacity: 0.58;
  }
  10%, 30%, 50%, 70%, 90% {
    filter: saturate(0.75) brightness(0.72) drop-shadow(0 5px 5px rgba(0, 0, 0, 0.68));
    opacity: 0.78;
  }
  100% {
    filter: saturate(0.88) brightness(0.88) drop-shadow(0 5px 5px rgba(0, 0, 0, 0.68));
    opacity: 0.94;
  }
}

.base-fieldwork-lights {
  --base-fieldwork-lamp-red: url("../assets/generated-art/ui/base-fieldwork-lamp-red-v1.webp");
  --base-fieldwork-lamp-green: url("../assets/generated-art/ui/base-fieldwork-lamp-green-v1.webp");
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.base-fieldwork-light {
  position: absolute;
  width: 22px;
  height: 20px;
  background: var(--base-fieldwork-lamp-red) center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(5, 8, 8, 0.82));
  transform: translate(-50%, -50%);
}

.base-fieldwork-light--ready {
  background-image: var(--base-fieldwork-lamp-green);
}

.base-breach-trap-indicator {
  position: absolute;
  z-index: 7;
  display: grid;
  grid-template-columns: 8px auto;
  gap: 1px 5px;
  align-items: center;
  min-width: 94px;
  padding: 5px 7px;
  border: 1px solid rgba(232, 91, 68, 0.88);
  border-radius: 2px;
  color: #ffe4b0;
  background: rgba(27, 7, 6, 0.93);
  box-shadow: 0 0 0 1px rgba(3, 7, 7, 0.9), 0 0 15px rgba(217, 57, 43, 0.34);
  font-family: var(--font-label);
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.base-breach-trap-indicator[hidden] {
  display: none;
}

.base-breach-trap-indicator > span {
  grid-row: 1 / 3;
  width: 7px;
  height: 7px;
  border: 1px solid #ffb49d;
  border-radius: 50%;
  background: #df3b2f;
  box-shadow: 0 0 8px rgba(255, 72, 52, 0.92);
  animation: breach-trap-indicator-pulse 1.2s ease-in-out infinite;
}

.base-breach-trap-indicator strong {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.base-breach-trap-indicator small {
  color: #ff8c76;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

@keyframes breach-trap-indicator-pulse {
  50% { opacity: 0.52; box-shadow: 0 0 3px rgba(255, 72, 52, 0.54); }
}

.base-fieldwork-slot--ready {
  border-color: rgba(117, 213, 205, 0.68);
}

@keyframes base-fieldwork-arrival {
  0%, 20%, 40%, 60%, 80% {
    background-image: var(--base-fieldwork-lamp-red);
    opacity: 1;
  }
  10%, 30%, 50%, 70%, 90% {
    background-image: var(--base-fieldwork-lamp-red);
    opacity: 0.46;
  }
  100% {
    background-image: var(--base-fieldwork-lamp-green);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .base-fieldwork-slot--incoming .base-fieldwork-slot__lamp,
  .base-fieldwork-light--incoming {
    animation-timing-function: step-end;
  }

  .base-breach-trap-indicator > span {
    animation: none;
  }
}

.is-battle-presentation-mars-sand .recon-panel--inspect {
  top: 18px;
  left: 18px;
  width: min(620px, calc(55% - 24px));
  height: auto;
  min-height: min(520px, calc(100% - 36px));
  max-height: calc(100% - 36px);
  padding: clamp(18px, 2.2vw, 28px);
  gap: 13px;
  overflow: auto;
  border-color: rgba(141, 255, 242, 0.64);
  background:
    radial-gradient(circle at 12% 0%, rgba(117, 213, 205, 0.2), transparent 40%),
    linear-gradient(135deg, rgba(17, 47, 47, 0.98), rgba(2, 10, 11, 0.99) 62%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(45, 217, 205, 0.18),
    inset 0 0 36px rgba(45, 217, 205, 0.08);
  animation: battle-action-inspector-arrive 220ms cubic-bezier(0.2, 0.78, 0.22, 1);
}

.is-battle-presentation-mars-sand .recon-panel--inspect::after,
.is-battle-presentation-mars-sand .recon-panel--targeting::after {
  content: none;
}

.is-battle-presentation-mars-sand .recon-panel--inspect .recon-panel__kicker {
  font-size: 11px;
}

.is-battle-presentation-mars-sand .recon-panel--inspect .recon-panel__title {
  max-width: 90%;
  font-size: clamp(32px, 2.4vw, 40px);
  line-height: 1.04;
}

.is-battle-presentation-mars-sand .recon-panel__disclosure-action {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: auto;
  min-height: 34px;
  padding: 7px 10px 6px;
  font-size: 10px;
}

.is-battle-presentation-mars-sand .recon-panel__card-overview {
  display: grid;
  grid-template-columns: minmax(150px, 0.82fr) minmax(190px, 1.18fr);
  gap: 18px;
  min-height: 300px;
}

.is-battle-presentation-mars-sand .recon-panel__card-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(117, 213, 205, 0.42);
  background: rgba(1, 8, 9, 0.72);
  box-shadow: inset 0 0 28px rgba(45, 217, 205, 0.12);
}

.is-battle-presentation-mars-sand .recon-panel__card-details {
  display: grid;
  align-content: start;
  gap: 12px;
}

.is-battle-presentation-mars-sand .recon-panel--inspect .recon-panel__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.is-battle-presentation-mars-sand .recon-panel--inspect .recon-panel__stat {
  padding: 10px 9px 8px;
}

.is-battle-presentation-mars-sand .recon-panel--inspect .recon-panel__stat-label {
  font-size: 12px;
}

.is-battle-presentation-mars-sand .recon-panel--inspect .recon-panel__stat-value {
  font-size: 22px;
}

.is-battle-presentation-mars-sand .recon-panel--inspect .recon-panel__copy {
  font-size: 19px;
  line-height: 1.42;
}

.is-battle-presentation-mars-sand .recon-panel__instruction {
  padding: 12px 14px;
  border-left: 3px solid rgba(255, 217, 119, 0.78);
  color: #fff0bd;
  background: rgba(255, 217, 119, 0.08);
  font-size: 16px;
  line-height: 1.35;
}

.is-battle-presentation-mars-sand .recon-panel--inspect .recon-panel__actions {
  grid-template-columns: minmax(0, 1.7fr) minmax(120px, 0.8fr);
  gap: 10px;
}

.is-battle-presentation-mars-sand .recon-panel--inspect .recon-panel__button {
  min-height: 50px;
  font-size: 13px;
}

.is-battle-presentation-mars-sand .recon-panel--targeting {
  top: 18px;
  left: 18px;
  width: min(460px, calc(55% - 24px));
  height: auto;
  min-height: 0;
  padding: 18px 20px;
  gap: 12px;
  animation: battle-action-targeting-arrive 180ms ease-out;
}

.is-battle-presentation-mars-sand .recon-panel--board-area-targeting {
  /*
   * Area targeting owns the complete board surface. Keep the live strike
   * readout visible without allowing it to create an untargetable dead zone
   * over the upper-left cells.
   */
  top: var(--recon-panel-target-top, 18px);
  left: var(--recon-panel-target-left, 18px);
  pointer-events: none;
}

.is-battle-presentation-mars-sand .recon-panel--targeting .recon-panel__card-overview {
  display: none;
}

.is-battle-presentation-mars-sand .recon-panel--targeting .recon-panel__instruction {
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.35;
}

.is-battle-presentation-mars-sand .recon-panel--targeting .recon-panel__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.is-battle-presentation-mars-sand .recon-panel--targeting .recon-panel__button {
  min-height: 44px;
  font-size: 11px;
}

/* Let board targets beneath the targeting prompt remain reachable. The prompt
 * fades before the pointer arrives, then stops intercepting input only when a
 * live target is directly underneath it; controls stay usable everywhere else. */
.is-battle-presentation-mars-sand .recon-panel--targeting.recon-panel--pointer-near {
  opacity: 0.14;
  filter: saturate(0.55);
  transition: opacity 100ms ease-out, filter 100ms ease-out;
}

.is-battle-presentation-mars-sand .recon-panel--targeting.recon-panel--pointer-near:not(.recon-panel--target-reveal):has(.recon-panel__button:hover),
.is-battle-presentation-mars-sand .recon-panel--targeting.recon-panel--pointer-near:focus-within {
  opacity: 1;
  filter: none;
}

.is-battle-presentation-mars-sand .recon-panel--targeting.recon-panel--target-reveal {
  pointer-events: none !important;
}

.is-battle-presentation-mars-sand .recon-panel--scan,
.is-battle-presentation-mars-sand .recon-panel--engage {
  top: var(--recon-panel-target-top, 18px);
  left: var(--recon-panel-target-left, 18px);
  width: 420px;
  height: auto;
  min-height: 0;
  max-height: calc(100% - 28px);
  overflow: auto;
  padding: 14px;
  animation: battle-action-target-panel-arrive 140ms ease-out;
}

.is-battle-presentation-mars-sand .recon-panel--scan .recon-panel__kicker,
.is-battle-presentation-mars-sand .recon-panel--engage .recon-panel__kicker {
  font-size: 10px;
}

.is-battle-presentation-mars-sand .recon-panel--scan .recon-panel__title,
.is-battle-presentation-mars-sand .recon-panel--engage .recon-panel__title {
  font-size: 22px;
}

.is-battle-presentation-mars-sand .recon-panel--scan .recon-panel__stat-label,
.is-battle-presentation-mars-sand .recon-panel--engage .recon-panel__stat-label {
  font-size: 9px;
}

.is-battle-presentation-mars-sand .recon-panel--scan .recon-panel__stat-value,
.is-battle-presentation-mars-sand .recon-panel--engage .recon-panel__stat-value {
  font-size: 14px;
}

.is-battle-presentation-mars-sand .recon-panel--scan .recon-panel__health-label,
.is-battle-presentation-mars-sand .recon-panel--engage .recon-panel__health-label {
  font-size: 11px;
}

.is-battle-presentation-mars-sand .recon-panel--scan::after,
.is-battle-presentation-mars-sand .recon-panel--engage::after {
  content: "";
  top: 50%;
  width: 18px;
  height: 2px;
  border: 0;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  writing-mode: initial;
}

.is-battle-presentation-mars-sand .recon-panel--scan[data-target-side="right"]::after,
.is-battle-presentation-mars-sand .recon-panel--engage[data-target-side="right"]::after {
  right: auto;
  left: -18px;
}

.is-battle-presentation-mars-sand .recon-panel--scan[data-target-side="left"]::after,
.is-battle-presentation-mars-sand .recon-panel--engage[data-target-side="left"]::after {
  right: -18px;
  left: auto;
}

.is-battle-presentation-mars-sand .recon-panel--scan[data-target-side="below"]::after,
.is-battle-presentation-mars-sand .recon-panel--engage[data-target-side="below"]::after {
  top: -18px;
  right: auto;
  left: 50%;
  width: 2px;
  height: 18px;
}

.is-battle-presentation-mars-sand .recon-panel--scan[data-target-side="above"]::after,
.is-battle-presentation-mars-sand .recon-panel--engage[data-target-side="above"]::after {
  top: auto;
  right: auto;
  bottom: -18px;
  left: 50%;
  width: 2px;
  height: 18px;
}

.is-battle-presentation-mars-sand .recon-panel__outlook {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 126, 105, 0.56);
  background: rgba(61, 16, 15, 0.7);
}

.is-battle-presentation-mars-sand .recon-panel__outlook-label {
  grid-column: 1 / -1;
  color: rgba(255, 208, 180, 0.72);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.11em;
}

.is-battle-presentation-mars-sand .recon-panel__outlook-tone {
  color: #ffe197;
  font-family: var(--font-display);
  font-size: 17px;
}

.is-battle-presentation-mars-sand .recon-panel__outlook-range {
  align-self: center;
  color: #ffddd2;
  font-family: var(--font-label);
  font-size: 11px;
}

.is-battle-presentation-mars-sand .recon-panel--engage [data-recon-action="primary"] {
  grid-area: play;
  min-height: 54px;
  font-size: 13px;
  box-shadow:
    0 0 18px rgba(240, 206, 120, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.22);
}

@keyframes battle-action-inspector-arrive {
  from { opacity: 0; transform: translateX(-22px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes battle-action-targeting-arrive {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes battle-action-target-panel-arrive {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .is-battle-presentation-mars-sand .recon-panel--inspect,
  .is-battle-presentation-mars-sand .recon-panel--targeting,
  .is-battle-presentation-mars-sand .recon-panel--scan,
  .is-battle-presentation-mars-sand .recon-panel--engage {
    animation: none;
  }

  .is-battle-presentation-mars-sand .recon-panel--targeting.recon-panel--pointer-near {
    transition: none;
  }
}
