/* =====================================================================
 * 띵타이쿤 도구 — 공용 스타일
 * 테마: html[data-theme="dark"|"light"] (head 인라인 스크립트가 첫 렌더 전에 지정)
 *   dark  = 심층암(deepslate)·밤 팔레트
 *   light = 자작나무·모래·잔디 팔레트
 * ===================================================================== */

@font-face {
  font-family: "Galmuri11";
  src: url("../fonts/Galmuri11-Bold.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- 색상 토큰 ---------- */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17171c;
  --bg-alt: #1e1e25;
  --grid: rgba(255, 255, 255, .035);
  --header-bg: rgba(15, 15, 19, .92);
  --header-line: #000;

  --panel: #2c2c34;
  --panel-hi: #4b4b57;
  --panel-lo: #111115;
  --panel-border: #050507;

  --slot: #1b1b21;
  --slot-lo: #0b0b0e;
  --slot-hi: #43434e;

  --text: #f0f0f3;
  --text-2: #c9c9d3;
  --text-3: #a9a9b7;
  --link: #8fd4ff;
  --link-hover: #c2e8ff;
  --gold: #ffd84a;

  --stone: #54545f;
  --stone-hover: #62626e;
  --btn-border: #050507;
  --btn-hover-border: #ffffff;
  --green: #3c8527;
  --green-hover: #3f8f28;
  --red: #ff8a80;

  --field: #0e0e12;
  --field-border: #6c6c7a;
  --field-text: #f0f0f3;

  --tab-off: #202027;
  --focus: #ffe066;
  --ok: #7ee08a;
  --warn: #ffcf66;
  --err: #ff9c94;
  --err-bg: rgba(255, 90, 80, .12);
  --ok-bg: rgba(90, 220, 120, .12);

  --shadow: 0 6px 0 rgba(0, 0, 0, .35);
  --code-bg: #0e0e12;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #efe7d2;
  --bg-alt: #e5dbc0;
  --grid: rgba(110, 85, 40, .07);
  --header-bg: rgba(226, 215, 181, .94);
  --header-line: #6b5a36;

  --panel: #c6c6c6;
  --panel-hi: #ffffff;
  --panel-lo: #555555;
  --panel-border: #2a2a2a;

  --slot: #6e6e6e;
  --slot-lo: #373737;
  --slot-hi: #ffffff;

  --text: #1c1c1c;
  --text-2: #2f2f2f;
  --text-3: #444444;
  --link: #174a80;
  --link-hover: #0b2f57;
  --gold: #7a5200;

  --stone: #676767;
  --stone-hover: #5c5c5c;
  --btn-border: #1c1c1c;
  --btn-hover-border: #1c1c1c;
  --green: #3c8527;
  --green-hover: #347522;
  --red: #8f1115;

  --field: #fbf8ef;
  --field-border: #373737;
  --field-text: #1c1c1c;

  --tab-off: #a9a9a9;
  --focus: #0b57d0;
  --ok: #145221;
  --warn: #7a5200;
  --err: #8f1115;
  --err-bg: rgba(200, 30, 30, .1);
  --ok-bg: rgba(40, 140, 60, .12);

  --shadow: 0 6px 0 rgba(60, 45, 20, .25);
  --code-bg: #e9e9e9;
}

/* JS 없이 밝은 테마를 쓰는 환경 (data-theme 미지정) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #efe7d2; --bg-alt: #e5dbc0; --grid: rgba(110, 85, 40, .07); --header-bg: rgba(226, 215, 181, .94); --header-line: #6b5a36;
    --panel: #c6c6c6; --panel-hi: #ffffff; --panel-lo: #555555; --panel-border: #2a2a2a;
    --slot: #6e6e6e; --slot-lo: #373737; --slot-hi: #ffffff;
    --text: #1c1c1c; --text-2: #2f2f2f; --text-3: #444444; --link: #174a80; --link-hover: #0b2f57; --gold: #7a5200;
    --stone: #676767; --stone-hover: #5c5c5c; --btn-border: #1c1c1c; --btn-hover-border: #1c1c1c; --green: #3c8527; --green-hover: #347522; --red: #8f1115;
    --field: #fbf8ef; --field-border: #373737; --field-text: #1c1c1c; --tab-off: #a9a9a9; --focus: #0b57d0;
    --ok: #145221; --warn: #7a5200; --err: #8f1115; --err-bg: rgba(200, 30, 30, .1); --ok-bg: rgba(40, 140, 60, .12);
    --shadow: 0 6px 0 rgba(60, 45, 20, .25); --code-bg: #e9e9e9;
  }
}

/* 공통 (테마 무관) */
:root {
  --pixel: "Galmuri11", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --sans: "Pretendard Variable", Pretendard, "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", system-ui, -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  --mono: Consolas, "D2Coding", "Cascadia Mono", ui-monospace, monospace;
  /* 바닐라 툴팁 색 */
  --tip-bg: #100010;
  --tip-border-top: #5a1fe0;
  --tip-border-bottom: #2a0b72;
  --tip-text: #ffffff;
  --tip-lore: #b4b4c8;
  --tip-title: #ffff66;
  --tip-aqua: #66ffff;
  /* 잔디/흙 */
  --g1: #6aaa3a; --g2: #5b9a2f; --g3: #7dbd48;
  --d1: #866043; --d2: #795539; --d3: #9b7150; --d4: #5f4129;
  --header-h: 64px;
}

/* ---------- 기본 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  color: var(--text);
  background-color: var(--bg);
  /* 은은한 픽셀 격자 */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 16px 16px;
  font-family: var(--sans);
  font-size: 16px; line-height: 1.7;
  word-break: keep-all; overflow-wrap: break-word;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
.pixelated { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
code, kbd, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--code-bg); padding: 1px 6px; border-radius: 3px; }
h1, h2, .px { font-family: var(--pixel); font-weight: 700; letter-spacing: 0; }
h1 { font-size: 48px; line-height: 1.25; margin: 0 0 16px; }
h2 { font-size: 30px; line-height: 1.35; margin: 0 0 8px; }
h3 { font-size: 18px; line-height: 1.45; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-3); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--panel); color: var(--text); padding: 8px 12px; border: 2px solid var(--panel-border); }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

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

