/* ==========================================
   draft.css - 드래프트 페이지 전용 스타일
   ========================================== */

/* 드래프트 전용 변수 */
:root {
  --nav-height: 70px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  z-index: 100;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 24px;
  color: var(--bg-primary);
}

.nav-logo-text {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 24px;
  color: var(--gold-primary);
}

.nav-logo-text span {
  color: var(--gold-secondary);
}

.nav-tabs {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.nav-tab:hover {
  color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.1);
}

.nav-tab.active {
  color: var(--bg-primary);
  background: var(--gradient-gold);
  border-color: var(--gold-primary);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-mobile-toggle span {
  width: 25px;
  height: 2px;
  background: var(--gold-primary);
}

/* Main Content */
.main-content {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 184, 0, 0.15));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.section-title {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 36px;
  margin: 0 0 10px 0;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
}

/* 드래프트 정보 배너 */
.draft-info-banner {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 184, 0, 0.05) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 32px;
}

.draft-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

.draft-info-item {
  text-align: center;
}

.draft-info-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.draft-info-value {
  font-size: 18px;
  font-weight: 700;
}

.draft-info-value.highlight {
  color: var(--gold-primary);
}

.draft-countdown-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  margin-bottom: 16px;
}

.draft-countdown {
  display: flex;
  align-items: center;
  gap: 12px;
}

.countdown-label {
  font-size: 13px;
  color: var(--text-muted);
}

.countdown-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-primary);
  font-family: 'JetBrains Mono', monospace;
}

.draft-deadline {
  font-size: 13px;
  color: var(--text-secondary);
}

.draft-deadline strong {
  color: var(--accent-red);
}

.draft-rules-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.draft-rule-tag {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.draft-rule-tag.important {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 감독 섹션 */
.directors-section {
  margin-bottom: 32px;
}

.directors-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text-primary);
}

.directors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.director-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.director-card:hover {
  border-color: rgba(79, 209, 197, 0.3);
  transform: translateY(-2px);
}

.director-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}

.director-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-avatar-fallback {
  font-size: 20px;
  color: var(--gold-primary);
}

.director-info {
  text-align: center;
}

.director-name {
  font-size: 14px;
  font-weight: 600;
}

.director-gold {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--gold-primary);
}

.gold-icon {
  font-weight: 700;
}

