/* 일본어 정보 허브 페이지 (/ja/...) 전용 모양. 색·글꼴·변경 줄 모양은 style.css 를 그대로 씀. */

.hub .top-in { gap: 12px 24px; }
.hub .tabs a[aria-current="page"]::after { bottom: -19px; }

.hub-main { max-width: 1040px; margin: 0 auto; padding: 24px var(--gut) 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; font-size: 12px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.lede { margin: 10px 0 0; color: var(--ink-2); max-width: 46em; }
.sec-title { display: flex; align-items: center; gap: .8rem; margin: 0 0 16px; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; font-size: 1.3rem; }
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hub-sec { margin-top: 44px; scroll-margin-top: 90px; }
.hub-sec > .lede { margin: -6px 0 18px; font-size: 14px; }
.more { margin: 12px 0 0; font-size: 14px; }
.more a { color: var(--accent); }
.draft-badge { display: inline-block; margin-left: 10px; padding: 2px 10px; font-size: 12px; font-weight: 700; color: var(--on-accent); background: var(--accent); border-radius: 999px; vertical-align: middle; }

/* 목차 */
.toc { position: sticky; top: 62px; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 calc(-1 * var(--gut)); padding: 10px var(--gut); background: var(--bg); border-bottom: 1px solid var(--line); font-size: 14px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 14px 0 0; font-size: 12px; color: var(--ink-3); }
.legend .m, .facts .mark, .fact-list .uv { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; font: 700 12px/1 var(--mono); border-radius: 50%; }
.m.ok, .st-ok .mark, .st-official .mark, .st-ingame .mark { background: var(--buff-tint); color: var(--buff); }
.m.unverified, .st-unverified .mark, .fact-list .uv { background: var(--adjust-tint); color: var(--ink-3); }
.m.conflict, .st-conflict .mark { background: var(--nerf-tint); color: var(--nerf); }

/* 영웅 머리 */
.hero-head .aliases { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }

/* 글 */
.prose { max-width: 46em; color: var(--ink-2); line-height: 1.95; }
.prose p { margin: 0 0 .9em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }
.prose ul { margin: 0 0 .9em; padding-left: 1.3em; }
.prose a { color: var(--accent); }
.card.prose { max-width: none; }

/* 기술 카드 */
.ab-grid { display: grid; gap: 14px; }
.ability { scroll-margin-top: 110px; }
.ab-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.ab-head img { width: 44px; height: 44px; padding: 6px; background: var(--icon-bg); border: 1px solid var(--line-2); flex: 0 0 auto; }
.ab-head h3 { margin: 0; font-size: 1.15rem; line-height: 1.4; }
.ab-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }
.ab-sub .slot { color: var(--ink-2); }
.ability .prose { margin-bottom: 12px; }
.ability h4 { margin: 16px 0 6px; font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; }

