/* Faust Play 사이트 공통 스타일 — 외부 글꼴·스크립트 없음 (개인정보처리방침 "사이트는 추적 없음"과 맞춤) */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1c1e23;
  --muted: #5a5f6a;
  --line: #e2e0da;
  --accent: #5b43c9;
  --accent-soft: #eeeafd;
  --gold: #a07a2c;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171c;
    --surface: #1e222a;
    --text: #eceef2;
    --muted: #a2a8b4;
    --line: #2d323c;
    --accent: #b6a3ff;
    --accent-soft: #2a2540;
    --gold: #d4b06f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
:lang(ko) body, body:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* 머리글 */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand img { border-radius: 7px; }
.site-header nav { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }

/* 본문 */
main { padding-top: 32px; padding-bottom: 48px; }
h1 { font-size: 30px; line-height: 1.3; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 22px; line-height: 1.35; margin: 40px 0 12px; }
h3 { font-size: 18px; margin: 24px 0 8px; }
p, ul, ol, table { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.muted { color: var(--muted); }
.lead { font-size: 19px; color: var(--muted); }
.small { font-size: 14px; }

.hero { padding: 16px 0 8px; }

/* 게임 카드 */
.game-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--text); text-decoration: none;
}
.game-card:hover { border-color: var(--accent); }
.game-card h3 { margin: 0 0 4px; font-size: 20px; }
.game-card p { margin: 0 0 8px; color: var(--muted); }
.game-icon { border-radius: 22%; flex: none; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600;
}

/* 게임 소개 머리 */
.game-head { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
.game-head h1 { margin: 0; }

/* 문서(개인정보처리방침) */
.doc h2 { font-size: 20px; margin-top: 32px; }
.doc h3 { font-size: 17px; }
.meta { color: var(--muted); font-size: 15px; }
.note { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.table-scroll { overflow-x: auto; margin: 0 0 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { font-weight: 600; }
.table-scroll table { margin: 0; min-width: 520px; }

/* 바닥글 */
footer { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; gap: 8px 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 25px; }
  .game-card { padding: 14px; gap: 12px; }
  .game-icon { width: 56px; height: 56px; }
}
