/* 필객 홈페이지 — 먹과 한지, 인주 빨강 하나. build.py 가 asset 자리를 판 붙은 주소로 바꿔 css/site.css 로 낸다(이 파일을 고친다). */

@font-face {
  font-family: "Pilgaek Brush";
  src: url("../fonts/pilgaek-brush.woff2?v=9649d7fa") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pilgaek Serif";
  src: url("../fonts/pilgaek-serif.woff2?v=f110c001") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pilgaek Serif";
  src: url("../fonts/pilgaek-serif-bold.woff2?v=4b85271f") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3ede2;
  --paper-hi: #faf6ef;
  --paper-deep: #e9e0cf;
  --paper-edge: #ddd1bb;
  --ink: #1b1915;
  --ink-2: #3b362f;
  --ink-3: #6b6358;
  --ink-4: #9a9184;
  --rule: rgba(27, 25, 21, 0.14);
  --rule-2: rgba(27, 25, 21, 0.28);
  --seal: #bc2418;
  --seal-deep: #93180f;
  --seal-wash: rgba(188, 36, 24, 0.08);
  --gold: #9c7a33;
  --ok: #2f5d3a;
  --shadow: 0 1px 0 rgba(27, 25, 21, 0.05), 0 14px 32px -22px rgba(27, 25, 21, 0.45);
  --radius: 4px;
  --maxw: 1120px;
  --gutter: 20px;
  --font-brush: "Pilgaek Brush", "Nanum Brush Script", "Pilgaek Serif", serif;
  --font-body: "Pilgaek Serif", "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-image: url("../img/hanji.webp?v=0503e36c");
  background-size: 512px 512px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--seal); }

:focus-visible { outline: 3px solid rgba(188, 36, 24, 0.55); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 0.6em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.brush { font-family: var(--font-brush); font-weight: 400; letter-spacing: 0; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper-hi); padding: 8px 14px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ─── 낙관(인주 도장) ─── */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--seal); color: #fff6ec;
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px rgba(255, 246, 236, 0.28);
  line-height: 1;
}
.seal-sm {
  writing-mode: vertical-rl;
  width: 1.75rem; height: 2.4rem; font-size: 0.95rem; padding: 2px 0;
  transform: rotate(-3deg);
}
.seal-lg {
  writing-mode: vertical-rl;
  font-size: 0.3em; width: 1.6em; height: 2.4em; padding: 0.1em 0; margin: 0.5em 0 0 0.3em;
  transform: rotate(-4deg); flex: none;
}
.seal-badge { font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; padding: 0.35em 0.75em; letter-spacing: 0.08em; transform: rotate(-2deg); }
.tag-seal {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--seal); border: 1.5px solid currentColor; border-radius: 3px; padding: 0.05em 0.5em; line-height: 1.5;
}
.tag-seal.t-update { color: var(--ink-2); }
.tag-seal.t-maint { color: var(--gold); }

/* ─── 단추 ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  min-height: 44px; padding: 0.55em 1.25em;
  font: 700 1rem/1.2 var(--font-body);
  color: var(--ink); background: transparent;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -10px rgba(27, 25, 21, 0.6); color: var(--ink); }
.btn:active { transform: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-seal { background: var(--seal); border-color: var(--seal); color: #fff8f0; }
.btn-seal:hover { background: var(--seal-deep); border-color: var(--seal-deep); color: #fff8f0; }
.btn-ink { background: var(--ink); color: var(--paper-hi); }
.btn-ink:hover { background: #000; color: var(--paper-hi); }
.btn-line { background: rgba(250, 246, 239, 0.6); }
.btn-lg { min-height: 52px; padding: 0.7em 1.6em; font-size: 1.05rem; }
.btn-sm { min-height: 34px; padding: 0.3em 0.8em; font-size: 0.9rem; }
.btn-text {
  border: 0; background: none; padding: 0.2em 0.35em; min-height: 32px;
  color: var(--ink-3); font: 400 0.92rem var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em;
}
.btn-text:hover { color: var(--seal); }
.btn-text.is-danger { color: var(--seal); }

/* ─── 머리 ─── */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(243, 237, 226, 0.94);
  border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-t { font-size: 2.2rem; line-height: 1; padding-top: 4px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; text-decoration: none; font-weight: 700; border-radius: var(--radius); }
