/* 게임 위키. 색은 game.css 와 같은 토큰 */
:root { --bg: #e8ece5; --paper: #fbfbf5; --ink: #17212a; --sub: #55616a; --rule: #c4cfc7; --print: #1c5a43; --pencil: #b3301e; --mono: ui-monospace, "SFMono-Regular", Consolas, "D2Coding", "Malgun Gothic", monospace; }
@media (prefers-color-scheme: dark) { :root { --bg: #0a100e; --paper: #131b18; --ink: #eae8dc; --sub: #9aa7a0; --rule: #2a3a33; --print: #86cfae; --pencil: #ff9079; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
.wrap { max-width: 40rem; margin: 0 auto; min-height: 100vh; padding: 0 16px 32px; background: var(--paper); border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
a { color: var(--print); }
:focus-visible { outline: 2px solid var(--pencil); outline-offset: 2px; }
.top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin: 0 -16px; padding: 0 16px; border-bottom: 2px solid var(--ink); }
.top a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-weight: 700; text-decoration: none; }
.top .home { font: 800 16px var(--mono); }
.search { padding: 12px 0 4px; }
.search input { width: 100%; min-height: 44px; padding: 0 12px; font: inherit; color: inherit; background: var(--paper); border: 1.5px solid var(--rule); border-radius: 4px; }
h1 { margin: 20px 0 6px; font-size: 24px; line-height: 1.35; letter-spacing: -.3px; }
h2 { margin: 28px 0 10px; padding-bottom: 6px; font-size: 18px; border-bottom: 1.5px solid var(--print); color: var(--print); }
h2.cat { margin: 14px 0 4px; font-size: 16px; border: 0; }
.lead { margin: 0 0 12px; color: var(--sub); }
.sub { color: var(--sub); font-weight: 400; }
details.toc, details.fold { margin: 12px 0; border: 1px solid var(--rule); border-radius: 4px; padding: 0 12px; }
summary { min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
details ul, details ol { margin: 0 0 10px; padding-left: 20px; }
details.toc a, a.more { display: flex; align-items: center; min-height: 44px; }
ul, ol { padding-left: 20px; }
dl { margin: 0; }
dt { margin-top: 14px; font-weight: 800; }
dd { margin: 2px 0 0; }
.note { margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--print); background: color-mix(in srgb, var(--rule) 30%, transparent); }
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--sub); }
html[lang="en"] th, html[lang="en"] td { overflow-wrap: normal; } /* 영어는 칸이 좁아도 낱말 가운데를 끊지 않고 표 상자 안에서 옆으로 민다 */
.cards { display: grid; gap: 8px; }
.card { display: flex; flex-direction: column; gap: 2px; padding: 12px; min-height: 44px; border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; color: var(--ink); }
.card span { color: var(--sub); }
.foot { margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--sub); }
[hidden] { display: none !important; }
