/* =========================================================
   WARDOGTAG — 전술 HUD 톤 (차콜/올리브/샌드 + 신호탄 오렌지)
   ========================================================= */
:root {
  --bg: oklch(0.165 0.008 120);
  --surface: oklch(0.2 0.01 120);
  --surface-2: oklch(0.235 0.012 118);
  --line: oklch(0.3 0.012 118);
  --line-soft: oklch(0.25 0.01 118);
  --text: oklch(0.93 0.012 95);
  --muted: oklch(0.7 0.015 100);
  --faint: oklch(0.56 0.015 105);
  --accent: oklch(0.76 0.15 62);
  --accent-soft: oklch(0.76 0.15 62 / 0.14);
  --accent-ink: oklch(0.2 0.03 60);
  --lone: oklch(0.72 0.1 245);
  --valk: oklch(0.72 0.1 28);
  --mant: oklch(0.72 0.1 150);
  --ok: oklch(0.74 0.12 150);
  --danger: oklch(0.7 0.14 28);
  --radius: 8px;
  --font: 'Pretendard Variable', Pretendard, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: oklch(0.955 0.01 95);
  --surface: oklch(0.985 0.005 95);
  --surface-2: oklch(0.93 0.012 95);
  --line: oklch(0.84 0.014 95);
  --line-soft: oklch(0.9 0.01 95);
  --text: oklch(0.22 0.012 120);
  --muted: oklch(0.45 0.015 110);
  --faint: oklch(0.56 0.015 105);
  --accent: oklch(0.6 0.15 55);
  --accent-soft: oklch(0.6 0.15 55 / 0.12);
  --accent-ink: oklch(0.99 0.005 95);
  --lone: oklch(0.52 0.11 245);
  --valk: oklch(0.52 0.11 28);
  --mant: oklch(0.52 0.11 150);
  --ok: oklch(0.52 0.11 150);
  --danger: oklch(0.55 0.15 28);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 버튼 / 공통 요소 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.06); border-color: var(--accent); }
.btn-danger { color: var(--danger); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 36px; padding: 0; }

.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge-open { background: oklch(0.74 0.12 150 / 0.15); color: var(--ok); }
.badge-closed { background: var(--surface-2); color: var(--faint); }
.badge-patch { background: var(--accent-soft); color: var(--accent); }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; padding: 2px 6px; border-radius: 3px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag-soon { border-style: dashed; color: var(--faint); }

.role {
  width: 22px; height: 22px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid currentColor; border-radius: 4px;
  font: 700 11px var(--mono); color: var(--muted);
}
.role.on { color: var(--accent); }
.roles { display: flex; gap: 4px; }