.nav a[aria-current="page"] { color: var(--seal); box-shadow: inset 0 -2px 0 var(--seal); border-radius: 0; }
.nav .nav-join { margin-left: 8px; padding: 0.45em 1em; min-height: 40px; }
.nav .nav-join:hover { color: #fff8f0; }
.nav-btn {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1.5px solid var(--ink); border-radius: var(--radius); background: transparent; cursor: pointer; position: relative;
}
.nav-btn-bars, .nav-btn-bars::before, .nav-btn-bars::after {
  position: absolute; left: 11px; width: 19px; height: 2px; background: var(--ink); content: ""; border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-btn-bars { top: 20px; }
.nav-btn-bars::before { top: -6px; left: 0; }
.nav-btn-bars::after { top: 6px; left: 0; }
.top.is-open .nav-btn-bars { background: transparent; }
.top.is-open .nav-btn-bars::before { transform: translateY(6px) rotate(45deg); }
.top.is-open .nav-btn-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ─── 첫 쪽: 영웅 ─── */
.hero { position: relative; overflow: hidden; padding: 48px 0 24px; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40px -10%; height: 220px; pointer-events: none;
  background: radial-gradient(60% 100% at 30% 100%, rgba(27, 25, 21, 0.10), transparent 70%),
              radial-gradient(50% 90% at 80% 100%, rgba(27, 25, 21, 0.08), transparent 70%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; }
.hero-badge { margin: 0 0 8px; }
.hero-title { font-size: clamp(5rem, 13vw, 9.5rem); line-height: 0.95; margin: 0; display: flex; align-items: flex-start; }
.hero-en { font-size: 1.05rem; letter-spacing: 0.12em; color: var(--ink-3); margin: 6px 0 22px; text-transform: uppercase; font-weight: 700; }
.hero-lines { font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.6; margin-bottom: 8px; }
.hero-lines span { display: block; }
.hero-sub { color: var(--ink-3); margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { margin: 0; position: relative; }
.hero-art img { width: 100%; max-width: 640px; margin-left: auto; mix-blend-mode: multiply; }

/* ─── 띠·마디 ─── */
.sec { padding: 72px 0; }
.sec-h { font-size: clamp(2.3rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 18px; display: inline-block; position: relative; padding-bottom: 14px; }
.sec-h::after {
  content: ""; position: absolute; left: -6px; right: -18px; bottom: 0; height: 14px;
  background: url("../img/stroke.webp?v=dd19923d") no-repeat left center / 100% 100%;
  opacity: 0.85;
}
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 46em; }
.note { color: var(--ink-3); font-size: 0.95rem; }
.box {
  background: var(--paper-hi); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.band-beta { position: relative; padding: 0; margin: 8px 0 0; }
.beta-in {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center;
  background: var(--paper-hi); border: 1px solid var(--rule); border-left: 6px solid var(--seal);
  border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow);
}
.beta-in .sec-h { font-size: clamp(2rem, 4vw, 2.6rem); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.4em; margin-bottom: 0.4em; }
.ticks li::before { content: ""; position: absolute; left: 0.2em; top: 0.72em; width: 0.5em; height: 0.5em; background: var(--seal); border-radius: 1px; transform: rotate(8deg); }
.beta-dl { text-align: center; }
.dl-card {
  display: grid; gap: 6px; justify-items: center; padding: 22px 18px;
  border: 1.5px dashed var(--rule-2); border-radius: var(--radius); background: var(--paper);
}
.dl-card .dl-name { font-weight: 700; font-size: 1.1rem; }
.dl-card .dl-state { color: var(--ink-3); font-size: 0.95rem; }

.intro-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.intro-text p { font-size: 1.08rem; }
.scroll-frame { margin: 0; position: relative; padding: 14px; background: var(--paper-hi); border: 1px solid var(--rule); box-shadow: var(--shadow); transform: rotate(0.6deg); }
.scroll-frame::before, .scroll-frame::after {
  content: ""; position: absolute; left: -10px; right: -10px; height: 12px; border-radius: 6px;
  background: linear-gradient(#4a3a28, #2a2016);
}
.scroll-frame::before { top: -8px; }
.scroll-frame::after { bottom: -8px; }

.feat-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat { background: var(--paper-hi); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.feat img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--rule); filter: grayscale(0.15); }
.feat-tx { padding: 18px 20px 20px; }
.feat h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.feat p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }

.chars { background: linear-gradient(180deg, transparent, rgba(233, 224, 207, 0.55) 18%, rgba(233, 224, 207, 0.55) 82%, transparent); }
.char-row { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.char {
  position: relative; background: var(--paper-hi); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.char figure {
  margin: 0; aspect-ratio: 3 / 4; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(closest-side at 50% 58%, rgba(27, 25, 21, 0.09), transparent 75%);
}
.char img { height: 100%; width: auto; object-fit: contain; transition: transform 0.35s ease; }
.char:hover img { transform: scale(1.04) translateY(-4px); }
.char-tx { padding: 14px 18px 18px; border-top: 1px solid var(--rule); }
.char-cls { margin: 0; color: var(--seal); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; }
.char-name { font-size: 2.3rem; line-height: 1; margin: 2px 0 6px; }
.char-ult { margin: 0 0 6px; font-size: 0.92rem; color: var(--ink-3); }
.char-desc { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.char-unlock { margin: 8px 0 0; font-size: 0.86rem; color: var(--ink-3); border-top: 1px dashed var(--rule-2); padding-top: 8px; }
.char .seal-hidden { position: absolute; top: 12px; right: 12px; font-size: 0.8rem; font-weight: 700; padding: 0.3em 0.6em; transform: rotate(4deg); }

.wiin-row { list-style: none; padding: 0; margin: 28px 0 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wiin-card { background: var(--paper-hi); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.wiin-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.wiin-card .wiin-tx { padding: 14px 18px 18px; }
.wiin-card h3 { margin: 0 0 4px; font-size: 1.3rem; }
.wiin-skill { color: var(--seal); font-weight: 700; margin: 0 0 4px; }
.wiin-card p { font-size: 0.95rem; color: var(--ink-2); margin: 0; }

.news-cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { background: var(--paper-hi); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.news-card a { display: block; height: 100%; padding: 18px 20px; text-decoration: none; }
.news-card a:hover h3 { color: var(--seal); }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--ink-3); margin-bottom: 8px; }
.news-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.news-card p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.sec-more { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

.shots-teaser { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shots-teaser img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--rule); border-radius: var(--radius); }

.cta { text-align: center; padding: 80px 0 90px; }
.cta .sec-h { margin-bottom: 14px; }
.cta p { margin-left: auto; margin-right: auto; }
.cta-act { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ─── 쪽 머리 ─── */
.page-head { padding: 44px 0 10px; }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 4rem); margin: 0 0 6px; line-height: 1.1; }
.page-head .lead { margin-bottom: 0; }
.page-body { padding: 18px 0 72px; }

/* ─── 소식 ─── */
.news-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 40px; padding-top: 20px; padding-bottom: 72px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  min-height: 36px; padding: 0.25em 0.95em; border-radius: 999px; border: 1.5px solid var(--rule-2);
  background: var(--paper-hi); font: 700 0.92rem var(--font-body); color: var(--ink-2); cursor: pointer;
}
.chip.is-on, .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper-hi); border-color: var(--ink); }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.news-item { border-bottom: 1px solid var(--rule); }
.news-item a { display: grid; grid-template-columns: 110px 1fr; gap: 6px 20px; padding: 18px 4px; text-decoration: none; }
.news-item .news-date { color: var(--ink-3); font-size: 0.92rem; padding-top: 3px; }
.news-item h2 { font-size: 1.18rem; margin: 0 0 4px; }
.news-item a:hover h2 { color: var(--seal); }
.news-item p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.news-item .news-side-tag { grid-column: 1; }
.news-side .side-h { font-size: 1rem; letter-spacing: 0.06em; margin: 4px 0 10px; color: var(--ink-3); }
.side-links { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--rule); }
.side-links li { border-bottom: 1px solid var(--rule); }
.side-links a { display: block; padding: 10px 2px; text-decoration: none; font-weight: 700; }
.article { max-width: 760px; padding-bottom: 72px; }
.article-meta { display: flex; align-items: center; gap: 10px; color: var(--ink-3); margin: 0 0 18px; }
.article-body { font-size: 1.06rem; }
.article-body h2, .article-body h3 { margin-top: 1.6em; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: 0.35em; }
.article-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--rule); margin-top: 36px; padding-top: 18px; }

