/* 도사백과 (PC) — 도깨비의쿠폰과 같은 색: 호박 금빛 강조 · 먹갈색 글자 · 한지빛 바탕 */
:root {
  --bg: #FAF7F1; --paper: #FFFFFF; --soft: #F3EEE4; --line: #ECE5D8; --line2: #E0D5C1;
  --ink: #2B1B0D; --ink2: #5C4A39; --muted: #8A7A69; --accent: #FFC34D; --accent-d: #E9A928; --link: #99540F;
  --g-Normal: #6F7780; --g-Rare: #2F7FC1; --g-Heroic: #8E44AD; --g-Legendary: #D9822B; --g-Mythic: #C0392B;
  --r: 10px; --w: 1320px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.65 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: Hahmlet, serif; line-height: 1.3; letter-spacing: -0.01em; }
h1 { font-size: 30px; margin: 4px 0 10px; display: flex; align-items: center; gap: 12px; }
h2 { font-size: 20px; margin: 30px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
h3 { font-size: 16px; margin: 18px 0 8px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code, kbd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: var(--soft); padding: 1px 5px; border-radius: 4px; }

/* 상단 */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo span { font: 700 21px Hahmlet, serif; }
.logo small { color: var(--muted); font-size: 12px; }
.sbox { position: relative; flex: 0 1 380px; display: flex; }
.sbox input { flex: 1; height: 38px; border: 1px solid var(--line2); border-radius: 19px 0 0 19px; padding: 0 16px; font: inherit; background: var(--bg); outline: none; min-width: 0; }
.sbox input:focus { border-color: var(--accent-d); background: #fff; }
.sbox button { height: 38px; border: 0; border-radius: 0 19px 19px 0; padding: 0 16px; background: var(--accent); color: var(--ink); font: 600 14px inherit; cursor: pointer; }
.ac { position: absolute; top: 42px; left: 0; right: 0; background: #fff; border: 1px solid var(--line2); border-radius: var(--r); box-shadow: 0 10px 30px rgba(43, 27, 13, .12); max-height: 420px; overflow: auto; z-index: 30; }
.ac a { display: flex; align-items: center; gap: 8px; padding: 7px 12px; color: var(--ink); }
.ac a:hover, .ac a.on { background: var(--soft); text-decoration: none; }
.ac a small { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.ac .t { font-size: 11px; color: var(--link); background: #FFF4DC; border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.gnav { display: flex; gap: 2px; margin-left: auto; }
.gnav a { color: var(--ink2); padding: 6px 10px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.gnav a:hover, .gnav a.on { background: var(--soft); color: var(--ink); text-decoration: none; }

/* 본문 틀 */
.main { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding-top: 22px; padding-bottom: 40px; }
.side { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; font-size: 14px; }
.sb-g { margin-bottom: 16px; }
.sb-h { font-weight: 700; font-size: 12px; color: var(--muted); letter-spacing: .04em; margin: 0 0 4px 8px; }
.side a { display: block; padding: 4px 8px; border-radius: 6px; color: var(--ink2); }
.side a:hover { background: var(--soft); text-decoration: none; }
.side a.on { background: #FFF1D1; color: var(--ink); font-weight: 600; }
.content { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 26px 34px 30px; min-width: 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.lead { font-size: 16px; color: var(--ink2); background: #FFF9EC; border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 6px 0 18px; }
.asof { color: var(--muted); font-size: 12px; margin-top: 30px; border-top: 1px dashed var(--line2); padding-top: 10px; }
.h1i { border-radius: 10px; background: var(--soft); }

/* 표 */
.tw { overflow-x: auto; margin: 8px 0 14px; border: 1px solid var(--line); border-radius: var(--r); }
table.t { border-collapse: collapse; width: 100%; font-size: 14px; }
.t th { background: var(--soft); text-align: left; font-weight: 600; padding: 8px 10px; white-space: nowrap; border-bottom: 1px solid var(--line2); position: sticky; top: 0; }
.t td { padding: 7px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.t tbody tr:hover { background: #FFFBF2; }
.t .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sortable th { cursor: pointer; user-select: none; }
.sortable th:hover { background: var(--line); }
.sortable th[data-dir="asc"]::after { content: ' ▲'; font-size: 10px; }
.sortable th[data-dir="desc"]::after { content: ' ▼'; font-size: 10px; }

/* 링크 · 아이콘 · 등급 */
.lk { display: inline-flex; align-items: center; gap: 6px; }
.ic { width: 24px; height: 24px; border-radius: 5px; background: var(--soft); object-fit: contain; flex: none; }
.ic-none { display: inline-block; }
.g { display: inline-block; padding: 0 7px; border-radius: 10px; font-size: 12px; font-weight: 600; color: #fff; background: var(--g-Normal); }
.g-Rare.g { background: var(--g-Rare); } .g-Heroic.g { background: var(--g-Heroic); } .g-Legendary.g { background: var(--g-Legendary); } .g-Mythic.g { background: var(--g-Mythic); }
a.g-Rare { color: var(--g-Rare); } a.g-Heroic { color: var(--g-Heroic); } a.g-Legendary { color: var(--g-Legendary); } a.g-Mythic { color: var(--g-Mythic); }

/* 상세 */
.hero { display: flex; gap: 22px; align-items: flex-start; margin: 8px 0 10px; }
.hero > div { flex: 1; min-width: 0; }
.big { width: 96px; height: 96px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); object-fit: contain; padding: 6px; flex: none; }
dl.kv { display: grid; grid-template-columns: 130px 1fr; gap: 0; margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
dl.kv dt { background: var(--soft); padding: 7px 12px; font-weight: 600; color: var(--ink2); border-top: 1px solid var(--line); }
dl.kv dd { margin: 0; padding: 7px 12px; border-top: 1px solid var(--line); }
dl.kv dt:first-of-type, dl.kv dd:first-of-type { border-top: 0; }
blockquote.desc { margin: 8px 0; padding: 10px 14px; background: var(--bg); border-radius: 8px; color: var(--ink2); font-family: Hahmlet, serif; }
ul.attrs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 16px; }
ul.attrs li { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--line2); padding: 2px 0; }
ul.rw { list-style: none; margin: 0; padding: 0; }
ul.rw li { padding: 1px 0; }
ul.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
ul.chips li { background: var(--soft); border-radius: 14px; padding: 2px 12px; font-size: 14px; }
ul.quotes li { font-family: Hahmlet, serif; color: var(--ink2); }
.dlg { background: var(--bg); border-radius: var(--r); padding: 12px 16px; max-height: 520px; overflow: auto; }
.dlg p { margin: 4px 0; }
.dlg b { color: var(--link); margin-right: 6px; }
.card { display: block; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--paper); color: var(--ink); margin-bottom: 10px; }
a.card:hover { border-color: var(--accent-d); text-decoration: none; box-shadow: 0 4px 14px rgba(43, 27, 13, .06); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 10px 0; }
.cards .card { margin: 0; }
.card p { margin: 4px 0 0; }
details { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; margin: 6px 0; }
details summary { cursor: pointer; font-weight: 600; }

/* 목록 필터 · 쪽 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 4px; }
.filters input, .filters select { height: 34px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 10px; font: inherit; background: #fff; }
.filters button, .btn { height: 34px; border: 0; border-radius: 8px; padding: 0 14px; background: var(--accent); font: 600 14px inherit; cursor: pointer; color: var(--ink); }
.pager { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin: 14px 0; }
.pager a, .pager b { min-width: 34px; text-align: center; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; }
.pager b { background: var(--accent); border-color: var(--accent); }

/* 첫 화면 */
.bigsearch { display: flex; margin: 14px 0 18px; }
.bigsearch input { flex: 1; height: 52px; font: inherit; font-size: 17px; border: 2px solid var(--accent); border-radius: 26px 0 0 26px; padding: 0 22px; outline: none; }
.bigsearch button { height: 52px; padding: 0 26px; border: 0; border-radius: 0 26px 26px 0; background: var(--accent); font: 700 16px inherit; cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--ink); background: linear-gradient(180deg, #fff, #FFFCF6); }
.tile:hover { border-color: var(--accent-d); text-decoration: none; }
.tile b { font: 700 17px Hahmlet, serif; }
.tile .cnt { color: var(--link); font-weight: 700; font-variant-numeric: tabular-nums; }
.tile small { grid-column: 1 / -1; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
ul.links { padding-left: 18px; }
ul.tips li { margin: 3px 0; }
ul.sres { columns: 2; padding-left: 18px; }
ul.sres li { break-inside: avoid; margin: 2px 0; }
ul.sres a { display: inline-flex; align-items: center; gap: 6px; }

/* 자주 묻는 질문 */
.faq details { background: var(--bg); }
.faq p { margin: 6px 0 2px; color: var(--ink2); }

/* 도구 */
.tool { border: 1px solid var(--line2); border-radius: 12px; padding: 16px 18px; background: #FFFCF6; margin: 10px 0 16px; }
.tool label { display: inline-flex; align-items: center; gap: 6px; margin: 4px 14px 4px 0; }
.tool input[type=number], .tool select, .tool input[type=text] { height: 34px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 10px; font: inherit; background: #fff; }
.tool input[type=number] { width: 120px; }
.stat { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 12px 0; }
.stat div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); }
.cnt-big { font: 700 26px ui-monospace, Menlo, monospace; color: var(--link); }
.chk { margin: 6px 0; }
.chk.done > summary { color: var(--g-Rare); }

/* 바닥 */
.foot { border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 13px; padding: 18px 0 26px; }
.foot p { margin: 4px 0; }

@media (max-width: 1100px) { .gnav { display: none; } .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) {
  .main { grid-template-columns: 1fr; } .side { display: none; } .content { padding: 18px 16px; } .two { grid-template-columns: 1fr; } .grid { grid-template-columns: repeat(2, 1fr); }
  .logo small { display: none; } .top-in { gap: 10px; } .hero { flex-direction: column; } dl.kv { grid-template-columns: 100px 1fr; } ul.sres { columns: 1; } .wrap { padding: 0 12px; }
}

/* 바로 가기 · 링크 복사 · 맨 위로 */
.h1row { display: flex; align-items: center; gap: 12px; }
.h1row h1 { flex: 1; min-width: 0; }
.copy { border: 1px solid var(--line2); background: #fff; color: var(--ink2); border-radius: 8px; height: 32px; padding: 0 12px; font: 500 13px inherit; cursor: pointer; white-space: nowrap; }
.copy:hover { border-color: var(--accent-d); }
.copy.done { background: #FFF1D1; border-color: var(--accent); }
.toc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: -4px 0 16px; font-size: 13px; }
.toc b { color: var(--muted); font-weight: 600; margin-right: 4px; }
.toc a { padding: 2px 10px; border-radius: 12px; background: var(--soft); color: var(--ink2); }
.toc a:hover { background: #FFF1D1; text-decoration: none; }
section[id] { scroll-margin-top: 80px; }
.reset { font-size: 13px; color: var(--muted); }
.totop { position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line2); background: #fff; color: var(--ink); font-size: 18px; cursor: pointer; box-shadow: 0 6px 18px rgba(43, 27, 13, .12); z-index: 15; }
.totop:hover { border-color: var(--accent-d); }
:focus-visible { outline: 2px solid var(--accent-d); outline-offset: 2px; }
.sbox .kh { position: absolute; right: 74px; top: 9px; height: 20px; line-height: 18px; padding: 0 6px; border: 1px solid var(--line2); background: #fff; color: var(--muted); font-size: 12px; pointer-events: none; }
.sbox input:focus ~ .kh, .sbox input:not(:placeholder-shown) ~ .kh { display: none; }

/* 게임 등급 배경 (도감과 같은 그림) */
.gb { background-color: transparent; background-size: cover; background-position: center; }
.gb-Normal { background-image: url(/img/g/normal.webp); } .gb-Rare { background-image: url(/img/g/rare.webp); } .gb-Heroic { background-image: url(/img/g/heroic.webp); }
.gb-Legendary { background-image: url(/img/g/legendary.webp); } .gb-Mythic { background-image: url(/img/g/special.webp); }
.ic.gb { padding: 2px; }
.big.gb { border-color: transparent; padding: 10px; }
/* 목록 표: 가운데 정렬 · 짧은 열 줄바꿈 없음 */
.t td { vertical-align: middle; }
.t .nw { white-space: nowrap; }
/* 또렷한 격자 (도구 결과) */
.t.tgrid td, .t.tgrid th { border: 1px solid var(--line); }
.t.tgrid tbody tr:nth-child(even) { background: #FDFBF6; }
.t.tgrid tbody tr:hover { background: #FFF6E2; }
.t.tgrid .ic { width: 28px; height: 28px; }
.t .ic { width: 30px; height: 30px; }
.t .lk { vertical-align: middle; }

/* 수집 체크리스트 */
.ck-sum { display: grid; gap: 8px; margin-bottom: 12px; }
.ck-bar, .ck-mini { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.ck-bar i, .ck-mini i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.ck-mini { height: 4px; margin: 6px 0 4px; }
.ck-nums { font-size: 15px; }
.ck-eff { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1px 10px; }
.ck-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 12px; position: sticky; top: 64px; background: #FFFCF6; z-index: 5; }
.ck-ctl input[type=search] { flex: 1 1 220px; height: 34px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 10px; font: inherit; }
.ck-ctl select { height: 34px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 8px; font: inherit; background: #fff; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 0 12px; height: 32px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink2); }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button.on { background: var(--accent); color: var(--ink); font-weight: 600; }
.ck-tools { margin-left: auto; display: flex; gap: 12px; }
button.link { border: 0; background: none; color: var(--link); font: inherit; font-size: 13px; cursor: pointer; padding: 0; }
button.link:hover { text-decoration: underline; }
.ck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.ck-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px 8px; }
.ck-card.done { border-color: var(--accent); background: #FFFBEF; }
.ck-card header { display: flex; align-items: baseline; gap: 8px; }
.ck-card header b { font-family: Hahmlet, serif; font-size: 15px; }
.ck-cnt { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink2); }
.ck-row { display: flex; align-items: center; gap: 10px; padding: 6px 6px; border-radius: 8px; cursor: pointer; }
.ck-row:hover { background: var(--soft); }
.ck-row input { width: 18px; height: 18px; accent-color: #D9962A; flex: none; cursor: pointer; }
.ck-row .ic { width: 34px; height: 34px; }
.ck-row.on .ck-name a { color: var(--muted); text-decoration: line-through; }
.ck-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.ck-main small { font-size: 12px; }
@media (max-width: 820px) { .ck-grid { grid-template-columns: 1fr; } .ck-tools { margin-left: 0; } .ck-ctl { top: 56px; } }

/* 긴 표 · 긴 목록 접기 */
.tw.clip { max-height: 480px; overflow: auto; }
.tw.clip.open { max-height: none; }
.tw-more, .more-btn { display: block; margin: -6px 0 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; background: var(--bg); width: 100%; height: 32px; font: 500 13px inherit; color: var(--ink2); cursor: pointer; }
.tw-more:hover, .more-btn:hover { background: #FFF6E2; }
.more { max-height: 150px; overflow: hidden; position: relative; }
.more.over::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, #fff); }
.more.open { max-height: none; } .more.open::after { display: none; }
.more + .more-btn { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 10px; }
/* 탭 */
.tab-btns { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 4px 0 10px; flex-wrap: wrap; }
.tab-btns button { border: 0; background: none; padding: 7px 14px; font: 600 14px inherit; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-btns button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent-d); }
.tabs.js .tab-panel[data-hide] { display: none; }
/* 아이콘 + 글자 정렬 */
.lk { vertical-align: middle; max-width: 100%; }
.lk > img { flex: none; }
ul.rw li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.rwi { display: inline-flex; align-items: center; gap: 4px; }
.t td small { white-space: nowrap; }
.t td { overflow-wrap: anywhere; }
.t td:first-child { min-width: 160px; }
details.card summary { font-family: Hahmlet, serif; }
details.card ul { margin: 8px 0 2px; padding-left: 18px; font-size: 14px; }

.ck-types { margin: 4px 0 12px; flex-wrap: wrap; }
.ck-types a { display: inline-flex; align-items: center; padding: 0 14px; height: 34px; color: var(--ink2); background: #fff; font-size: 14px; }
.ck-types a + a { border-left: 1px solid var(--line2); }
.ck-types a.on { background: var(--accent); color: var(--ink); font-weight: 600; }
.ck-types a:hover { text-decoration: none; background: #FFF6E2; }
.ck-row .ic:not(img) { display: inline-block; width: 0; height: 34px; }
.ck-link { display: inline-block; padding: 4px 12px; border: 1px solid var(--accent); border-radius: 14px; background: #FFF9EC; font-weight: 600; }
.ck-link:hover { text-decoration: none; background: #FFF1D1; }
.tool .ck-row { display: flex; margin: 0; }
.t.narrow { width: auto; min-width: 360px; }
.ic.ph { display: inline-grid; place-items: center; font: 600 12px Hahmlet, serif; color: var(--muted); background: var(--soft); border: 1px dashed var(--line2); }
.t .ic.ph { font-size: 13px; }

/* 단계별 능력치 격자 */
ol.steps { list-style: none; margin: 6px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
ol.steps.multi { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
ol.steps li { border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; background: #fff; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
ol.steps li b { font-size: 11px; color: var(--muted); font-weight: 600; }
ol.steps li b::after { content: '단계'; margin-left: 1px; }
ol.steps li span { font-weight: 600; text-align: right; line-height: 1.35; }
ol.steps.multi li span { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
ol.steps.multi li span small { color: var(--ink2); font-weight: 400; }
ol.steps li:nth-child(10n) { border-color: var(--accent); background: #FFFBEF; }
.tw:has(> .t.narrow) { width: fit-content; max-width: 100%; }

.t.stepT { table-layout: fixed; }
.t.stepT th, .t.stepT td { padding: 5px 8px; font-size: 13px; }
.t.stepT thead th { font-size: 12px; color: var(--ink2); }
.t.stepT tbody th { background: var(--bg); font-weight: 600; text-align: left; white-space: nowrap; width: 96px; }
.t.stepT thead th:first-child { width: 96px; }
.t.stepT td:first-child { min-width: 0; }
.stepT + * {}
.t.narrow td:first-child { min-width: 200px; }
.t.narrow td.n:first-child { min-width: 60px; }

.t td.d1 { max-width: 0; width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink2); }
.fitbox { width: fit-content; max-width: 100%; }
.fitbox .tw-more { width: 100%; }

/* 돌파 시뮬레이터 */
.tr-ctl { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.tool .tr-f { display: flex; flex-direction: column; align-items: stretch; gap: 3px; margin: 0; }
.tr-f span { font-size: 12px; color: var(--muted); font-weight: 600; }
.tool .tr-f select { min-width: 120px; }
#t-p { min-width: 170px; }
.tr-arrow { padding-bottom: 7px; color: var(--muted); }
.tool .tr-chk { margin: 0 0 7px 6px; font-size: 14px; }
.tr-chk input { accent-color: #D9962A; width: 16px; height: 16px; }
.tr-ex { margin: 8px 0 0; }
.tr-stat { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tr-stat div { display: flex; flex-direction: column; gap: 2px; }
.tr-stat b { font-size: 21px; line-height: 1.2; white-space: nowrap; }
.tr-dist { margin: 4px 0 14px; }
.tr-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 110px; align-items: end; margin-top: 6px; }
.tr-bars div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.tr-bars i { display: block; width: 100%; background: linear-gradient(180deg, var(--accent), #F3B43A); border-radius: 4px 4px 0 0; min-height: 2px; }
.tr-bars span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tw.fitw { width: fit-content; max-width: 100%; }
.tool .tw.fitw .t th { text-align: right; }
details.note { border: 0; padding: 0; margin: 10px 0; }
details.note summary { color: var(--muted); font-size: 13px; font-weight: 500; }
details.note ul { margin: 6px 0; padding-left: 18px; color: var(--ink2); }
.tw.fitw .t td:first-child { min-width: 0; }

.tr-mats { margin: 2px 0 12px; }
.mchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.mchip:hover { border-color: var(--accent-d); text-decoration: none; }
.mchip span { display: flex; flex-direction: column; line-height: 1.25; }
.mchip small { font-size: 12px; color: var(--ink2); }
.mchip b { font-size: 17px; font-variant-numeric: tabular-nums; }
td.tmat span { display: inline-flex; align-items: center; gap: 2px; margin-right: 8px; white-space: nowrap; }
td.tmat .ic { width: 22px; height: 22px; }
.tool .tw.fitw .t th.tm { text-align: left; }

/* 콘텐츠 */
ul.notes { margin: 6px 0; padding-left: 20px; } ul.notes li { margin: 3px 0; }
.stage-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.stage { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.stage-h { display: flex; align-items: baseline; justify-content: space-between; } .stage-h b { font-family: Hahmlet, serif; }
.stage-h small, .stage-boss small { color: var(--muted); font-size: 12px; }
.stage-boss { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; }
.stage-boxes { display: flex; flex-direction: column; gap: 4px; border-top: 1px dashed var(--line2); padding-top: 6px; }
.gbox { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.rank { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 12px; color: #fff; background: #8A7A69; flex: none; }
.r-S { background: #D9822B; } .r-A { background: #8E44AD; } .r-B { background: #2F7FC1; } .r-C { background: #4C9A62; }
.ccard { display: flex; gap: 10px; align-items: flex-start; } .ccard .ic { width: 40px; height: 40px; border-radius: 8px; }
.chip.small, small.chip { font-size: 11px; padding: 0 8px; }
.t td.n:first-child { min-width: 0; }
a.gbox { color: var(--ink); padding: 3px 4px; border-radius: 6px; } a.gbox:hover { background: var(--soft); text-decoration: none; }
a.gbox small { margin-left: auto; }

/* 단계 비교표 */
.tw.xs { overflow-x: auto; }
.t.stepcmp { width: auto; min-width: 100%; }
.t.stepcmp th, .t.stepcmp td { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.t.stepcmp thead th { text-align: right; } .t.stepcmp thead th.sticky-l { text-align: left; }
.t.stepcmp .sticky-l { position: sticky; left: 0; background: #fff; z-index: 1; text-align: left; font-weight: 500; min-width: 210px; border-right: 1px solid var(--line); }
.t.stepcmp thead .sticky-l { background: var(--soft); z-index: 2; }
.t.stepcmp tr.meta th, .t.stepcmp tr.meta td { background: var(--bg); color: var(--ink2); font-size: 12px; }
.t.stepcmp td.heat { background: rgba(255, 179, 35, var(--h)); font-weight: 600; font-variant-numeric: tabular-nums; }
.t.stepcmp td.none { color: var(--line2); text-align: center; }
.t.stepcmp tbody tr:hover td.heat { outline: 1px solid var(--accent-d); }

/* 좁은 화면 메뉴 */
.menu-btn { display: none; border: 1px solid var(--line2); background: #fff; border-radius: 8px; width: 38px; height: 38px; font-size: 18px; cursor: pointer; flex: none; }
.side-backdrop { display: none; }
@media (max-width: 820px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .side { display: block; position: fixed; top: 0; left: 0; bottom: 0; width: 280px; max-height: none; z-index: 40; background: #fff; padding: 18px 14px; box-shadow: 0 0 30px rgba(43, 27, 13, .2); transform: translateX(-105%); transition: transform .2s; overflow: auto; }
  body.nav-open .side { transform: none; }
  body.nav-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(43, 27, 13, .3); z-index: 35; }
  .top-in { height: 56px; } .sbox { flex: 1; } .sbox .kh { display: none; }
}
/* 임무 이동 */
.qnav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; margin: 6px 0 14px; }
.qbtn { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--ink); background: #fff; min-width: 0; }
.qbtn:hover { border-color: var(--accent-d); text-decoration: none; }
.qbtn b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .qbtn small { color: var(--muted); }
.qbtn.next { text-align: right; }
.qpos { text-align: center; font-size: 12px; color: var(--muted); align-self: center; line-height: 1.4; } .qpos b { font-size: 16px; color: var(--ink); }
/* 몬스터 카드 */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.mcard { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; color: var(--ink); background: #fff; min-width: 0; }
.mcard:hover { border-color: var(--accent-d); text-decoration: none; }
.mcard img, .mcard .ic { width: 44px; height: 44px; border-radius: 8px; background: var(--soft); object-fit: contain; flex: none; }
.mcard span { display: flex; flex-direction: column; min-width: 0; } .mcard b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mcard small { color: var(--muted); font-size: 12px; }
.mcard.boss { border-color: #F1C66B; background: #FFFBEF; }
/* 최근 본 항목 */
.side-recent { margin-bottom: 16px; }
.side-recent a { display: flex !important; align-items: center; gap: 6px; }
.side-recent img { width: 20px; height: 20px; border-radius: 4px; background: var(--soft); flex: none; }
.side-recent span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stabs { flex-wrap: wrap; margin: 4px 0 10px; } .stabs a { display: inline-flex; align-items: center; padding: 0 12px; height: 32px; font-size: 13px; color: var(--ink2); background: #fff; }
.stabs a + a { border-left: 1px solid var(--line2); } .stabs a.on { background: var(--accent); color: var(--ink); font-weight: 600; } .stabs a:hover { text-decoration: none; background: #FFF6E2; }

/* 장비 비교 */
.cmp-f select { max-width: 300px; }
.t.cmp { table-layout: fixed; }
.t.cmp thead th { vertical-align: bottom; background: #fff; }
.t.cmp thead th:first-child { width: 170px; }
.cmp-h { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: var(--ink); font-weight: 500; }
.cmp-h .ic { width: 48px; height: 48px; } .cmp-h small { color: var(--muted); font-weight: 400; }
.t.cmp tbody th { text-align: left; font-weight: 500; color: var(--ink2); background: var(--bg); }
.t.cmp tr.grp th { background: var(--soft); color: var(--ink); font-weight: 700; font-family: Hahmlet, serif; }
.t.cmp td.best { background: #FFF1D1; font-weight: 700; }

/* 가호 한눈에 · 상점 대표 상품 */
.t.bmat th, .t.bmat td { vertical-align: middle; }
.t.bmat tbody th { text-align: left; font-family: Hahmlet, serif; background: var(--bg); white-space: nowrap; }
.bslots { display: flex; gap: 3px; flex-wrap: wrap; margin-bottom: 3px; }
.bslots .ic, .t.bmat .ic { width: 34px; height: 34px; }
.t.bmat td.cur { background: #FFF1D1; } .t.bmat td.cur .ic { outline: 2px solid var(--accent-d); outline-offset: 1px; }
.t.bmat small { font-size: 11.5px; }
.iconrow { display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; } .iconrow .ic { width: 28px; height: 28px; }

/* 관련 항목 */
ul.relgrid { list-style: none; padding: 0; margin: 6px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; }
ul.relgrid li { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 0; }
ul.attrs li a { color: var(--ink2); } ul.attrs li a:hover { color: var(--link); }
.abrief { display: flex; flex-wrap: wrap; gap: 3px 10px; align-items: baseline; font-size: 13px; } .abrief span { white-space: nowrap; } .abrief b { font-variant-numeric: tabular-nums; }
.rwline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.rwchip { display: inline-flex; align-items: center; gap: 2px; color: var(--ink2); white-space: nowrap; } .rwchip:hover { text-decoration: none; color: var(--link); }
.rwchip .ic { width: 26px; height: 26px; } .rwchip small { font-size: 12px; font-variant-numeric: tabular-nums; } .rwtxt { font-size: 13px; }

/* 광고 자리 — 본문과 구분되게, 튀지 않게 */
.ad { position: relative; margin: 26px 0; }
.ad-l { position: absolute; top: 9px; left: 17px; color: var(--muted); font-size: 11px; letter-spacing: .02em; pointer-events: none; }
/* 광고 자리는 첫 화면 타일(.tile)과 같은 카드 모양 · 본문 폭 */
.ad a { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink2); background: linear-gradient(180deg, #fff, #FFFCF6); }
.ad a:hover { text-decoration: none; border-color: var(--accent-d); }
.ad-img a { padding: 26px 16px 14px; }
.ad-img img { display: block; width: 100%; max-width: 728px; margin: 0 auto; height: auto; aspect-ratio: 728 / 90; object-fit: cover; border-radius: 8px; }
.ad-txt a, .ad-empty a { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; padding: 26px 16px 14px; }
.ad-txt b, .ad-empty b { color: var(--ink); font: 700 17px Hahmlet, serif; }
.ad-txt span, .ad-empty span { font-size: 13px; color: var(--muted); }
.ad-empty i { font-style: normal; margin-left: auto; color: var(--link); font-size: 13px; font-weight: 600; white-space: nowrap; }
.btn.mail { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 700; }
.btn.mail:hover { text-decoration: none; background: var(--accent-d); }
.mail-addr { margin-left: 10px; color: var(--ink2); font-size: 14px; user-select: all; }

/* 게임 목록(/) */
.game-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.game-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; color: var(--ink); }
a.game-card:hover { border-color: var(--accent-d); text-decoration: none; }
.game-card b { font-size: 18px; }
.game-card small { color: var(--muted); margin-left: 4px; }
.game-card span { display: block; color: var(--link); font-weight: 600; margin-top: 2px; }
.game-card p { margin: 8px 0 0; color: var(--ink2); font-size: 14px; }
.game-card.soon { opacity: .6; }

/* 오버워치: 영웅 카드 · 기술 목록 */
.hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.hero-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--line2); border-radius: var(--r); padding: 10px 6px; color: var(--ink); }
.hero-card:hover { border-color: var(--accent-d); text-decoration: none; }
.hero-card img { border-radius: 50%; background: var(--soft); }
.hero-card b { font-size: 14px; }
.hero-card small { color: var(--muted); font-size: 12px; }
.hero-card.r-tank { border-top-color: #3A7BD5; } .hero-card.r-damage { border-top-color: #D9534F; } .hero-card.r-support { border-top-color: #3BAA6E; }
.hero-top { display: flex; gap: 20px; align-items: flex-start; }
.hero-art { width: 220px; max-width: 40%; height: auto; border-radius: var(--r); background: var(--soft); }
.kit { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.kit-i { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.kit-i img, .kit-ph { width: 48px; height: 48px; flex: none; border-radius: 8px; background: #2B2F3A; }
.kit-i p { margin: 4px 0 0; color: var(--ink2); font-size: 14px; }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 9px; background: var(--soft); color: var(--ink2); vertical-align: 1px; }
.tag.t-ultimate { background: #FFF1CC; color: #8A5A00; } .tag.t-weapon { background: #E8EEF8; color: #2C4F8A; } .tag.t-passive { background: #EEE; color: #555; }
@media (max-width: 640px) { .hero-top { flex-direction: column; } .hero-art { max-width: 60%; } }

/* 아주 짧은 첫 열(요일 · 단계 등): 이름 칸 최소 폭을 쓰지 않음 (wiki/html.js table) */
.t td.short:first-child { min-width: 0; }
/* 표 칸 안의 링크(.lk, flex)는 단어 단위로만 줄바꿈: 페이지 전체의 overflow-wrap: anywhere 때문에 칸이 좁으면 이름이 한 글자씩 꺾였음 */
.t td .lk { overflow-wrap: normal; }