/* 멀티플레이어 섹션 */
.multiplayer-section {
  margin-bottom: 32px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(79, 209, 197, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-radius: 20px;
  border: 1px solid rgba(79, 209, 197, 0.2);
}

.multiplayer-header {
  text-align: center;
  margin-bottom: 24px;
}

.multiplayer-title {
  font-size: 22px;
  font-weight: 700;
  color: #4fd1c5;
  margin: 0 0 8px 0;
}

.multiplayer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.multiplayer-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-create-room {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-create-room:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 25px rgba(79, 209, 197, 0.4);
}

.btn-refresh-rooms {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh-rooms:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

/* 방 목록 */
.room-list {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}

.room-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.room-list-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.room-list-count {
  font-size: 13px;
  color: #4fd1c5;
  background: rgba(79, 209, 197, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
}

.room-list-body {
  max-height: 300px;
  overflow-y: auto;
}

.room-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.room-item:last-child {
  border-bottom: none;
}

.room-item:hover {
  background: rgba(79, 209, 197, 0.05);
}

.room-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.room-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.room-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.room-status.waiting {
  background: rgba(79, 209, 197, 0.15);
  color: #4fd1c5;
}

.room-status.playing {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.room-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: 16px;
}

.room-players {
  font-size: 14px;
  color: var(--text-secondary);
}

.room-lock {
  font-size: 16px;
}

.btn-join-room {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-join-room:hover:not(:disabled) {
  transform: scale(1.05);
}

.btn-join-room:disabled {
  background: #4a5568;
  cursor: not-allowed;
}

.btn-join-room.rejoining {
  background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
}

.btn-join-room.rejoining:hover {
  box-shadow: 0 4px 15px rgba(79, 209, 197, 0.4);
}

.room-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.multiplayer-rules {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 20px;
}

.multiplayer-rules h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
}

.multiplayer-rules ul {
  margin: 0;
  padding: 0 0 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.multiplayer-rules li {
  font-size: 13px;
  color: var(--text-muted);
}

/* 시뮬레이터 섹션 */
.simulator-section {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.simulator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.simulator-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.simulator-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sim-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.sim-toggle-label input {
  accent-color: #4fd1c5;
}

.btn-sim-reset,
.btn-sim-share {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sim-reset {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.btn-sim-reset:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-sim-share {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.btn-sim-share:disabled {
  background: #4a5568;
  cursor: not-allowed;
}

/* 감독 선택 바 */
.director-select-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.director-select-btn {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.director-select-btn:hover {
  border-color: rgba(79, 209, 197, 0.3);
}

.director-select-btn.active {
  background: rgba(79, 209, 197, 0.1);
  border-color: #4fd1c5;
}

.director-select-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.director-select-gold {
  font-size: 12px;
  color: var(--gold-primary);
}

.director-select-team-count {
  font-size: 11px;
  color: var(--text-muted);
}

/* 팀 패널 */
.director-team-panel {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.director-team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.director-team-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.director-team-name {
  font-size: 16px;
  font-weight: 600;
}

.director-team-gold {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 20px;
}

.director-team-gold .gold-icon {
  color: var(--gold-primary);
  font-weight: 700;
}

.director-team-gold .gold-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-primary);
}

.director-team-slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.sim-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.sim-slot.filled {
  border-style: solid;
  border-color: rgba(79, 209, 197, 0.3);
  background: rgba(79, 209, 197, 0.05);
}

.sim-slot-icon {
  width: 24px;
  height: 24px;
  opacity: 0.6;
}

.sim-slot-label {
  font-size: 11px;
  color: var(--text-muted);
}

.sim-slot-player {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.sim-slot-player.filled {
  color: #4fd1c5;
}

.sim-slot-price {
  font-size: 11px;
  color: var(--gold-primary);
}

.simulator-hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* 유찰 선수 */
.passed-players-section {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
}

.passed-players-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.passed-players-title {
  font-size: 14px;
  font-weight: 600;
  color: #ef4444;
}

.passed-players-count {
  font-size: 13px;
  color: var(--text-muted);
}

.passed-players-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.passed-player-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.passed-player-name {
  font-size: 13px;
  font-weight: 500;
}

.passed-player-info {
  font-size: 11px;
  color: var(--text-muted);
}

/* 포지션 탭 */
.draft-position-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.draft-position-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.draft-position-tab:hover {
  border-color: rgba(79, 209, 197, 0.3);
  color: var(--text-primary);
}

.draft-position-tab.active {
  background: rgba(79, 209, 197, 0.1);
  border-color: #4fd1c5;
  color: #4fd1c5;
}

.draft-pos-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0.7);
  transition: filter 0.2s ease;
}

.draft-position-tab:hover .draft-pos-icon,
.draft-position-tab.active .draft-pos-icon {
  filter: brightness(1);
}

.draft-pos-count {
  font-size: 12px;
  opacity: 0.7;
}

/* 드래프트 그리드 */
.draft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.draft-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  animation: cardFadeIn 0.3s ease forwards;
  opacity: 0;
}

@keyframes cardFadeIn {
  to { opacity: 1; }
}

.draft-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 209, 197, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.draft-card.recruited {
  opacity: 0.5;
  pointer-events: none;
}

.draft-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.draft-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.draft-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.draft-avatar-fallback {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-primary);
}

.draft-info {
  flex: 1;
  min-width: 0;
}

.draft-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.draft-id {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.draft-riot-id {
  font-size: 11px;
  color: #4fd1c5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.draft-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.draft-stat-box {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.draft-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.draft-stat-value {
  font-size: 13px;
  font-weight: 500;
}

.draft-tier-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.draft-tier-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.draft-tier-text {
  font-size: 14px;
  font-weight: 700;
}

.draft-tier-text.tier-gold { color: #ffd700; }
.draft-tier-text.tier-silver { color: #c0c0c0; }
.draft-tier-text.tier-bronze { color: #cd7f32; }
.draft-tier-text.tier-iron { color: #8a8a8a; }

.draft-penalty {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}

.draft-penalty.high {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.draft-penalty.mid {
  background: rgba(255, 184, 0, 0.2);
  color: #ffb800;
}

.draft-penalty.none {
  background: rgba(79, 209, 197, 0.2);
  color: #4fd1c5;
}

.draft-links {
  display: flex;
  gap: 8px;
}

.draft-link {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.draft-link-soop {
  background: #5c3dff;
  color: white;
}

.draft-link-soop:hover {
  background: #4a2ee0;
}

.draft-link-deeplol {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #60a5fa;
}

.draft-link-deeplol:hover {
  background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
}

/* ==========================================
   모달 공통 스타일
   ========================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  overflow-y: auto;
  padding: 40px 20px;
}

.modal-overlay.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 방 생성/입장 모달 */
.room-modal-content {
  background: var(--bg-card);
  border: 1px solid rgba(79, 209, 197, 0.2);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 28px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

.room-modal-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px 0;
  text-align: center;
}

.room-form {
  margin-bottom: 20px;
}

.room-form-group {
  margin-bottom: 20px;
}

.room-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.room-form-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
}

.room-form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.room-form-input:focus {
  border-color: #4fd1c5;
  box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.1);
}

.room-form-input::placeholder {
  color: var(--text-muted);
}

.room-form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.room-password-wrapper {
  position: relative;
}

.room-password-wrapper .room-form-input {
  padding-right: 50px;
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
}

.room-fixed-value {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.room-fixed-icon {
  font-size: 18px;
}

.room-fixed-text {
  font-size: 15px;
  font-weight: 600;
  color: #4fd1c5;
}

.room-fixed-badge {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #4fd1c5;
  background: rgba(79, 209, 197, 0.2);
  border-radius: 20px;
}

.room-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.room-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.room-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.room-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #4a5568;
  border-radius: 28px;
  transition: all 0.3s ease;
}

.room-toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.room-toggle input:checked + .room-toggle-slider {
  background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
}

.room-toggle input:checked + .room-toggle-slider:before {
  transform: translateX(24px);
}

.room-toggle-status {
  font-size: 14px;
  font-weight: 600;
  min-width: 40px;
}

.room-toggle-status.on { color: #4fd1c5; }
.room-toggle-status.off { color: var(--text-muted); }

.room-rules-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.room-rules-summary h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
}

.room-rules-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.room-rules-summary li {
  font-size: 13px;
  color: var(--text-muted);
}

.room-rules-summary li strong {
  color: var(--gold-primary);
}

.room-actions {
  display: flex;
  gap: 12px;
}

.btn-room-cancel,
.btn-room-create {
  flex: 1;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-room-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.btn-room-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-room-create {
  background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
  color: white;
}

.btn-room-create:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 20px rgba(79, 209, 197, 0.3);
}

/* 입장 모달 */
.join-room-info {
  text-align: center;
  padding: 20px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  margin-bottom: 20px;
}

.join-room-title {
  font-size: 18px;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 6px;
}

.join-room-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

.join-error {
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #ef4444;
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
}

/* 낙찰가 입력 모달 */
.bid-modal-content {
  background: var(--bg-card);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  max-width: 400px;
  width: 100%;
  padding: 28px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

.bid-modal-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px 0;
  text-align: center;
}

.bid-player-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-bottom: 20px;
}

.bid-player-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bid-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bid-player-name {
  font-size: 16px;
  font-weight: 600;
}

.bid-player-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.bid-input-section {
  margin-bottom: 20px;
}

.bid-input-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.bid-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bid-input-wrapper input {
  flex: 1;
  padding: 14px 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-primary);
  background: var(--bg-secondary);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  outline: none;
  text-align: center;
}

.bid-input-wrapper input:focus {
  border-color: var(--gold-primary);
}

.bid-input-unit {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-primary);
}

.bid-input-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.bid-error {
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #ef4444;
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
}

.bid-actions {
  display: flex;
  gap: 12px;
}

.btn-bid-cancel,
.btn-bid-confirm {
  flex: 1;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-bid-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.btn-bid-confirm {
  background: var(--gradient-gold);
  color: var(--bg-primary);
}

.btn-bid-confirm:hover {
  transform: scale(1.02);
}

/* ==========================================
   대기실 모달
   ========================================== */
.waiting-room-content {
  background: var(--bg-card);
  border: 1px solid rgba(79, 209, 197, 0.2);
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  padding: 28px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

.waiting-room-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.waiting-room-title {
  font-size: 24px;
  font-weight: 700;
  color: #4fd1c5;
  margin: 0 0 12px 0;
}

.waiting-room-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.waiting-room-id {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.waiting-room-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(79, 209, 197, 0.15);
  color: #4fd1c5;
  border-radius: 20px;
}

.waiting-participants {
  margin-bottom: 24px;
}

.waiting-participants-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.waiting-participants-count {
  color: #4fd1c5;
}

.waiting-participants-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.waiting-participant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.waiting-participant-card.ready {
  border-color: rgba(79, 209, 197, 0.5);
  background: rgba(79, 209, 197, 0.1);
}

.waiting-participant-card.host {
  border-color: rgba(255, 215, 0, 0.5);
}

.waiting-participant-card.me {
  box-shadow: 0 0 0 2px #6366f1;
}

.waiting-participant-card.empty {
  border-style: dashed;
  opacity: 0.5;
}

.waiting-participant-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 20px;
}

.waiting-participant-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.waiting-participant-status {
  font-size: 11px;
  color: var(--text-muted);
}

.waiting-participant-status.ready {
  color: #4fd1c5;
}

.waiting-participant-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
}

.waiting-participant-badge.host {
  background: rgba(255, 215, 0, 0.2);
  color: var(--gold-primary);
}

.waiting-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-ready {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ready:hover {
  transform: scale(1.05);
}

.btn-ready.ready {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.btn-start {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--gradient-gold);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-start:disabled {
  background: #4a5568;
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-start:not(:disabled):hover {
  transform: scale(1.05);
}

.btn-leave {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-leave:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-delete-room {
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.btn-delete-room:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ==========================================
   드래프트 게임 모달
   ========================================== */
.draft-game-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  max-width: 1600px;
  width: 98%;
  height: 95vh;
  max-height: 95vh;
  overflow-y: auto;
  padding: 20px 32px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

.draft-game-header {
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.draft-game-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-primary);
  margin: 0 0 8px 0;
}

.draft-game-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.draft-game-progress {
  background: rgba(79, 209, 197, 0.2);
  color: #4fd1c5;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* 현재 선수 카드 */
.draft-current-player {
  background: rgba(255, 215, 0, 0.05);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.draft-player-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.draft-player-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--gold-primary);
}

.draft-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.draft-player-avatar span {
  font-size: 32px;
  color: var(--gold-primary);
}

.draft-player-info {
  flex: 1;
}

.draft-player-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.draft-player-position {
  font-size: 14px;
  color: #4fd1c5;
  margin-bottom: 4px;
}

.draft-player-tier {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.draft-player-tier img {
  width: 24px;
  height: 24px;
}

.draft-player-penalty {
  font-size: 13px;
  font-weight: 600;
}

.draft-player-penalty.high { color: #ef4444; }
.draft-player-penalty.mid { color: #ffb800; }
.draft-player-penalty.none { color: #4fd1c5; }

/* 입찰 정보 */
.draft-bid-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.draft-current-bid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bid-label {
  font-size: 12px;
  color: var(--text-muted);
}

.bid-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-primary);
}

.bid-bidder {
  font-size: 14px;
  color: #4fd1c5;
  font-weight: 600;
}

/* 타이머 */
.draft-timer {
  flex: 1;
  max-width: 300px;
}

.timer-bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.timer-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--timer-width, 100%);
  background: linear-gradient(90deg, #4fd1c5 0%, #ffb800 50%, #ef4444 100%);
  border-radius: 6px;
  transition: width 0.1s linear;
}

.timer-bar.warning::after {
  background: #ef4444;
  animation: timerPulse 0.5s ease infinite;
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.timer-text {
  display: block;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

/* 입찰 버튼 */
.draft-bid-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.bid-quick-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.bid-quick-btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bid-quick-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.bid-quick-btn:disabled {
  background: #4a5568;
  cursor: not-allowed;
}

.bid-custom {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.bid-custom input {
  width: 120px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-primary);
  background: var(--bg-secondary);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  text-align: center;
  outline: none;
}

.bid-custom input:focus {
  border-color: var(--gold-primary);
}

.btn-bid-submit {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--gradient-gold);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-bid-submit:hover:not(:disabled) {
  transform: scale(1.05);
}

.btn-bid-submit:disabled {
  background: #4a5568;
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-pass {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: center;
}

.btn-pass:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 감독 현황 */
.draft-directors-status {
  margin-bottom: 10px;
}

.draft-directors-status h4 {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 8px 0;
}

.draft-directors-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.draft-director-card {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
  transition: all 0.2s ease;
}

.draft-director-card.me {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

.draft-director-card.bidding {
  border-color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.1);
  animation: bidPulse 0.5s ease;
}

@keyframes bidPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.draft-director-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.draft-director-gold {
  font-size: 12px;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 2px;
}

.draft-director-team-count {
  font-size: 10px;
  color: var(--text-muted);
}

/* 감독 현황 미니 프로필 */
.draft-director-team-slots {
  display: flex;
  gap: 3px;
  margin-top: 6px;
  justify-content: center;
}

.director-mini-slot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid transparent;
  font-size: 9px;
  color: var(--text-muted);
}

.director-mini-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-mini-slot.gold-player {
  border-color: var(--gold-primary);
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

.director-mini-slot.empty {
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.mini-slot-text {
  font-size: 9px;
  font-weight: 600;
}

/* 내 팀 현황 */
.draft-my-team {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.draft-my-team h4 {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.draft-my-team h4 span {
  color: var(--gold-primary);
  font-size: 16px;
}

.draft-my-slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.draft-my-slot {
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 8px 12px;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 130px;
}

.draft-my-slot.filled {
  border-style: solid;
  border-color: #4fd1c5;
  background: rgba(79, 209, 197, 0.1);
}

.draft-my-slot-pos {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.draft-my-slot-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.draft-my-slot-name.filled {
  color: #4fd1c5;
}

.draft-my-slot-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-primary);
}

/* 내 팀 슬롯 프로필 이미지 + 티어별 테두리 */
.draft-my-slot-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto 10px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.draft-my-slot-avatar.filled {
  border-color: rgba(79, 209, 197, 0.6);
}

/* 티어별 테두리 색상 */
.draft-my-slot.tier-gold .draft-my-slot-avatar {
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.draft-my-slot.tier-silver .draft-my-slot-avatar {
  border-color: #c0c0c0;
  box-shadow: 0 0 12px rgba(192, 192, 192, 0.5);
}

.draft-my-slot.tier-bronze .draft-my-slot-avatar {
  border-color: #cd7f32;
  box-shadow: 0 0 12px rgba(205, 127, 50, 0.5);
}

.draft-my-slot.tier-iron .draft-my-slot-avatar {
  border-color: #8a8a8a;
  box-shadow: 0 0 10px rgba(138, 138, 138, 0.4);
}

.draft-my-slot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.draft-my-slot-avatar span {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-secondary);
}

.draft-my-slot.gold-player {
  border-color: var(--gold-primary) !important;
  border-width: 3px;
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.draft-my-slot.gold-player .draft-my-slot-avatar {
  border-color: var(--gold-primary);
  border-width: 3px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.draft-my-slot.gold-player .draft-my-slot-name {
  color: var(--gold-primary);
}

/* 빈 슬롯 스타일 */
.draft-my-slot-empty {
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
}

.draft-my-slot-fallback {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* 나가기 버튼 */
.draft-game-actions {
  text-align: center;
}

.btn-leave-game {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-leave-game:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* 낙찰/유찰 애니메이션 */
.draft-result-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.draft-result-content {
  text-align: center;
  animation: resultPop 0.5s ease;
}

@keyframes resultPop {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.draft-result-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.draft-result-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.draft-result-text.sold {
  color: var(--gold-primary);
}

.draft-result-text.passed {
  color: var(--text-muted);
}

/* ==========================================
   드래프트 결과 모달
   ========================================== */
.draft-result-modal {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  animation: modalSlideIn 0.3s ease;
}

.draft-result-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-primary);
  text-align: center;
  margin: 0 0 8px 0;
}

.draft-result-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 32px 0;
}

.draft-result-teams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.draft-result-team {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
}

.draft-result-team.me {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

.draft-result-team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.draft-result-team-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.draft-result-team-gold {
  font-size: 14px;
  color: var(--gold-primary);
  font-weight: 600;
}

.draft-result-team-players {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.draft-result-player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  font-size: 13px;
}

.draft-result-player-pos {
  color: #4fd1c5;
  font-weight: 600;
  width: 40px;
}

.draft-result-player-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-right: 8px;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.draft-result-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.draft-result-player-avatar span {
  font-size: 10px;
  font-weight: 600;
}

.draft-result-player.gold-player .draft-result-player-avatar {
  border-color: var(--gold-primary);
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

.draft-result-player-name {
  flex: 1;
  color: var(--text-primary);
}

.draft-result-player-price {
  color: var(--gold-primary);
  font-weight: 600;
}

.draft-result-player.empty {
  opacity: 0.4;
}

.draft-result-actions {
  text-align: center;
}

.btn-close-result {
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--gradient-gold);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-result:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  background: var(--gradient-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 24px;
  color: var(--bg-primary);
}

.footer-brand-text h3 {
  font-size: 18px;
  margin: 0;
}

.footer-brand-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-legal {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================
   반응형 스타일
   ========================================== */
@media (max-width: 768px) {
  .nav-tabs {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.98);
    padding: 20px;
    gap: 10px;
  }
  
  .nav-tabs.active {
    display: flex;
  }
  
  .nav-mobile-toggle {
    display: flex;
  }
  
  .draft-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .draft-countdown-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .directors-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .director-team-slots {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .draft-position-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }
  
  .draft-position-tab {
    flex-shrink: 0;
  }
  
  .multiplayer-actions {
    flex-direction: column;
  }
  
  .room-rules-summary ul,
  .multiplayer-rules ul {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .waiting-participants-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .waiting-actions {
    flex-direction: column;
  }
  
  .draft-directors-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .draft-my-slots {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .bid-quick-buttons {
    flex-wrap: wrap;
  }
  
  .draft-player-card {
    flex-direction: column;
    text-align: center;
  }
  
  .draft-bid-info {
    flex-direction: column;
  }
}
