/* PVP 로비/대전 스타일 */

.versus-lobby .versus-info {
  font-size: 14px;
  color: #6b5d4f;
  margin: 4px 0 12px;
  text-align: center;
}

.versus-lobby .versus-hint {
  font-size: 13px;
  color: #8a7a68;
  margin: 10px 0;
  text-align: center;
}

.versus-lobby .versus-code {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 8px;
  text-align: center;
  color: #3a2e22;
  background: #fff7e6;
  border: 3px solid #e0c89a;
  border-radius: 12px;
  padding: 14px 8px;
  margin: 8px auto;
  max-width: 280px;
  font-variant-numeric: tabular-nums;
}

.versus-lobby .versus-code.ready {
  font-size: 28px;
  letter-spacing: normal;
  color: #2e7d32;
  border-color: #a5d6a7;
  background: #f1f8f1;
}

.versus-lobby .versus-code-input {
  display: block;
  width: 220px;
  margin: 10px auto;
  padding: 12px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 10px;
  text-align: center;
  border: 3px solid #e0c89a;
  border-radius: 12px;
  background: #fff7e6;
  color: #3a2e22;
  box-sizing: border-box;
}

.versus-lobby .versus-code-input:focus {
  outline: none;
  border-color: #f0a830;
}

.versus-lobby .versus-error {
  font-size: 16px;
  color: #c0392b;
  text-align: center;
  margin: 16px 0 8px;
  font-weight: 600;
}

