/* 장비창 한눈에 보기 (2026-11-29, equip-window.js) — 캐릭터 카드 옆 5칸 × 6줄 격자, 테두리 색 = 잠재능력 등급 */
/* style.css의 '.char-card > div:not(.char-pic)'(늘어나는 칸)보다 강하게: 장비창은 제 크기만 */
.char-card > div.equip-window { flex: none; min-width: 0; }
.equip-window[hidden] { display: none; }
.ew-head { font: 14px/1.3 var(--f-display, inherit); color: var(--ink); margin: 0 0 6px; }
.ew-head small { font: 12px/1 inherit; color: var(--muted); margin-left: 4px; }
.ew-grid { display: grid; grid-template-columns: repeat(5, 42px); gap: 5px; }
.ew-cell {
  width: 42px; height: 42px; display: grid; place-items: center; box-sizing: border-box;
  border-radius: 9px; background: #fff; border: 2px solid #e6eaf0;
}
.ew-cell img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.ew-cell small { font-size: 9px; line-height: 1.1; color: #a3adbb; text-align: center; word-break: keep-all; }
.ew-blank { visibility: hidden; }
.ew-empty { background: #f7f9fc; border-style: dashed; }
/* 잠재능력 등급 색 (게임과 같은 뜻: 레전드리 초록 · 유니크 주황 · 에픽 보라 · 레어 파랑) */
.ew-legendary { border-color: #3fcf8e; }
.ew-unique { border-color: #f6a531; }
.ew-epic { border-color: #a57ce8; }
.ew-rare { border-color: #57aef0; }
.ew-legend { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 6px; font-size: 11px; color: var(--muted); align-items: center; }
.ew-legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; border-width: 2px; border-style: solid; margin-right: -4px; }
/* 좁은 화면: 칸을 조금 작게, 카드 안에서 가운데 */
@media (max-width: 520px) {
  .char-card > div.equip-window { flex: 1 1 100%; display: flex; flex-direction: column; align-items: center; }
  .char-card > div.equip-window[hidden] { display: none; }
  .ew-grid { grid-template-columns: repeat(5, 40px); }
  .ew-cell { width: 40px; height: 40px; }
}