/* ---------- 버튼 (돌 버튼) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--pixel); font-size: 16px; line-height: 1.2; font-weight: 700;
  padding: 11px 18px; min-height: 44px;
  color: #fff; background: var(--stone);
  border: 2px solid var(--btn-border); border-radius: 2px;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .28), inset -2px -3px 0 rgba(0, 0, 0, .38);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
  text-decoration: none; cursor: pointer; user-select: none;
  transition: background-color .08s ease;
}
.btn:hover { color: #fff; background-color: var(--stone-hover); border-color: var(--btn-hover-border); }
.btn:active, .btn[aria-pressed="true"] {
  box-shadow: inset 2px 3px 0 rgba(0, 0, 0, .4), inset -2px -2px 0 rgba(255, 255, 255, .14);
  transform: translateY(1px);
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--green); }
.btn-primary:hover { background-color: var(--green-hover); }
.btn-lg { font-size: 20px; padding: 16px 26px; min-height: 58px; }
.btn-sm { font-size: 14px; padding: 6px 12px; min-height: 36px; }
.btn svg { width: 20px; height: 20px; flex: none; shape-rendering: crispEdges; }
.btn-lg svg { width: 24px; height: 24px; }
.icon-btn { width: 44px; padding: 0; }

/* ---------- 패널 (인벤토리 UI) ---------- */
.panel {
  background: var(--panel); color: var(--text);
  border: 2px solid var(--panel-border); border-radius: 4px;
  box-shadow: inset 2px 2px 0 var(--panel-hi), inset -2px -2px 0 var(--panel-lo), var(--shadow);
  padding: 20px;
}
.panel p, .panel li { color: var(--text-2); }
.panel h3 { color: var(--text); }

/* ---------- 아이템 슬롯 ---------- */
.slot {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  background: var(--slot);
  box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi);
  font-size: 24px; line-height: 1;
}
.slot img { width: 32px; height: 32px; }
.slot.lg { width: 76px; height: 76px; }
.slot.lg img { width: 48px; height: 48px; }