.fdot { width: 8px; height: 8px; border-radius: 2px; flex: none; display: inline-block; background: var(--faint); }
.f-lone { background: var(--lone); }
.f-valk { background: var(--valk); }
.f-mant { background: var(--mant); }
.t-lone { color: var(--lone); }
.t-valk { color: var(--valk); }
.t-mant { color: var(--mant); }

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; box-shadow: 0 0 0 0 oklch(0.74 0.12 150 / .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px oklch(0.74 0.12 150 / 0); } 100% { box-shadow: 0 0 0 0 oklch(0.74 0.12 150 / 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.alert { border: 1px solid oklch(0.7 0.14 28 / .5); background: oklch(0.7 0.14 28 / .1); color: var(--danger); border-radius: 6px; padding: 10px 14px; font-size: 13px; }
.alert p + p { margin-top: 2px; }

/* ---------- 헤더 ---------- */
.gnb { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.gnb-inner { display: flex; align-items: center; gap: 24px; height: 58px; }
.logo { display: flex; align-items: center; gap: 9px; font: 700 15px var(--mono); letter-spacing: .08em; white-space: nowrap; }
.logo:hover { color: var(--text); }
.logo-mark { width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); }
.logo b { color: var(--accent); }
.menu { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { padding: 8px 12px; border-radius: 6px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.menu a:hover { color: var(--text); background: var(--surface); }
.menu a.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.gnb-right { display: flex; align-items: center; gap: 8px; }
.mini-search { display: flex; align-items: center; height: 36px; width: 200px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 0 6px 0 12px; }
.mini-search:focus-within { border-color: var(--accent); }
.mini-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; }
.mini-search input::placeholder { color: var(--faint); }
.kbd { font: 11px var(--mono); color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }

.hud { border-bottom: 1px solid var(--line-soft); font: 11px var(--mono); color: var(--faint); }
.hud .wrap { display: flex; align-items: center; gap: 24px; height: 30px; overflow: hidden; white-space: nowrap; }
.hud-live { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }

/* ---------- 레이아웃 ---------- */
.main { flex: 1; padding: 24px 0 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.page-desc { color: var(--muted); margin-top: 4px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* ---------- 패널 ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.panel-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.panel-hd h2 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.panel-hd .code { font: 11px var(--mono); color: var(--faint); letter-spacing: .08em; }
.panel-hd .more { font-size: 12px; color: var(--muted); }
.panel-hd .more:hover { color: var(--accent); }
.panel-bd { padding: 16px; }
.panel-note { padding: 10px 16px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--faint); }

/* ---------- 준비중 ---------- */
.soon { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 44px 20px; }
.soon-mark { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.soon-mark::before { content: ''; position: absolute; inset: 8px; border: 1px dashed var(--accent); transform: rotate(45deg); }
.soon-mark::after { content: ''; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
.soon h3 { font-size: 16px; font-weight: 700; }
.soon p { color: var(--muted); font-size: 13px; max-width: 42ch; text-wrap: pretty; }
.soon-sm { padding: 28px 16px; }
.soon-sm .soon-mark { width: 32px; height: 32px; }
.soon-sm .soon-mark::before { inset: 6px; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 36px 20px; }
.empty-mark { width: 40px; height: 40px; border: 1px dashed var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; font: 700 15px var(--mono); color: var(--accent); }
.empty h3 { font-size: 15px; }
.empty p { color: var(--muted); font-size: 13px; }

/* 준비중 테이블 뒤에 깔리는 흐린 스켈레톤 */
.ghost { position: relative; }
.ghost-rows { opacity: .35; pointer-events: none; user-select: none; }
.ghost-bar { display: block; height: 10px; border-radius: 3px; background: var(--surface-2); }
.ghost-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(to bottom, transparent, var(--surface) 40%); }

/* ---------- 탭 ---------- */
.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--muted); font-weight: 600; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.tab.on .role { color: var(--accent); }

/* ---------- 표 ---------- */
.table { width: 100%; }
.tr { display: grid; align-items: center; gap: 12px; padding: 0 16px; min-height: 46px; border-bottom: 1px solid var(--line-soft); }
.tr:last-child { border-bottom: 0; }
.th { min-height: 36px; font: 11px var(--mono); letter-spacing: .06em; color: var(--faint); background: var(--surface-2); border-bottom: 1px solid var(--line); }
a.tr:hover { background: var(--surface-2); color: var(--text); }
.right { text-align: right; justify-content: flex-end; }
.center { text-align: center; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.table-scroll { overflow-x: auto; }

.cols-rank { grid-template-columns: 44px minmax(140px, 1fr) 110px 70px 110px; }
.cols-db { grid-template-columns: minmax(140px, 1.4fr) repeat(4, minmax(80px, 1fr)); }
.cols-party { grid-template-columns: 70px 112px minmax(0, 1fr) 92px 72px 64px; }
.cols-server { grid-template-columns: minmax(140px, 1.3fr) 90px 110px 120px 80px; }

/* ---------- 홈 ---------- */
.hero { position: relative; padding: 52px 0 36px; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000, transparent 70%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.eyebrow { font: 12px var(--mono); letter-spacing: .2em; color: var(--accent); }
.hero h1 { font-size: 36px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; text-wrap: balance; }
.big-search { position: relative; width: 100%; max-width: 720px; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 7px 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.big-search:focus-within { border-color: var(--accent); }
.big-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; font-weight: 500; }
.big-search input::placeholder { color: var(--faint); }
.big-search .btn { height: 44px; padding: 0 20px; }
.corner { position: absolute; width: 8px; height: 8px; border: 0 solid var(--accent); }
.c-tl { top: -5px; left: -5px; border-top-width: 1px; border-left-width: 1px; }
.c-tr { top: -5px; right: -5px; border-top-width: 1px; border-right-width: 1px; }
.c-bl { bottom: -5px; left: -5px; border-bottom-width: 1px; border-left-width: 1px; }
.c-br { bottom: -5px; right: -5px; border-bottom-width: 1px; border-right-width: 1px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.quick a { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.quick a:hover { color: var(--text); border-color: var(--muted); }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); }
.stat { background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.stat-value { font: 700 22px var(--mono); font-variant-numeric: tabular-nums; }
.stat-value.lg { font-size: 30px; }
.stat-sub { font-size: 11px; color: var(--faint); }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.list-item { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: var(--surface-2); color: var(--text); }
.list-top { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--faint); }
.list-title { font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.list-sub { font-size: 12px; color: var(--muted); }
.num-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.num { font: 12px var(--mono); color: var(--faint); padding-top: 1px; }

/* ---------- 파티 ---------- */
.party-title-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 0; }
.party-title-cell strong { font-weight: 600; }
.party-title-cell small { font-size: 12px; color: var(--muted); }
.slots-cell { font: 700 14px var(--mono); }
.is-closed { opacity: .55; }
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.filterbar select { height: 32px; width: auto; }
.filterbar .check { margin-left: 4px; }
.role-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-weight: 600; font-size: 13px; }
.pill:hover { color: var(--text); border-color: var(--muted); }
.pill.on { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.pill.on .role { color: var(--accent); }
.pill.plain { padding: 0 12px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 14px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 13px; }

.detail-head { display: flex; flex-direction: column; gap: 10px; }
.detail-head h1 { font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.facts div { background: var(--surface); padding: 12px 16px; }
.facts dt { font-size: 11px; color: var(--faint); }
.facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.contact { color: var(--accent); user-select: all; }
.party-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.manage summary { cursor: pointer; padding: 14px 16px; color: var(--muted); list-style: none; }
.manage summary::-webkit-details-marker { display: none; }
.manage[open] summary { border-bottom: 1px solid var(--line-soft); }
.manage-form { display: flex; gap: 8px; flex-wrap: wrap; }
.manage-form input { flex: 1 1 200px; width: auto; }

/* ---------- 폼 ---------- */
input, select, textarea { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-size: 14px; }
textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[type='checkbox'] { width: 16px; height: 16px; accent-color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; }
.field small { color: var(--faint); font-weight: 400; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; align-items: end; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; cursor: pointer; white-space: nowrap; }
.role-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.role-pick label { position: relative; }
.role-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role-pick input:checked + .pill { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.role-pick input:checked + .pill .role { color: var(--accent); }
.role-pick input:focus-visible + .pill { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 서버 현황 ---------- */
.segmented { display: flex; background: var(--surface-2); border-radius: 6px; padding: 3px; }
.segmented a { padding: 3px 10px; border-radius: 4px; font-size: 12px; color: var(--muted); }
.segmented a.on { background: var(--surface); color: var(--text); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line-soft); stroke-width: 1; }
.chart .tick { fill: var(--faint); font-size: 11px; font-family: var(--mono); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.chart .area { fill: var(--accent-soft); }

/* ---------- 가이드 ---------- */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.doc-nav { position: sticky; top: 78px; }
.doc-nav a { display: block; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 13px; }
.doc-nav a:last-child { border-bottom: 0; }
.doc-nav a.on { color: var(--text); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.doc-body { padding: 28px 32px 36px; }
.doc-body h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.prose { margin-top: 22px; max-width: 72ch; line-height: 1.75; font-size: 15px; }
.prose h2 { font-size: 18px; margin: 32px 0 10px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p { margin: 10px 0; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 10px 0; }
.prose li { margin: 4px 0; }
.prose strong { color: var(--text); }
.prose blockquote { margin: 20px 0; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
.prose th { font: 11px var(--mono); letter-spacing: .06em; color: var(--faint); background: var(--surface-2); }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.guide-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.guide-card:hover { border-color: var(--accent); color: var(--text); }
.guide-card strong { font-size: 15px; }
.guide-card span { color: var(--muted); font-size: 13px; }

/* ---------- 푸터 ---------- */
.footer { border-top: 1px solid var(--line); padding: 24px 0 36px; font-size: 12px; color: var(--faint); }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.error-page { max-width: 480px; margin: 40px auto; }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .mini-search { display: none; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-nav { position: static; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .gnb-inner { flex-wrap: wrap; height: auto; padding: 10px 0 0; gap: 8px 12px; }
  .gnb-right { margin-left: auto; }
  .login-label { display: none; }
  .menu { order: 3; flex-basis: 100%; }
  .menu a { padding: 10px; }
  .hud .hide-m { display: none; }
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: 26px; }
  .big-search { height: 52px; }
  .big-search .btn { display: none; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-body { padding: 20px 16px 28px; }
  /* 표: 핵심 열만 */
  .cols-party { grid-template-columns: minmax(0, 1fr) 56px; }
  .cols-party > :nth-child(1), .cols-party > :nth-child(2), .cols-party > :nth-child(4), .cols-party > :nth-child(6) { display: none; }
  .cols-rank { grid-template-columns: 36px minmax(0, 1fr) 90px; }
  .cols-rank > :nth-child(3), .cols-rank > :nth-child(4) { display: none; }
  .cols-db, .cols-server { min-width: 560px; }
}
.tag-inherit { border-color: currentColor; color: inherit; }
.time-cell { font-size: 12px; }

/* ---------- 좁은 페이지 / 기타 ---------- */
.narrow { max-width: 800px; display: flex; flex-direction: column; gap: 16px; }
.back { font-size: 13px; }
.search-results, #search-empty { margin-top: 20px; }
.error-actions { justify-content: center; padding: 0 0 32px; }
.detail .panel-bd + .panel-bd { border-top: 1px solid var(--line-soft); }
.list-title, .list-sub { display: block; }

/* ---------- 커뮤니티 ---------- */
.cols-board { grid-template-columns: 56px 72px minmax(0, 1fr) 110px 76px 56px 48px; }
.board-cat { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; justify-self: start; background: var(--surface-2); color: var(--muted); }
.cat-guide { color: var(--accent); background: var(--accent-soft); }
.cat-qna { color: var(--lone); background: oklch(0.72 0.1 245 / .12); }
.cat-media { color: var(--mant); background: oklch(0.72 0.1 150 / .12); }
.board-title-cell { display: flex; flex-direction: column; min-width: 0; padding: 9px 0; }
.board-title { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; }
.board-sub { display: none; font-size: 12px; color: var(--faint); }
.mark { flex: none; font: 700 9px var(--mono); letter-spacing: .06em; color: var(--faint); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; line-height: 15px; }
.cmt-count { flex: none; color: var(--accent); font-size: 12px; font-weight: 700; }
.likes-on { color: var(--accent); font-weight: 700; }
.board-search { width: 240px; height: 32px; }
.filter-note { font-size: 12px; margin-left: 4px; }

.post-meta { font-size: 13px; gap: 6px 14px; }
.post-body { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--line-soft); }
.post-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; font-size: 15px; min-height: 80px; }
.post-text a, .comment-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-images { display: flex; flex-direction: column; gap: 10px; }
.post-images a { display: block; }
.post-images img { display: block; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line-soft); }
.like-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 8px; }
.like-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; cursor: pointer; }
.like-btn:hover { background: var(--accent); color: var(--accent-ink); }
.like-mark { width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); }

.comments { list-style: none; margin: 0; padding: 0; }
.comment { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; }
.comment-body { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.comment-del { margin-left: auto; }
.comment-del summary { cursor: pointer; font-size: 12px; list-style: none; }
.comment-del summary::-webkit-details-marker { display: none; }
.comment-del[open] { flex-basis: 100%; }
.comment-del[open] summary { display: none; }
.comment-del .manage-form { margin-top: 6px; }
.comments-empty { padding: 20px 16px; font-size: 13px; }
.comment-form { border-top: 1px solid var(--line); }
.file-input { height: auto; padding: 8px; }
.manage-form form { display: contents; }

@media (max-width: 760px) {
  .cols-board { grid-template-columns: minmax(0, 1fr) 40px; }
  .cols-board > :not(.board-title-cell):not(:last-child) { display: none; }
  .board-sub { display: block; }
  .board-search { flex: 1; width: auto; }
}

/* ---------- 스팀 로그인 / 회원 ---------- */
.btn-steam { gap: 8px; }
.steam-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lone); vertical-align: middle; }
.login-short { display: none; }
.avatar { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; flex: none; background: var(--surface-2); }
.avatar-xl { width: 72px; height: 72px; border-radius: 8px; }
.avatar-empty { display: inline-block; border: 1px dashed var(--line); }
.user-menu { position: relative; }
.user-menu summary { list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-btn { gap: 8px; padding: 0 10px 0 6px; max-width: 180px; }
.user-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px; display: flex; flex-direction: column; padding: 6px; z-index: 30; box-shadow: 0 12px 32px oklch(0 0 0 / .35); }
.user-pop a, .user-pop button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 4px; border: 0; background: none; cursor: pointer; font-size: 13px; }
.user-pop a:hover, .user-pop button:hover { background: var(--surface-2); color: var(--text); }
.user-pop form { margin: 0; }

.author { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; }
.author-lg .avatar { width: 28px; height: 28px; }
.author-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.author-name:hover { color: var(--accent); }
.steam-mark, .owned-mark { flex: none; font: 700 9px var(--mono); letter-spacing: .06em; border-radius: 3px; padding: 0 4px; line-height: 15px; }
.steam-mark { color: var(--lone); border: 1px solid oklch(0.72 0.1 245 / .45); }
.owned-mark { color: var(--mant); border: 1px solid oklch(0.72 0.1 150 / .45); font-family: var(--font); font-size: 10px; }
.comment-as { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.login-hint { font-size: 12px; }
.login-hint a, .link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; font-size: 12px; }
.link-btn:hover { color: var(--danger); }
.manage-own { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; }
.manage-own .manage-form form { display: contents; }

.profile-head { display: flex; gap: 16px; align-items: center; }
.profile-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.profile-name h1 { font-size: 20px; overflow-wrap: anywhere; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); }
.profile-actions form { margin: 0; }

@media (max-width: 760px) {
  .login-label { display: none; }
  .login-short { display: inline; }
  .user-btn { padding: 0 6px; }
}

/* ---------- 공지·패치노트 ---------- */
.news-kind { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.kind-patch { color: var(--accent); background: var(--accent-soft); }
.kind-notice { color: var(--lone); background: oklch(0.72 0.1 245 / .12); }
.kind-event { color: var(--mant); background: oklch(0.72 0.1 150 / .12); }
.kind-devlog, .kind-video { color: var(--valk); background: oklch(0.72 0.1 28 / .12); }
.news-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 16px; border-bottom: 1px solid var(--line-soft); }
.news-row:last-child { border-bottom: 0; }
.news-row:hover { background: var(--surface-2); color: var(--text); }
.news-row-date { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 11px; padding-top: 2px; }
.news-day { font-size: 15px; font-weight: 700; color: var(--text); }
.news-row-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.news-row-title { font-size: 16px; line-height: 1.4; }
.news-row:hover .news-row-title { color: var(--accent); }
.news-row-sum { color: var(--muted); font-size: 13px; line-height: 1.6; }
.news-row-en { font-size: 11px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-en-title { font: 12px var(--mono); }
.tldr { border-top: 1px solid var(--line-soft); background: var(--accent-soft); }
.tldr-label { font-size: 11px; letter-spacing: .12em; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.tldr-list { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; line-height: 1.65; font-size: 15px; }
.tldr-list li::marker { color: var(--accent); font-family: var(--mono); font-weight: 700; }
.news-prose { border-top: 1px solid var(--line-soft); max-width: none; margin-top: 0; }
.news-prose table { display: block; overflow-x: auto; white-space: nowrap; }
.news-prose td:nth-child(n+2), .news-prose th:nth-child(n+2) { font-variant-numeric: tabular-nums; }
.news-source { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; border-top: 1px solid var(--line-soft); }
.news-source p { font-size: 12px; line-height: 1.6; }
.news-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.news-pager-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; min-width: 0; font-size: 13px; }
.news-pager-item:hover { border-color: var(--accent); color: var(--text); }
.news-pager-item.right { align-items: flex-end; text-align: right; grid-column: 2; }
.cols-glossary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 760px) {
  .news-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .news-row-date { flex-direction: row; gap: 6px; }
  .news-pager { grid-template-columns: minmax(0, 1fr); }
  .news-pager-item.right { grid-column: auto; }
}

.prose th[align="right"], .prose td[align="right"] { text-align: right; }
.prose th[align="center"], .prose td[align="center"] { text-align: center; }

/* ---------- 동접 차트 ---------- */
.chart-hd { border-top: 1px solid var(--line); }
.chart-wrap { padding: 12px 12px 4px; }
.chart .grid-v { stroke-dasharray: 2 4; }
.chart .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
@media (max-width: 760px) {
  .chart-wrap { overflow-x: auto; }
  .chart-wrap .chart { min-width: 640px; }
}

.page-sub { font-size: 14px; font-weight: 500; margin-left: 6px; }

/* ---------- 페이지 내 탭 ---------- */
button.tab { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.cols-rank-mini { grid-template-columns: 40px minmax(0, 1fr) 120px; }
.rank-preview .ghost { min-height: 170px; }

/* ---------- 서버 현황 상세 ---------- */
.stat-row-5 { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); }
.stat-value.delta { font-size: 16px; padding-top: 6px; }
.up { color: var(--ok); }
.down { color: var(--danger); }
.accent { color: var(--accent); }
.status-grid { align-items: start; }
.chart .bar { fill: var(--line); }
.chart .bar-peak { fill: var(--accent); }
.chart .bar-now { stroke: var(--accent); stroke-width: 1.5; }
.chart .bar-empty { fill: var(--line-soft); }
.insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border-top: 1px solid var(--line-soft); }
.insights > div { background: var(--surface); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.insights strong { font-size: 18px; }
.cols-daily { grid-template-columns: minmax(0, 1fr) repeat(3, 90px); min-height: 38px; }
.partial { font-size: 10px; border: 1px dashed var(--line); border-radius: 3px; padding: 0 4px; margin-left: 4px; }
@media (max-width: 1024px) {
  .stat-row-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row-5 .stat:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .insights { grid-template-columns: minmax(0, 1fr); }
  .cols-daily { grid-template-columns: minmax(0, 1fr) repeat(3, 72px); }
}

/* ---------- 랭킹 상세 ---------- */
.ranking-layout { margin-top: 20px; }
.metric-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.chip-metric { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--muted); }
.chip-metric.main { border-color: var(--accent); color: var(--accent); }
.cols-rank-full { grid-template-columns: 44px minmax(140px, 1fr) 120px 100px 60px 110px; }
.ranking-layout .ghost { min-height: 460px; }
.my-rank { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 13px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.plain-list li:last-child { border-bottom: 0; }
.plain-list span { color: var(--muted); }
.filterbar .pill .fdot { margin-left: 6px; }
@media (max-width: 760px) {
  .cols-rank-full { min-width: 560px; }
}

/* ---------- 파티 모집 현황 ---------- */
.party-overview { margin-bottom: 20px; }
.unit { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; font-family: var(--font); }
.region-counts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; padding-top: 4px; }
.pill-count { font-size: 11px; color: var(--faint); margin-left: 2px; }
.pill.on .pill-count { color: var(--accent); }

/* ---------- 가이드 · 정보글 ---------- */
.cat-info { color: var(--mant); background: oklch(0.72 0.1 150 / .12); }
.cat-media { color: var(--valk); background: oklch(0.72 0.1 28 / .12); }
.guide-section { margin-bottom: 24px; }
.section-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.section-hd h2 { font-size: 17px; display: flex; align-items: baseline; gap: 8px; }
.section-hd p { font-size: 13px; }

/* ---------- 등급 · PMC 태그 ---------- */
.pmc-tag { font: 700 12px var(--mono); color: var(--accent); flex: none; }
.pmc-tag:hover { text-decoration: underline; }
.pmc-tag-sm { font: 700 11px var(--mono); color: var(--accent); margin-right: 3px; }
.staff-mark, .leader-mark { flex: none; font-size: 10px; font-weight: 700; border-radius: 3px; padding: 0 5px; line-height: 16px; }
.staff-mark { color: var(--accent-ink); background: var(--accent); }
.leader-mark { color: var(--accent); border: 1px solid var(--accent); }
.staff-dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); vertical-align: middle; }

/* ---------- 알림 ---------- */
.flash { margin: 0 0 16px; padding: 10px 14px; border-radius: 6px; font-size: 13px; border: 1px solid var(--line); background: var(--surface); }
.flash-ok { border-color: oklch(0.74 0.12 150 / .45); color: var(--ok); background: oklch(0.74 0.12 150 / .08); }
.flash-error { border-color: oklch(0.7 0.14 28 / .5); color: var(--danger); background: oklch(0.7 0.14 28 / .08); }
code { font-family: var(--mono); font-size: 11px; background: var(--surface-2); padding: 1px 4px; border-radius: 3px; overflow-wrap: anywhere; }

/* ---------- PMC 목록 ---------- */
.pmc-overview { margin-bottom: 20px; }
.faction-bar { display: block; width: 100%; height: 6px; margin: 8px 0 6px; border-radius: 3px; overflow: hidden; background: var(--surface-2); }
.fill-lone { fill: var(--lone); } .fill-valk { fill: var(--valk); } .fill-mant { fill: var(--mant); }
.fill-free { fill: var(--faint); } .fill-empty { fill: var(--surface-2); }
.f-free { background: var(--faint); }
.faction-legend { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 11px; color: var(--muted); }
.faction-legend span { display: inline-flex; align-items: center; gap: 4px; }
.pmc-search { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.pmc-search input { width: 180px; height: 32px; }
.pmc-search select { width: auto; height: 32px; }
.pmc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding: 16px; }
.pmc-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); min-width: 0; }
.pmc-card:hover { border-color: var(--accent); color: var(--text); }
.pmc-card-top { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.pmc-card-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pmc-card-name strong { font-size: 15px; }
.pmc-logo { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface); border: 1px solid var(--line); }
.pmc-logo-empty { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--accent); }
.pmc-logo-lg { width: 76px; height: 76px; border-radius: 12px; font-size: 18px; }
.pmc-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.pmc-intro { font-size: 13px; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.pmc-card-foot { display: flex; align-items: center; gap: 10px; font-size: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.pmc-card-foot .time-cell { margin-left: auto; }
.pmc-card-foot .role { width: 18px; height: 18px; font-size: 10px; }
.empty-mark { min-width: 40px; width: auto; padding: 0 8px; }

/* ---------- PMC 상세 ---------- */
.pmc-hero { margin: 12px 0 20px; }
.pmc-hero-main { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px; }
.pmc-hero-name h1 { font-size: 24px; margin: 4px 0; overflow-wrap: anywhere; }
.pmc-tag-lg { font-size: 15px; }
.pmc-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.pmc-hero-actions form { margin: 0; }
.stat-date { font-size: 16px; padding-top: 4px; }
.pmc-layout { align-items: start; }
.org-hint { font-size: 12px; }
.org-tree { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.org-root { font-weight: 700; padding: 8px 12px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent-soft); }
.org-branch { margin-left: 18px; padding-left: 14px; border-left: 1px dashed var(--line); display: flex; flex-direction: column; gap: 6px; }
.org-sub { margin-left: 18px; }
.org-unit { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); font-size: 13px; }
.org-kind { font: 700 10px var(--mono); letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; line-height: 16px; }
.org-leader { margin-left: auto; font-size: 12px; color: var(--muted); }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding: 0 16px 16px; }
.dept-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.org-manage { border-top: 1px solid var(--line); }
.org-manage > summary, .member-manage > summary { cursor: pointer; padding: 12px 16px; color: var(--muted); list-style: none; font-size: 13px; }
.org-manage > summary::-webkit-details-marker, .member-manage > summary::-webkit-details-marker { display: none; }
.org-create { border-bottom: 1px solid var(--line-soft); padding-bottom: 16px; }
.org-edit { grid-template-columns: auto minmax(120px, 1fr) repeat(2, minmax(110px, auto)) auto auto; align-items: center; gap: 8px; }
.org-edit input, .org-edit select { height: 32px; }