/* 수치 표 */
.facts { width: 100%; border-collapse: collapse; font-size: 14px; }
.facts th, .facts td { padding: 8px 10px 8px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.facts thead th { padding-top: 0; border-top: 0; font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
.facts tbody th { color: var(--ink-2); width: 38%; }
.facts .v { font-family: var(--mono); font-weight: 700; font-size: 15px; white-space: nowrap; width: 22%; font-variant-numeric: tabular-nums; }
.facts .chk { display: flex; align-items: flex-start; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.facts .chk a { color: var(--ink-2); }
.facts .mode { margin-left: 8px; }
.st-conflict .v { color: var(--nerf); }
.facts tr.cf-note { display: none; }
.facts tr.cf-note td { padding-top: 0; border-top: 0; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.fact-list { margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: 14px; line-height: 1.85; }
.fact-list li::marker { color: var(--ink-3); }
.fact-list .uv { width: 16px; height: 16px; margin: 0 0 0 6px; font-size: 11px; vertical-align: 1px; }

/* 기술별 최근 변경 */
.recent-ch { list-style: none; margin: 0; padding: 0; }
.recent-ch > li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); }
.recent-ch > li:first-child { border-top: 0; }
.when-s { padding-top: 7px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); text-decoration: none; }
.when-s:hover { color: var(--accent); }

/* 패치 */
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.pager a { color: var(--ink-2); }
.hub-list { max-width: 760px; }

/* 목록 */
.hub .role-block { margin-top: 28px; }
.hub .grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.tile.has-page { border-color: var(--accent); }
.tile.has-page span { color: var(--ink); font-weight: 700; }

@media (max-width: 640px) {
  /* 좁은 화면: 목차를 한 줄로 두고 옆으로 밀어서 보게 (두 줄이 되면 제목을 가림) */
  .toc { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  /* 좁은 화면: 확인 칸은 표시(✓ ? !)만, 자료마다 다른 줄만 설명을 보여 줌 */
  .facts tbody th { width: auto; }
  .facts thead th:last-child { font-size: 0; }
  .facts .chk { display: table-cell; width: 26px; padding-right: 0; }
  .facts .chk > span:last-child { display: none; }
  .facts tr.cf-note { display: table-row; }
  .recent-ch > li { grid-template-columns: 1fr; gap: 0; }
}

/* ── 영웅 페이지: 처음엔 핵심만, 누르면 펼침 ───────────────── */
.hh { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 22px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.hh > img { width: 104px; height: 104px; object-fit: cover; object-position: top; background: var(--portrait-bg); border: 1px solid var(--line); }
.hh h1 { margin: 2px 0 0; font-family: var(--display); font-weight: 800; letter-spacing: -.025em; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; }
.tagline { margin: 4px 0 0; color: var(--ink-2); }
.hh-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hh-stats .kvs { display: contents; }
.sec-title small { font-family: var(--body); font-size: 12px; font-weight: 400; color: var(--ink-3); }
.hub-sec { margin-top: 32px; }

/* 수치 칩: 항목 값 ✓ */
.kvs { display: flex; flex-wrap: wrap; gap: 6px; }
.kv { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 10px; border: 1px solid var(--line-2); font-size: 13px; line-height: 1.5; white-space: nowrap; }
.kv .k { color: var(--ink-3); font-size: 12px; }
.kv b { font-family: var(--mono); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.kv b a { text-decoration: none; }
.kv b a:hover { color: var(--accent); }
.kv .tally { font-size: 14px; gap: 8px; padding-right: 4px; }
.kv.st-conflict { border-color: var(--nerf); }
.kv.st-conflict b { color: var(--nerf); }

/* 확인 표시 + 마우스오버 풍선 */
.ck { position: relative; display: inline-grid; place-items: center; width: 17px; height: 17px; font: 700 11px/1 var(--mono); border-radius: 50%; cursor: help; flex: 0 0 auto; }
.ck.st-ok, .ck.st-official, .ck.st-ingame { background: var(--buff-tint); color: var(--buff); }
.ck.st-unverified { background: var(--adjust-tint); color: var(--ink-3); }
.ck.st-conflict { background: var(--nerf-tint); color: var(--nerf); }
.ck.sm { width: 15px; height: 15px; font-size: 10px; margin-left: 6px; vertical-align: 1px; }
.ck[data-tip]:hover::after, .ck[data-tip]:focus::after {
  content: attr(data-tip); position: absolute; z-index: 20; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: min(280px, 80vw); padding: 7px 10px; white-space: normal; text-align: left;
  font: 400 12px/1.6 var(--body); color: var(--ink); background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.ck:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); }

/* 접었다 펴는 카드 */
.ab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
details.ab { padding: 0; }
details.ab > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
details.ab > summary::-webkit-details-marker { display: none; }
details.ab > summary:hover { background: var(--panel-2); }
details.ab > summary > img, details.ab .noicon { width: 40px; height: 40px; padding: 5px; background: var(--icon-bg); border: 1px solid var(--line-2); }
details.ab .noicon { display: block; }
.ab-main { display: grid; gap: 8px; min-width: 0; }
.ab-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ab-name b { font-size: 16px; }
.ab-name .slot { font-size: 12px; color: var(--ink-3); }
.ab-main .kv { padding: 1px 5px 1px 8px; font-size: 12px; }
.ab-main .kv b { font-size: 13px; }
.tw { width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); margin: 0 4px 4px 0; transition: transform .15s; }
details[open] > summary .tw { transform: rotate(-135deg); margin: 4px 4px 0 0; }
.ab-more { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.ab-more .prose { margin: 12px 0 8px; font-size: 14px; }
.ab-more h4 { margin: 14px 0 4px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.ab-more .facts { margin-top: 6px; }
.facts .c { width: 24px; text-align: right; padding-right: 0; }
.ab-more .fact-list { margin-top: 10px; font-size: 13px; }

/* 파크: 마이너 / 메ジャー 두 줄 */
.perk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; align-items: start; }
.perk-col { display: grid; gap: 8px; }
.perk-col .label { margin: 0 0 2px; }

/* 패치 이력: 한 줄씩, 누르면 변경 내용 */
.hist { border-top: 1px solid var(--line); }
details.hrow { border-bottom: 1px solid var(--line); border-left: 2px solid var(--adjust); }
details.hrow.net-buff { border-left-color: var(--buff); }
details.hrow.net-nerf { border-left-color: var(--nerf); }
details.hrow.net-mixed { border-image: linear-gradient(var(--buff) 50%, var(--nerf) 50%) 1; }
details.hrow > summary { display: grid; grid-template-columns: 100px 84px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; }
details.hrow > summary::-webkit-details-marker { display: none; }
details.hrow > summary:hover { background: var(--panel-2); }
details.hrow .d { font-family: var(--mono); font-weight: 700; }
details.hrow .tally { font-size: 13px; }
details.hrow .what { color: var(--ink-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow-more { padding: 4px 16px 14px; }
.hrow-more .more { margin-top: 8px; font-size: 13px; }

.hub .legend { display: block; margin-top: 28px; font-size: 12px; color: var(--ink-3); line-height: 2; }
.hub .legend .ck { margin: 0 2px 0 8px; cursor: default; }
.hub .legend .ck:first-child { margin-left: 0; }

@media (max-width: 760px) {
  .ab-grid, .perk-grid { grid-template-columns: 1fr; }
  .hh { grid-template-columns: 72px minmax(0, 1fr); align-items: start; }
  .hh > img { width: 72px; height: 72px; }
  details.hrow > summary { grid-template-columns: 84px auto minmax(0, 1fr) auto; gap: 8px; padding: 10px 10px; }
  details.hrow .d { font-size: 13px; }
}
details.ab.plain > summary { grid-template-columns: minmax(0, 1fr) auto; }

/* ── 키워드 색 강조 ({+…} 초록 / {-…} 빨강 / {!…} 보라 / {=…} 주황, 기술 이름·숫자는 자동) ── */
:root { --cc: #B48CFF; --cc-tint: rgba(180, 140, 255, .14); }
html[data-theme="light"] { --cc: #7C4DDB; --cc-tint: rgba(124, 77, 219, .1); }
.kw { font-weight: 700; }
.kw-good { color: var(--buff); }
.kw-bad { color: var(--nerf); }
.kw-cc { color: var(--cc); background: var(--cc-tint); padding: 0 3px; }
.kw-key { color: var(--accent); }
a.kw-ab { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); }
a.kw-ab:hover { border-bottom-style: solid; }
.legend .kw { margin-right: 8px; font-size: 12px; }
b.num { font-family: var(--mono); font-weight: 700; color: var(--ink); }
.tagline b.num, .prose b.num, .fact-list b.num { font-size: .95em; }

/* 아이콘 없는 카드(패시브)의 표시 */
details.ab .noicon { display: grid; place-items: center; }
details.ab .noicon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.role-line a { color: inherit; text-decoration: none; }
.role-line a:hover { text-decoration: underline; }


/* 위쪽 메뉴: 패치 기록 화면과 같은 모양 (언어 알약 + 밝기 버튼) */
.top-gap { flex: 1 1 auto; }
.pill a { border-radius: 999px; padding: 5px 10px; min-width: 34px; text-align: center; font-size: 13px; font-weight: 500; line-height: 1.2; color: var(--ink-3); text-decoration: none; }
.pill a:hover { color: var(--ink); }
.pill a[aria-current] { background: var(--ink); color: var(--bg); font-weight: 700; }
@media (max-width: 640px) { .top-gap { display: none; } .pill a { padding: 5px 9px; } }

/* 생명력 막대 (게임 화면 색: 라이프 흰색 · 아머 주황 · 실드 파랑, 25마다 한 칸) */
.hpbar { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.hp-total { flex: 0 0 auto; white-space: nowrap; font: 700 1.6rem/1 var(--mono); letter-spacing: -.02em; }
.hp-pips { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 2px; transform: skewX(-12deg); max-width: 100%; }
.hp-pips i { width: 9px; height: 15px; border-radius: 1px; }
.hp-pips .hp, .hp-dot.hp { background: #F4F4F4; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.hp-pips .armor, .hp-dot.armor { background: #FFB13B; }
.hp-pips .shield, .hp-dot.shield { background: #5CC8FF; }
.hp-pips .bonus, .hp-dot.bonus { background: transparent; box-shadow: inset 0 0 0 1.5px #F4F4F4; opacity: .7; }
html[data-theme="light"] .hp-pips .hp, html[data-theme="light"] .hp-dot.hp { background: #fff; box-shadow: inset 0 0 0 1px #8A8A8A; }
html[data-theme="light"] .hp-pips .bonus, html[data-theme="light"] .hp-dot.bonus { box-shadow: inset 0 0 0 1.5px #8A8A8A; }
.hp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.hp-k { display: inline-flex; align-items: center; gap: 6px; }
.hp-k b { font-family: var(--mono); color: var(--ink); }
.hp-dot { display: inline-block; width: 9px; height: 12px; transform: skewX(-12deg); }
@media (max-width: 640px) { .hp-pips i { width: 7px; height: 13px; } .hp-total { font-size: 1.35rem; } }
/* 좁은 화면: 출처 풍선이 화면 밖으로 잘리지 않게 아래쪽에 고정해서 보여 줌 (위의 풍선 규칙보다 뒤에 있어야 적용됨) */
@media (max-width: 640px) {
  .ck[data-tip]:hover::after, .ck[data-tip]:focus::after { position: fixed; left: 12px; right: 12px; bottom: 16px; transform: none; width: auto; max-width: none; }
}

/* 익명 게시판 (/board/, 화면은 board.js) */
.talk { margin: 10px 0 0; font-size: 14px; }
.talk a { color: var(--accent); text-decoration: none; }
.talk a:hover { text-decoration: underline; }
.board { margin-top: 18px; }
.b-actions { margin: 0 0 14px; }
.b-btn { display: inline-block; padding: 9px 18px; border: 0; border-radius: 999px; background: var(--accent); color: #000; font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.b-btn:disabled { opacity: .5; cursor: wait; }
.b-filter { font-size: 14px; color: var(--ink-2); }
.b-filter a:last-child { margin-left: 10px; font-size: 13px; color: var(--ink-3); }
.b-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.b-list li { border-bottom: 1px solid var(--line); }
.b-list a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; padding: 12px 4px; text-decoration: none; color: var(--ink); }
.b-list a:hover { background: var(--panel-2); }
.b-t { font-weight: 600; }
.b-n { color: var(--accent); font-family: var(--mono); font-weight: 700; }
.b-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.b-rules { margin-top: 18px; font-size: 12px; color: var(--ink-3); }
.b-post h2 { margin: 4px 0 10px; font-size: 1.3rem; }
.b-topic { margin: 0; font-size: 13px; }
.b-topic a { color: var(--accent); text-decoration: none; }
.b-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--ink-3); }
.b-no { font-family: var(--mono); font-weight: 700; color: var(--ink-2); }
.b-name { color: var(--buff); font-weight: 600; }
.b-uid, .b-time { font-family: var(--mono); font-size: 12px; }
.b-tools { margin-left: auto; display: inline-flex; gap: 6px; }
.b-tools button { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; color: var(--ink-3); font: inherit; font-size: 12px; cursor: pointer; }
.b-tools button:hover { color: var(--ink); }
.b-tools .danger { color: var(--nerf); border-color: var(--nerf); }
.b-body { margin-top: 8px; line-height: 1.8; overflow-wrap: anywhere; }
.b-body a { color: var(--accent); }
.b-comments { list-style: none; margin: 14px 0; padding: 0; }
.b-c { padding: 12px 4px; border-bottom: 1px solid var(--line); }
.b-c.gone { color: var(--ink-3); font-size: 13px; }
.b-c.gone .b-no { margin-right: 10px; }
.b-form { display: grid; gap: 12px; margin-top: 16px; }
.b-form label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.b-form input, .b-form textarea, .b-form select { width: 100%; box-sizing: border-box; padding: 9px 11px; background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 15px; }
.b-form input:focus, .b-form textarea:focus, .b-form select:focus { outline: none; border-color: var(--accent); }
.b-form .b-namefield { max-width: 260px; }
.b-err { margin: 0; color: var(--nerf); font-size: 14px; }
.b-form .b-btn { justify-self: start; }
