/* 배틀포스트 와우 포에버 전투정보실 — 어두운 강철 + 금장 테마 (2026-11-11) */
:root {
  --bg: #07090d; --bg2: #0b0f16; --panel: #10151f; --panel2: #141b27; --line: #222b3a; --line2: #2e3a4e;
  --gold: #d9ad52; --gold2: #f6d68a; --gold3: #8a6a2c; --ember: #e0662d;
  --text: #e9e4d6; --muted: #8e97a8; --dim: #5f6879; --link: #7cc1ff;
  --alliance: #3d7fe0; --horde: #c8352f; --neutral: #8e97a8;
  --q-poor: #9d9d9d; --q-common: #ffffff; --q-uncommon: #1eff00; --q-rare: #0070dd; --q-epic: #a335ee; --q-legendary: #ff8000;
  --warrior: #c69b6d; --paladin: #f48cba; --hunter: #aad372; --rogue: #fff468; --priest: #ffffff; --shaman: #0070dd; --mage: #3fc7eb; --warlock: #8788ee; --druid: #ff7c0a;
  --r: 8px; --shadow: 0 10px 30px rgba(0,0,0,.45);
  --serif: "Noto Serif KR", "Cinzel", serif; --brand: "Cinzel", "Noto Serif KR", serif; --sans: "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.6 var(--sans); color: var(--text); background: var(--bg);
  background-image: radial-gradient(1200px 520px at 50% -180px, rgba(217,173,82,.13), transparent 70%),
                    radial-gradient(900px 600px at 100% 0, rgba(61,127,224,.06), transparent 60%);
  background-repeat: no-repeat; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #b3dbff; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.3; color: var(--gold2); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; font-weight: 900; }
h2 { font-size: 1.12rem; font-weight: 700; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
small, .small { font-size: .82rem; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--gold); color: #000; padding: 8px 14px; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
.wi { vertical-align: -3px; border-radius: 4px; border: 1px solid rgba(0,0,0,.6); box-shadow: 0 0 0 1px rgba(217,173,82,.25); }

/* ---------- 머리말 ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(7,9,13,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(217,173,82,.12), 0 8px 20px rgba(0,0,0,.35); }
.top-in { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.logo img { width: 38px; height: auto; filter: drop-shadow(0 2px 6px rgba(217,173,82,.35)); }
.logo-t { display: flex; flex-direction: column; line-height: 1.05; }
.logo-t b { font-family: var(--brand); font-weight: 800; font-size: 1.22rem; letter-spacing: .08em;
  background: linear-gradient(180deg, #fff2c6 0%, var(--gold2) 40%, var(--gold) 70%, #a37a2e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-t small { font-size: .7rem; color: var(--muted); letter-spacing: .04em; margin-top: 3px; }
.top-search { flex: 1; max-width: 460px; margin-left: auto; position: relative; display: flex; }
.top-search input { width: 100%; height: 40px; padding: 0 44px 0 14px; border-radius: 20px; border: 1px solid var(--line2); background: #0a0e15; color: var(--text); font: inherit; }
.top-search input:focus { border-color: var(--gold3); outline: none; box-shadow: 0 0 0 3px rgba(217,173,82,.15); }
.top-search button { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border: 0; border-radius: 16px; background: transparent; cursor: pointer; padding: 0; display: grid; place-items: center; }
.top-search .wi { box-shadow: none; border-radius: 50%; }
.lang { font: 700 .75rem var(--brand); letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line2); border-radius: 14px; padding: 4px 10px; }
.lang:hover { color: var(--gold2); border-color: var(--gold3); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line2); border-radius: 8px; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--gold2); content: ""; border-radius: 2px; }
.nav-toggle span { top: 19px; } .nav-toggle span::before { top: -6px; left: 0; right: 0; } .nav-toggle span::after { top: 6px; left: 0; right: 0; }
.gnb { border-top: 1px solid rgba(255,255,255,.04); }
.gnb-in { display: flex; align-items: center; gap: 4px; height: 44px; overflow-x: auto; scrollbar-width: none; }
.gnb-in::-webkit-scrollbar { display: none; }
.gnb a { color: var(--text); font-weight: 500; font-size: .92rem; padding: 6px 14px; border-radius: 6px; white-space: nowrap; position: relative; }
.gnb a:hover { color: var(--gold2); background: rgba(217,173,82,.06); }
.gnb a.on { color: var(--gold2); }
.gnb a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -6px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.gnb-region { margin-left: auto; font-size: .75rem; color: var(--dim); white-space: nowrap; }

/* ---------- 본문 공통 ---------- */
.main { padding-top: 18px; padding-bottom: 40px; }
.crumb { font-size: .8rem; color: var(--dim); margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumb a { color: var(--muted); } .crumb a:hover { color: var(--gold2); }
.panel { position: relative; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.03); }
.panel::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,173,82,.55), transparent); }
.panel-h { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 12px; }
.panel-h h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.panel-h > small { color: var(--muted); }
.panel-h > a { font-size: .85rem; }
.head-panel h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.empty { text-align: center; padding: 40px 20px; }
.empty .wi { display: block; margin: 0 auto 12px; }
.empty-s { color: var(--muted); padding: 14px 0; margin: 0; }
.why { text-align: left; max-width: 620px; margin: 10px auto 18px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
.col { min-width: 0; }
.gcards.one { grid-template-columns: 1fr; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 6px; border: 1px solid var(--line2);
  background: linear-gradient(180deg, #1b2433, #121822); color: var(--text); font: 600 .92rem var(--sans); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--gold3); color: var(--gold2); }
.btn-gold { border-color: #9b7330; color: #1a1205; background: linear-gradient(180deg, #ffe39a 0%, #e2b35a 45%, #b07f2f 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 10px rgba(217,173,82,.25); text-shadow: 0 1px 0 rgba(255,255,255,.3); }
.btn-gold:hover { color: #000; filter: brightness(1.08); }
.btn-gold .wi { box-shadow: none; border-color: rgba(0,0,0,.35); }
.btn-block { width: 100%; }
.tag { display: inline-block; font-size: .72rem; padding: 1px 7px; border: 1px solid var(--line2); border-radius: 4px; color: var(--muted); background: rgba(255,255,255,.02); white-space: nowrap; }
.rs { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 4px; white-space: nowrap; letter-spacing: .02em; vertical-align: 1px; }
.rs-pvp { color: #ff8a73; background: rgba(200,53,47,.14); border: 1px solid rgba(200,53,47,.45); }
.rs-normal { color: #9fd0ff; background: rgba(61,127,224,.12); border: 1px solid rgba(61,127,224,.4); }
.rs-hardcore { color: #ffb36b; background: rgba(224,102,45,.14); border: 1px solid rgba(224,102,45,.5); }
.rs-rp { color: #d6b3ff; background: rgba(163,53,238,.12); border: 1px solid rgba(163,53,238,.4); }
.callout { border-left: 3px solid var(--ember); background: rgba(224,102,45,.08); padding: 10px 14px; border-radius: 0 6px 6px 0; color: #f0c6a9; margin: 0 0 16px; }
.flash { border: 1px solid rgba(30,255,0,.3); background: rgba(30,255,0,.06); color: #b8f5a6; padding: 10px 14px; border-radius: 6px; margin: 0 0 14px; }
.flash-warn { border-color: rgba(224,102,45,.4); background: rgba(224,102,45,.08); color: #f0c6a9; }
.fac-ic { vertical-align: middle; border-radius: 50%; }
.cls-ic { vertical-align: -5px; border-radius: 4px; border: 1px solid #000; }

/* 직업·품질 색 */
.c-warrior { color: var(--warrior); } .c-paladin { color: var(--paladin); } .c-hunter { color: var(--hunter); } .c-rogue { color: var(--rogue); } .c-priest { color: var(--priest); }
.c-shaman { color: #2a8cff; } .c-mage { color: var(--mage); } .c-warlock { color: var(--warlock); } .c-druid { color: var(--druid); } .c-unknown { color: var(--text); }
.bg-warrior { background: var(--warrior); } .bg-paladin { background: var(--paladin); } .bg-hunter { background: var(--hunter); } .bg-rogue { background: var(--rogue); } .bg-priest { background: #e8e8e8; }
.bg-shaman { background: var(--shaman); } .bg-mage { background: var(--mage); } .bg-warlock { background: var(--warlock); } .bg-druid { background: var(--druid); }
.bg-alliance { background: var(--alliance); } .bg-horde { background: var(--horde); } .bg-neutral { background: var(--neutral); }
.c-border-warrior { --cc: var(--warrior); } .c-border-paladin { --cc: var(--paladin); } .c-border-hunter { --cc: var(--hunter); } .c-border-rogue { --cc: var(--rogue); } .c-border-priest { --cc: #ddd; }
.c-border-shaman { --cc: var(--shaman); } .c-border-mage { --cc: var(--mage); } .c-border-warlock { --cc: var(--warlock); } .c-border-druid { --cc: var(--druid); } .c-border-unknown { --cc: var(--gold); }
.q0 { color: var(--q-poor); } .q1 { color: var(--q-common); } .q2 { color: var(--q-uncommon); } .q3 { color: #3394ff; } .q4 { color: #c06dff; } .q5 { color: var(--q-legendary); } .q6 { color: #e6cc80; }
.eq-b0 { border-color: var(--q-poor) !important; } .eq-b1 { border-color: #c8c8c8 !important; } .eq-b2 { border-color: var(--q-uncommon) !important; }
.eq-b3 { border-color: var(--q-rare) !important; } .eq-b4 { border-color: var(--q-epic) !important; box-shadow: inset 0 0 6px #000, 0 0 8px rgba(163,53,238,.45); }
.eq-b5 { border-color: var(--q-legendary) !important; box-shadow: inset 0 0 6px #000, 0 0 10px rgba(255,128,0,.55); } .eq-b6 { border-color: #e6cc80 !important; }

/* ---------- 첫 화면 ---------- */
.hero { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 18px; padding: 46px 24px 0;
  background: radial-gradient(700px 300px at 50% 0, rgba(217,173,82,.18), transparent 70%),
              linear-gradient(180deg, #0f1520 0%, #0a0d14 100%); box-shadow: var(--shadow); }
.hero::before { content: ""; position: absolute; inset: 0; background: url("/assets/logo.svg") no-repeat 50% 18px / 220px auto; opacity: .05; pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero-in { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.kicker { font: 600 .78rem var(--brand); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.hero h1 { margin: 0 0 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.h-brand { font-family: var(--brand); font-weight: 800; font-size: clamp(2.2rem, 7vw, 3.8rem); letter-spacing: .1em; line-height: 1;
  background: linear-gradient(180deg, #fff6d8 0%, #f6d68a 38%, #d9ad52 62%, #8a6a2c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.6)) drop-shadow(0 0 22px rgba(217,173,82,.25)); }
.h-sub { font-family: var(--serif); font-weight: 900; font-size: clamp(1.3rem, 4vw, 1.9rem); color: var(--text); letter-spacing: .3em; padding-left: .3em; }
.hero-lead { color: #c9c3b3; font-size: 1rem; max-width: 600px; margin: 0 auto 20px; }
.hero-search { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; position: relative; }
.hero-search input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--gold3); background: #070a10; color: var(--text); font: 500 1.02rem var(--sans);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.6), 0 0 0 4px rgba(217,173,82,.06); }
.hero-search input:focus { outline: none; border-color: var(--gold); box-shadow: inset 0 2px 6px rgba(0,0,0,.6), 0 0 0 4px rgba(217,173,82,.18); }
.hero-search .btn { height: 52px; padding: 0 22px; font-size: 1rem; }
.hero-search.slim { max-width: 520px; margin: 12px 0; }
.hero-search.slim input, .hero-search.slim .btn { height: 44px; font-size: .95rem; }
.hero-note { font-size: .8rem; color: var(--dim); margin: 12px auto 0; max-width: 620px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); margin: 34px -24px 0; }
.kpis > * { background: rgba(10,13,20,.92); padding: 16px 12px; text-align: center; color: var(--text); display: flex; flex-direction: column; gap: 2px; }
.kpis a:hover { background: #111724; color: var(--text); }
.kpis b { font: 800 1.6rem var(--brand); color: var(--gold2); letter-spacing: .02em; }
.kpis span { font-size: .78rem; color: var(--muted); }
.kpis.inline { margin: 14px 0 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.kpis.inline b { font-size: 1.3rem; }
.kpis.small-kpis { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.kpis.small-kpis b { font-size: 1.15rem; }
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rank li { display: flex; align-items: center; gap: 8px; }
.rank .rk { width: 26px; flex-shrink: 0; text-align: center; font: 800 .95rem var(--brand); color: var(--dim); }
.rank li:nth-child(-n+3) .rk { color: var(--gold2); text-shadow: 0 0 10px rgba(217,173,82,.5); }
.rank .ccard { flex: 1; }
.seo-intro .feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat > div { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: rgba(0,0,0,.18); }
.feat h3 { margin: 10px 0 6px; }
.feat p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- 캐릭터 카드 ---------- */
.ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ccards.one { grid-template-columns: 1fr; gap: 4px; }
.ccard { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(0,0,0,.2); color: var(--text); min-width: 0; transition: border-color .15s, background .15s; }
.ccard:hover { border-color: var(--gold3); background: rgba(217,173,82,.05); color: var(--text); }
.ccard-av { position: relative; flex-shrink: 0; width: 44px; height: 44px; }
.ccard-av > img:first-child { width: 44px; height: 44px; border-radius: 6px; border: 1px solid #000; box-shadow: 0 0 0 1px var(--line2); object-fit: cover; display: block; }
.ccard-av.noav > img:first-child { opacity: .8; }
.ccard-cls { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #000; }
.ccard-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.ccard-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.ccard-t small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
.ccard-side { flex-shrink: 0; font-size: .75rem; color: var(--muted); text-align: right; }
.ilvl { color: #c06dff !important; font-weight: 700; }

/* ---------- 길드 카드·표 ---------- */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.gcard { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.2); color: var(--text); }
.gcard:hover { border-color: var(--gold3); color: var(--text); }
.gcard.fac-alliance { border-left: 3px solid var(--alliance); } .gcard.fac-horde { border-left: 3px solid var(--horde); }
.gc-rank { font: 800 1rem var(--brand); color: var(--gold); min-width: 18px; text-align: center; }
.gc-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.gc-t b { color: var(--gold2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--serif); }
.gc-t small { color: var(--muted); font-size: .75rem; }
.gcard .mixbar, .gcard .clsrow { grid-column: 1 / -1; }
.clsrow { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 2px; margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.05); }
.cr { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.cr img { width: 22px; height: 22px; border-radius: 4px; border: 1px solid #000; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.cr small { font-size: .7rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cr.z img { filter: grayscale(1) brightness(.45); }
.cr.z small { color: var(--dim); font-weight: 400; }
.mixbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #000; min-width: 80px; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.mixbar i { display: block; height: 100%; }
.gname { color: var(--gold2); font-family: var(--serif); font-weight: 700; }
.gname:hover { color: #fff; }
.guild-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(120deg, rgba(217,173,82,.1), transparent 50%), linear-gradient(180deg, var(--panel2), var(--panel)); box-shadow: var(--shadow); }
.guild-head.fac-alliance { background: linear-gradient(120deg, rgba(61,127,224,.22), transparent 55%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.guild-head.fac-horde { background: linear-gradient(120deg, rgba(200,53,47,.22), transparent 55%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.gh-t { flex: 1; min-width: 200px; }
.gh-t h1 { margin: 0 0 4px; font-size: 1.9rem; }
.gh-t p { margin: 0 0 4px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- 필터·칩 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 15px; border: 1px solid var(--line2); color: var(--muted); font-size: .82rem; background: rgba(0,0,0,.2); }
.chips a:hover { color: var(--text); border-color: var(--gold3); }
.chips a.on { color: #1a1205; background: linear-gradient(180deg, #f6d68a, #c99a45); border-color: #9b7330; font-weight: 700; }
.chips a img { border-radius: 50%; }
.chips.sort a { padding: 3px 9px; font-size: .78rem; }
.cls-nav { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin: 12px 0 4px; }
.cls-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .76rem; background: rgba(0,0,0,.2); text-align: center; }
.cls-nav a:hover { border-color: var(--gold3); color: var(--text); }
.cls-nav a.on { border-color: var(--gold); background: rgba(217,173,82,.1); color: var(--gold2); box-shadow: inset 0 0 0 1px rgba(217,173,82,.3); }
.cls-nav .cn-all .wi { box-shadow: none; }

/* ---------- 표 ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: .76rem; padding: 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.tbl tbody tr:hover { background: rgba(217,173,82,.04); }
.c-n { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.c-fac { width: 34px; text-align: center !important; }
.cm { display: flex; align-items: center; gap: 9px; color: var(--text); min-width: 0; }
.cm:hover { color: var(--text); }
.cm-av { width: 32px; height: 32px; border-radius: 5px; border: 1px solid #000; box-shadow: 0 0 0 1px var(--line2); flex-shrink: 0; object-fit: cover; }
.cm span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm small { color: var(--dim); font-size: .72rem; }
.spec-t { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.spec-t img { border-radius: 4px; border: 1px solid #000; }
.guild-tbl .c-cls { text-align: center; width: 34px; padding: 4px 2px; font-variant-numeric: tabular-nums; font-size: .8rem; }
.guild-tbl .c-cls.z { color: var(--dim); }
.guild-tbl .c-cls span { display: inline-block; min-width: 26px; padding: 1px 3px; border-radius: 4px; background: color-mix(in srgb, currentColor calc(var(--p, 0) * 28%), transparent); font-weight: 700; }
.guild-tbl th.c-cls { text-align: center; }
.guild-tbl td:last-child { min-width: 110px; }
.cls-tbl .c-bar { width: 45%; }
.cls-tbl .c-bar small { color: var(--muted); margin-left: 8px; font-variant-numeric: tabular-nums; }
.bar { display: inline-block; vertical-align: middle; height: 10px; width: calc(100% - 60px); background: #05070a; border-radius: 5px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.bar i { display: block; height: 100%; border-radius: 5px; box-shadow: inset 0 -3px 4px rgba(0,0,0,.35); }
.cls-cell { display: inline-flex; align-items: center; gap: 8px; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 18px 0 2px; }
.pager a, .pager strong { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line2); color: var(--muted); font-size: .85rem; }
.pager a:hover { border-color: var(--gold3); color: var(--gold2); }
.pager strong { background: linear-gradient(180deg, #f6d68a, #c99a45); color: #1a1205; border-color: #9b7330; }

/* ---------- 그래프 ---------- */
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.hbars li > a, .hbars li > div { display: grid; grid-template-columns: minmax(110px, 34%) 1fr 92px; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 5px; color: var(--text); }
.hbars li > a:hover { background: rgba(217,173,82,.06); }
.hb-l { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .88rem; }
.hb-l img { border-radius: 4px; border: 1px solid #000; flex-shrink: 0; }
.hb-bar { height: 12px; background: #05070a; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.hb-bar i { display: block; height: 100%; border-radius: 6px; min-width: 2px; box-shadow: inset 0 -4px 5px rgba(0,0,0,.35); }
.hb-v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hb-v b { font-size: .9rem; } .hb-v small { color: var(--muted); margin-left: 6px; font-size: .74rem; }
.vbars { display: flex; align-items: flex-end; gap: 4px; height: 220px; padding: 8px 2px 0; }
.vbars.small { height: 170px; }
.vb { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.vb-v { font-size: .66rem; color: var(--muted); height: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vb-bar { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.vb-bar i { display: block; width: 100%; border-radius: 4px 4px 0 0; min-height: 1px; background: linear-gradient(180deg, var(--gold2), var(--gold3)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.vb:last-child .vb-bar i { background: linear-gradient(180deg, #ffd27a, var(--ember)); box-shadow: 0 0 14px rgba(224,102,45,.45); }
.vb-l { font-size: .66rem; color: var(--dim); margin-top: 4px; white-space: nowrap; }
.vbars.cls-warrior .vb-bar i { background: var(--warrior); } .vbars.cls-paladin .vb-bar i { background: var(--paladin); } .vbars.cls-hunter .vb-bar i { background: var(--hunter); }
.vbars.cls-rogue .vb-bar i { background: var(--rogue); } .vbars.cls-priest .vb-bar i { background: #ddd; } .vbars.cls-shaman .vb-bar i { background: var(--shaman); }
.vbars.cls-mage .vb-bar i { background: var(--mage); } .vbars.cls-warlock .vb-bar i { background: var(--warlock); } .vbars.cls-druid .vb-bar i { background: var(--druid); }
.lchart { width: 100%; height: 240px; display: block; }
.lc-grid { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.lc-ax { fill: var(--dim); font-size: 11px; font-family: var(--sans); }
.lc-area { fill: rgba(217,173,82,.12); }
.lc-line { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lc-dot { fill: var(--gold2); stroke: #000; stroke-width: 2; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.spec-card { border: 1px solid var(--line); border-top: 2px solid var(--cc, var(--gold)); border-radius: 8px; padding: 12px 14px; background: rgba(0,0,0,.2); }
.spec-card h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; font-size: .98rem; }
.spec-card h3 a { display: inline-flex; align-items: center; gap: 7px; }
.spec-card h3 small { color: var(--muted); font: 500 .8rem var(--sans); }
.spec-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.spec-card li a { display: grid; grid-template-columns: 20px 74px 1fr 40px; align-items: center; gap: 8px; color: var(--text); font-size: .84rem; padding: 2px 0; }
.spec-card li img { border-radius: 4px; border: 1px solid #000; }
.spec-card .bar { width: 100%; }
.sp-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-v { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.cls-head { border-top: 2px solid var(--cc); }

/* ---------- 캐릭터 머리 ---------- */
.char-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px;
  background: radial-gradient(500px 200px at 0 0, color-mix(in srgb, var(--cc) 20%, transparent), transparent 70%), linear-gradient(180deg, var(--panel2), var(--panel));
  border-top: 2px solid var(--cc); box-shadow: var(--shadow); }
.ch-av { position: relative; }
.ch-av img { width: 96px; height: 96px; border-radius: 12px; border: 2px solid #000; box-shadow: 0 0 0 2px var(--cc), 0 0 22px color-mix(in srgb, var(--cc) 35%, transparent); display: block; object-fit: cover; }
.ch-lv { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); min-width: 34px; padding: 1px 8px; text-align: center; border-radius: 12px; background: #000;
  border: 1px solid var(--gold); color: var(--gold2); font: 800 .85rem var(--brand); }
.ch-t h1 { margin: 0; font-size: 2rem; text-shadow: 0 2px 0 #000; }
.ch-title { margin: 0; color: var(--gold); font-family: var(--serif); font-size: .9rem; }
.ch-meta { margin: 4px 0 6px; font-size: 1rem; }
.ch-guild { margin-left: 4px; color: var(--gold2); font-family: var(--serif); }
.ch-tags { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.ch-kpi { display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ch-kpi div { background: rgba(5,7,10,.85); padding: 10px 16px; text-align: center; display: flex; flex-direction: column; min-width: 86px; }
.ch-kpi b { font: 800 1.3rem var(--brand); color: var(--gold2); }
.ch-kpi span { font-size: .72rem; color: var(--muted); }

/* ---------- 탭 ---------- */
.tabs-wrap { padding-top: 6px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line2); margin: 0 -20px 16px; padding: 0 14px; position: sticky; top: 108px; z-index: 5; background: var(--panel2); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: .9rem; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--gold2); border-bottom-color: var(--gold); }
.js .tabp { display: none; } .js .tabp.on { display: block; }
.tabp + .tabp { margin-top: 22px; }
.js .tabp + .tabp { margin-top: 0; }
.sub-h { font-size: .95rem; margin: 18px 0 8px; }

/* 장비 인형 */
.pd { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, 180px) minmax(0, 1fr); gap: 0 10px; padding: 14px 12px 12px;
  background: radial-gradient(260px 300px at 50% 45%, color-mix(in srgb, var(--cc, var(--gold)) 12%, transparent), transparent 70%), #06080c; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.pd-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; z-index: 1; }
.pd-mid { position: relative; min-height: 300px; }
.pd-model { position: absolute; left: 50%; top: 50%; height: 175%; width: auto; max-width: none; transform: translate(-45.6%, -55.4%); pointer-events: none; filter: drop-shadow(0 10px 20px rgba(0,0,0,.6)); }
.pd-bot { grid-column: 1 / -1; display: flex; justify-content: center; flex-wrap: nowrap; gap: 6px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(217,173,82,.15); position: relative; z-index: 1; }
.pd-bot .pd-s { flex: 0 1 180px; }
.pd-s { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 2px; border-radius: 5px; color: var(--text); }
a.pd-s:hover { background: rgba(217,173,82,.07); color: var(--text); }
.pd-r { flex-direction: row-reverse; text-align: right; }
.pd-ic { width: 44px; height: 44px; flex-shrink: 0; border: 2px solid #555; border-radius: 5px; background: #000; overflow: hidden; display: block; box-shadow: inset 0 0 6px #000; }
.pd-ic img { width: 40px; height: 40px; display: block; }
.pd-empty .pd-ic { border-color: #2a2f38; } .pd-empty .pd-ic img { opacity: .5; }
.pd-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pd-t b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 1px #000; }
.pd-t small { font-size: .7rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-t em { font-style: normal; font-size: .7rem; color: var(--q-uncommon); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-empty .pd-t small { color: var(--dim); }
#tab-equip .pd + .tw { margin-top: 14px; }

/* 특성 창 */
.tw { background: #06080c; border: 1px solid var(--gold3); border-radius: 10px; box-shadow: inset 0 0 0 1px #000; padding: 0 0 10px; color: var(--text); overflow: hidden; }
.tw-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 9px 14px; background: linear-gradient(#1a2130, #0e131c); border-bottom: 1px solid var(--gold3); font-size: .88rem; }
.tw-top b { color: #ffd100; font-family: var(--serif); font-size: 1rem; }
.tw-top em { font-style: normal; color: #fff; font-weight: 700; } .tw-top em.tw-left { color: #1eff00; }
.tw-sum { color: #ffd100; font-weight: 700; letter-spacing: .03em; }
.tw-top span:last-child { margin-left: auto; color: var(--muted); }
.tw-spec { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.tw-spec img { border-radius: 4px; border: 1px solid #000; }
.tw-spec i { font-style: normal; font-weight: 700; color: var(--muted); }
.tw-spec.on { color: var(--text); } .tw-spec.on i { color: #ffd100; }
.tw-trees { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 12px 10px 0; overflow-x: auto; }
.tt { position: relative; padding: 0 12px 14px; border: 1px solid var(--line2); border-radius: 8px; background: linear-gradient(#111824, #090c12); overflow: hidden; }
.tt-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .09; filter: blur(14px) saturate(1.4); transform: scale(1.4); pointer-events: none; }
.tt-on { border-color: var(--gold3); } .tt-on .tt-bg { opacity: .22; }
.tt-h { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 0; margin-bottom: 8px; border-bottom: 1px solid rgba(255,209,0,.15); }
.tt-h img { border: 1px solid #000; border-radius: 4px; }
.tt-h b { color: #ffd100; font-family: var(--serif); }
.tt-h em { margin-left: auto; font-style: normal; font-weight: 800; color: #fff; background: #000; border: 1px solid var(--gold3); border-radius: 10px; padding: 0 9px; font-size: .85rem; }
.tt-grid { position: relative; margin: 0 auto; }
.tn { position: absolute; width: 44px; height: 44px; cursor: help; outline: none; }
.tn-ic { display: block; width: 44px; height: 44px; border: 2px solid #4a4a4a; border-radius: 5px; background: #000; overflow: hidden; box-shadow: 0 0 0 1px #000, inset 0 0 6px #000; }
.tn-ic img { width: 40px; height: 40px; display: block; }
.tn-rk { position: absolute; right: -7px; bottom: -7px; min-width: 26px; padding: 0 3px; font: 700 .68rem/15px var(--sans); text-align: center; font-style: normal; background: #000; border: 1px solid #4a4a4a; border-radius: 7px; color: #9d9d9d; }
.s-max .tn-ic { border-color: #ffd100; box-shadow: 0 0 0 1px #000, 0 0 8px rgba(255,209,0,.45); } .s-max .tn-rk { color: #ffd100; border-color: #ffd100; }
.s-part .tn-ic, .s-open .tn-ic { border-color: #1eff00; } .s-part .tn-ic { box-shadow: 0 0 0 1px #000, 0 0 7px rgba(30,255,0,.35); }
.s-part .tn-rk, .s-open .tn-rk { color: #1eff00; border-color: #1eff00; }
.s-lock .tn-ic img { filter: grayscale(1) brightness(.55); } .s-lock .tn-rk { opacity: .7; }
.tn:hover .tn-ic, .tn:focus .tn-ic { transform: translateY(-1px); box-shadow: 0 0 0 1px #000, 0 0 10px rgba(255,255,255,.35); }
.ta { position: absolute; display: block; background: #3a3a3a; border-radius: 2px; box-shadow: 0 0 0 1px #000; }
.ta-v { width: 8px; } .ta-h { height: 8px; }
.ta.lit { background: linear-gradient(90deg, #b88a00, #ffd100, #b88a00); } .ta-h.lit { background: linear-gradient(#b88a00, #ffd100, #b88a00); }
.ta-v::after { content: ""; position: absolute; left: -4px; bottom: -6px; border: 8px solid transparent; border-top: 7px solid #3a3a3a; border-bottom: 0; }
.ta-r::after, .ta-l::after { content: ""; position: absolute; top: -4px; border: 8px solid transparent; }
.ta-r::after { right: -6px; border-left: 7px solid #3a3a3a; border-right: 0; } .ta-l::after { left: -6px; border-right: 7px solid #3a3a3a; border-left: 0; }
.ta-v.lit::after { border-top-color: #ffd100; } .ta-r.lit::after { border-left-color: #ffd100; } .ta-l.lit::after { border-right-color: #ffd100; }
.tw-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.lg { display: inline-block; width: 14px; height: 14px; border: 2px solid; border-radius: 3px; background: #000; vertical-align: -2px; margin-right: 4px; }
.lg-max { border-color: #ffd100; } .lg-part { border-color: #1eff00; background: #1d3a12; } .lg-open { border-color: #1eff00; } .lg-lock { border-color: #4a4a4a; background: #222; }
.tpop { position: fixed; z-index: 1000; max-width: 300px; background: rgba(6,9,22,.97); border: 1px solid #9aa4b5; border-radius: 6px; padding: 9px 12px; color: #fff; font-size: .86rem; line-height: 1.5;
  box-shadow: 0 6px 22px rgba(0,0,0,.7); pointer-events: none; display: flex; flex-direction: column; gap: 2px; }
.tpop[hidden] { display: none !important; }
.tpop .tp-n { font-size: 1rem; } .tpop .tp-r { opacity: .85; } .tpop .tp-x { color: #ff2020; } .tpop .tp-d { color: #ffd100; } .tpop .tp-nx { margin-top: 6px; }

/* 능력치·업적·평판·수집 */
.stat-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 22px; }
.stat-g h3 { font-size: .95rem; margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line2); }
.stats { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.stats div { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; padding: 2px 0; }
.stats dt { color: var(--muted); } .stats dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.achv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; }
.achv a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: rgba(0,0,0,.2); }
.achv a:hover { border-color: var(--gold3); color: var(--text); }
.achv-ic img { border-radius: 5px; border: 1px solid #000; display: block; }
.achv-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.achv-t b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.achv-t small { color: var(--muted); font-size: .72rem; }
.achv-prog { opacity: .6; }
.more { margin-top: 10px; } .more summary { cursor: pointer; color: var(--link); margin-bottom: 8px; }
.reps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; }
.reps p { display: flex; justify-content: space-between; margin: 0 0 3px; font-size: .86rem; }
.rep-t { font-size: .76rem; }
.rep-bar { display: block; position: relative; height: 16px; background: #000; border: 1px solid var(--line2); border-radius: 3px; overflow: hidden; }
.rep-bar i { display: block; height: 100%; background: #555; }
.rep-bar em { position: absolute; inset: 0; text-align: center; font: 600 .68rem/14px var(--sans); font-style: normal; color: #fff; text-shadow: 0 1px 1px #000; }
.rep-0 i { background: #a3201b; } .rep-1 i { background: #c0461b; } .rep-2 i { background: #b07a1e; } .rep-3 i { background: #b0a01e; }
.rep-4 i { background: #2b8a1f; } .rep-5 i { background: #1f9a5a; } .rep-6 i { background: #1f8f9a; } .rep-7 i { background: #3f6fd0; }
.rep-t.rep-0 { color: #ff6b5f; } .rep-t.rep-4, .rep-t.rep-5 { color: #6be05f; } .rep-t.rep-6, .rep-t.rep-7 { color: #6fc6ff; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; background: rgba(0,0,0,.2); display: flex; flex-direction: column; line-height: 1.3; }
.pills li.on { border-color: var(--gold3); }
.pills b { font-size: .85rem; font-weight: 600; } .pills small { color: var(--muted); font-size: .72rem; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line2); display: flex; flex-direction: column; gap: 6px; }
.timeline li { position: relative; font-size: .86rem; }
.timeline li::before { content: ""; position: absolute; left: -19px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(217,173,82,.6); }
.timeline time { color: var(--dim); font-variant-numeric: tabular-nums; margin-right: 6px; }
.timeline span { color: var(--muted); } .timeline s { color: var(--dim); } .timeline b { color: var(--gold2); }

/* 옆 칸 */
.kv { margin: 0 0 14px; display: flex; flex-direction: column; }
.kv div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .88rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.kv dd img { border-radius: 4px; border: 1px solid #000; }
.refresh { display: flex; flex-direction: column; gap: 8px; }
.refresh .btn .wi { box-shadow: none; }
.refresh small { line-height: 1.5; }
.prof { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.prof li { display: flex; gap: 10px; align-items: center; }
.prof li img { border-radius: 5px; border: 1px solid #000; }
.prof li > div { flex: 1; min-width: 0; }
.prof p { display: flex; justify-content: space-between; margin: 0 0 3px; font-size: .88rem; } .prof p span { color: var(--muted); font-variant-numeric: tabular-nums; }
.prof-bar { display: block; height: 7px; background: #000; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.prof-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold3), var(--gold2)); }
.prof small { color: var(--dim); font-size: .72rem; }

/* 검색 */
.direct { margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--gold3); border-radius: 8px; background: rgba(217,173,82,.04); }
.direct p { color: var(--muted); font-size: .88rem; }
.direct-f { display: flex; gap: 8px; flex-wrap: wrap; }
.direct-f input { flex: 1; min-width: 110px; height: 42px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line2); background: #070a10; color: var(--text); font: inherit; }
.prose { max-width: 860px; }
.prose h2 { margin-top: 1.6em; }
.prose .lead { font-size: 1.05rem; color: #cfc8b6; }
.prose ul { padding-left: 20px; color: #cfc8b6; }
.log { white-space: pre-wrap; font-size: .75rem; color: var(--muted); max-height: 400px; overflow: auto; background: #000; padding: 10px; border-radius: 6px; }
.ops select, .panel textarea, .panel select { background: #070a10; color: var(--text); border: 1px solid var(--line2); border-radius: 6px; padding: 8px; font: inherit; margin-bottom: 8px; }

/* 자동완성 */
.sg-wrap { position: relative; }
.sg-box { position: absolute; left: 0; right: 0; top: 100%; margin: 6px 0 0; padding: 4px 0; list-style: none; z-index: 60; text-align: left; background: #0b0f17;
  border: 1px solid var(--gold3); border-radius: 8px; box-shadow: 0 14px 34px rgba(0,0,0,.7); max-height: 70vh; overflow-y: auto; min-width: 280px; }
.sg-box[hidden] { display: none; }
.sg-box li { display: flex; align-items: center; gap: 10px; padding: 7px 12px; cursor: pointer; }
.sg-box li.on, .sg-box li:hover { background: rgba(217,173,82,.12); }
.sg-box img { width: 32px; height: 32px; border-radius: 5px; border: 1px solid #000; box-shadow: 0 0 0 1px var(--line2); flex-shrink: 0; object-fit: cover; }
.sg-box li > span { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.sg-box b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-box small { font-size: .76rem; color: var(--muted); }
.sg-box .sg-all { justify-content: center; color: var(--gold2); font-size: .85rem; border-top: 1px solid rgba(255,255,255,.08); }
.sg-box .sg-direct, .sg-box .sg-found { border-bottom: 1px solid rgba(255,255,255,.08); }
.sg-box .sg-direct b, .sg-box .sg-found small em { color: var(--gold2); font-style: normal; }
.sg-ic { width: 32px; height: 32px; display: grid; place-items: center; font-style: normal; border: 1px solid var(--line2); border-radius: 5px; flex-shrink: 0; }
.sg-box .sg-hint, .sg-box .sg-miss { display: block; font-size: .8rem; color: var(--muted); cursor: default; line-height: 1.55; }
.sg-box .sg-miss { border-bottom: 1px solid rgba(255,255,255,.08); }
.sg-box .sg-miss b { color: #ffb08a; }
.sg-box .sg-hint:hover, .sg-box .sg-miss:hover { background: none; }
.sg-box .sg-wait { color: var(--muted); font-size: .86rem; cursor: default; }
.spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(217,173,82,.25); border-top-color: var(--gold2); animation: spin .8s linear infinite; flex-shrink: 0; }
.spin.lg { width: 48px; height: 48px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
#bp-loading { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(3,4,7,.6); opacity: 0; pointer-events: none; transition: opacity .15s; }
#bp-loading.on { opacity: 1; pointer-events: auto; }
.load-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 34px; text-align: center; background: #0b0f17; border: 1px solid var(--gold3); border-radius: 12px; box-shadow: var(--shadow); }
.load-card b { color: var(--gold2); font-family: var(--serif); font-size: 1.1rem; }
.load-card small { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } html { scroll-behavior: auto; } }

/* ---------- 꼬리말 ---------- */
.foot { border-top: 1px solid var(--line); background: #05070a; padding: 30px 0 40px; margin-top: 30px; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px 40px; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; }
.foot-brand b { font-family: var(--serif); color: var(--gold2); }
.foot-brand p { color: var(--muted); font-size: .85rem; margin: 4px 0 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: flex-start; }
.foot nav a { color: var(--muted); font-size: .86rem; } .foot nav a:hover { color: var(--gold2); }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; }
.foot-legal p { color: var(--dim); font-size: .74rem; margin: 0 0 6px; }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .cls-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .grid-side { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid-2, .grid-side { grid-template-columns: minmax(0, 1fr); }
  .seo-intro .feat { grid-template-columns: 1fr; }
  .c-hide-m { display: none; }
  .char-head { grid-template-columns: auto 1fr; }
  .ch-kpi { grid-column: 1 / -1; }
  .ch-kpi div { flex: 1; }
}
@media (max-width: 760px) {
  .top-in { height: auto; gap: 8px 10px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .logo-t small { display: none; }
  .lang { order: 2; margin-left: auto; }
  .nav-toggle { display: block; order: 3; }
  .top-search { order: 4; flex: 1 0 100%; max-width: none; margin: 0; }
  .gnb { display: none; }
  .gnb.open { display: block; }
  .gnb-in { flex-direction: column; align-items: stretch; height: auto; padding-top: 6px; padding-bottom: 10px; }
  .gnb a { padding: 10px 6px; }
  .gnb a.on::after { display: none; }
  .gnb-region { margin: 6px 6px 0; }
  .tabs { top: 106px; }
  .hero { padding: 30px 16px 0; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 26px -16px 0; }
  .kpis.inline { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0 8px; }
  .hero-search { flex-direction: column; }
  .hero-search input { flex: none; width: 100%; }
  .hero-search.slim input { flex: 1; width: auto; }
  .hero-search .btn { width: 100%; }
  .hero-search.slim { flex-direction: row; } .hero-search.slim .btn { width: auto; }
  .panel { padding: 14px; }
  .tabs { margin: 0 -14px 14px; }
  .c-hide-s { display: none; }
  .hbars li > a, .hbars li > div { grid-template-columns: minmax(90px, 38%) 1fr 76px; gap: 8px; }
  .foot-in { grid-template-columns: 1fr; }
  .h-sub { letter-spacing: .2em; }
  .char-head { padding: 16px; gap: 12px; }
  .ch-av img { width: 72px; height: 72px; }
  .ch-t h1 { font-size: 1.5rem; }
  .gh-t h1 { font-size: 1.5rem; }
  .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 10px 8px; gap: 0 6px; }
  .pd-mid { position: absolute; inset: 0; min-height: 0; opacity: .22; }
  .pd-model { height: 120%; }
  .pd-ic { width: 38px; height: 38px; } .pd-ic img { width: 34px; height: 34px; }
  .pd-t b { font-size: .78rem; } .pd-t small, .pd-t em { font-size: .66rem; }
  .pd-bot { flex-wrap: wrap; justify-content: flex-start; } .pd-bot .pd-s { flex: 0 0 calc(50% - 7px); }
  .vbars { height: 180px; gap: 2px; } .vb-v { font-size: .56rem; } .vb-l { font-size: .56rem; }
  .gcards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cls-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .cls-nav a { font-size: .66rem; padding: 6px 2px; }
  .ccards { grid-template-columns: 1fr; }
  .logo-t b { font-size: 1.05rem; }
}
