:root {
  --bg: #0e1014;
  --bg-2: #15181f;
  --bg-3: #1c2029;
  --line: #2a2f3a;
  --text: #e6e3da;
  --muted: #9aa0ad;
  --gold: #d7a842;
  --gold-2: #f0c866;
  --alliance: #4f8df7;
  --horde: #e0493f;
  --green: #4fc07a;
  --yellow: #e7c74c;
  --orange: #e78b3a;
  --grey: #7c8390;
  --new: #a86cf3;
  --radius: 10px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; background: var(--bg-3); padding: 1px 6px; border-radius: 5px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.8rem; } h2 { font-size: 1.35rem; color: var(--gold); margin-top: 1.6em; } h3 { font-size: 1.1rem; }
p { margin: .4em 0 .9em; }
.muted { color: var(--muted); }
.small { font-size: .86em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }

/* ---- layout ---- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
header.top { position: sticky; top: 0; z-index: 20; background: rgba(14,16,20,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 18px; height: 56px; }
.brand { font-weight: 800; letter-spacing: .3px; color: var(--gold-2); font-size: 1.1rem; white-space: nowrap; }
.brand small { color: var(--muted); font-weight: 500; margin-left: 6px; }
nav.main { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
nav.main a { color: var(--text); padding: 7px 11px; border-radius: 8px; white-space: nowrap; font-size: .95rem; }
nav.main a:hover { background: var(--bg-3); text-decoration: none; }
nav.main a.active { background: var(--bg-3); color: var(--gold-2); }
.level-box { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .85rem; color: var(--muted); }
.level-box input { width: 64px; padding: 5px 8px; font-weight: 700; color: var(--gold-2); text-align: center; }
.level-box select { padding: 5px 6px; font-size: .85rem; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { display: inline-block; font-size: .78rem; padding: 1px 7px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag b { color: var(--text); font-weight: 700; }
.tag.primary { border-color: var(--gold); color: var(--gold-2); }
.tag.primary b { color: var(--gold-2); }
.tag.hasboss { box-shadow: inset 0 -2px 0 var(--orange); }
.tag.lg { font-size: .9rem; padding: 4px 10px; }
.tag.dim { opacity: .45; }
.tag .arch { color: var(--muted); font-weight: 500; }
.tag.primary .arch { color: var(--gold-2); }
.cont { display: inline-block; font-size: .7rem; padding: 0 5px; margin-left: 4px; border-radius: 4px; vertical-align: 1px; background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--line); }
.cont.EK { color: #d9a66b; border-color: rgba(217,166,107,.4); }
.cont.KAL { color: #7fc48a; border-color: rgba(127,196,138,.4); }
.cont.ISLE { color: #6ab0de; border-color: rgba(106,176,222,.4); }
.q2 { color: #1eff00; } .q3 { color: #0070dd; } .q4 { color: #a335ee; } .q5 { color: #ff8000; }
.loot-list { display: grid; gap: 4px; font-size: .9rem; }
.loot-list .row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
@media (max-width: 760px) { .level-box span { display: none; } .level-box input { width: 56px; } header.top .wrap { gap: 10px; } }
.faction-toggle { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.faction-toggle button { background: transparent; color: var(--muted); border: 0; padding: 6px 10px; cursor: pointer; font: inherit; font-size: .85rem; }
.faction-toggle button.on.A { background: var(--alliance); color: #fff; }
.faction-toggle button.on.H { background: var(--horde); color: #fff; }
.faction-toggle button.on.AH { background: var(--bg-3); color: var(--text); }
main { padding: 26px 0 60px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 24px 0 40px; }
footer .wrap { display: grid; gap: 6px; }

/* ---- components ---- */
.hero { padding: 34px 0 10px; }
.hero h1 { font-size: 2.3rem; }
.hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 820px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.card h3 { margin-bottom: .3em; }
.card.link { display: block; color: inherit; transition: border-color .15s, transform .15s; }
.card.link:hover { border-color: var(--gold); text-decoration: none; transform: translateY(-1px); }
.badge { display: inline-block; font-size: .74rem; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); vertical-align: middle; margin-left: 4px; }
.badge.A { border-color: var(--alliance); color: var(--alliance); }
.badge.H { border-color: var(--horde); color: var(--horde); }
.badge.AH { border-color: var(--grey); color: var(--muted); }
.badge.new { border-color: var(--new); color: var(--new); }
.badge.raid { border-color: var(--orange); color: var(--orange); }
.badge.att { border-color: var(--yellow); color: var(--yellow); }
.badge.cls { border-color: #6ab0de; color: #6ab0de; }
.badge.ok { border-color: var(--green); color: var(--green); }
.badge.pre { border-color: var(--yellow); color: var(--yellow); background: rgba(231,199,76,.1); }
.badge.lock { border-color: var(--grey); color: var(--grey); }
.badge.tmp { border-color: rgba(224,73,63,.5); color: var(--horde); font-size: .68rem; }
.badge.now { background: var(--green); color: #06210f; border-color: var(--green); font-weight: 700; }
.badge.soon { border-color: var(--gold); color: var(--gold-2); }

/* ---- 지금 할 일 / 레벨 중심 UI ---- */
.level-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 6px 0 20px; }
.level-hero .big { font-size: 1.5rem; font-weight: 800; }
.level-hero .big b { color: var(--gold-2); }
.level-hero input { width: 90px; font-size: 1.2rem; font-weight: 800; text-align: center; color: var(--gold-2); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { background: var(--bg-3); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 4px 11px; cursor: pointer; font: inherit; font-size: .85rem; }
.quick button:hover { border-color: var(--gold); }
.todo { display: grid; gap: 10px; }
.todo .item { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: inherit; }
.todo .item:hover { border-color: var(--gold); text-decoration: none; }
.todo .item .lv { font-weight: 800; color: var(--gold-2); font-size: 1.05rem; }
.todo .item .lv small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
.todo .item.now { border-color: var(--green); }
.todo .item.past { opacity: .55; }
.stat-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: inherit; display: block; }
.stat:hover { border-color: var(--gold); text-decoration: none; }
.stat .k { color: var(--muted); font-size: .82rem; }
.stat .v { font-size: 1.25rem; font-weight: 800; color: var(--gold-2); }
.stat .v small { font-size: .8rem; color: var(--muted); font-weight: 500; margin-left: 4px; }

/* ---- 퀘스트 카드 ---- */
.qlist { display: grid; gap: 10px; }
.qcard { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.qcard.haspre { border-left: 3px solid var(--yellow); }
.qcard.locked { opacity: .6; }
.qhead { display: flex; gap: 12px; align-items: flex-start; }
.qlv { flex: 0 0 auto; min-width: 72px; text-align: center; background: var(--bg-3); border-radius: 8px; padding: 6px 8px; line-height: 1.2; font-size: .8rem; color: var(--muted); }
.qlv b { display: block; font-size: 1.25rem; color: var(--gold-2); }
.qlv.off b { color: var(--grey); }
.qlv small { display: block; font-size: .72rem; }
.qtitle { flex: 1; min-width: 0; line-height: 1.5; }
.qtitle > b { font-size: 1.02rem; }
.qrows { display: grid; gap: 4px; margin-top: 8px; font-size: .93rem; }
.qrow { display: grid; grid-template-columns: 62px 1fr; gap: 8px; }
.qk { color: var(--muted); font-size: .82rem; padding-top: 2px; }
.prereq { margin-top: 10px; background: rgba(231,199,76,.07); border: 1px solid rgba(231,199,76,.3); border-radius: 8px; padding: 10px 12px; }
.prereq-title { color: var(--yellow); font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.prereq ol { margin: 0; padding-left: 20px; }
.prereq li { margin: 4px 0; }
.prereq .locked { opacity: .6; }
.prereq li.target { color: var(--gold-2); list-style: '→ '; }
.qfoot { margin-top: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 12px; }
.filters .pill { padding: 4px 11px; font-size: .86rem; }

/* ---- 던전 목록 (단일 목록) ---- */
.dlist { display: grid; gap: 8px; }
.drow { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: inherit; }
.drow:hover { border-color: var(--gold); text-decoration: none; }
.drow.now { border-color: var(--green); background: rgba(79,192,122,.05); }
.drow.past { opacity: .5; }
.drow .range { font-weight: 800; color: var(--gold-2); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.drow .range small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
.drow .nm b { font-size: 1.02rem; }
.drow .cnt { text-align: right; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.drow .cnt b { color: var(--text); }
@media (max-width: 640px) { .drow { grid-template-columns: 80px 1fr; } .drow .cnt { grid-column: 1 / -1; text-align: left; } .qrow { grid-template-columns: 1fr; gap: 0; } .todo .item { grid-template-columns: 70px 1fr; } }
.summary-bar { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; margin: 6px 0 14px; }

/* ---- 동선 ---- */
ol.route { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: rz; }
.route-zone { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; counter-increment: rz; }
.route-zh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 1.02rem; margin-bottom: 6px; }
.route-zh::before { content: counter(rz); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #1a1405; font-weight: 800; font-size: .85rem; margin-right: 4px; }
.route-stops { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.route-stops > li { padding-left: 4px; }
.route-stops > li::marker { color: var(--gold-2); font-weight: 700; }
.route-chain { margin-top: 3px; padding-left: 8px; border-left: 2px solid rgba(231,199,76,.5); line-height: 1.7; }
.route-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); gap: 16px; align-items: start; }
@media (max-width: 960px) { .route-wrap { grid-template-columns: 1fr; } }
.map-panel { position: sticky; top: 64px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.map-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wmap { position: relative; width: 100%; aspect-ratio: 1002 / 668; background: #0d0b08; border-radius: 8px; overflow: hidden; user-select: none; }
.wmap img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wmap.noimg::before { content: '지도 이미지를 불러오지 못했습니다'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.wmap .lines, .wmap .lines svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wmap .lines polyline { fill: none; stroke: #f0c866; stroke-width: 2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; opacity: .9; }
.mk { position: absolute; transform: translate(-50%, -50%); display: inline-grid; place-items: center; box-sizing: border-box; font-weight: 800; line-height: 1; cursor: default; }
.mk.st { width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #1a1405; font-size: .72rem; border: 2px solid #1a1405; box-shadow: 0 0 0 1px rgba(255,255,255,.4); z-index: 3; }
.mk.st.later { background: #2a2416; color: var(--gold-2); border-color: var(--gold); }
.route-later { margin-top: 3px; padding-left: 8px; border-left: 2px dashed rgba(231,199,76,.5); }
.mk.fm { width: 10px; height: 10px; border-radius: 50%; background: #58d68d; border: 1.5px solid #0b2e18; box-shadow: 0 0 0 1px rgba(255,255,255,.35); z-index: 2; }
.mk.fm.H { background: #e67e5a; border-color: #3a140a; }
.mk.port { padding: 1px 5px; border-radius: 4px; background: #3d8fd1; color: #fff; font-size: .68rem; border: 1px solid #fff3; z-index: 3; }
.route-transfer { list-style: none; background: rgba(61,143,209,.1); border: 1px dashed #3d8fd1; border-radius: var(--radius); padding: 8px 12px; }
.route-exit { margin-top: 6px; padding-left: 4px; }
.mk.ent { padding: 1px 5px; border-radius: 4px; background: #d04545; color: #fff; font-size: .68rem; border: 1px solid #fff3; z-index: 3; }
.mk.demo { position: static; transform: none; display: inline-grid; vertical-align: middle; margin: 0 2px; }
.map-legend { margin-top: 6px; line-height: 1.8; }
.wmap-note { position: absolute; left: 6px; bottom: 6px; right: 6px; font-size: .72rem; color: #fff; background: rgba(0,0,0,.6); padding: 3px 6px; border-radius: 4px; }
.route-zh { cursor: pointer; }
.route-q { color: var(--gold-2); }
.route-giver { margin-top: 2px; }
.route-giver .npc { color: var(--text); font-weight: 600; }
.summary-bar b { color: var(--gold-2); }
.badge.N { background: var(--new); color: #fff; border-color: var(--new); }
.badge.C { background: var(--yellow); color: #221; border-color: var(--yellow); }
.badge.M { background: #6ab0de; color: #112; border-color: #6ab0de; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pill { background: var(--bg-3); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 5px 12px; cursor: pointer; font: inherit; font-size: .9rem; }
.pill.on, .pill:hover { border-color: var(--gold); color: var(--gold-2); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 18px; }
input[type=text], input[type=number], input[type=search], select {
  background: var(--bg-3); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: .95rem; min-width: 0;
}
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
button.btn { background: var(--gold); color: #1a1405; border: 0; border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }
button.btn.ghost { background: var(--bg-3); color: var(--text); border: 1px solid var(--line); font-weight: 500; }
button.btn:disabled { opacity: .5; cursor: default; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .82rem; letter-spacing: .3px; text-transform: uppercase; }
tr:hover td { background: rgba(255,255,255,.02); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.lvl { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lvlbar { position: relative; height: 8px; background: var(--bg-3); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.lvlbar span { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 999px; }
.lvlbar.me::after { content: ""; position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fff; left: var(--me); }
.way { font-family: ui-monospace, Consolas, monospace; font-size: .85em; background: var(--bg-3); padding: 2px 7px; border-radius: 6px; cursor: pointer; white-space: nowrap; border: 1px solid var(--line); color: var(--text); }
.way:hover { border-color: var(--gold); }
.note { background: rgba(215,168,66,.08); border: 1px solid rgba(215,168,66,.35); border-radius: var(--radius); padding: 12px 16px; margin: 14px 0; }
.note.warn { background: rgba(224,73,63,.08); border-color: rgba(224,73,63,.4); }
.note.info { background: rgba(79,141,247,.08); border-color: rgba(79,141,247,.4); }
details { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; margin: 6px 0; background: var(--bg-2); }
details summary { cursor: pointer; color: var(--gold-2); white-space: nowrap; }
td details { min-width: 150px; }
details[open] summary { margin-bottom: 6px; }
.chain li { margin: 3px 0; }
.two-col { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: .95rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: transparent; color: var(--muted); border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font: inherit; font-size: 1rem; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--gold-2); border-bottom-color: var(--gold); }
.tabpane { display: none; } .tabpane.on { display: block; }
.empty { color: var(--muted); padding: 30px; text-align: center; }
.sr { position: absolute; left: -9999px; }
.step { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.step .range { font-weight: 800; color: var(--gold-2); font-size: 1.05rem; }
.step ul { margin: 4px 0; padding-left: 18px; }
.skill-chip { display: inline-block; min-width: 46px; text-align: center; font-weight: 700; border-radius: 6px; padding: 2px 6px; font-variant-numeric: tabular-nums; }
.skill-chip.orange { background: rgba(231,139,58,.2); color: var(--orange); }
.skill-chip.yellow { background: rgba(231,199,76,.18); color: var(--yellow); }
.skill-chip.green { background: rgba(79,192,122,.18); color: var(--green); }
.skill-chip.grey { background: rgba(124,131,144,.18); color: var(--grey); }
.skill-chip.red { background: rgba(224,73,63,.18); color: var(--horde); }

/* ---- talents ---- */
.class-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.class-picker button { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; cursor: pointer; font: inherit; }
.class-picker button img { width: 24px; height: 24px; border-radius: 5px; }
.class-picker button.on { border-color: var(--gold); color: var(--gold-2); }
.points-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 10px 0 16px; }
.points-bar .pts { font-size: 1.1rem; font-weight: 800; color: var(--gold-2); }
.trees { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .trees { grid-template-columns: repeat(3, 1fr); } }
.tree { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.tree h3 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tree h3 .tp { color: var(--gold-2); font-variant-numeric: tabular-nums; }
.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; position: relative; }
.tgrid .trow-label { grid-column: 1 / -1; font-size: .72rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 4px; margin-top: 2px; }
.talent { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 76px; padding: 4px 2px; border-radius: 8px; cursor: pointer; user-select: none; }
.talent:hover { background: rgba(255,255,255,.04); }
.talent img { width: 40px; height: 40px; border-radius: 7px; border: 2px solid #3a3f4a; display: block; }
.talent.open img { border-color: var(--green); }
.talent.maxed img { border-color: var(--gold-2); }
.talent.locked img { filter: grayscale(1) brightness(.55); border-color: #2a2f3a; }
.talent .rank { position: absolute; top: 30px; right: calc(50% - 26px); background: #000; color: var(--green); border: 1px solid #333; border-radius: 5px; font-size: .72rem; padding: 0 4px; font-variant-numeric: tabular-nums; }
.talent.maxed .rank { color: var(--gold-2); }
.talent .nm { font-size: .72rem; text-align: center; line-height: 1.2; color: var(--muted); max-width: 86px; }
.talent .diff { position: absolute; top: 0; left: calc(50% - 26px); font-size: .62rem; padding: 0 4px; border-radius: 4px; font-weight: 800; }
.talent .diff.new { background: var(--new); color: #fff; } .talent .diff.changed { background: var(--yellow); color: #221; } .talent .diff.moved { background: #6ab0de; color: #112; }
.tooltip { position: fixed; z-index: 50; max-width: 340px; background: #0b0d11; border: 1px solid var(--gold); border-radius: 8px; padding: 10px 12px; font-size: .88rem; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.tooltip h4 { margin: 0 0 4px; color: var(--gold-2); }
.tooltip .cur { color: var(--text); } .tooltip .nxt { color: var(--muted); margin-top: 6px; }
.tooltip .classic { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 6px; color: var(--muted); font-size: .82rem; }
.removed { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.removed b { color: var(--text); }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.share input { flex: 1; min-width: 240px; }
.perk-tree { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.perk { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.perk img { width: 40px; height: 40px; border-radius: 7px; }
.perk .nm { font-weight: 700; } .perk .ds { color: var(--muted); font-size: .88rem; }
.racial-row { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.racial-row img { width: 56px; height: 56px; border-radius: 8px; }
.ab { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; }
.ab img { width: 22px; height: 22px; border-radius: 4px; margin-top: 2px; }
.json { background: #0b0d11; border: 1px solid var(--line); border-radius: 8px; padding: 12px; max-height: 420px; overflow: auto; font-size: .8rem; white-space: pre; font-family: ui-monospace, Consolas, monospace; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--grey); margin-right: 6px; }
.status-dot.ok { background: var(--green); } .status-dot.bad { background: var(--horde); }
@media (max-width: 640px) {
  header.top .wrap { gap: 10px; } .brand small { display: none; }
  .hero h1 { font-size: 1.7rem; }
  .step { grid-template-columns: 1fr; gap: 4px; }
  th, td { padding: 7px 8px; }
}