/* ---------- 툴팁 상자 (바닐라 툴팁) ---------- */
.tip {
  background: var(--tip-bg); color: var(--tip-text);
  border: 2px solid transparent;
  border-image: linear-gradient(var(--tip-border-top), var(--tip-border-bottom)) 1;
  outline: 2px solid var(--tip-bg);
  padding: 10px 14px;
  font-size: 14.5px;
}
.tip .tip-title { color: var(--tip-title); font-family: var(--pixel); font-size: 14px; margin: 0 0 4px; }
.tip p, .tip li { color: var(--tip-lore); margin: 0; }
.tip b, .tip strong { color: #fff; }
.tip a { color: var(--tip-aqua); }
.tip code { background: rgba(255, 255, 255, .08); color: #fff; }
.tip :focus-visible { outline-color: #ffe066; }
/* 마우스를 올리면 뜨는 힌트 */
[data-hint] { position: relative; }
[data-hint]:hover::after, [data-hint]:focus-visible::after {
  content: attr(data-hint);
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  width: max-content; max-width: 240px; z-index: 30; pointer-events: none;
  background: var(--tip-bg); color: #fff; font: 13px/1.5 var(--sans); text-shadow: none; white-space: normal;
  padding: 6px 10px; border: 2px solid var(--tip-border-top); outline: 2px solid var(--tip-bg);
}

/* ---------- 잔디 블록 띠 (구분선) ---------- */
.grass-edge {
  height: 24px; width: 100%;
  background:
    linear-gradient(90deg, var(--g2) 0 8px, transparent 8px 16px, var(--g1) 16px 20px, transparent 20px 32px, var(--g2) 32px 40px, transparent 40px 44px, var(--g1) 44px 52px, transparent 52px 64px) 0 8px / 64px 4px repeat-x,
    linear-gradient(90deg, transparent 0 12px, var(--d3) 12px 16px, transparent 16px 28px, var(--d4) 28px 32px, transparent 32px 40px) 0 16px / 40px 4px repeat-x,
    repeating-linear-gradient(90deg, var(--g1) 0 4px, var(--g2) 4px 12px, var(--g3) 12px 16px, var(--g1) 16px 24px, var(--g2) 24px 28px) 0 0 / 100% 8px no-repeat,
    repeating-conic-gradient(var(--d1) 0 25%, var(--d2) 0 50%) 0 8px / 8px 8px;
  border-top: 2px solid rgba(0, 0, 0, .25);
}
.grass-edge.flip { transform: scaleY(-1); }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  min-height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--header-line);
}
.site-header .bar { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--text); }
.brand .slot { width: 40px; height: 40px; }
.brand .slot img { width: 24px; height: 24px; }
.brand-name { font-family: var(--pixel); font-size: 18px; font-weight: 700; white-space: nowrap; }
.nav { display: flex; gap: 2px; margin-left: 12px; }
.nav a {
  color: var(--text-2); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 8px 12px; border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--text); background: rgba(127, 127, 127, .14); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--g1); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.theme-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; }