.member-row { border-bottom: 1px solid var(--line-soft); }
.member-row:last-of-type { border-bottom: 0; }
.member-row .tr { border-bottom: 0; }
.cols-members { grid-template-columns: minmax(0, 1.6fr) 64px minmax(0, 1.2fr) 72px 88px; }
.member-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.member-units { display: flex; flex-wrap: wrap; gap: 4px; }
.unit-chip { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; line-height: 18px; white-space: nowrap; }
.unit-chip.dept { border-color: oklch(0.72 0.1 245 / .45); color: var(--lone); }
.rank-badge { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 3px; background: var(--surface-2); color: var(--muted); }
.rank-owner { background: var(--accent); color: var(--accent-ink); }
.rank-officer { color: var(--accent); border: 1px solid var(--accent); }
.member-manage > summary { padding: 0 16px 8px; font-size: 12px; }
.member-manage-body { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 12px; }
.assign-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.assign-form select { width: auto; height: 30px; }
.manage-form form { margin: 0; }
.leave-form { text-align: right; }
.facts-1 { grid-template-columns: minmax(0, 1fr); border-top: 0; }
.wanted { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.wanted-item { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.application { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.application-msg { font-size: 13px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); border-radius: 6px; padding: 8px 10px; }
.steam-friend { gap: 6px; }
.steam-friend.icon-only { width: 26px; height: 22px; padding: 0; font-size: 12px; }
.contact-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.squad-badge { font: 700 11px var(--mono); color: var(--accent); background: var(--accent-soft); border-radius: 3px; padding: 0 5px; margin-right: 2px; }
.squad-badge-lg { display: inline-block; font-size: 12px; padding: 2px 8px; width: fit-content; }
.squad-check { align-items: flex-start; white-space: normal; background: var(--accent-soft); border: 1px solid oklch(0.76 0.15 62 / .35); border-radius: 6px; padding: 10px 12px; color: var(--text); }
.tag-input { text-transform: uppercase; }
.cols-apps { grid-template-columns: minmax(0, 1fr) 70px 90px; }
.app-status { font-size: 11px; font-weight: 700; }
.app-pending { color: var(--accent); } .app-accepted { color: var(--ok); } .app-rejected { color: var(--danger); } .app-cancelled { color: var(--faint); }

/* ---------- 사이트 관리 ---------- */
.admin-layout { margin-top: 20px; }
.cols-admin { grid-template-columns: minmax(220px, 1.6fr) 150px 100px 40px 80px minmax(230px, 1.2fr); padding-top: 6px; padding-bottom: 6px; }
.admin-user { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.inline-form select, .inline-form input { height: 30px; width: auto; min-width: 0; max-width: 130px; font-size: 12px; }

@media (max-width: 760px) {
  .pmc-hero-main { grid-template-columns: 56px minmax(0, 1fr); padding: 16px; }
  .pmc-logo-lg { width: 56px; height: 56px; }
  .pmc-hero-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .pmc-search { margin-left: 0; width: 100%; }
  .pmc-search input { flex: 1; }
  .pmc-grid { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .cols-members { grid-template-columns: minmax(0, 1fr) 56px; }
  .cols-members > :nth-child(3), .cols-members > :nth-child(4), .cols-members > :nth-child(5) { display: none; }
  .org-edit { grid-template-columns: minmax(0, 1fr); }
  .cols-admin { min-width: 900px; }
}

/* ---------- 서버 목록 ---------- */
.cols-srv { grid-template-columns: minmax(0, 1.6fr) 80px minmax(0, 1fr) 130px 90px; min-height: 42px; }
.cols-srv.compact { grid-template-columns: minmax(0, 1.6fr) 72px minmax(0, 1fr) 110px 84px; }
.srv-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.srv-type { flex: none; font-size: 10px; font-weight: 700; padding: 0 6px; line-height: 17px; border-radius: 3px; }
.srv-official { color: var(--lone); background: oklch(0.72 0.1 245 / .14); }
.srv-community { color: var(--mant); background: oklch(0.72 0.1 150 / .14); }
.srv-pop { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.pop-bar { width: 100%; height: 4px; display: block; border-radius: 2px; overflow: hidden; }
.pop-bg { fill: var(--surface-2); } .pop-fill { fill: var(--text); } .pop-full { fill: var(--accent); }
.copy-code { border: 1px dashed var(--line); background: transparent; color: var(--muted); border-radius: 4px; padding: 2px 8px; font-size: 12px; cursor: pointer; }
.copy-code:hover { color: var(--accent); border-color: var(--accent); }
.copy-code.copied { color: var(--ok); border-color: var(--ok); }
.copy-code-lg { font-size: 22px; font-weight: 700; padding: 6px 14px; color: var(--text); border-style: solid; }
.server-summary { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.server-credit { font-size: 11px; }
.server-credit a { color: var(--muted); text-decoration: underline; }
.map-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line-soft); font-size: 12px; }
.map-share a:hover { color: var(--text); border-color: var(--muted); }
.servers-panel { margin-top: 20px; }
.srv-hero { margin: 12px 0 20px; }
.srv-hero-main { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px; }
.srv-hero-main h1 { font-size: 24px; margin: 6px 0 4px; }
.srv-join { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; }
@media (max-width: 760px) {
  .cols-srv, .cols-srv.compact { grid-template-columns: minmax(0, 1fr) 80px 74px; }
  .cols-srv > :nth-child(2), .cols-srv > :nth-child(3) { display: none; }
  .srv-join { align-items: flex-start; }
}

/* ---------- 유저 프로필 · 도전과제 ---------- */
.profile-hero { margin-bottom: 20px; }
.profile-hero-main { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px; }
.profile-hero-main h1 { font-size: 24px; margin: 4px 0; overflow-wrap: anywhere; }
.profile-hero-main .muted a { color: var(--text); }
.profile-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ach-progress { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.ach-bar { flex: 1; height: 6px; border-radius: 3px; overflow: hidden; display: block; }
.ach-private { display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.ach-private strong { font-size: 14px; }
.ach-list { list-style: none; margin: 0; padding: 0; }
.ach { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.ach:last-child { border-bottom: 0; }
.ach-icon { width: 56px; height: 56px; border-radius: 6px; background: var(--surface-2); object-fit: cover; }
.ach-icon-empty { display: block; border: 1px dashed var(--line); }
.ach-off .ach-icon { opacity: .55; }
.ach-off .ach-title strong { color: var(--muted); }
.ach-on .ach-icon { box-shadow: 0 0 0 2px var(--accent); }
.ach-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ach-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ach-en { font-size: 11px; }
.ach-desc { font-size: 13px; color: var(--muted); }
.ach-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--faint); }
.ach-global { display: inline-flex; align-items: center; gap: 6px; }
.ach-mini { width: 60px; height: 4px; border-radius: 2px; overflow: hidden; display: block; }
.ach-state { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; }
.ach-done { font-weight: 700; color: var(--accent); }
.rarity { font-size: 10px; font-weight: 700; border-radius: 3px; padding: 0 5px; line-height: 16px; }
.rarity-legend { color: var(--accent-ink); background: var(--accent); }
.rarity-rare { color: var(--accent); border: 1px solid var(--accent); }
.rarity-uncommon { color: var(--lone); border: 1px solid oklch(0.72 0.1 245 / .5); }
.rarity-common { color: var(--faint); border: 1px solid var(--line); }
@media (max-width: 760px) {
  .profile-hero-main { grid-template-columns: 56px minmax(0, 1fr); padding: 16px; }
  .profile-hero-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .ach { grid-template-columns: 44px minmax(0, 1fr); }
  .ach-icon { width: 44px; height: 44px; }
  .ach-state { grid-column: 2; flex-direction: row; align-items: center; gap: 8px; }
}

/* ---------- 데이터베이스 ---------- */
.db-overview { margin-bottom: 20px; }
.cols-db-items { grid-template-columns: 44px minmax(160px, 1.5fr) minmax(120px, 1fr) 90px 130px 100px 44px; min-height: 52px; }
.db-thumb { display: block; width: 44px; height: 32px; border-radius: 4px; overflow: hidden; background: var(--surface-2); }
.db-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.db-thumb-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 10px; color: var(--faint);
  background-image: repeating-linear-gradient(135deg, transparent 0 4px, var(--line-soft) 4px 5px); }
.db-name { display: flex; flex-direction: column; min-width: 0; }
.db-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-name span { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-cat { font-size: 12px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dir { font-size: 10px; margin-left: 3px; }
.up-bad { color: var(--danger); }
.down-good { color: var(--ok); }
.compare-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; }
.db-layout { align-items: start; margin-top: 12px; }
.db-hero { overflow: hidden; }
.db-gallery { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.db-main-photo { display: block; aspect-ratio: 16 / 9; }
.db-main-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.db-photo-strip { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.db-photo-strip img { width: 96px; height: 54px; object-fit: cover; border-radius: 4px; display: block; }
.photo-credit { font-size: 11px; padding: 0 12px 8px; }
.db-photo-empty { aspect-ratio: 16 / 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 13px; text-align: center; padding: 16px;
  background-image: repeating-linear-gradient(135deg, transparent 0 10px, var(--line-soft) 10px 11px); }
.db-photo-empty .mono { font-size: 18px; color: var(--muted); }
.db-head h1 { font-size: 26px; margin-top: 6px; }
.db-summary { font-size: 15px; margin-top: 8px; }
.cols-changes { grid-template-columns: minmax(0, 1.3fr) 60px minmax(0, 1fr) minmax(0, 1fr); font-size: 13px; }
.cols-changes a { color: var(--accent); }
.photo-rule { font-size: 11px; line-height: 1.5; }
.pending-photos { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line-soft); font-size: 12px; }
.pending-photo { display: flex; flex-direction: column; gap: 6px; }
.pending-photo img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 4px; display: block; }
.compare-grid { display: grid; gap: 1px; background: var(--line-soft); min-width: 560px; }
.compare-grid.cols-2 { grid-template-columns: 120px repeat(2, minmax(0, 1fr)); }
.compare-grid.cols-3 { grid-template-columns: 120px repeat(3, minmax(0, 1fr)); }
.cmp-label, .cmp-cell, .cmp-head { background: var(--surface); padding: 12px 14px; font-size: 13px; }
.cmp-label { color: var(--faint); font-size: 12px; }
.cmp-head { display: flex; flex-direction: column; gap: 4px; }
.cmp-head img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.cmp-best { color: var(--accent); font-weight: 700; }
@media (max-width: 760px) {
  .cols-db-items { grid-template-columns: 44px minmax(0, 1fr) 90px 36px; }
  .cols-db-items > :nth-child(3), .cols-db-items > :nth-child(4), .cols-db-items > :nth-child(5) { display: none; }
  .cols-changes { grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr); }
  .cols-changes > :nth-child(3) { display: none; }
}

/* ---------- 참가 코드 복사 버튼 (고정 크기) ---------- */
.cols-srv { grid-template-columns: minmax(0, 1.6fr) 80px minmax(0, 1fr) 130px 92px; height: 52px; min-height: 0; }
.cols-srv.compact { grid-template-columns: minmax(0, 1.6fr) 72px minmax(0, 1fr) 110px 92px; }
.cols-srv.th { height: 36px; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--muted); font: 600 12px var(--font); white-space: nowrap; overflow: hidden; cursor: pointer; flex: none; }
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.copied { color: var(--ok); border-color: var(--ok); background: oklch(0.74 0.12 150 / .1); }
.copy-btn-lg { width: 110px; height: 36px; font-size: 13px; }
.join-code { display: block; max-width: 320px; font: 700 15px var(--mono); color: var(--text); background: var(--surface-2); padding: 6px 10px; border-radius: 6px; overflow-wrap: anywhere; text-align: right; }
.srv-join { gap: 6px; }
@media (max-width: 760px) {
  .cols-srv, .cols-srv.compact { grid-template-columns: minmax(0, 1fr) 80px 92px; height: 56px; }
  .join-code { text-align: left; }
}

/* ---------- 신고 버튼 ---------- */
.report { position: relative; display: inline-block; }
.report > summary { list-style: none; cursor: pointer; font-size: 12px; }
.report > summary::-webkit-details-marker { display: none; }
.report > summary:hover { color: var(--danger); }
.report-form { position: absolute; z-index: 25; right: 0; top: calc(100% + 6px); width: 260px; display: flex; flex-direction: column; gap: 6px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px oklch(0 0 0 / .35); }
.report-form select, .report-form input { height: 32px; font-size: 13px; }

/* ---------- 관리자 콘솔 ---------- */
.admin-head { margin-bottom: 20px; }
.admin-head .page-head { margin-bottom: 10px; }
.admin-tabs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-badge { display: inline-block; min-width: 18px; padding: 0 5px; line-height: 17px; border-radius: 999px; background: var(--danger); color: #fff; font: 700 10px var(--mono); text-align: center; }
.admin-grid { margin-top: 20px; align-items: start; }
.admin-section { margin-top: 20px; }
.admin-foot { font-size: 11px; margin-top: 12px; }
.stat-link { display: flex; flex-direction: column; gap: 2px; }
.stat-link:hover .stat-label { color: var(--accent); }
.cols-top { grid-template-columns: minmax(0, 1fr) 70px 70px; min-height: 38px; font-size: 13px; }
.cols-paths { grid-template-columns: minmax(160px, 1fr) 70px 60px 50px 50px 80px; min-height: 38px; font-size: 13px; }
.cols-ref { grid-template-columns: minmax(0, 1fr) 90px 60px; min-height: 34px; font-size: 13px; }
.ref-bar { width: 90px; }
.report-item { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; padding: 16px; border-bottom: 1px solid var(--line-soft); }
.report-item:last-of-type { border-bottom: 0; }
.report-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.report-count { font-weight: 700; color: var(--danger); }
.report-title { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.report-excerpt { font-size: 13px; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 8px 10px; overflow-wrap: anywhere; }
.report-details summary { cursor: pointer; font-size: 12px; }
.report-details ul { margin: 6px 0 0; padding-left: 18px; font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.report-actions { display: flex; flex-direction: column; gap: 8px; }
.report-actions input, .report-actions select { height: 32px; font-size: 13px; }
.report-actions select { width: auto; }
.cols-admin-users { grid-template-columns: minmax(200px, 1.6fr) 80px 80px 50px 90px 90px 130px; min-height: 46px; font-size: 13px; }
.admin-user-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.admin-member h1 { font-size: 22px; }
.cols-received { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 70px 80px; font-size: 13px; }
.ban-form { gap: 8px; }
.ban-form .inline-form input { max-width: none; flex: 1; }
.cols-content { grid-template-columns: minmax(0, 1fr) 90px 70px 36px; min-height: 40px; font-size: 13px; }
.cols-content form { margin: 0; text-align: right; }
.cols-content-pmc { grid-template-columns: minmax(0, 1fr) 50px 70px; min-height: 40px; font-size: 13px; }
.photo-review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 16px; font-size: 12px; }
.cols-logs { grid-template-columns: 120px 100px 150px minmax(0, 1fr); min-height: 38px; font-size: 12px; }
.error-item { border-bottom: 1px solid var(--line-soft); }
.error-item > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; font-size: 12px; }
.error-item > summary::-webkit-details-marker { display: none; }
.error-path { font-size: 12px; }
.stack { margin: 0; padding: 10px 16px; font: 11px/1.5 var(--mono); color: var(--muted); background: var(--bg); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 280px; overflow: auto; }
.cols-tables { grid-template-columns: minmax(0, 1fr) 90px 80px; min-height: 32px; font-size: 12px; }
@media (max-width: 1024px) {
  .report-item { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cols-admin-users { min-width: 760px; }
  .cols-logs { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-top: 8px; padding-bottom: 8px; }
  .cols-paths { min-width: 560px; }
  .report-form { right: auto; left: 0; }
}

/* ---------- 홈: 히어로 ---------- */
.sortie { position: relative; padding: 44px 0 28px; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.sortie::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6; }
.sortie-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px); gap: 32px; align-items: center; }
.sortie-main { display: flex; flex-direction: column; gap: 14px; }
.sortie-main .eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.sortie-title { display: flex; flex-direction: column; gap: 4px; margin: 0; line-height: 1.15; }
.sortie-count { font-size: clamp(52px, 8vw, 88px); font-weight: 700; letter-spacing: -.03em; color: var(--text); }
.sortie-line { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.sortie-sub { color: var(--muted); font-size: 14px; }
.sortie-sub b { color: var(--text); }
.sortie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 8px; }
.sortie-hint { font-size: 13px; color: var(--faint); }
.sortie-servers { align-self: stretch; }
.pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name copy" "meta copy" "bar bar"; gap: 4px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.pick-name { grid-area: name; display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.pick-meta { grid-area: meta; display: flex; gap: 10px; font-size: 12px; }
.pick-free { color: var(--ok); }
.pick .pop-bar { grid-area: bar; margin-top: 4px; }
.pick-copy { grid-area: copy; align-self: center; }
.sortie-search { margin-top: 24px; max-width: none; }

@media (prefers-reduced-motion: no-preference) {
  .sortie-main > *, .sortie-servers { animation: rise .5s ease-out both; }
  .sortie-main > :nth-child(2) { animation-delay: .06s; }
  .sortie-main > :nth-child(3) { animation-delay: .12s; }
  .sortie-main > :nth-child(4) { animation-delay: .18s; }
  .sortie-servers { animation-delay: .22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---------- 홈: 내 요약 · 오늘의 전장 · 활동 피드 ---------- */
.mine-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; }
.mine-item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: var(--surface-2); }
.mine-item:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.mine-guest { justify-content: space-between; color: var(--muted); }
.mine-guest b { color: var(--text); }
.home-layout { align-items: start; }
.badge-new { background: var(--accent); color: var(--accent-ink); }
.today-patch { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--accent-soft), transparent 70%); }
.today-patch:hover { color: var(--text); }
.today-patch:hover .today-title { color: var(--accent); }
.today-title { font-size: 18px; line-height: 1.35; }
.today-tldr { font-size: 14px; }
.today-patch .more { font-size: 12px; color: var(--accent); }
.feed { list-style: none; margin: 0; padding: 4px 0; }
.feed-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 16px; font-size: 13px; }
.feed-item + .feed-item { border-top: 1px dashed var(--line-soft); }
.feed-tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.feed-pmc .feed-tag { color: var(--accent); background: var(--accent-soft); }
.feed-party .feed-tag { color: var(--ok); background: oklch(0.74 0.12 150 / .12); }
.feed-ach .feed-tag { color: var(--lone); background: oklch(0.72 0.1 245 / .12); }
.feed-member .feed-tag { color: var(--valk); background: oklch(0.72 0.1 28 / .12); }
.pmc-mini .list-top { gap: 10px; }
.pmc-mini .roles { margin-top: 4px; }
.pmc-mini .role { width: 18px; height: 18px; font-size: 10px; }

