/* ==========================================================================
   메이플 레코드 - 성장 기록 + 히스토리 통합 (/Char/1/growth.css)
   ========================================================================== */

:root {
  --gr-bg-card: #141821;
  --gr-bg-sub: #0f131b;
  --gr-bg-elevated: #1b2230;
  --gr-border: #263042;
  --gr-border-hover: #3c4d69;
  --gr-text: #f1f5f9;
  --gr-muted: #94a3b8;
  --gr-orange: #ff7b54;
  --gr-sky: #38bdf8;
  --gr-emerald: #34d399;
  --gr-purple: #c084fc;
  --gr-amber: #fbbf24;
  --gr-rose: #fb7185;
}

.growth-page-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  box-sizing: border-box;
}

/* 공통 인라인 SVG 아이콘 */
.ui-svg-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.ui-svg-icon.sm { width: 15px; height: 15px; }
.ui-svg-icon.xs { width: 13px; height: 13px; }
.ui-svg-icon.xl { width: 40px; height: 40px; color: var(--gr-sky); }

.sec-icon-svg {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sec-icon-svg.tone-orange { background: rgba(255, 123, 84, 0.14); color: #ff946e; border: 1px solid rgba(255, 123, 84, 0.28); }
.sec-icon-svg.tone-sky { background: rgba(56, 189, 248, 0.14); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.28); }
.sec-icon-svg.tone-purple { background: rgba(192, 132, 252, 0.14); color: #c084fc; border: 1px solid rgba(192, 132, 252, 0.28); }
.sec-icon-svg.tone-emerald { background: rgba(52, 211, 153, 0.14); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.28); }

/* 1. 상단 검색 & 날짜 컨트롤 패널 */
.growth-search-panel {
  background: linear-gradient(135deg, #171c28 0%, #121620 100%);
  border: 1px solid var(--gr-border);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.growth-panel-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.growth-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--gr-sky);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.growth-main-title {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.4px;
}

.growth-sub-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--gr-muted);
  word-break: keep-all;
}

.growth-search-form {
  flex-shrink: 0;
  width: 100%;
  max-width: 390px;
}

.search-input-wrap {
  display: flex;
  gap: 8px;
  background: var(--gr-bg-sub);
  border: 1px solid #303d54;
  border-radius: 12px;
  padding: 5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-wrap:focus-within {
  border-color: var(--gr-orange);
  box-shadow: 0 0 0 3px rgba(255, 123, 84, 0.15);
}

.growth-char-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 8px 12px;
  outline: none;
}