/* === 방 설정 === */
.draft-set-row {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 340px; margin: 14px auto; gap: 12px;
}
.draft-set-label { font-size: 15px; color: #5b4d3f; font-weight: 600; }
.draft-stepper { display: flex; align-items: center; gap: 6px; }
.draft-stepper button {
  min-width: 38px; padding: 6px 8px; font-size: 14px; font-weight: 700;
  border: 2px solid #e0c89a; border-radius: 8px; background: #fff7e6; cursor: pointer;
}
.draft-stepper button:hover { background: #ffe9bf; }
.draft-set-val {
  min-width: 44px; text-align: center; font-size: 22px; font-weight: 800; color: #3a2e22;
  font-variant-numeric: tabular-nums;
}

/* === 밴픽 보드 === */
.draft-board { padding: 6px 10px 14px; }
.draft-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 10px; font-size: 13px;
}
.draft-phase { font-weight: 800; color: #3a2e22; }
.draft-turn { color: #8a7a68; font-weight: 600; }
.draft-turn.mine { color: #2e7d32; }
.draft-timer { font-variant-numeric: tabular-nums; font-weight: 800; }
.draft-coin { color: #6b5d4f; }

.draft-teams { display: flex; gap: 10px; margin-bottom: 10px; }
.draft-team { flex: 1; background: #fff7e6; border: 2px solid #e8d6b0; border-radius: 10px; padding: 6px; }
.draft-team-title { font-size: 12px; font-weight: 700; color: #6b5d4f; text-align: center; margin-bottom: 4px; }
.draft-team-slots { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }

.draft-chip {
  width: 64px; padding: 4px; border: 2px solid #e0c89a; border-radius: 8px;
  background: #fffdf8; text-align: center; cursor: default; font-family: inherit;
}
button.draft-chip { cursor: pointer; }
button.draft-chip:hover { background: #ffe9bf; border-color: #f0a830; }
.draft-chip.empty { background: #f3ece0; border-style: dashed; }
.draft-chip.picked { border-color: #a5d6a7; }
.draft-chip-face {
  width: 48px; height: 48px; margin: 0 auto; border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: #f0e6d2;
}
.draft-chip-face img { width: 100%; height: 100%; object-fit: cover; }
.draft-chip-face.slot { color: #b3a48c; font-weight: 700; font-size: 18px; }
.draft-chip-fb { font-size: 20px; font-weight: 700; color: #8a7a68; }
.draft-chip-name { font-size: 11px; margin-top: 2px; color: #3a2e22; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draft-chip-sub { font-size: 10px; color: #999; }

.draft-action { min-height: 90px; margin: 8px 0; }
.draft-prompt { text-align: center; font-size: 14px; font-weight: 700; color: #3a2e22; margin-bottom: 6px; }
.draft-wait { text-align: center; font-size: 14px; color: #8a7a68; padding: 24px 0; }
.draft-grid { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-height: 220px; overflow-y: auto; }
.draft-skipban {
  margin-left: 8px; padding: 3px 12px; font-size: 12px; font-weight: 700;
  color: #6b5d4f; background: #f3ead8; border: 1.5px solid #d8c4a0; border-radius: 14px; cursor: pointer;
}
.draft-skipban:hover { background: #e8d6b0; }
.versus-drop-banner {
  position: sticky; top: 0; z-index: 50;
  background: #fff3cd; color: #8a6d00; border: 2px solid #e0c060; border-radius: 10px;
  padding: 8px 12px; margin-bottom: 8px; text-align: center; font-size: 13px; font-weight: 700;
}

/* 대전 기록 */
.hist-list { max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.hist-row { border: 2px solid #e8d6b0; border-radius: 10px; padding: 8px 10px; background: #fff7e6; }
.hist-row.win  { border-color: #79b67c; background: #f0f9f0; }
.hist-row.lose { border-color: #d9a0a0; background: #fbf1f1; }
.hist-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.hist-result { font-weight: 800; font-size: 14px; }
.hist-row.win  .hist-result { color: #2e7d32; }
.hist-row.lose .hist-result { color: #b3413a; }
.hist-date { font-size: 11px; color: #8a7a68; }
.hist-teams { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hist-team { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; padding: 3px; border-radius: 8px; }
.hist-team.win { background: #eaf6ea; box-shadow: 0 0 0 1.5px #79b67c inset; }
.hist-crown { font-size: 15px; margin-right: 1px; }
.hist-vs { font-size: 11px; font-weight: 700; color: #8a7a68; }
.hist-mon { display: inline-flex; flex-direction: column; align-items: center; width: 46px; }
.hist-mon-face { position: relative; width: 34px; height: 34px; }
.hist-mon-face img { width: 34px; height: 34px; object-fit: cover; border-radius: 7px; border: 1.5px solid #d8c4a0; background: #fff; }
.hist-mon.x .hist-mon-face img { filter: grayscale(1) brightness(0.8); opacity: 0.6; }
.hist-x { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #c0392b; font-weight: 900; font-size: 22px; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.hist-mon-label { margin-top: 1px; display: flex; flex-direction: column; align-items: center;
  font-size: 8.5px; line-height: 1.15; color: #5a4d3e; text-align: center; word-break: keep-all; }
.hist-mon-id { color: #a89878; font-size: 7.5px; }
.hist-mon.x .hist-mon-label { color: #b0a89a; }

/* 캐릭터 승률 */
.stat-list { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; margin: 6px 0; }
.stat-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px;
  border: 1.5px solid #e8d6b0; border-radius: 9px; background: #fff7e6; }
.stat-rank { width: 20px; text-align: center; font-weight: 800; color: #8a7a68; font-size: 13px; }
.stat-face { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; border: 1.5px solid #d8c4a0; background: #fff; }
.stat-name { flex: 1; font-size: 13px; font-weight: 700; color: #3a2e22; }
.stat-id { color: #a89878; font-size: 10px; font-weight: 500; margin-left: 3px; }
.stat-rate { font-size: 16px; font-weight: 800; color: #2e7d32; min-width: 44px; text-align: right; }
.stat-rec { font-size: 10px; color: #8a7a68; min-width: 84px; text-align: right; }

/* LoL 스타일 밴 — 팀 위에 작은 회색 포트레잇 + ✕ */
.draft-team-bans {
  display: flex; flex-wrap: wrap; gap: 5px; justify-content: center;
  margin-bottom: 6px; min-height: 42px; align-items: center;
}
.draft-ban-mini {
  position: relative; width: 42px; height: 42px; border-radius: 6px; overflow: hidden;
  background: #e9ddc4; border: 2px solid #c0392b;
}
.draft-ban-mini img { width: 100%; height: 100%; object-fit: cover; }
.draft-ban-x-mark {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #ff2e2e; font-weight: 900; font-size: 30px; line-height: 1;
  text-shadow: 0 0 3px #000, 0 0 3px #000;
}
