/* 글 페이지 (게임 설명서 · 소개 · 개인정보처리방침 · 문의) 공통 모양. 색은 hub.css 와 같은 파스텔 */
:root {
  --bg: #fffdfa;
  --card: #ffffff;
  --text: #2f3550;
  --muted: #6f7593;
  --line: #ece8f4;
  --accent: #7b68e6;
  --pink: #ffd6e5;
  --sky: #d6ecff;
  --mint: #d4f5e6;
  --butter: #fff1c2;
  --shadow: 0 12px 30px rgba(112, 98, 164, .10);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background:
    radial-gradient(ellipse 55% 30% at 8% 0%, var(--pink) 0%, transparent 70%),
    radial-gradient(ellipse 50% 28% at 95% 4%, var(--sky) 0%, transparent 70%);
  background-color: var(--bg);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--accent); }
.top { max-width: 820px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 18px) 16px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.top .home { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid var(--line); color: var(--text); font-weight: 800; font-size: 14px; text-decoration: none; box-shadow: 0 6px 16px rgba(120,110,170,.08); }
.top .home:hover { border-color: #cfc6f1; }
.top nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { padding: 6px 10px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.top nav a[aria-current="page"], .top nav a:hover { background: rgba(255,255,255,.8); color: var(--text); }

main.doc { max-width: 820px; margin: 0 auto; padding: 18px 16px 48px; }
.doc h1 { margin: 10px 0 6px; font-size: clamp(26px, 6vw, 36px); font-weight: 900; letter-spacing: -1px; line-height: 1.3; }
.doc .lead { margin: 0 0 22px; color: var(--muted); font-size: 16px; }
.doc h2 { margin: 30px 0 10px; font-size: 20px; font-weight: 900; letter-spacing: -.4px; display: flex; align-items: center; gap: 8px; }
.doc h3 { margin: 18px 0 6px; font-size: 16px; font-weight: 800; }
.doc p, .doc li { font-size: 15.5px; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 8px 0; }
.doc li { margin: 4px 0; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); margin: 14px 0; }
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th, table.t td { text-align: left; vertical-align: top; padding: 9px 8px; border-bottom: 1px solid var(--line); }
table.t th { width: 32%; font-weight: 800; color: #4b4f6b; }
@media (max-width: 560px) {
  table.t, table.t tbody, table.t tr, table.t th, table.t td { display: block; width: 100%; }
  table.t th { border-bottom: 0; padding-bottom: 0; }
}

/* 게임 설명서 */
.g-hero { display: flex; gap: 16px; align-items: center; margin: 8px 0 18px; }
.g-art { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 24px; background: color-mix(in srgb, var(--c, #e3dcff) 22%, #fff); display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow); }
.g-art svg { width: 100%; height: 100%; }
.g-hero h1 { margin: 0 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { margin: 0; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: #5b5f7c; }
.play-btn { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 4px; padding: 13px 22px; border-radius: 16px; background: linear-gradient(90deg, #ff8fb8, #a98bff); color: #fff; font-weight: 900; font-size: 16px; text-decoration: none; box-shadow: 0 10px 24px rgba(169,139,255,.32); }
.play-btn:hover { filter: brightness(1.05); }
.ctrl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .ctrl { grid-template-columns: 1fr; } }
.ctrl .box { margin: 0; }
.modes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.modes .box { margin: 0; padding: 12px 14px; }
.modes b { display: block; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq details p { margin: 8px 0 2px; }

/* 설명서 목록 */
.glist { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 16px 0; padding: 0; list-style: none; }
.glist a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: var(--shadow); height: 100%; }
.glist a:hover { border-color: #cfc6f1; }
.glist .g-art { width: 56px; height: 56px; border-radius: 16px; box-shadow: none; }
.glist b { display: block; font-size: 16px; }
.glist span.s { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.cat { margin-top: 26px; }

/* 문의 */
form.contact { display: grid; gap: 12px; }
form.contact label { font-weight: 800; font-size: 14px; display: grid; gap: 6px; }
form.contact select, form.contact input, form.contact textarea { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 1px solid #ddd6ee; background: #fff; color: var(--text); width: 100%; }
form.contact textarea { min-height: 150px; resize: vertical; }
form.contact button { justify-self: start; border: 0; border-radius: 14px; padding: 12px 22px; background: var(--accent); color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
form.contact button:disabled { opacity: .55; cursor: default; }
.msg { min-height: 1.5em; font-weight: 700; }
.msg.ok { color: #1f8f5f; }
.msg.err { color: #c43d5c; }

footer.site { max-width: 820px; margin: 0 auto; padding: 18px 16px calc(env(safe-area-inset-bottom) + 30px); color: var(--muted); font-size: 13px; text-align: center; border-top: 1px solid var(--line); }
footer.site nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 6px; }
footer.site a { color: var(--muted); font-weight: 700; text-decoration: none; }
footer.site a:hover { color: var(--text); text-decoration: underline; }
.doc .glist, .doc .chips { padding: 0; }
@media (max-width: 480px) {
  .g-hero { align-items: flex-start; gap: 12px; }
  .g-hero > .g-art { width: 72px; height: 72px; border-radius: 18px; }
}
