/* [창세 공방] 종족 선택·창조, NPC 6대 능력치 배분, 하사품 자유 옵션 연성 전용 스타일 */

.ws-race-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
}

.ws-race-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ws-inline-toggle-btn {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.14);
  color: var(--accent-indigo-light);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.ws-inline-toggle-btn:hover,
.ws-inline-toggle-btn.active {
  background: rgba(99, 102, 241, 0.28);
  border-color: var(--accent-indigo-light);
  color: #ffffff;
}

.ws-race-info-card {
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  background: rgba(9, 11, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ws-race-info-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ws-race-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(243, 201, 105, 0.13);
  border: 1px solid rgba(243, 201, 105, 0.3);
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.ws-race-trait-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-indigo-light);
  background: rgba(99, 102, 241, 0.14);
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.ws-race-mods-inline {
  font-size: 11px;
  color: var(--text-muted);
  word-break: keep-all;
}

.ws-race-mods-inline strong {
  color: var(--text-main);
  font-weight: 650;
}

.ws-race-lore-text {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.48;
  word-break: keep-all;
}

/* 인라인 신규 종족 창조 드로어 */
.ws-custom-race-drawer {
  margin-top: 2px;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1), rgba(13, 16, 26, 0.85));
  border: 1px solid rgba(129, 140, 248, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-drawer-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-drawer-head strong {
  font-size: 12px;
  color: var(--accent-indigo-light);
}

.ws-drawer-head span {
  font-size: 11px;
  color: var(--text-dim);
}

.ws-micro-guide {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--text-dim);
  line-height: 1.42;
  word-break: keep-all;
}

.ws-drawer-actions {
  display: flex;
  justify-content: flex-end;
}

/* NPC 초기 6대 능력치 배분 박스 */
.ws-stat-alloc-box {
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.024);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-stat-alloc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--text-main);
}

.ws-stat-alloc-head em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-dim);
  font-size: 10.5px;
}

.ws-stat-alloc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws-remain-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(243, 201, 105, 0.13);
  border: 1px solid rgba(243, 201, 105, 0.32);
  color: var(--accent-gold);
  white-space: nowrap;
}

.ws-remain-pill.done {
  background: rgba(52, 211, 153, 0.13);
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--accent-emerald);
}

.ws-mini-link-btn {
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 10.5px;
  cursor: pointer;
  white-space: nowrap;
}

.ws-mini-link-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

.ws-six-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ws-stat-cell {
  padding: 6px 7px;
  border-radius: var(--radius-xs);
  background: rgba(9, 10, 16, 0.58);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ws-stat-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.ws-stat-name {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--text-main);
  white-space: nowrap;
}

.ws-stat-race-mod {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
}

.ws-stat-race-mod.pos {
  color: var(--accent-emerald);
}

.ws-stat-race-mod.neg {
  color: #fda4af;
}

.ws-stat-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.ws-step-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.ws-step-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--accent-indigo-light);
}

.ws-step-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.ws-stat-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.ws-stat-final strong {
  font-size: 13px;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.ws-stat-final em {
  font-style: normal;
  font-size: 9.5px;
  color: var(--accent-gold);
}

/* [장비·물자 하사] 다중 권능 옵션 칩 그리드 */
.ws-option-chips-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ws-option-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ws-option-head em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-dim);
  font-size: 10.5px;
}

.ws-option-count {
  font-size: 11px;
  color: var(--accent-indigo-light);
  font-weight: 600;
  white-space: nowrap;
}

.ws-option-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ws-opt-chip {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.ws-opt-chip:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
}

.ws-opt-chip.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: var(--accent-indigo-light);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.25);
}

.ws-opt-chip.chip-curse.active {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(251, 113, 133, 0.65);
  color: #ffe4e6;
  box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.22);
}

.ws-bestow-preview.is-tradeoff {
  background: rgba(244, 63, 94, 0.09);
  border-color: rgba(244, 63, 94, 0.34);
  color: #fecdd3;
}

.ws-preview-title {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 3px;
  word-break: keep-all;
}

.ws-preview-sub {
  font-size: 11px;
  opacity: 0.92;
  line-height: 1.45;
  word-break: keep-all;
}

/* 도감 상세 슬롯 내 부여 옵션 / AI 연성 코멘트 */
.inspector-option-line {
  font-size: 11px;
  color: var(--accent-indigo-light);
  line-height: 1.42;
  word-break: keep-all;
}

.inspector-forge-note {
  font-size: 10.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 5px;
  padding: 4px 7px;
  line-height: 1.4;
  word-break: keep-all;
}

@media (max-width: 520px) {
  .ws-six-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
