/* 月蝕 웹 — 소개 사이트(eklise-intro)와 같은 집안. 검은 자두빛 바탕(#0b080a), 글자 #f3eee9, 강조는 월식 빨강 #e23b45 하나 (2026-11 5판).
 *  - 모서리는 둥글게: 면 14px, 단추·입력 10px, 작은 표시 6px. 알약 모양은 쓰지 않는다.
 *  - 면은 단색, 경계는 얇은 선. 그라디언트는 그림 위 글자를 읽히게 하는 그늘에만. 번지는 빛·그라디언트 글자 없음.
 *  - 꽉 찬 붉은색은 화면마다 주 버튼 하나에만. 나머지 강조는 선·글자색.
 *  - 제목은 Pretendard 800, 숫자·코드는 Plex Mono. 대문자 자간 라벨은 쓰지 않는다.
 *  - 움직임은 transform·opacity 만, prefers-reduced-motion 이면 끈다.
 */
@font-face { font-family: 'GS Serif'; font-weight: 300; font-display: swap; src: url('/fonts/gesshoku-serif.woff') format('woff'); }
@font-face { font-family: 'Eklise Cond'; font-weight: 700; font-display: swap; src: url('/fonts/eklise-cond-700.woff') format('woff'); unicode-range: U+0000-00FF, U+2013-2014, U+00B7, U+00D7; }
@font-face { font-family: 'Eklise Cond'; font-weight: 600; font-display: swap; src: url('/fonts/eklise-cond-600.woff') format('woff'); unicode-range: U+0000-00FF, U+2013-2014, U+00B7, U+00D7; }
@font-face { font-family: 'Pretendard Web'; font-weight: 400; font-display: swap; src: url('/fonts/pretendard-regular.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard Web'; font-weight: 600; font-display: swap; src: url('/fonts/pretendard-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard Web'; font-weight: 800; font-display: swap; src: url('/fonts/pretendard-extrabold.woff2') format('woff2'); }
@font-face { font-family: 'Plex Mono'; font-weight: 400; font-display: swap; src: url('/fonts/plexmono-regular.woff') format('woff'); }
@font-face { font-family: 'Plex Mono'; font-weight: 600; font-display: swap; src: url('/fonts/plexmono-semibold.woff') format('woff'); }
/* 일본어 화면만: Noto Sans CJK JP 조각 (tools/make-ja-font.py, OFL) — 라틴·숫자는 Pretendard 가 그린다 */
@font-face { font-family: 'Eklise JP'; font-weight: 100 500; font-display: swap; src: url('/fonts/noto-sans-jp-400.woff') format('woff'); unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: 'Eklise JP'; font-weight: 501 900; font-display: swap; src: url('/fonts/noto-sans-jp-700.woff') format('woff'); unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }

:root {
  color-scheme: dark;
  --bg0: #0b080a;
  --bg1: #100c0e;
  --s1: #151013;
  --s2: #1c1519;
  --s3: #281e23;
  --well: #080607;
  --line: rgba(243, 238, 233, 0.075);
  --line2: rgba(243, 238, 233, 0.13);
  --line3: rgba(243, 238, 233, 0.22);
  --ink: #f3eee9;
  --ink2: #cfc6c6;
  --ink3: #a2979b;
  --ink4: #7c7176;
  --red: #e23b45;
  --red-hi: #ee4a54;
  --red-btn: #d6323c;
  --red-lo: #8d1722;
  --red-ink: #ff8f95;
  --red-wash: rgba(226, 59, 69, 0.12);
  --pink: #ff5a9e;
  --violet: #a58a97;
  --violet-lo: #2b2026;
  --violet-ink: #d9c3cd;
  --ok: #7fd6a4;
  --ok-wash: rgba(127, 214, 164, 0.08);
  --warn: #f0a46a;
  --warn-wash: rgba(240, 164, 106, 0.1);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --gut: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: 'Pretendard', 'Pretendard Web', 'Noto Sans CJK KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --cond: 'Eklise Cond', 'Pretendard', 'Pretendard Web', 'Noto Sans CJK KR', system-ui, sans-serif;
  --serif: 'GS Serif', 'Noto Serif CJK JP', 'Noto Serif CJK KR', serif;
  --mono: 'Plex Mono', 'JetBrains Mono', 'IBM Plex Mono', 'D2Coding', ui-monospace, monospace;
}
html:lang(ja) {
  --sans: 'Pretendard Web', 'Eklise JP', 'Noto Sans CJK JP', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', system-ui, sans-serif;
  --cond: 'Eklise Cond', 'Pretendard Web', 'Eklise JP', 'Noto Sans CJK JP', 'Hiragino Sans', system-ui, sans-serif;
}
html:lang(ja) body { word-break: normal; line-break: strict; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg0); color: var(--ink); font: 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 2px; }
::selection { background: rgba(226, 59, 69, .4); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
main { flex: 1; }
.px { image-rendering: pixelated; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--ink3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 위쪽 바 ── */
.nav { position: sticky; top: 0; z-index: 20; background: #0b080a; border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 26px; height: 26px; }
.brand b { font: 300 21px/1 var(--serif); color: var(--ink); letter-spacing: .02em; }
.brand span { font: 700 12px/1 var(--cond); color: var(--ink3); }
.nav-links { display: flex; align-items: stretch; gap: 4px; height: 100%; }
.nav-links a { position: relative; display: flex; align-items: center; padding: 0 12px; font-weight: 600; font-size: 13.5px; color: var(--ink2); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.on { color: var(--ink); }
.nav-links a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--red); }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav-search { display: flex; }
.nav-search input { width: 190px; height: 32px; padding: 0 10px; border: 1px solid var(--line2); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--well); font-size: 13px; }
.nav-search button { height: 32px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 0 var(--r) var(--r) 0; background: var(--s2); color: var(--ink2); cursor: pointer; font-size: 12.5px; font-weight: 600; }
.nav-acc { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 4px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); font-weight: 600; font-size: 13px; }
.nav-acc:hover { border-color: var(--line2); }
.langs { display: flex; border: 1px solid var(--line2); border-radius: var(--r); }
.langs a { font: 600 11px/1 var(--cond); color: var(--ink3); padding: 8px 7px; }
.langs a + a { border-left: 1px solid var(--line2); }
.langs a:hover { color: var(--ink); }
.langs a.on { color: var(--ink); background: var(--s3); }

/* ── 단추·입력 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--s2); color: var(--ink); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--s3); border-color: var(--line3); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-hi); border-color: var(--red-hi); }
.btn.line { background: transparent; }
.btn.danger { background: transparent; border-color: rgba(226, 59, 69, .45); color: var(--red-ink); }
.btn.danger:hover { background: var(--red-wash); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn[disabled], .btn.off { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn small { font: 600 11px var(--cond); opacity: .75; }
.field { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--well); font-size: 14px; transition: border-color .15s; }
textarea.field { height: auto; min-height: 220px; padding: 10px 12px; line-height: 1.6; resize: vertical; font-family: var(--sans); }
select.field { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--ink3) 50%), linear-gradient(135deg, var(--ink3) 50%, transparent 50%); background-position: calc(100% - 15px) 17px, calc(100% - 10px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.field:focus { outline: none; border-color: var(--red-lo); box-shadow: 0 0 0 1px var(--red-lo); }
label.lb { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink2); margin: 0 0 6px; }
.form-row { margin-bottom: 16px; }
.hint { font-size: 12px; color: var(--ink3); margin-top: 6px; }
.err { padding: 10px 12px; border: 1px solid rgba(226, 59, 69, .45); border-left: 3px solid var(--red); background: var(--red-wash); color: var(--red-ink); font-size: 13px; margin-bottom: 16px; border-radius: var(--r); }
.note { padding: 10px 12px; border: 1px solid var(--line2); border-left: 3px solid var(--violet); background: var(--s1); color: var(--ink2); font-size: 13px; margin-bottom: 16px; border-radius: var(--r); }
.note.ok { border-left-color: var(--ok); }

/* ── 제목 ── */
.kick { font: 700 11.5px/1 var(--cond); color: var(--red-ink); }
.ttl { font: 800 30px/1.15 var(--sans); letter-spacing: -.01em; }
.ttl.lat { font-family: var(--cond); font-weight: 700; letter-spacing: .01em; }
.sec { padding: 56px 0; }
.sec + .sec { padding-top: 8px; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-h .ttl { margin-top: 8px; }
.sec-h a.more { font-size: 12.5px; font-weight: 600; color: var(--ink3); white-space: nowrap; }
.sec-h a.more:hover { color: var(--ink); }
.page-h { padding: 36px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.page-h .ttl { margin-top: 8px; font-size: 34px; }
.page-h p { margin-top: 8px; color: var(--ink2); font-size: 13.5px; max-width: 640px; }

/* ── 홈 ── */
.hero { position: relative; min-height: min(620px, 82vh); display: flex; align-items: center; border-bottom: 1px solid var(--line); overflow: hidden; background: #0b080a; }
.hero-bg { position: absolute; inset: 0; background: #0b080a url('/static/bg/home.webp') 72% 42% / cover no-repeat; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 8, 10, .94) 0%, rgba(11, 8, 10, .78) 36%, rgba(11, 8, 10, .15) 70%, rgba(11, 8, 10, 0) 100%), linear-gradient(0deg, rgba(11, 8, 10, .9) 0%, rgba(11, 8, 10, 0) 30%); }
.hero-in { position: relative; padding: 64px var(--gut) 56px; }
.hero h1 { font: 300 clamp(80px, 11vw, 132px)/.95 var(--serif); letter-spacing: .02em; color: var(--ink); margin-top: 18px; }
.hero h1 + .lat { font: 700 15px/1 var(--cond); color: var(--ink3); margin: 14px 0 0 6px; }
.hero h2 { font: 800 clamp(26px, 3.2vw, 38px)/1.2 var(--sans); margin-top: 30px; letter-spacing: -.01em; }
.hero h2 em { font-style: normal; color: var(--red-ink); }
.hero p.lead { margin-top: 14px; max-width: 470px; color: var(--ink2); font-size: 14.5px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.lookup { margin-top: 30px; max-width: 470px; }
.lookup label { display: block; font: 700 11px var(--cond); color: var(--ink3); margin-bottom: 8px; }
.lookup form { display: flex; }
.lookup input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; background: rgba(11, 8, 10, .85); border: 1px solid var(--line3); border-right: 0; border-radius: var(--r) 0 0 var(--r); font-size: 15px; }
.lookup input:focus { outline: none; border-color: var(--red-lo); }
.lookup button { height: 46px; padding: 0 18px; border: 1px solid var(--line3); border-radius: 0 var(--r) var(--r) 0; background: var(--s2); font-weight: 700; cursor: pointer; }
.lookup button:hover { background: var(--s3); }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.num { padding: 26px var(--gut); border-right: 1px solid var(--line); }
.num:last-child { border-right: 0; }
.num .k { font-size: 12px; color: var(--ink3); font-weight: 600; }
.num .v { font: 700 46px/1.05 var(--cond); margin-top: 6px; letter-spacing: -.01em; }
.num .v small { font-size: 18px; color: var(--ink3); margin-left: 6px; letter-spacing: .04em; }
.num .s { font-size: 12px; color: var(--ink3); margin-top: 4px; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }
.news { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.news-i { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; padding: 14px; background: var(--s1); transition: background-color .15s; }
a.news-i:hover { background: var(--s2); }
.news-i img { width: 132px; height: 96px; object-fit: cover; border-radius: var(--r-sm); background: var(--well); }
.news-i .meta { display: flex; gap: 10px; align-items: center; font-size: 11.5px; color: var(--ink3); }
.tag { display: inline-block; padding: 2px 6px; border: 1px solid var(--line2); border-radius: var(--r-sm); font-size: 11px; font-weight: 600; color: var(--ink2); line-height: 1.4; }
.tag.red { border-color: rgba(226, 59, 69, .5); color: var(--red-ink); }
.tag.ok { border-color: rgba(127, 214, 164, .4); color: var(--ok); }
.tag.vio { border-color: rgba(165, 138, 151, .6); color: var(--violet-ink); }
.tag.warn { border-color: rgba(240, 164, 106, .5); color: var(--warn); }
.news-i h3 { font-size: 15px; font-weight: 800; margin-top: 6px; }
.news-i p { font-size: 13px; color: var(--ink2); margin-top: 4px; }
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feat > div { background: var(--s1); padding: 22px; position: relative; min-height: 220px; overflow: hidden; }
.feat .glyph { font: 300 54px/1 var(--serif); color: var(--red-ink); opacity: .9; }
.feat h3 { font-size: 17px; font-weight: 800; margin-top: 18px; }
.feat p { font-size: 13px; color: var(--ink2); margin-top: 8px; max-width: 320px; }
.feat ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }

/* ── 목록 표 (포럼) ── */
.layout-side { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.side { position: sticky; top: 76px; display: grid; gap: 2px; }
.side a { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: var(--r); font-size: 13.5px; font-weight: 600; color: var(--ink2); border-left: 2px solid transparent; }
.side a:hover { background: var(--s1); color: var(--ink); }
.side a.on { background: var(--s2); color: var(--ink); border-left-color: var(--red); border-radius: 0 var(--r) var(--r) 0; }
.side a span { font: 600 11.5px var(--cond); color: var(--ink4); }
.side .side-h { font: 700 11px var(--cond); color: var(--ink4); padding: 14px 12px 6px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar form { display: flex; flex: 1; min-width: 200px; max-width: 380px; }
.toolbar form .field { height: 36px; border-radius: var(--r) 0 0 var(--r); border-right: 0; }
.toolbar form .btn { height: 36px; border-radius: 0 var(--r) var(--r) 0; }
.toolbar .sp { flex: 1; }
.rows { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--s1); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 64px 88px; align-items: center; gap: 14px; padding: 11px 16px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row.head { background: var(--bg1); font: 700 10.5px var(--cond); color: var(--ink4); padding: 9px 16px; }
.row:not(.head):hover { background: var(--s2); }
.row .t { min-width: 0; }
.row .t a { font-weight: 600; font-size: 14px; }
.row .t a:hover { color: var(--red-ink); }
.row .t .sub { display: flex; gap: 8px; align-items: center; margin-top: 3px; font-size: 12px; color: var(--ink3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row .n { text-align: right; font: 600 13px var(--cond); color: var(--ink2); letter-spacing: .04em; }
.row .d { text-align: right; font-size: 12px; color: var(--ink3); }
.row.pinned { background: rgba(226, 59, 69, .045); }
.who { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; font-weight: 600; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head8 { width: 22px; height: 22px; flex: none; border-radius: var(--r-sm); image-rendering: pixelated; background: var(--s3); }
.head8.lg { width: 40px; height: 40px; border-radius: var(--r-sm); }
.head8.none { display: grid; place-items: center; font: 700 11px var(--cond); color: var(--ink3); border: 1px solid var(--line2); background: var(--s2); }
.head8.lg.none { font-size: 16px; }
.empty { padding: 48px 20px; text-align: center; color: var(--ink3); font-size: 13.5px; }
.empty b { display: block; color: var(--ink2); font-size: 15px; margin-bottom: 6px; }
.pager { display: flex; gap: 4px; justify-content: center; margin: 20px 0 0; }
.pager a, .pager span { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r); font: 600 13px var(--cond); color: var(--ink2); }
.pager a:hover { border-color: var(--line3); color: var(--ink); }
.pager .on { background: var(--s3); border-color: var(--line3); color: var(--ink); }

/* ── 글 ── */
.post { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); }
.post-h { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.post-h h1 { font-size: 24px; font-weight: 800; line-height: 1.3; margin-top: 10px; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 12.5px; color: var(--ink3); flex-wrap: wrap; }
.post-body { padding: 22px 24px 26px; }
.prose { font-size: 14.5px; line-height: 1.75; color: #f3eee9; }
.prose > * + * { margin-top: .9em; }
.prose h3, .prose h4, .prose h5, .prose h6 { font-weight: 800; color: var(--ink); line-height: 1.35; margin-top: 1.4em; }
.prose h3 { font-size: 18px; } .prose h4 { font-size: 16px; } .prose h5, .prose h6 { font-size: 14.5px; }
.prose a { color: var(--red-ink); text-decoration: underline; text-decoration-color: rgba(255, 141, 179, .35); text-underline-offset: 3px; }
.prose code { font-family: var(--mono); font-size: .88em; padding: 1px 5px; background: var(--well); border: 1px solid var(--line); border-radius: var(--r-sm); }
.prose pre { padding: 12px 14px; background: var(--well); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.prose pre code { padding: 0; border: 0; background: none; }
.prose blockquote { margin-left: 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--line3); color: var(--ink2); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose img { max-height: 480px; border-radius: var(--r); border: 1px solid var(--line); }
.prose table { border-collapse: collapse; font-size: 13.5px; }
.prose th, .prose td { border: 1px solid var(--line2); padding: 6px 10px; }
.prose hr { border: 0; border-top: 1px solid var(--line2); }
.post-act { display: flex; gap: 8px; padding: 12px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.post-act form { display: inline; }
.post-act .sp { flex: 1; }
.cmts { margin-top: 24px; }
.cmt { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.cmt-h { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; color: var(--ink3); flex-wrap: wrap; }
.cmt-h b { color: var(--ink); font-size: 13.5px; }
.cmt .prose { font-size: 14px; margin-top: 4px; }
.cmt-act { display: flex; gap: 12px; margin-top: 6px; }
.cmt-act button, .cmt-act a, .linkbtn { background: none; border: 0; padding: 0; color: var(--ink3); font-size: 12px; cursor: pointer; font-weight: 600; }
.cmt-act button:hover, .cmt-act a:hover, .linkbtn:hover { color: var(--ink); }
.cmt.hidden-c { opacity: .55; }
.reply { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); }
.reply textarea.field { min-height: 110px; }
.locked-bar { padding: 12px 16px; border: 1px dashed var(--line3); border-radius: var(--r); color: var(--ink3); font-size: 13px; margin-top: 18px; }

/* ── 유저 조회·프로필 ── */
.search-big { display: flex; max-width: 640px; margin: 4px 0 28px; }
.search-big input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; font-size: 17px; border: 1px solid var(--line3); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--well); }
.search-big input:focus { outline: none; border-color: var(--red-lo); }
.search-big button { height: 52px; padding: 0 24px; border: 1px solid var(--red); border-radius: 0 var(--r) var(--r) 0; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pgrid a { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--s1); }
.pgrid a:hover { background: var(--s2); }
.pgrid b { display: block; font-size: 14px; }
.pgrid small { color: var(--ink3); font-size: 11.5px; }

.ban { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 22px; border: 1px solid var(--line2); border-radius: var(--r-lg); margin-bottom: 18px; }
.ban .mark { width: 10px; align-self: stretch; border-radius: var(--r-sm); }
.ban .st { font: 800 24px/1.15 var(--sans); }
.ban .why { font-size: 13.5px; color: var(--ink2); margin-top: 4px; }
.ban .dates { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--ink3); }
.ban .dates b { color: var(--ink2); font-weight: 600; margin-left: 4px; }
.ban .big { text-align: right; }
.ban .big .k { font: 700 11px var(--cond); color: var(--ink3); }
.ban .big .v { font: 700 30px/1.1 var(--cond); margin-top: 4px; }
.ban.ok { background: var(--ok-wash); border-color: rgba(127, 214, 164, .28); }
.ban.ok .mark { background: var(--ok); }
.ban.ok .st { color: var(--ok); }
.ban.temp { background: var(--warn-wash); border-color: rgba(240, 164, 106, .45); }
.ban.temp .mark { background: var(--warn); }
.ban.temp .st, .ban.temp .big .v { color: var(--warn); }
.ban.perm { background: var(--red-lo); border-color: var(--red); }
.ban.perm .mark { background: #fff; }
.ban.perm .st { color: #fff; }
.ban.perm .why, .ban.perm .dates, .ban.perm .dates b, .ban.perm .big .k { color: #f7d6e2; }
.ban.perm .big .v { color: #fff; }
.ban.unk { background: var(--s1); border-style: dashed; border-color: var(--line3); }
.ban.unk .mark { background: var(--ink4); }
.ban.unk .st { color: var(--ink2); font-size: 18px; }

.prof { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.viewer { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(120% 70% at 50% 30%, #221a1e 0%, #100c0e 70%); }
.viewer canvas { display: block; width: 100%; height: 440px; cursor: grab; touch-action: pan-y; }
.viewer canvas:active { cursor: grabbing; }
.viewer .vfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: rgba(16, 12, 14, .9); font-size: 12px; color: var(--ink3); }
.viewer .vfoot .yaw { display: flex; gap: 4px; }
.viewer .vfoot .yaw button { height: 26px; padding: 0 8px; border: 1px solid var(--line2); background: var(--s1); border-radius: var(--r-sm); font-size: 11.5px; cursor: pointer; color: var(--ink2); }
.viewer .vfoot .yaw button:hover { color: var(--ink); border-color: var(--line3); }
.viewer .nosk { display: none; position: absolute; inset: 0 0 46px; place-items: center; text-align: center; color: var(--ink3); font-size: 13px; padding: 20px; }
.viewer.noskin .nosk { display: grid; }
.p-name { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.p-name h1 { font: 700 40px/1 var(--cond); letter-spacing: .01em; }
.p-uuid { margin-top: 8px; padding: 3px 8px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: none; font: 600 11.5px var(--cond); letter-spacing: .04em; color: var(--ink3); cursor: pointer; }
.p-uuid:hover { color: var(--ink); border-color: var(--line3, var(--ink3)); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 18px; }
.facts > div { background: var(--s1); padding: 12px 14px; min-width: 0; }
.facts .k { font: 700 10.5px var(--cond); color: var(--ink4); }
.facts .v { font-size: 14px; font-weight: 600; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; }
.box { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); margin-top: 18px; }
.box-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.box-h h2 { font-size: 14px; font-weight: 800; }
.box-h .kick { font-size: 10.5px; }
.box-b { padding: 14px 16px; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--ink3); }
.kv dd { margin: 0; }
.stats { width: 100%; border-collapse: collapse; font-size: 13px; }
.stats th { text-align: right; font: 700 10.5px var(--cond); color: var(--ink4); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.stats th:first-child, .stats td:first-child { text-align: left; }
.stats td { text-align: right; padding: 9px 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.stats tr:last-child td { border-bottom: 0; }
.stats .w { color: var(--ok); } .stats .l { color: var(--red-ink); }
/* 제재 기록 */
.tscroll { overflow-x: auto; }
.banh th, .banh td { text-align: left !important; vertical-align: top; }
.banh td.why { color: var(--ink2); min-width: 160px; white-space: normal; }
.banh .st { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border: 1px solid var(--line2); border-radius: var(--r-sm); color: var(--ink3); }
.banh .st.on { color: var(--red-ink); border-color: var(--red-lo); background: rgba(226, 59, 69, .08); }
.banh .st.rm { color: var(--ink2); }
.worn { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.worn a, .worn div { display: block; border: 1px solid var(--line); border-radius: var(--r); background: var(--well); padding: 6px; }
.worn a:hover { border-color: var(--line3); }
.worn img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.worn span { display: block; font-size: 11.5px; color: var(--ink2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.names { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── 스토어 ── */
.store-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border: 1px solid var(--line2); border-radius: var(--r); font-size: 12.5px; font-weight: 600; color: var(--ink2); background: var(--s1); }
.chip:hover { color: var(--ink); border-color: var(--line3); }
.chip.on { background: var(--ink); color: var(--bg0); border-color: var(--ink); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
.filters .field { height: 34px; width: auto; font-size: 13px; }
.filters form.q { display: flex; }
.filters form.q .field { border-radius: var(--r) 0 0 var(--r); border-right: 0; width: 220px; }
.filters form.q .btn { height: 34px; border-radius: 0 var(--r) var(--r) 0; }
.count { font: 600 12px var(--cond); color: var(--ink3); margin-left: auto; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.it { position: relative; display: flex; flex-direction: column; background: var(--s1); transition: background-color .15s; }
.it:hover { background: var(--s2); }
.it .pic { aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(80% 70% at 50% 45%, #221a1e 0%, rgba(28, 21, 25, 0) 75%); }
.it .pic img { width: 82%; height: 82%; object-fit: contain; }
.it .pic img.cape { width: auto; height: 78%; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--line2); }
.it .pic img.cape.hd { image-rendering: auto; }
.it .pic .nopic { font: 700 11px var(--cond); color: var(--ink4); }
.it .meta { padding: 0 12px 12px; }
.it .nm { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it .sub { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 4px; font-size: 11.5px; color: var(--ink3); }
.price { font: 700 13px var(--cond); letter-spacing: .04em; color: var(--ink); }
.price.free { color: var(--ok); font-family: var(--sans); font-size: 12px; }
.it .own { position: absolute; top: 8px; left: 8px; }
.item-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.shot { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(120% 70% at 50% 35%, #221a1e 0%, #100c0e 70%); }
.shot .big { aspect-ratio: 1; display: grid; place-items: center; }
.shot .big img { width: 78%; height: 78%; object-fit: contain; }
.shot .big img.cape { height: 70%; width: auto; image-rendering: pixelated; }
.shot .big img.cape.hd { image-rendering: auto; }
.shot canvas { display: block; width: 100%; aspect-ratio: 1; height: auto; cursor: grab; touch-action: pan-y; }
.shot .vfoot { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); background: rgba(16, 12, 14, .9); font-size: 12px; color: var(--ink3); flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; }
.seg button { height: 28px; padding: 0 10px; border: 0; border-left: 1px solid var(--line2); background: var(--s1); color: var(--ink2); font-size: 12px; cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--s3); color: var(--ink); }
.buy { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); padding: 22px; }
.buy h1 { font-size: 28px; font-weight: 800; line-height: 1.2; margin-top: 10px; }
.buy .pr { font: 700 34px/1 var(--cond); margin: 18px 0 4px; }
.buy .pr.free { font: 800 24px/1 var(--sans); color: var(--ok); }
.buy .acts { display: grid; gap: 8px; margin-top: 18px; }
.buy .acts form { display: grid; }
.buy .acts .btn { width: 100%; }
.buy .fine { font-size: 12px; color: var(--ink3); margin-top: 14px; line-height: 1.6; }
.spec { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.testpay { max-width: 520px; margin: 40px auto; border: 1px dashed var(--warn); border-radius: var(--r-lg); padding: 24px; background: var(--s1); }
.testpay h1 { font-size: 22px; font-weight: 800; margin-top: 8px; }
.testpay .amt { font: 700 40px/1 var(--cond); margin: 18px 0; }
.testpay .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.upl { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.rules { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); padding: 18px; font-size: 13px; color: var(--ink2); }
.rules h3 { font-size: 13.5px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.rules ul { margin: 0 0 14px; padding-left: 1.2em; }
.rules li + li { margin-top: 4px; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kinds label { display: block; cursor: pointer; }
.kinds input { position: absolute; opacity: 0; }
.kinds span { display: block; padding: 12px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--well); font-weight: 700; font-size: 13.5px; }
.kinds span small { display: block; font-weight: 400; color: var(--ink3); font-size: 11.5px; margin-top: 2px; }
.kinds input:checked + span { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: var(--red-wash); }
.kinds input:focus-visible + span { outline: 2px solid var(--red-ink); outline-offset: 2px; }
.file { display: block; padding: 18px; border: 1px dashed var(--line3); border-radius: var(--r); background: var(--well); font-size: 13px; color: var(--ink2); }
.queue { display: grid; gap: 12px; }
.q-i { display: grid; grid-template-columns: 120px minmax(0, 1fr) 300px; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); align-items: start; }
.q-i .pic { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r); display: grid; place-items: center; background: var(--well); }
.q-i .pic img { width: 86%; height: 86%; object-fit: contain; }
.q-i .pic img.cape { width: auto; height: 80%; image-rendering: pixelated; }
.q-i h3 { font-size: 15px; font-weight: 800; }
.q-i .acts { display: grid; gap: 8px; }
.q-i .acts .two { display: flex; gap: 8px; }
.q-i .acts input.field { height: 34px; font-size: 13px; }
.creator-h { display: flex; gap: 16px; align-items: center; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: 13.5px; color: var(--ink3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--red); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font: 700 10.5px var(--cond); color: var(--ink4); padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--bg1); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; background: var(--s1); }
.inline { display: inline-flex; gap: 6px; align-items: center; }
.inline .field { height: 30px; width: auto; font-size: 12.5px; }

/* ── 로그인 ── */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 56px - 90px); }
.auth-art { position: relative; background: #0b080a url('/static/bg/castle.webp') 50% 40% / cover no-repeat; border-right: 1px solid var(--line); }
.auth-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 8, 10, .85), rgba(11, 8, 10, .1) 55%); }
.auth-art .cap { position: absolute; left: 32px; bottom: 32px; z-index: 1; }
.auth-art .cap b { display: block; font: 300 64px/1 var(--serif); }
.auth-art .cap span { font: 700 12px var(--cond); color: var(--ink2); }
.auth-form { display: grid; place-items: center; padding: 48px var(--gut); }
.auth-form > div { width: 100%; max-width: 380px; }
.auth-form h1 { font-size: 28px; font-weight: 800; margin: 10px 0 26px; }
.auth-form .btn.primary { width: 100%; height: 44px; margin-top: 6px; }
.auth-form .alt { margin-top: 18px; font-size: 13px; color: var(--ink3); }
.auth-form .alt a { color: var(--red-ink); font-weight: 600; }

/* ── 바닥 ── */
.foot { border-top: 1px solid var(--line); background: #0b080a; margin-top: 64px; }
.foot-in { display: flex; justify-content: space-between; gap: 20px; padding: 26px var(--gut); font-size: 12px; color: var(--ink3); flex-wrap: wrap; }
.foot-in nav { display: flex; gap: 16px; }
.foot-in a:hover { color: var(--ink); }

/* ── 공용 조각 (대시보드·API 문서) ── */
.small { font-size: 12px; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.clip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pad { padding: 12px 16px; }
.w100 { width: 100px !important; }
.w120 { width: 120px !important; }
.full { width: 100%; }
.lbl { display: block; font: 700 10.5px var(--cond); color: var(--ink3); margin-bottom: 6px; }
.stack { display: grid; gap: 10px; max-width: 380px; }
.stack .lbl { margin: 6px 0 -4px; }
.narrow { max-width: 640px; }
.two { display: flex; gap: 8px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); cursor: pointer; }
.chk input { accent-color: var(--red); width: 15px; height: 15px; margin: 0; }
.site-banner { background: var(--warn-wash); border-bottom: 1px solid rgba(240, 164, 106, .35); color: var(--warn); font-size: 13px; font-weight: 600; padding: 7px 0; }
.need { font: 600 11px var(--cond); color: var(--warn); }
.bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }

.tbl.dense th { padding: 8px 10px; }
.tbl.dense td { padding: 8px 10px; font-size: 12.5px; }
.tbl.dense th, .tbl.dense td { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.tbl.dense td.wrapok { white-space: normal; }
.tbl tr.dim td { opacity: .5; }
.tbl td.thumb { width: 56px; }
.tbl td.thumb img { width: 40px; height: 40px; object-fit: contain; background: var(--well); border: 1px solid var(--line); border-radius: var(--r-sm); }
.tbl td.thumb img.cape { image-rendering: pixelated; padding: 4px; }
.tbl .field { height: 30px; font-size: 12.5px; }
.act { font-family: var(--mono); font-size: 11.5px; color: var(--ink2); }
.act.a-ban, .act.a-owner, .act.a-user, .act.a-admin { color: var(--red-ink); }
.act.a-role, .act.a-apikey, .act.a-secret, .act.a-settings { color: var(--violet-ink); }
.act.a-item, .act.a-order, .act.a-points { color: var(--warn); }
.act.a-reauth, .act.a-2fa { color: var(--ink3); }
.tag.bk-temporary { border-color: rgba(240, 164, 106, .5); color: var(--warn); }
.tag.bk-permanent { border-color: rgba(226, 59, 69, .55); color: var(--red-ink); }
.tag.bk-hardware { border-color: var(--red); color: #fff; background: var(--red-lo); }
.tag.st-approved { color: var(--ok); border-color: rgba(127, 214, 164, .4); }
.tag.st-pending { color: var(--warn); border-color: rgba(240, 164, 106, .5); }
.tag.st-rejected, .tag.st-hidden { color: var(--ink3); }
.tag.kk-service { color: var(--violet-ink); border-color: rgba(165, 138, 151, .6); }
.dash .filters { margin: 0 0 12px; }
.dash .filters .field { width: 200px; }
.dash .filters select.field { width: auto; }

.ban-form, .key-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ban-form .f, .key-form .f { min-width: 120px; }
.ban-form .f.grow, .key-form .f.grow { flex: 1; min-width: 220px; }
.ban-form .field, .key-form .field { height: 36px; font-size: 13px; }
.ban-form .two .field[type=number] { width: 80px; }
.panel .hint { padding: 0 16px 12px; margin-top: 8px; }
.scope-pick { display: flex; flex-wrap: wrap; gap: 6px 14px; min-height: 36px; align-items: center; }
.scope-pick .mono { font-size: 11.5px; }
.scopes { display: flex; flex-wrap: wrap; gap: 4px; }
.scopes .sc { font-size: 11.5px; padding: 2px 6px; background: var(--s3); border-radius: var(--r-sm); color: var(--ink2); }
.keybox { border: 1px solid var(--ok); background: var(--ok-wash); border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 16px; display: grid; gap: 6px; }
.keybox .kick { color: var(--ok); }
.keybox code { font: 600 14px var(--mono); padding: 10px 12px; background: var(--well); border: 1px solid var(--line2); border-radius: var(--r); user-select: all; overflow-wrap: anywhere; }
.keybox p { font-size: 12px; color: var(--ink2); }

.matrix th.c, .matrix td.c { text-align: center; width: 92px; }
.matrix td.c input { accent-color: var(--red); width: 16px; height: 16px; }
.matrix .fixed { color: var(--red); font-size: 12px; }
.matrix tr.sep td { background: var(--bg1); font: 700 10.5px var(--cond); color: var(--red-ink); padding: 9px 10px; }
.matrix tr.owner-only td:first-child { box-shadow: inset 2px 0 0 var(--red-lo); }

.acts { display: grid; gap: 12px; padding: 14px 16px; }
.row-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row-f .lbl { margin: 0 4px 0 0; }
.row-f .field { height: 32px; font-size: 13px; width: auto; min-width: 150px; }
.danger-zone { border-color: rgba(226, 59, 69, .35) !important; }
.row-f.danger-zone { border: 1px dashed; padding: 10px; border-radius: var(--r); }
.panel .kv { padding: 14px 16px; }
.phrase { padding: 8px 10px; background: var(--well); border: 1px dashed var(--line3); border-radius: var(--r); font-size: 12.5px; color: var(--ink2); }
.settings { display: grid; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.set-row .mono { font-size: 11px; }
.set-row .field { max-width: 260px; height: 32px; }
.settings .bar { padding: 0 16px 14px; }
.mfa { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.qr { background: #f4eef2; padding: 10px; border-radius: var(--r); }
.qr svg { display: block; width: 100%; height: auto; }
.secret { font: 700 17px var(--mono); letter-spacing: .08em; padding: 12px; background: var(--well); border: 1px solid var(--line2); border-radius: var(--r); margin-bottom: 4px; user-select: all; }
.field.code { font: 700 22px var(--mono); letter-spacing: .4em; height: 50px; text-align: center; }
.box-b.stack { padding: 0; }

/* ── API 문서 ── */
.api-docs .dgrid { margin-top: 4px; }
.api-docs .prose p { font-size: 13px; color: var(--ink2); margin-bottom: 8px; }
.api-docs code, .ep-h code { font: 600 12.5px var(--mono); }
.eps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 16px; }
.ep { background: var(--s1); padding: 12px 16px; }
.ep-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ep p { font-size: 13px; color: var(--ink2); margin-top: 6px; }
.meth { font: 700 11px var(--cond); width: 46px; text-align: center; padding: 3px 0; border-radius: var(--r-sm); }
.meth.m-get { background: var(--violet-lo); color: var(--violet-ink); }
.meth.m-post { background: var(--red-lo); color: #fff; }
.meth.m-put, .meth.m-delete { background: var(--red-lo); color: #fff; }
.meth.m-delete { width: auto; min-width: 46px; padding: 3px 5px; }
.ep-p { margin-top: 6px; display: grid; gap: 2px; font-size: 12px; }
.ep pre { margin: 8px 0 0; padding: 8px 10px; background: var(--well); border: 1px solid var(--line); border-radius: var(--r); font: 12px var(--mono); color: var(--ink2); overflow-x: auto; }


/* ── 화면 안에 있던 style="…" 를 옮긴 것 (CSP style-src 'self' 는 style 속성을 막는다) ── */
.u1 { padding-bottom:14px !important; }
.u2 { display:flex !important;gap:6px !important;flex-wrap:wrap !important; }
.u3 { font-size:18px !important; }
.u4 { display:flex !important;justify-content:space-between !important;align-items:center !important;margin-top:10px !important;gap:10px !important; }
.u5 { margin:0 !important; }
.u6 { color:var(--red-ink) !important;font-weight:600 !important; }
.u7 { max-width:860px !important; }
.u8 { min-height:340px !important; }
.u9 { display:flex !important;gap:8px !important;justify-content:flex-end !important; }
.u10 { max-width:760px !important; }
.u11 { display:flex !important;justify-content:flex-end !important;margin-top:10px !important; }
.u12 { max-width:900px !important; }
.u13 { margin-top:10px !important; }
.u14 { font-size:12.5px !important; }
.u15 { margin-top:0 !important; }
.u16 { display:flex !important;gap:14px !important;align-items:center !important;flex-wrap:wrap !important; }
.u17 { flex:1 !important;min-width:0 !important; }
.u18 { font-weight:800 !important;font-size:16px !important; }
.u19 { margin-top:2px !important; }
.u20 { font-size:13.5px !important;color:var(--ink2) !important; }
.u21 { display:flex !important;gap:8px !important;margin-top:14px !important;max-width:420px !important; }
.u22 { font-family:var(--mono) !important; }
.u23 { margin:14px 0 0 !important; }
.u24 { display:grid !important;gap:12px !important;max-width:420px !important; }
.u25 { display:flex !important;justify-content:flex-end !important;margin-top:18px !important; }
.u26 { grid-template-columns:minmax(0,1fr) 64px !important; }
.u27 { display:flex !important;gap:8px !important;flex-wrap:wrap !important; }
.u28 { margin-top:8px !important; }
.u29 { color:var(--red-ink) !important; }
.u30 { margin-right:4px !important; }
.u31 { margin-top:10px !important;color:var(--ink2) !important;font-size:13.5px !important;white-space:pre-line !important; }
.u32 { margin-top:14px !important; }
.u33 { font-size:12.5px !important;margin-top:4px !important; }
.u34 { font-size:13px !important;color:var(--ink2) !important; }
.u35 { width:100% !important; }
.u36 { margin-top:36px !important; }
.u37 { font-size:20px !important; }
.u38 { color:var(--ink) !important; }
.u39 { min-height:90px !important; }
.u40 { max-width:200px !important; }
.u41 { display:flex !important;justify-content:flex-end !important; }
.u42 { font-size:12px !important; }
.u43 { margin-bottom:28px !important; }
.u44 { padding-bottom:16px !important;border:0 !important;margin:0 !important; }
.u45 { margin:12px 0 0 !important; }
.u46 { font-weight:400 !important; }
.u47 { font-size:13px !important; }
.u48 { object-fit:contain !important; }
.u49 { aspect-ratio:1 !important;border:0 !important;padding:0 !important;background:none !important; }
.u50 { aspect-ratio:1 !important;display:grid !important;place-items:center !important;border:0 !important;padding:0 !important;background:none !important;font:700 22px var(--cond) !important;color:var(--ink3) !important; }
.u51 { padding:22px 10px !important; }
.u52 { margin:18px 0 8px !important; }
.u53 { margin-top:28px !important; }

/* ── 좁은 화면 ── */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dgrid { grid-template-columns: 1fr; }
  .prof { grid-template-columns: 300px minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-i { grid-template-columns: 100px minmax(0, 1fr); }
  .q-i .acts { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; background: none; }
  .perm-list { grid-template-columns: 1fr; }
  .perm-list .pl:nth-child(odd) { border-right: 0; }
  .rail { position: static; height: auto; padding: 6px 0 0; background: #0b080a; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; }
  .rail nav { flex: none; }
  .rail-me, .rail-g, .rail-foot { display: none; }
  .rail nav { display: flex; overflow-x: auto; }
  .rail nav a { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; gap: 8px; padding: 0 12px; }
  .rail nav a.on { border-bottom-color: var(--red); }
  .dash-main { padding: 18px var(--gut) 40px; }
  .mfa { grid-template-columns: 1fr; }
  .qr { max-width: 220px; }
  .nav-search { display: none; }
  .cols2, .item-page, .upl, .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); }
  .feat { grid-template-columns: 1fr; }
  .layout-side { grid-template-columns: 1fr; }
  .side { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .side .side-h { display: none; }
  .side a { white-space: nowrap; border-left: 0; border: 1px solid var(--line); }
  .side a.on { border-radius: var(--r); border-color: var(--line3); }
  .side a span { margin-left: 8px; }
  .prof { grid-template-columns: minmax(0, 1fr); }
  .viewer canvas { height: 360px; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .nav-in { gap: 12px; height: 52px; }
  .nav-links { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 52px; background: #0b080a; border-top: 1px solid var(--line); justify-content: space-around; gap: 0; }
  .nav-links a { flex: 1; justify-content: center; padding: 0 4px; font-size: 13px; }
  html[lang="ja"] .nav-links a { font-size: 11.5px; white-space: nowrap; padding: 0 2px; }
  .nav-links a.on::after { top: -1px; bottom: auto; left: 22%; right: 22%; }
  body { padding-bottom: 52px; }
  .brand span { display: none; }
  .nav-acc .nm { display: none; }
  .hero { min-height: 0; }
  .hero-bg { background-position: 62% 20%; }
  .hero-bg::after { background: linear-gradient(0deg, rgba(11, 8, 10, .96) 18%, rgba(11, 8, 10, .55) 60%, rgba(11, 8, 10, .3) 100%); }
  .hero-in { padding: 120px var(--gut) 36px; }
  .hero h2 { margin-top: 22px; }
  .nums { grid-template-columns: 1fr; }
  .num { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px var(--gut); }
  .num:last-child { border-bottom: 0; }
  .num .v { font-size: 38px; }
  .news-i { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .news-i img { width: 92px; height: 72px; }
  .row { grid-template-columns: minmax(0, 1fr) 54px; padding: 12px; }
  .row .whocol, .row .d { display: none; }
  .row.head { display: none; }
  .page-h .ttl { font-size: 28px; }
  .ban { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 14px; }
  .ban .big { grid-column: 2; text-align: left; }
  .ban .st { font-size: 21px; }
  .p-name h1 { font-size: 32px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 110px minmax(0, 1fr); }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters form.q { width: 100%; }
  .filters form.q .field { width: 100%; flex: 1; }
  .count { margin-left: 0; }
  .kinds { grid-template-columns: 1fr; }
  .q-i { grid-template-columns: 80px minmax(0, 1fr); padding: 12px; gap: 12px; }
  .post-h, .post-body { padding-left: 16px; padding-right: 16px; }
  .post-act { padding: 12px 16px; }
  .search-big input { height: 48px; font-size: 16px; }
  .search-big button { height: 48px; padding: 0 16px; }
  .store-top { grid-template-columns: 1fr; }
  .stats .hide-sm { display: none; }
  .foot { margin-top: 40px; }
  .dh h1 { font-size: 22px; }
  .k-v { font-size: 22px; }
  .dash .filters .field { width: 100%; }
  .set-row { flex-direction: column; align-items: start; }
}

/* ── 배경 그림 (qimg) ── 글자 쪽은 늘 어둡게 덮는다 */
main.pg-forum, main.pg-dash { background: linear-gradient(180deg, rgba(11, 8, 10, 0) 280px, var(--bg0) 820px), url('/static/bg/forum.webp') right top / max(100%, 1280px) auto no-repeat; }
main.pg-players { background: linear-gradient(180deg, rgba(11, 8, 10, .55), var(--bg0) 520px), url('/static/bg/sky.webp') center -120px / 1280px auto no-repeat; }
@media (max-width: 760px) {
  main.pg-players { background-position: center -60px; background-size: 900px auto; }
}

/* ── 제작 가이드 · 템플릿 ── */
.tpl-box { margin: -18px -18px 18px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--s2); }
.tpl-box h3 { margin-bottom: 10px; }
.tpl-box .dls { grid-template-columns: 1fr; }
.tpl-box .more { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--ink2); }
.tpl-box .more:hover { color: var(--ink); }
.dls { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; margin-top: 14px; }
.dl { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border: 1px solid var(--line2); border-left: 3px solid var(--red-lo); border-radius: var(--r); background: var(--s1); }
.dl b { font-size: 13px; color: var(--ink); }
.dl span { font: 600 11px var(--cond); color: var(--ink3); }
.dl:hover { border-color: var(--line3); border-left-color: var(--red-ink); background: var(--s3); }
.guide section { padding: 34px 0 6px; border-top: 1px solid var(--line); margin-top: 26px; scroll-margin-top: 70px; }
.guide section:first-of-type { border-top: 0; margin-top: 0; padding-top: 4px; }
.guide h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; letter-spacing: -.01em; }
.guide h3 { font-size: 14px; font-weight: 800; margin: 18px 0 8px; }
.gmore { margin-top: 22px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--s1); }
.gmore summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.gmore summary::-webkit-details-marker { display: none; }
.gmore summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.gmore[open] summary::before { transform: rotate(45deg); }
.gmore summary:hover { color: var(--ink); }
.gmore-b { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.guide section > p, .guide .gsplit p, .guide .gcols p { color: var(--ink2); max-width: 760px; }
.guide .gsm { font-size: 12.5px; margin-top: 10px; }
.gnav { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 18px; }
.gnav a { padding: 6px 12px; border: 1px solid var(--line2); background: var(--s1); color: var(--ink2); font-size: 12.5px; font-weight: 600; border-radius: var(--r); }
.gnav a:hover { color: var(--ink); background: var(--s3); }
.gsplit { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gsplit .tbl { margin-top: 14px; border: 1px solid var(--line); }
.gart .sheet { width: 100%; height: auto; border: 1px solid var(--line2); background: repeating-conic-gradient(#1c1519 0 25%, #120d10 0 50%) 0 0 / 16px 16px; }
.gstage { margin-top: 10px; aspect-ratio: 16 / 10; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 30%, rgba(226, 59, 69, .12), transparent 60%), var(--bg1); }
.gstage canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.gart .tools { margin-top: 8px; }
.sw { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; border: 1px solid rgba(0, 0, 0, .5); }
.sw.c-front { background: #e23b45; } .sw.c-back { background: #585294; } .sw.c-top { background: #e8c45c; } .sw.c-bottom { background: #7ab274; } .sw.c-side { background: #68a0d6; }
.slot-dls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.slot-dls .sd { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--s1); }
.slot-dls .sd b { font-size: 13px; }
.slot-dls .sd span { font-size: 11px; color: var(--ink3); }
.slot-dls .sd:hover { border-color: var(--red-lo); background: var(--s3); }
.gcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 6px; }
.guide .kv dt { color: var(--ink); font-size: 12.5px; }
.guide .kv dd { color: var(--ink2); font-size: 13px; margin-bottom: 8px; }
.gl { padding-left: 1.2em; color: var(--ink2); font-size: 13px; }
.gl li + li { margin-top: 4px; }
.steps { padding-left: 1.4em; color: var(--ink2); font-size: 13px; }
.steps li + li { margin-top: 6px; }
.steps.big { list-style: none; padding: 0; counter-reset: st; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.steps.big li { counter-increment: st; margin: 0; padding: 14px; border: 1px solid var(--line); background: var(--s1); border-radius: var(--r); display: flex; flex-direction: column; gap: 6px; }
.steps.big li::before { content: counter(st, decimal-leading-zero); font: 700 13px var(--cond); color: var(--red-ink); }
.steps.big b { color: var(--ink); font-size: 14px; }
.rule-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rule-grid > div { padding: 14px; border: 1px solid var(--line); border-top: 2px solid var(--line3); background: var(--s1); border-radius: var(--r); }
.rule-grid h3 { margin: 0 0 6px; }
.rule-grid p { font-size: 13px; color: var(--ink2); }
.errs td:first-child { color: var(--ink); width: 40%; }
.errs td:last-child { color: var(--ink2); }
@media (max-width: 960px) {
  .gsplit, .gcols { grid-template-columns: 1fr; }
  .steps.big, .rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-dls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .steps.big, .rule-grid { grid-template-columns: 1fr; }
  .slot-dls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .errs td:first-child { width: auto; }
}
.guide td.mono, #spec td:nth-child(2) { white-space: nowrap; }
@media (max-width: 560px) { #spec .tbl { font-size: 12px; } #spec .tbl td, #spec .tbl th { padding: 8px; } }
.rows .row .d { white-space: nowrap; flex-shrink: 0; }
table.stats td:not(:first-child) { white-space: nowrap; }
@media (max-width: 560px) { table.stats .srv { display: none; } table.stats td, table.stats th { padding-left: 6px; padding-right: 6px; } }
.faces td:first-child { white-space: nowrap; }

/* ══════════ 3판: 프로필 사진·배너·칭호, 포럼 ══════════ */
.ic { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; }

/* 프로필 사진 — 네모(모서리 3px). 마크 머리는 픽셀 그대로 */
.av { flex: none; object-fit: cover; background: var(--s3); border: 1px solid var(--line2); }
.av.s { width: 22px; height: 22px; border-radius: var(--r-sm); }
.av.m { width: 40px; height: 40px; border-radius: var(--r-sm); }
.av.l { width: 112px; height: 112px; border-radius: var(--r-sm); border-width: 2px; }
.av.px { image-rendering: pixelated; }
span.av { display: grid; place-items: center; font: 700 11px var(--cond); color: var(--ink3); }
span.av.m { font-size: 16px; } span.av.l { font-size: 40px; }
.who { gap: 6px; }
.who .nm { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .nm:hover { color: var(--red-ink); }

/* 칭호 — 오른쪽 위 모서리를 깎은 각진 표, 등급별 선·글자색 */
.tb { display: inline-flex; align-items: center; height: 18px; padding: 0 7px 0 6px; font: 700 10.5px/1 var(--sans); letter-spacing: .02em; white-space: nowrap; border: 1px solid var(--line3); color: var(--ink2); background: var(--s2); clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 0 100%); flex: none; max-width: 14em; overflow: hidden; text-overflow: ellipsis; }
.tb.r-rare { border-color: rgba(116, 168, 255, .55); color: #a9c8ff; background: rgba(76, 120, 210, .12); }
.tb.r-epic { border-color: rgba(150, 125, 255, .7); color: var(--violet-ink); background: rgba(165, 138, 151, .18); }
.tb.r-legend { border-color: rgba(233, 189, 92, .7); color: #f2cf7f; background: rgba(233, 189, 92, .1); }
.tb.r-mythic { border-color: var(--red); color: #ffd1e0; background: linear-gradient(90deg, var(--red-lo) 0 3px, rgba(226, 59, 69, .2) 3px); padding-left: 9px; }

/* 머리 종 */
.nav-bell { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); color: var(--ink2); }
.nav-bell:hover, .nav-bell.on { color: var(--ink); border-color: var(--line2); }
.nav-bell .ic { width: 17px; height: 17px; }
.nav-bell .bn { position: absolute; top: -5px; right: -6px; min-width: 17px; height: 15px; padding: 0 4px; background: var(--red); color: #fff; font: 700 10px/15px var(--cond); text-align: center; border-radius: var(--r-sm); }
.acc-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* ── 포럼 목록 ── */
.forum { padding-bottom: 48px; }
.f-hero { padding: 30px 0 18px; display: flex; align-items: end; gap: 20px; }
.f-hero .ttl { margin-top: 8px; font-size: 30px; }
.f-hero p { margin-top: 6px; color: var(--ink2); font-size: 13.5px; max-width: 640px; }
.f-grid { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 22px; align-items: start; }
.f-side { position: sticky; top: 72px; display: grid; gap: 14px; }
.f-write { width: 100%; height: 40px; }
.f-cats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.f-cats .side-h, .f-tagbox .side-h { font: 700 10.5px var(--cond); color: var(--ink4); padding: 10px 12px 6px; background: var(--s1); }
.f-cats a { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: rgba(28, 21, 25, .92); font-size: 13.5px; font-weight: 600; color: var(--ink2); border-left: 2px solid transparent; }
.f-cats a:hover { color: var(--ink); background: var(--s2); }
.f-cats a.on { color: var(--ink); background: var(--s2); border-left-color: var(--red); }
.f-cats a b { font: 600 11.5px var(--cond); color: var(--ink4); }
.f-tagbox { border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(28, 21, 25, .92); }
.f-tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 10px 12px; }
.tg { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border: 1px solid var(--line2); border-radius: var(--r-sm); font-size: 12px; font-weight: 600; color: var(--ink2); background: var(--well); white-space: nowrap; }
.tg:hover { color: var(--ink); border-color: var(--line3); }
.tg small { font: 600 10.5px var(--cond); color: var(--ink4); }
.tg.sm { height: 18px; font-size: 11px; padding: 0 5px; color: var(--ink3); }
.f-tools { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; }
.f-sort { display: flex; border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; background: var(--s1); }
.f-sort a { padding: 0 13px; height: 34px; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--ink3); }
.f-sort a + a { border-left: 1px solid var(--line); }
.f-sort a:hover { color: var(--ink); }
.f-sort a.on { color: var(--ink); background: var(--s3); box-shadow: inset 0 -2px 0 var(--red); }
.f-search { display: flex; min-width: 0; flex: 0 1 380px; }
.f-search select, .f-search input, .f-search button { height: 34px; border: 1px solid var(--line2); background: var(--well); font-size: 13px; }
.f-search select { border-radius: var(--r) 0 0 var(--r); padding: 0 8px; border-right: 0; color: var(--ink2); background: var(--s1); }
.f-search input { flex: 1; min-width: 0; padding: 0 10px; }
.f-search input:focus { outline: none; border-color: var(--red-lo); }
.f-search button { width: 38px; display: grid; place-items: center; border-left: 0; border-radius: 0 var(--r) var(--r) 0; background: var(--s2); color: var(--ink2); cursor: pointer; }
.f-filter { display: flex; gap: 12px; align-items: center; padding: 8px 12px; margin-bottom: 10px; border: 1px solid var(--line); border-left: 2px solid var(--violet); background: var(--s1); font-size: 13px; color: var(--ink2); flex-wrap: wrap; }
.f-filter a { display: inline-flex; gap: 4px; align-items: center; margin-left: auto; color: var(--ink3); font-weight: 600; font-size: 12.5px; }
.f-filter a:hover { color: var(--ink); }
.f-list { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: rgba(28, 21, 25, .94); }
.f-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px 12px 8px; border-top: 1px solid var(--line); align-items: start; }
.f-row:first-child { border-top: 0; }
.f-row:hover { background: var(--s2); }
.f-row.pin { background: rgba(226, 59, 69, .05); padding-top: 9px; padding-bottom: 9px; }
.f-row.pin .f-t { font-size: 14px; }
.f-score { display: grid; justify-items: center; gap: 0; padding-top: 2px; color: var(--ink4); }
.f-score b { font: 700 14px/1.2 var(--cond); color: var(--ink2); letter-spacing: .02em; }
.f-score.mine-up { color: var(--red-ink); } .f-score.mine-up b { color: var(--red-ink); }
.f-score.mine-down { color: var(--violet-ink); }
.f-body { min-width: 0; }
.f-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-height: 0; }
.f-meta:empty { display: none; }
.mk { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 5px; border: 1px solid var(--line2); border-radius: var(--r-sm); font-size: 11px; font-weight: 700; color: var(--ink3); white-space: nowrap; }
.mk .ic { width: 12px; height: 12px; vertical-align: 0; }
.mk.cat { color: var(--ink2); }
.mk.cat:hover { color: var(--ink); border-color: var(--line3); }
.mk.pin { color: var(--red-ink); border-color: rgba(226, 59, 69, .45); }
.mk.new { color: var(--red-ink); background: var(--red-wash); border-color: var(--red-lo); font-family: var(--cond); letter-spacing: .05em; }
.mk.ok { color: var(--ok); border-color: rgba(127, 214, 164, .4); }
.mk.warn { color: var(--warn); border-color: rgba(240, 164, 106, .5); }
.f-t { margin-top: 4px; font-size: 15px; font-weight: 700; line-height: 1.4; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.f-t > a:first-child { color: var(--ink); }
.f-t > a:first-child:hover { color: var(--red-ink); }
.f-t a:first-child:visited { color: var(--ink2); }
.f-cn { font: 700 13px var(--cond); color: var(--red-ink); letter-spacing: .02em; }
.f-im { display: inline-flex; gap: 2px; align-items: center; font: 600 12px var(--cond); color: var(--ink3); }
.f-im .ic { width: 13px; height: 13px; vertical-align: 0; }
.f-pv { margin-top: 3px; font-size: 13px; color: var(--ink3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.55; }
.f-by { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 12px; color: var(--ink3); flex-wrap: wrap; min-width: 0; }
.f-by .who { font-size: 12.5px; max-width: 100%; }
.f-by .dot { color: var(--ink4); }
.f-st { display: inline-flex; gap: 10px; color: var(--ink4); font: 600 12px var(--cond); letter-spacing: .02em; }
.f-st span { display: inline-flex; align-items: center; gap: 3px; }
.f-st .ic { width: 13px; height: 13px; vertical-align: 0; }
.f-cover { display: block; width: 160px; height: 90px; border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; background: var(--well); align-self: center; }
.f-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--ease); }
.f-row:hover .f-cover img { transform: scale(1.04); }

/* ── 글 보기 ── */
.crumbs { display: flex; gap: 8px; align-items: center; padding: 22px 0 14px; font-size: 12.5px; font-weight: 600; color: var(--ink3); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--ink4); }
.pv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 22px; align-items: start; }
.pv { border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(28, 21, 25, .96); }
.pv-h { padding: 20px 26px 16px; border-bottom: 1px solid var(--line); }
.pv-h h1 { font-size: 25px; font-weight: 800; line-height: 1.3; margin-top: 8px; letter-spacing: -.005em; }
.pv-meta { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 12.5px; color: var(--ink3); flex-wrap: wrap; }
.pv-body { padding: 22px 26px 8px; font-size: 15px; line-height: 1.8; }
.pv-tags { display: flex; gap: 5px; flex-wrap: wrap; padding: 14px 26px 0; }
.pv-bar { display: flex; gap: 8px; align-items: center; padding: 14px 26px 16px; flex-wrap: wrap; }
.pv-bar form:not(.vote) { display: inline; }
.pv-bar .sp { flex: 1; }
.pv-mod { display: flex; gap: 6px; align-items: center; padding: 10px 26px; border-top: 1px dashed var(--line2); flex-wrap: wrap; background: var(--bg1); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.pv-mod .kick { color: var(--ink4); margin-right: 6px; }
.pv-mod form { display: inline; }
.vote { display: inline-flex; align-items: stretch; border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; background: var(--s1); }
.vb { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border: 0; background: none; color: var(--ink3); cursor: pointer; font: 600 12.5px var(--cond); letter-spacing: .02em; }
.vb:hover:not([disabled]) { color: var(--ink); background: var(--s2); }
.vb.up.on { color: #fff; background: var(--red); }
.vb.down.on { color: #fff; background: var(--violet); }
.vb[disabled] { cursor: default; opacity: .7; }
.vs { display: grid; place-items: center; min-width: 40px; padding: 0 6px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font: 700 15px var(--cond); color: var(--ink); }
.vote.mini { border: 0; background: none; }
.vote.mini .vb { height: 22px; padding: 0 4px; }
.vote.mini .vb.up.on { background: none; color: var(--red-ink); }
.pv-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pn { display: grid; gap: 3px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(28, 21, 25, .9); min-width: 0; }
.pn:hover { border-color: var(--line3); }
.pn .k { display: inline-flex; align-items: center; gap: 4px; font: 700 10.5px var(--cond); color: var(--ink4); }
.pn b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn.r { text-align: right; justify-items: end; }
.pn.none { border: 0; background: none; }
.pv-side { position: sticky; top: 72px; display: grid; gap: 12px; }
.acard { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--s1); }
.ac-ban { height: 84px; background: var(--s3); }
.ac-ban img { width: 100%; height: 100%; object-fit: cover; }
.ac-ban.none { background: linear-gradient(135deg, var(--s2), var(--violet-lo)); height: 44px; }
.ac-b { padding: 0 16px 14px; display: grid; justify-items: start; gap: 6px; }
.ac-b .av.m { width: 56px; height: 56px; margin-top: -28px; border: 2px solid var(--s1); box-shadow: 0 0 0 1px var(--line2); }
.ac-nm { font-size: 16px; font-weight: 800; }
.ac-nm:hover { color: var(--red-ink); }
.ac-b dl { margin: 6px 0 0; width: 100%; display: grid; gap: 4px; font-size: 12.5px; }
.ac-b dl div { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 5px; }
.ac-b dt { color: var(--ink3); } .ac-b dd { margin: 0; font-weight: 600; }
.pinfo { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); padding: 6px 14px; font-size: 12.5px; }
.pinfo div { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.pinfo div:first-child { border-top: 0; }
.pinfo span { color: var(--ink3); }
.pinfo b { font-family: var(--cond); font-size: 13.5px; letter-spacing: .02em; }

/* 글 속 그림: 한 장은 크게, 여러 장이 한 문단이면 바둑판 */
.prose img { max-height: 560px; width: auto; height: auto; cursor: zoom-in; background: var(--well); }
.prose p:has(> img + img), .prose p:has(> img + br + img) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.prose p:has(> img:nth-of-type(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose p:has(> img:nth-of-type(4):last-of-type) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose p:has(> img + img) br { display: none; }
.prose p:has(> img + img) img { width: 100%; height: 300px; object-fit: cover; max-height: none; margin: 0; }
.prose p:has(> img:nth-of-type(3)) img { height: 220px; }
.prose p:has(> img:nth-of-type(4):last-of-type) img { height: 300px; }
.prose .spoiler { background: var(--ink4); color: transparent; border-radius: var(--r-sm); padding: 0 3px; cursor: pointer; transition: color .15s, background-color .15s; }
.prose .spoiler a, .prose .spoiler code { visibility: hidden; }
.prose .spoiler.open { background: var(--s3); color: inherit; }
.prose .spoiler.open a, .prose .spoiler.open code { visibility: visible; }
.prose a.mention { color: var(--violet-ink); text-decoration: none; font-weight: 700; background: rgba(165, 138, 151, .14); padding: 0 3px; border-radius: var(--r-sm); }

/* 보는 창 (그림 크게) */
.lbx { position: fixed; inset: 0; z-index: 90; background: rgba(11, 8, 10, .94); display: grid; grid-template-rows: auto 1fr auto; }
.lbx[hidden] { display: none; }
.lbx-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--ink2); font: 600 12.5px var(--cond); }
.lbx-top .sp { flex: 1; }
.lbx button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: var(--r); background: rgba(28, 21, 25, .85); color: var(--ink); cursor: pointer; }
.lbx button:hover { border-color: var(--line3); }
.lbx-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lbx-stage img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border: 0; cursor: zoom-out; }
.lbx .prev, .lbx .next { position: absolute; top: 50%; transform: translateY(-50%); }
.lbx .prev { left: 14px; } .lbx .next { right: 14px; }
.lbx-thumbs { display: flex; gap: 6px; justify-content: center; padding: 10px; overflow-x: auto; }
.lbx-thumbs img { width: 64px; height: 44px; object-fit: cover; border: 1px solid var(--line2); border-radius: var(--r-sm); opacity: .55; cursor: pointer; }
.lbx-thumbs img.on { opacity: 1; border-color: var(--red); }

/* 댓글 */
.cmts { margin-top: 22px; }
.cm-empty { padding: 4px 0 8px; font-size: 13px; }
.cm { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.cm:target { background: linear-gradient(90deg, rgba(226, 59, 69, .1), transparent 70%); }
.cm-kids { margin-left: 52px; border-left: 2px solid var(--line2); padding-left: 14px; }
.cm.child { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 10px 0; }
.cm.child .av.m { width: 32px; height: 32px; }
.cm-kids .cm:first-child { border-top: 0; }
.cm-h { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink3); flex-wrap: wrap; }
.cm-h .nm { color: var(--ink); font-weight: 700; font-size: 13.5px; }
.cm-h .nm:hover { color: var(--red-ink); }
.cm-h a.muted:hover { color: var(--ink); }
.op { font: 700 10px/16px var(--cond); padding: 0 5px; border: 1px solid rgba(226, 59, 69, .5); color: var(--red-ink); border-radius: var(--r-sm); }
.cm-t { font-size: 14px; margin-top: 4px; }
.cm-t img { max-height: 320px; }
.cm-act { display: flex; gap: 12px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.cm-act form:not(.vote) { display: inline; }
.ab { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; color: var(--ink3); font-size: 12px; font-weight: 600; cursor: pointer; }
.ab:hover { color: var(--ink); }
.ab .ic { width: 14px; height: 14px; vertical-align: 0; }
.cm.hidden-c { opacity: .55; }
.rep { position: relative; display: inline-block; }
.rep summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: var(--ink3); font-size: 12px; font-weight: 600; height: 30px; }
.rep summary::-webkit-details-marker { display: none; }
.rep summary:hover { color: var(--ink); }
.rep .ic { width: 14px; height: 14px; vertical-align: 0; }
.rep form { position: absolute; z-index: 15; top: 100%; left: 0; width: 210px; display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line3); border-radius: var(--r); background: var(--s2); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); font-size: 13px; }
.rep label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.cm-act .rep summary { height: auto; }
.reply { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(28, 21, 25, .96); }
.reply .bar { margin-top: 10px; justify-content: flex-end; }
.reply-to { display: flex; gap: 10px; align-items: center; padding: 6px 10px; margin-bottom: 8px; border-left: 2px solid var(--violet); background: var(--s2); font-size: 12.5px; color: var(--ink2); }
.reply-to[hidden] { display: none; }

/* ── 글쓰기 칸 ── */
.ed-wrap { max-width: 920px; }
.post-form { display: grid; gap: 12px; }
.pf-top { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px; }
.pf-title { height: 46px; font-size: 17px; font-weight: 700; }
.pf-top select.field { height: 46px; background-position: calc(100% - 15px) 20px, calc(100% - 10px) 20px; }
.pf-tags label.lb { margin-bottom: 4px; }
.pf-act { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pf-act .hint { margin: 0; max-width: 520px; }
.pf-act .sp { flex: 1; }
.ed { border: 1px solid var(--line2); border-radius: var(--r); background: var(--well); }
.ed:focus-within { border-color: var(--red-lo); box-shadow: 0 0 0 1px var(--red-lo); }
.ed.drag { border-color: var(--red); box-shadow: 0 0 0 2px rgba(226, 59, 69, .35); background: rgba(226, 59, 69, .04); }
.ed-bar { display: flex; align-items: stretch; justify-content: space-between; border-bottom: 1px solid var(--line2); background: var(--s1); border-radius: var(--r) var(--r) 0 0; flex-wrap: wrap; }
.ed-tabs { display: flex; }
.ed-tabs button { height: 36px; padding: 0 14px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--ink3); font-size: 13px; font-weight: 600; cursor: pointer; }
.ed-tabs button.on { color: var(--ink); background: var(--well); box-shadow: inset 0 2px 0 var(--red); }
.ed-tools { display: flex; flex-wrap: wrap; }
.ed-tools button { width: 34px; height: 36px; display: grid; place-items: center; border: 0; border-left: 1px solid var(--line); background: none; color: var(--ink3); cursor: pointer; }
.ed-tools button:hover { color: var(--ink); background: var(--s2); }
.ed-ta { display: block; width: 100%; min-height: 140px; padding: 12px 14px; border: 0; background: none; resize: vertical; font: 14.5px/1.7 var(--sans); }
.ed-ta[rows="16"] { min-height: 360px; }
.ed-ta:focus { outline: none; }
.ed-prev { min-height: 140px; padding: 14px 16px; }
.ed-prev[hidden], .ed textarea[hidden] { display: none; }
.ed-foot { display: flex; gap: 12px; align-items: center; padding: 6px 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink4); }
.ed-foot .sp { flex: 1; }
.ed-count { font: 600 11.5px var(--cond); letter-spacing: .04em; color: var(--ink3); }
.ed-count.over { color: var(--red-ink); }
.ed-draft { color: var(--ink3); }
.ed-draft button { background: none; border: 0; color: var(--red-ink); font-size: 11.5px; cursor: pointer; padding: 0 0 0 6px; font-weight: 600; }
.ed-ups { display: grid; gap: 1px; }
.ed-ups:empty { display: none; }
.upr { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 12px; border-top: 1px solid var(--line); font-size: 12.5px; background: var(--s1); }
.upr img, .upr .ph { width: 44px; height: 32px; object-fit: cover; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--s3); }
.upr .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
.upr .pb { grid-column: 2; height: 3px; background: var(--s3); position: relative; overflow: hidden; margin-top: 4px; }
.upr .pb i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--red); transition: width .15s; }
.upr .st { font: 600 11.5px var(--cond); letter-spacing: .04em; color: var(--ink3); }
.upr.done .st { color: var(--ok); }
.upr.done .pb i { background: var(--ok); }
.upr.bad { background: var(--red-wash); }
.upr.bad .st { color: var(--red-ink); }

/* ── 알림 ── */
.nf-wrap { max-width: 860px; }
.nf-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 30px 0 18px; }
.nf-h .ttl { margin-top: 8px; }
.nf-list { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: rgba(28, 21, 25, .96); }
.nf-list:empty { display: none; }
.nf { display: grid; grid-template-columns: 22px 40px minmax(0, 1fr) 10px; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink2); }
.nf:first-child { border-top: 0; }
.nf:hover { background: var(--s2); }
.nf.unread { background: rgba(226, 59, 69, .05); color: var(--ink); }
.nf-ic { color: var(--ink4); display: grid; place-items: center; }
.nf.unread .nf-ic { color: var(--red-ink); }
.nf-t { display: grid; gap: 2px; min-width: 0; }
.nf-t > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.nf-t .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-dot { width: 8px; height: 8px; background: var(--red); }

/* ── 회원 페이지 ── */
.mhead { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--s1); }
.mban { aspect-ratio: 3 / 1; max-height: 320px; width: 100%; background: linear-gradient(135deg, var(--s2), var(--violet-lo) 70%, var(--red-lo)); }
.mhead:not(.has-ban) .mban { aspect-ratio: auto; height: 90px; }
.mban img { width: 100%; height: 100%; object-fit: cover; }
.mid { display: flex; gap: 18px; align-items: end; padding: 0 22px 18px; }
.mid .av.l { margin-top: -56px; border: 3px solid var(--s1); box-shadow: 0 0 0 1px var(--line2); }
.mtx { min-width: 0; flex: 1; padding-bottom: 4px; }
.mnm { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mnm h1 { font-size: 26px; font-weight: 800; }
.mtx .small { margin-top: 4px; }
.mtx .small a { color: var(--ink2); text-decoration: underline; text-decoration-color: var(--line3); }
.medit { align-self: end; }
.tt-row { display: flex; flex-wrap: wrap; gap: 6px; }
.mlist { display: grid; }
.mpost { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.mpost:first-child { border-top: 0; }
.mpost:hover { background: var(--s2); }
.mth { width: 96px; height: 54px; object-fit: cover; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--well); }
.mth.none { display: block; background: repeating-linear-gradient(135deg, var(--s2) 0 6px, var(--s1) 6px 12px); }
.mpt { display: grid; gap: 2px; min-width: 0; }
.mpt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbanner { position: relative; display: block; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; height: 200px; }
.pbanner img { width: 100%; height: 100%; object-fit: cover; }
.pb-who { position: absolute; left: 14px; bottom: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; background: rgba(11, 8, 10, .82); border: 1px solid var(--line2); border-radius: var(--r); }
.pb-who b { font-size: 14px; }

/* ── 프로필 꾸미기 ── */
.me-wrap { max-width: 980px; padding-bottom: 48px; }
.me-prev { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--s1); }
.me-ban { aspect-ratio: 3 / 1; background: linear-gradient(135deg, var(--s2), var(--violet-lo) 70%, var(--red-lo)); }
.me-ban img { width: 100%; height: 100%; object-fit: cover; }
.me-id { display: flex; gap: 16px; align-items: end; padding: 0 20px 16px; }
.me-id .av.l { margin-top: -50px; border: 3px solid var(--s1); box-shadow: 0 0 0 1px var(--line2); }
.me-nm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.me-nm b { font-size: 20px; font-weight: 800; }
.me-id a.muted { font-size: 12.5px; }
.me-id a.muted:hover { color: var(--ink); }
.crop-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.crop-side { display: grid; gap: 10px; justify-items: start; }
.crop-now { display: flex; gap: 12px; align-items: end; }
.cropper { display: grid; gap: 8px; }
.cropper[hidden] { display: none; }
.crop-stage { position: relative; width: 260px; height: 260px; overflow: hidden; background: repeating-conic-gradient(var(--s2) 0 25%, var(--s1) 0 50%) 0 0 / 16px 16px; border: 1px solid var(--line3); border-radius: var(--r); cursor: grab; touch-action: none; user-select: none; }
.cropper.wide .crop-stage { width: min(100%, 600px); height: auto; aspect-ratio: 3 / 1; }
.crop-stage:active { cursor: grabbing; }
.crop-img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-frame { position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); pointer-events: none; }
.crop-frame::after { content: ''; position: absolute; inset: 33.3% 0; border-top: 1px solid rgba(255, 255, 255, .25); border-bottom: 1px solid rgba(255, 255, 255, .25); }
.crop-zoom { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink3); }
.crop-zoom input { flex: 1; accent-color: var(--red); }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cropf .hint { margin: 0; }
.inline-f { margin-top: 10px; }
.ban-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ban-opt { position: relative; display: grid; gap: 4px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.ban-opt input { position: absolute; opacity: 0; }
.ban-opt img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border: 1px solid var(--line2); border-radius: var(--r); }
.ban-opt:hover img { border-color: var(--line3); }
.ban-opt input:checked + img { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.ban-opt input:focus-visible + img { outline: 2px solid var(--red-ink); outline-offset: 2px; }
.cropf[data-aspect="3"] { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.tt-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tt-opt { display: flex; gap: 10px; align-items: center; padding: 9px 12px; background: var(--s1); cursor: pointer; flex-wrap: wrap; }
.tt-opt:hover { background: var(--s2); }
.tt-opt input { accent-color: var(--red); margin: 0; }
.kick.mt { margin: 18px 0 8px; color: var(--ink3); }
.tt-shop { display: grid; gap: 6px; }
.tt-shop form { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); flex-wrap: wrap; }
.tt-shop form .small { flex: 1; }
.box-h a.sm { font-size: 12px; margin-left: auto; }
.box-h a.sm:hover { color: var(--ink); }

/* 칭호 목록 */
.tt-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-bottom: 28px; }
.tt-card { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(28, 21, 25, .94); }
.tt-card.have { border-color: rgba(127, 214, 164, .3); }
.tt-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tt-r { font: 700 10px var(--cond); color: var(--ink4); }
.tt-card p { font-size: 12.5px; color: var(--ink3); }
.tt-foot { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.tt-foot .sp { flex: 1; }
.tt-new { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 16px; align-items: end; }
.tt-new .f.grow { grid-column: 1 / -2; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }

@media (max-width: 1100px) {
  .pv-grid { grid-template-columns: minmax(0, 1fr); }
  .pv-side { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tt-new { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-new .f.grow { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .f-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .f-side { position: static; display: flex; gap: 8px; align-items: center; overflow-x: auto; padding-bottom: 2px; }
  .f-write { width: auto; flex: none; height: 34px; }
  .f-cats { display: flex; background: none; border: 0; gap: 4px; flex: none; }
  .f-cats .side-h, .f-tagbox { display: none; }
  .f-cats a { border: 1px solid var(--line); border-radius: var(--r); white-space: nowrap; gap: 8px; padding: 6px 10px; }
  .f-cats a.on { border-color: var(--line3); border-left: 1px solid var(--line3); box-shadow: inset 0 -2px 0 var(--red); }
  .f-search { flex: 1 1 100%; }
  .crop-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .nav-bell { width: 32px; height: 32px; }
  .f-hero { padding: 18px 0 12px; }
  .f-hero .ttl { font-size: 24px; }
  .f-hero p { font-size: 12.5px; }
  .f-sort { width: 100%; }
  .f-sort a { flex: 1; padding: 0 4px; font-size: 12.5px; }
  .f-row { grid-template-columns: minmax(0, 1fr) auto; padding: 11px 12px; gap: 10px; }
  .f-score { display: none; }
  .f-cover { width: 84px; height: 64px; align-self: start; margin-top: 4px; }
  .f-t { font-size: 14.5px; }
  .f-pv { -webkit-line-clamp: 1; }
  .f-by .tg.sm { display: none; }
  .pv-h { padding: 16px 16px 14px; }
  .pv-h h1 { font-size: 20px; }
  .pv-body { padding: 16px 16px 4px; font-size: 14.5px; }
  .pv-tags { padding: 12px 16px 0; }
  .pv-bar { padding: 12px 16px 14px; gap: 6px; }
  .pv-bar .btn span { display: none; }
  .pv-mod { padding: 10px 16px; }
  .pv-side { grid-template-columns: minmax(0, 1fr); }
  .pv-nav { grid-template-columns: minmax(0, 1fr); }
  .pn.r { text-align: left; justify-items: start; }
  .prose p:has(> img + img), .prose p:has(> img:nth-of-type(3)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose p:has(> img + img) img, .prose p:has(> img:nth-of-type(3)) img, .prose p:has(> img:nth-of-type(4):last-of-type) img { height: 140px; }
  .cm-kids { margin-left: 18px; padding-left: 10px; }
  .pf-top { grid-template-columns: minmax(0, 1fr); }
  .ed-bar { flex-direction: column; }
  .ed-tabs { border-bottom: 1px solid var(--line); }
  .ed-tools { overflow-x: auto; flex-wrap: nowrap; }
  .ed-bar > * { max-width: 100%; min-width: 0; }
  .ed-tools button:first-child { border-left: 0; }
  .ed-hint { display: none; }
  .ed-ta[rows="16"] { min-height: 260px; }
  .lbx-stage { padding: 0 8px; }
  .lbx .prev, .lbx .next { top: auto; bottom: -50px; transform: none; }
  .nf { grid-template-columns: 18px 32px minmax(0, 1fr) 8px; gap: 10px; padding: 10px 12px; font-size: 13px; }
  .nf .av.m { width: 32px; height: 32px; }
  .mid { padding: 0 14px 14px; gap: 12px; flex-wrap: wrap; }
  .mid .av.l, .me-id .av.l { width: 80px; height: 80px; margin-top: -40px; }
  .mnm h1 { font-size: 21px; }
  .ban-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crop-stage { width: 100%; max-width: 300px; height: auto; aspect-ratio: 1; }
  .pbanner { height: auto; aspect-ratio: 3 / 1; }
  .mpost { grid-template-columns: 72px minmax(0, 1fr); padding: 10px 12px; }
  .mth { width: 72px; height: 44px; }
  .tt-new { grid-template-columns: minmax(0, 1fr); }
  .three { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .f-cover img { transition: none; }
}

/* ───────── 4판: 영상 · 유튜브 · 소식 ───────── */
.ed-sep { width: 1px; background: var(--line2); margin: 0 0 0 0; }
.ed-tools button.ed-media { width: auto; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; }
.ed-yt { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line2); background: var(--s1); flex-wrap: wrap; }
.ed-yt[hidden] { display: none; }
.ed-yt > .ic { color: var(--red-ink); }
.ed-yt .field { flex: 1; min-width: 200px; height: 32px; }
.ed-yt-err { color: var(--red-ink); font-size: 12px; }
.upr .ph { display: grid; place-items: center; color: var(--ink3); }
.upr.conv .st { color: var(--warn); }
.upr.conv .pb i { background: var(--warn); }

/* 유튜브 — 누르기 전엔 썸네일 */
.yt { position: relative; aspect-ratio: 16 / 9; width: 100%; margin: 14px 0; background: #000; border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; }
.yt a.yt-a { position: absolute; inset: 0; display: block; color: #fff; }
.yt img { width: 100%; height: 100%; object-fit: cover; margin: 0; border: 0; border-radius: 0; opacity: .86; transition: opacity .15s; cursor: pointer; }
.yt a:hover img { opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; display: grid; place-items: center; background: var(--red); border-radius: 6px; box-shadow: 0 4px 18px rgba(0, 0, 0, .5); }
.yt-play svg { width: 22px; height: 22px; fill: #fff; }
.yt a:hover .yt-play { background: var(--red-hi); }
.yt-tag { position: absolute; left: 10px; bottom: 10px; padding: 3px 7px; font: 700 11px var(--cond); background: rgba(0, 0, 0, .72); border-radius: var(--r-sm); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 우리 영상 */
.vid { margin: 14px 0; background: #000; border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; }
.vid video { display: block; width: 100%; height: auto; max-height: 76vh; background: #000; }
.vid figcaption { padding: 5px 10px; font: 600 11.5px var(--cond); color: var(--ink3); background: var(--s1); border-top: 1px solid var(--line); letter-spacing: .04em; }
.vid-box { aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--ink2); background: repeating-linear-gradient(135deg, var(--s1) 0 10px, var(--bg1) 10px 20px); text-align: center; padding: 16px; }
.vid-box b { font-size: 14px; }
.vid-box span { font-size: 12.5px; color: var(--ink3); }
.vid-pc { font: 700 13px var(--cond) !important; color: var(--warn) !important; }
.vid-sp { width: 26px; height: 26px; border: 2px solid var(--line3); border-top-color: var(--warn); border-radius: 50%; animation: vsp 1s linear infinite; }
@keyframes vsp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vid-sp { animation: none; } }
.vid-bad .vid-box { background: var(--red-wash); color: var(--red-ink); }

/* 소식 목록 */
.nw-page { padding-bottom: 60px; }
.nw-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.nw-cats { display: flex; gap: 0; border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; width: max-content; max-width: 100%; margin: 4px 0 20px; background: var(--s1); overflow-x: auto; }
.nw-cats a { padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--ink3); border-right: 1px solid var(--line); white-space: nowrap; }
.nw-cats a:last-child { border-right: 0; }
.nw-cats a:hover { color: var(--ink); background: var(--s2); }
.nw-cats a.on { color: var(--ink); background: var(--well); box-shadow: inset 0 -2px 0 var(--red); }
.nw-tag { display: inline-block; padding: 2px 7px; font: 700 11px var(--cond); border: 1px solid var(--line3); border-radius: var(--r-sm); color: var(--ink2); }
.nw-tag.c-notice { color: var(--red-ink); border-color: var(--red-lo); }
.nw-tag.c-update { color: var(--violet-ink); border-color: var(--violet-lo); }
.nw-tag.c-event { color: #f0c46a; border-color: #6b5420; }
.nw-tag.c-maint { color: var(--warn); border-color: var(--warn); }
.nw-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink3); }
.nw-feat { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); border: 1px solid var(--line2); border-radius: var(--r-lg); overflow: hidden; background: var(--s1); margin-bottom: 18px; }
.nw-feat:hover { border-color: var(--line3); }
.nw-fimg { display: block; aspect-ratio: 16 / 9; background: var(--well); overflow: hidden; }
.nw-fimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.nw-feat:hover .nw-fimg img { transform: scale(1.02); }
.nw-ftxt { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px; justify-content: center; }
.nw-ft { font-size: 24px; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
.nw-fsum { color: var(--ink2); font-size: 14px; line-height: 1.7; }
.nw-more { display: inline-flex; align-items: center; gap: 4px; font: 700 12.5px var(--cond); color: var(--red-ink); }
.nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nw-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--s1); }
.nw-card:hover { border-color: var(--line3); background: var(--s2); }
.nw-img { display: block; aspect-ratio: 16 / 9; background: var(--well); overflow: hidden; }
.nw-img img { width: 100%; height: 100%; object-fit: cover; }
.nw-txt { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px 16px; }
.nw-t { font-size: 15.5px; line-height: 1.4; font-weight: 800; }
.nw-sum { font-size: 13px; line-height: 1.6; color: var(--ink3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 소식 글 */
.nw-art { padding-bottom: 70px; }
.nw-art-in { max-width: 920px; }
.nw-preview { margin: 0 0 14px; }
.nw-ah { margin: 4px 0 20px; }
.nw-ah h1 { font-size: 34px; line-height: 1.28; font-weight: 800; letter-spacing: -.015em; margin-top: 12px; }
.nw-upd { color: var(--ink4); }
.nw-cover { margin: 0 0 26px; border: 1px solid var(--line2); border-radius: var(--r-lg); overflow: hidden; background: var(--well); }
.nw-cover img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.nw-fb { font-size: 12.5px; color: var(--ink3); border-left: 2px solid var(--line3); padding-left: 10px; margin-bottom: 16px; }
.nw-body { max-width: 740px; font-size: 16.5px; line-height: 1.9; }
.nw-body h3 { font-size: 21px; margin-top: 1.6em; }
.nw-body h4 { font-size: 17.5px; margin-top: 1.4em; }
.nw-body .yt, .nw-body .vid, .nw-body p:has(> img) { max-width: none; }
.nw-foot { display: flex; gap: 8px; margin: 26px 0 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.nw-moresec { margin-top: 30px; }
.nw-more-h { font-size: 17px; font-weight: 800; margin-bottom: 12px; }

/* 홈 소식 칸 */
.home-news .nw-feat { grid-template-columns: minmax(0, 1fr); margin-bottom: 10px; }
.home-news .nw-ftxt { padding: 16px 18px 18px; gap: 8px; }
.home-news .nw-ft { font-size: 19px; }
.home-news .nw-fsum { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hn-list { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
.hn-i { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; background: var(--s1); }
.hn-i:hover { background: var(--s2); }
.hn-i img { width: 112px; height: 63px; object-fit: cover; border-radius: var(--r-sm); background: var(--well); }
.hn-i .meta { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--ink3); }
.hn-i h3 { font-size: 14px; line-height: 1.4; margin-top: 4px; font-weight: 700; }

/* 대시보드 소식 */
.nw-dbar { margin: 4px 0 14px; display: flex; gap: 8px; align-items: center; }
.nw-tbl .nw-tt { display: flex; gap: 10px; align-items: center; min-width: 260px; }
.nw-tbl .nw-tt img, .nw-noimg { width: 64px; height: 36px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--well); flex: none; display: block; }
.nw-tbl .nw-tt a { font-weight: 700; }
.nw-tbl .lc { display: inline-block; margin-right: 4px; padding: 0 4px; font: 700 10px var(--cond); border: 1px solid var(--line3); border-radius: var(--r-sm); color: var(--ink3); }
.nw-tbl .acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nw-tbl .acts form { display: inline-flex; gap: 6px; }
.nw-del { position: relative; }
.nw-del summary { list-style: none; cursor: pointer; }
.nw-del summary::-webkit-details-marker { display: none; }
.nw-del[open] form { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; padding: 8px; background: var(--s2); border: 1px solid var(--line3); border-radius: var(--r); }
.nw-ed-st { display: flex; gap: 10px; align-items: center; margin: -4px 0 14px; font-size: 12.5px; color: var(--ink3); }
.nw-ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.nw-langs { display: flex; border: 1px solid var(--line2); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; overflow: hidden; background: var(--s1); }
.nw-langs button { flex: 1; display: flex; gap: 6px; align-items: baseline; justify-content: center; padding: 10px 12px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--ink3); font-size: 13px; font-weight: 700; cursor: pointer; }
.nw-langs button:last-child { border-right: 0; }
.nw-langs button.on { color: var(--ink); background: var(--well); box-shadow: inset 0 2px 0 var(--red); }
.nw-langs .req { color: var(--red-ink); }
.nw-lp { border: 1px solid var(--line2); border-radius: 0 0 var(--r) var(--r); padding: 12px; background: var(--s1); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.nw-ed-main, .nw-ed-side { min-width: 0; }
.nw-lp[hidden] { display: none; }
.nw-title { height: 46px; font-size: 18px; font-weight: 700; }
.nw-ed-side .panel-b { padding: 14px 16px; }
.nw-ed-side .stack { display: grid; gap: 12px; }
.nw-ed-side .f { display: grid; gap: 6px; }
.nw-ed-side .hint { padding: 0; margin: 0; font-size: 11.5px; color: var(--ink3); }
.nw-acts { display: grid; gap: 8px; margin-top: 4px; }
.nw-acts .btn { justify-content: center; }
.nw-cover-ed { display: grid; gap: 10px; }
.nw-cv-prev { aspect-ratio: 16 / 9; display: grid; place-items: center; border: 1px dashed var(--line3); border-radius: var(--r); background: var(--well); overflow: hidden; font-size: 12px; text-align: center; padding: 6px; }
.nw-cv-prev img { width: 100%; height: 100%; object-fit: cover; }
.nw-cv-prev:has(img) { padding: 0; border-style: solid; }
.nw-cv-st { color: var(--ink3); min-height: 1em; }
.nw-cover-ed .bar { display: flex; gap: 6px; }

@media (max-width: 1100px) {
  .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nw-ed-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .nw-feat { grid-template-columns: minmax(0, 1fr); }
  .nw-ftxt { padding: 18px 18px 20px; }
}
@media (max-width: 640px) {
  .nw-grid, .nw-grid.three { grid-template-columns: minmax(0, 1fr); }
  .nw-h { flex-direction: column; align-items: flex-start; }
  .nw-ah h1 { font-size: 25px; }
  .nw-ft { font-size: 20px; }
  .nw-body { font-size: 15.5px; line-height: 1.85; }
  .nw-cover { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .nw-body .yt, .nw-body .vid, .pv-body .yt, .pv-body .vid { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; width: auto; }
  .nw-langs button { flex-direction: column; align-items: center; gap: 1px; padding: 8px 6px; }
  .nw-langs button .small { font-size: 10.5px; font-weight: 500; }
  .ed-tools button.ed-media span { display: none; }
  .ed-tools button.ed-media { width: 34px; padding: 0; justify-content: center; }
  .yt-play { width: 56px; height: 40px; margin: -20px 0 0 -28px; }
  .hn-i { grid-template-columns: 96px minmax(0, 1fr); }
  .hn-i img { width: 96px; height: 54px; }
}

/* ── 대시보드 소식 → 런처 ── */
.nw-tbl .lc.on { color: var(--red-ink); border-color: rgba(226, 59, 69, .5); }
.nl-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.nl-grid .panel { margin: 0; }
.nl-grid .panel-b { padding: 14px 16px 16px; }
.nl-grid .stack { display: grid; gap: 14px; }
.nl-grid .f { display: grid; gap: 6px; }
.dt-grid { align-items: start; }
.dt-grid .panel { margin: 0; }
.dt-grid .panel-b { padding: 14px 16px 16px; }
.dt-grid .stack { display: grid; gap: 14px; max-width: none; }
.dt-grid .f { display: grid; gap: 6px; min-width: 0; }
.dt-grid .f .lbl { margin: 0; }
.dt-grid .f .mono { overflow-wrap: anywhere; font-size: 12.5px; }
.dt-grid .field { max-width: 420px; }
.dt-grid .field.w100 { max-width: 140px; }
.dt-grid .hint { padding: 0; margin: 0; font-size: 11.5px; line-height: 1.55; }
.nl-cats { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.nl-pl { display: flex; border: 1px solid var(--line2); border-radius: var(--r-sm); overflow: hidden; }
.nl-pl a { padding: 3px 8px; font: 700 11px var(--cond); color: var(--ink3); }
.nl-pl a + a { border-left: 1px solid var(--line2); }
.nl-pl a.on { background: var(--s2, rgba(255, 255, 255, .06)); color: var(--ink); }
.nl-order { list-style: none; margin: 0; padding: 0; }
.nl-row { display: grid; grid-template-columns: 28px 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.nl-row:first-child { border-top: 0; }
.nl-order .nl-row:not(:has(img)) { grid-template-columns: minmax(0, 1fr) auto; }
.nl-row img { width: 64px; height: 36px; object-fit: cover; border-radius: var(--r-sm); display: block; }
.nl-row.out { opacity: .5; }
.nl-n { color: var(--ink3); font-size: 12px; text-align: right; }
.nl-t { min-width: 0; }
.nl-t a { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-acts { display: flex; gap: 4px; }
.nl-acts .btn .ic { width: 12px; height: 12px; }
.nl-cut { padding: 6px 16px; font: 700 11px var(--cond); color: var(--red-ink); border-top: 1px dashed rgba(226, 59, 69, .5); background: rgba(226, 59, 69, .06); }
.hint.pad { padding: 10px 16px 14px; }
/* 런처 홈 카드 (launcher/src/style.css .news-card 와 같은 수치) */
.lnc-stage { padding: 16px; border-radius: 6px; background: #120d10; border: 1px solid var(--line); margin-bottom: 10px; }
.lnc-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.lnc-head h3 { margin: 0; font: 800 15px var(--cond); color: #f3eee9; }
.lnc-head span { font: 11px var(--mono); color: #a2979b; }
.lnc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lnc-card { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; border: 1px solid rgba(243, 238, 233, .12); background: #120d10; }
.lnc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lnc-text { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 3px; padding: 34px 14px 12px; background: linear-gradient(180deg, transparent, rgba(11, 8, 10, .9) 52%); }
.lnc-meta { display: flex; gap: 8px; font: 11px var(--mono); color: #cfc6c6; }
.lnc-tag { color: #e8838a; }
.lnc-title { font: 800 16px/1.25 var(--cond); color: #f3eee9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnc-body { font-size: 12px; line-height: 1.45; color: #cfc6c6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnc-empty { padding: 28px 12px; text-align: center; color: #a2979b; font-size: 13px; border: 1px dashed rgba(243, 238, 233, .12); border-radius: 6px; }
@media (max-width: 1100px) { .nl-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .lnc { grid-template-columns: minmax(0, 1fr); } .nl-row { grid-template-columns: 22px minmax(0, 1fr); } .nl-row img { display: none; } .nl-acts { grid-column: 1 / -1; } }

/* ── 홈 = 클라이언트 메인 화면 (시안 O1): 풍경 + 뒤돌아 선 캐릭터 + 왼쪽 로고·메뉴 패널 ── */
.pg-home { position: relative; }
.o1 { position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1200px; overflow: hidden; background: #0b080a; }
.o1-bg { position: absolute; inset: 0; background: #0b080a url('/static/home/bg-moon.webp') 50% 50% / cover no-repeat; }
.o1-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 8, 10, .5) 0%, rgba(11, 8, 10, .12) 36%, rgba(11, 8, 10, 0) 58%), linear-gradient(0deg, #0b080a 0%, rgba(11, 8, 10, 0) 16%); }
.o1-me { position: absolute; z-index: 1; left: calc(66% - 17vh); bottom: 9%; width: 34vh; height: 50vh; cursor: grab; touch-action: pan-y; }
.o1-me:active { cursor: grabbing; }
.o1-ver { position: absolute; z-index: 2; left: clamp(24px, 3vw, 48px); bottom: 36px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: rgba(243, 238, 233, .5); }
.o1-ver i { width: 20px; height: 2px; background: #e23b45; opacity: .8; }
.o1-top { position: absolute; z-index: 5; top: 18px; right: clamp(16px, 2.4vw, 36px); display: flex; align-items: center; gap: 8px; }
.o1-top .langs { background: rgba(11, 8, 10, .8); border-color: rgba(243, 238, 233, .12); border-radius: 8px; overflow: hidden; }
.o1-acc { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px 0 8px; background: rgba(11, 8, 10, .8); border: 1px solid rgba(243, 238, 233, .12); border-radius: 8px; }
.o1-acc.out { padding: 0 16px; }
.o1-acc:hover { background: rgba(28, 21, 25, .9); }
.o1-acc span { display: flex; flex-direction: column; line-height: 1.3; }
.o1-acc b { font-size: 14px; color: #f3eee9; }
.o1-acc small { font-size: 11.5px; color: var(--ink3); }
.o1-acc .av, .o1-acc img { width: 36px; height: 36px; }
.btn.off { opacity: .5; cursor: default; pointer-events: none; }
@media (max-width: 720px) {
  .o1 { min-height: 660px; }
  .o1-bg { background-image: url('/static/home/bg-moon-960.webp'); background-position: 54% 50%; }
  .o1-bg::after { background: linear-gradient(180deg, rgba(11, 8, 10, .35) 0%, rgba(11, 8, 10, .1) 50%, rgba(11, 8, 10, 0) 70%), linear-gradient(0deg, #0b080a 0%, rgba(11, 8, 10, 0) 14%); }
  .o1-me { left: auto; right: 0; bottom: 6%; width: 56vw; height: min(38vh, 320px); }
  .o1-top { top: 12px; right: 12px; }
  .o1-acc { height: 44px; }
  .o1-acc .av, .o1-acc img { width: 30px; height: 30px; }
  .o1-acc small { display: none; }
  .o1-ver { bottom: 18px; left: 16px; }
}

/* ── 초대 ── */
.inv-redeem { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.inv-redeem .field { flex: 1; min-width: 0; max-width: 440px; height: 38px; }
.inv-kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px 16px; margin: 0 0 12px; font-size: 14px; }
.inv-kv dt { color: var(--ink3); }
.inv-kv dd { margin: 0; }
.inv-kv .warn { color: var(--warn); }
.inv-n { font-size: 22px; font-weight: 800; }
.inv-rules { margin: 0; padding-left: 18px; line-height: 1.95; color: var(--ink2); font-size: 14px; }
.inv-rules b { color: var(--ink); }
.inv-people { list-style: none; margin: 0; padding: 0; }
.inv-people li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.inv-people li:last-child { border-bottom: 0; }
.inv-new code { font-size: 19px; letter-spacing: .04em; }
.inv-new .btn { justify-self: start; }
.inv-tbl { margin-top: 14px; width: 100%; }
.inv-actions { display: flex; gap: 10px; margin-top: 4px; }
.inv-tree, .inv-tree ul { list-style: none; margin: 0; padding-left: 18px; border-left: 1px solid var(--line2); }
.inv-tree { padding-left: 0; border-left: 0; }
.inv-tree li { margin: 2px 0; }
.inv-node { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 4px 0; font-size: 13.5px; }
.inv-codes { width: 100%; min-height: 60px; font-size: 14px; resize: vertical; }
@media (max-width: 520px) { .inv-kv { grid-template-columns: 1fr; gap: 2px 0; } .inv-kv dd { margin-bottom: 8px; } }

/* ── 초대장 /invite/{코드} (시안 J3: 절취선 있는 표 한 장) ── */
.tk { min-height: 640px; }
.tk .o1-bg { background-position: 50% 30%; }
.tk-me { left: auto; right: 6%; bottom: 5%; width: 26vh; height: 40vh; }
.tk-wrap { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 84px 20px 64px; }
.tk-card {
  --cut: 300px;
  display: grid; grid-template-columns: var(--cut) minmax(0, 1fr); width: min(1000px, 100%);
  background: rgba(11, 8, 10, .88); border: 1px solid rgba(243, 238, 233, .14); border-radius: 8px;
  -webkit-mask: radial-gradient(circle 12px at var(--cut) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at var(--cut) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 12px at var(--cut) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at var(--cut) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}
.tk-l { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 34px 30px; border-right: 1px dashed rgba(243, 238, 233, .3); }
.tk-l img { display: block; width: 224px; height: auto; }
.tk-sub { display: flex; align-items: center; gap: 12px; color: #cfc6c6; font-size: 15px; letter-spacing: .04em; }
.tk-sub i { width: 28px; height: 1px; background: rgba(243, 238, 233, .35); }
.tk-r { min-width: 0; padding: 30px 36px 30px 38px; }
.tk-h { display: flex; align-items: center; gap: 14px; }
.tk-h::before { content: ''; flex: none; width: 3px; height: 22px; background: #7c7176; }
.tk-h::after { content: ''; flex: 1; height: 1px; background: rgba(243, 238, 233, .14); }
.tk-h h1 { margin: 0; font-size: 22px; font-weight: 600; white-space: nowrap; color: #f3eee9; }
.tk-no { color: #cfc6c6; font-variant-numeric: tabular-nums; }
.tk-msg { margin: 16px 0 0; padding-bottom: 18px; border-bottom: 1px solid rgba(243, 238, 233, .12); font-size: 19px; line-height: 1.5; color: #f3eee9; }
.tk-msg b { font-weight: 700; }
.tk-card.off .tk-msg { color: #cfc6c6; }
.tk-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr) minmax(0, 1.6fr); margin: 18px 0 0; }
.tk-meta > div { min-width: 0; padding: 2px 18px; border-left: 1px solid rgba(243, 238, 233, .12); }
.tk-meta > div:first-child { padding-left: 0; border-left: 0; }
.tk-meta dt { margin-bottom: 7px; font-size: 12.5px; color: #a2979b; }
.tk-meta dd { display: flex; align-items: center; gap: 12px; min-height: 40px; margin: 0; font-size: 16px; font-weight: 600; color: #f3eee9; overflow-wrap: anywhere; }
.tk-meta dd.mono { font-size: 14px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.tk-head { flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); background: #281e23; image-rendering: pixelated; }
.tk-head.mark { image-rendering: auto; padding: 6px; }
.tk-act { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.tk-act form { margin: 0; }
.tk-go { min-width: 280px; height: 50px; justify-content: center; font-size: 17px; font-weight: 700; border-radius: 6px; }
.tk-alt, .tk-note { margin: 0; color: #d9d1d0; font-size: 14px; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.tk-steps { text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.tk-note { max-width: 520px; }
.tk-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 2px 0 0; padding: 0; list-style: none; color: #cfc6c6; font-size: 14.5px; }
.tk-steps li + li::before { content: '→'; margin: 0 12px; color: #a2979b; }
@media (max-width: 1100px) { .tk-me { display: none; } }
@media (max-width: 720px) {
  .o1.tk { height: auto; min-height: 100vh; min-height: 100svh; max-height: none; }
  .tk-wrap { justify-content: flex-start; padding: 76px 16px 72px; gap: 22px; }
  .tk-card {
    --cut: 150px;
    grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--cut) auto;
    -webkit-mask: radial-gradient(circle 12px at 0 var(--cut), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% var(--cut), #0000 97%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle 12px at 0 var(--cut), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% var(--cut), #0000 97%, #000) right / 51% 100% no-repeat;
  }
  .tk-l { padding: 20px; gap: 12px; border-right: 0; border-bottom: 1px dashed rgba(243, 238, 233, .3); }
  .tk-l img { width: 190px; }
  .tk-r { padding: 22px 20px 22px; }
  .tk-h h1 { font-size: 19px; }
  .tk-msg { font-size: 17px; }
  .tk-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 0; }
  .tk-meta > div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .tk-go { min-width: 0; width: 100%; max-width: 360px; }
}
/* 대시보드 초대: 발급·사용자 칸 */
.inv-form { display: grid; gap: 12px; padding: 14px 16px 16px; }
.inv-form form { display: grid; gap: 12px; margin: 0; }
.inv-form .f { display: grid; gap: 6px; max-width: 380px; }
.inv-form .lbl { margin: 0; }
.inv-form .hint { padding: 0; margin: 0; }
.inv-form .inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.inv-form .inline .field { flex: 1; min-width: 140px; }

/* ---- mods ---- 모드 심사 (web_mods.rs). 위험 묶음은 진홍 테두리만 — 칩은 각진 사각형, 그림자·그라데이션 없음 */
.grps { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.grp { display: inline-block; padding: 1px 6px; border: 1px solid var(--line2); border-radius: var(--r-sm); font: 600 11px/1.5 var(--mono); color: var(--ink2); background: var(--s2); }
.grp.risk { border-color: var(--red); color: var(--red-ink); background: var(--red-wash); font-weight: 800; }
.rv { font-size: 12.5px; font-weight: 700; }
.rv.auto { color: var(--ok); }
.rv.man { color: var(--warn); }
.tbl.mods tr.risk-row td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.tbl tr.cur td { background: var(--s2); }
.cnt { display: inline-block; min-width: 18px; padding: 0 4px; border: 1px solid var(--line2); border-radius: var(--r-sm); font: 600 11px/1.5 var(--mono); color: var(--ink3); text-align: center; }
.tabs a.on .cnt { border-color: var(--red-lo); color: var(--ink); }
.keyline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
.riskbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; padding: 10px 14px; margin-bottom: 16px; border: 1px solid var(--red); border-left-width: 4px; border-radius: var(--r); background: var(--red-wash); color: var(--red-ink); font-size: 13px; }
.riskbar b { color: var(--ink); letter-spacing: .02em; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.mod-grid .panel { margin-bottom: 16px; }
.dh h1 .ver { font: 600 15px var(--mono); color: var(--ink3); }
.breakall { word-break: break-all; }
.flags { margin: 0; padding-left: 16px; }
form.decide { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
form.decide:last-of-type { border-bottom: 0; }
form.decide .field { height: 34px; font-size: 13px; flex: 1; min-width: 240px; }
.riskchk { color: var(--red-ink); font-weight: 700; }
.box-b.stack.wide { max-width: none; padding: 14px 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.modname b { color: var(--ink); }
.modname:hover b { color: var(--red-ink); }
.mod-submit { padding-top: 28px; padding-bottom: 40px; }
.mod-submit .box-b .hint { padding: 0; margin-top: 0; }
/* ---- devkey ---- 개발자 키 (web_devkeys.rs). 결정 폼은 표 칸 안에서 접는다 — 새 색 없음, 기존 칩·폼 그대로 */
.tbl.devkeys tr.risk-row td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.tbl.devkeys td.devkey-act { min-width: 320px; }
.tbl.devkeys td.devkey-act form.decide { padding: 6px 0; border-bottom: 1px solid var(--line); }
.tbl.devkeys td.devkey-act form.decide:last-child { border-bottom: 0; }
.tbl.devkeys td.devkey-act form.decide .field { height: 30px; min-width: 120px; }
.tbl.devkeys td.devkey-act select.field { flex: 0 0 auto; width: auto; }
.devkey-tiers th:first-child { width: 120px; color: var(--ink3); font-weight: 600; }
ol.steps { margin: 0; padding: 12px 16px 12px 34px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink2); }
ol.steps code { font: 600 12.5px var(--mono); padding: 1px 5px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--s2); color: var(--ink); }

/* 이용약관·개인정보 처리방침 (/terms, /privacy) */
.legal { max-width: 860px; }
.legal .post-body { border: 1px solid var(--line2); }
.legal .prose table { width: 100%; display: block; overflow-x: auto; }
.legal-note { color: var(--ink2); font-size: 13px; margin: 0 0 12px; }
.legal-other { margin: 18px 0 40px; font-size: 13.5px; }

/* ══════════════════════ 5판 (2026-11): 뼈대 · 홈 · 스토어 · 대시보드 ══════════════════════
 * 위쪽 규칙을 덮어쓴다. 홈·스토어·대시보드 구역은 여기서 새로 썼다.
 */

/* ── 바탕 ── */
body { font-size: 15px; line-height: 1.65; }
.wrap { max-width: 1248px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(226, 59, 69, .45); }
.mono { font-family: var(--mono); }

/* 화면에 들어올 때 떠오름 — JS 가 화면 밖에 있던 것에만 .rv-on 을 붙여 숨긴다 (JS 없으면 그냥 보인다) */
.rv-on { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.rv-on.in { opacity: 1; transform: none; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ── 위쪽 바 ── */
.nav { z-index: 40; background: var(--bg0); border-bottom: 1px solid var(--line); transition: background-color .25s, border-color .25s; }
.nav-in { height: 60px; gap: 22px; }
.brand { gap: 9px; }
.brand b { font: 300 22px/1 var(--serif); }
.brand span { font: 600 14.5px/1 var(--sans); color: var(--ink3); }
.nav-links { align-items: center; gap: 2px; }
.nav-links a { height: 36px; padding: 0 12px; border-radius: 8px; font-size: 14.5px; color: var(--ink3); transition: color .18s, background-color .18s; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav-links a.on::after { left: 12px; right: 12px; bottom: -13px; height: 2px; border-radius: 2px; }
.nav-search input { width: 180px; height: 36px; padding: 0 12px; border-radius: var(--r) 0 0 var(--r); font-size: 13.5px; }
.nav-search input:focus { outline: none; border-color: var(--red); }
.nav-search button { height: 36px; padding: 0 12px; border-radius: 0 var(--r) var(--r) 0; font-size: 13px; }
.nav-search button:hover { color: var(--ink); background: var(--s3); }
.nav-acc { height: 36px; border-radius: var(--r); font-size: 13.5px; }
.nav-bell { width: 36px; height: 36px; border-radius: var(--r); }
.nav-bell .bn { border-radius: 6px; font-family: var(--mono); }
.langs { gap: 2px; padding: 3px; border: 0; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line2); background: rgba(11, 8, 10, .5); }
.langs a { padding: 6px 8px; border-radius: 6px; font: 600 12px/1 var(--mono); color: var(--ink4); }
.langs a + a { border-left: 0; }
.langs a.on { background: rgba(255, 255, 255, .09); color: var(--ink); }
/* 홈: 그림 위에 겹치는 바. 내리면 불투명해진다 (JS 없으면 그림 위에만 있고 따라오지 않는다) */
.nav.over { position: absolute; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: transparent; }
html.js .nav.over { position: fixed; }
.nav.over.solid { background: var(--bg0); border-bottom-color: var(--line); }
.nav.over .nav-search input, .nav.over .nav-acc, .nav.over .nav-bell { background: rgba(11, 8, 10, .6); }

/* ── 단추·입력·작은 조각 ── */
.btn { height: 40px; padding: 0 16px; border-radius: var(--r); font-size: 14px; transition: background-color .18s, border-color .18s, transform .18s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--red-btn); border-color: var(--red-btn); }
.btn.primary:hover { background: var(--red); border-color: var(--red); }
.btn.sm { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15.5px; }
.btn small { font: 600 12.5px var(--sans); font-variant-numeric: tabular-nums; opacity: .8; }
.btn .ic { transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(2px); }
.field { height: 42px; padding: 0 13px; border-radius: var(--r); }
textarea.field { padding: 11px 13px; }
select.field { background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; }
.field:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-wash); }
label.lb, span.lb { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin: 0 0 7px; }
.lbl { font: 600 12.5px/1.3 var(--sans); color: var(--ink3); }
.hint { font-size: 12.5px; }
.err, .note { padding: 12px 14px; border-left-width: 1px; border-radius: var(--r); font-size: 13.5px; }
.err { border-color: rgba(226, 59, 69, .5); }
.note.ok { border-color: rgba(127, 214, 164, .4); background: var(--ok-wash); color: var(--ink); }
.note.ok, .err { animation: rise-in .45s var(--ease) both; }
.kick { font: 600 13.5px/1.3 var(--sans); color: var(--red-ink); }
.ttl { letter-spacing: -.02em; }
.page-h { padding: 44px 0 22px; margin-bottom: 26px; }
.page-h .ttl { margin-top: 0; font-size: 34px; }
.page-h .kick + .ttl, .page-h .kick + div { margin-top: 8px; }
.page-h p { margin-top: 10px; font-size: 14.5px; line-height: 1.7; max-width: 680px; }
.tag { padding: 3px 8px; border-radius: var(--r-sm); font-size: 12px; font-weight: 600; }
.tbl { font-size: 13.5px; }
.tbl th { font: 600 12.5px/1.3 var(--sans); color: var(--ink3); padding: 11px 14px; }
.tbl td { padding: 11px 14px; }
.tbl tbody tr { transition: background-color .15s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .025); }
.tbl-wrap, .panel, .rows { border-radius: var(--r-lg); }
.seg { padding: 3px; gap: 2px; border: 0; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line2); background: var(--s1); overflow: visible; }
.seg a, .seg button { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink3); font-size: 13px; font-weight: 600; cursor: pointer; transition: color .15s, background-color .15s; }
.seg a:hover, .seg button:hover { color: var(--ink); }
.seg a.on, .seg button[aria-pressed="true"] { background: var(--s3); color: var(--ink); }
.pager { gap: 4px; }
.pager a, .pager span { border-radius: 8px; font-family: var(--mono); }
.crumb { display: flex; gap: 8px; align-items: center; padding: 26px 0 18px; font-size: 13.5px; color: var(--ink3); }
.crumb a { transition: color .15s; }
.crumb a:hover { color: var(--ink); }
.crumb span { color: var(--ink4); }
.crumb b { color: var(--ink2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.tag:hover { color: var(--ink); border-color: var(--line3); }
.sec-h.tight { margin-bottom: 14px; align-items: baseline; }
.ttl.sm { font-size: 20px; font-weight: 800; }
.sec-h .more { font-size: 13.5px; font-weight: 600; color: var(--ink3); transition: color .15s; }
.sec-h .more:hover { color: var(--ink); }
.linkbtn { color: var(--ink3); }

/* ── 바닥 ── */
.foot { margin-top: 88px; background: var(--bg0); }
.foot-in { align-items: center; padding: 30px var(--gut); font-size: 13px; color: var(--ink4); }
.foot-in nav { gap: 6px 18px; flex-wrap: wrap; }
.foot-in a { color: var(--ink3); transition: color .15s; }
.foot-b { display: flex; align-items: center; gap: 10px; }
.foot-b img { width: 20px; height: 20px; opacity: .8; }
.pg-home + .foot { margin-top: 0; }

/* ═════════════ 홈 ═════════════ */
.pg-home { position: relative; }
.hm-hero { position: relative; display: flex; min-height: 640px; height: 100vh; height: 100svh; max-height: 1000px; overflow: hidden; background: var(--bg0); }
.hm-bg { position: absolute; inset: -4% 0 -4% 0; background: var(--bg0) url('/static/home/bg-moon.webp') 60% 50% / cover no-repeat; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hm-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 8, 10, .9) 0%, rgba(11, 8, 10, .62) 30%, rgba(11, 8, 10, 0) 60%), linear-gradient(0deg, var(--bg0) 0%, rgba(11, 8, 10, 0) 26%), linear-gradient(180deg, rgba(11, 8, 10, .55) 0%, rgba(11, 8, 10, 0) 18%); pointer-events: none; }
.hm-me { position: absolute; z-index: 2; left: calc(61% - 17vh); bottom: 8%; width: 34vh; height: 50vh; cursor: grab; touch-action: pan-y; }
.hm-me:active { cursor: grabbing; }
.hm-in { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: end; padding-top: 96px; padding-bottom: 44px; pointer-events: none; }
.hm-in > * { pointer-events: auto; }
.hm-txt { align-self: center; max-width: 560px; }
.hm-logo { margin: 0; }
.hm-logo img { width: min(430px, 100%); height: auto; margin-left: -6px; }
.hm-lede { margin-top: 22px; max-width: 470px; color: var(--ink2); font-size: 17.5px; line-height: 1.7; }
.hm-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.hm-menu .ghost { background: rgba(11, 8, 10, .5); border-color: var(--line3); }
.hm-menu .ghost:hover { background: rgba(255, 255, 255, .08); }
.hm-menu .ext { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 12px; color: var(--ink2); font-weight: 600; transition: color .18s; }
.hm-menu .ext:hover { color: var(--ink); }
.hm-menu .ext .ic { transition: transform .2s var(--ease); }
.hm-menu .ext:hover .ic { transform: translateX(3px); }
.hm-ver { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; color: var(--ink4); font: 400 13px/1 var(--mono); }
.hm-ver i { width: 18px; height: 2px; border-radius: 1px; background: var(--red); }
.hm-side { display: grid; gap: 10px; }
.hm-card { display: block; padding: 16px 18px; border: 1px solid var(--line2); border-radius: var(--r-lg); background: rgba(13, 9, 11, .86); transition: border-color .2s, transform .25s var(--ease); }
a.hm-card:hover { border-color: var(--line3); transform: translateY(-2px); }
.hm-card .h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--ink3); }
.hm-card .h b { color: var(--ink2); font-weight: 600; }
.hm-card .h span { font-family: var(--mono); font-size: 12.5px; }
.hm-card p { margin-top: 8px; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-mini { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; font: 600 27px/1 var(--mono); color: var(--ink); }
.hm-mini s { color: var(--ink3); font-weight: 400; font-size: 19px; text-decoration: none; }
.hm-mini i { width: 22px; height: 2px; align-self: center; border-radius: 1px; background: var(--red); }
.hm-mini small { font: 400 13px/1 var(--mono); color: var(--ink3); }
/* 처음 한 번: 왼쪽 글이 차례로 떠오른다 */
.hm-txt > *, .hm-side > * { animation: rise-in .8s var(--ease) both; }
.hm-txt > :nth-child(2) { animation-delay: .08s; }
.hm-txt > :nth-child(3) { animation-delay: .16s; }
.hm-txt > :nth-child(4) { animation-delay: .24s; }
.hm-side > :nth-child(1) { animation-delay: .34s; }
.hm-side > :nth-child(2) { animation-delay: .42s; }
.hm-bg { animation: fade-in 1.1s ease both; }

.hm-sec { padding: 104px 0 0; }
.hm-h { max-width: 760px; margin-bottom: 44px; }
.hm-h h2, .hm-fps h2, .hm-cmp h2, .hm-info h2 { font: 800 clamp(26px, 3vw, 38px)/1.2 var(--sans); letter-spacing: -.025em; }
.hm-more { display: inline-flex; align-items: center; gap: 6px; color: var(--red-ink); font-weight: 600; }
.hm-more span { border-bottom: 1px solid currentColor; }
.hm-more .ic { transition: transform .2s var(--ease); }
.hm-more:hover .ic { transform: translateX(3px); }
.hm-h p, .hm-sub { margin-top: 12px; color: var(--ink3); font-size: 16px; line-height: 1.7; }

/* 장면: 큰 사진 + 아래로 반쯤 걸친 글 칸. 짝수 번째는 글이 오른쪽 */
section.sc { position: relative; margin-bottom: 140px; }
section.sc-theme { margin-bottom: 150px; }
.sc-pic { position: relative; aspect-ratio: 21 / 9; overflow: hidden; border-radius: 18px; background: #000; box-shadow: 0 0 0 1px var(--line); }
.sc-pic picture { display: contents; }
.sc-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.sc-pvp .sc-pic img { object-position: 50% 30%; }
.sc-cap { position: absolute; left: 28px; bottom: -76px; width: min(460px, calc(100% - 56px)); padding: 22px 26px 24px; border: 1px solid var(--line2); border-radius: var(--r-lg); background: var(--s1); }
.sc:nth-of-type(even) .sc-cap { left: auto; right: 28px; }
.sc-n { display: inline-block; margin-bottom: 12px; padding: 4px 7px; border: 1px solid var(--red-lo); border-radius: 6px; color: var(--red); font: 600 13px/1 var(--mono); }
.sc-cap h2 { font: 800 24px/1.3 var(--sans); letter-spacing: -.02em; }
.sc-cap p { margin-top: 8px; color: var(--ink2); font-size: 15.5px; line-height: 1.75; }
.sc-thumbs { position: absolute; left: 0; top: calc(100% + 14px); display: grid; grid-template-columns: repeat(4, 132px); gap: 10px; }
.sc-thumbs figure { margin: 0; }
.sc-thumbs img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 0 0 1px rgba(243, 238, 233, .2); transition: transform .25s var(--ease); }
.sc-thumbs figure:hover img { transform: translateY(-3px); }
.sc-thumbs figcaption { margin-top: 6px; font-size: 13px; color: var(--ink3); }
.sc.rise .sc-pic img { transform: scale(1.06); transition: transform 1.4s var(--ease); }
.sc.rise .sc-cap, .sc.rise .sc-thumbs { opacity: 0; transform: translateY(22px); transition: opacity .6s ease .15s, transform .8s var(--ease) .15s; }
.sc.rise.in .sc-pic img { transform: none; }
.sc.rise.in .sc-cap, .sc.rise.in .sc-thumbs { opacity: 1; transform: none; }

/* FPS 실측 + 정품 비교 */
.hm-band { margin-top: 24px; padding: 96px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg1); }
.hm-two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.fps { display: grid; gap: 18px; margin-top: 30px; }
.fps-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 118px; gap: 16px; align-items: center; font-size: 15px; }
.fps-row .k { color: var(--ink3); font-weight: 600; }
.fps-row b { font: 600 19px/1 var(--mono); color: var(--ink2); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.fps-row.e .k { color: var(--ink); }
.fps-row.e b { color: var(--ink); font-size: 23px; }
.fps-track { height: 16px; border-radius: 5px; background: var(--well); overflow: hidden; }
.fps-bar { display: block; height: 100%; border-radius: 5px; transform-origin: 0 50%; }
.fps-bar.v { width: 9.553%; background: var(--ink4); } /* 156 / 1633 */
.fps-bar.e { width: 100%; background: var(--red); }
.fps.rv-on .fps-bar { transform: scaleX(0); transition: transform 1.3s var(--ease) .2s; }
.fps.rv-on.in .fps-bar { transform: none; }
.fps-x { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; color: var(--ink3); font-size: 14.5px; }
.fps-x b { font: 800 30px/1 var(--sans); letter-spacing: -.02em; color: var(--red-ink); }
.fps-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.fps-shot { display: grid; gap: 8px; color: var(--ink3); font: 400 13px/1.4 var(--mono); }
.fps-shot img { width: 100%; height: auto; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); cursor: zoom-in; transition: transform .25s var(--ease), box-shadow .25s; }
.fps-shot:hover img { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line3), 0 14px 30px rgba(0, 0, 0, .5); }
.hp-note { margin-top: 12px; color: var(--ink4); font-size: 13.5px; line-height: 1.6; }
.cmp { display: grid; gap: 12px; margin-top: 30px; }
.cmp-col { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); }
.cmp-col h3 { font-size: 15px; font-weight: 700; color: var(--ink3); }
.cmp-col.diff h3 { color: var(--red-ink); }
.cmp-col ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.cmp-col li { position: relative; padding-left: 20px; color: var(--ink); font-size: 15.5px; line-height: 1.55; }
.cmp-col li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 2px; border-radius: 1px; background: var(--ink4); }
.cmp-col.diff li::before { background: var(--red); }

.hm-info { padding: 96px 0 0; }
.info-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.info-list li { display: grid; align-content: start; gap: 8px; padding: 20px 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); transition: border-color .2s, transform .25s var(--ease); }
.info-list li:hover { border-color: var(--line3); transform: translateY(-2px); }
.info-list b { color: var(--ink); font-size: 16.5px; font-weight: 700; line-height: 1.4; }
.info-list span { color: var(--ink3); font-size: 14.5px; line-height: 1.65; }

.hm-cta { padding: 96px 0 104px; }
.hm-cta-in { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: 40px 44px; border: 1px solid var(--line2); border-radius: 18px; background: var(--s1); }
.hm-cta-in::before { content: ''; position: absolute; inset: 0 0 0 38%; background: url('/static/home/bg-moon-960.webp') 62% 34% / cover no-repeat; opacity: .5; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.hm-cta-in > * { position: relative; }
.hm-cta h2 { font: 800 clamp(24px, 2.6vw, 32px)/1.25 var(--sans); letter-spacing: -.02em; }
.hm-cta-t p { margin-top: 10px; color: var(--ink2); font-size: 15.5px; }
.hm-cta-t p a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.hm-cta-t p a:hover { color: var(--red-ink); }
.hm-code { display: flex; gap: 8px; }
.hm-code .field { width: 330px; height: 48px; background: rgba(8, 6, 7, .9); font-size: 14.5px; }
.hm-code .btn { height: 48px; padding: 0 20px; font-size: 15px; }

@media (max-width: 1100px) {
  .hm-in { grid-template-columns: minmax(0, 1fr); }
  .hm-side { display: none; }
  .hm-me { left: auto; right: 4%; }
  .info-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-cta-in { grid-template-columns: 1fr; }
  .sc-thumbs { grid-template-columns: repeat(4, 104px); }
}
@media (max-width: 860px) {
  .hm-two { grid-template-columns: 1fr; gap: 64px; }
  .hm-sec { padding-top: 72px; }
  .hm-band, .hm-cta { padding: 72px 0; }
  .hm-info { padding-top: 72px; }
  section.sc, section.sc-theme { margin-bottom: 56px; }
  .sc-pic { aspect-ratio: auto; border-radius: var(--r-lg); }
  .sc-pic img { height: auto; }
  .sc-cap, .sc:nth-of-type(even) .sc-cap { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: -22px 12px 0; padding: 18px 20px 20px; }
  .sc-thumbs { position: static; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 34px 12px 0; }
  .sc-thumbs figcaption { font-size: 12px; }
}
@media (max-width: 720px) {
  .hm-hero { min-height: 660px; max-height: 820px; }
  .hm-bg { background-image: url('/static/home/bg-moon-960.webp'); background-position: 58% 50%; }
  .hm-hero::after { background: linear-gradient(180deg, rgba(11, 8, 10, .82) 0%, rgba(11, 8, 10, .5) 46%, rgba(11, 8, 10, 0) 70%), linear-gradient(0deg, var(--bg0) 0%, rgba(11, 8, 10, 0) 18%); }
  .hm-in { align-items: start; padding-top: 88px; }
  .hm-txt { align-self: start; }
  .hm-logo img { width: 250px; margin-left: -4px; }
  .hm-lede { font-size: 16px; margin-top: 16px; }
  .hm-menu { margin-top: 22px; }
  .hm-ver { margin-top: 22px; }
  .hm-me { right: 0; bottom: 4%; width: 54vw; height: min(36vh, 300px); }
  .hm-code { flex-wrap: wrap; }
  .hm-code .field { width: auto; flex: 1 1 100%; min-width: 0; }
  .hm-code .btn { flex: 1; }
  .hm-cta-in { padding: 28px 22px; }
  .hm-cta-in::before { inset: 0; opacity: .22; -webkit-mask-image: none; mask-image: none; }
  .info-list { grid-template-columns: 1fr; }
  .fps-row { grid-template-columns: 40px minmax(0, 1fr) 92px; gap: 10px; }
  .fps-row b { font-size: 16px; }
  .fps-row.e b { font-size: 18px; }
}

/* ═════════════ 스토어 (6판: 가로 줄 + 격자 + 옆 거름) ═════════════ */
.st { padding-bottom: 20px; }
.st-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 22px 0 16px; }
.st-top .crumb { padding: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-top .crumb b { color: var(--ink); font-weight: 600; }
.st-links { display: flex; gap: 4px; flex: none; }
.st-links a { padding: 7px 11px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink3); transition: color .15s, background-color .15s; }
.st-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.st-ttl { margin: 6px 0 4px; }

/* 기획전 띠: 왼쪽 글, 오른쪽에 세트 그림이 비스듬히 선다 */
.st-banner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; min-height: 364px; border-radius: 18px; overflow: hidden; background: linear-gradient(100deg, #1c1014 0%, #24121a 46%, #150c10 100%); box-shadow: inset 0 0 0 1px var(--line); animation: fade-in .5s ease both; }
.st-banner .bn-txt { position: relative; z-index: 2; padding: 40px 44px; }
.st-banner .kick { font-size: 13px; font-weight: 700; color: var(--red-ink); }
.st-banner h1 { margin-top: 10px; font: 800 clamp(32px, 4.2vw, 54px)/1.08 var(--sans); letter-spacing: -.035em; }
.st-banner p { margin: 14px 0 26px; max-width: 380px; color: var(--ink2); font-size: 15.5px; line-height: 1.7; }
.st-banner .bn-art { position: absolute; inset: 0 0 0 44%; display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding-right: 40px; }
.st-banner .bn-art::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #20111a 0%, rgba(32, 17, 26, 0) 34%); pointer-events: none; }
.st-banner .bn-art img { width: 196px; height: 268px; object-fit: cover; border-radius: 16px; box-shadow: 0 22px 36px rgba(0, 0, 0, .5); transition: transform .6s var(--ease); }
.st-banner .bn-art img:nth-child(1) { transform: translateY(18px) rotate(-3deg); }
.st-banner .bn-art img:nth-child(2) { transform: translateY(-10px) rotate(2deg); }
.st-banner .bn-art img:nth-child(3) { transform: translateY(14px) rotate(-2deg); }
.st-banner:hover .bn-art img:nth-child(odd) { transform: translateY(8px) rotate(-1deg); }
.st-banner:hover .bn-art img:nth-child(even) { transform: translateY(-4px) rotate(1deg); }
.st-banner .bn-txt > * { animation: rise-in .6s var(--ease) both; }
.st-banner .bn-txt > :nth-child(2) { animation-delay: .06s; }
.st-banner .bn-txt > :nth-child(3) { animation-delay: .12s; }
.st-banner .bn-txt > :nth-child(4) { animation-delay: .18s; }

.st-search { display: flex; min-width: 0; }
.st-search .field { flex: 1 1 0; width: auto; min-width: 0; height: 42px; border-radius: var(--r) 0 0 var(--r); border-right: 0; font-size: 14.5px; }
.st-search .btn { height: 42px; border-radius: 0 var(--r) var(--r) 0; flex: none; }
.st-search .btn:hover { transform: none; }
.st-search.wide { max-width: 620px; margin: 32px auto 0; }

/* 분류 줄: 그림 + 이름 */
.st-cats { display: flex; justify-content: space-between; gap: 4px; margin-top: 26px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.st-cats::-webkit-scrollbar { display: none; }
.st-cats a { flex: 0 0 auto; width: 92px; display: grid; justify-items: center; gap: 10px; padding: 8px 0 10px; scroll-snap-align: start; }
.st-cats .ci { position: relative; width: 76px; height: 76px; border-radius: 18px; overflow: hidden; transition: transform .3s var(--ease); }
.st-cats .ci::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); transition: box-shadow .2s; }
.st-cats a:hover .ci { transform: translateY(-3px); }
.st-cats a:hover .ci::after { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .34); }
.st-cats .ci img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.st-cats a:hover .ci img { transform: scale(1.08); }
.st-cats .cl { font-size: 13.5px; font-weight: 600; color: var(--ink3); white-space: nowrap; transition: color .15s; }
.st-cats a:hover .cl { color: var(--ink); }

.st-chips { display: flex; justify-content: center; gap: 6px; align-items: center; margin-top: 18px; padding-bottom: 30px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.st-chips::-webkit-scrollbar { display: none; }
.st-chips a { flex: none; padding: 6px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line2); font-size: 13px; font-weight: 600; color: var(--ink3); transition: color .15s, background-color .15s; }
.st-chips a:hover { color: var(--ink); background: var(--s2); }
.st-chips i { flex: none; width: 1px; height: 18px; margin: 0 6px; background: var(--line2); }

/* 가로로 넘기는 줄 */
.prow { margin-top: 46px; }
.st-chips + .prow { margin-top: 36px; }
.prow-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.prow-h h2 { font: 800 22px/1.2 var(--sans); letter-spacing: -.025em; }
.prow.big .prow-h h2 { font-size: 26px; }
.prow-h .by { font-size: 13.5px; color: var(--ink4); }
.prow-h .more { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--ink3); transition: color .15s; }
.prow-h .more:hover { color: var(--ink); }
.prow-nav { display: none; gap: 4px; align-self: center; }
html.js .prow-nav { display: flex; }
.prow-nav button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--s2); color: var(--ink2); cursor: pointer; transition: background-color .15s, color .15s, opacity .15s; }
.prow-nav button:hover { background: var(--s3); color: var(--ink); }
.prow-nav button:disabled { opacity: .35; cursor: default; }
.prow-nav button:first-child svg { transform: scaleX(-1); }
.prow-nav svg { width: 14px; height: 14px; }
.prow-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 6px; }
.prow-track::-webkit-scrollbar { display: none; }
.prow-track > .pc { scroll-snap-align: start; }
.prow.big .prow-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px; }
.prow.big .pc-img { aspect-ratio: 4 / 3; border-radius: 18px; }
.prow.big .pc-img .art { object-position: 50% 22%; }
.prow.big .pc-nm { margin-top: 14px; font-size: 18px; letter-spacing: -.015em; }
.prow.big .pc-pr { font-size: 14px; }
.st-all { display: flex; justify-content: center; margin: 56px 0 16px; padding-top: 36px; border-top: 1px solid var(--line); }
.st-all .n { margin-left: 8px; font: 400 13px var(--mono); color: var(--ink3); }

/* 카드: 테 없는 정사각 그림 + 이름 + 값 */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
.pc { display: block; min-width: 0; }
.pc-img { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--s2); transition: transform .32s var(--ease), box-shadow .32s var(--ease); }
.pc:hover .pc-img, .pc:focus-visible .pc-img { transform: translateY(-4px); box-shadow: 0 16px 28px rgba(0, 0, 0, .42); }
.pc-img .art { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pc:hover .pc-img .art, .pc:focus-visible .pc-img .art { transform: scale(1.045); }
.pc-img.flat { display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 40%, #3a3036 0%, #1a1418 100%); }
.pc-img.flat .art { width: 70%; height: 70%; object-fit: contain; }
.pc-img.flat.k-cape .art { width: auto; height: 68%; border-radius: 3px; box-shadow: 0 14px 22px rgba(0, 0, 0, .5); }
.pc-img .art.px { image-rendering: pixelated; }
.pc-img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); pointer-events: none; transition: box-shadow .2s; }
.pc:hover .pc-img::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.pc-img .nopic { font-size: 13px; font-weight: 600; color: var(--ink4); }
.pc-img .own { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 700; line-height: 1; color: var(--ok); padding: 5px 7px; border-radius: 6px; background: rgba(11, 8, 10, .82); }
.pc-tags { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 5px; }
.bd { font: 600 11.5px/1 var(--mono); padding: 5px 7px; border-radius: 6px; background: rgba(11, 8, 10, .82); color: var(--ink2); }
.bd.new { font-family: var(--sans); color: #fff; background: var(--red-btn); }
.bd.set { font-family: var(--sans); color: var(--ink); }
.pc-nm { margin-top: 12px; font-size: 15px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.pc:hover .pc-nm { color: #fff; }
.pc-pr { display: flex; align-items: baseline; gap: 8px; margin-top: 3px; font-size: 13px; color: var(--ink4); white-space: nowrap; overflow: hidden; }
.pc-pr .price { font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.pc-pr .price.free { color: var(--ok); }
.pc-pr .k { overflow: hidden; text-overflow: ellipsis; }
.pc-pr .was { font-variant-numeric: tabular-nums; color: var(--ink4); }
/* 값은 Pretendard 로 (Plex Mono 조각에 ₩ 가 없다) */
.price { font: 700 14.5px var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.price.free { font: 700 13.5px var(--sans); color: var(--ok); }

/* 격자 목록: 왼쪽 격자, 오른쪽 거름 */
.cat-h { padding: 4px 0 22px; border-bottom: 1px solid var(--line); }
.cat-h h1 { font: 800 clamp(28px, 3.2vw, 38px)/1.15 var(--sans); letter-spacing: -.03em; }
.cat-h p { margin-top: 8px; max-width: 640px; color: var(--ink2); font-size: 15.5px; line-height: 1.7; }
.cat-h > * { animation: rise-in .5s var(--ease) both; }
.browse { display: grid; grid-template-columns: minmax(0, 1fr) 216px; gap: 30px; align-items: start; margin-top: 20px; }
.browse-main { min-width: 0; }
.browse-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.browse-bar .count { font-size: 14.5px; color: var(--ink3); }
.browse-bar .count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.browse-bar form.sort { display: flex; gap: 6px; }
.browse-bar form.sort .field { height: 38px; width: auto; min-width: 164px; font-size: 13.5px; background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px; }
.filters { position: sticky; top: 76px; display: grid; gap: 20px; min-width: 0; }
.filters > * { min-width: 0; }
.filters .st-search .field, .filters .st-search .btn { height: 38px; font-size: 13.5px; }
.filters .st-search .field { min-width: 0; }
.fg h2 { font-size: 13px; font-weight: 700; color: var(--ink3); padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.fo { display: grid; }
.fo a { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--ink2); transition: color .15s, background-color .15s; }
.fo a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.fo a i { flex: none; width: 15px; height: 15px; border-radius: 4px; background: var(--s3); box-shadow: inset 0 0 0 1px var(--line2); transition: background-color .15s; }
.fo a.on { color: var(--ink); }
.fo a.on i { background: var(--red-btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.4 3 2.9 6-6.4'/%3E%3C/svg%3E") center / 11px no-repeat; box-shadow: none; }
.fo a .n { margin-left: auto; font: 400 12.5px var(--mono); color: var(--ink4); }
.store-empty { border: 1px dashed var(--line2); border-radius: var(--r-lg); padding: 56px 20px; text-align: center; }
.store-empty b { display: block; font-size: 17px; }
.store-empty p { color: var(--ink3); margin: 8px 0 18px; font-size: 14.5px; }
.rows .empty { border-radius: var(--r-lg); }

/* 상세: 왼쪽 큰 미리보기, 오른쪽 이름·값·사기. 아래는 줄(왼쪽)과 물음·정보(오른쪽) */
.pd { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); gap: 32px; align-items: stretch; }
.pd-stage { position: relative; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line);
  background:
    radial-gradient(34% 6% at 50% 90%, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 100%),
    radial-gradient(58% 72% at 50% 40%, #5a4753 0%, #33272f 52%, #1b1418 100%); }
.pd-stage { animation: fade-in .6s ease both; }
.pd-buy > * { animation: rise-in .6s var(--ease) both; }
.pd-buy > :nth-child(2) { animation-delay: .05s; }
.pd-buy > :nth-child(3) { animation-delay: .1s; }
.pd-buy > :nth-child(4) { animation-delay: .15s; }
.pd-buy > :nth-child(n+5) { animation-delay: .2s; }
.pd-stage .stage3d canvas { display: block; width: 100%; aspect-ratio: 1 / .66; height: auto; cursor: grab; touch-action: pan-y; }
.pd-stage .stage2d { aspect-ratio: 1 / .66; display: grid; place-items: center; }
.pd-stage .stage2d img { width: auto; height: 84%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); }
.pd-stage .stage2d img.cape { width: auto; height: 74%; }
.pd-stage .stage2d img.px { image-rendering: pixelated; }
.pd-stage .stage2d > img, .pd-stage .stage2d .swing { grid-area: 1 / 1; }
.pd-stage .stage2d .swing { position: relative; height: 84%; aspect-ratio: 1; overflow: hidden; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); }
.pd-stage .stage2d .swing[hidden] { display: none; }
.pd-stage .stage2d .swing img { width: auto; height: 100%; max-width: none; object-fit: fill; filter: none; will-change: transform; }
.pd-stage .stage-worn { aspect-ratio: 1 / .66; display: grid; place-items: center; }
.pd-stage .stage-worn img { width: auto; height: calc(100% - 44px); aspect-ratio: 1; border-radius: var(--r-lg); box-shadow: 0 18px 34px rgba(0, 0, 0, .45); }
.pd-stage .tools { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pd-stage .tools .seg { background: rgba(11, 8, 10, .82); }
.pd-stage .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 18px; background: linear-gradient(180deg, rgba(11, 8, 10, 0), rgba(11, 8, 10, .78)); font-size: 13.5px; color: var(--ink2); }
.pd-buy { display: flex; flex-direction: column; min-width: 0; padding: 4px 0 0; }
.pd-buy h1 { font: 800 clamp(28px, 3vw, 38px)/1.18 var(--sans); letter-spacing: -.025em; }
.prline { display: flex; align-items: end; gap: 14px; margin: 12px 0 0; }
.prline .pr { font: 800 30px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.prline .pr.free { font: 800 24px/1 var(--sans); letter-spacing: -.02em; color: var(--ok); }
.prline .save { font-size: 13px; color: var(--ok); }
.prline .save s { display: block; font: 400 12.5px var(--sans); font-variant-numeric: tabular-nums; color: var(--ink4); }
.pd-buy .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.pd-buy .descr { color: var(--ink2); margin-top: 14px; font-size: 15.5px; line-height: 1.7; }
.pd-buy .spec { margin: 20px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); }
.pd-buy .acts { display: grid; gap: 8px; margin-top: auto; padding: 24px 0 0; }
.pd-buy .acts form { display: grid; }
.pd-buy .acts .btn { width: 100%; }
.pd-buy .fine { font-size: 13px; color: var(--ink3); margin-top: 4px; line-height: 1.6; }
.members { margin-top: 18px; border-radius: var(--r-lg); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.members .mh { display: flex; justify-content: space-between; padding: 11px 14px; font-size: 13.5px; font-weight: 700; color: var(--ink2); border-bottom: 1px solid var(--line); }
.members .mh span { color: var(--ok); font-weight: 600; }
.mrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); transition: background-color .15s; }
.mrow:first-of-type { border-top: 0; }
.mrow:hover { background: var(--s2); }
.mrow .mt { width: 44px; height: 44px; display: grid; place-items: center; background: var(--well); border-radius: 8px; overflow: hidden; }
.mrow .mt img { max-width: 36px; max-height: 36px; object-fit: contain; }
.mrow .mt img.w { max-width: none; max-height: none; width: 100%; height: 100%; object-fit: cover; }
.mrow .mt img.cape { max-height: 38px; image-rendering: pixelated; }
.mrow .mn { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .mn span { display: block; font-size: 12.5px; color: var(--ink3); font-weight: 400; }
.mrow .mo { font-size: 12.5px; font-weight: 700; color: var(--ok); }
.pd-low { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); gap: 32px; align-items: start; margin-top: 34px; padding-top: 6px; border-top: 1px solid var(--line); }
.pd-rows { min-width: 0; }
.pd-rows .prow-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
.pd-side { display: grid; gap: 26px; margin-top: 30px; }
.pd-side h2 { font: 800 18px/1.2 var(--sans); letter-spacing: -.02em; margin-bottom: 8px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; font-size: 15px; font-weight: 600; color: var(--ink2); cursor: pointer; list-style: none; transition: color .15s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3); transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.qa[open] summary::after { transform: translateY(2px) rotate(225deg); }
.qa summary:hover, .qa[open] summary { color: var(--ink); }
.qa p { padding: 0 0 14px; font-size: 14.5px; line-height: 1.7; color: var(--ink2); }
.pd-side .spec { margin: 0; padding: 0; border: 0; }
.st .tbl-wrap { overflow-x: auto; }
.st .tbl { min-width: 640px; }
.st .tbl th, .st .tbl td { white-space: nowrap; }
.testpay { border-style: solid; border-color: var(--line2); border-radius: 18px; padding: 30px; }
.testpay .amt { font: 800 40px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rules, .kinds span, .file { border-radius: var(--r-lg); }
.kinds span { transition: border-color .15s, background-color .15s; }
.kinds label:hover span { border-color: var(--line3); }
.kinds input:focus-visible + span { outline-color: var(--red); }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prow-track { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
}
@media (max-width: 860px) {
  .st-banner { grid-template-columns: 1fr; min-height: 0; }
  .st-banner .bn-art { position: relative; inset: auto; order: -1; justify-content: center; padding: 26px 16px 0; gap: 10px; }
  .st-banner .bn-art::before { display: none; }
  .st-banner .bn-art img { width: 30%; height: auto; aspect-ratio: 3 / 4; }
  .st-banner .bn-txt { padding: 22px 20px 26px; }
  .browse { grid-template-columns: 1fr; gap: 18px; }
  .filters { position: static; order: -1; gap: 12px; }
  .fg h2 { display: none; }
  .fo { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .fo::-webkit-scrollbar { display: none; }
  .fo a { flex: none; padding: 7px 11px; border-radius: 8px; background: var(--s2); font-size: 13.5px; }
  .fo a i { display: none; }
  .fo a.on { background: var(--red-btn); color: #fff; }
  .fo a .n { margin-left: 4px; color: inherit; opacity: .7; }
  .pd, .pd-low { grid-template-columns: 1fr; gap: 22px; }
  .pd-buy .acts { margin-top: 0; }
  .pd-side { margin-top: 0; }
  .prow-track { grid-auto-columns: calc((100% - 2 * 14px) / 3.2); gap: 14px; }
  .pd-rows .prow-track { grid-auto-columns: calc((100% - 2 * 14px) / 3.2); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .prow-track, .pd-rows .prow-track { grid-auto-columns: 44%; gap: 12px; }
  .st-top { padding: 16px 0 12px; }
  .st-links a { padding: 7px 8px; font-size: 13px; }
  .st-search.wide { margin-top: 18px; }
  .st-cats { margin: 16px calc(var(--gut) * -1) 0; padding: 0 var(--gut); }
  .st-cats a { width: 78px; }
  .st-cats .ci { width: 64px; height: 64px; border-radius: 16px; }
  .st-chips { margin: 8px calc(var(--gut) * -1) 0; padding: 0 var(--gut) 18px; }
  .pc-nm { font-size: 14.5px; }
  .pd-stage .stage3d canvas, .pd-stage .stage2d, .pd-stage .stage-worn { aspect-ratio: 1; }
  .pd-stage .stage-worn img { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
  .browse-bar form.sort .field { min-width: 0; }
  .pc:hover .pc-img .art, .pc:hover .pc-img { transform: none; box-shadow: none; }
  .prow.big .prow-track { grid-auto-columns: 78%; gap: 12px; }
  .prow.big .pc-nm { font-size: 16.5px; }
  .prow-h .by { display: none; }
  .st-chips { justify-content: flex-start; }
  .st-cats { justify-content: flex-start; }
}

/* ═════════════ 대시보드 ═════════════ */
main.pg-dash { background: none; }
.dash { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: calc(100vh - 61px); }
.dash + * { margin-top: 0; }
body:has(.dash) .foot { margin-top: 0; }
.rail { position: sticky; top: 61px; align-self: start; height: calc(100vh - 61px); overflow-y: auto; padding: 20px 12px 24px; border-right: 1px solid var(--line); scrollbar-width: thin; }
.rail-me { display: flex; gap: 12px; align-items: center; padding: 4px 10px 18px; }
.rail-me .av { width: 36px; height: 36px; border-radius: 8px; }
.rail-me b { display: block; font-size: 15px; line-height: 1.25; }
.rail-g { padding: 18px 10px 6px; font-size: 12.5px; font-weight: 600; color: var(--ink4); }
.rail nav { display: grid; gap: 2px; }
.rail nav a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 0 10px 0 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink3); transition: color .15s, background-color .15s; }
.rail nav a::before { content: ''; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--red); transform: scaleY(0); transition: transform .2s var(--ease); }
.rail nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.rail nav a.on { color: var(--ink); background: var(--s2); }
.rail nav a.on::before { transform: none; }
.badge { min-width: 22px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 6px; background: var(--red-btn); color: #fff; font: 600 12px var(--mono); }
.rail-foot { display: flex; gap: 6px; flex-wrap: wrap; padding: 18px 10px 0; margin-top: 16px; border-top: 1px solid var(--line); }
.dash-main { padding: 32px 36px 64px; min-width: 0; max-width: 1320px; }
.dash-main > * { animation: rise-in .5s var(--ease) both; }
.dash-main > :nth-child(2) { animation-delay: .04s; }
.dash-main > :nth-child(3) { animation-delay: .08s; }
.dash-main > :nth-child(4) { animation-delay: .12s; }
.dash-main > :nth-child(n+5) { animation-delay: .16s; }
.dh { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.dh .kick { color: var(--ink3); }
.dh h1 { font-size: 30px; font-weight: 800; margin-top: 4px; letter-spacing: -.025em; line-height: 1.2; }
.dh p { color: var(--ink3); font-size: 14px; line-height: 1.7; margin-top: 8px; max-width: 760px; }
.role { display: inline-block; font: 600 12px/1 var(--sans); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line2); color: var(--ink2); margin-top: 4px; }
.role.r-owner { border-color: var(--red); color: #fff; background: var(--red-lo); }
.role.r-admin { border-color: rgba(226, 59, 69, .55); color: var(--red-ink); }
.role.r-moderator { border-color: rgba(165, 138, 151, .7); color: var(--violet-ink); }
.role.r-reviewer { border-color: rgba(127, 214, 164, .45); color: var(--ok); }
.role.r-support { border-color: rgba(240, 164, 106, .5); color: var(--warn); }

/* 처리할 것 */
.todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.todo-i { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line2); border-radius: var(--r-lg); background: var(--s1); transition: border-color .2s, transform .25s var(--ease); }
.todo-i:hover { border-color: var(--line3); transform: translateY(-2px); }
.todo-i b { font: 800 30px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; min-width: 1.3em; }
.todo-i span { font-size: 15px; font-weight: 700; color: var(--ink); }
.todo-i small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--ink3); }
.todo-i .ic { color: var(--ink4); transition: transform .2s var(--ease), color .2s; }
.todo-i:hover .ic { transform: translateX(3px); color: var(--ink); }
.todo-i.hot { border-color: rgba(226, 59, 69, .5); background: var(--red-wash); }
.todo-i.hot b { color: var(--red-ink); }
.todo-i.zero b { color: var(--ink4); }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 16px 18px 15px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); transition: border-color .2s; }
.kpi:hover { border-color: var(--line2); }
.kpi.hot { border-color: rgba(226, 59, 69, .5); }
.k-t { font-size: 13px; font-weight: 600; color: var(--ink3); }
.k-v { margin-top: 8px; font: 800 30px/1.1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.k-s { margin-top: 8px; font-size: 12.5px; color: var(--ink4); }
.k-s b { color: var(--ink2); font: 600 12.5px var(--mono); }
.dgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); margin-bottom: 16px; overflow: hidden; }
.dgrid .panel { margin-bottom: 0; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 50px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: transparent; }
.panel-h h2 { font-size: 15px; font-weight: 700; }
.panel .tbl-wrap { border: 0; border-radius: 0; background: transparent; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink3); }
.legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.legend .l1::before { background: var(--red); }
.legend .l2::before { background: var(--ink2); }
.chart { display: block; width: 100%; height: auto; padding: 18px 18px 8px; }
.chart .b1 { fill: var(--red); }
.chart .b2 { fill: var(--ink2); }
.chart rect { transform-box: fill-box; transform-origin: 50% 100%; }
.chart rect { animation: bar-up .8s var(--ease) .15s both; }
@keyframes bar-up { from { transform: scaleY(0); } to { transform: none; } }
.chart line { stroke: var(--line3); }
.chart text { fill: var(--ink4); font: 400 7px var(--mono); }
.perm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-height: 330px; overflow-y: auto; scrollbar-width: thin; }
.perm-list .pl:nth-child(odd) { border-right: 1px solid var(--line); }
.pl { display: flex; flex-direction: column; padding: 8px 16px; font-size: 12.5px; line-height: 1.4; color: var(--ink4); border-bottom: 1px solid var(--line); }
.pl .mono { font-size: 12px; }
.pl.on { color: var(--ink2); }
.pl.on .mono { color: var(--ok); }
.tbl.dense th { padding: 10px 12px; }
.tbl.dense td { padding: 9px 12px; font-size: 13px; }
.tbl td.thumb img { border-radius: 8px; }
.act { font-size: 12.5px; }
.dash .filters { margin: 0 0 14px; }
.dash .filters .field { height: 38px; }
.ban-form, .key-form { padding: 16px 18px; }
.ban-form .field, .key-form .field { height: 38px; }
.panel .hint { padding: 0 18px 14px; }
.keybox { border-radius: var(--r-lg); padding: 16px 18px; }
.acts { padding: 16px 18px; }
.row-f .field { height: 36px; }
.row-f.danger-zone { border-radius: var(--r); }
.panel .kv { padding: 16px 18px; }
.set-row { padding: 12px 18px; font-size: 14px; }
.set-row .field { height: 36px; }
.settings .bar { padding: 0 18px 16px; }
.q-i { border-radius: var(--r-lg); padding: 18px; }
.q-i .tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.q-i .tags .price { margin-left: 4px; }
.q-i h3 { font-size: 17px; }
.q-i .p-uuid { margin-top: 10px; }
.q-i .acts { padding: 0; }
.tbl .num { border-right: 0; padding: 11px 14px; }
.tbl.dense .num { padding: 9px 12px; }
.kv { font-size: 14px; gap: 10px 14px; }
.q-i .pic { border-radius: var(--r); }
.qr { border-radius: var(--r-lg); }
.matrix tr.sep td { font: 600 12.5px var(--sans); color: var(--red-ink); padding: 10px 12px; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dgrid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .rail { position: sticky; top: 60px; z-index: 5; height: auto; display: flex; gap: 2px; padding: 8px var(--gut); border-right: 0; border-bottom: 1px solid var(--line); background: var(--bg0); overflow-x: auto; scrollbar-width: none; }
  .rail-me, .rail-g, .rail-foot { display: none; }
  .rail nav { display: flex; flex: none; gap: 2px; overflow: visible; }
  .rail nav a { border: 0; white-space: nowrap; padding: 0 12px; }
  .rail nav a::before { display: none; }
  .dash-main { padding: 22px var(--gut) 48px; }
  .perm-list { grid-template-columns: 1fr; }
  .perm-list .pl:nth-child(odd) { border-right: 0; }
}
@media (max-width: 640px) {
  .nav-in { height: 56px; }
  .nav-links { height: 56px; background: var(--bg0); }
  .nav-links a { height: 100%; border-radius: 0; font-size: 13.5px; }
  .nav-links a.on::after { top: 0; bottom: auto; left: 24%; right: 24%; }
  body { padding-bottom: 56px; }
  .brand span { display: none; }
  .page-h { padding-top: 30px; }
  .page-h .ttl { font-size: 28px; }
  .rail { top: 56px; }
  .dh h1 { font-size: 24px; }
  .k-v { font-size: 22px; }
  .kpi { padding: 14px 14px 13px; }
  .todo-i b { font-size: 24px; }
  .foot { margin-top: 56px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .rv-on, .sc.rise .sc-cap, .sc.rise .sc-thumbs { opacity: 1; transform: none; }
  .sc.rise .sc-pic img, .fps.rv-on .fps-bar { transform: none; }
  .hm-bg { transform: none; }
  .btn:hover, .todo-i:hover, .info-list li:hover, a.hm-card:hover { transform: none; }
  .pc:hover .pc-img .art, .pc:hover .pc-img, .st-banner .bn-art img, .st-cats a:hover .ci, .st-cats a:hover .ci img { transform: none; transition: none; }
  .prow-track { scroll-behavior: auto; }
}

/* ---- wiki ---- 플레이어 위키(/wiki) · 모드 제작 문서(모드 사이트 /docs). 옆 목차 + 읽기 폭 본문. src/wiki.rs
 * 본문은 마크다운에서 나온 태그라 클래스 없이 .wk-body 아래 요소로 입힌다. */
.wk { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; padding-top: 34px; padding-bottom: 72px; align-items: start; }
.wk-side { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.wk-main { min-width: 0; max-width: 780px; }
.wk-mtoc { display: none; }
.wk-search { display: flex; height: 38px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--well); overflow: hidden; }
.wk-search:focus-within { border-color: var(--line3); }
.wk-search input { flex: 1; min-width: 0; padding: 0 12px; background: transparent; border: 0; color: var(--ink); font: 400 13.5px var(--sans); outline: 0; }
.wk-search input::placeholder { color: var(--ink4); }
.wk-search button { width: 40px; display: grid; place-items: center; background: transparent; border: 0; border-left: 1px solid var(--line); color: var(--ink3); cursor: pointer; }
.wk-search button:hover { color: var(--ink); background: var(--s2); }
.wk-nav { margin-top: 20px; }
.wk-nav ul { list-style: none; margin: 0; padding: 0; }
.wk-grp { margin: 20px 0 6px; padding-left: 12px; font: 600 12px var(--sans); color: var(--ink4); }
.wk-grp:first-child { margin-top: 0; }
.wk-nav > ul > li > a { display: block; padding: 7px 12px; border-radius: var(--r); color: var(--ink2); font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.wk-nav > ul > li > a:hover { color: var(--ink); background: var(--s1); }
.wk-nav > ul > li > a.on { color: var(--ink); background: var(--s2); box-shadow: inset 2px 0 0 var(--red); }
.wk-sub { margin: 4px 0 8px 14px !important; border-left: 1px solid var(--line2); }
.wk-sub a { display: block; padding: 4px 12px; color: var(--ink3); font-size: 12.5px; line-height: 1.4; }
.wk-sub a:hover { color: var(--ink); }
.wk-cross { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.wk-cross a { display: block; padding: 6px 12px; color: var(--red-ink); font-size: 13px; font-weight: 600; }
.wk-cross a:hover { color: var(--ink); }

.wk-h { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.wk-h .kick a { color: inherit; }
.wk-h .ttl { margin-top: 10px; font-size: 34px; overflow-wrap: anywhere; }
.wk-h p { margin-top: 12px; color: var(--ink2); font-size: 15px; line-height: 1.7; }
.wk-h .wk-q { color: var(--ink3); font-size: 13.5px; }
.wk-note { margin: -8px 0 24px; padding: 11px 14px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--s1); color: var(--ink2); font-size: 13px; }

.wk-body { color: var(--ink2); font-size: 15.5px; line-height: 1.8; overflow-wrap: break-word; }
.wk-body > :first-child { margin-top: 0; }
.wk-body p { margin: 0 0 16px; }
.wk-body h2 { margin: 44px 0 14px; padding-top: 4px; font: 800 22px/1.3 var(--sans); letter-spacing: -.01em; color: var(--ink); scroll-margin-top: 80px; }
.wk-body h3 { margin: 30px 0 10px; font: 800 17px/1.35 var(--sans); color: var(--ink); scroll-margin-top: 80px; }
.wk-body h4 { margin: 24px 0 8px; font: 700 15px/1.4 var(--sans); color: var(--ink); scroll-margin-top: 80px; }
.wk-body a { color: var(--red-ink); text-decoration: underline; text-decoration-color: rgba(255, 143, 149, .35); text-underline-offset: 3px; }
.wk-body a:hover { color: var(--ink); text-decoration-color: currentColor; }
.wk-body strong { color: var(--ink); font-weight: 700; }
.wk-body ul, .wk-body ol { margin: 0 0 18px; padding-left: 22px; }
.wk-body li { margin: 5px 0; }
.wk-body li::marker { color: var(--ink4); }
.wk-body li > ul, .wk-body li > ol { margin: 6px 0; }
.wk-body hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.wk-body blockquote { margin: 0 0 18px; padding: 2px 0 2px 16px; border-left: 2px solid var(--line3); color: var(--ink3); }
.wk-body code { font: 400 .88em var(--mono), var(--sans); padding: 2px 5px; border-radius: 5px; background: var(--s2); color: var(--ink); overflow-wrap: anywhere; }
.wk-body pre { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--well); overflow-x: auto; line-height: 1.6; }
.wk-body pre code { padding: 0; background: transparent; font-size: 13px; overflow-wrap: normal; white-space: pre; }
.wk-body img { display: block; width: 100%; height: auto; margin: 6px 0 4px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--well); }
.wk-tbl { margin: 0 0 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); overflow-x: auto; }
.wk-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.wk-tbl th { text-align: left; padding: 10px 14px; background: var(--bg1); border-bottom: 1px solid var(--line); color: var(--ink3); font: 600 12.5px var(--sans); white-space: nowrap; }
.wk-tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wk-tbl tr:last-child td { border-bottom: 0; }
.wk-tbl td:first-child { color: var(--ink); font-weight: 600; }
.wk-tbl td code { white-space: nowrap; }

.wk-hero { margin: 0 0 8px; }
.wk-hero img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.wk-hero figcaption { margin-top: 8px; color: var(--ink4); font-size: 12.5px; }
.wk-gh { margin: 34px 0 12px; font: 800 17px/1.3 var(--sans); color: var(--ink); }
.wk-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wk-cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); transition: border-color .15s, background .15s; }
.wk-cards a:hover { border-color: var(--line3); background: var(--s2); }
.wk-cards b { color: var(--ink); font-size: 15.5px; font-weight: 800; }
.wk-cards span { color: var(--ink3); font-size: 13px; line-height: 1.6; }
.wk-dev { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 36px; padding: 18px 20px; border: 1px solid var(--line2); border-radius: var(--r-lg); background: var(--s1); }
.wk-dev div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wk-dev b { color: var(--ink); font-size: 15px; }
.wk-dev span { color: var(--ink3); font-size: 13px; }
.wk-dev .btn { flex: none; }

.wk-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line); }
.wk-pn a { display: flex; flex-direction: column; gap: 4px; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); min-width: 0; }
.wk-pn a:hover { border-color: var(--line3); background: var(--s2); }
.wk-pn a.next { text-align: right; grid-column: 2; }
.wk-pn small { color: var(--ink4); font-size: 12px; }
.wk-pn b { color: var(--ink); font-size: 14.5px; overflow-wrap: anywhere; }

.wk-res { list-style: none; margin: 0; padding: 0; }
.wk-res li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.wk-res li:first-child { padding-top: 0; }
.wk-res a b { color: var(--ink); font-size: 16.5px; font-weight: 800; }
.wk-res a:hover b { color: var(--red-ink); }
.wk-res p { margin-top: 6px; color: var(--ink3); font-size: 13.5px; line-height: 1.65; overflow-wrap: anywhere; }
.wk-res mark, .wk-h mark { background: var(--red-wash); color: var(--red-ink); border-radius: 3px; padding: 0 2px; }
.wk-empty { padding: 8px 0 20px; }
.wk-empty p { margin-bottom: 16px; color: var(--ink2); }

@media (max-width: 900px) {
  .wk { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 18px; }
  .wk-side { display: none; }
  .wk-main { max-width: none; }
  .wk-mtoc { display: block; margin-bottom: 22px; border: 1px solid var(--line2); border-radius: var(--r-lg); background: var(--s1); }
  .wk-mtoc > summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; list-style: none; }
  .wk-mtoc > summary::-webkit-details-marker { display: none; }
  .wk-mtoc > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3); margin-right: 4px; transform: translateY(-3px) rotate(45deg); }
  .wk-mtoc[open] > summary::after { transform: translateY(3px) rotate(225deg); }
  .wk-mtoc[open] > summary { border-bottom: 1px solid var(--line); }
  .wk-mtoc .wk-search { margin: 14px 14px 0; }
  .wk-mtoc .wk-nav { margin: 14px 6px 10px; }
}
@media (max-width: 560px) {
  .wk-h .ttl { font-size: 27px; }
  .wk-body { font-size: 15px; }
  .wk-body h2 { font-size: 20px; margin-top: 36px; }
  .wk-cards { grid-template-columns: minmax(0, 1fr); }
  .wk-dev { flex-direction: column; align-items: stretch; }
  .wk-tbl th, .wk-tbl td { padding: 9px 11px; }
  .wk-tbl table { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .wk-cards a, .wk-mtoc > summary::after { transition: none; } }
/* 아래 탭 줄에 「위키」가 들어가 여섯 칸 — 두 줄로 꺾이지 않게 */
@media (max-width: 640px) {
  .nav-links a { white-space: nowrap; font-size: 12.5px; padding: 0 2px; }
  html[lang="ja"] .nav-links a { font-size: 11px; }
}

/* ── 업데이트 내역 /updates (web/data/updates.json) ── */
.hm-side > :nth-child(3) { animation-delay: .5s; }
.up-lay { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1040px; }
.up-toc { position: sticky; top: 84px; padding: 14px 8px 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); }
.up-toc > b { display: block; padding: 0 10px 8px; font-size: 13px; font-weight: 600; color: var(--ink3); }
.up-toc ol { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 160px); overflow-y: auto; }
.up-toc a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 7px 10px; border-radius: 8px; transition: background-color .15s; }
.up-toc a:hover { background: var(--s2); }
.up-toc .v { font: 600 13.5px/1.3 var(--mono); color: var(--ink); }
.up-toc .d { font: 400 11.5px/1.3 var(--mono); color: var(--ink4); }
.up-list { display: grid; gap: 16px; min-width: 0; }
.up-card { padding: 22px 24px 20px; border: 1px solid var(--line2); border-radius: var(--r-lg); background: var(--s1); scroll-margin-top: 84px; }
.up-card:target { border-color: rgba(226, 59, 69, .5); }
.up-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.up-v { font: 600 24px/1.2 var(--mono); color: var(--ink); letter-spacing: -.01em; }
.up-v:hover { color: var(--red-ink); }
.up-last { padding: 3px 8px; border: 1px solid var(--line2); border-radius: var(--r-sm); font-size: 12px; font-weight: 600; color: var(--red-ink); }
.up-date { margin-left: auto; font: 400 13px/1 var(--mono); color: var(--ink3); }
.up-sum { margin-top: 10px; color: var(--ink2); font-size: 15px; line-height: 1.7; }
.up-sec { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.up-sec h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.up-sec h3 i { width: 8px; height: 8px; border-radius: 2px; background: var(--ink4); }
.up-sec.k-new h3 i { background: var(--red); }
.up-sec.k-perf h3 i { background: var(--ok); }
.up-sec.k-changed h3 i { background: var(--warn); }
.up-sec.k-fixed h3 i { background: var(--violet); }
.up-sec ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink2); font-size: 14.5px; line-height: 1.7; }
.up-sec li { margin: 3px 0; }
.up-sec li::marker { color: var(--ink4); }
@media (max-width: 860px) {
  .up-lay { grid-template-columns: minmax(0, 1fr); }
  .up-toc { display: none; }
}
@media (max-width: 640px) {
  /* 아래 탭 줄은 여섯 칸이 한계 — 「업데이트」는 바닥 줄에서 */
  .nav-links a.nv-upd { display: none; }
  .up-card { padding: 18px 16px 16px; }
  .up-v { font-size: 21px; }
  .up-date { margin-left: 0; width: 100%; }
}
/* 항목 = 제목 줄 + 꼬리표 + 자세한 설명(기본 펼침) */
.up-sec > ul { padding-left: 0; list-style: none; }
.up-it { margin: 0; padding: 14px 0 2px; }
.up-it + .up-it { border-top: 1px dashed var(--line); }
.up-t { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.6; }
.up-area { display: inline-block; margin-right: 2px; padding: 1px 7px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--s2); font: 600 11.5px/1.5 var(--mono); color: var(--ink3); vertical-align: 1px; white-space: nowrap; }
.up-detail { margin-top: 6px; color: var(--ink2); font-size: 14px; line-height: 1.75; }
.up-detail p { margin: 6px 0 0; }
.up-detail ul { margin: 6px 0 0; padding-left: 20px; list-style: disc; }
.up-detail li { margin: 2px 0; }
.up-detail li::marker { color: var(--ink4); }
@media (max-width: 640px) {
  .up-t { font-size: 14.5px; }
  .up-detail { font-size: 13.5px; }
}

/* ---- dcarchive ---- 디스코드 보관 (/dash/discord): 디스코드처럼 왼쪽 채널 · 오른쪽 글 */
.dca { display: grid; grid-template-columns: 240px minmax(0, 1fr); height: calc(100vh - 140px); min-height: 520px; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: #1a1418; }
.dca-side { background: #130e11; overflow-y: auto; padding: 0 8px 16px; border-right: 1px solid var(--line); }
.dca-guild { position: sticky; top: 0; background: #130e11; padding: 14px 8px 10px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); margin: 0 -8px 8px; padding-left: 16px; z-index: 1; }
.dca-guild .dca-sub { display: block; font-weight: 400; margin-top: 2px; }
.dca-search { margin: 0 0 6px; }
.dca-search .field { width: 100%; height: 30px; font-size: 13px; padding: 4px 10px; border-radius: 6px; }
.dca-cat { font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--ink4); padding: 14px 8px 4px; text-transform: uppercase; }
.dca-ch { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 6px; color: var(--ink3); text-decoration: none; font-size: 14px; }
.dca-ch:hover { background: rgba(243, 238, 233, .05); color: var(--ink2); }
.dca-ch.on { background: rgba(243, 238, 233, .09); color: var(--ink); }
.dca-ch.thread { padding-left: 18px; font-size: 13px; }
.dca-hash { color: var(--ink4); width: 14px; text-align: center; flex: none; }
.dca-chn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dca-n { font-size: 11px; color: var(--ink4); }
.dca-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dca-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); flex-wrap: wrap; }
.dca-top b { font-size: 15px; }
.dca-inline { margin-left: auto; }
.dca-btn { margin-left: auto; font-size: 12px; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line2); background: var(--s2); color: var(--ink2); cursor: pointer; text-decoration: none; }
.dca-inline .dca-btn { margin-left: 0; }
.dca-btn:hover { background: var(--s3); color: var(--ink); }
.dca-flash { font-size: 12px; color: var(--ink3); width: 100%; }
.dca-flash.err { color: var(--red-ink); }
.dca-sub { font-size: 12px; color: var(--ink4); }
/* 아래부터 쌓이게: 맨 아래(최신)가 먼저 보인다 */
.dca-scroll { flex: 1; overflow-y: auto; display: flex; flex-direction: column-reverse; min-height: 0; }
.dca-list { padding: 8px 0 20px; }
.dca-more { display: block; text-align: center; font-size: 13px; color: var(--ink3); padding: 10px; }
.dca-empty { color: var(--ink3); padding: 40px 24px; text-align: center; font-size: 14px; }
.dca-day { display: flex; align-items: center; margin: 18px 16px 6px; color: var(--ink4); font-size: 12px; font-weight: 600; }
.dca-day::before, .dca-day::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.dca-day span { padding: 0 8px; }
.dca-msg { position: relative; padding: 4px 16px 4px 72px; margin-top: 14px; min-height: 44px; }
.dca-msg.cont { margin-top: 0; min-height: 0; padding-top: 1px; padding-bottom: 1px; }
.dca-msg:hover { background: rgba(0, 0, 0, .16); }
.dca-msg.hl { background: rgba(250, 200, 80, .08); box-shadow: inset 2px 0 0 #e6b84a; }
.dca-msg.del { background: var(--red-wash); box-shadow: inset 2px 0 0 var(--red); }
.dca-av { position: absolute; left: 16px; top: 6px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #fff; text-decoration: none; }
.dca-msg .dca-reply ~ .dca-av { top: 26px; }
.dca-av.h0 { background: #5865f2; } .dca-av.h1 { background: #3ba55d; } .dca-av.h2 { background: #c4303a; } .dca-av.h3 { background: #d4892a; }
.dca-av.h4 { background: #8f5bd6; } .dca-av.h5 { background: #2a8fbd; } .dca-av.h6 { background: #b8487f; } .dca-av.h7 { background: #6b7280; }
.dca-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dca-name { font-size: 15px; color: var(--ink); }
.dca-name.t-staff { color: #e2525b; } .dca-name.t-dev { color: #6aa8ff; } .dca-name.t-tester { color: #5fcf8a; } .dca-name.t-bot { color: #b9a3ff; }
.dca-bot { font-size: 10px; font-weight: 700; background: #5865f2; color: #fff; border-radius: 4px; padding: 1px 5px; }
.dca-time { font-size: 12px; color: var(--ink4); }
.dca-jump { font-size: 12px; color: var(--ink3); }
.dca-gtime { position: absolute; left: 16px; width: 48px; font-size: 10px; color: transparent; top: 5px; text-align: right; }
.dca-msg.cont:hover .dca-gtime { color: var(--ink4); }
.dca-body { color: var(--ink2); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; white-space: normal; }
.dca-body a, .dca-embed a, .dca-hist a { color: #4fa3ff; }
.dca-body code { background: var(--well); border-radius: 4px; padding: 1px 4px; font-size: 13px; }
.dca-code { background: var(--well); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin: 4px 0; font-size: 13px; white-space: pre-wrap; overflow-x: auto; color: var(--ink2); }
.dca-quote { display: inline-block; border-left: 3px solid var(--line3); padding-left: 8px; }
.dca-men { background: rgba(88, 101, 242, .25); color: #c9cdfb; border-radius: 4px; padding: 0 3px; }
.dca-emo { color: var(--ink3); }
.dca-edited { font-size: 11px; color: var(--ink4); margin-left: 4px; }
.dca-reply { position: relative; display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink3); margin: 0 0 2px; white-space: nowrap; min-width: 0; }
.dca-reply > span:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dca-reply b { flex: none; }
.dca-rl { position: absolute; left: -36px; top: 9px; width: 30px; height: 12px; border-left: 2px solid var(--line3); border-top: 2px solid var(--line3); border-top-left-radius: 6px; }
.dca-hist { margin: 4px 0; font-size: 13px; color: var(--ink3); }
.dca-hist summary { cursor: pointer; color: var(--ink4); font-size: 12px; }
.dca-hist > div { border-left: 2px solid var(--line2); padding: 2px 0 2px 8px; margin: 4px 0; }
.dca-img { display: block; margin: 6px 0; max-width: min(420px, 100%); }
.dca-img img { max-width: 100%; max-height: 320px; border-radius: 8px; display: block; }
.dca-file { margin: 6px 0; padding: 8px 12px; background: var(--s1); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; display: inline-block; max-width: 100%; }
.dca-embed { margin: 6px 0; padding: 8px 12px; background: var(--s1); border-left: 4px solid var(--line3); border-radius: 4px; font-size: 13px; color: var(--ink2); max-width: 520px; }
.dca-embed b { display: block; margin-bottom: 2px; color: var(--ink); }
.dca-deltag { font-size: 11px; color: var(--red-ink); margin-top: 2px; }
@media (max-width: 760px) {
  .dca { grid-template-columns: 1fr; height: auto; }
  .dca-side { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dca-scroll { max-height: 70vh; }
}
