/* =============================================
   OutRaiders - 게임 커스텀 스타일
   Bootstrap 5 다크 테마 기반
   ============================================= */

/* ── 전역 ───────────────────────────────────── */
:root {
  --bg-dark:        #0e0e12;
  --bg-panel:       #16161d;
  --bg-panel-title: #1e1e28;
  --border-color:   #2a2a38;
  --text-muted:     #6c757d;
  --gold:           #ffc107;
  --corruption:     #dc3545;
  --safe:           #20c997;
}

body.game-body {
  background-color: var(--bg-dark);
  color: #d0d0d8;
  font-family: 'Segoe UI', 'Malgun Gothic', sans-serif;
  font-size: .875rem;
}

/* ── 공통 패널 ──────────────────────────────── */
.game-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  transition: box-shadow 1s ease;
}
.game-panel:hover {
  box-shadow: 0 0 12px rgba(255,193,7,.04);
}

.panel-title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

/* ── 능력치 행 ──────────────────────────────── */
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
  border-bottom: 1px solid #1e1e28;
  position: relative;
}
.stat-row[data-tooltip] { cursor: help; }
.stat-row[data-tooltip]:hover { background: rgba(255,255,255,.04); border-radius: 3px; }
.stat-row[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0; top: 100%;
  z-index: 999;
  background: #1a1a2e;
  color: #ccc;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: .65rem;
  line-height: 1.5;
  white-space: pre-line;
  min-width: 200px;
  max-width: 280px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s;
}
.stat-row[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.stat-label { color: #7a7a9a; font-size: .75rem; }
.stat-value { font-weight: 600; font-size: .8rem; }

/* ── 게임 로그 ──────────────────────────────── */
.game-log {
  background: #0a0a10;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px;
  min-height: 80px;
  max-height: 220px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: .78rem;
}

.log-line { margin-bottom: 2px; line-height: 1.4; }

/* ── 지역 목록 ──────────────────────────────── */
.region-list {
  max-height: 400px;
  overflow-y: auto;
}

.region-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 6px;
  border-radius: 4px;
  border-bottom: 1px solid var(--border-color);
  color: #c0c0cc;
  text-decoration: none;
  transition: background .15s;
  font-size: .78rem;
}

.region-entry:hover  { background: #20202c; color: #fff; }
.region-entry.active { background: #1e2832; color: var(--gold); font-weight: 600; }
.region-meta         { font-size: .65rem; color: var(--text-muted); }

/* ── 시설 버튼 ──────────────────────────────── */
.facility-btn {
  display: block;
  padding: 12px 6px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #c0c0cc;
  text-decoration: none;
  background: var(--bg-panel-title);
  transition: border-color .15s, color .15s, background .15s;
  font-size: .78rem;
}

.facility-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: #1e1e2a;
}

/* ── 던전 입구 ──────────────────────────────── */
.dungeon-entry {
  display: flex;
  padding: 6px 8px;
  border: 1px solid #2a2a40;
  border-radius: 4px;
  margin-bottom: 4px;
  color: #c0c0cc;
  text-decoration: none;
  background: #12121a;
  transition: background .15s;
  font-size: .8rem;
}

.dungeon-entry:hover { background: #1a1a28; color: var(--gold); }

/* ── 퀘스트 / 대장간 카드 ──────────────────── */
.quest-card {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px 10px;
  background: #12121a;
}

/* ── 장비 슬롯 ──────────────────────────────── */
.equip-slot {
  border-bottom: 1px solid var(--border-color);
  padding: 3px 0;
  font-size: .78rem;
}

/* ── 장비 등급 색상 ─────────────────────────── */
.grade-common    { color: #9e9e9e; }
.grade-uncommon  { color: #4caf50; }
.grade-rare      { color: #2196f3; }
.grade-epic      { color: #9c27b0; }
.grade-unique    { color: #ff9800; }
.grade-mystic    { color: #00bcd4; }
.grade-legend    { color: #f44336; }
.grade-artifact  { color: #ff5722; }
.grade-divine    { color: #ffeb3b; }
.grade-origin    { color: #e91e63; }
.grade-eternal   { color: #3f51b5; }
.grade-god       { color: #fff; text-shadow: 0 0 8px #ffc107, 0 0 16px #ffc107; }

/* ── 로그인 박스 ─────────────────────────────── */
.login-bg {
  background: radial-gradient(ellipse at center, #0e0e1a 0%, #050508 100%);
}

.login-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
}

/* ── 직업 선택 카드 ─────────────────────────── */
.class-card {
  border-color: var(--border-color) !important;
  background: #12121a !important;
  color: #c0c0cc !important;
  transition: border-color .2s, color .2s !important;
  padding: 12px 6px !important;
  min-height: 110px;
}

.btn-check:checked + .class-card {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  background: #1e1e28 !important;
}

/* ── 상단 헤더 바 ────────────────────────────────── */
.game-topbar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  background: linear-gradient(180deg, #0e0e16 0%, #0a0a10 100%);
  border-bottom: 1px solid #1a1a28;
  font-size: .75rem;
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 1050;
  height: 36px;
}
.game-topbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,193,7,.1) 30%, rgba(255,193,7,.06) 70%, transparent 100%);
}
.topbar-brand {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: 1.5px;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,193,7,.03);
  border-right: 1px solid #1a1a28;
  transition: background .15s, color .15s;
  position: relative;
}
.topbar-brand::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .3;
}
.topbar-brand:hover { color: #ffd740; background: rgba(255,193,7,.06); }
.topbar-brand .fa-skull {
  font-size: .75rem;
  filter: drop-shadow(0 0 4px rgba(255,193,7,.3));
}
.topbar-link {
  color: #6a6a80;
  text-decoration: none;
  transition: color .15s, background .15s;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  border-right: 1px solid #141420;
  font-size: .72rem;
  letter-spacing: .3px;
}
.topbar-link i { font-size: .65rem; transition: color .15s; }
.topbar-link:hover {
  color: #b0b0c0;
  background: rgba(255,255,255,.02);
}
.topbar-link:hover i { color: var(--gold); }
.topbar-online {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  color: #6a6a80;
  font-size: .7rem;
  border-left: 1px solid #141420;
  height: 100%;
  letter-spacing: .3px;
}
.topbar-online #onlineCount { color: #2ecc71; font-weight: 700; }
.topbar-sound-btn {
  background: none;
  border: none;
  color: #4a4a60;
  font-size: .72rem;
  padding: 0 10px;
  height: 100%;
  cursor: pointer;
  transition: color .15s;
  border-left: 1px solid #141420;
}
.topbar-sound-btn:hover { color: #b0b0c0; }
.topbar-sound-btn.active { color: #2ecc71; }
.topbar-sound-btn.active i::before { content: "\f028"; } /* fa-volume-high */
.topbar-logout {
  border-right: none;
  border-left: 1px solid #141420;
}
.topbar-logout:hover { color: #a04040; background: rgba(192,57,43,.04); }
.topbar-logout:hover i { color: #a04040; }
.topbar-sep { display: none; }

/* ── 클릭 가능한 명령어 ─────────────────── */
.cmd-link {
  color: #5a8abf;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px dotted rgba(90,138,191,.3);
  transition: color .15s, border-color .15s;
}
.cmd-link:hover {
  color: #7ab5e8;
  border-bottom-color: rgba(122,181,232,.5);
}

/* ── 코덱스 Offcanvas ───────────────────────── */
.codex-offcanvas {
  background: linear-gradient(180deg, #0c0c14 0%, #08080e 100%);
  border-left: 1px solid #1a1a28;
  max-width: 500px;
  width: 92vw;
  box-shadow: -10px 0 40px rgba(0,0,0,.5);
}
.codex-header-bar {
  background: linear-gradient(180deg, #10101a 0%, #0c0c14 100%);
  border-bottom: 1px solid #1a1a28;
  padding: 12px 16px;
  position: relative;
}
.codex-header-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,193,7,.12), transparent);
}
.codex-offcanvas .offcanvas-title {
  color: var(--gold);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(255,193,7,.15);
}

/* 검색 */
.codex-search-wrap {
  padding: 8px 12px 4px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
}
.codex-search-inner {
  display: flex;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 4px 10px;
  gap: 8px;
}
.codex-search-icon {
  color: #5a5a7a;
  font-size: .75rem;
  flex-shrink: 0;
}
.codex-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #d0d0d8;
  font-size: .8rem;
  caret-color: var(--gold);
}
.codex-search-input::placeholder { color: #4a4a66; }

/* 카테고리 탭 */
.codex-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 8px;
  background: #0c0c14;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
}
.codex-tabs::-webkit-scrollbar { display: none; }
.codex-tab {
  flex-shrink: 0;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #6a6a88;
  font-size: .7rem;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.codex-tab:hover { color: #a0a0c0; background: rgba(255,255,255,.03); }
.codex-tab.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(255,193,7,.06);
}

/* 진행률 */
.codex-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
}
.codex-progress-bar {
  flex: 1;
  height: 4px;
  background: #1a1a2a;
  border-radius: 2px;
  overflow: hidden;
}
.codex-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #ff9800);
  border-radius: 2px;
  transition: width .4s;
}
.codex-progress-text {
  color: #6a6a88;
  font-size: .65rem;
  white-space: nowrap;
}

/* 본문 */
.codex-body {
  padding: 6px 8px;
}

/* 카테고리 헤더 */
.codex-category-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  margin: 4px 0 2px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,193,7,.15);
}
.codex-cat-count {
  margin-left: auto;
  color: #5a5a7a;
  font-weight: 400;
  font-size: .65rem;
}

/* 항목 */
.codex-entry {
  margin-bottom: 3px;
  transition: transform .15s;
}
.codex-entry:hover {
  transform: translateX(2px);
}
/* ── 레이더 정보 접기/펼치기 ── */
[aria-expanded="false"] .raider-chevron { transform: rotate(180deg); }

.codex-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: linear-gradient(180deg, #111118 0%, #0e0e14 100%);
  border: 1px solid #1a1a28;
  border-radius: 4px;
  color: #b0b0c0;
  font-size: .78rem;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  gap: 8px;
}
.codex-toggle:hover {
  background: linear-gradient(180deg, #151520 0%, #111118 100%);
  color: var(--gold);
  border-color: rgba(255,193,7,.15);
}
.codex-toggle i {
  transition: color .15s;
}
.codex-toggle:hover i {
  color: var(--gold);
}
.codex-toggle[aria-expanded="true"] .codex-chevron {
  transform: rotate(180deg);
}
.codex-chevron {
  font-size: .55rem;
  transition: transform .2s;
  flex-shrink: 0;
}

/* 잠금 항목 */
.codex-locked .codex-toggle-locked {
  background: rgba(14,14,18,.8);
  border-color: #1a1a28;
  color: #3a3a52;
  cursor: default;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.codex-locked .codex-toggle-locked:hover {
  background: rgba(14,14,18,.8);
  color: #3a3a52;
}
.codex-hint {
  font-size: .65rem;
  color: #4a4a66;
  font-style: italic;
}
.codex-frag-progress {
  margin-top: 4px;
  width: 100%;
}
.codex-frag-label {
  font-size: .6rem;
  color: #5a5a78;
}
.codex-frag-bar {
  width: 100%;
  height: 3px;
  background: #1a1a28;
  border-radius: 2px;
  margin-top: 2px;
  overflow: hidden;
}
.codex-frag-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a4080, #6a5aa0);
  border-radius: 2px;
  transition: width .3s ease;
}

/* 내용 */
.codex-content {
  background: linear-gradient(180deg, #0c0c14 0%, #0a0a10 100%);
  border: 1px solid #1a1a28;
  border-top: none;
  border-radius: 0 0 4px 4px;
  padding: 12px 16px;
  margin-top: -1px;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #2a2a40 transparent;
  animation: codexContentFade .3s ease;
}
@keyframes codexContentFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.codex-content pre {
  color: #a0a0b8;
  font-family: 'Malgun Gothic', 'Segoe UI', sans-serif;
  font-size: .76rem;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  line-height: 1.7;
  letter-spacing: .2px;
}
/* 코덱스 내용 첫 글자 강조 */
.codex-content pre::first-line {
  color: #c0b898;
}

/* 검색/필터 숨김 */
.codex-entry.codex-hidden { display: none; }
.codex-category-group.codex-hidden { display: none; }

/* ═══ 가이드 (플레이어 노트) 슬라이드 패널 ═══════════════════════ */
.guide-offcanvas {
  background: linear-gradient(180deg, #0c0c14 0%, #08080e 100%);
  border-right: 1px solid #1a1a28;
  max-width: 480px; width: 92vw;
  box-shadow: 10px 0 40px rgba(0,0,0,.5);
}
.guide-header-bar {
  background: linear-gradient(180deg, #10101a 0%, #0c0c14 100%);
  border-bottom: 1px solid #1a1a28;
  padding: 12px 16px;
  position: relative;
}
.guide-header-bar .offcanvas-title {
  color: #70b8e8;
  font-size: .95rem;
  font-weight: 600;
}
.guide-header-bar::after {
  content: '';
  position: absolute; bottom: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(112,184,232,.12), transparent);
}

/* 검색 + 새 노트 */
.guide-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.guide-search-inner {
  flex: 1; display: flex; align-items: center;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-color);
  border-radius: 4px; padding: 4px 10px; gap: 8px;
}
.guide-search-icon { color: #444; font-size: .75rem; }
.guide-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #d0d0d8; font-size: .8rem; caret-color: #70b8e8;
}
.guide-search-input::placeholder { color: #3a3a50; }
.guide-btn-new {
  background: rgba(112,184,232,.1);
  border: 1px solid rgba(112,184,232,.2);
  color: #70b8e8; border-radius: 4px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
  font-size: .85rem;
}
.guide-btn-new:hover {
  background: rgba(112,184,232,.2); color: #a0d4ff;
}

/* 카테고리 탭 */
.guide-tabs {
  display: flex; gap: 2px; padding: 6px 8px;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.guide-tabs::-webkit-scrollbar { display: none; }
.guide-tab {
  flex-shrink: 0;
  padding: 4px 10px; border: 1px solid transparent;
  border-radius: 3px; background: transparent;
  color: #505068; font-size: .72rem; cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.guide-tab:hover { color: #8090a0; }
.guide-tab.active {
  color: #70b8e8; border-color: #70b8e8;
  background: rgba(112,184,232,.06);
}

/* 목록 바디 */
.guide-body { padding: 0 !important; }

/* 개별 가이드 카드 */
.guide-card {
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .2s;
}
.guide-card:hover { background: rgba(255,255,255,.02); }
.guide-card-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; cursor: pointer;
}
.guide-card-pin {
  color: #70b8e8; font-size: .65rem; flex-shrink: 0;
}
.guide-card-cat {
  font-size: .65rem; color: #505068;
  background: rgba(255,255,255,.04);
  padding: 1px 6px; border-radius: 3px; flex-shrink: 0;
}
.guide-card-title {
  flex: 1; font-size: .8rem; color: #b0b0c0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.guide-card-system .guide-card-title {
  color: #6a9088;
}
.guide-card-actions {
  display: flex; gap: 4px; flex-shrink: 0;
}
.guide-card-actions button {
  background: transparent; border: none;
  color: #3a3a50; font-size: .7rem; cursor: pointer;
  padding: 2px 4px; transition: color .2s;
}
.guide-card-actions button:hover { color: #80a0b0; }
.guide-card-actions .guide-delete-btn:hover { color: #c04040; }

/* 카드 내용 (접을 수 있는) */
.guide-card-body {
  display: none;
  padding: 0 14px 12px 14px;
  animation: guideContentFade .25s ease;
}
.guide-card-body.show { display: block; }
.guide-card-content {
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 4px; padding: 10px 12px;
  font-size: .78rem; color: #909098;
  white-space: pre-wrap; word-break: break-word;
  line-height: 1.6; max-height: 400px; overflow-y: auto;
}
.guide-card-meta {
  font-size: .65rem; color: #3a3a50; margin-top: 6px;
  text-align: right;
}

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

/* 빈 상태 */
.guide-empty-text {
  text-align: center; color: #3a3a50;
  padding: 40px 20px; font-size: .82rem;
  line-height: 1.8;
}
.guide-empty-text i { font-size: 1.5rem; display: block; margin-bottom: 8px; }

/* 에디터 */
.guide-editor {
  padding: 12px 14px;
}
.guide-editor-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.guide-btn-back {
  background: transparent; border: 1px solid rgba(255,255,255,.08);
  color: #707080; font-size: .75rem; padding: 4px 10px;
  border-radius: 3px; cursor: pointer; transition: all .2s;
}
.guide-btn-back:hover { color: #a0a0b0; border-color: rgba(255,255,255,.15); }
.guide-editor-title {
  color: #70b8e8; font-size: .85rem; font-weight: 600;
}
.guide-editor-field {
  margin-bottom: 10px;
}
.guide-editor-field label {
  display: block; font-size: .7rem; color: #505068;
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px;
}
.guide-select,
.guide-input {
  width: 100%; background: rgba(255,255,255,.03);
  border: 1px solid var(--border-color); border-radius: 4px;
  color: #c0c0d0; font-size: .8rem; padding: 6px 10px;
  outline: none; transition: border-color .2s;
}
.guide-select:focus,
.guide-input:focus,
.guide-textarea:focus {
  border-color: rgba(112,184,232,.3);
}
.guide-select option { background: #12121a; color: #c0c0d0; }
.guide-textarea {
  width: 100%; background: rgba(255,255,255,.03);
  border: 1px solid var(--border-color); border-radius: 4px;
  color: #c0c0d0; font-size: .78rem; padding: 8px 10px;
  outline: none; resize: vertical; min-height: 120px;
  line-height: 1.6; font-family: inherit;
}
.guide-char-count {
  text-align: right; font-size: .65rem; color: #3a3a50; margin-top: 2px;
}
.guide-editor-actions {
  display: flex; gap: 8px; margin-top: 14px;
}
.guide-btn-save {
  flex: 1; background: rgba(112,184,232,.15);
  border: 1px solid rgba(112,184,232,.3);
  color: #70b8e8; border-radius: 4px;
  padding: 8px; font-size: .8rem; cursor: pointer;
  transition: all .2s;
}
.guide-btn-save:hover {
  background: rgba(112,184,232,.25); color: #a0d4ff;
}
.guide-btn-cancel {
  background: transparent;
  border: 1px solid rgba(255,255,255,.08);
  color: #505068; border-radius: 4px;
  padding: 8px 16px; font-size: .8rem; cursor: pointer;
  transition: all .2s;
}
.guide-btn-cancel:hover { color: #808090; border-color: rgba(255,255,255,.15); }

/* 가이드 숨김 */
.guide-card.guide-hidden { display: none; }

/* ── MUD 터미널 ─────────────────────────────── */
.mud-terminal-wrap {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  height: calc(100vh - 110px);
  min-height: 400px;
}

.mud-location-sub {
  color: var(--text-muted);
  font-size: .7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 40%;
}

.mud-log {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  font-family: 'Courier New', 'D2Coding', monospace;
  font-size: .8rem;
  line-height: 1.6;
  background: #07070e;
  scrollbar-width: thin;
  position: relative;
  z-index: 1;
}

/* ── 앰비언트 파티클 캔버스 ─────────────────── */
.mud-log-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .35;
}

/* ── 새 라인 페이드인 ───────────────────────── */
.mud-line {
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  word-break: break-word;
  animation: lineAppear .4s ease-out;
}
@keyframes lineAppear {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 위치 바 앰비언트 ───────────────────────── */
.mud-location-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--bg-panel-title);
  border-bottom: 1px solid var(--border-color);
  font-size: .78rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.mud-location-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,193,7,.03) 20%,
    rgba(255,193,7,.06) 50%,
    rgba(255,193,7,.03) 80%,
    transparent 100%
  );
  animation: locBarShimmer 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes locBarShimmer {
  0%, 100% { opacity: 0; transform: translateX(-100%); }
  50%      { opacity: 1; transform: translateX(100%); }
}

/* 위험 지역 붉은 배지 펄스 */
.mud-badge-danger {
  color: var(--corruption);
  font-size: .7rem;
  border: 1px solid var(--corruption);
  border-radius: 3px;
  padding: 1px 5px;
  animation: dangerPulse 2s ease-in-out infinite;
}
@keyframes dangerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,53,69,0); }
  50%      { box-shadow: 0 0 8px 2px rgba(220,53,69,.25); }
}

/* 안전 지역 배지 부드러운 글로우 */
.mud-badge-safe {
  color: var(--safe);
  font-size: .7rem;
  border: 1px solid var(--safe);
  border-radius: 3px;
  padding: 1px 5px;
  animation: safePulse 3s ease-in-out infinite;
}
@keyframes safePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(32,201,151,0); }
  50%      { box-shadow: 0 0 6px 1px rgba(32,201,151,.15); }
}

/* ── 스캔라인 오버레이 (CRT 느낌) ─────────────── */
.mud-log-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.04) 2px,
    rgba(0,0,0,.04) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* ── 프롬프트 깜빡임 ───────────────────────── */
.mud-prompt {
  animation: promptBlink 1.2s step-end infinite;
}
@keyframes promptBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* ── 입력 포커스 글로우 ─────────────────────── */
.mud-input:focus {
  box-shadow: 0 0 0 1px rgba(255,193,7,.2), inset 0 0 8px rgba(255,193,7,.05);
}

/* ── HP/MP 바 트랜지션 ──────────────────────── */
.hp-bar-inner, .mp-bar-inner {
  transition: width .6s cubic-bezier(.22,.61,.36,1);
}

.mud-line.mud-echo {
  color: #5a5a7a;
}
.mud-line.mud-divider {
  color: #2a2a3a;
}

/* ── 주변 환경 묘사 (Ambient Idle Text) ───────────── */
.mud-line.mud-ambient {
  font-style: italic;
  padding-left: 8px;
  border-left: 2px solid transparent;
}
.mud-line.ambient-sound { color: #6a8a9a; border-left-color: #3a5a6a; }
.mud-line.ambient-visual { color: #7a8a6a; border-left-color: #4a5a3a; }
.mud-line.ambient-scent { color: #9a8a6a; border-left-color: #6a5a3a; }
.mud-line.ambient-mood { color: #7a7a9a; border-left-color: #4a4a6a; }
.mud-line.ambient-npc { color: #8a8a7a; border-left-color: #5a5a4a; }
.mud-line.ambient-inner { color: #6a7a8a; border-left-color: #3a4a5a; }
.mud-line.ambient-corrupt { color: #9a5a6a; border-left-color: #6a2a3a; }

.mud-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #0e0e16;
  border-top: 2px solid var(--gold);
  flex-shrink: 0;
  transition: border-color .2s;
}
.mud-input-row:focus-within {
  border-top-color: #e8c060;
  background: #111120;
}

.mud-prompt {
  color: var(--gold);
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: bold;
  flex-shrink: 0;
  user-select: none;
}

.mud-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e0e0e8;
  font-family: 'Courier New', 'D2Coding', monospace;
  font-size: .9rem;
  caret-color: var(--gold);
  letter-spacing: .02em;
}

.mud-input::placeholder {
  color: #4a4a66;
  font-style: italic;
}

.mud-send-btn {
  background: #1a1a2e;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 4px;
  padding: 4px 14px;
  font-size: .85rem;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
  font-weight: bold;
}
.mud-send-btn:hover,
.mud-send-btn:active {
  background: var(--gold);
  color: #0e0e16;
}

.text-cyan { color: #00bcd4; }

/* ── 모바일 MUD ─────────────────────────────── */
@media (max-width: 991px) {
  .mud-terminal-wrap {
    height: 60vh;
    min-height: 300px;
  }
}

/* ── 컨테이너 ───────────────────────────────── */

.game-container { padding: 0 8px 40px; }

/* ══ 게임형 미니맵 (gmap) ════════════════════ */

.gmap-wrap {
  background: #040408;
  border: 1px solid #14141e;
  border-radius: 4px;
  padding: 6px 4px 4px;
  position: relative;
}

/* 5×5 그리드: 룸(1fr) | 코리도(14px) | 룸(1fr) | 코리도(14px) | 룸(1fr) */
.gmap-grid {
  display: grid;
  grid-template-columns: 1fr 14px 1fr 14px 1fr;
  grid-template-rows: 38px 12px 38px 12px 38px;
  gap: 0;
}

.gmap-void { /* 빈 셀 */ }

/* ── 룸 노드 공통 ── */
.gmap-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  border: 1px solid transparent;
  gap: 1px;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  position: relative;
}

/* 아이콘 / 이름 */
.gni {
  font-size: .72rem;
  line-height: 1;
  display: block;
}
.gnn {
  font-size: .65rem;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
  display: block;
}

/* ── 빈 방향 (인접 지역 없음) ── */
.gmap-node.gmap-void {
  background: transparent;
  border-color: transparent;
}

/* ── 미탐색 지역 (안개) ── */
.gmap-node.gmap-fog {
  background: #0a0a0f;
  border-color: #1a1a2e;
  color: #3a3a5a;
  text-shadow: 0 0 4px rgba(80,80,140,.3);
  animation: fogPulse 3s ease-in-out infinite;
}
.gmap-fog .gni { color: #2a2a4a; font-size: .65rem; }
.gmap-fog .gnn { color: #3a3a5a; letter-spacing: 2px; }
@keyframes fogPulse {
  0%, 100% { opacity: .5; }
  50% { opacity: .8; }
}

/* ── 안전 지역 ── */
.gmap-safe {
  background: #07140d;
  border-color: #163a26;
  color: #1a9e6a;
}
/* 안전지역 코너 글로우 */
.gmap-safe::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  box-shadow: inset 0 0 4px rgba(26,158,106,.12);
  pointer-events: none;
}

/* ── 위험 지역 ── */
.gmap-danger {
  background: #140707;
  border-color: #3a1414;
  color: #a83030;
}
.gmap-danger::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  box-shadow: inset 0 0 4px rgba(168,48,48,.12);
  pointer-events: none;
}

/* ── 현재 위치 ── */
.gmap-cur {
  background: #1c1500;
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 700;
  animation: gmap-pulse 2.4s ease-in-out infinite;
}
.gmap-cur .gni { font-size: .82rem; }

/* 위험 지역에 현재 위치 */
.gmap-cur.gmap-cur-danger {
  background: #1a0c0c;
  border-color: #c0392b;
  color: #e05050;
  animation: gmap-pulse-red 2.4s ease-in-out infinite;
}

@keyframes gmap-pulse {
  0%, 100% {
    box-shadow: 0 0 4px rgba(255,193,7,.2),
                inset 0 0 3px rgba(255,193,7,.08);
  }
  50% {
    box-shadow: 0 0 10px rgba(255,193,7,.45),
                inset 0 0 6px rgba(255,193,7,.16);
  }
}
@keyframes gmap-pulse-red {
  0%, 100% {
    box-shadow: 0 0 4px rgba(192,57,43,.2),
                inset 0 0 3px rgba(192,57,43,.08);
  }
  50% {
    box-shadow: 0 0 10px rgba(192,57,43,.45),
                inset 0 0 6px rgba(192,57,43,.16);
  }
}

/* ── 복도 (커넥터) ── */
.gmap-ch {
  align-self: center;
  height: 2px;
  opacity: 0;
}
.gmap-ch.gco {
  opacity: 1;
  background: linear-gradient(90deg,
    transparent 0%, #24243a 20%, #38385a 50%, #24243a 80%, transparent 100%);
}

.gmap-cv {
  justify-self: center;
  width: 2px;
  height: 100%;
  opacity: 0;
}
.gmap-cv.gco {
  opacity: 1;
  background: linear-gradient(180deg,
    transparent 0%, #24243a 20%, #38385a 50%, #24243a 80%, transparent 100%);
}

/* ── 나침반 ── */
.gmap-compass {
  display: flex;
  justify-content: space-around;
  font-family: 'Courier New', monospace;
  font-size: .6rem;
  padding: 4px 2px 2px;
  letter-spacing: .06em;
  border-top: 1px solid #0e0e18;
  margin-top: 4px;
}
.gdir-on  { color: #a0a0c0; }
.gdir-off { color: #3a3a50; }

/* ── 미니맵 힌트 ── */
.mm-hint      { text-align: center; font-size: .6rem; color: var(--text-muted); margin-top: 4px; }
.mm-hint code { font-size: .58rem; color: #4a6ab4; background: transparent; padding: 0; }

/* ── 전체 지도 링크 버튼 ──────────────────── */
.gmap-fullmap-link {
  text-align: center;
  font-size: .65rem;
  color: #4a6ab4;
  cursor: pointer;
  padding: 4px 0 2px;
  border-top: 1px solid #1a1a28;
  margin-top: 4px;
  transition: color .15s, background .15s;
}
.gmap-fullmap-link:hover { color: #7ab5e8; background: rgba(90,138,191,.06); }
.gmap-fullmap-link i { margin-right: 3px; }

/* ── 던전 미니맵 ──────────────────────────── */
.dmap-title {
  text-align: center;
  font-size: .72rem;
  color: #d4a44a;
  margin-bottom: 4px;
  letter-spacing: .5px;
  font-weight: 600;
}
.dmap-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}
.dmap-grid {
  display: grid;
  grid-template-columns: 26px 5px 26px 5px 26px 5px 26px 5px 26px;
  grid-template-rows: 26px 5px 26px 5px 26px 5px 26px 5px 26px;
  gap: 0;
}
.dmap-room {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(30,30,40,.6);
  color: #999;
}
.dmap-cur {
  border: 2px solid #d4a44a !important;
  background: rgba(212,164,74,.15) !important;
  color: #ffd700 !important;
  animation: dmapPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(212,164,74,.3);
}
@keyframes dmapPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(212,164,74,.2); }
  50% { box-shadow: 0 0 10px rgba(212,164,74,.5); }
}
.dmap-danger { color: #e25555; border-color: rgba(226,85,85,.25); background: rgba(226,85,85,.08); }
.dmap-gold   { color: #d4a44a; border-color: rgba(212,164,74,.25); background: rgba(212,164,74,.08); }
.dmap-info   { color: #5bb8e8; border-color: rgba(91,184,232,.25); background: rgba(91,184,232,.08); }
.dmap-codex  { color: #b07ce8; border-color: rgba(176,124,232,.25); background: rgba(176,124,232,.08); }
.dmap-trap   { color: #e89d3a; border-color: rgba(232,157,58,.25); background: rgba(232,157,58,.08); }
.dmap-stairs { color: #3ad1e8; border-color: rgba(58,209,232,.25); background: rgba(58,209,232,.08); }
.dmap-boss   { color: #ff4466; border-color: rgba(255,68,102,.3); background: rgba(255,68,102,.1); }
.dmap-safe   { color: #5be86a; border-color: rgba(91,232,106,.2); background: rgba(91,232,106,.06); }
.dmap-empty  { color: #556; }
.dmap-cleared { color: #444; border-color: rgba(255,255,255,.04); background: rgba(20,20,28,.5); }
.dmap-fog    { color: #556; border-color: rgba(255,255,255,.06); background: rgba(40,40,55,.4); }
.dmap-void-s { /* 빈 연결/코너 셀 */ }
.dmap-conn-h {
  background: rgba(120,130,160,.35);
  border-radius: 1px;
  margin: 10px 0;
}
.dmap-conn-v {
  background: rgba(120,130,160,.35);
  border-radius: 1px;
  margin: 0 10px;
}
.dmap-legend {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: .58rem;
  color: #667;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* ── 전체 지도 모달 ───────────────────────── */
/* ═══ 특성 모달 (WoW 스타일) ════════════════════════════════ */
.traits-overlay {
  display: none; position: fixed; inset: 0; z-index: 99998;
  background: rgba(5,5,10,.9); backdrop-filter: blur(6px);
  justify-content: center; align-items: center;
}
.traits-overlay.active { display: flex; }
.traits-modal {
  background: linear-gradient(180deg, #12111a 0%, #0a0a10 100%);
  border: 1px solid #2a2840;
  border-radius: 6px;
  width: 94vw; max-width: 460px; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 0 60px rgba(0,0,0,.7), 0 0 120px rgba(100,80,200,.04);
  position: relative;
  overflow: hidden;
}
/* 장식 상하 골드 라인 */
.traits-modal::before, .traits-modal::after {
  content: ''; position: absolute; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,193,7,.1), transparent);
}
.traits-modal::before { top: 0; }
.traits-modal::after { bottom: 0; }

.traits-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid #1e1d2c;
  font-size: .82rem; color: #c8b06a; font-weight: 700;
  background: linear-gradient(180deg, #16151f, #111018);
}
.traits-header > span:first-child { flex: 1; letter-spacing: .3px; }
.traits-points {
  font-size: .75rem; color: #808090; font-weight: 400;
}
.traits-points span { color: #50c878; font-weight: 700; font-size: .85rem; }
.traits-close {
  background: none; border: none; color: #5a5a70;
  font-size: 1rem; cursor: pointer; padding: 2px 6px; transition: color .15s;
}
.traits-close:hover { color: #e05050; }
.traits-loading {
  width: 100%; text-align: center; color: #505068;
  padding: 40px; font-size: .85rem;
}

/* ── WoW 트리 탭 ── */
.wow-tree-tabs {
  display: flex; border-bottom: 1px solid #1a1928;
  background: #0e0e16;
}
.wow-tree-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 8px 4px 6px; cursor: pointer;
  background: transparent; border: none; border-bottom: 2px solid transparent;
  color: #4a4a60; font-size: .65rem; transition: all .2s;
  position: relative;
}
.wow-tree-tab i { font-size: .9rem; }
.wow-tree-tab:hover { color: #8888a0; background: rgba(255,255,255,.02); }
.wow-tree-tab.active {
  color: var(--tab-color, #c8b06a);
  border-bottom-color: var(--tab-color, #c8b06a);
  background: rgba(255,255,255,.03);
}
.wow-tree-tab .wow-tab-pts {
  font-size: .6rem; font-weight: 700;
  color: #505060;
}
.wow-tree-tab.active .wow-tab-pts { color: var(--tab-color, #c8b06a); }
.wow-tree-tab.has-points .wow-tab-pts { color: #50c878; }

/* ── 트리 본체 ── */
.wow-tree-body {
  flex: 1; overflow-y: auto; padding: 0;
  position: relative;
}
.wow-tree-panel {
  padding: 16px 20px 12px;
  position: relative;
}
/* 배경 — 반투명 트리 색상 그라데이션 */
.wow-tree-panel::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 20%, var(--tree-glow, rgba(100,100,200,.04)), transparent 70%);
  pointer-events: none;
}

/* 트리 제목 */
.wow-tree-title {
  text-align: center; margin-bottom: 16px; position: relative;
}
.wow-tree-title-name {
  font-size: .95rem; font-weight: 800; letter-spacing: 1px;
  color: var(--tree-color, #c0c0d0);
  text-shadow: 0 0 12px var(--tree-glow, rgba(100,100,200,.15));
}
.wow-tree-title-sub {
  font-size: .65rem; color: #505068; margin-top: 2px;
}

/* ── 노드 ── */
.wow-node-list {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  position: relative;
}

/* 연결선 */
.wow-node-connector {
  width: 2px; height: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  position: relative;
}
.wow-node-connector.active {
  background: linear-gradient(180deg, var(--tree-color, rgba(100,160,220,.3)), var(--tree-color, rgba(100,160,220,.15)));
}

/* 노드 자체 */
.wow-node {
  position: relative;
  width: 100%; max-width: 320px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(20,20,30,.8), rgba(15,15,22,.9));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.wow-node:hover {
  border-color: rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(25,25,38,.9), rgba(18,18,28,.95));
}
/* 잠금 노드 */
.wow-node.locked {
  opacity: .4; cursor: default;
  filter: grayscale(.6);
}
.wow-node.locked:hover {
  border-color: rgba(255,255,255,.06);
  background: linear-gradient(135deg, rgba(20,20,30,.8), rgba(15,15,22,.9));
}
/* 투자 가능 노드 — 빛나는 테두리 */
.wow-node.available {
  border-color: rgba(80,200,120,.25);
  box-shadow: 0 0 8px rgba(80,200,120,.08), inset 0 0 15px rgba(80,200,120,.03);
  animation: wowNodePulse 2.5s ease-in-out infinite;
}
@keyframes wowNodePulse {
  0%, 100% { box-shadow: 0 0 8px rgba(80,200,120,.08), inset 0 0 15px rgba(80,200,120,.03); }
  50% { box-shadow: 0 0 14px rgba(80,200,120,.15), inset 0 0 20px rgba(80,200,120,.05); }
}
/* 포인트 있는 노드 */
.wow-node.invested {
  border-color: var(--tree-color-dim, rgba(100,160,220,.2));
  box-shadow: 0 0 6px var(--tree-glow, rgba(100,160,220,.06));
}
/* 완성 노드 */
.wow-node.maxed {
  border-color: var(--tree-color, rgba(200,180,100,.3));
  box-shadow: 0 0 10px var(--tree-glow, rgba(200,180,100,.1));
}
.wow-node.maxed::after {
  content: ''; position: absolute; inset: -1px; border-radius: 4px;
  border: 1px solid var(--tree-color, rgba(200,180,100,.15));
  pointer-events: none;
}

/* 노드 아이콘 */
.wow-node-icon {
  width: 40px; height: 40px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
  transition: all .2s;
}
.wow-node.locked .wow-node-icon { color: #2a2a40; }
.wow-node.available .wow-node-icon {
  color: #70a070; border-color: rgba(80,200,120,.2);
}
.wow-node.invested .wow-node-icon {
  color: var(--tree-color, #80b0d0);
  border-color: var(--tree-color-dim, rgba(100,160,220,.25));
  background: rgba(0,0,0,.4);
}
.wow-node.maxed .wow-node-icon {
  color: var(--tree-color, #c8b06a);
  border-color: var(--tree-color, rgba(200,180,100,.3));
  background: rgba(0,0,0,.5);
  box-shadow: 0 0 10px var(--tree-glow, rgba(200,180,100,.15));
}

/* 노드 정보 */
.wow-node-info { flex: 1; min-width: 0; }
.wow-node-name {
  font-size: .78rem; font-weight: 700;
}
.wow-node.locked .wow-node-name { color: #2a2a40; }
.wow-node.available .wow-node-name { color: #90a090; }
.wow-node.invested .wow-node-name { color: #c0c0d0; }
.wow-node.maxed .wow-node-name { color: var(--tree-color, #d0c888); }

.wow-node-desc {
  font-size: .65rem; margin-top: 2px;
}
.wow-node.locked .wow-node-desc { color: #252530; }
.wow-node.available .wow-node-desc,
.wow-node.invested .wow-node-desc { color: #606078; }
.wow-node.maxed .wow-node-desc { color: #808068; }

.wow-node-detail {
  font-size: .6rem; color: #404050; margin-top: 1px; font-style: italic;
}
.wow-node.invested .wow-node-detail,
.wow-node.maxed .wow-node-detail { color: #505060; }

/* 노드 포인트 카운터 */
.wow-node-pts {
  flex-shrink: 0;
  font-size: .75rem; font-weight: 800;
  padding: 2px 8px; border-radius: 3px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.06);
  min-width: 38px; text-align: center;
}
.wow-node.locked .wow-node-pts { color: #252530; }
.wow-node.available .wow-node-pts { color: #50c878; border-color: rgba(80,200,120,.2); }
.wow-node.invested .wow-node-pts { color: var(--tree-color, #80b0d0); }
.wow-node.maxed .wow-node-pts {
  color: var(--tree-color, #c8b06a);
  border-color: var(--tree-color-dim, rgba(200,180,100,.2));
  background: rgba(200,180,100,.06);
}

/* ── 하단 요약 ── */
.wow-tree-footer {
  padding: 8px 16px;
  border-top: 1px solid #1a1928;
  display: flex; justify-content: center; gap: 16px;
  font-size: .68rem; color: #505068;
  background: #0e0e16;
}
.wow-footer-tree {
  display: flex; align-items: center; gap: 4px;
}
.wow-footer-tree i { font-size: .7rem; }
.wow-footer-tree .wow-ft-pts { font-weight: 700; }

/* 투자 시 피드백 */
@keyframes wowInvestFlash {
  0% { background: rgba(80,200,120,.15); }
  100% { background: transparent; }
}
.wow-node.invest-flash {
  animation: wowInvestFlash .4s ease;
}

/* 반응형 */
@media (max-width: 767px) {
  .traits-modal { max-width: 98vw; }
  .wow-node { padding: 8px 10px; gap: 8px; }
  .wow-node-icon { width: 34px; height: 34px; font-size: .95rem; }
}

/* ═══ 세계 지도 모달 ═════════════════════════════════ */
.fullmap-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5,5,10,.88);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}
.fullmap-overlay.active { display: flex; }
.fullmap-modal {
  background: #0d0d14;
  border: 1px solid #2a2a40;
  border-radius: 8px;
  width: 90vw;
  max-width: 860px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0,0,0,.6), 0 0 80px rgba(255,193,7,.03);
}
.fullmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #1a1a2e;
  font-size: .82rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .5px;
}
.fullmap-close {
  background: none;
  border: none;
  color: #6a6a80;
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  transition: color .15s;
}
.fullmap-close:hover { color: #e05050; }
.fullmap-body {
  flex: 1;
  overflow: auto;
  padding: 16px;
  position: relative;
}
.fullmap-legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 8px 16px;
  border-top: 1px solid #1a1a2e;
  font-size: .65rem;
  color: #6a6a80;
}
.fml-item { display: flex; align-items: center; gap: 4px; }
.fml-dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  border: 1px solid;
}
.fml-cur    { background: #1c1500; border-color: var(--gold); box-shadow: 0 0 4px rgba(255,193,7,.4); }
.fml-safe   { background: #07140d; border-color: #163a26; }
.fml-danger { background: #140707; border-color: #3a1414; }
.fml-fog    { background: #0a0a0f; border-color: #1a1a2e; }

/* ── 전체 지도 SVG 노드 ──────────────────── */
.fm-svg { width: 100%; height: 100%; }
.fm-node {
  cursor: default;
  transition: filter .2s;
}
.fm-node:hover { filter: brightness(1.3); }
.fm-node-cur rect { stroke: var(--gold); stroke-width: 2; fill: #1c1500; animation: fmPulse 2s ease-in-out infinite; }
.fm-node-safe rect { stroke: #163a26; fill: #07140d; }
.fm-node-danger rect { stroke: #3a1414; fill: #140707; }
.fm-node-fog rect { stroke: #1a1a2e; fill: #0a0a0f; stroke-dasharray: 3 2; }
.fm-node text { font-family: 'Segoe UI', sans-serif; }
.fm-node-cur text { fill: var(--gold); }
.fm-node-safe text { fill: #1a9e6a; }
.fm-node-danger text { fill: #a83030; }
.fm-node-fog text { fill: #3a3a5a; }
.fm-edge { stroke: #28283e; stroke-width: 1.5; }
.fm-edge-explored { stroke: #3a3a5a; stroke-width: 1.5; }
@keyframes fmPulse {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(255,193,7,.2)); }
  50%      { filter: drop-shadow(0 0 8px rgba(255,193,7,.5)); }
}

/* ── 사이드바 고정 (좌·우 패널) ─────────────── */
.game-sidebar {
  position: sticky;
  top: 34px;
  align-self: flex-start;
  max-height: calc(100vh - 42px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #3a3a50 transparent;
}
.game-sidebar::-webkit-scrollbar        { width: 4px; }
.game-sidebar::-webkit-scrollbar-track  { background: transparent; }
.game-sidebar::-webkit-scrollbar-thumb  {
  background: linear-gradient(180deg, #3a3a50 0%, #2a2a3e 100%);
  border-radius: 4px;
  transition: background .2s;
}
.game-sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5a5a78 0%, #4a4a60 100%);
}
/* 호버 시에만 스크롤바 표시 */
.game-sidebar { scrollbar-gutter: stable; }
.game-sidebar:not(:hover)::-webkit-scrollbar-thumb { background: transparent; }

/* ── 전역 스크롤바 ──────────────────────────── */
::-webkit-scrollbar        { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: var(--bg-dark); }
::-webkit-scrollbar-thumb  { background: #3a3a50; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #5a5a70; }

/* ── 테이블 ─────────────────────────────────── */
.table-dark { --bs-table-bg: transparent; }
.table-dark th { color: var(--text-muted); font-size: .72rem; text-transform: uppercase; }

/* ── 탭 ─────────────────────────────────────── */
.nav-tabs { border-color: var(--border-color); }
.nav-tabs .nav-link { border-color: transparent; background: transparent; color: var(--text-muted); }
.nav-tabs .nav-link.active {
  background: var(--bg-panel-title);
  border-color: var(--border-color) var(--border-color) var(--bg-panel);
  color: var(--gold);
}

/* ── 폼 컨트롤 ──────────────────────────────── */
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(255,193,7,.15); }

/* ── 모바일 반응형 ──────────────────────────── */
@media (max-width: 991px) {
  .game-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}
@media (max-width: 768px) {
  .game-panel   { padding: 8px; }
  .panel-title  { font-size: .72rem; }
  .stat-label,
  .stat-value   { font-size: .72rem; }
  .game-log     { max-height: 150px; font-size: .72rem; }
}

/* ═══════════════════════════════════════════════
   좌측 사이드바 — 다크 판타지 레이더 패널
   위쳐/다크소울 분위기 · 모노톤 · 텍스트 MUD
   ═══════════════════════════════════════════════ */

/* ── 다크 판타지 패널 기본 ─────────────────── */
.raider-panel-dark {
  background: linear-gradient(180deg, #111118 0%, #0d0d12 100%);
  border: 1px solid #1f1f2a;
  border-top: 1px solid #2a2a3a;
  border-radius: 3px;
  padding: 10px 12px;
  position: relative;
}
.raider-panel-dark::before {
  content: '';
  position: absolute;
  top: 0; left: 8px; right: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #3a3a50 50%, transparent 100%);
}

/* ── 캐릭터 초상 영역 ──────────────────────── */
.raider-portrait-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
}
.raider-class-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2a2a3a;
  border-radius: 2px;
  background: #0a0a10;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.raider-identity {
  flex: 1;
  min-width: 0;
}
.raider-name {
  font-size: .9rem;
  font-weight: 700;
  color: #c8c0b0;
  letter-spacing: .5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.raider-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.raider-class-label {
  font-size: .7rem;
  letter-spacing: .5px;
}
.raider-level-badge {
  font-size: .65rem;
  color: #888;
  background: #1a1a24;
  border: 1px solid #252530;
  border-radius: 2px;
  padding: 0 5px;
  line-height: 1.6;
  letter-spacing: .3px;
}

/* ── EXP 바 ────────────────────────────────── */
.raider-exp-wrap {
  border-top: 1px solid #1a1a24;
  padding-top: 6px;
}
.raider-exp-bar {
  height: 3px;
  background: #1a1a24;
  border-radius: 1px;
  overflow: hidden;
}
.raider-exp-fill {
  height: 100%;
  background: linear-gradient(90deg, #5a5040 0%, #8a7a50 100%);
  border-radius: 1px;
  transition: width .4s ease;
}
.raider-exp-text {
  font-size: .58rem;
  color: #5a5a60;
  text-align: right;
  margin-top: 2px;
  letter-spacing: .3px;
}

/* ── 생명력 / 마나 바 ──────────────────────── */
.raider-vital-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.raider-vital-row:last-child { margin-bottom: 0; }

.raider-vital-icon {
  width: 20px;
  font-size: .65rem;
  text-align: center;
  flex-shrink: 0;
}
.vital-hp i { color: #803030; }
.vital-mp i { color: #304880; }

.raider-vital-bar-wrap { flex: 1; }
.raider-vital-bar {
  height: 6px;
  background: #151518;
  border: 1px solid #1e1e28;
  border-radius: 1px;
  overflow: hidden;
}
.raider-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #5a2020 0%, #903030 100%);
  transition: width .3s ease;
}
.raider-mp-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a3060 0%, #2a5090 100%);
  transition: width .3s ease;
}
.raider-vital-text {
  font-size: .58rem;
  color: #5a5a68;
  text-align: right;
  margin-top: 1px;
  letter-spacing: .2px;
}

/* ── 섹션 라벨 ─────────────────────────────── */
.raider-section-label {
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #4a4a58;
  border-bottom: 1px solid #1a1a24;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

/* ── 4칸 스탯 그리드 ───────────────────────── */
.raider-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2px;
  margin-bottom: 8px;
}
.raider-stat-cell {
  text-align: center;
  padding: 6px 2px;
  background: #0c0c12;
  border: 1px solid #181820;
  border-radius: 2px;
  cursor: help;
  position: relative;
  transition: border-color .15s;
}
.raider-stat-cell:hover {
  border-color: #303040;
}
.raider-stat-num {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: #b0a898;
  line-height: 1.2;
  letter-spacing: .3px;
}
.raider-stat-name {
  display: block;
  font-size: .55rem;
  color: #505060;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1px;
}

/* ── 서브 스탯 (2열) ───────────────────────── */
.raider-substats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.raider-substat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px;
  border-bottom: 1px solid #141418;
  cursor: help;
  position: relative;
  transition: background .1s;
}
.raider-substat:hover { background: rgba(255,255,255,.02); }
.raider-substat-label {
  font-size: .62rem;
  color: #505060;
}
.raider-substat-val {
  font-size: .68rem;
  color: #908878;
  font-weight: 600;
}

/* 서브스탯 툴팁 (기존 stat-row 재활용) */
.raider-stat-cell[data-tooltip]::after,
.raider-substat[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0; top: 100%;
  z-index: 999;
  background: #111118;
  color: #888;
  border: 1px solid #2a2a38;
  border-radius: 3px;
  padding: 5px 8px;
  font-size: .6rem;
  line-height: 1.4;
  white-space: pre-line;
  min-width: 160px;
  max-width: 240px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s;
}
.raider-stat-cell[data-tooltip]:hover::after,
.raider-substat[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ── 전투력 행 ─────────────────────────────── */
.raider-power-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #1a1a24;
}
.raider-power-label {
  font-size: .6rem;
  color: #4a4a58;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.raider-power-value {
  font-size: .9rem;
  font-weight: 700;
  color: #a09070;
  letter-spacing: .5px;
}

/* ── 상태 그리드 ───────────────────────────── */
.raider-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2px;
}
.raider-status-grid.raider-status-grid-5 {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}
.raider-status-item {
  text-align: center;
  padding: 6px 2px;
  cursor: help;
  position: relative;
}
.raider-status-item i {
  font-size: .7rem;
  display: block;
  margin-bottom: 2px;
}
.raider-status-val {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: #908878;
  line-height: 1.2;
}
.raider-status-name {
  display: block;
  font-size: .5rem;
  color: #404050;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.raider-status-item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%; top: 100%;
  transform: translateX(-50%) translateY(4px);
  z-index: 999;
  background: #111118;
  color: #888;
  border: 1px solid #2a2a38;
  border-radius: 3px;
  padding: 5px 8px;
  font-size: .6rem;
  line-height: 1.4;
  white-space: pre-line;
  min-width: 160px;
  max-width: 220px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s, transform .15s;
}
.raider-status-item[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 착용 장비 ──────────────────────────────── */
.raider-equip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  border-bottom: 1px solid #141418;
}
.raider-equip-slot {
  font-size: .6rem;
  color: #505060;
  min-width: 56px;
  white-space: nowrap;
  flex-shrink: 0;
}
.raider-equip-slot i {
  font-size: .55rem;
  width: 12px;
  text-align: center;
  margin-right: 2px;
}
.raider-equip-name {
  font-size: .68rem;
  color: #807870;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 인벤토리 ──────────────────────────────── */
.raider-inv-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  border-bottom: 1px solid #141418;
  position: relative;
}
.raider-inv-row[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0; bottom: 100%;
  background: #1a1a22;
  color: #b0a898;
  font-size: .65rem;
  padding: 3px 7px;
  border: 1px solid #2a2a35;
  border-radius: 3px;
  white-space: nowrap;
  z-index: 50;
  pointer-events: none;
}
.raider-inv-type {
  font-size: .6rem;
  color: #5a6a5a;
  flex-shrink: 0;
}
.raider-inv-name {
  font-size: .72rem;
  color: #807870;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.raider-inv-effect {
  font-size: .58rem;
  color: #6a8a6a;
  flex-shrink: 0;
  margin-left: auto;
}
.raider-inv-qty {
  font-size: .62rem;
  color: #505058;
  flex-shrink: 0;
}
.raider-empty-text {
  font-size: .65rem;
  color: #3a3a48;
  font-style: italic;
}
.raider-link-subtle {
  font-size: .58rem;
  color: #505060;
  text-decoration: none;
  transition: color .15s;
}
.raider-link-subtle:hover {
  color: #807868;
}

/* ── 버프 / 디버프 ─────────────────────────── */
.raider-buff-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  border-bottom: 1px solid #141418;
  cursor: help;
  position: relative;
}
.raider-buff-row i {
  font-size: .65rem;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}
.raider-buff-name {
  font-size: .7rem;
  color: #807870;
  flex: 1;
}
.raider-buff-turns {
  font-size: .58rem;
  color: #505058;
  flex-shrink: 0;
}
.raider-buff-row[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%; top: 100%;
  transform: translateX(-50%) translateY(4px);
  z-index: 999;
  background: #111118;
  color: #888;
  border: 1px solid #2a2a38;
  border-radius: 3px;
  padding: 5px 8px;
  font-size: .6rem;
  line-height: 1.4;
  white-space: pre-line;
  min-width: 120px;
  max-width: 200px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s, transform .15s;
}
.raider-buff-row[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 소모품 클릭 가능 ──────────────────────── */
.raider-inv-usable {
  cursor: pointer;
  transition: background .15s, color .15s;
}
.raider-inv-usable:hover {
  background: rgba(100,90,70,.12);
}
.raider-inv-usable:hover .raider-inv-name {
  color: #a09880;
}
.raider-inv-usable:active {
  background: rgba(100,90,70,.2);
}

/* ── 세력 관계 ─────────────────────────────── */
.raider-faction-row {
  padding: 4px 0;
  border-bottom: 1px solid #141418;
  cursor: help;
  position: relative;
}
.raider-faction-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}
.raider-faction-header i {
  font-size: .6rem;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}
.raider-faction-name {
  font-size: .68rem;
  color: #706860;
  flex: 1;
}
.raider-faction-standing {
  font-size: .58rem;
  font-weight: 700;
  flex-shrink: 0;
}
.raider-faction-bar {
  height: 3px;
  background: #1a1a20;
  border-radius: 2px;
  overflow: hidden;
}
.raider-faction-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .3s;
}
.raider-faction-row[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%; top: 100%;
  transform: translateX(-50%) translateY(4px);
  z-index: 999;
  background: #111118;
  color: #888;
  border: 1px solid #2a2a38;
  border-radius: 3px;
  padding: 5px 8px;
  font-size: .6rem;
  line-height: 1.4;
  white-space: pre-line;
  min-width: 120px;
  max-width: 200px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s, transform .15s;
}
.raider-faction-row[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════
   우측 패널 — 의뢰 / 용병 / 룬 (다크 판타지)
   ════════════════════════════════════════════ */

/* ── 패널 공통 힌트 ────────────────────────── */
.raider-panel-hint {
  font-size: .56rem;
  color: #3a3a48;
  text-align: center;
  margin-top: 6px;
  font-style: italic;
  letter-spacing: .3px;
}

/* ── 의뢰 ──────────────────────────────────── */
.rp-quest-row {
  padding: 4px 0;
  border-bottom: 1px solid #141418;
}
.rp-quest-row:last-of-type { border-bottom: none; }
.rp-quest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}
.rp-quest-title {
  font-size: .68rem;
  color: #807870;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rp-quest-count {
  font-size: .62rem;
  font-weight: 700;
  color: #7a6a30;
  flex-shrink: 0;
  margin-left: 6px;
}
.rp-quest-count.rp-quest-done {
  color: #407040;
}
.rp-quest-bar {
  height: 3px;
  background: #1a1a20;
  border-radius: 2px;
  overflow: hidden;
}
.rp-quest-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a4020 0%, #7a6a30 100%);
  border-radius: 2px;
  transition: width .3s;
}
.rp-quest-fill.rp-quest-fill-done {
  background: linear-gradient(90deg, #2a4a2a 0%, #407040 100%);
}

/* ── 작업 타이머 ───────────────────────────── */
.rp-timer-row {
  padding: 5px 0;
  border-bottom: 1px solid #141418;
}
.rp-timer-row:last-of-type { border-bottom: none; }
.rp-timer-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}
.rp-timer-icon {
  font-size: .6rem;
  color: #6a5a30;
}
.rp-timer-label {
  font-size: .7rem;
  color: #8a7a5a;
  flex: 1;
}
.rp-timer-countdown {
  font-size: .65rem;
  color: #b08030;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rp-timer-bar {
  height: 3px;
  background: #0a0a0e;
  border-radius: 2px;
  overflow: hidden;
}
.rp-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #6a5020 0%, #a08030 100%);
  border-radius: 2px;
  transition: width 1s linear;
}

/* ── 용병 / 동료 ───────────────────────────── */
.rp-comp-row {
  padding: 5px 0;
  border-bottom: 1px solid #141418;
}
.rp-comp-row:last-of-type { border-bottom: none; }
.rp-comp-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}
.rp-comp-name {
  font-size: .68rem;
  color: #807870;
  flex: 1;
}
.rp-comp-level {
  font-size: .56rem;
  color: #505058;
  flex-shrink: 0;
}
.rp-comp-info {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rp-comp-hp-bar {
  flex: 1;
  height: 3px;
  background: #1a1a20;
  border-radius: 2px;
  overflow: hidden;
}
.rp-comp-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a2020 0%, #703030 100%);
  border-radius: 2px;
  transition: width .3s;
}
.rp-comp-turns {
  font-size: .56rem;
  color: #6a6040;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── 룬 슬롯 ───────────────────────────────── */
.rp-rune-slot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  margin-bottom: 3px;
  background: #0a0a10;
  border: 1px solid #18181e;
  border-radius: 2px;
  transition: border-color .15s;
}
.rp-rune-slot:last-of-type { margin-bottom: 0; }
.rp-rune-slot.rp-rune-filled {
  border-color: #24242e;
}
.rp-rune-slot.rp-rune-filled:hover {
  border-color: #3a3a48;
}
.rp-rune-num {
  font-size: .5rem;
  color: #3a3a48;
  width: 12px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 700;
}
.rp-rune-icon {
  font-size: .6rem;
  flex-shrink: 0;
}
.rp-rune-name {
  font-size: .68rem;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rp-rune-empty-icon {
  font-size: .5rem;
  color: #2a2a34;
  flex-shrink: 0;
}
.rp-rune-empty {
  font-size: .62rem;
  color: #2a2a34;
  font-style: italic;
}