.noscript-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; min-height: var(--header-h); }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav.open { display: block; border-top: 2px solid var(--header-line); padding: 8px 0 12px; }
  .mobile-nav a { display: block; padding: 10px 4px; font-weight: 700; color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(127, 127, 127, .25); }
  .mobile-nav a[aria-current="page"] { color: var(--g3); }
  :root[data-theme="light"] .mobile-nav a[aria-current="page"] { color: #2c6a1b; }
}
@media (max-width: 460px) {
  :root { --header-h: 58px; }
  .brand-name { font-size: 15px; }
  .brand .slot { width: 36px; height: 36px; }
  .head-dl .lbl-long { display: none; }
  .head-actions { gap: 6px; }
  .head-actions .btn { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 370px) {
  .brand-name { display: none; }
}

/* ---------- 푸터 ---------- */
.site-footer { margin-top: 48px; flex: none; }
.site-footer .dirt {
  background:
    linear-gradient(90deg, transparent 0 20px, rgba(0,0,0,.12) 20px 24px, transparent 24px 52px, rgba(255,255,255,.05) 52px 56px, transparent 56px 80px) 0 0 / 80px 8px,
    #3d2b1d;
  color: #f3e6d3; padding: 24px 0 32px; font-size: 14.5px;
}
.site-footer .dirt a { color: #ffe08a; }
.site-footer .dirt a:hover { color: #fff3c4; }
.site-footer .foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.site-footer :focus-visible { outline-color: #ffe066; }

/* ---------- 섹션 ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.sec-head { margin-bottom: 28px; max-width: 760px; }
.sec-head p { color: var(--text-2); margin: 0; }
.eyebrow { font-family: var(--pixel); font-size: 14px; color: var(--gold); margin: 0 0 6px; }
.page-head { padding-top: 48px; padding-bottom: 8px; }
.page-head p.lead { color: var(--text-2); font-size: 18px; max-width: 760px; }

/* ---------- 홈: 히어로 ---------- */
.hero { padding: 56px 0 48px; }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px; align-items: center; }
.hero-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.hero-top .badge { font-family: var(--pixel); font-size: 14px; color: var(--text-2); }
.hero h1 .accent { color: var(--gold); }
.hero .lead { font-size: 18px; color: var(--text-2); max-width: 34em; margin-bottom: 26px; }
.meta-line { margin: 14px 0 0; color: var(--text-3); font-size: 14.5px; }
.meta-line b { color: var(--text); }
.sub-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 12px 0 0; padding: 0; font-size: 15px; }
.hash { margin-top: 22px; max-width: 540px; }
.hash-row { display: flex; align-items: center; gap: 12px; }
.hash-val { flex: 1; min-width: 0; word-break: break-all; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: #e8e8f0; background: none; padding: 0; }
.shot-frame { padding: 10px; }
.shot-frame a { display: block; cursor: zoom-in; }
.shot-frame img { width: 100%; aspect-ratio: 1100 / 760; object-fit: cover; box-shadow: inset 0 0 0 2px #000; }
@media (max-width: 920px) {
  .hero { padding-top: 32px; }
  .hero .grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ---------- 홈: 도구 카드 ---------- */
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.tool { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.tool-head { display: flex; align-items: center; gap: 14px; }
.tool-head h3 { font-family: var(--pixel); font-size: 20px; margin: 0; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.tag { font-size: 12.5px; font-weight: 700; color: var(--text-2); background: var(--slot); padding: 1px 8px; box-shadow: inset 1px 1px 0 var(--slot-lo), inset -1px -1px 0 var(--slot-hi); }
:root[data-theme="light"] .tag { color: #fff; }
.tool p { margin: 0; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.tool.empty { background: transparent; box-shadow: none; border: 2px dashed var(--text-3); align-items: center; justify-content: center; text-align: center; min-height: 220px; color: var(--text-3); }
.tool.empty .slot { opacity: .6; }
.tool.empty p { color: var(--text-3); }

/* ---------- 홈: 기능 ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 16px; }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.feature p { margin: 0; font-size: 15px; }
.feature .opt { display: inline-block; font-size: 12px; font-weight: 700; color: var(--text-3); margin-left: 4px; }

/* ---------- 스크린샷 갤러리 ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gallery figure { margin: 0; }
.gallery a { display: block; padding: 8px; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 1100 / 760; object-fit: cover; box-shadow: inset 0 0 0 2px #000; }
.gallery figcaption { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.gallery figcaption b { color: var(--text); }
@media (max-width: 640px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 라이트박스 ---------- */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1180px, 96vw); max-height: 94vh; overflow: visible; color: #fff; }
dialog.lightbox::backdrop { background: rgba(8, 6, 12, .88); }
.lb-inner { position: relative; }
.lb-inner img { max-height: calc(94vh - 64px); width: auto; margin: 0 auto; border: 2px solid #000; outline: 2px solid #555; }
.lb-cap { text-align: center; margin: 12px 0 0; font-size: 15px; color: #eee; }
.lb-inner .btn { position: absolute; }
.lb-close { top: -16px; right: -16px; }
.lb-prev { left: -22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: -22px; top: 50%; transform: translateY(-50%); }
.lb-prev:active, .lb-next:active { transform: translateY(-50%); }
@media (max-width: 720px) { .lb-prev { left: 4px; } .lb-next { right: 4px; } .lb-close { right: 4px; top: 4px; } }

/* ---------- 설치 단계 ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { counter-increment: step; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; }
.step::before {
  content: counter(step);
  width: 52px; height: 52px; display: grid; place-items: center;
  font-family: var(--pixel); font-size: 22px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f;
  background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi);
}
.step h3 { margin-top: 0; }
.step ul { margin: 0 0 8px; padding-left: 20px; }
.step p:last-child, .step ul:last-child { margin-bottom: 0; }
.step-body { min-width: 0; }
.step-split { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: start; }
@media (max-width: 860px) { .step-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .step { grid-template-columns: minmax(0, 1fr); gap: 8px; } .step::before { width: 40px; height: 40px; font-size: 18px; } .step h3 { margin-top: 0; } }
.ui { font-weight: 700; font-size: .92em; padding: 1px 7px; white-space: nowrap; color: var(--text); background: var(--bg-alt); border: 1px solid var(--text-3); border-radius: 2px; }
kbd { font-weight: 700; padding: 1px 6px; border: 1px solid var(--text-3); border-bottom-width: 3px; border-radius: 3px; background: var(--field); color: var(--field-text); white-space: nowrap; }
.browser-tbl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; margin-top: 8px; }
.browser-tbl > div { padding: 10px 14px; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); color: #fff; font-size: 15px; }
.browser-tbl b { display: block; font-family: var(--pixel); font-size: 14px; margin-bottom: 2px; }
.browser-tbl .ui { background: rgba(0, 0, 0, .35); color: #fff; border-color: rgba(255, 255, 255, .5); }
.cmd { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: none; padding: 0; color: #fff; }

/* SmartScreen 그림 */
.ss { background: #0a5aa8; color: #fff; font-size: 13px; line-height: 1.5; border: 2px solid #000; user-select: none; }
.ss-top { padding: 14px 16px 10px; }
.ss .ss-title { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.ss-bar { display: block; height: 7px; background: rgba(255, 255, 255, .3); margin: 6px 0; }
.ss .ss-more { display: inline-block; margin-top: 8px; text-decoration: underline; font-weight: 700; color: #fff; outline: 2px dashed #ffd84a; outline-offset: 3px; }
.ss-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; background: rgba(0, 0, 0, .22); }
.ss-b { padding: 3px 14px; border: 1px solid rgba(255, 255, 255, .8); font-weight: 700; }
.ss-b.hl { outline: 2px dashed #ffd84a; outline-offset: 3px; }
.ss-note { text-align: center; font-size: 13px; color: var(--text-3); margin: 8px 0 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; font-size: 17px; display: flex; gap: 12px; align-items: center; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-family: var(--pixel); font-size: 22px; line-height: 1; color: var(--text-3); }
.faq details[open] summary::after { content: "-"; }
.faq .ans { padding: 0 20px 16px; }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 56px 0 24px; }
.cta h2 { margin-bottom: 18px; }

/* ---------- 사용법 ---------- */
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 24px; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); padding: 16px; }
.toc h2 { font-size: 16px; margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 15px; border-left: 4px solid transparent; }
.toc a:hover { background: rgba(127, 127, 127, .15); }
.toc a.active { border-left-color: var(--g1); background: rgba(106, 170, 58, .16); }
.guide-sec { margin-bottom: 28px; }
.guide-sec > .panel { padding: 24px 26px; }
.guide-sec h2 { display: flex; align-items: center; gap: 12px; font-size: 26px; margin-bottom: 14px; }
.guide-sec h2 .slot { width: 44px; height: 44px; font-size: 22px; }
.guide-sec h3 { margin-top: 22px; }
.guide-sec ul, .guide-sec ol.plain { padding-left: 22px; margin: 0 0 12px; }
.guide-sec li { margin-bottom: 4px; }
.guide-fig { margin: 16px 0; }
.guide-fig a { display: block; cursor: zoom-in; }
.guide-fig img { width: 100%; aspect-ratio: 1100 / 760; object-fit: cover; border: 2px solid #000; }
.guide-fig figcaption { font-size: 14px; color: var(--text-3); margin-top: 6px; }
.legend { display: grid; gap: 6px; margin: 8px 0 12px; padding: 0; list-style: none; }
.legend li { display: flex; gap: 10px; align-items: center; }
.sw { width: 18px; height: 18px; flex: none; border: 2px solid #000; }
.sw.max { background: #ffe066; }
.sw.high { background: #e5484d; }
.sw.oor { background: repeating-linear-gradient(45deg, #ff9448 0 3px, transparent 3px 6px); }
.tbl-wrap { overflow-x: auto; margin: 8px 0 12px; }
table.data { border-collapse: collapse; width: 100%; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(127, 127, 127, .35); vertical-align: top; }
table.data th { font-family: var(--pixel); font-size: 14px; color: var(--text); }
table.data td { color: var(--text-2); }
.status-list { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
.status-list li { display: flex; gap: 10px; align-items: baseline; }
.status-list .st { font-weight: 700; color: var(--text); min-width: 9.5em; }
@media (max-width: 980px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { border-left: 0; border-bottom: 3px solid transparent; padding: 4px 10px; background: var(--slot); color: #fff; }
  .toc a.active { border-bottom-color: var(--g1); }
}
@media (max-width: 560px) { .guide-sec > .panel { padding: 18px 16px; } .guide-sec h2 { font-size: 22px; } }

/* ---------- 업데이트 내역 ---------- */
.rel-status { margin: 0 0 16px; }
.releases { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.release-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.release-head h2 { font-size: 26px; margin: 0; }
.release-head time { color: var(--text-3); font-size: 15px; }
.release-head .gh { margin-left: auto; font-size: 15px; }
.badge-latest { font-family: var(--pixel); font-size: 13px; color: #fff; background: var(--green); padding: 3px 8px; border: 2px solid #000; text-shadow: 1px 1px 0 rgba(0,0,0,.4); }
.badge-pre { font-family: var(--pixel); font-size: 13px; color: #fff; background: var(--stone); padding: 3px 8px; border: 2px solid #000; }
.md h3, .md h4, .md h5 { margin: 16px 0 6px; font-size: 17px; }
.md ul, .md ol { padding-left: 22px; margin: 0 0 12px; }
.md p:last-child, .md ul:last-child { margin-bottom: 0; }
.md { overflow-wrap: anywhere; }
.md code { word-break: break-all; }

/* ---------- 제보하기 ---------- */
.fb-wrap { max-width: 820px; }
.fb-tabs { display: flex; gap: 4px; padding-left: 12px; position: relative; z-index: 1; margin-bottom: -2px; }
.fb-tab {
  font-family: var(--pixel); font-size: 16px; font-weight: 700; cursor: pointer;
  padding: 12px 20px 10px; min-height: 48px;
  background: var(--tab-off); color: var(--text-2);
  border: 2px solid var(--panel-border); border-bottom: 0; border-radius: 4px 4px 0 0;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .12);
}
.fb-tab[aria-selected="true"] { background: var(--panel); color: var(--text); box-shadow: inset 2px 2px 0 var(--panel-hi); padding-bottom: 12px; }
.fb-tab:hover { color: var(--text); }
.fb-form { padding: 24px; }
.field-row { margin-bottom: 18px; }
.field-row > label, .field-label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.req { color: var(--err); margin-left: 2px; }
.opt { font-weight: 400; color: var(--text-3); font-size: 14px; }
.field {
  width: 100%; font: inherit; font-size: 16px; color: var(--field-text);
  background: var(--field); border: 2px solid var(--field-border); border-radius: 0;
  padding: 10px 12px;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .25);
}
.field::placeholder { color: var(--text-3); opacity: 1; }
.field:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--field-border); }
textarea.field { min-height: 120px; resize: vertical; line-height: 1.6; }
select.field { padding-right: 32px; }
.field.invalid { border-color: var(--err); }
.field-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; font-size: 13.5px; color: var(--text-3); }
.field-foot .err { color: var(--err); font-weight: 700; }
.counter.over { color: var(--err); font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .two-col { grid-template-columns: 1fr; } .fb-form { padding: 18px 16px; } .fb-tab { padding: 10px 14px 8px; font-size: 15px; } }
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.drop {
  display: grid; place-items: center; text-align: center; gap: 6px;
  padding: 22px 16px; cursor: pointer;
  background: var(--slot); color: #fff;
  box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi);
  outline: 2px dashed transparent; outline-offset: -8px;
}
.drop:hover, .drop.over { outline-color: #fff; }
.drop:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.drop p { margin: 0; color: #fff; }
.drop .small { font-size: 13.5px; color: #e6e6ee; }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs li { position: relative; width: 104px; }
.thumbs .slot { width: 104px; height: 104px; overflow: hidden; }
.thumbs img { width: 96px; height: 96px; object-fit: cover; }
.thumbs .name { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.thumbs .rm { position: absolute; top: -8px; right: -8px; min-height: 30px; width: 30px; padding: 0; font-size: 14px; }
.notice { padding: 12px 14px; margin: 0 0 16px; font-weight: 700; border: 2px solid currentColor; }
.notice.err { color: var(--err); background: var(--err-bg); }
.notice.ok { color: var(--ok); background: var(--ok-bg); }
.notice p { margin: 0 0 8px; }
.notice p:last-child { margin: 0; }
.notice .btn { margin-top: 4px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.form-actions .muted { font-size: 14px; }
.success { text-align: center; padding: 36px 24px; }
.success .slot { margin: 0 auto 16px; }
.success h2 { font-size: 30px; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding-top: 72px; padding-bottom: 24px; }
.nf .code { font-family: var(--pixel); font-size: 96px; line-height: 1; color: var(--gold); text-shadow: 6px 6px 0 rgba(0, 0, 0, .35); margin: 0 0 16px; }
.nf .panel { max-width: 560px; margin: 0 auto; }
.nf .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
  .section { padding: 48px 0; }
  .btn-lg { width: 100%; font-size: 18px; }
  .hash-row { flex-wrap: wrap; }
  .panel { padding: 16px; }
  .nf .code { font-size: 72px; }
}
