/* ═══════════════════════════════════════════════════════════════
   dex-layer.css — 도감 레이어 (public/js/dex-layer.js, 2026-10-09)
   넓은 화면: 오른쪽 패널 440px · 600px 이하: 아래에서 올라오는 시트(화면 88%)
   ═══════════════════════════════════════════════════════════════ */

.dex-layer { position: fixed; inset: 0; z-index: calc(var(--z-gnb) + 50); }   /* 헤더·지도 HUD(1000) 위, 알림(1100) 아래 */
.dex-layer[hidden] { display: none; }
.dex-layer__scrim { position: absolute; inset: 0; background: var(--scrim-a60); animation: dex-fade 0.2s ease; }
.dex-layer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-primary);
  box-shadow: var(--shadow-xl);
  animation: dex-in-right 0.22s cubic-bezier(.2, .8, .2, 1);
}
html.dex-layer-open { overflow: hidden; }

/* 붙는 패널 — 지도 화면(1024px+): 지도를 가리지 않고 오른쪽에, 막 없음 (지도 허브) */
.dex-layer.is-docked { inset: auto; top: var(--gnb-height); right: 0; bottom: 0; width: 440px; z-index: calc(var(--z-gnb) - 5); }
.dex-layer.is-docked .dex-layer__scrim { display: none; }
.dex-layer.is-docked .dex-layer__panel { width: 100%; box-shadow: var(--shadow-lg); animation: dex-in-right 0.18s ease; }
html.dex-docked .mp-wrapper { padding-right: 440px; }
html.dex-docked .mp-focus { right: 452px; }
html.has-dex-dock .mp-info-overlay { bottom: 72px; }

.dex-layer__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 52px;
  padding: 0 8px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-secondary);
}
.dex-layer__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--fs-18);
  cursor: pointer;
}
.dex-layer__icon-btn:hover { background: var(--overlay-a06); color: var(--text-primary); }
.dex-layer__icon-btn[hidden] { display: none; }
.dex-layer__trail {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: var(--fs-12);
  color: var(--text-muted);
  white-space: nowrap;
}
.dex-layer__trail .ph { flex-shrink: 0; font-size: var(--fs-11); }
.dex-layer__crumb { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dex-layer__crumb.is-current { color: var(--text-primary); font-weight: 600; flex-shrink: 0; max-width: 60%; }
.dex-layer__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 24px; outline: none; }
.dex-layer__loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px 0; color: var(--text-muted); font-size: var(--fs-13); }
.dex-spinner { width: 16px; height: 16px; border: 2px solid var(--overlay-a10); border-top-color: var(--color-accent); border-radius: 50%; animation: dex-spin 0.8s linear infinite; }

/* 머리 */
.dex-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.dex-head__img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  padding: 6px;
  object-fit: contain;
  background: var(--bg-body);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-lg);
}
.dex-head__img.is-empty { display: block; }
.dex-head__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dex-head__kind { font-size: var(--fs-12); font-weight: 600; color: var(--color-accent); }
.dex-head__name { margin: 0; font-size: var(--fs-20); font-weight: 700; line-height: 1.3; color: var(--text-primary); word-break: keep-all; }
.dex-head__sub { font-size: var(--fs-12); color: var(--text-muted); }
.dex-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.dex-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--overlay-a06);
  color: var(--text-secondary);
  font-size: var(--fs-11);
  font-weight: 600;
  white-space: nowrap;
}
.dex-tag.is-up { background: var(--color-up-a10); color: var(--color-up); }
.dex-tag.is-down { background: var(--color-down-a10); color: var(--color-down-strong); }
.dex-tag.is-info { background: var(--color-info-a10); color: var(--color-info); }

