/* /var/www/maple-app/Util/8/hexa.css
   기능 설명: 메이플 레코드 헥사스탯 시뮬레이터 전용 스타일시트
   - 기존 사이트 다크 슬레이트·코랄 톤(#131722, #0c1018, #ff7b54~#f0643b) 통일
   - 스탯 코어 I·II·III 탭 + 메인/에디셔널 1·2 10칸 세그먼트 게이지
   - 1-스크린 2단 콕핏 레이아웃 및 초기 스탯 설정 모달 */

.hx-page-shell {
  padding-top: 22px;
  padding-bottom: 52px;
}

.hx-svg-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.hx-page-shell input[type="number"]::-webkit-outer-spin-button,
.hx-page-shell input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.hx-page-shell input[type="number"] {
  -moz-appearance: textfield;
}

.text-white { color: #f8fafc; }
.text-amber { color: #fbbf24; }
.text-emerald { color: #34d399; }
.text-sky { color: #38bdf8; }
.text-rose { color: #fb7185; }
.text-violet { color: #c084fc; }

/* 1. 상단 페이지 헤더 */
.hx-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 16px;
}

.hx-header-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hx-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ff8c5a;
}

.hx-page-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.hx-page-subtitle {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: #8b949e;
  line-height: 1.45;
}

.hx-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hx-event-segment {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0c1018;
  border: 1px solid #1e2636;
  padding: 4px;
  border-radius: 10px;
}

.btn-hx-seg {
  background: transparent;
  color: #8b949e;
  border: 1px solid transparent;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-hx-seg:hover {
  color: #e2e8f0;
}

.btn-hx-seg.active {
  background: linear-gradient(180deg, #ff7b54 0%, #f0643b 100%);
  color: #ffffff;
  border-color: rgba(255, 160, 122, 0.35);
  box-shadow: 0 3px 10px rgba(240, 100, 59, 0.28);
}

.btn-hx-seg.is-sunday.active {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  border-color: rgba(110, 231, 183, 0.45);
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.34);
}

.btn-hx-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #1a202e;
  color: #cbd5e1;
  border: 1px solid #2b354a;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-hx-secondary:hover:not(:disabled) {
  background: #232b3d;
  color: #ffffff;
  border-color: #3f4e6d;
}

/* 2. 설정 허브 (코어 I·II·III · 시세 · 초기화 · 목표 · 손절) */
.hx-control-hub {
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.hx-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.hx-core-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.hx-core-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 14px;
  border-radius: 9px;
  background: #0c1018;
  border: 1px solid #222b3e;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.14s ease;
}

.hx-core-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--core-accent, #c084fc);
  opacity: 0.65;
}

.hx-core-tab:hover {
  color: #e2e8f0;
  border-color: #36435e;
}

.hx-core-tab.active {
  color: #ffffff;
  background: #182032;
  border-color: var(--core-accent, #c084fc);
}

.hx-core-tab.active::before {
  width: 4px;
  opacity: 1;
}

.hx-core-tab small {
  font-size: 0.69rem;
  font-weight: 700;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.hx-core-tab.active small {
  color: var(--core-accent, #cbd5e1);
}

.hx-hub-right {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hx-core-meta-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  box-sizing: border-box;
  padding: 0 10px;
  border-radius: 9px;
  background: #0c1018;
  border: 1px solid #222b3e;
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.btn-hx-init-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  background: #0c1018;
  border: 1px solid #2b364d;
  color: #e2e8f0;
  font-size: 0.79rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.btn-hx-init-open:hover {
  background: #171f30;
  border-color: #ff8c5a;
  color: #ffffff;
}

.hx-init-badge {
  font-size: 0.71rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(192, 132, 252, 0.15);
  color: #d8b4fe;
  font-variant-numeric: tabular-nums;
}

/* 하단 파라미터 + 손절 툴바 */
.hx-params-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hx-param-group,
.hx-toggle-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.hx-inline-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8b949e;
  white-space: nowrap;
  flex-shrink: 0;
}

.hx-control-hub .hx-mini-input,
.hx-analytics-panel .hx-mini-select {
  height: 32px;
  min-height: 32px;
  margin: 0;
  box-sizing: border-box;
  background: #0c1018;
  border: 1px solid #253046;
  color: #f8fafc;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 0.79rem;
  font-weight: 800;
  font-family: inherit;
  line-height: 1;
  outline: none;
  width: auto;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.14s ease;
}

.hx-control-hub .hx-mini-input:focus {
  border-color: #f0883e;
}

.hx-control-hub .hx-mini-input.w-meso {
  width: 128px;
  text-align: right;
  padding: 0 36px 0 9px;
}

.hx-unit-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.hx-unit-box span {
  position: absolute;
  right: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #8b949e;
  pointer-events: none;
}

.hx-kr-hint {
  display: inline-flex;
  align-items: center;
  height: 32px;
  box-sizing: border-box;
  font-size: 0.73rem;
  font-weight: 800;
  padding: 0 8px;
  border-radius: 7px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hx-kr-hint.is-sky {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.hx-kr-hint.is-amber {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.hx-quick-targets {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  box-sizing: border-box;
  background: #0c1018;
  border: 1px solid #253046;
  padding: 3px;
  border-radius: 8px;
}

.hx-qtarget-btn {
  height: 100%;
  background: transparent;
  color: #8b949e;
  border: none;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.13s ease;
}

.hx-qtarget-btn:hover { color: #f8fafc; }

.hx-qtarget-btn.active {
  background: rgba(192, 132, 252, 0.22);
  color: #e9d5ff;
}

.hx-pill-cluster {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.hx-cluster-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  margin-right: 2px;
  white-space: nowrap;
}

.hx-toggle-pill {
  height: 30px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0c1018;
  color: #8b949e;
  border: 1px solid #253046;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.13s ease;
}

.hx-toggle-pill:hover {
  border-color: #3f4f70;
  color: #e2e8f0;
}

.hx-toggle-pill.active {
  background: rgba(240, 100, 59, 0.16);
  color: #ff9f68;
  border-color: rgba(255, 140, 90, 0.52);
}

/* 3. 메인 1-스크린 2단 콕핏 */
.hx-cockpit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(350px, 0.96fr);
  gap: 14px;
  align-items: stretch;
}

.hx-card {
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  padding: 15px 17px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* 상단 실시간 텔레메트리 4칸 */
.hx-live-telemetry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.hx-tel-item {
  background: #0c1018;
  border: 1px solid #1f2738;
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 0;
}

.hx-tel-item span {
  display: block;
  font-size: 0.69rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 2px;
}

.hx-tel-item strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 스테이지 비주얼 박스 */
.hx-stage-visual {
  background: #0c1018;
  border: 1px solid #222b3e;
  border-radius: 13px;
  padding: 13px 14px;
  margin-bottom: 11px;
}

.hx-stage-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hx-visual-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.hx-stage-icon-frame {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: radial-gradient(circle at 30% 30%, rgba(192, 132, 252, 0.22), #141b29 75%);
  border: 1px solid rgba(192, 132, 252, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hx-stage-item-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
}

.hx-stage-title-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hx-stage-title-group h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.2;
}

.hx-core-split-txt {
  font-size: 0.72rem;
  font-weight: 700;
  color: #8b949e;
  font-variant-numeric: tabular-nums;
}

.hx-visual-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hx-shard-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.hx-peak-tag {
  font-size: 0.71rem;
  font-weight: 800;
  color: #d8b4fe;
  background: rgba(192, 132, 252, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.28);
  padding: 3px 9px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* 3대 스탯 트랙 카드 */
.hx-stat-tracks {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 11px;
}

.hx-stat-card {
  background: #121725;
  border: 1px solid #222c40;
  border-radius: 11px;
  padding: 10px 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.hx-stat-card.is-main {
  border-color: rgba(192, 132, 252, 0.28);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.07) 0%, #121725 100%);
}

.hx-stat-card.hit-flash-main {
  border-color: #c084fc;
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.35);
}

.hx-stat-card.hit-flash-add1 {
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.hx-stat-card.hit-flash-add2 {
  border-color: #34d399;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.3);
}

.hx-stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 8px;
}

.hx-stat-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.hx-slot-tag {
  font-size: 0.64rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.tag-main { background: rgba(192, 132, 252, 0.2); color: #e9d5ff; border: 1px solid rgba(192, 132, 252, 0.4); }
.tag-add1 { background: rgba(56, 189, 248, 0.16); color: #bae6fd; border: 1px solid rgba(56, 189, 248, 0.32); }
.tag-add2 { background: rgba(52, 211, 153, 0.16); color: #a7f3d0; border: 1px solid rgba(52, 211, 153, 0.32); }

.hx-stat-name {
  font-size: 0.87rem;
  font-weight: 800;
  color: #f1f5f9;
  white-space: nowrap;
}

.hx-prob-pill {
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pill-main { background: rgba(192, 132, 252, 0.16); color: #d8b4fe; }
.pill-main.is-boosted { background: rgba(16, 185, 129, 0.22); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.45); }
.pill-add1 { background: rgba(56, 189, 248, 0.12); color: #7dd3fc; }
.pill-add2 { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }

.hx-lv-val {
  font-size: 0.98rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  min-width: 40px;
  text-align: right;
}

/* 10칸 세그먼트 레벨 게이지 */
.hx-seg-gauge {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
}

.hx-seg-cell {
  height: 11px;
  border-radius: 4px;
  background: #1a2233;
  border: 1px solid #243047;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.hx-seg-cell.filled-main {
  background: linear-gradient(180deg, #c084fc 0%, #9333ea 100%);
  border-color: rgba(233, 213, 255, 0.45);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.45);
}

.hx-seg-cell.filled-main.is-high {
  background: linear-gradient(180deg, #f472b6 0%, #a855f7 100%);
  border-color: rgba(251, 207, 232, 0.65);
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.6);
}

.hx-seg-cell.filled-main.is-max {
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
  border-color: rgba(254, 240, 138, 0.75);
  box-shadow: 0 0 11px rgba(251, 191, 36, 0.7);
}

.hx-seg-cell.filled-add1 {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  border-color: rgba(186, 230, 253, 0.4);
  box-shadow: 0 0 7px rgba(56, 189, 248, 0.4);
}

.hx-seg-cell.filled-add2 {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  border-color: rgba(167, 243, 208, 0.4);
  box-shadow: 0 0 7px rgba(52, 211, 153, 0.4);
}

.hx-seg-cell.is-target-mark:not(.filled-main) {
  border-color: rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.08);
}

/* 상태 배너 */
.hx-status-banner {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hx-status-banner.is-idle {
  background: #131825;
  border: 1px solid #222b3e;
  color: #94a3b8;
}

.hx-status-banner.is-main {
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(192, 132, 252, 0.45);
  color: #e9d5ff;
}

.hx-status-banner.is-add {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #bae6fd;
}

.hx-status-banner.is-reset {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(251, 113, 133, 0.4);
  color: #fda4af;
}

.hx-status-banner.is-goal {
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fde047;
}

/* 비용 요약 + 코어 초기화 스트립 */
.hx-cost-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #0c1018;
  border: 1px solid #20293c;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.hx-cost-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.hx-cost-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
}

.hx-cost-left strong {
  font-size: 0.88rem;
  font-weight: 900;
}

.hx-mini-tag {
  font-size: 0.67rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.tag-sunday {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.36);
}

.btn-hx-reset-core {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(244, 63, 94, 0.14);
  color: #fda4af;
  border: 1px solid rgba(251, 113, 133, 0.42);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.btn-hx-reset-core:hover:not(:disabled) {
  background: rgba(244, 63, 94, 0.24);
  color: #ffffff;
  border-color: #fb7185;
}

.btn-hx-reset-core:disabled {
  background: #141a28;
  color: #64748b;
  border-color: #242e42;
  cursor: not-allowed;
}

/* 액션 버튼 2종 + 목표 저격 버튼 */
.hx-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 9px;
}

.btn-hx-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ff7b54 0%, #f0643b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 160, 122, 0.34);
  border-radius: 11px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(240, 100, 59, 0.25);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.btn-hx-primary:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.btn-hx-auto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #2b354b 0%, #1d2436 100%);
  color: #f8fafc;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 11px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.btn-hx-auto:hover:not(:disabled) {
  border-color: #fbbf24;
  background: linear-gradient(180deg, #35425c 0%, #232c42 100%);
  transform: translateY(-1px);
}

.btn-hx-primary:disabled,
.btn-hx-auto:disabled,
.btn-hx-hunt:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-stage-action {
  flex-direction: column;
  gap: 2px;
  padding: 11px 14px;
}

.btn-act-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.91rem;
  font-weight: 900;
}

.btn-stage-action small {
  font-size: 0.71rem;
  font-weight: 600;
  opacity: 0.88;
}

.btn-hx-hunt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(147, 51, 234, 0.22) 0%, rgba(56, 189, 248, 0.14) 100%);
  border: 1px solid rgba(192, 132, 252, 0.45);
  color: #f8fafc;
  font-family: inherit;
  cursor: pointer;
  margin-top: auto;
  transition: all 0.15s ease;
}

.btn-hx-hunt:hover:not(:disabled) {
  border-color: #c084fc;
  background: linear-gradient(90deg, rgba(147, 51, 234, 0.34) 0%, rgba(56, 189, 248, 0.2) 100%);
  transform: translateY(-1px);
}

.btn-hunt-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
}

.btn-hx-hunt small {
  font-size: 0.72rem;
  font-weight: 700;
  color: #d8b4fe;
}

/* 4. 우측 통합 분석 탭 패널 */
.hx-side-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  background: #0c1018;
  border: 1px solid #20293c;
  padding: 4px;
  border-radius: 11px;
  margin-bottom: 12px;
}

.hx-side-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  color: #8b949e;
  border: 1px solid transparent;
  padding: 7px 6px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.hx-side-tab:hover { color: #e2e8f0; }

.hx-side-tab.active {
  background: #1b2436;
  color: #f8fafc;
  border-color: #32405c;
}

.hx-tab-count {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(240, 100, 59, 0.2);
  color: #ff9f68;
  padding: 1px 6px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.hx-tab-pane {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.hx-tab-pane.active {
  display: flex;
}

.hx-pane-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.75rem;
  color: #8b949e;
  font-weight: 700;
}

.hx-exact-tag {
  font-size: 0.66rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  white-space: nowrap;
}

.hx-ev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.hx-ev-card {
  background: #0c1018;
  border: 1px solid #20293c;
  border-radius: 10px;
  padding: 9px 11px;
  min-width: 0;
}

.hx-ev-card span {
  display: block;
  font-size: 0.69rem;
  font-weight: 700;
  color: #8b949e;
  margin-bottom: 2px;
}

.hx-ev-card strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hx-live-prob-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 9px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.35);
  margin-bottom: 9px;
  font-size: 0.75rem;
  color: #e9d5ff;
}

.hx-live-prob-box strong {
  font-size: 0.86rem;
  font-weight: 900;
  color: #fde047;
  font-variant-numeric: tabular-nums;
}

.hx-ev-table-wrap {
  max-height: 215px;
  overflow-y: auto;
  border: 1px solid #1f2738;
  border-radius: 10px;
  background: #0c1018;
  margin-bottom: 10px;
}

.hx-ev-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}

.hx-ev-table th,
.hx-ev-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hx-ev-table th:first-child,
.hx-ev-table td:first-child {
  text-align: left;
}

.hx-ev-table thead th {
  position: sticky;
  top: 0;
  background: #141a28;
  color: #8b949e;
  font-weight: 700;
  z-index: 1;
}

.hx-ev-table tbody tr.is-target-row {
  background: rgba(192, 132, 252, 0.13);
  color: #f8fafc;
  font-weight: 800;
}

.hx-ev-tip {
  margin-top: auto;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(52, 211, 153, 0.28);
  font-size: 0.74rem;
  color: #6ee7b7;
  line-height: 1.45;
}

/* 운빨 분포 탭 */
.hx-bulk-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-bulk-go {
  padding: 7px 14px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.hx-empty-box {
  background: #0c1018;
  border: 1px dashed #253046;
  border-radius: 10px;
  padding: 28px 14px;
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.55;
}

.hx-empty-box strong { color: #cbd5e1; }

.hx-bulk-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hx-bulk-row {
  background: #0c1018;
  border: 1px solid #20293c;
  border-radius: 10px;
  padding: 9px 11px;
}

.hx-bulk-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.77rem;
  margin-bottom: 5px;
}

.hx-bulk-row-top strong { font-variant-numeric: tabular-nums; }

.hx-bulk-track {
  width: 100%;
  height: 6px;
  background: #171f30;
  border-radius: 999px;
  overflow: hidden;
}

.hx-bulk-fill {
  height: 100%;
  border-radius: 999px;
}

.bar-lucky { background: linear-gradient(90deg, #34d399, #10b981); }
.bar-median { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.bar-avg { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.bar-unlucky { background: linear-gradient(90deg, #fb7185, #e11d48); }

.hx-bulk-note {
  margin-top: 8px;
  font-size: 0.72rem;
  color: #8b949e;
  text-align: center;
}

/* 강화 기록 탭 */
.hx-log-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: #8b949e;
  font-weight: 700;
}

.hx-log-scroll {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 410px;
  overflow-y: auto;
}

.hx-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #0c1018;
  border: 1px solid #1f2738;
  font-size: 0.75rem;
}

.hx-log-item.is-main {
  border-color: rgba(192, 132, 252, 0.34);
  background: rgba(168, 85, 247, 0.06);
}

.hx-log-item.is-goal {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
}

.hx-log-item.is-reset {
  border-color: rgba(251, 113, 133, 0.38);
  background: rgba(244, 63, 94, 0.07);
}

.hx-log-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hx-log-seq {
  color: #64748b;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hx-log-text {
  color: #e2e8f0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hx-res-pill {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.res-main { background: rgba(192, 132, 252, 0.2); color: #e9d5ff; }
.res-add1 { background: rgba(56, 189, 248, 0.16); color: #bae6fd; }
.res-add2 { background: rgba(52, 211, 153, 0.16); color: #a7f3d0; }
.res-goal { background: rgba(251, 191, 36, 0.2); color: #fde047; }
.res-finish { background: rgba(148, 163, 184, 0.18); color: #cbd5e1; }
.res-reset { background: rgba(244, 63, 94, 0.2); color: #fda4af; }

.hx-log-cost {
  color: #94a3b8;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 초기 스탯 설정 모달 */
.hx-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.hx-modal-dialog {
  width: 100%;
  max-width: 410px;
  background: #131722;
  border: 1px solid #2b354b;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.hx-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hx-modal-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  color: #f8fafc;
}

.hx-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.hx-modal-close:hover {
  background: #1f2738;
  color: #ffffff;
}

.hx-modal-body {
  padding: 16px 18px;
}

.hx-modal-desc {
  margin: 0 0 14px;
  font-size: 0.79rem;
  color: #94a3b8;
  line-height: 1.5;
}

.hx-init-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.hx-init-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0c1018;
  border: 1px solid #242e42;
  border-radius: 10px;
  padding: 10px;
}

.hx-init-field.is-main { border-color: rgba(192, 132, 252, 0.4); }
.hx-init-field.is-add1 { border-color: rgba(56, 189, 248, 0.35); }
.hx-init-field.is-add2 { border-color: rgba(52, 211, 153, 0.35); }

.hx-init-field span {
  font-size: 0.74rem;
  font-weight: 800;
  color: #cbd5e1;
  text-align: center;
}

.hx-init-field input {
  width: 100%;
  box-sizing: border-box;
  height: 36px;
  background: #151c2c;
  border: 1px solid #2d3850;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  font-family: inherit;
  outline: none;
}

.hx-init-field input:focus {
  border-color: #ff8c5a;
}

.hx-init-sum-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 9px;
  background: #0c1018;
  border: 1px solid #222b3e;
  font-size: 0.8rem;
  color: #94a3b8;
}

.hx-init-sum-bar.is-invalid {
  border-color: rgba(251, 113, 133, 0.55);
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
}

.hx-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-modal-apply {
  padding: 9px 18px;
  font-size: 0.84rem;
  border-radius: 10px;
}

/* 반응형 미디어 쿼리 */
@media (max-width: 1080px) {
  .hx-cockpit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hx-live-telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hx-action-row {
    grid-template-columns: 1fr;
  }
  .hx-hub-right {
    width: 100%;
    justify-content: space-between;
  }
  .hx-core-meta-pill,
  .btn-hx-init-open {
    flex: 1 1 auto;
    justify-content: center;
  }
}