@media (max-width: 1024px) {
  .sortie-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .sortie { padding: 28px 0 20px; }
  .btn-lg { flex: 1 1 auto; }
  .mine-guest { flex-direction: column; align-items: flex-start; }
  .feed-item { grid-template-columns: auto minmax(0, 1fr); }
  .feed-item .time-cell { display: none; }
}

/* ---------- 홈 히어로 배경 효과 (전술 지도) ---------- */
.sortie { isolation: isolate; }
.sortie > .wrap { position: relative; z-index: 1; }
.hero-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-fx-layer { position: absolute; inset: -12px; transition: transform .6s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.hero-fx canvas { display: block; }
.hero-vignette { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in oklch, var(--bg) 78%, transparent) 34%, transparent 62%, color-mix(in oklch, var(--bg) 55%, transparent) 100%),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%); }
.hero-scan { position: absolute; left: 0; right: 0; top: 0; height: 140px; opacity: 0;
  background: linear-gradient(180deg, transparent, oklch(0.76 0.15 62 / .07) 70%, oklch(0.76 0.15 62 / .35) 99%, transparent 100%); }

.cz { position: absolute; border-radius: 50%; border: 1px dashed oklch(0.76 0.15 62 / .55); background: radial-gradient(circle, oklch(0.76 0.15 62 / .07), oklch(0.76 0.15 62 / .02) 70%); }
.cz-ring { position: absolute; inset: 22%; border-radius: 50%; border: 1px solid oklch(0.76 0.15 62 / .28); }
.cz-tick { position: absolute; background: var(--accent); }
.cz-n, .cz-s { left: calc(50% - 1px); width: 2px; height: 12px; }
.cz-e, .cz-w { top: calc(50% - 1px); height: 2px; width: 12px; }
.cz-n { top: -6px; } .cz-s { bottom: -6px; } .cz-e { right: -6px; } .cz-w { left: -6px; }
.cz-hot { position: absolute; width: 22%; height: 22%; left: 39%; top: 39%; border-radius: 50%; background: oklch(0.76 0.15 62 / .22); border: 1px solid oklch(0.76 0.15 62 / .75); }
.cz-label { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); font-size: 10px; letter-spacing: .12em; color: var(--accent); white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .hero-scan { animation: hero-scan 9s linear infinite; }
  .cz-hot { animation: cz-pulse 2.6s ease-in-out infinite; }
  .cz { animation: cz-in 1.2s .3s ease-out both; }
  @keyframes hero-scan { 0% { transform: translateY(-140px); opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(620px); opacity: 0; } }
  @keyframes cz-pulse { 0%, 100% { box-shadow: 0 0 0 0 oklch(0.76 0.15 62 / .35); } 50% { box-shadow: 0 0 0 10px oklch(0.76 0.15 62 / 0); background: oklch(0.76 0.15 62 / .26); } }
  @keyframes cz-in { from { opacity: 0; transform: scale(1.35); } to { opacity: 1; transform: none; } }
}
:root[data-theme='light'] .cz { background: oklch(0.6 0.15 55 / .05); }
@media (max-width: 760px) {
  .hero-vignette { background: linear-gradient(180deg, color-mix(in oklch, var(--bg) 40%, transparent), var(--bg) 100%); }
}