/* 칸 사이 선은 1px 틈 + 바탕색 (열 수가 바뀌어도 선이 어긋나지 않게) */
.dex-stats {
  display: grid;
  gap: 1px;
  margin: 0 0 6px;
  background: var(--border-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dex-stats--1 { grid-template-columns: 1fr; }
.dex-stats--2 { grid-template-columns: repeat(2, 1fr); }
.dex-stats--3 { grid-template-columns: repeat(3, 1fr); }
.dex-stats--4 { grid-template-columns: repeat(4, 1fr); }
.dex-stats > div { padding: 8px 6px; text-align: center; background: var(--bg-body); }
.dex-stats dt { font-size: var(--fs-11); color: var(--text-muted); }
.dex-stats dd { margin: 2px 0 0; font-family: var(--font-mono); font-size: var(--fs-14); font-weight: 700; color: var(--text-primary); }

/* 구획 */
.dex-sec { margin-top: 18px; }
.dex-sec__title { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: var(--fs-13); font-weight: 700; color: var(--text-primary); }
.dex-sec__count { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--color-accent); }
.dex-sec__desc { margin: -4px 0 8px; font-size: var(--fs-12); color: var(--text-muted); }
.dex-text { margin: 0; font-size: var(--fs-13); color: var(--text-secondary); line-height: 1.6; }
.dex-none { margin: 14px 0 0; font-size: var(--fs-12); color: var(--text-muted); }
.dex-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dex-opt { padding: 4px 9px; border-radius: var(--radius-pill); background: var(--overlay-a04); font-size: var(--fs-12); color: var(--text-secondary); }
.dex-opt b { font-family: var(--font-mono); color: var(--color-accent); }

.dex-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border-secondary); border-radius: var(--radius-lg); overflow: hidden; }
.dex-list > li + li { border-top: 1px solid var(--border-secondary); }
.dex-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--fs-13);
}
a.dex-row:hover { background: var(--overlay-a04); }
a.dex-row:hover .dex-row__name { color: var(--color-accent); }
.dex-row__img { width: 30px; height: 30px; flex-shrink: 0; object-fit: contain; border-radius: var(--radius-sm); background: var(--bg-body); }
.dex-row__img.is-empty { display: block; }
.dex-row__name { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dex-row__meta { font-size: var(--fs-12); color: var(--text-muted); white-space: nowrap; }
.dex-row__qty { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-13); color: var(--color-accent); }
.dex-row__map { margin-left: auto; color: var(--color-accent); font-size: var(--fs-15); }
.dex-row .dex-tag { flex-shrink: 0; }

.dex-actions {
  position: sticky;
  bottom: -24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px -18px -24px;
  padding: 12px 18px 16px;
  background: linear-gradient(transparent, var(--bg-surface) 30%);
}

/* 관계도 — 가운데 지금 엔티티, 둘레 이어진 것 (dex-layer.js graph) */
.dex-graph { margin: 4px 0 10px; padding: 6px 4px 8px; background: var(--bg-body); border: 1px solid var(--border-secondary); border-radius: var(--radius-lg); }
.dex-graph svg { display: block; width: 100%; height: auto; overflow: visible; }
.dex-graph__edge { stroke: var(--border-primary); stroke-width: 1.5; }
.dex-graph__center { fill: var(--color-accent); stroke: var(--color-accent-a30); stroke-width: 6; }
.dex-graph__node circle { fill: var(--bg-elevated); stroke-width: 2.5; transition: r 0.15s; }
.dex-graph__node text { fill: var(--text-secondary); font-size: var(--fs-11); }
.dex-graph__node:hover circle, .dex-graph__node:focus-visible circle { r: 9; }
.dex-graph__node:hover text, .dex-graph__node:focus-visible text { fill: var(--text-primary); }
.dex-graph__node:focus-visible { outline: none; }
.dex-graph__node--monster circle { stroke: var(--color-down); }
.dex-graph__node--item circle { stroke: var(--color-accent); }
.dex-graph__node--craft circle { stroke: var(--color-orange); }
.dex-graph__node--map circle { stroke: var(--color-info); }
.dex-graph__node--polymorph circle { stroke: var(--color-purple); }
.dex-graph__legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; font-size: var(--fs-11); color: var(--text-muted); }
.dex-graph__key::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; border: 2px solid; vertical-align: -1px; }
.dex-graph__key--monster::before { border-color: var(--color-down); }
.dex-graph__key--item::before { border-color: var(--color-accent); }
.dex-graph__key--craft::before { border-color: var(--color-orange); }
.dex-graph__key--map::before { border-color: var(--color-info); }
.dex-graph__key--polymorph::before { border-color: var(--color-purple); }