/* ─── 미디어 ─── */
.shots { list-style: none; padding: 0; margin: 22px 0 56px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.shot a { display: block; text-decoration: none; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform 0.2s; }
.shot a:hover img { transform: translateY(-2px); }
.shot p { margin: 8px 2px 0; font-size: 0.95rem; color: var(--ink-2); }
.videos { display: grid; gap: 32px; margin: 22px 0 72px; }
.video { margin: 0; display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: center; }
.video video { width: 100%; background: #000; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.video h3 { font-size: 1.25rem; }
.lightbox {
  border: 0; padding: 0; max-width: min(96vw, 1400px); width: 100%; background: transparent; color: var(--paper-hi);
}
.lightbox::backdrop { background: rgba(14, 12, 10, 0.86); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 10px 4px; font-size: 0.98rem; }
.lb-act { display: flex; justify-content: center; gap: 10px; padding: 4px 0 8px; }
.lb-act .btn { color: var(--paper-hi); border-color: rgba(250, 246, 239, 0.6); }
.lb-act .btn:hover { color: var(--paper-hi); background: rgba(250, 246, 239, 0.12); }

/* ─── 표(약관·확률) ─── */
.tbl-wrap { overflow-x: auto; margin: 0 0 1.4em; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.97rem; background: var(--paper-hi); }
.tbl th, .tbl td { border: 1px solid var(--rule-2); padding: 8px 12px; text-align: left; vertical-align: top; }
.tbl thead th { background: var(--paper-deep); font-weight: 700; white-space: nowrap; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.is-zero td { color: var(--ink-4); }
.tbl caption { caption-side: top; text-align: left; font-weight: 700; padding: 0 0 6px; }

.doc { max-width: 820px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2em; padding-top: 0.4em; border-top: 1px solid var(--rule); }
.doc h3 { font-size: 1.15rem; margin-top: 1.5em; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin-bottom: 0.3em; }
.doc li > ul, .doc li > ol { margin-top: 0.3em; }
.doc blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--seal); background: var(--seal-wash); }
.doc code { font-family: var(--font-mono); font-size: 0.9em; background: var(--paper-deep); padding: 0.05em 0.35em; border-radius: 3px; }
.doc hr { border: 0; border-top: 1px solid var(--rule-2); margin: 2em 0; }
.doc-meta { list-style: none; padding: 0; margin: 0 0 18px; color: var(--ink-3); font-size: 0.95rem; }
.doc-meta li { margin: 0; }
.toc { margin: 20px 0 8px; padding: 16px 20px; background: var(--paper-hi); border: 1px solid var(--rule); border-radius: var(--radius); }
.toc h2 { font-size: 1rem; margin: 0 0 6px; border: 0; padding: 0; color: var(--ink-3); letter-spacing: 0.06em; }
.toc .toc-list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; }
.toc li { break-inside: avoid; font-size: 0.95rem; }
.doc-langs { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.doc-other { margin-top: 48px; padding-top: 18px; border-top: 2px solid var(--ink); }
.doc-other ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
details.fold { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-hi); margin: 0 0 10px; }
details.fold > summary { cursor: pointer; padding: 10px 14px; font-weight: 700; list-style-position: inside; }
details.fold[open] > summary { border-bottom: 1px solid var(--rule); }
details.fold > .fold-in { padding: 12px 14px 4px; }