/* ---------- 홈: 실시간 전장 통계 카드 ---------- */
.sortie-stats { backdrop-filter: blur(6px); background: color-mix(in oklch, var(--surface) 88%, transparent); }
.st-block { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.st-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; }
.st-label { color: var(--muted); font-weight: 600; }
.st-delta { font: 700 12px var(--mono); }
.st-big { font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.st-spark { margin: 0 -4px; }
.st-spark .chart .tick { font-size: 9px; }
.st-foot { font-size: 12px; }
.st-foot b { color: var(--text); }
.st-bar { display: block; width: 100%; height: 6px; border-radius: 3px; overflow: hidden; }
.st-legend { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.st-legend span { display: inline-flex; align-items: center; gap: 5px; }
.st-map { display: grid; grid-template-columns: 84px minmax(0, 1fr) 38px; align-items: center; gap: 10px; font-size: 12px; }
.st-map:hover { color: var(--accent); }
.st-map-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-map-val { text-align: right; color: var(--muted); }
.st-map .pop-fill { fill: var(--accent); opacity: .75; }

/* ---------- PMC 편제표 (대대 → 중대 → 소대 → 분대) ---------- */
.orgc { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.orgc-root { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent-soft); }
.orgc-root strong { font-size: 15px; }
.orgc-root .orgc-lead { margin-left: auto; }
.orgc-lead { font-size: 12px; color: var(--muted); }
.orgc-lead b { color: var(--text); font-weight: 600; }
.orgc-empty { margin: 0; font-size: 13px; }
.orgc-label { display: block; font: 700 11px var(--mono); letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.orgc-hq { padding: 12px; border: 1px dashed var(--line); border-radius: 6px; }
.orgc-hq-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.orgc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; position: relative; }
.orgc-col { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; position: relative; }
.orgc-col::before { content: ''; position: absolute; top: 0; left: 50%; height: 14px; border-left: 1px solid var(--line); }
.orgc-node { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); font-size: 13px; min-width: 0; }
.orgc-node-hd { display: flex; align-items: center; gap: 6px; min-width: 0; }
.orgc-node-hd strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orgc-node-hd .mono { margin-left: auto; }
.orgc-company { border-color: color-mix(in oklch, var(--accent) 45%, var(--line)); border-top-width: 3px; }
.orgc-direct { border-style: dashed; border-top-width: 1px; }
.orgc-platoon { margin-left: 14px; position: relative; }
.orgc-platoon::before { content: ''; position: absolute; left: -9px; top: -9px; bottom: 50%; border-left: 1px dashed var(--line); border-bottom: 1px dashed var(--line); width: 8px; }
.orgc-dept { background: transparent; }
.orgc-squads { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.orgc-squads li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 6px 8px; border-radius: 4px; background: var(--bg); font-size: 12px; }
.orgc-squads .orgc-lead { margin-left: auto; }
.orgc-none { margin: 0 0 0 14px; font-size: 12px; }
.org-path { font-size: 12px; min-width: 0; }
.rank-member.grade-일병 { color: var(--text); }
.rank-member.grade-상병 { color: var(--text); border: 1px solid var(--line); }
.rank-member.grade-병장 { color: var(--accent); border: 1px solid color-mix(in oklch, var(--accent) 50%, transparent); }
@media (max-width: 760px) {
  .orgc-root .orgc-lead { margin-left: 0; }
  .orgc-col::before { display: none; }
}

/* ---------- 히어로 인원수 카운트업 ---------- */
.sortie-count { display: inline-block; font-variant-numeric: tabular-nums; }

/* 지역별 비중 (전 세계 동접) */
.st-regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; font-size: 12px; color: var(--muted); }
.st-regions span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.st-regions b { color: var(--text); }
.st-regions .is-asia { color: var(--text); }
.st-regions .is-asia b { color: var(--accent); }
.rg-asia { fill: var(--accent); } .rgd-asia { background: var(--accent); }
.rg-na { fill: var(--lone); } .rgd-na { background: var(--lone); }
.rg-eu { fill: var(--mant); } .rgd-eu { background: var(--mant); }
.rg-oceania { fill: oklch(0.7 0.09 300); } .rgd-oceania { background: oklch(0.7 0.09 300); }
.rg-other { fill: oklch(0.62 0.03 110); } .rgd-other { background: oklch(0.62 0.03 110); }
.rg-lobby { fill: var(--surface-2); } .rgd-lobby { background: var(--line); }

