:root {
  color-scheme: dark;
  --bg: #0e0f13;
  --soft: #16171c;
  --side: #121317;
  --card: #15161b;
  --hover: #1d1f25;
  --ink: #eceef2;
  --ink-deep: #ffffff;
  --muted: #9599a6;
  --body: #c3c6cf;
  --lead: #a9adb9;
  --line: #2c2e36;
  --line-soft: #212329;
  --accent: #ffd02f;
  --accent-soft: rgba(255, 208, 47, .1);
  --gold: #e8b93a;
  --blue: #8aa0ff;
  --shadow: rgba(0, 0, 0, .45);
  --top-bg: rgba(14, 15, 19, .88);
  --max: 1200px;
  --top: 72px;
  font-family: Inter, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; letter-spacing: -.018em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img.pixel { image-rendering: pixelated; }
code, kbd { font-family: "JetBrains Mono", Consolas, "SF Mono", monospace; font-size: .86em; letter-spacing: 0; }
code { background: var(--soft); border: 1px solid var(--line-soft); border-radius: 5px; padding: .05em .35em; color: var(--ink-deep); }
kbd { display: inline-block; min-width: 1.7em; text-align: center; background: var(--soft); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 .45em; line-height: 1.55; color: var(--ink); }
pre { background: var(--soft); border: 1px solid var(--line-soft); border-radius: 14px; padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
pre code { background: none; border: 0; padding: 0; }
.icon { width: 1.1em; height: 1.1em; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; }
.eyebrow { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* 위 막대 */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); background: var(--top-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.top .bar { height: 100%; display: flex; align-items: center; gap: 16px; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink-deep); font-size: 16px; font-weight: 800; letter-spacing: -.025em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; }
.brand-mark img { width: 32px; height: 32px; }
.nav { display: flex; gap: 6px; margin-left: auto; font-size: 13.5px; font-weight: 650; }
.nav a { padding: 9px 14px; border-radius: 999px; color: var(--muted); white-space: nowrap; transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--ink-deep); color: #111216; }
.nav a.discord { color: #5865f2; }
.nav a.discord:hover { color: #7983f5; }
.nav a.discord .icon { fill: currentColor; stroke: none; }
.lang { position: relative; display: flex; align-items: center; color: var(--muted); }
.lang .icon { position: absolute; left: 12px; width: 15px; height: 15px; pointer-events: none; }
.lang select { appearance: none; -webkit-appearance: none; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6f7e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; color: var(--ink); border: 1px solid var(--line-soft); border-radius: 999px; padding: 8px 30px 8px 34px; font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.lang select:hover, .lang select:focus { border-color: var(--line); background-color: var(--hover); outline: none; }

/* 단추 */
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font-weight: 700; font-size: 15px; transition: background-color .2s, border-color .2s; }
.btn:hover { text-decoration: none; background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #17140a; }
.btn.primary:hover { background: #ffdc5c; }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.discord:hover { background: #4752c4; border-color: #4752c4; }
.btn.discord .icon { fill: currentColor; stroke: none; }
.btn.icon-only { padding: 13px 16px; }
.btn.icon-only .icon { width: 22px; height: 22px; }
.btn.support { background: #ff813f; border-color: #ff813f; color: #fff; }
.btn.support:hover { background: #e96f2f; border-color: #e96f2f; }

/* 첫 화면 */
.hero { padding: 84px 0 72px; background: radial-gradient(60% 70% at 78% 30%, rgba(255, 208, 47, .07), transparent 70%), radial-gradient(50% 60% at 10% 0%, rgba(138, 160, 255, .08), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { margin: 0 0 24px; font-size: clamp(40px, 5vw, 64px); font-weight: 650; line-height: 1.06; letter-spacing: -.06em; color: var(--ink-deep); }
.highlight { background: linear-gradient(transparent 70%, rgba(255, 208, 47, .55) 70%); }
.hero .lead { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.7; color: var(--lead); }
.hero .buttons { margin-top: 30px; }
.os-links { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.os-links a { color: var(--ink); font-weight: 650; border-bottom: 1px solid var(--line); }
.os-links a:hover { text-decoration: none; border-color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.fact { font-size: 12px; font-weight: 650; color: var(--body); background: var(--soft); border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 11px; }
.hero-board { background: var(--soft); border: 1px solid var(--line-soft); border-radius: 28px; padding: 18px; box-shadow: var(--shadow) 0 18px 48px -8px; }
.hero-board img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }

/* 구역 */
.section { padding: 72px 0; }
.section.alt { background: var(--side); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-title { margin-bottom: 28px; }
.section-title .eyebrow { margin-bottom: 8px; }
.section-title h2 { margin: 0; font-size: 34px; font-weight: 650; letter-spacing: -.045em; color: var(--ink-deep); }
.section-title p { margin: 8px 0 0; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: 20px; padding: 26px 24px 24px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { border-color: var(--line); box-shadow: var(--shadow) 0 12px 30px -8px; transform: translateY(-2px); }
.card .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--gold); font-size: 13px; font-weight: 800; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -.03em; color: var(--ink-deep); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.download { display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 20px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 20px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.download:hover { text-decoration: none; border-color: var(--line); box-shadow: var(--shadow) 0 12px 30px -8px; }
.download strong { font-size: 18px; letter-spacing: -.03em; color: var(--ink-deep); }
.download span { font-size: 13.5px; color: var(--muted); }
.download .get { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--blue); }
.note-line { margin: 20px 0 0; color: var(--muted); font-size: 14px; }

/* 대표 기능(첫 화면): 제목과 움직이는 화면만 담은 카드 격자. 누르면 사용 가이드의 그 쪽이 열린다 */
.core { padding-top: 24px; }
.core-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.core-card { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 20px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 22px; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.core-card:hover { text-decoration: none; border-color: var(--line); box-shadow: var(--shadow) 0 14px 34px -10px; transform: translateY(-2px); }
.core-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 4px; }
.core-card-head h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.035em; color: var(--ink-deep); }
.core-card-media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #08090b; border: 1px solid var(--line-soft); }
.core-card-media video, .core-card-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.core-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--gold); font-size: 12px; font-weight: 750; }
.toc li.toc-label { margin: 18px 12px 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.toc li.toc-label:first-child { margin-top: 0; }
.core-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.core-steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 56px; background: var(--soft); border: 1px solid var(--line-soft); border-radius: 16px; }
.core-steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: #17140a; font-size: 13px; font-weight: 800; }
.core-steps li > strong { display: block; color: var(--ink-deep); font-size: 15.5px; letter-spacing: -.02em; }
.core-steps li > span { display: block; margin-top: 3px; color: var(--body); font-size: 14px; line-height: 1.6; }
.core-steps li > span strong { color: var(--ink); }
.core-media { margin: 0; width: 300px; padding: 10px; background: var(--soft); border: 1px solid var(--line-soft); border-radius: 22px; box-shadow: var(--shadow) 0 18px 40px -10px; }
.core-media img { display: block; width: 100%; height: auto; border-radius: 14px; }
.core-media video { display: block; width: 100%; height: auto; border-radius: 14px; background: #000; }
.guide-media.wide { width: 100%; max-width: 760px; }
.doc .core-steps { padding-left: 0; margin: 18px 0 0; }
.doc .core-steps li { margin: 0; }
.guide-media { margin: 24px 0 0; }
/* 사용 가이드 화면 그림·움짤(clip, 움직이는 WebP): 실제 크기까지만(작게 자른 그림은 키우지 않음), 빨간 번호 설명은 그림 아래. 화면 그림은 누르면 원래 크기로 연다(guide.js) */
.shot, .clip { margin: 20px 0 24px; }
.shot img, .clip img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line-soft); border-radius: 10px; background: #1b1c20; }
.shot img { cursor: zoom-in; }
.shot figcaption { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

footer { background: #08090b; border-top: 1px solid var(--line-soft); color: #8b8f9b; padding: 36px 0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer strong { color: #fff; }
footer a { color: #d5d7de; }

/* 사용 가이드: 왼쪽 목차와 오른쪽 내용 창이 따로 스크롤된다 */
body.guide-page { overflow: hidden; }
.manual { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: calc(100dvh - var(--top)); }
.toc { background: var(--side); border-right: 1px solid var(--line-soft); padding: 28px 18px 40px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; font-size: 14.5px; }
.toc::-webkit-scrollbar, .content::-webkit-scrollbar { width: 8px; }
.toc::-webkit-scrollbar-thumb, .content::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.toc > h2 { margin: 0 12px 12px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc > ol > li { margin-bottom: 4px; }
.toc-row { display: flex; align-items: center; border-radius: 12px; transition: background-color .15s; }
.toc-row:hover { background: var(--hover); }
.toc li.current > .toc-row { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line-soft); }
.toc-row a { flex: 1; padding: 11px 12px; color: var(--ink); font-weight: 600; letter-spacing: -.02em; }
.toc-row a:hover { text-decoration: none; }
.toc li.current > .toc-row a { color: var(--ink-deep); font-weight: 750; }
.toc-toggle { flex: none; display: grid; place-items: center; width: 34px; height: 40px; padding: 0; border: 0; background: none; color: #6f7380; cursor: pointer; border-radius: 10px; }
.toc-toggle:hover { color: var(--ink); }
.toc-toggle .icon { width: 15px; height: 15px; transition: transform .2s; }
.toc li.open > .toc-row .toc-toggle .icon { transform: rotate(90deg); color: var(--ink); }
.toc ol ol { display: none; margin: 6px 0 8px 18px; padding: 2px 0 4px 12px; border-left: 2px solid var(--line); }
.toc li.open > ol { display: block; }
.toc ol ol a { position: relative; display: block; padding: 5px 8px; font-size: 13px; font-weight: 600; color: #858997; }
.toc ol ol a:hover { color: var(--ink); text-decoration: none; }
.toc ol ol a.active { color: var(--ink); font-weight: 750; }
.toc ol ol a.active::before { content: ""; position: absolute; left: -14px; top: 50%; width: 10px; height: 2px; background: var(--blue); }
.toc-open { display: none; }
.guide-search { position: relative; margin: 0 4px 18px; }
.guide-search .icon { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.guide-search input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--ink); font: inherit; font-size: 14px; }
.guide-search input:focus { outline: none; border-color: var(--blue); }
.toc.searching > h2, .toc.searching > ol:not(.search-results) { display: none; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--ink); }
.search-results a:hover, .search-results a.selected { background: var(--hover); text-decoration: none; }
.search-results b { display: block; font-weight: 700; letter-spacing: -.02em; }
.search-results .where { display: block; font-size: 12px; font-weight: 700; color: var(--gold); }
.search-results .snip { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.search-results .empty { padding: 10px 12px; color: var(--muted); }
.search-results mark, mark.hit { background: var(--accent); color: #17140a; border-radius: 3px; padding: 0 1px; }

.content { min-width: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 44px 56px 80px; }
.doc { max-width: 860px; }
.page { display: none; }
.page.active { display: block; }
.crumb { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.crumb:hover { text-decoration: none; color: var(--ink); }
.doc h2, .doc h3.page-title { margin: 0 0 18px; font-size: clamp(32px, 3.6vw, 44px); font-weight: 650; line-height: 1.12; letter-spacing: -.05em; color: var(--ink-deep); }
.doc h3 { margin: 32px 0 10px; font-size: 21px; font-weight: 700; letter-spacing: -.03em; color: var(--ink-deep); }
.doc h4 { margin: 28px 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: var(--ink-deep); }
.doc p, .doc li { color: var(--body); line-height: 1.75; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 5px 0; }
/* 칸마다 그림 번호(①…)로 시작하는 목록: 번호가 머리표(점·숫자 없이), 둘째 줄부터는 번호 뒤에 맞춤 */
.doc ul.marks { list-style: none; padding-left: 0; }
.doc ul.marks > li { padding-left: 1.35em; text-indent: -1.35em; }
.doc strong { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--line-soft); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { border-bottom: 1px solid var(--line-soft); padding: 11px 14px; text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-size: 12.5px; font-weight: 750; letter-spacing: .02em; background: var(--side); }
td { color: var(--body); }
.note { background: var(--accent-soft); border: 1px solid rgba(255, 208, 47, .28); border-radius: 14px; padding: 14px 18px; margin: 18px 0; font-size: 15px; color: #efdfae; }
.note p { margin: 0; color: inherit; }
.chapter-intro { margin: 0 0 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.chapter-intro > :first-child { margin-top: 0; }
.chapter-intro > :last-child { margin-bottom: 0; }
.guide-home-lead { max-width: 700px; margin: 0 0 24px; color: var(--lead); font-size: 17px; }
.guide-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guide-path { padding: 22px 22px 18px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; }
.doc .guide-path h4 { margin: 0 0 12px; font-size: 18px; }
.doc .guide-route { margin: 0; padding-left: 1.3em; }
.doc .guide-route li { margin: 10px 0; }
.guide-route a { color: var(--ink-deep); }
.guide-route a:hover { color: var(--blue); }
.guide-route span { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.guide-home .note { margin-top: 14px; }
.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.pager a { display: flex; flex-direction: column; gap: 2px; max-width: 48%; padding: 14px 18px; border: 1px solid var(--line-soft); border-radius: 16px; color: var(--ink-deep); font-weight: 700; letter-spacing: -.02em; transition: border-color .2s, box-shadow .2s; }
.pager a:hover { text-decoration: none; border-color: var(--line); box-shadow: var(--shadow) 0 10px 24px -8px; }
.pager a span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pager a.next { margin-left: auto; text-align: right; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .features, .downloads { grid-template-columns: 1fr 1fr; }
  .core-media { width: min(300px, 100%); }
  .guide-paths { grid-template-columns: 1fr; }
  .manual { grid-template-columns: 240px minmax(0, 1fr); }
  .content { padding: 32px 28px 64px; }
}

@media (max-width: 680px) {
  :root { --top: 60px; }
  .wrap { width: calc(100% - 32px); }
  .top .bar { padding: 0 14px; gap: 8px; }
  .brand-text { display: none; }
  .nav { gap: 2px; font-size: 13px; }
  .nav a { padding: 8px 10px; }
  .nav .hide-sm { display: none; }
  .lang select { padding: 7px 26px 7px 30px; font-size: 13px; }
  .hero { padding: 48px 0 48px; }
  .features, .downloads, .core-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section-title h2 { font-size: 28px; }
  body.guide-page { overflow: auto; }
  .manual { display: block; height: auto; }
  .toc-open { display: flex; align-items: center; gap: 10px; width: 100%; position: sticky; top: var(--top); z-index: 5; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line-soft); background: var(--side); color: var(--ink-deep); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
  .toc-open .icon { width: 16px; height: 16px; color: var(--muted); }
  .toc-open span { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .toc { display: none; border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 14px 12px 18px; }
  .manual.toc-shown .toc { display: block; }
  .content { height: auto; overflow: visible; padding: 24px 16px 56px; }
}
