/* 전직·혈맹 트리 그림판 — 라이트 모드에서도 어둡다 */
.treepanel {
  --bg:#1c1c1f; --surface:#31313c; --surface-inner:#282830; --line:#424254;
  --fg:#fff; --fg-2:#9e9eb1; --fg-meta:#9e9eb1; --pas:#e4b45a;
  --tt-ok:#4cc98a; --tt-eff:#aab4ff; --tree-bg:#0d0c0a; --tree-line:#c4c4cc; --tree-outline:#000;
  position: relative; max-width: 100%; margin-top: 10px; color: var(--fg);
}
.treebox { position: relative; width: min(675px, 100%); aspect-ratio: 1; margin: 0 auto; overflow: hidden; background: var(--tree-bg); }
.tree-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tree-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.tree-lines .lo { stroke: var(--tree-outline); stroke-width: 5px; }
.tree-lines .li { stroke: var(--tree-line); stroke-width: 2.5px; }
.tree-lines line { vector-effect: non-scaling-stroke; stroke-linecap: round; }
.tn { position: absolute; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: none; }
.tn-s, .tn-j { z-index: 2; }
.tn-st { pointer-events: auto; border-radius: 50%; }
.tn:disabled { cursor: default; }
.tn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 50%; }
.tn-ico { position: absolute; inset: 18.75%; width: 62.5%; height: 62.5%; border-radius: 50%; object-fit: cover; pointer-events: auto; }
.tn-fr { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tn-ph { position: absolute; inset: 18.75%; border-radius: 50%; background: var(--surface-inner); pointer-events: auto; }
.tn-noframe { border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: none) {
  .tn::after { content: ''; position: absolute; inset: 10%; border-radius: 50%; pointer-events: auto; }
}
.tree-tt { position: absolute; max-width: 300px; pointer-events: none; z-index: 3; border: 1px solid var(--line); }
.tree-tt[hidden] { display: none; }
/* 인게임식 호버 카드: 제목 띠(가운데 이름, 오른쪽 노드 아이콘) · 전직/캐릭터(초록) · 효과(파랑) · 부가 설명(회색) · 영어 이름 */
.tree-tt { text-align: left; }
.tree-tt .tt-hd { display: flex; align-items: center; justify-content: center; position: relative; min-height: 44px; padding: 8px 52px; text-align: center; color: var(--pas); }
.tree-tt .tt-ico { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.tree-tt .tt-bd { padding: 8px 12px; }
.tree-tt .tt-kv { color: var(--fg-meta); }
.tree-tt .tt-kv span { color: var(--tt-ok); }
.tree-tt .tt-last { margin-bottom: 8px; }
.tree-tt .tt-eff { color: var(--tt-eff); font-weight: 700; }
.tree-tt .tt-rem { color: var(--fg-meta); font-size: 12.5px; }
.tree-tt .tt-en { padding: 0 12px 8px; text-align: center; font-variant: small-caps; letter-spacing: .04em; color: var(--fg-meta); }
