/* 데이터북 머리말·메뉴 (데이터북 app.css 의 header.top · nav.tabs 규칙을 옮김). 데이터북용 묶음에만 들어가고, 색은 theme_databook.css 값을 써요.
   장비 정리 화면과 이름이 겹치지 않게 .dbshell 안에서만 써요. */
:root{--db-point:#D9A514}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--db-point:#F2C440}}
:root[data-theme="dark"]{--db-point:#F2C440}
.dbshell{background:var(--bg);color:var(--ink)}
.dbshell .dbwrap{max-width:1240px;margin:0 auto;padding-inline:20px}
.dbshell .dbtop{padding-block:28px 14px;display:flex;flex-wrap:wrap;gap:8px 24px;align-items:flex-end;justify-content:space-between}
.dbshell .dbtop>div{min-width:0}
.dbshell .dbtop h1{font-weight:700;font-size:clamp(26px,4vw,38px);line-height:1.15;margin:0;letter-spacing:-.01em}
.dbshell .dbtop h1 a{display:inline-flex;align-items:center;gap:12px;color:inherit;text-decoration:none}
.dbshell .dbtop .star{color:var(--db-point)}
.dbshell .mk-av{width:52px;height:52px;border-radius:50%;overflow:hidden;flex:none;background:var(--pale);box-shadow:0 0 0 1.5px var(--line)}
.dbshell .mk-av img{width:100%;height:100%;object-fit:cover;transform:scale(1.12);display:block}
.dbshell .mk-sub{margin:2px 0 0 64px;font-size:13.5px;color:var(--muted)}
.dbshell .meta{font-size:12px;color:var(--muted);text-align:right}
.dbshell .thtg{font:500 12px inherit;font-family:inherit;border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:999px;padding:3px 10px;cursor:pointer}
.dbshell .thtg:hover{color:var(--ink)}
.dbshell nav.dbtabs{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:var(--bg);border-bottom:1px solid var(--line);display:flex;gap:2px;overflow-x:auto;padding-block:8px 0;scrollbar-width:thin}
.dbshell nav.dbtabs a{display:inline-block;text-decoration:none;line-height:normal;font-weight:600;font-size:14px;color:var(--muted);border-bottom:3px solid transparent;padding:8px 12px 10px;white-space:nowrap}
.dbshell nav.dbtabs a:hover{color:var(--ink)}
.dbshell nav.dbtabs a[aria-current="page"]{color:var(--ink);border-bottom-color:var(--blue)}
.dbshell nav.dbtabs a:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.dbshell nav.dbtabs .sep{width:1px;background:var(--line);margin:8px 6px 12px;flex:none}
/* PC: 데이터북 메뉴와 같게(17칸이 1200px 한 줄에 들어가게 칸 옆 여백을 줄임, 언어마다 데이터북 95~98_lang_*.css 와 같은 값) */
@media (min-width:900px){
  .dbshell nav.dbtabs a{padding-left:9px;padding-right:9px}
  html[lang="ja"] .dbshell nav.dbtabs a{padding-left:6px;padding-right:6px;font-size:13px}
  html[lang="zh-Hans"] .dbshell nav.dbtabs a,html[lang="zh-Hant"] .dbshell nav.dbtabs a{padding-left:8px;padding-right:8px}
  html[lang="en"] .dbshell nav.dbtabs{flex-wrap:wrap;overflow:visible}
  html[lang="en"] .dbshell nav.dbtabs .sep:nth-of-type(2){flex-basis:100%;height:0;margin:0;background:none}
}
@media (min-width:900px) and (max-width:1099px){html[lang="en"] .dbshell nav.dbtabs a{padding-left:5px;padding-right:5px}}
@media (max-width:899px){html[lang="en"] .dbshell nav.dbtabs{scrollbar-width:none}html[lang="en"] .dbshell nav.dbtabs::-webkit-scrollbar{display:none}}
@media (max-width:760px){.dbshell .mk-sub{display:none}.dbshell .mk-av{width:42px;height:42px}.dbshell .dbtop h1 a{gap:10px}}
@media (max-width:640px){.dbshell .dbwrap{padding-inline:16px}.dbshell .dbtop{padding-block:14px 6px;gap:4px 12px}.dbshell .dbtop h1{font-size:23px}.dbshell .thtg{min-height:32px}}
/* 기준 게임 버전·언어 목록 (데이터북 빌드가 머리말을 채울 때 들어와요. 데이터북 08_lightbox.css · 09_mobile.css 와 같은 모양) */
.dbshell .meta>span:first-child{font-family:"IBM Plex Mono",Consolas,monospace}
.dbshell .lgw{position:relative;display:inline-block;vertical-align:top}
.dbshell .lgb{display:inline-flex;align-items:center;gap:4px;margin:6px 6px 0 0;vertical-align:top;font:500 12px inherit;font-family:inherit;border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:999px;padding:3px 10px;cursor:pointer;text-decoration:none}
.dbshell .lgb:hover{color:var(--ink)}
.dbshell .lgb svg{fill:none;stroke:currentColor;stroke-width:1.3;flex:none}
.dbshell .lgb .lgc{font-size:9px;margin-left:1px;opacity:.7}
.dbshell .lgm{position:absolute;right:6px;top:calc(100% + 4px);z-index:60;display:flex;flex-direction:column;min-width:9.5em;padding:4px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 6px 20px rgba(0,0,0,.14);text-align:left}
.dbshell .lgm[hidden]{display:none}
.dbshell .lgm a{display:block;padding:7px 10px;border-radius:6px;font-size:13px;font-weight:500;color:var(--ink);text-decoration:none;white-space:nowrap}
.dbshell .lgm a:hover,.dbshell .lgm a:focus-visible{background:var(--line)}
.dbshell .thtg{margin-top:6px}
@media (max-width:640px){.dbshell .meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:11.5px;text-align:left}
  .dbshell .meta br{display:none}.dbshell .meta .thtg,.dbshell .meta .lgb{margin:0;min-height:32px}.dbshell .lgm{left:0;right:auto}}
/* 메뉴 줄이 옆으로 넘칠 때 더 있다는 표시 (데이터북과 같음) */
.dbshell nav.dbtabs.more-r::after,.dbshell nav.dbtabs.more-l::before{position:sticky;flex:none;width:30px;display:flex;align-items:center;font:600 20px/1 inherit;font-family:inherit;color:var(--blue);pointer-events:none;z-index:2;padding-bottom:4px}
.dbshell nav.dbtabs.more-r::after{content:'\203A';right:0;margin-left:-30px;justify-content:flex-end;background:linear-gradient(to right,transparent,var(--bg) 60%)}
.dbshell nav.dbtabs.more-l::before{content:'\2039';left:0;margin-right:-30px;justify-content:flex-start;background:linear-gradient(to left,transparent,var(--bg) 60%)}
/* 데이터북 안에서는 장비 정리 화면 폭을 데이터북과 맞춰요 */
.web .shell{max-width:1240px;padding:16px 20px 60px}
@media (max-width:640px){.web .shell{padding:12px 16px 48px}}
.web .shell>header.top h1{font-size:22px}