/* ---------- 문의하기 ---------- */
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
.contact-hints { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.contact-foot p { font-size: 12px; margin: 0; max-width: 520px; }
.inquiry { border-top: 1px solid var(--line-soft); }
.inquiry > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; font-size: 13px; }
.inquiry > summary::-webkit-details-marker { display: none; }
.inquiry-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.inquiry-reply { border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 6px 6px 0; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.inquiry-text { font-size: 13px; color: var(--muted); margin: 4px 0; max-height: 260px; overflow: auto; }
.inquiry-actions textarea { width: 100%; min-height: 90px; }
.inq-status { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 3px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.inq-answered { color: var(--accent); border-color: color-mix(in oklch, var(--accent) 50%, transparent); }
.footer-links { display: inline-flex; gap: 16px; align-items: center; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .inquiry > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .inquiry > summary .chip-metric, .inquiry > summary .time-cell { display: none; }
}

/* 베타 배지 · 약관 문서 */
.beta-tag { font: 700 9px var(--mono); letter-spacing: .1em; color: var(--accent); border: 1px solid color-mix(in oklch, var(--accent) 55%, transparent); border-radius: 3px; padding: 1px 4px; margin-left: 6px; vertical-align: 2px; }
.legal-doc h2 { font-size: 16px; margin: 22px 0 8px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc table { font-size: 13px; }
.legal-doc td, .legal-doc th { vertical-align: top; }
.footer-links { flex-wrap: wrap; }

/* 회원 탈퇴 영역 */
.danger-zone { margin-top: 18px; }
.danger-zone > details > summary { cursor: pointer; padding: 12px 16px; list-style: none; font-size: 13px; }
.danger-zone > details > summary::-webkit-details-marker { display: none; }
.danger-zone .panel-bd { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.withdraw-form { align-items: end; }

/* 공지 고정 표시 */
.pin-mark { font: 700 9px var(--mono); color: var(--accent); border: 1px solid color-mix(in oklch, var(--accent) 50%, transparent); border-radius: 3px; padding: 0 3px; }
.cat-notice { color: var(--accent); border-color: color-mix(in oklch, var(--accent) 50%, transparent); font-weight: 700; }
.search-more { font-size: 12px; }
.join-hint { display: flex; gap: 6px; align-items: baseline; font-size: 12px; color: var(--muted); padding: 10px 16px; border-top: 1px solid var(--line-soft); }
.join-hint b { color: var(--text); }
.onboard { display: grid; gap: 10px; padding: 14px 16px; }
.onboard-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.onboard-item .num { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 700 11px var(--mono); color: var(--muted); flex: none; }
.onboard-item.done .num { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.onboard-item.done span:not(.num) { color: var(--muted); text-decoration: line-through; }
.onboard-item a { margin-left: auto; }

/* ---------- 랭킹 ---------- */
.cols-rank { grid-template-columns: 44px minmax(0, 1fr) 110px 70px 90px; }
.cols-rank-pmc { grid-template-columns: 44px minmax(0, 1fr) 70px 60px 90px 90px; }
.cols-rank-com { grid-template-columns: 44px minmax(0, 1fr) 60px 60px 80px 70px; }
.rank-no { color: var(--muted); font-weight: 700; }
.rank-1 { color: var(--accent); }
.rank-2, .rank-3 { color: var(--text); }
.rank-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.metric-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.metric-list li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .cols-rank { grid-template-columns: 34px minmax(0, 1fr) 84px 54px; }
  .cols-rank .right:last-child { display: none; }
  .cols-rank-pmc { grid-template-columns: 34px minmax(0, 1fr) 56px 76px; }
  .cols-rank-pmc span:nth-child(4), .cols-rank-pmc span:nth-child(6) { display: none; }
  .cols-rank-com { grid-template-columns: 34px minmax(0, 1fr) 48px 48px 60px; }
  .cols-rank-com span:nth-child(5) { display: none; }
}

/* 알림 */
.noti-btn { position: relative; }
.noti-badge { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.noti-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.noti-item:last-child { border-bottom: 0; }
.noti-item.unread { background: color-mix(in oklch, var(--accent) 7%, transparent); }
.noti-item .glyph { font-size: 15px; line-height: 1.3; }
.noti-item b { display: block; }
.noti-item small { color: var(--muted); overflow-wrap: anywhere; }

/* 로그인 후 이용 안내 */
.login-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; font-size: 13px; color: var(--muted); }