.growth-char-input::placeholder { color: #64748b; font-weight: 400; }

.btn-growth-search {
  background: linear-gradient(180deg, #ff7b54 0%, #f0643b 100%);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease;
}

.btn-growth-search:hover { filter: brightness(1.08); }
.btn-growth-search:disabled { opacity: 0.6; cursor: not-allowed; }

.growth-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #20293a;
}

.recent-chars-area,
.date-preset-area {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.control-label { font-size: 0.78rem; font-weight: 800; color: #94a3b8; white-space: nowrap; }
.recent-pills-list { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.recent-empty-text { font-size: 0.78rem; color: #64748b; }

.btn-recent-char {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111622;
  color: #cbd5e1;
  border: 1px solid #2b374d;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.recent-char-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}

.btn-recent-char:hover,
.btn-recent-char.active {
  border-color: var(--gr-orange);
  color: #ffffff;
  background: rgba(255, 123, 84, 0.12);
}

.btn-recent-char.active .recent-char-dot { background: var(--gr-orange); }

.date-preset-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  background: var(--gr-bg-sub);
  border: 1px solid #253045;
  padding: 4px;
  border-radius: 10px;
}

.btn-date-preset {
  background: transparent;
  color: #94a3b8;
  border: 1px solid transparent;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-date-preset:hover { color: #ffffff; }

.btn-date-preset.active {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.45);
}

.input-custom-date {
  background: #161d2b;
  border: 1px solid #2e3b54;
  color: #e2e8f0;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-family: inherit;
  outline: none;
  color-scheme: dark;
}

.input-custom-date:focus,
.input-custom-date.active {
  border-color: var(--gr-sky);
  color: #ffffff;
}

/* 2. 상태 표시 박스 */
.growth-state-box {
  background: var(--gr-bg-card);
  border: 1px dashed #2e3a50;
  border-radius: 16px;
  padding: 58px 24px;
  text-align: center;
  color: var(--gr-muted);
}

.state-svg-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.state-svg-wrap.is-error {
  background: rgba(251, 113, 133, 0.1);
  border-color: rgba(251, 113, 133, 0.3);
}
.state-svg-wrap.is-error .ui-svg-icon { color: var(--gr-rose); }

.growth-state-box h2 { margin: 0 0 8px; color: #ffffff; font-size: 1.15rem; }
.growth-state-box p { margin: 0; font-size: 0.86rem; word-break: keep-all; }

.growth-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: var(--gr-orange);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: growthSpin 0.8s linear infinite;
}

@keyframes growthSpin { to { transform: rotate(360deg); } }

/* 3. 캐릭터 히어로 & 요약 메트릭 */
.char-hero-card {
  background: linear-gradient(135deg, #181e2c 0%, #141821 60%, #1b1826 100%);
  border: 1px solid var(--gr-border);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.char-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 300px;
}

.char-avatar-box {
  width: 128px;
  height: 128px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 60%, #242f45 0%, #0e121a 100%);
  border: 1px solid #303d55;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.char-avatar-img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  transform: scale(2.65);
  transform-origin: 50% 56%;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.65));
  pointer-events: none;
}
.char-identity { min-width: 0; }

.char-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.badge-world {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
}

.badge-class,
.badge-guild {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
}

.char-name-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.res-char-name { margin: 0; font-size: 1.45rem; font-weight: 900; color: #ffffff; }
.res-char-level { font-size: 0.95rem; font-weight: 800; color: var(--gr-amber); }

.delta-chip {
  font-size: 0.73rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.delta-chip.up { background: rgba(52, 211, 153, 0.16); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.35); }
.delta-chip.down { background: rgba(251, 113, 133, 0.16); color: #fb7185; border: 1px solid rgba(251, 113, 133, 0.35); }

.changed-slots-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }

.changed-slot-chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(0, 212, 255, 0.38);
  cursor: pointer;
}

.changed-slot-chip:hover { background: rgba(0, 212, 255, 0.24); color: #ffffff; }

.changed-slot-chip.none {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.2);
  cursor: default;
}

.changed-slot-chip.more {
  background: rgba(255, 123, 84, 0.14);
  color: #ff9a76;
  border-color: rgba(255, 123, 84, 0.42);
}

.changed-slot-chip.more:hover {
  background: rgba(255, 123, 84, 0.26);
  color: #ffffff;
}

.char-hero-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 560px;
  min-width: 0;
}

.char-hero-metrics {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr;
  gap: 10px;
  width: 100%;
}

/* 종합 · 서버 · 직업 랭킹 소형 3칸 바 */
.char-hero-rankings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.hero-rank-pill {
  background: rgba(15, 19, 27, 0.9);
  border: 1px solid #222d42;
  border-radius: 9px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.rank-pill-label {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--gr-muted);
  white-space: nowrap;
}

.rank-pill-val {
  font-size: 0.81rem;
  font-weight: 900;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-pill-sub {
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  margin-right: 4px;
}

@media (max-width: 680px) {
  .char-hero-rankings {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.hero-metric-card {
  background: var(--gr-bg-sub);
  border: 1px solid #242f44;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}

.metric-top-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.metric-label { font-size: 0.74rem; color: var(--gr-muted); font-weight: 700; }

.metric-mini-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: #ff9a76;
  background: rgba(255, 123, 84, 0.14);
  border: 1px solid rgba(255, 123, 84, 0.32);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.metric-mini-tag.is-fallback {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
}

.metric-value {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -0.35px;
  color: #ffffff;
  white-space: nowrap;
}

.metric-value.orange { color: #ff956e; }
.metric-value.sky { color: var(--gr-sky); }
.metric-value.purple { color: var(--gr-purple); }
.metric-value.emerald { color: var(--gr-emerald); }

.metric-delta {
  font-size: 0.73rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-delta.up { color: var(--gr-emerald); }
.metric-delta.down { color: var(--gr-rose); }

.btn-inline-detail {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--gr-sky);
  cursor: pointer;
}
.btn-inline-detail:hover { text-decoration: underline; }

/* ==========================================================================
   3-1.5. 히스토리 통합 1줄(3열) 요약 차트 스트립
   ========================================================================== */
.growth-history-strip {
  background: var(--gr-bg-card);
  border: 1px solid var(--gr-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.26);
}

.history-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.history-strip-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.history-strip-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 900;
  color: #ffffff;
}

.history-status-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.history-status-pill.is-error {
  background: rgba(251, 113, 133, 0.14);
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.35);
}

.btn-toggle-history {
  background: #1a2232;
  border: 1px solid #2d3a52;
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-toggle-history:hover {
  border-color: var(--gr-sky);
  color: #ffffff;
}

.history-strip-body {
  position: relative;
  margin-top: 12px;
}

.history-strip-body.is-collapsed {
  display: none;
}

.history-strip-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(15, 19, 27, 0.84);
  backdrop-filter: blur(2px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

.history-mini-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(56, 189, 248, 0.25);
  border-top-color: var(--gr-sky);
  border-radius: 50%;
  animation: growthSpin 0.8s linear infinite;
  flex-shrink: 0;
}

/* PC 1줄 3열 그리드 */
.history-charts-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.history-mini-card {
  background: var(--gr-bg-sub);
  border: 1px solid #222d42;
  border-radius: 11px;
  padding: 11px 12px 10px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 28px;
}

.history-mini-title-col {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}

.history-mini-title {
  font-size: 0.83rem;
  font-weight: 900;
  color: #f1f5f9;
  white-space: nowrap;
}

.history-mini-stat {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.history-mini-stat.tone-amber {
  background: rgba(250, 204, 21, 0.14);
  color: #fde047;
}

.history-mini-stat.tone-orange {
  background: rgba(249, 115, 22, 0.16);
  color: #fb923c;
}

.history-mini-stat.tone-teal {
  background: rgba(45, 212, 191, 0.14);
  color: #2dd4bf;
}

.history-mini-unit {
  font-size: 0.69rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

/* 경험치 / 레벨 / 일일 초슬림 알약 탭 */
.history-mini-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #141a26;
  border: 1px solid #263248;
  padding: 2px;
  border-radius: 999px;
  flex-shrink: 0;
}

.btn-hist-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.71rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-hist-tab:hover { color: #ffffff; }
.btn-hist-tab.active {
  background: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 1px 6px rgba(14, 165, 233, 0.4);
}

/* 가로 스크롤 지원 컴팩트 차트 캔버스 래퍼 */
.growth-chart-wrapper {
  position: relative;
  width: 100%;
  height: 205px;
  background: #131b29;
  border: 1px solid #243045;
  border-radius: 9px;
  padding: 10px 8px 14px 8px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.growth-chart-track {
  position: relative;
  height: 100%;
  min-width: 100%;
}

.growth-chart-track canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.growth-chart-wrapper::-webkit-scrollbar { height: 5px; }
.growth-chart-wrapper::-webkit-scrollbar-track { background: #0d1117; border-radius: 4px; }
.growth-chart-wrapper::-webkit-scrollbar-thumb { background: #2c384f; border-radius: 4px; }
.growth-chart-wrapper::-webkit-scrollbar-thumb:hover { background: var(--gr-sky); }

/* 4. 필터 바 & 모바일 뷰 전환 */
.growth-filter-bar {
  background: var(--gr-bg-card);
  border: 1px solid var(--gr-border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.section-tabs-group { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

.btn-sec-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--gr-muted);
  border: 1px solid transparent;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sec-tab:hover { color: #ffffff; background: rgba(255, 255, 255, 0.04); }

.btn-sec-tab.active {
  background: rgba(255, 123, 84, 0.16);
  color: #ff9a76;
  border-color: rgba(255, 123, 84, 0.35);
}

.tab-cnt { background: #232d40; color: #cbd5e1; font-size: 0.7rem; padding: 1px 6px; border-radius: 999px; }
.btn-sec-tab.active .tab-cnt { background: var(--gr-orange); color: #ffffff; }

.filter-right-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.toggle-diff-only {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
}

.toggle-diff-only input { accent-color: var(--gr-orange); width: 15px; height: 15px; cursor: pointer; }

.mobile-side-switch {
  display: none;
  background: var(--gr-bg-sub);
  border: 1px solid #263147;
  padding: 3px;
  border-radius: 8px;
  gap: 3px;
}

.btn-mob-view {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}
.btn-mob-view.active { background: var(--gr-orange); color: #ffffff; }

/* 5. 좌우 비교 헤더 바 */
.compare-columns-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.col-header-card {
  background: var(--gr-bg-card);
  border: 1px solid var(--gr-border);
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.col-header-card.past-header { border-top: 3px solid #64748b; }
.col-header-card.live-header { border-top: 3px solid var(--gr-orange); }
.col-header-left { display: flex; align-items: center; gap: 10px; }

.col-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-past { background: #94a3b8; }
.dot-live { background: var(--gr-emerald); box-shadow: 0 0 8px rgba(52, 211, 153, 0.7); }

.col-title { margin: 0; font-size: 0.98rem; font-weight: 900; color: #ffffff; }
.col-subtitle { font-size: 0.76rem; color: var(--gr-muted); }

.col-pill {
  font-size: 0.7rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.pill-past { background: rgba(148, 163, 184, 0.14); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.25); }

.col-header-actions { display: flex; align-items: center; gap: 8px; }

.btn-refresh-live {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #1b2333;
  border: 1px solid #303d56;
  color: #cbd5e1;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-refresh-live:hover { border-color: var(--gr-sky); color: #ffffff; }

.btn-open-detail-modal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(180deg, #ff7b54 0%, #f0643b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 168, 138, 0.4);
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 0.83rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(240, 100, 59, 0.3);
}
.btn-open-detail-modal:hover { filter: brightness(1.08); }

.detail-count-pill {
  background: rgba(15, 19, 27, 0.45);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 999px;
}

.past-missing-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 14px;
}

/* 6. 비교 섹션 블록 */
.compare-section-block {
  background: var(--gr-bg-card);
  border: 1px solid var(--gr-border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.section-block-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #20293a;
}

.sec-title-left { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.sec-title-left h4 { margin: 0; font-size: 1rem; font-weight: 900; color: #ffffff; }

.sec-preset-badge {
  font-size: 0.73rem;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 6px;
  background: rgba(255, 123, 84, 0.16);
  color: #ff9a76;
  border: 1px solid rgba(255, 123, 84, 0.38);
}

.sec-preset-badge.mode-hunting {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.38);
}

.sec-preset-badge.mode-normal {
  background: rgba(192, 132, 252, 0.15);
  color: #d8b4fe;
  border-color: rgba(192, 132, 252, 0.35);
}

.sec-summary-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

.sec-summary-badge.has-diff {
  background: rgba(0, 212, 255, 0.14);
  color: #67e8f9;
  border: 1px solid rgba(0, 212, 255, 0.35);
}

.sec-hint { font-size: 0.75rem; color: #64748b; }

.compare-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.split-col {
  background: var(--gr-bg-sub);
  border: 1px solid #1f293b;
  border-radius: 12px;
  padding: 14px;
  min-width: 0;
}

.mobile-col-tag {
  display: none;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  width: fit-content;
}
.tag-past { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
.tag-live { background: rgba(255, 123, 84, 0.18); color: #ff9a76; }

/* 6-1. 인게임 장비창 5열 x 6행 배치 */
.ingame-equip-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  max-width: 480px;
  margin: 0 auto;
}

.equip-grid-spacer { aspect-ratio: 1 / 1; pointer-events: none; }

.equip-slot-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #161c28;
  border: 1.5px solid #283348;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  box-sizing: border-box;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, opacity 0.15s ease;
  user-select: none;
}

.equip-slot-tile:hover,
.equip-slot-tile.is-pair-hover {
  transform: translateY(-2px);
  z-index: 4;
  box-shadow: 0 0 0 2px rgba(248, 250, 252, 0.72), 0 8px 18px rgba(0, 0, 0, 0.55);
}

.equip-slot-tile.grade-legendary {
  border-color: rgba(34, 197, 94, 0.58);
  background: radial-gradient(circle at 50% 45%, rgba(34, 197, 94, 0.1) 0%, #141a23 85%);
}

.equip-slot-tile.grade-unique {
  border-color: rgba(234, 179, 8, 0.62);
  background: radial-gradient(circle at 50% 45%, rgba(234, 179, 8, 0.11) 0%, #181a20 85%);
}

.equip-slot-tile.grade-epic {
  border-color: rgba(168, 85, 247, 0.62);
  background: radial-gradient(circle at 50% 45%, rgba(168, 85, 247, 0.12) 0%, #171625 85%);
}

.equip-slot-tile.grade-rare {
  border-color: rgba(56, 189, 248, 0.58);
  background: radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.1) 0%, #141a26 85%);
}

.equip-slot-tile.is-empty-slot {
  border-style: dashed;
  border-color: #242e42;
  background: #11151f;
  opacity: 0.6;
}

.equip-slot-tile.is-dimmed { opacity: 0.18; filter: grayscale(0.75); }

@keyframes diffRingPulseCyan {
  0%, 100% { box-shadow: 0 0 0 2px #00d4ff, 0 0 14px rgba(0, 212, 255, 0.55); }
  50% { box-shadow: 0 0 0 2.5px #67e8f9, 0 0 22px rgba(0, 212, 255, 0.85); }
}

@keyframes diffRingPulseOrange {
  0%, 100% { box-shadow: 0 0 0 2px #ff6b3d, 0 0 14px rgba(255, 107, 61, 0.55); }
  50% { box-shadow: 0 0 0 2.5px #ff9a76, 0 0 22px rgba(255, 107, 61, 0.88); }
}

.equip-slot-tile.has-change-upgraded {
  border-color: #00d4ff !important;
  background: linear-gradient(155deg, rgba(0, 212, 255, 0.24) 0%, #152130 58%, rgba(0, 212, 255, 0.12) 100%) !important;
  animation: diffRingPulseCyan 2.4s ease-in-out infinite;
  z-index: 2;
}

.equip-slot-tile.has-change-replaced {
  border-color: #ff6b3d !important;
  background: linear-gradient(155deg, rgba(255, 107, 61, 0.26) 0%, #24191e 58%, rgba(255, 107, 61, 0.14) 100%) !important;
  animation: diffRingPulseOrange 2.4s ease-in-out infinite;
  z-index: 2;
}

.equip-slot-tile.has-change-added {
  border-color: #2dd4bf !important;
  background: linear-gradient(155deg, rgba(45, 212, 191, 0.24) 0%, #142428 60%, rgba(45, 212, 191, 0.12) 100%) !important;
  box-shadow: 0 0 0 2px #2dd4bf, 0 0 16px rgba(45, 212, 191, 0.55);
  z-index: 2;
}

.equip-slot-tile.has-change-removed {
  border-color: #fb7185 !important;
  background: linear-gradient(155deg, rgba(251, 113, 133, 0.22) 0%, #24151c 60%, rgba(251, 113, 133, 0.1) 100%) !important;
  box-shadow: 0 0 0 2px #fb7185, 0 0 14px rgba(251, 113, 133, 0.5);
  z-index: 2;
}

.slot-star-badge {
  position: absolute;
  top: 3px;
  left: 4px;
  font-size: 0.65rem;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.98);
  line-height: 1;
  pointer-events: none;
}

.slot-ring-lv {
  position: absolute;
  top: 3px;
  left: 4px;
  font-size: 0.61rem;
  font-weight: 900;
  color: #facc15;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.98);
  line-height: 1;
  pointer-events: none;
}

.slot-pot-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  background: rgba(9, 13, 21, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 1px 3.5px;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.4px;
  pointer-events: none;
  z-index: 2;
}

.pg-l { color: #4ade80; }
.pg-u { color: #facc15; }
.pg-e { color: #c084fc; }
.pg-r { color: #38bdf8; }
.pg-n { color: #64748b; }
.pg-comma { color: #94a3b8; font-weight: 700; }

.slot-item-img {
  width: 37px;
  height: 37px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
  margin-top: 2px;
  margin-bottom: 6px;
}

.slot-short-label {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  text-align: center;
  font-size: 0.59rem;
  font-weight: 700;
  color: rgba(203, 213, 225, 0.72);
  letter-spacing: -0.3px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.equip-slot-tile.is-empty-slot .slot-short-label {
  position: static;
  font-size: 0.66rem;
  color: #475569;
}

.slot-bottom-diff-bar {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  text-align: center;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 1.5px 3px;
  border-radius: 5px;
  line-height: 1.15;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  z-index: 2;
}

.slot-bottom-diff-bar.live-upgraded { background: #0284c7; color: #ffffff; }
.slot-bottom-diff-bar.live-replaced { background: #ea580c; color: #ffffff; }
.slot-bottom-diff-bar.live-added { background: #0d9488; color: #ffffff; }
.slot-bottom-diff-bar.live-removed { background: #e11d48; color: #ffffff; }

.slot-bottom-diff-bar.past-upgraded {
  background: rgba(0, 212, 255, 0.22);
  color: #bae6fd;
  border: 1px solid rgba(0, 212, 255, 0.45);
}
.slot-bottom-diff-bar.past-replaced {
  background: rgba(255, 107, 61, 0.24);
  color: #fed7aa;
  border: 1px solid rgba(255, 107, 61, 0.5);
}
.slot-bottom-diff-bar.past-added {
  background: rgba(45, 212, 191, 0.2);
  color: #99f6e4;
  border: 1px solid rgba(45, 212, 191, 0.45);
}
.slot-bottom-diff-bar.past-removed {
  background: rgba(251, 113, 133, 0.24);
  color: #fecdd3;
  border: 1px solid rgba(251, 113, 133, 0.5);
}

/* 착용 장비 비교 하단 프리셋 선택 바 */
.equip-preset-footer {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #20293a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.equip-preset-footer-left { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.preset-footer-label { font-size: 0.78rem; font-weight: 800; color: #94a3b8; white-space: nowrap; }
.equip-preset-btn-group { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

.btn-equip-preset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #101520;
  color: #cbd5e1;
  border: 1px solid #2b374f;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-equip-preset:hover { border-color: #4b5e82; color: #ffffff; }

.btn-equip-preset.active {
  background: linear-gradient(180deg, rgba(255, 123, 84, 0.22) 0%, rgba(240, 100, 59, 0.14) 100%);
  border-color: var(--gr-orange);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 123, 84, 0.35);
}

.btn-equip-preset.preset-hunting.active {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.22) 0%, rgba(14, 165, 233, 0.14) 100%);
  border-color: var(--gr-sky);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.preset-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gr-emerald);
  display: inline-block;
}

.preset-sub-pill {
  font-size: 0.67rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 5px;
}

.btn-equip-preset.active .preset-sub-pill { color: #ffffff; background: rgba(255, 255, 255, 0.15); }

.equip-grade-legend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 700; color: #94a3b8; }
.leg-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.leg-legendary { background: #22c55e; }
.leg-unique { background: #eab308; }
.leg-epic { background: #a855f7; }
.leg-rare { background: #38bdf8; }

.equip-diff-tag { font-size: 0.68rem; font-weight: 900; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.equip-diff-tag.replaced { background: rgba(255, 107, 61, 0.22); color: #ff9a76; }
.equip-diff-tag.upgraded { background: rgba(0, 212, 255, 0.2); color: #67e8f9; }
.equip-diff-tag.added { background: rgba(45, 212, 191, 0.2); color: #5eead4; }
.equip-diff-tag.removed { background: rgba(251, 113, 133, 0.2); color: #fb7185; }

/* 6-2. 심볼 패널 */
.symbol-group-block { margin-bottom: 14px; }
.symbol-group-block:last-child { margin-bottom: 0; }
.symbol-group-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.symbol-group-title { font-size: 0.82rem; font-weight: 800; color: #cbd5e1; }
.symbol-force-badge { font-size: 0.74rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.force-arcane { background: rgba(56, 189, 248, 0.14); color: #38bdf8; }
.force-authentic { background: rgba(192, 132, 252, 0.15); color: #c084fc; }

.symbol-cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.symbol-card {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #151b26;
  border: 1px solid #242f44;
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 0;
}

.symbol-card.is-changed {
  border-color: rgba(0, 212, 255, 0.65);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, #151b26 100%);
}

.symbol-icon { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.symbol-meta { min-width: 0; flex: 1; }
.symbol-name-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.symbol-short-name { font-size: 0.78rem; font-weight: 800; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.symbol-lv-tag { font-size: 0.73rem; font-weight: 900; color: var(--gr-amber); white-space: nowrap; }
.symbol-sub-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.7rem; color: var(--gr-muted); margin-top: 2px; }
.symbol-diff-badge { font-size: 0.67rem; font-weight: 800; color: var(--gr-emerald); white-space: nowrap; }

/* 6-3. 아티팩트 패널 */
.artifact-top-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.mini-info-tile { background: #151b26; border: 1px solid #242f44; border-radius: 9px; padding: 9px 10px; text-align: center; }
.mini-info-tile span { display: block; font-size: 0.7rem; color: var(--gr-muted); margin-bottom: 3px; }
.mini-info-tile strong { font-size: 0.92rem; font-weight: 900; color: #ffffff; }

.artifact-effects-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }

.artifact-effect-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #151b26;
  border: 1px solid #222c3f;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 0.74rem;
}

.artifact-effect-item.is-changed { border-color: rgba(192, 132, 252, 0.65); background: rgba(192, 132, 252, 0.14); }
.artifact-effect-name { color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artifact-effect-lv { font-weight: 900; color: var(--gr-purple); white-space: nowrap; }

.artifact-crystals-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.crystal-card { background: #151b26; border: 1px solid #242f44; border-radius: 9px; padding: 8px; }
.crystal-card.is-changed { border-color: rgba(0, 212, 255, 0.6); background: rgba(0, 212, 255, 0.08); }
.crystal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.crystal-title { font-size: 0.72rem; font-weight: 800; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crystal-lv { font-size: 0.68rem; font-weight: 900; color: var(--gr-sky); }
.crystal-opts { font-size: 0.67rem; color: #94a3b8; line-height: 1.4; }

/* 6-4. 유니온 패널 */
.union-summary-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.union-stat-tile { background: #151b26; border: 1px solid #242f44; border-radius: 10px; padding: 14px 16px; }
.union-stat-tile.is-changed { border-color: rgba(0, 212, 255, 0.65); background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, #151b26 100%); }
.union-stat-tile .u-label { display: block; font-size: 0.74rem; color: var(--gr-muted); margin-bottom: 5px; }
.union-stat-tile .u-val { font-size: 1.15rem; font-weight: 900; color: #ffffff; }
.union-stat-tile .u-diff { display: inline-block; margin-left: 6px; font-size: 0.78rem; font-weight: 800; color: var(--gr-emerald); }

.panel-empty-msg { text-align: center; padding: 24px 12px; font-size: 0.82rem; color: #64748b; }

/* 7. 상세 내역 & 장비 비교 모달 */
.growth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 15, 0.78);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.growth-modal-box {
  width: 100%;
  max-width: 780px;
  max-height: 86vh;
  background: #151a25;
  border: 1px solid #2e3b54;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.65);
}

.equip-inspect-box { max-width: 700px; }

.growth-modal-header {
  flex-shrink: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #242f44;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.growth-modal-title {
  margin: 0 0 3px;
  font-size: 1.08rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 7px;
}
.growth-modal-sub { margin: 0; font-size: 0.79rem; color: var(--gr-muted); }

.btn-modal-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1e2636;
  border: 1px solid #32405a;
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}
.btn-modal-close:hover { background: #2b364d; color: #ffffff; }

.modal-cat-tabs {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  min-height: 54px;
  box-sizing: border-box;
  border-bottom: 1px solid #20293a;
  background: #11151f;
  overflow-x: auto;
  overflow-y: hidden;
}

.btn-modal-tab {
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  margin: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.btn-modal-tab:hover { color: #ffffff; background: rgba(255, 255, 255, 0.05); }
.btn-modal-tab.active { background: rgba(255, 123, 84, 0.18); color: #ff9a76; border-color: rgba(255, 123, 84, 0.48); }

.growth-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 모달 내부 모든 블록(장비 비교 카드, 아코디언, 상세 내역 등)이 세로로 찌그러지지 않도록 고정 */
.growth-modal-body > * {
  flex-shrink: 0;
}

.diff-group-section h4 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 900;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.diff-row-card {
  background: #10141e;
  border: 1px solid #232e42;
  border-radius: 11px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.diff-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.diff-slot-title { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 900; color: #ffffff; }
.diff-slot-title img { width: 26px; height: 26px; object-fit: contain; }
.diff-detail-list { margin: 0; padding-left: 16px; font-size: 0.81rem; color: #cbd5e1; line-height: 1.6; }

.inspect-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inspect-card { background: #10141e; border: 1px solid #242f44; border-radius: 12px; padding: 14px; }
.inspect-card h5 { margin: 0 0 10px; font-size: 0.82rem; color: var(--gr-muted); }
.inspect-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.inspect-item-head img { width: 38px; height: 38px; object-fit: contain; image-rendering: pixelated; }

.inspect-opt-group {
  border-top: 1px solid #1f293b;
  padding-top: 8px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.inspect-diff-highlight {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 0.8rem;
  color: #bae6fd;
}

.inspect-diff-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: #67e8f9;
}

/* ==========================================================================
   반응형 미디어 쿼리 (태블릿 & 모바일)
   ========================================================================== */
@media (max-width: 1120px) {
  .char-hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .history-charts-row { grid-template-columns: 1fr; }
  .growth-chart-wrapper { height: 225px; }
  .symbol-cards-grid { grid-template-columns: 1fr; }
  .artifact-crystals-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .growth-page-container { padding: 14px 12px 48px; }
  .growth-search-panel { padding: 16px; }
  .growth-search-form { max-width: none; }
  .mobile-side-switch { display: inline-flex; }
  .compare-columns-header { grid-template-columns: 1fr; gap: 8px; }
  .compare-split-grid { grid-template-columns: 1fr; gap: 10px; }
  .mobile-col-tag { display: inline-block; }
  .growth-compare-sections.view-past .col-live { display: none; }
  .growth-compare-sections.view-live .col-past { display: none; }
  .symbol-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inspect-split-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .growth-main-title { font-size: 1.3rem; }
  .ingame-equip-board { gap: 5px; }
  .slot-item-img { width: 29px; height: 29px; margin-bottom: 5px; }
  .slot-short-label, .slot-bottom-diff-bar { font-size: 0.52rem; }
  .slot-star-badge { font-size: 0.56rem; }
  .slot-pot-badge { font-size: 0.5rem; padding: 1px 2.5px; }
  .symbol-cards-grid,
  .artifact-effects-list,
  .artifact-crystals-grid,
  .union-summary-box { grid-template-columns: 1fr; }
  .char-hero-card { padding: 16px; }
  .char-avatar-box { width: 96px; height: 96px; }
  .char-avatar-img { width: 96px; height: 96px; transform: scale(2.55); transform-origin: 50% 56%; }
  .res-char-name { font-size: 1.25rem; }
  .col-header-card { flex-wrap: wrap; }
}

/* ==========================================================================
   개별 장비 인게임 스타일 비교 카드 + 하단 접이식 요약 아코디언
   ========================================================================== */
.equip-inspect-box {
  max-width: 880px;
}

.inspect-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

/* 변형된 메이플 레코드 전용 인게임 스타일 아이템 카드 */
.ig-item-card {
  background: linear-gradient(180deg, #121722 0%, #0d1119 100%);
  border: 1px solid #263248;
  border-top: 3px solid #475569;
  border-radius: 13px;
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
  min-width: 0;
}

.ig-item-card.ig-grade-l { border-top-color: #22c55e; }
.ig-item-card.ig-grade-u { border-top-color: #eab308; }
.ig-item-card.ig-grade-e { border-top-color: #a855f7; }
.ig-item-card.ig-grade-r { border-top-color: #38bdf8; }

.ig-item-card.is-empty-item {
  justify-content: center;
  min-height: 220px;
  border-style: dashed;
}

/* 1) 카드 최상단 시점 & 등급 바 */
.ig-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ig-period-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.ig-period-pill.past {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.ig-period-pill.live {
  background: rgba(255, 123, 84, 0.16);
  color: #ff9a76;
  border: 1px solid rgba(255, 123, 84, 0.36);
}

.ig-grade-pill {
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 5px;
}

.ig-grade-pill.ig-grade-l { background: rgba(34, 197, 94, 0.16); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.35); }
.ig-grade-pill.ig-grade-u { background: rgba(234, 179, 8, 0.16); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.35); }
.ig-grade-pill.ig-grade-e { background: rgba(168, 85, 247, 0.16); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }
.ig-grade-pill.ig-grade-r { background: rgba(56, 189, 248, 0.16); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.ig-grade-pill.ig-grade-n { background: rgba(148, 163, 184, 0.1); color: #94a3b8; }

/* 2) 수평형 아이템 히어로 블록 (아이콘 좌 + 이름/REQ Lv/부위 칩 우) */
.ig-hero-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(22, 29, 43, 0.72);
  border: 1px solid #222d42;
}

.ig-icon-frame {
  width: 58px;
  height: 58px;
  border-radius: 11px;
  background: radial-gradient(circle at 50% 45%, #243047 0%, #0c1018 100%);
  border: 1.5px solid #33415c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ig-icon-frame.ig-grade-l { border-color: rgba(34, 197, 94, 0.7); box-shadow: inset 0 0 12px rgba(34, 197, 94, 0.16); }
.ig-icon-frame.ig-grade-u { border-color: rgba(234, 179, 8, 0.7); box-shadow: inset 0 0 12px rgba(234, 179, 8, 0.16); }
.ig-icon-frame.ig-grade-e { border-color: rgba(168, 85, 247, 0.7); box-shadow: inset 0 0 12px rgba(168, 85, 247, 0.16); }
.ig-icon-frame.ig-grade-r { border-color: rgba(56, 189, 248, 0.7); box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.16); }

.ig-icon-frame img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}

.ig-hero-info {
  min-width: 0;
  flex: 1;
}

.ig-item-title {
  margin: 0 0 6px;
  font-size: 0.96rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  word-break: keep-all;
}

.ig-scroll-plus {
  color: #7dd3fc;
  font-weight: 900;
  margin-left: 3px;
}

.ig-meta-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.ig-chip {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  background: #141b29;
  color: #cbd5e1;
  border: 1px solid #2a3750;
}

.ig-chip.req-lv {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.08);
}

.ig-chip.hammer {
  color: #fde047;
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.1);
}

.ig-chip.amazing {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.12);
}

/* 3) 세그먼트 스타포스 스트립 */
.ig-star-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #0b0f17;
  border: 1px solid #1f2a3e;
}

.ig-star-rows {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ig-star-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ig-star-cluster {
  display: inline-flex;
  align-items: center;
  gap: 1.5px;
}

.ig-star-dot {
  font-size: 0.68rem;
  line-height: 1;
  color: #334155;
}

.ig-star-dot.filled {
  color: #fbbf24;
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.45);
}

.ig-star-dot.filled.amazing {
  color: #38bdf8;
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
}

.ig-star-count-pill {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 900;
  color: #fde047;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.34);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* 4) 스탯 분해 보드 */
.ig-stat-board {
  background: #0b0f17;
  border: 1px solid #1e283b;
  border-radius: 10px;
  padding: 9px 11px;
}

.ig-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 7px;
  margin-bottom: 6px;
  border-bottom: 1px solid #1b2436;
}

.ig-stat-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
}

.ig-stat-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.64rem;
  font-weight: 800;
}

.st-c-base { color: #e2e8f0; }
.st-c-add { color: #4ade80; }
.st-c-etc { color: #a78bfa; }
.st-c-star { color: #fbbf24; }
.st-c-exc { color: #fb7185; }

.ig-stat-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ig-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 2.5px 6px;
  border-radius: 6px;
  font-size: 0.76rem;
  line-height: 1.35;
}

.ig-stat-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.ig-stat-row.is-stat-diff {
  background: rgba(0, 212, 255, 0.12);
  box-shadow: inset 2px 0 0 #00d4ff;
}

.ig-stat-name {
  color: #cbd5e1;
  font-weight: 700;
  white-space: nowrap;
}

.ig-stat-val-wrap {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ig-stat-total {
  color: #67e8f9;
  font-weight: 900;
}

.ig-stat-break {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
}

.ig-scroll-meta-line {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed #222e44;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

/* 5) 잠재능력 · 에디셔널 서브 카드 */
.ig-pot-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ig-pot-card {
  background: #0b0f17;
  border: 1px solid #1f2a3e;
  border-left: 3px solid #475569;
  border-radius: 9px;
  padding: 8px 10px;
}

.ig-pot-card.ig-grade-l { border-left-color: #22c55e; }
.ig-pot-card.ig-grade-u { border-left-color: #eab308; }
.ig-pot-card.ig-grade-e { border-left-color: #a855f7; }
.ig-pot-card.ig-grade-r { border-left-color: #38bdf8; }

.ig-pot-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.ig-grade-sq {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 900;
  color: #0b0f17;
  flex-shrink: 0;
}

.ig-grade-sq.ig-grade-l { background: #22c55e; }
.ig-grade-sq.ig-grade-u { background: #eab308; }
.ig-grade-sq.ig-grade-e { background: #a855f7; color: #ffffff; }
.ig-grade-sq.ig-grade-r { background: #38bdf8; }
.ig-grade-sq.ig-grade-n { background: #475569; color: #e2e8f0; }

.ig-pot-label {
  font-size: 0.74rem;
  font-weight: 900;
}
.ig-pot-label.ig-grade-l { color: #4ade80; }
.ig-pot-label.ig-grade-u { color: #facc15; }
.ig-pot-label.ig-grade-e { color: #c084fc; }
.ig-pot-label.ig-grade-r { color: #38bdf8; }
.ig-pot-label.ig-grade-n { color: #64748b; }

.ig-pot-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.76rem;
  color: #e2e8f0;
  font-weight: 600;
}

.ig-pot-line {
  padding: 1.5px 5px;
  border-radius: 4px;
}

.ig-pot-line.is-opt-diff {
  background: rgba(0, 212, 255, 0.14);
  color: #e0f2fe;
}

/* 소울 적용 + 소울 잠재능력 카드 (무기 에디셔널 하단) */
.ig-soul-section {
  background: #0b0f17;
  border: 1px solid #1f2a3e;
  border-left: 3px solid #eab308;
  border-radius: 9px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ig-soul-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ig-soul-name {
  font-size: 0.76rem;
  font-weight: 900;
  color: #facc15;
  line-height: 1.35;
}

.ig-soul-opt {
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
  padding: 1.5px 5px;
  border-radius: 4px;
}

.ig-soul-opt.is-opt-diff {
  background: rgba(0, 212, 255, 0.14);
  color: #e0f2fe;
}

.ig-soul-pot-wrap {
  padding-top: 8px;
  border-top: 1px dashed #222e44;
}

.ig-pot-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-left: 4px;
}

/* 익셉셔널 강화 카드 (장신구 에디셔널 하단 - 빨간색) */
.ig-exc-card {
  background: #0b0f17;
  border: 1px solid rgba(239, 68, 68, 0.32);
  border-left: 3px solid #ef4444;
  border-radius: 9px;
  padding: 8px 10px;
}

.ig-exc-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.ig-exc-sq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 17px;
  padding: 0 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  border: 1px solid rgba(252, 165, 165, 0.55);
  font-size: 0.62rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.ig-exc-label {
  font-size: 0.76rem;
  font-weight: 900;
  color: #f87171;
}

/* ==========================================================================
   하단 축소형 요약 정보 아코디언 (기본 접힘)
   ========================================================================== */
.inspect-summary-accordion {
  flex-shrink: 0;
  background: #0f141e;
  border: 1px solid #253147;
  border-radius: 11px;
  overflow: hidden;
}

.inspect-summary-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  color: #cbd5e1;
  font-family: inherit;
  transition: background-color 0.15s ease;
}

.inspect-summary-toggle:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
}

.inspect-summary-toggle-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.inspect-summary-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #e2e8f0;
}

.inspect-summary-hint {
  font-size: 0.71rem;
  color: #64748b;
}

.inspect-summary-chevron {
  font-size: 0.72rem;
  font-weight: 800;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.inspect-summary-panel {
  border-top: 1px solid #1e283b;
  padding: 12px 14px;
  background: #0b0f17;
}

.inspect-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.inspect-mini-summary-card {
  background: #121722;
  border: 1px solid #222d42;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.inspect-mini-summary-card h5 {
  margin: 0 0 7px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #94a3b8;
}

.inspect-mini-row {
  border-top: 1px solid #1d2638;
  padding-top: 6px;
  margin-top: 6px;
}

.inspect-mini-row:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.inspect-diff-highlight {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 0.8rem;
  color: #bae6fd;
}

.inspect-diff-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: #67e8f9;
}

@media (max-width: 780px) {
  .inspect-split-grid,
  .inspect-summary-grid {
    grid-template-columns: 1fr;
  }
}