/* 사냥 팁 — 게임 규칙을 데이터에 맞춰 한 줄씩 (2026-10-09) */
.dex-tips { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.dex-tip { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: var(--radius-md); background: var(--overlay-a04); font-size: var(--fs-12); line-height: 1.55; color: var(--text-secondary); }
.dex-tip > .ph { flex-shrink: 0; margin-top: 2px; font-size: var(--fs-14); }
.dex-tip b { color: var(--text-primary); }
.dex-tip--accent { background: var(--color-accent-a05); }
.dex-tip--accent > .ph { color: var(--color-accent); }
.dex-tip--info > .ph { color: var(--color-info); }
.dex-tip--down > .ph { color: var(--color-down); }
.dex-tag.is-accent { background: var(--color-accent-a10); color: var(--color-accent); }
.dex-tag .ph { margin-right: 3px; font-size: var(--fs-11); }
.dex-desc { margin-top: 10px; padding: 10px 12px; border-left: 2px solid var(--border-primary); color: var(--text-muted); }
.dex-set .dex-text { margin-bottom: 8px; }
.dex-inline { color: var(--color-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dex-sec__desc a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.dex-sec__title .ph { color: var(--color-accent); }

/* 변신 속도 — 칸마다 따로 (11칸이라 마지막 줄이 비어도 회색 틈이 보이지 않게) */
.dex-speeds { gap: 6px; background: none; border: 0; overflow: visible; }
.dex-speeds > div { border: 1px solid var(--border-secondary); border-radius: var(--radius-md); }
.dex-diff { display: block; font-family: var(--font-mono); font-size: var(--fs-11); color: var(--text-muted); }
.dex-diff.is-up { color: var(--color-up); }
.dex-diff.is-down { color: var(--color-down); }
.dex-na { font-size: var(--fs-12); font-weight: 400; color: var(--text-muted); text-decoration: line-through; }
.dex-equip .dex-tag { height: 24px; }

/* 통합 검색 */
.dex-search { margin-bottom: 4px; }
.dex-search__results kbd {
  padding: 1px 6px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  color: var(--text-secondary);
}

/* 미리보기(Peek) — 이름 위에 마우스·길게 누르기 (dex-layer.js PEEK) */
.dex-peek {
  position: fixed;
  z-index: calc(var(--z-gnb) + 60);
  width: 280px;
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-size: var(--fs-12);
  color: var(--text-secondary);
  cursor: pointer;
  animation: dex-fade 0.12s ease;
}
.dex-peek[hidden] { display: none; }
.dex-peek__head { display: flex; gap: 10px; align-items: center; }
.dex-peek__img { width: 40px; height: 40px; flex-shrink: 0; padding: 3px; object-fit: contain; background: var(--bg-body); border: 1px solid var(--border-secondary); border-radius: var(--radius-md); }
.dex-peek__img.is-empty { display: block; }
.dex-peek__kind { display: block; font-size: var(--fs-11); font-weight: 600; color: var(--color-accent); }
.dex-peek__name { display: block; font-size: var(--fs-14); font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.dex-peek__facts { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; }
.dex-peek__fact { font-family: var(--font-mono); color: var(--text-primary); }
.dex-peek__fact em { margin-right: 4px; font-family: var(--font-ui); font-style: normal; color: var(--text-muted); }
.dex-peek__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.dex-peek__hint { display: flex; gap: 6px; margin: 8px 0 0; color: var(--text-secondary); }
.dex-peek__hint .ph { color: var(--color-accent); margin-top: 2px; }
.dex-peek__counts { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-secondary); color: var(--text-muted); }
.dex-peek__counts b { font-family: var(--font-mono); color: var(--color-accent); }
.dex-peek__foot { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin-top: 6px; font-size: var(--fs-11); color: var(--text-muted); }

/* ── 준비물 도크 (dex-plan.js) — 넓은 화면 왼쪽 아래, 600px 이하 하단 탭바 위 ── */
.dex-dock {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: calc(var(--z-gnb) - 10);
  width: min(360px, calc(100% - 32px));
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.dex-dock[hidden] { display: none; }
.dex-dock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: var(--text-primary);
  font: inherit;
  font-size: var(--fs-13);
  font-weight: 700;
  cursor: pointer;
}
.dex-dock__bar > .ph { color: var(--color-accent); font-size: var(--fs-18); }
.dex-dock__progress { flex: 1; height: 6px; border-radius: var(--radius-pill); background: var(--overlay-a06); overflow: hidden; }
.dex-dock__progress > span { display: block; width: var(--p, 0%); height: 100%; background: var(--color-up); transition: width 0.3s; }
.dex-dock__count { font-family: var(--font-mono); color: var(--color-accent); }
.dex-dock__caret { color: var(--text-muted); transition: transform 0.2s; }
.dex-dock.is-open .dex-dock__caret { transform: rotate(180deg); }
.dex-dock__panel { max-height: min(60vh, 460px); overflow-y: auto; padding: 0 12px 12px; border-top: 1px solid var(--border-secondary); }
.dex-dock__crafts { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 4px; }
.dex-dock__crafts a { color: inherit; text-decoration: none; }
.dex-dock__items { margin: 6px 0 0; padding: 0; list-style: none; }
.dex-dock__items li { display: flex; align-items: center; gap: 8px; min-height: 42px; border-bottom: 1px solid var(--border-secondary); }
.dex-dock__items img, .dex-dock__noimg { width: 26px; height: 26px; flex-shrink: 0; object-fit: contain; border-radius: var(--radius-sm); background: var(--bg-body); }
.dex-dock__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-13); font-weight: 600; color: var(--text-primary); text-decoration: none; }
.dex-dock__items li.is-done .dex-dock__name { color: var(--color-up); text-decoration: line-through; }
.dex-dock__qty { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-mono); font-size: var(--fs-12); color: var(--text-muted); }
.dex-dock__qty input {
  width: 46px;
  height: 26px;
  padding: 0 4px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  background: var(--bg-body);
  color: var(--text-primary);
  font: inherit;
  text-align: right;
}
.dex-dock__qty button, .dex-dock__del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--overlay-a04);
  color: var(--text-secondary);
  cursor: pointer;
}
.dex-dock__del { background: none; color: var(--text-muted); }
.dex-dock__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
@media (max-width: 600px) {
  .dex-dock { left: 8px; right: 8px; width: auto; bottom: calc(var(--bottom-nav-height) + 8px); }
}

