/* High-End Dark Fantasy & Arcane Cyber ARPG Interface */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg-dark: #07050d;
  --panel-bg: rgba(14, 10, 24, 0.88);
  --panel-border: rgba(168, 120, 255, 0.25);
  --gold-glow: #ffd700;
  --gold-grad: linear-gradient(135deg, #ffe066 0%, #e6a800 50%, #996e00 100%);
  --crimson-hp: linear-gradient(90deg, #ff1a40 0%, #ff4d6d 60%, #ff758f 100%);
  --arcane-mp: linear-gradient(90deg, #0077ff 0%, #3399ff 60%, #80bfff 100%);
  --exp-bar: linear-gradient(90deg, #7928ca 0%, #b800ff 100%);
  --accent-cyan: #00f0ff;
  --font-title: 'Cinzel', serif;
  --font-ui: 'Rajdhani', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

body, html {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: #e6e6f0;
  touch-action: none;
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  touch-action: none;
}

canvas#view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

/* =========================================================
   1. 좌측 상단 플레이어 프로필 허브 (Player Frame HUD)
   ========================================================= */
.player-hud-frame {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(22, 14, 38, 0.92) 0%, rgba(10, 6, 18, 0.85) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75), inset 0 0 10px rgba(180, 120, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 6px 14px 6px 8px;
  border-radius: 12px;
  z-index: 20;
  pointer-events: auto;
}

/* 메탈릭 헥사곤 아바타 */
.player-avatar-ring {
  position: relative;
  width: 46px;
  height: 46px;
  background: radial-gradient(circle, #2a1645 0%, #120920 100%);
  border: 2px solid #e6b800;
  box-shadow: 0 0 10px rgba(230, 184, 0, 0.35), inset 0 0 8px rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* 인벤토리 캐릭터 일러스트 배너 */
.char-portrait-card {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.bag-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.08) brightness(0.95);
  transition: transform 0.3s ease;
}

.char-portrait-card:hover .bag-portrait-img {
  transform: scale(1.04);
}

.bag-portrait-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(10, 5, 20, 0.95) 0%, rgba(10, 5, 20, 0.6) 60%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.avatar-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

.player-level-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  z-index: 5;
  background: var(--gold-grad);
  color: #120920;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  border: 1px solid #ffffff;
}

/* 상태 바 컬럼 */
.player-bars-column {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 145px;
}

.player-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-title);
  gap: 6px;
}

.player-name-text {
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-job-tag {
  font-size: 10.5px;
  color: #ffcc00;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.5);
  white-space: nowrap;
}

/* 게이지 바 공통 */
.hud-bar-wrapper {
  position: relative;
  width: 100%;
  height: 9px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hud-bar-fill {
  height: 100%;
  width: 100%;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-bar-fill { background: var(--crimson-hp); box-shadow: 0 0 6px rgba(255, 26, 64, 0.6); }
.mp-bar-fill { background: var(--arcane-mp); box-shadow: 0 0 6px rgba(0, 119, 255, 0.6); }
.exp-bar-fill { background: var(--exp-bar); height: 3px; }

.hud-bar-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 7.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px #000;
  line-height: 9px;
}

/* 상시 자동 패시브 룬 인디케이터 (3개 칩) */
.active-passives-deck {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.passive-rune-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(40, 20, 65, 0.7);
  border: 1px solid rgba(160, 90, 255, 0.4);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  color: #d1b3ff;
  box-shadow: 0 0 8px rgba(160, 90, 255, 0.2);
}

.passive-rune-chip i {
  color: #00ffaa;
  font-size: 10px;
}

/* =========================================================
   2. 우측 상단 월드 나침반 & 골드/귀환 위젯 (World Widget)
   ========================================================= */
.world-status-widget {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
  pointer-events: auto;
}

.location-gold-capsule {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(22, 14, 38, 0.92) 0%, rgba(10, 6, 18, 0.85) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: 10px;
}

.location-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.gold-counter {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #ffea79;
}

/* 즉시 귀환 룬 버튼 (T) */
.recall-rune-btn {
  background: radial-gradient(circle, #8a1f59 0%, #3d0522 100%);
  border: 2px solid #ff4d94;
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(255, 77, 148, 0.4);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulseGlow 2.5s infinite;
}

/* 2순위: 던전 레이더 미니맵 HUD */
.minimap-hud-widget {
  position: absolute;
  top: 76px;
  right: 24px;
  width: 140px;
  height: 105px;
  background: rgba(14, 8, 24, 0.85);
  border: 1px solid rgba(160, 110, 240, 0.35);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  overflow: hidden;
  z-index: 20;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.minimap-title-bar {
  background: rgba(40, 20, 65, 0.6);
  font-size: 10px;
  font-weight: 700;
  color: #ffd700;
  padding: 2px 6px;
  display: flex;
  justify-content: space-between;
}

canvas#minimapView {
  width: 140px;
  height: 88px;
  display: block;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 77, 148, 0.3); }
  50% { box-shadow: 0 0 26px rgba(255, 77, 148, 0.7); }
}

.recall-rune-btn:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: #ffd700;
}

/* 🍔 우측 상단 햄버거 메뉴 버튼 (모바일/태블릿 전용) */
.mobile-hamburger-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(45, 20, 75, 0.95) 0%, rgba(18, 8, 35, 0.95) 100%);
  border: 2px solid #ffd700;
  color: #ffd700;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
  z-index: 30;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.mobile-hamburger-btn:active {
  transform: scale(0.95);
}

.hamburger-icon {
  font-size: 18px;
  line-height: 1;
}

.hamburger-label {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
}

/* 모바일 메뉴 드로어 어두운 백드롭 오버레이 */
.menu-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 3, 10, 0.75);
  backdrop-filter: blur(8px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================================
   3. 우측 사이드 플로팅 독 (Floating Navigation Dock)
   ========================================================= */
.side-nav-dock {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
  pointer-events: auto;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-header {
  display: none;
}

.dock-grid-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dock-btn {
  position: relative;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(28, 18, 48, 0.9) 0%, rgba(12, 7, 22, 0.95) 100%);
  border: 1px solid rgba(170, 120, 255, 0.35);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.dock-btn:hover {
  border-color: #ffd700;
  transform: scale(1.1) translateX(-4px);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.4);
}

.dock-badge {
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 800;
  color: #ffd700;
  background: rgba(20, 10, 35, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 6px;
  padding: 2px 4px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dock-icon {
  font-size: 20px;
}

.dock-label {
  font-size: 10px;
  font-weight: 700;
  color: #d1b8ff;
  margin-top: 1px;
}

.dock-key {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 8px;
  color: #a078ff;
  background: rgba(0, 0, 0, 0.6);
  padding: 1px 3px;
  border-radius: 3px;
}

.hud-pill-tag {
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-title);
  background: rgba(160, 110, 240, 0.2);
  border: 1px solid rgba(160, 110, 240, 0.4);
  color: #c4b5fd;
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 4px;
  display: inline-block;
}
.hud-pill-tag.gold {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
  color: #ffd700;
}

.flask-core-tag {
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 800;
  color: #00ffaa;
  text-shadow: 0 0 4px rgba(0, 255, 170, 0.6);
}

/* =========================================================
   4. 하단 중앙 아케인 윙 액션 콘솔 (Bottom Arcane Deck)
   ========================================================= */
.bottom-action-console {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 20;
  pointer-events: none;
}

/* 좌측 퀵 물약 슬롯 */
.flask-slot-container {
  pointer-events: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flask-rune-btn {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: radial-gradient(circle, #2e1022 0%, #0d040a 100%);
  border: 2px solid #ff3366;
  box-shadow: 0 0 18px rgba(255, 51, 102, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.flask-rune-btn:hover {
  transform: scale(1.08);
  border-color: #ffd700;
}

.flask-badge {
  position: absolute;
  bottom: -6px;
  background: #00ffaa;
  color: #0b1a13;
  font-weight: 900;
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.flask-key {
  position: absolute;
  top: 3px;
  left: 5px;
  font-size: 10px;
  font-weight: 800;
  color: #ffd700;
}

/* 중앙 스킬바 아크 */
.arcane-skill-deck {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(24, 15, 42, 0.95) 0%, rgba(10, 5, 20, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 12px 18px;
  border-radius: 20px;
  backdrop-filter: blur(20px);
}

/* 스킬 슬롯 (다이아몬드/옥타곤 퓨전) */
.skill-rune-slot {
  position: relative;
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #1c112e 0%, #0d0617 100%);
  border: 2px solid #58338a;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-rune-slot:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.skill-rune-slot.locked {
  filter: grayscale(100%) brightness(0.4);
  cursor: not-allowed;
}

.skill-rune-icon {
  font-size: 28px;
  transition: transform 0.15s ease;
}

.skill-rune-slot:hover .skill-rune-icon {
  transform: scale(1.12);
}

.skill-hotkey-badge {
  position: absolute;
  top: 4px;
  left: 6px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  color: #ffd700;
  text-shadow: 0 1px 3px #000;
}

.skill-lock-overlay {
  position: absolute;
  bottom: 3px;
  font-size: 10px;
  font-weight: 800;
  color: #ff4d6d;
  background: rgba(0, 0, 0, 0.85);
  padding: 1px 5px;
  border-radius: 4px;
}

.skill-cd-sweeper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: rgba(7, 3, 14, 0.82);
  color: #00f0ff;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

/* 중앙 스페이스바 대시 코어 링 */
.dash-core-container {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dash-core-orb {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle, #102e3b 0%, #051117 100%);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-core-orb:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.7);
}

.dash-icon {
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.dash-key-label {
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

/* =========================================================
   5. 고품질 팝업 모달 (Glassmorphism & Gold Trim)
   ========================================================= */
.game-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 2, 10, 0.85);
  backdrop-filter: blur(14px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal-dialog {
  background: linear-gradient(135deg, rgba(24, 15, 40, 0.96) 0%, rgba(12, 7, 24, 0.98) 100%);
  border: 2px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(180, 110, 255, 0.15);
  border-radius: 16px;
  width: 90%;
  max-width: 820px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlide 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlide {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  padding: 16px 24px;
  background: linear-gradient(90deg, rgba(45, 24, 75, 0.8) 0%, rgba(20, 10, 35, 0.9) 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-title);
  font-size: 20px;
  color: #ffd700;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #bfa8e6;
  cursor: pointer;
  transition: color 0.15s;
}

.modal-close:hover {
  color: #ff3366;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

/* 가방 모달 내부 */
.bag-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

.char-stats-panel {
  background: rgba(15, 9, 26, 0.8);
  border: 1px solid rgba(160, 110, 240, 0.25);
  border-radius: 12px;
  padding: 16px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.equip-slots-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

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

.inv-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

/* 아이템 슬롯 */
.item-box {
  width: 58px;
  height: 58px;
  background: #190f2b;
  border: 2px solid #43256b;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.item-box:hover {
  transform: translateY(-2px) scale(1.06);
  border-color: #ffd700;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.item-box.empty {
  border-style: dashed;
  border-color: #351c57;
  cursor: default;
}

.empty-lbl {
  font-size: 11px;
  color: #7b58a8;
}

.item-box.rarity-normal { border-color: #8c93a8; }
.item-box.rarity-rare   { border-color: #3399ff; box-shadow: 0 0 10px rgba(51, 153, 255, 0.35); }
.item-box.rarity-unique { border-color: #b55fe6; box-shadow: 0 0 12px rgba(181, 95, 230, 0.45); }
.item-box.rarity-epic   { border-color: #ff9900; box-shadow: 0 0 15px rgba(255, 153, 0, 0.6); }

.item-ico {
  font-size: 24px;
}

.item-name {
  font-size: 9px;
  color: #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52px;
}

.item-sockets {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 8px;
}

/* 버튼 디자인 */
.game-btn {
  background: linear-gradient(135deg, #43226d 0%, #291245 100%);
  border: 1px solid #824ac2;
  color: #fff;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.game-btn:hover {
  background: linear-gradient(135deg, #62329e 0%, #3e1b69 100%);
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.gold-btn {
  background: var(--gold-grad);
  border-color: #ffffff;
  color: #120920;
  font-family: var(--font-title);
  font-weight: 900;
}

/* 스마트 비교 툴팁 */
#itemTooltip {
  position: fixed;
  display: none;
  background: rgba(12, 6, 22, 0.96);
  border: 2px solid #b8860b;
  border-radius: 12px;
  padding: 16px;
  max-width: 300px;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.25);
  font-size: 13px;
}

.tip-header {
  font-size: 16px;
  font-family: var(--font-title);
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.tip-sub {
  color: #a496bd;
  font-size: 12px;
}

#itemTooltip hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 8px 0;
}

/* 스킬북 모달 */
.skill-card {
  background: rgba(22, 13, 38, 0.7);
  border: 1px solid rgba(160, 110, 240, 0.3);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.skill-card.passive {
  border-color: #2b7a5a;
  background: rgba(12, 32, 24, 0.7);
}

.sc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.sc-tag {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #ffd700;
  background: rgba(0,0,0,0.6);
  padding: 2px 8px;
  border-radius: 6px;
}

.sc-tag.auto-active {
  color: #00ffaa;
  border: 1px solid rgba(0, 255, 170, 0.4);
}

.sc-body {
  font-size: 13px;
  color: #c9bede;
  margin-bottom: 6px;
}

.sc-footer {
  font-size: 12px;
  color: #8f82a6;
}

/* 대장간 모달 */
.bs-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.bs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(10, 5, 18, 0.8);
  padding: 14px;
  border-radius: 10px;
  margin-top: 10px;
}

.craft-card, .shop-card {
  background: rgba(20, 11, 35, 0.8);
  border: 1px solid rgba(160, 110, 240, 0.3);
  border-radius: 10px;
  padding: 16px;
}

/* 던전 층 선택 그리드 */
.floor-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.floor-select-btn {
  background: linear-gradient(135deg, #24143a 0%, #150924 100%);
  border: 1px solid #5a328c;
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.floor-select-btn:hover {
  background: linear-gradient(135deg, #4d2382 0%, #290f4a 100%);
  border-color: #ffd700;
}

.floor-select-btn.boss-floor {
  border-color: #ff3344;
  color: #ff99aa;
  background: linear-gradient(135deg, #4a1220 0%, #22050b 100%);
  box-shadow: 0 0 12px rgba(255, 51, 68, 0.35);
}

/* 계정 모달 */
.char-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(18, 10, 32, 0.8);
  border: 1px solid rgba(160, 110, 240, 0.25);
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.char-card.active {
  border-color: #ffd700;
  background: rgba(35, 20, 60, 0.9);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
}

.delete-btn {
  background: #661818;
  border-color: #a82e2e;
  margin-left: 8px;
}
.delete-btn:hover {
  background: #8f2020;
}

/* 4대 직업 비주얼 선택 카드 그리드 */
.job-visual-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
@media (max-width: 600px) {
  .job-visual-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}
.job-card-option {
  background: rgba(18, 9, 32, 0.85);
  border: 2px solid rgba(160, 110, 240, 0.3);
  border-radius: 8px;
  padding: 8px 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  user-select: none;
}
.job-card-option:hover {
  border-color: rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}
.job-card-option.active {
  border-color: #ffd700;
  background: rgba(45, 22, 75, 0.95);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}
.job-opt-img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.job-opt-title {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  color: #ffd700;
  margin-top: 6px;
  white-space: nowrap;
}
.job-opt-badge {
  font-size: 10px;
  color: #c4b5fd;
  margin-top: 2px;
  white-space: nowrap;
}

/* =========================================================
   C: 보석 세공 & 4단계 합성 연금술 UI
   ========================================================= */
.alchemy-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}

.alchemy-section {
  background: rgba(14, 8, 24, 0.85);
  border: 1px solid rgba(160, 110, 240, 0.3);
  border-radius: 12px;
  padding: 16px;
}

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

.alchemy-gem-card {
  background: rgba(22, 12, 38, 0.9);
  border: 1px solid rgba(120, 80, 180, 0.35);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.alchemy-gem-card.can-craft {
  border-color: #ffd700;
  background: rgba(38, 22, 60, 0.95);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.alchemy-gem-card.max-tier {
  border-color: #00ffaa;
  background: rgba(10, 30, 25, 0.9);
}

.agc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.agc-ico {
  font-size: 26px;
}

.agc-title {
  display: flex;
  flex-direction: column;
}

.agc-title b {
  font-size: 14px;
}

.agc-count {
  font-size: 11px;
  color: #c9bede;
}

.agc-desc {
  font-size: 11px;
  color: #00ffaa;
  margin-bottom: 6px;
}

.socket-gear-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.socket-gear-card {
  background: rgba(20, 10, 34, 0.9);
  border: 1px solid rgba(160, 110, 240, 0.35);
  border-radius: 10px;
  padding: 14px;
}

.sgc-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.socket-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: rgba(10, 4, 18, 0.6);
  border-radius: 6px;
  margin-top: 4px;
}

.item-gem {
  border-color: #00f0ff !important;
  background: rgba(0, 180, 255, 0.15) !important;
}

/* =========================================================
   D: 모바일 / 태블릿 가상 조이스틱 & 터치 액션 클러스터
   ========================================================= */
.vstick-base {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 18, 55, 0.7) 0%, rgba(12, 6, 20, 0.88) 100%);
  border: 2px solid rgba(160, 110, 240, 0.45);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(160, 110, 240, 0.2);
  z-index: 95;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  opacity: 0.85;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.vstick-base:hover, .vstick-base:active {
  opacity: 1;
  border-color: #00f0ff;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

.vstick-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  margin-top: -23px;
  border-radius: 50%;
  background: radial-gradient(circle, #00f0ff 0%, #0066aa 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.8);
  pointer-events: none;
}

.mobile-action-cluster {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  z-index: 95;
  touch-action: none;
}

.m-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.6);
  background: radial-gradient(circle, #24143a 0%, #10061c 100%);
  color: #fff;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  touch-action: none;
}

.m-btn:active {
  transform: scale(0.92);
}

.m-btn.m-atk {
  width: 66px;
  height: 66px;
  font-size: 16px;
  font-weight: 900;
  border-color: #ff3344;
  background: radial-gradient(circle, #521326 0%, #22050e 100%);
  box-shadow: 0 0 20px rgba(255, 51, 68, 0.5);
}

.m-btn.m-dash {
  border-color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.m-btn.m-pot {
  border-color: #00ffaa;
  box-shadow: 0 0 15px rgba(0, 255, 170, 0.4);
}

.m-btn.m-interact {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: radial-gradient(circle, #ffe066 0%, #e6a800 50%, #996e00 100%);
  color: #120920;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.85);
  animation: pulseGlow 1.5s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
}

/* (모바일 / 태블릿 반응형 미디어 쿼리는 스타일 시트 최하단에서 통합 관리) */

/* =========================================================
   1~4순위 통합 UI 스타일 (엔딩, 도감/업적, 펫, 성소)
   ========================================================= */

/* 1순위: 엔딩 시네마틱 모달 */
.ending-modal .modal-dialog {
  border-color: #ffd700;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.4), 0 20px 80px rgba(0, 0, 0, 0.95);
  background: radial-gradient(circle, #24143a 0%, #0d0417 100%);
}

.ending-banner {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

/* 2순위: 도감 & 업적 / 칭호 */
.codex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 6px;
}

.codex-card {
  background: rgba(20, 11, 34, 0.85);
  border: 1px solid rgba(160, 110, 240, 0.3);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.codex-boss-card {
  border-color: #ff3344;
  background: linear-gradient(135deg, rgba(45, 12, 25, 0.9) 0%, rgba(18, 5, 12, 0.95) 100%);
  box-shadow: 0 0 15px rgba(255, 51, 68, 0.25);
}

.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.achievement-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(22, 12, 38, 0.85);
  border: 1px solid rgba(160, 110, 240, 0.25);
  padding: 12px 16px;
  border-radius: 10px;
}

.achievement-row.completed {
  border-color: #ffd700;
  background: rgba(38, 24, 60, 0.95);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.title-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #ffd700;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
}

/* 3순위: 동행 서포터 펫 */
.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.pet-card {
  background: rgba(20, 11, 35, 0.9);
  border: 2px solid rgba(160, 110, 240, 0.35);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pet-card:hover {
  transform: translateY(-4px);
  border-color: #00f0ff;
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.3);
}

.pet-card.active {
  border-color: #ffd700;
  background: rgba(38, 20, 60, 0.95);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
}

.pet-ico {
  font-size: 40px;
  margin-bottom: 8px;
}

.pet-perk-box {
  background: rgba(10, 5, 18, 0.7);
  padding: 8px 10px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 12px;
  color: #00ffaa;
  text-align: left;
}

/* 4순위: 버프 인디케이터 바 */
.player-buff-bar {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.buff-chip {
  background: rgba(15, 6, 25, 0.85);
  border: 1px solid #ff3344;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  color: #ff99aa;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 1번: 차원 용병단 길드 스타일 */
.mercenary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.mercenary-card {
  background: rgba(20, 11, 35, 0.92);
  border: 2px solid rgba(160, 110, 240, 0.35);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.mercenary-card:hover {
  transform: translateY(-4px);
  border-color: #ffd700;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.25);
}

.mercenary-card.hired {
  border-color: #00ffaa;
  background: rgba(25, 38, 40, 0.95);
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.35);
}

.mercenary-card.active {
  border-color: #ffd700;
  background: rgba(35, 18, 55, 0.96);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

.mercenary-avatar {
  font-size: 42px;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.mercenary-role-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(160, 110, 240, 0.2);
  border: 1px solid rgba(160, 110, 240, 0.5);
  color: #d8b4fe;
  margin-top: 4px;
}

.mercenary-skill-box {
  background: rgba(10, 5, 20, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 10px 0;
  font-size: 12px;
  text-align: left;
  line-height: 1.4;
  color: #ccc;
  width: 100%;
  box-sizing: border-box;
}

/* 4번: 던전 차원 균열 돌발 이벤트 HUD 배너 */
.rift-event-banner {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(35, 10, 50, 0.95) 0%, rgba(15, 5, 25, 0.98) 100%);
  border: 2px solid #b55fe6;
  box-shadow: 0 0 30px rgba(181, 95, 230, 0.6), inset 0 0 15px rgba(255, 51, 68, 0.3);
  border-radius: 12px;
  padding: 10px 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: riftPulse 2s infinite ease-in-out;
}

@keyframes riftPulse {
  0% { box-shadow: 0 0 20px rgba(181, 95, 230, 0.5); }
  50% { box-shadow: 0 0 35px rgba(255, 51, 68, 0.7); }
  100% { box-shadow: 0 0 20px rgba(181, 95, 230, 0.5); }
}

.rift-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  color: #ffd700;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.rift-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3344;
  box-shadow: 0 0 10px #ff3344;
  animation: blink 0.8s infinite alternate;
}

@keyframes blink {
  from { opacity: 0.3; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

.rift-banner-body {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #eee;
}

/* 2번: 세트 아이템 및 룬스톤 스타일 */
.set-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 255, 170, 0.15);
  border: 1px solid #00ffaa;
  color: #00ffaa;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

.set-bonus-active {
  color: #00ffaa !important;
  font-weight: 700;
}

.set-bonus-inactive {
  color: #777777 !important;
  font-style: italic;
}

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

.runestone-card {
  background: rgba(18, 10, 30, 0.9);
  border: 1px solid rgba(160, 110, 240, 0.3);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.runestone-card:hover {
  border-color: #ffd700;
  background: rgba(30, 16, 50, 0.95);
}

/* 6번: 마을 건설 & 연구소 스타일 */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.research-card {
  background: rgba(20, 11, 35, 0.92);
  border: 1px solid rgba(160, 110, 240, 0.35);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.research-card:hover {
  border-color: #00f0ff;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}

.research-card.maxed {
  border-color: #ffd700;
  background: rgba(28, 20, 10, 0.92);
}

.research-level-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

/* 3번: 스킬 룬 변환 & 원소 특성화 스타일 */
.skill-rune-selector {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.skill-rune-chip {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(20, 12, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #bbb;
  transition: all 0.15s;
}

.skill-rune-chip:hover {
  border-color: #ffd700;
  color: #fff;
}

.skill-rune-chip.active {
  border-color: #00ffaa;
  background: rgba(0, 255, 170, 0.2);
  color: #00ffaa;
  box-shadow: 0 0 10px rgba(0, 255, 170, 0.3);
}

.skill-element-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 11px;
  filter: drop-shadow(0 0 4px currentColor);
}

/* =========================================================
   2번: 특수키 패링 (Parry) 시스템 UI 스타일
   ========================================================= */
.parry-core-container {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.parry-core-orb {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle, #3d2a0b 0%, #170f03 100%);
  border: 2px solid #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.parry-core-orb:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.parry-core-orb.parrying {
  border-color: #ffffff;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.95);
  transform: scale(1.15);
}

.parry-icon {
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.parry-key-label {
  font-size: 9px;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.5px;
}

.m-btn.m-parry {
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* =========================================================
   1번: 무한 악몽 심연 10종 돌연변이 어픽스 (Affix) 스타일
   ========================================================= */
.affix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.affix-card {
  background: rgba(20, 11, 35, 0.92);
  border: 1px solid rgba(160, 110, 240, 0.35);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.affix-card:hover {
  border-color: #ffd700;
  background: rgba(30, 15, 52, 0.96);
  transform: translateY(-2px);
}

.affix-card.active {
  border-color: #ff3355;
  background: rgba(45, 12, 30, 0.95);
  box-shadow: 0 0 16px rgba(255, 51, 85, 0.4);
}

.affix-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.affix-check {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ff3355;
}

.affix-badge-box {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
}

.affix-badge-mf {
  color: #00ffcc;
  background: rgba(0, 255, 204, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.affix-badge-gold {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.affix-desc {
  font-size: 11.5px;
  color: #bfaedc;
  line-height: 1.4;
}

/* =========================================================
   1번: 고대 유물 (Roguelike Relic) 3택 & 덱 스타일
   ========================================================= */
.relic-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .relic-choice-grid {
    grid-template-columns: 1fr;
  }
}

.relic-card {
  background: radial-gradient(circle at top, rgba(38, 22, 60, 0.95) 0%, rgba(14, 7, 24, 0.98) 100%);
  border: 2px solid rgba(160, 110, 240, 0.45);
  border-radius: 14px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.relic-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #ffd700;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.35);
}

.relic-icon {
  font-size: 44px;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.5));
}

.relic-name {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  color: #ffd700;
}

.relic-flavor {
  font-size: 11px;
  color: #a496bd;
  font-style: italic;
}

.relic-desc {
  font-size: 12.5px;
  color: #00ffaa;
  font-weight: 600;
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 10px;
  border-radius: 8px;
  width: 100%;
}

.relic-btn-pick {
  margin-top: auto;
  width: 100%;
  padding: 8px 0;
  background: linear-gradient(135deg, #ffd700, #ff8800);
  border: none;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 800;
  color: #000;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.relic-btn-pick:hover {
  transform: scale(1.04);
}

.relic-deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.relic-deck-card {
  background: rgba(20, 11, 35, 0.9);
  border: 1px solid #ffd700;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}

/* =========================================================
   모바일 & 태블릿 (iPhone 13 Pro 등) 반응형 UI/UX 최적화
   ========================================================= */
@media (max-width: 900px) {
  /* 햄버거 메뉴 버튼 노출 */
  .mobile-hamburger-btn {
    display: flex !important;
  }

  /* 사이드 독 -> 모바일 슬라이드 드로어 변환 */
  .side-nav-dock {
    position: fixed;
    top: 0;
    right: -100%;
    width: 310px;
    max-width: 86vw;
    height: 100vh;
    transform: none;
    background: linear-gradient(180deg, rgba(20, 12, 36, 0.98) 0%, rgba(8, 4, 18, 0.99) 100%);
    border-left: 2px solid #ffd700;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.92);
    z-index: 100;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .side-nav-dock.open {
    right: 0 !important;
  }

  .drawer-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  }

  .drawer-title {
    font-family: var(--font-title);
    font-size: 18px;
    color: #ffd700;
    font-weight: 700;
  }

  .drawer-close-btn {
    background: rgba(255, 50, 80, 0.2);
    border: 1px solid #ff3355;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .dock-grid-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .dock-btn {
    width: 100% !important;
    height: 54px !important;
    border-radius: 12px !important;
    flex-direction: row !important;
    gap: 10px !important;
    padding: 0 12px !important;
    justify-content: flex-start !important;
  }

  .dock-icon { font-size: 22px !important; }
  .dock-label { font-size: 13px !important; font-weight: 700 !important; }
  .dock-key { display: none !important; }

  /* 좌측 상단 프로필 슬림 컴팩트화 (아이폰 노치 및 다이내믹 아일랜드 아래로 안전 배치) */
  .player-hud-frame {
    top: max(calc(env(safe-area-inset-top, 0px) + 14px), 54px) !important;
    left: max(calc(env(safe-area-inset-left, 0px) + 10px), 10px) !important;
    padding: 4px 8px 4px 6px !important;
    gap: 6px !important;
    border-radius: 10px !important;
    max-width: 175px !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
  }

  .player-avatar-ring {
    width: 34px !important;
    height: 34px !important;
    border-width: 1.5px !important;
  }

  .player-level-badge {
    font-size: 7.5px !important;
    padding: 0 3px !important;
    bottom: -2px !important;
    right: -2px !important;
  }

  .player-bars-column {
    width: 105px !important;
    gap: 2px !important;
  }

  .player-name-text {
    font-size: 11px !important;
    max-width: 60px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .title-badge {
    display: none !important;
  }

  .player-job-tag {
    font-size: 8.5px !important;
  }

  .hud-bar-wrapper {
    height: 6px !important;
  }

  .hud-bar-text {
    font-size: 6.5px !important;
    line-height: 6px !important;
  }

  .active-passives-deck {
    display: none !important;
  }

  /* 우측 상단 월드 위젯 & 햄버거 버튼 (아이폰 노치 아래로 안전 배치 및 터치 타깃 확대) */
  .world-status-widget {
    top: max(calc(env(safe-area-inset-top, 0px) + 14px), 54px) !important;
    right: max(calc(env(safe-area-inset-right, 0px) + 10px), 10px) !important;
    gap: 6px !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
  }

  .location-gold-capsule {
    padding: 4px 8px !important;
    border-radius: 10px !important;
    gap: 6px !important;
    height: 44px !important;
    box-sizing: border-box !important;
  }

  .location-indicator {
    font-size: 10.5px !important;
    gap: 3px !important;
  }

  #locationText {
    max-width: 65px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: inline-block !important;
  }

  .gold-counter {
    font-size: 10.5px !important;
    gap: 3px !important;
  }

  .mobile-hamburger-btn {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: linear-gradient(135deg, rgba(42, 22, 75, 0.95), rgba(18, 9, 34, 0.95)) !important;
    border: 2px solid #ffd700 !important;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    z-index: 1001 !important;
  }

  .mobile-hamburger-btn:active {
    transform: scale(0.92) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7) !important;
  }

  .hamburger-icon {
    font-size: 22px !important;
    color: #ffd700 !important;
    pointer-events: none !important;
  }

  .hamburger-label {
    display: none !important;
  }

  .recall-rune-btn {
    padding: 3px 6px !important;
    font-size: 10px !important;
    height: 44px !important;
    border-radius: 10px !important;
    pointer-events: auto !important;
  }

  .recall-rune-btn kbd {
    display: none !important;
  }

  /* 🎒 모바일 인벤토리 & 모달 반응형 최적화 (가로 스크롤 완전 제거) */
  .game-modal {
    padding: 8px !important;
  }

  .modal-dialog {
    max-width: 96vw !important;
    width: 96vw !important;
    max-height: 86vh !important;
    margin: auto !important;
    padding: 10px !important;
    overflow-y: auto !important;
  }

  .bag-layout {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .char-portrait-card {
    height: 100px !important;
  }

  .equip-slots-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 5px !important;
    margin-top: 6px !important;
  }

  .inv-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 5px !important;
  }

  .item-box {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 !important;
    border-radius: 6px !important;
  }

  .item-ico {
    font-size: 18px !important;
  }

  .item-name {
    font-size: 7px !important;
    max-width: 42px !important;
  }

  .stat-row {
    font-size: 11px !important;
    padding: 3px 0 !important;
  }

  /* ⚡ 하단 스킬바 모바일 최적화 (중앙 배치, 물약/패링 중복 제거, 5개 스킬 슬롯 뚜렷하게 노출) */
  /* ⚡ 하단 스킬바 + 물약 버튼 일체형 배치 (조이스틱 우측 밀착, 우측 액션과 완벽 분리) */
  .bottom-action-console {
    position: fixed !important;
    bottom: max(calc(env(safe-area-inset-bottom, 0px) + 12px), 14px) !important;
    left: calc(env(safe-area-inset-left, 0px) + 88px) !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    z-index: 98 !important;
    pointer-events: auto !important;
    width: auto !important;
  }

  /* 물약 버튼을 스킬바 왼쪽에 일체형으로 배치하여 가려짐 완전 방지 */
  .bottom-action-console .flask-slot-container {
    display: flex !important;
    margin: 0 !important;
  }

  .flask-rune-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    border: 1.5px solid #00f0ff !important;
    background: rgba(14, 8, 26, 0.94) !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.35) !important;
    font-size: 15px !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    position: relative !important;
  }

  .flask-key {
    display: none !important;
  }

  .flask-badge {
    font-size: 8px !important;
    bottom: 1px !important;
    right: 2px !important;
    padding: 0 3px !important;
  }

  /* 패링과 대시는 우측 액션 클러스터에 존재하므로 하단 바에서는 숨김 */
  .bottom-action-console .parry-core-container,
  .bottom-action-console .dash-core-container {
    display: none !important;
  }

  .arcane-skill-deck {
    display: flex !important;
    gap: 3px !important;
    padding: 2px 4px !important;
    background: rgba(14, 8, 26, 0.94) !important;
    border: 1.5px solid rgba(255, 215, 0, 0.5) !important;
    border-radius: 10px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.85) !important;
    pointer-events: auto !important;
  }

  .skill-rune-slot {
    width: 33px !important;
    height: 33px !important;
    border-width: 1.5px !important;
    border-radius: 7px !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
  }

  .skill-rune-slot:active {
    transform: scale(0.9) !important;
    border-color: #ffd700 !important;
  }

  .skill-rune-icon {
    font-size: 17px !important;
    pointer-events: none !important;
  }

  .skill-hotkey-badge {
    font-size: 7.5px !important;
    top: 1px !important;
    left: 2px !important;
    pointer-events: none !important;
  }

  .skill-lock-overlay {
    font-size: 7.5px !important;
    bottom: 1px !important;
    pointer-events: none !important;
  }

  .skill-element-badge {
    font-size: 8px !important;
    top: 1px !important;
    right: 1px !important;
    pointer-events: none !important;
  }

  /* 🕹️ 좌측 가상 조이스틱 */
  .vstick-base {
    bottom: max(calc(env(safe-area-inset-bottom, 0px) + 12px), 14px) !important;
    left: max(calc(env(safe-area-inset-left, 0px) + 6px), 6px) !important;
    width: 76px !important;
    height: 76px !important;
    z-index: 95 !important;
  }

  /* ⚔️ 우측 액션 클러스터 (스킬바와 분리하여 상단으로 살짝 올려 가려짐 완전 방지) */
  .mobile-action-cluster {
    bottom: max(calc(env(safe-area-inset-bottom, 0px) + 72px), 76px) !important;
    right: max(calc(env(safe-area-inset-right, 0px) + 10px), 10px) !important;
    display: grid !important;
    grid-template-columns: repeat(2, 42px) !important;
    gap: 7px !important;
    z-index: 99 !important;
    align-items: center !important;
    justify-items: center !important;
    width: auto !important;
  }

  /* 하단 바에 물약이 있으므로 우측 클러스터 물약 버튼은 숨김 */
  .m-btn.m-pot {
    display: none !important;
  }

  .m-btn {
    width: 42px !important;
    height: 42px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    border-radius: 50% !important;
    border-width: 2px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75) !important;
  }

  .m-btn.m-atk {
    width: 52px !important;
    height: 52px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    grid-column: span 2 !important;
    margin-bottom: 2px !important;
    box-shadow: 0 0 16px rgba(255, 51, 68, 0.6) !important;
  }

  .m-btn.m-interact {
    width: 38px !important;
    height: 38px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
  }
}

@media (min-width: 901px) {
  .mobile-hamburger-btn {
    display: none !important;
  }
}

/* =========================================================
   깔끔한 다크 판타지 UI 공통 스타일 (대장간, 도감, 어픽스, 연구소)
   ========================================================= */
.bs-mat-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #ffd700;
  padding: 6px 10px;
  background: rgba(14, 8, 24, 0.85);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
}

.bs-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 8px;
}

.bs-tabs {
  overflow-x: auto;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.bs-tabs::-webkit-scrollbar { display: none; }
.bs-tabs .game-btn {
  white-space: nowrap !important;
  padding: 5px 10px !important;
  font-size: 12px !important;
  flex-shrink: 0;
}

/* 차원 대장간 제련소 전용 레이아웃 */
.forge-container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 12px;
  margin-top: 10px;
}
@media (max-width: 680px) {
  .forge-container {
    grid-template-columns: 1fr;
  }
}
.forge-item-picker {
  background: rgba(14, 8, 24, 0.9);
  border: 1px solid rgba(160, 110, 240, 0.25);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.forge-sub-title {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.forge-gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}
.forge-gear-card {
  position: relative;
  background: rgba(22, 12, 38, 0.9);
  border: 1.5px solid rgba(160, 110, 240, 0.3);
  border-radius: 6px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.forge-gear-card:hover {
  border-color: #ffd700;
  transform: translateY(-2px);
}
.forge-gear-card.selected {
  border-color: #ffd700;
  background: rgba(45, 22, 75, 0.95);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}
.forge-enhance-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 9px;
  font-weight: 900;
  color: #ffd700;
  background: rgba(10, 5, 20, 0.85);
  padding: 0 3px;
  border-radius: 3px;
  border: 1px solid rgba(255, 215, 0, 0.4);
}
.forge-equip-tag {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 8px;
  font-weight: 800;
  color: #00ffaa;
  background: rgba(0, 40, 25, 0.85);
  padding: 0 3px;
  border-radius: 3px;
}
.forge-gear-icon {
  font-size: 22px;
  margin: 4px 0 2px 0;
}
.forge-gear-name {
  font-size: 10px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.forge-chamber {
  background: rgba(18, 9, 32, 0.95);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.forge-empty-prompt {
  text-align: center;
  color: #a496bd;
  font-size: 12px;
  padding: 30px 10px;
}
.forge-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(160, 110, 240, 0.25);
  margin-bottom: 10px;
}
.forge-item-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(10, 5, 20, 0.9);
  border: 1.5px solid #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.forge-stat-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  background: rgba(12, 6, 22, 0.8);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 12px;
}
.forge-rate-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 10px;
  font-size: 12px;
}
.forge-cost-grid {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 11px;
}
.forge-cost-chip {
  flex: 1;
  background: rgba(14, 8, 24, 0.85);
  border: 1px solid rgba(160, 110, 240, 0.3);
  border-radius: 6px;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
}
.forge-action-btn {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.research-mat-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #ffd700;
}

.codex-badge-boss {
  font-size: 10px;
  color: #ff3344;
  border: 1px solid rgba(255, 51, 68, 0.4);
  background: rgba(255, 51, 68, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.codex-badge-mob {
  font-size: 10px;
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.codex-badge-mimic {
  font-size: 10px;
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.4);
  background: rgba(255, 170, 0, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.codex-section-label {
  font-size: 13px;
  font-weight: 700;
  margin: 12px 0 6px 0;
  font-family: var(--font-title);
}

.ach-status-tag {
  font-size: 10.5px;
  color: #888;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.ach-status-tag.done {
  color: #00ffaa;
  background: rgba(0, 255, 170, 0.15);
  border: 1px solid rgba(0, 255, 170, 0.3);
}

.pet-badge-active {
  font-size: 10px;
  color: #00ffaa;
  border: 1px solid rgba(0, 255, 170, 0.4);
  background: rgba(0, 255, 170, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.merc-role-badge {
  font-size: 10.5px;
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* 어픽스 1줄 컴팩트 행 디자인 (PoE / Diablo 스타일) */
.affix-presets-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
}
.affix-presets-bar::-webkit-scrollbar { display: none; }
.affix-presets-bar .game-btn {
  white-space: nowrap;
  padding: 4px 8px;
  font-size: 11px;
  flex-shrink: 0;
}

.affix-summary-bar {
  background: rgba(18, 10, 32, 0.9);
  border: 1px solid rgba(160, 110, 240, 0.35);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-around;
  font-size: 12px;
}

.affix-list-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}

.affix-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 11, 35, 0.85);
  border: 1px solid rgba(160, 110, 240, 0.25);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  gap: 8px;
}

.affix-row:hover {
  background: rgba(30, 16, 52, 0.95);
  border-color: rgba(255, 215, 0, 0.4);
}

.affix-row.active {
  background: rgba(45, 15, 30, 0.92);
  border-color: #ff3355;
  box-shadow: 0 0 10px rgba(255, 51, 85, 0.3);
}

.affix-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.affix-row-name {
  font-weight: 700;
  font-size: 12.5px;
  flex-shrink: 0;
}

.affix-row-desc {
  font-size: 11px;
  color: #a496bd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.affix-row-right {
  flex-shrink: 0;
}

.affix-bonus-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #00ffcc;
  background: rgba(0, 255, 204, 0.12);
  border: 1px solid rgba(0, 255, 204, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}