/* ─── 입력 ─── */
.form { display: grid; gap: 16px; max-width: 520px; }
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-weight: 700; font-size: 0.95rem; }
.input, .textarea, .select {
  width: 100%; min-height: 46px; padding: 10px 12px;
  font: 400 1rem/1.5 var(--font-body); color: var(--ink);
  background: var(--paper-hi); border: 1.5px solid var(--rule-2); border-radius: var(--radius);
}
.textarea { min-height: 220px; resize: vertical; }
.textarea.is-short { min-height: 92px; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(188, 36, 24, 0.18); }
.input[aria-invalid="true"] { border-color: var(--seal); }
.counter { font-size: 0.85rem; color: var(--ink-3); text-align: right; }
.counter.is-over { color: var(--seal); font-weight: 700; }
.checks { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-hi); }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--seal); flex: none; margin: 0; }
.check.is-all { font-weight: 700; border-bottom: 1px solid var(--rule); padding-bottom: 6px; margin-bottom: 4px; }
.check a { margin-left: auto; font-size: 0.9rem; color: var(--ink-3); }
.msg { min-height: 1.6em; margin: 0; font-weight: 700; color: var(--seal); }
.msg.is-ok { color: var(--ok); }
.form-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.95rem; }
.danger-zone { border: 1.5px solid var(--seal); border-radius: var(--radius); padding: 18px 20px; background: var(--seal-wash); }