/* '필요' 배지 — 준비물에 담은 아이템(.dex-needed)·그걸 떨어뜨리는 몬스터(.dex-source) 링크 뒤 */
.dex-needed::after, .dex-source::after {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-10);
  font-weight: 700;
  line-height: 16px;
  vertical-align: 1px;
  text-decoration: none;
}
.dex-needed::after { content: '필요'; background: var(--color-up-a10); color: var(--color-up); }
.dex-source::after { content: '재료'; background: var(--color-up-a10); color: var(--color-up); }
a.dex-row.dex-needed::after, a.dex-row.dex-source::after { margin-left: 0; }

/* 레이어를 여는 링크 — 페이지 안 이름 링크에 공통 표시 */
[data-dex] { cursor: pointer; }

@media (max-width: 600px) {
  .dex-layer__panel {
    top: auto;
    left: 0;
    width: 100%;
    height: 88dvh;
    border-left: 0;
    border-top: 1px solid var(--border-primary);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    animation-name: dex-in-up;
  }
  .dex-layer__body { padding: 14px 16px 20px; }
  .dex-actions { margin: 18px -16px -20px; padding: 12px 16px 16px; bottom: -20px; }
  .dex-head__name { font-size: var(--fs-18); }
}

@keyframes dex-fade { from { opacity: 0; } }
@keyframes dex-in-right { from { transform: translateX(24px); opacity: 0; } }
@keyframes dex-in-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes dex-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .dex-layer__scrim, .dex-layer__panel { animation: none; }
}

