/* Keep enemy copy in normal flow, separate from the square portrait. */
.enemy-row {
  align-items: stretch;
  padding-top: 10px;
  padding-bottom: 12px;
}

.unit-card.enemy-card {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  min-width: 0;
  padding: 8px;
  gap: 8px;
}

.enemy-card .enemy-intent {
  position: static;
  transform: none;
  width: 100%;
  max-width: none;
  min-height: calc(2.6em + 8px);
  padding: 4px 6px;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  line-height: 1.3;
  text-align: center;
}

.enemy-card .enemy-figure {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  flex: none;
}

.enemy-card .unit-body {
  position: static;
  width: 100%;
  min-width: 0;
  margin-top: auto;
}

.enemy-card .unit-name,
.enemy-card .unit-role {
  display: block;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  line-height: 1.3;
}

.enemy-card .unit-name {
  color: var(--text);
}

.enemy-card .unit-role {
  margin-top: 4px;
}

.enemy-card .unit-stats {
  gap: 4px 8px;
}

.enemy-card .shield-pill {
  position: static;
  align-self: flex-end;
}

/* LC-037: JS marks only the owned relic's fixed slot. Drop feedback takes priority. */
.formation-board .formation-slot[data-position-relic="vanguard-seal"][data-position-state="preview"]:not(.is-drop-invalid):not(.is-dragover) {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px #c6b17e77;
}

/* Remaining uses a real DOM value; no generated copy or repeated render animation. */
.unit-card[data-position-carrier="true"] .position-effect-badge {
  position: absolute;
  top: 40px;
  left: 7px;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  padding: 2px 5px;
  border: 1px solid #806638;
  border-radius: 4px;
  background: #e5d4a6;
  color: #382e1b;
  font-family: var(--sans);
  font-size: var(--type-caption);
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.formation-slot[data-position-state="spent"] .position-effect-badge {
  border-style: dashed;
  border-color: #8b8b75;
  background: #d1ccb9;
  color: #63634f;
}

.formation-slot[data-position-state="fallen"] .position-effect-badge {
  border-color: #9b796b;
  background: #d5c7b7;
  color: #765b51;
  text-decoration: line-through;
}

.position-effect-status {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--type-caption);
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.position-effect-status:empty {
  display: none;
}

.position-effect-status p {
  margin: 0;
}

.position-effect-status[data-position-state="spent"] {
  border-top-style: dashed;
  color: var(--muted);
}

.position-effect-status[data-position-state="fallen"] {
  border-top-color: #9b796b;
  color: #d3b5a4;
}

@media (min-width: 1000px) and (min-height: 680px) {
  .unit-card[data-position-carrier="true"] .position-effect-badge {
    top: 27px;
    left: 3px;
    min-width: 20px;
    min-height: 20px;
    padding: 1px 4px;
  }
}

/* All position indicators are static, including reduced-motion mode. */
