/* =========================================================
   Enemy portrait — square, rounded, with an element badge
   overlaid top-left. Placeholder keeps the exact same shape
   when no image has been uploaded yet.
   ========================================================= */
.enemy-list {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.enemy-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 96px;
  background: none;
  border: none;
  padding: 0;
  min-width: 0;
}
.enemy-portrait {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}
.enemy-portrait-clip {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 2px solid var(--border-soft);
}
.enemy-portrait-img {
  position: absolute;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  max-width: none;
}
.enemy-portrait-empty {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  border: 2px dashed var(--border);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
}
.enemy-portrait-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 38px;
  height: 38px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.85)) drop-shadow(0 0 3px rgba(0,0,0,0.6));
}
.enemy-portrait-badge img { width: 100%; height: 100%; object-fit: contain; }

.enemy-chip-text { text-align: center; width: 100%; }
.enemy-chip-name { font-weight: 700; font-size: 0.85rem; line-height: 1.3; }
.enemy-chip-note { font-size: 0.76rem; color: var(--text-dim); margin-top: 2px; }

.enemy-thumb-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================================================
   Admin: per-enemy row editor (name/note/element/image)
   ========================================================= */
.enemy-admin-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.enemy-admin-fields { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.enemy-admin-fields input[type="text"] { width: 100%; }
.enemy-admin-cropper-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