/* ─── 입력 없는 맞춤 (dex-prefs.js) ─────────────────────
   안내 칩(.dex-pref)은 레이어 착용 줄·목록 위 막대 둘 다. 최근 레벨대 카드는 노란 테두리, 착용 불가 장비는 흐리게 */
.dex-pref { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 8px 10px; border: 1px dashed var(--border-primary); border-radius: var(--radius-lg); font-size: var(--fs-12); color: var(--text-secondary); }
.dex-pref[hidden] { display: none; }
.dex-pref > .ph { font-size: var(--fs-15); color: var(--color-accent); }
.dex-pref b { color: var(--text-primary); }
.dex-pref__pick { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.dex-pref__btn { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 6px; background: none; border: 0; border-radius: var(--radius-sm); color: var(--text-muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dex-pref__btn:hover { color: var(--text-primary); }
.dex-pref__btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.dex-pref--class { margin: 0 0 10px; }
.dex-pref--class.is-ok { border-style: solid; border-color: var(--color-up-a30); }
.dex-pref--class.is-ok > .ph { color: var(--color-up); }
.dex-pref--class.is-no { border-style: solid; border-color: var(--color-down-a30); }
.dex-pref--class.is-no > .ph { color: var(--color-down); }
.dex-pref--bar { margin: 0 0 12px; }
.mo-card.dex-near { box-shadow: inset 0 0 0 1px var(--color-accent-a50); }
.it-card.dex-unwearable { opacity: 0.45; transition: opacity 0.15s; }
.it-card.dex-unwearable:hover, .it-card.dex-unwearable:focus-within { opacity: 1; }

/* 제작 상점 재료 비용 */
.dex-cost { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 6px; }
.dex-cost__adena { font-size: var(--fs-16); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.dex-cost__krw { font-size: var(--fs-14); color: var(--color-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.dex-cost__rate { font-size: var(--fs-11); color: var(--text-muted); }

/* 레이어 목록 안 맞춤 — 드랍 몬스터 중 최근 레벨대, 드랍 아이템 중 내 클래스가 못 끼는 장비 */
.dex-row.is-near { box-shadow: inset 2px 0 0 var(--color-accent); }
.dex-row.is-unwearable { opacity: 0.5; }
.dex-row.is-unwearable:hover, .dex-row.is-unwearable:focus-visible { opacity: 1; }

/* 마법 정보 표 (2026-10-09 마법 도감 — 레이어·상세 공용) */
.dex-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--border-secondary); border: 1px solid var(--border-secondary); border-radius: var(--radius-lg); overflow: hidden; }
.dex-facts > div { display: flex; gap: 8px; align-items: baseline; padding: 8px 10px; background: var(--bg-body); font-size: var(--fs-12); }
.dex-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dex-facts dt { flex-shrink: 0; color: var(--text-muted); }
.dex-facts dd { margin: 0; min-width: 0; color: var(--text-primary); font-weight: 600; }
@media (max-width: 480px) { .dex-facts { grid-template-columns: 1fr; } .dex-facts > div:last-child:nth-child(odd) { grid-column: auto; } }

/* 이번 주 많이 본 도감 (2026-10-09 W2-7 — 아이템·몬스터·마법 목록 위, components/dex-popular.php) */
.dex-popular { margin: 0 0 16px; }
.dex-popular__title { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: var(--fs-13); font-weight: 700; color: var(--text-primary); }
.dex-popular__title .ph { color: var(--color-accent); }
.dex-popular__list { display: flex; gap: 6px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.dex-popular__item { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 8px; border: 1px solid var(--border-secondary); border-radius: var(--radius-pill); background: var(--bg-surface); color: var(--text-primary); font-size: var(--fs-12); white-space: nowrap; text-decoration: none; }
.dex-popular__item:hover { border-color: var(--color-accent-a20); color: var(--color-accent); }
.dex-popular__item img { width: 22px; height: 22px; object-fit: contain; }
.dex-popular__rank { font-family: var(--font-mono); font-size: var(--fs-11); font-weight: 700; color: var(--color-accent); }