/* ─── 게시판 ─── */
.board { padding-bottom: 72px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--ink); margin: 14px 0 0; }
.tabs a {
  padding: 10px 16px; text-decoration: none; font-weight: 700; color: var(--ink-3);
  border: 1px solid transparent; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; margin-bottom: -2px;
}
.tabs a[aria-current="page"] { color: var(--ink); background: var(--paper-hi); border-color: var(--ink); border-bottom: 2px solid var(--paper-hi); }
.board-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; }
.board-bar p { margin: 0; color: var(--ink-3); font-size: 0.95rem; }
.blist { width: 100%; border-collapse: collapse; background: var(--paper-hi); border-bottom: 1px solid var(--rule-2); }
.blist th { font-size: 0.88rem; color: var(--ink-3); font-weight: 700; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule-2); }
.blist td { padding: 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.blist .c-no { width: 70px; color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: center; }
.blist .c-au { width: 170px; }
.blist .c-dt { width: 110px; color: var(--ink-3); font-size: 0.92rem; white-space: nowrap; }
.blist .c-ti a { text-decoration: none; font-weight: 700; overflow-wrap: anywhere; word-break: normal; }
.blist .c-ti a:hover { color: var(--seal); }
.blist .cc { color: var(--seal); font-size: 0.9rem; margin-left: 6px; font-weight: 700; }
.blist tr.is-pin td { background: var(--seal-wash); }
.blist tr.is-hid td { opacity: 0.6; }
.who { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.badge-staff { font-size: 0.72rem; font-weight: 700; color: #fff8f0; background: var(--seal); border-radius: 3px; padding: 0.05em 0.45em; letter-spacing: 0.05em; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 22px 0 0; }
.pager a, .pager span {
  min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px;
  border: 1px solid var(--rule-2); border-radius: var(--radius); text-decoration: none; background: var(--paper-hi); font-variant-numeric: tabular-nums;
}
.pager [aria-current="page"] { background: var(--ink); color: var(--paper-hi); border-color: var(--ink); }
.pager .is-off { opacity: 0.4; }
.post { background: var(--paper-hi); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 18px; }
.post-head { padding: 22px 24px 16px; border-bottom: 1px solid var(--rule); }
.post-head h2 { font-size: 1.45rem; margin: 6px 0 10px; overflow-wrap: anywhere; word-break: normal; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--ink-3); font-size: 0.93rem; }
.post-body { padding: 22px 24px 26px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; font-size: 1.04rem; min-height: 120px; }
.post-act { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--rule); }
.post-flag { margin: 0 24px 16px; padding: 8px 12px; border-radius: var(--radius); background: var(--seal-wash); color: var(--seal-deep); font-weight: 700; font-size: 0.93rem; }
.cmts { margin-top: 26px; }
.cmts h3 { font-size: 1.1rem; }
.cmt-list { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--rule-2); }
.cmt { padding: 12px 4px; border-bottom: 1px solid var(--rule); }
.cmt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 0.92rem; color: var(--ink-3); }
.cmt-head .who { color: var(--ink); font-weight: 700; }
.cmt-head .cmt-act { margin-left: auto; display: flex; gap: 2px; }
.cmt-x { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }
.cmt.is-hid .cmt-x { color: var(--ink-4); font-style: italic; }
.cmt-form { display: grid; gap: 8px; }
.cmt-form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cmt-form-row .counter { margin: 0 0 0 auto; }
.cmt-form .field { display: flex; align-items: center; gap: 8px; }
.cmt-form .field label { font-size: 0.9rem; color: var(--ink-3); }
.cmt-form .select { width: auto; min-height: 38px; padding: 6px 10px; font-size: 0.95rem; }
.write { margin-top: 18px; }
.write .form { max-width: none; }
.rules { font-size: 0.93rem; color: var(--ink-3); background: var(--paper-hi); border: 1px dashed var(--rule-2); border-radius: var(--radius); padding: 10px 14px; }
.state { text-align: center; padding: 48px 20px; }
.state .state-ring { width: 120px; height: 120px; margin: 0 auto 14px; opacity: 0.85; }
.loading { color: var(--ink-3); padding: 28px 4px; }

/* ─── 대화 상자 ─── */
.dlg { border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 0; width: min(92vw, 460px); background: var(--paper-hi); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6); }
.dlg::backdrop { background: rgba(14, 12, 10, 0.55); }
.dlg-in { padding: 22px 24px; margin: 0; }
.dlg h2 { font-size: 2.2rem; line-height: 1.1; margin-bottom: 8px; }
.dlg fieldset { border: 0; padding: 0; margin: 10px 0 16px; display: grid; gap: 2px; }
.dlg-act { display: flex; justify-content: flex-end; gap: 8px; }

/* ─── 알림 ─── */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); z-index: 60;
  background: var(--ink); color: var(--paper-hi); padding: 12px 18px; border-radius: var(--radius);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.7); opacity: 0; transition: opacity 0.2s, transform 0.2s; max-width: min(92vw, 520px);
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── 계정 ─── */
.acc { padding-bottom: 80px; }
.acc-view h2.brush, .board-view h2.brush, .write h2.brush { font-size: clamp(2rem, 4.5vw, 2.6rem); line-height: 1.15; margin: 0 0 14px; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 40px; align-items: start; margin-top: 18px; }
.acc-aside { border-left: 1px solid var(--rule); padding-left: 28px; color: var(--ink-2); }
.acc-aside img { width: 220px; max-width: 70%; margin: 0 0 12px; }
.me-list { margin: 0 0 24px; display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; }
.me-list dt { font-weight: 700; color: var(--ink-3); }
.me-list dd { margin: 0; overflow-wrap: anywhere; }
.names { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.names li { border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 2px 10px; background: var(--paper-hi); }
.names .who-cls { color: var(--ink-3); font-size: 0.88rem; margin-left: 4px; }
.act-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ─── 404 ─── */
.nf { padding: 70px 0 100px; text-align: center; }
.nf img { width: 180px; margin: 0 auto 18px; opacity: 0.9; }
.nf h1 { font-size: clamp(2.6rem, 7vw, 3.6rem); }

/* ─── 바닥 ─── */
.foot { margin-top: 40px; background: var(--ink); color: rgba(250, 246, 239, 0.82); padding: 38px 0 30px; font-size: 0.93rem; }
.foot a { color: rgba(250, 246, 239, 0.9); }
.foot a:hover { color: #fff; }
.foot-in { display: grid; grid-template-columns: 1fr 2fr; gap: 10px 40px; }
.foot-brand .logo-t { color: var(--paper-hi); font-size: 2.4rem; }
.foot-game { margin: 4px 0 0; color: rgba(250, 246, 239, 0.6); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: start; }
.foot-links a { text-decoration: none; font-weight: 700; }
.foot-links .foot-privacy { color: #ffb4a6; }
.foot-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; color: rgba(250, 246, 239, 0.6); }
.foot-copy { grid-column: 2; margin: 0; color: rgba(250, 246, 239, 0.45); font-size: 0.85rem; }

/* ─── 좁은 화면 ─── */
@media (max-width: 960px) {
  .feat-grid, .news-cards { grid-template-columns: repeat(2, 1fr); }
  .char-row { grid-template-columns: repeat(3, 1fr); }
  .news-wrap { grid-template-columns: 1fr; }
  .video { grid-template-columns: 1fr; }
  .acc-grid { grid-template-columns: 1fr; }
  .acc-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 18px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  html.js .nav-btn { display: block; }
  html.js .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-hi); border-bottom: 2px solid var(--ink); padding: 6px var(--gutter) 14px;
    box-shadow: 0 18px 30px -20px rgba(27, 25, 21, 0.5);
  }
  html.js .top.is-open .nav { display: flex; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .nav-join { margin: 10px 0 0; border-bottom: 0; }
  html:not(.js) .top-in { flex-wrap: wrap; }
  html:not(.js) .nav { flex-wrap: wrap; margin-left: 0; }
  .hero { padding-top: 18px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin: 0 calc(var(--gutter) * -1); }
  .hero-art img { max-width: none; width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; }
  .sec { padding: 52px 0; }
  .beta-in { grid-template-columns: 1fr; padding: 22px 20px; }
  .intro-in { grid-template-columns: 1fr; gap: 28px; }
  .feat-grid, .news-cards, .wiin-row, .shots, .shots-teaser { grid-template-columns: 1fr; }
  .char-row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
    padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter);
  }
  .char { scroll-snap-align: start; }
  .news-item a { grid-template-columns: 1fr; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs a { flex: none; padding: 10px 12px; }
  .blist thead { display: none; }
  .blist, .blist tbody, .blist tr, .blist td { display: block; width: auto; }
  .blist tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 4px; border-bottom: 1px solid var(--rule); }
  .blist td { border: 0; padding: 2px 6px; }
  .blist .c-no { display: none; }
  .blist .c-ti { grid-column: 1 / -1; }
  .blist .c-au, .blist .c-dt { width: auto; font-size: 0.88rem; color: var(--ink-3); }
  .blist .c-dt { text-align: right; }
  .post-head, .post-body { padding-left: 16px; padding-right: 16px; }
  .toc .toc-list { columns: 1; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-meta, .foot-copy { grid-column: 1; }
  .me-list { grid-template-columns: 1fr; gap: 2px; }
  .me-list dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .top, .foot, .nav-btn, .hero-cta, .post-act, .cmt-form { display: none !important; }
  body { background: #fff; }
}
