/* =========================================================
   나혼자만 바람의나라 클래식 — 가이드북 · 웹 관리자
   디자인 = shadcn/ui 「base-nova」(Base UI · Nova 스타일) 토큰을 순수 CSS 로 옮김
     · neutral oklch 팔레트(라이트/다크) · radius 0.625rem
     · Nova = 컴팩트: 버튼·입력 h-8(32px) · 카드 rounded-xl + ring-1 foreground/10 · 간격 16px
     · 배지 h-5 rounded-full · 탭 목록 h-8 p-[3px]
   브랜드 포인트 한 가지만(금빛 --brand) — 나머지는 전부 neutral.
   ========================================================= */
:root {
  --radius: 0.625rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --success: oklch(0.6 0.13 150);
  --warning: oklch(0.7 0.15 70);
  --info: oklch(0.6 0.13 245);
  --violet: oklch(0.6 0.17 300);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --brand: oklch(0.72 0.14 75);
  --brand-soft: oklch(0.72 0.14 75 / 12%);
  --shadow: 0 1px 2px oklch(0 0 0 / 5%);
  --shadow-lg: 0 10px 30px -10px oklch(0 0 0 / 25%);
  --maxw: 1120px;
  --head-h: 104px;
  --sans: "Pretendard Variable", Pretendard, "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --display: "Gugi", var(--sans);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.205 0 0);
  --primary: oklch(0.922 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --success: oklch(0.72 0.15 150);
  --warning: oklch(0.8 0.14 75);
  --info: oklch(0.72 0.12 245);
  --violet: oklch(0.72 0.14 300);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.556 0 0);
  --brand: oklch(0.82 0.13 80);
  --brand-soft: oklch(0.82 0.13 80 / 12%);
  --shadow: 0 1px 2px oklch(0 0 0 / 30%);
  --shadow-lg: 0 16px 40px -12px oklch(0 0 0 / 60%);
  color-scheme: dark;
}

/* ── 구형 엔진 대체 색(인게임 F1 웹뷰 = 구형 Chromium: oklch·color-mix 미지원) ──
   oklch 토큰이 무효가 되면 배경은 투명(웹뷰 흰 바탕), 글자는 color-scheme:dark 의 기본색(흰색)이 되어
   「흰 바탕에 흰 글자」로 전부 안 보였다(2026-10-02 인게임 진단). 같은 토큰을 hex 로 다시 정의한다. */
@supports not (color: oklch(0 0 0)) {
  :root {
    --background: #ffffff; --foreground: #0a0a0a; --card: #ffffff; --card-foreground: #0a0a0a; --popover: #ffffff;
    --primary: #171717; --primary-foreground: #fafafa; --secondary: #f5f5f5; --secondary-foreground: #171717;
    --muted: #f5f5f5; --muted-foreground: #737373; --accent: #f5f5f5;
    --destructive: #e7000b; --success: #2e9e5b; --warning: #c98a1e; --info: #2f86c9; --violet: #9b5fd0;
    --border: #e5e5e5; --input: #e5e5e5; --ring: #a1a1a1;
    --brand: #d39a2c; --brand-soft: rgba(211, 154, 44, .12);
    --shadow: 0 1px 2px rgba(0,0,0,.05); --shadow-lg: 0 10px 30px -10px rgba(0,0,0,.25);
  }
  :root[data-theme="dark"] {
    --background: #0a0a0a; --foreground: #fafafa; --card: #171717; --card-foreground: #fafafa; --popover: #171717;
    --primary: #e5e5e5; --primary-foreground: #171717; --secondary: #262626; --secondary-foreground: #fafafa;
    --muted: #262626; --muted-foreground: #a1a1a1; --accent: #262626;
    --destructive: #ff6467; --success: #4ec27c; --warning: #e8b04a; --info: #5aa6dd; --violet: #b98ae0;
    --border: rgba(255,255,255,.1); --input: rgba(255,255,255,.15); --ring: #737373;
    --brand: #eabb57; --brand-soft: rgba(234, 187, 87, .12);
    --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 16px 40px -12px rgba(0,0,0,.6);
  }
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .dg-badge.tier-green { background: rgba(78, 194, 124, .15); }
  .dg-badge.tier-blue { background: rgba(90, 166, 221, .15); }
  .dg-badge.tier-red { background: rgba(255, 100, 103, .15); }
  .dg-badge.tier-purple { background: rgba(185, 138, 224, .15); }
  .menu-card, .policy, .dungeon, .region-card, .shot, .map-box { box-shadow: 0 0 0 1px rgba(128,128,128,.25); }
  .site-header { background: var(--background); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0; font-family: var(--sans); color: var(--foreground); background: var(--background);
  line-height: 1.65; font-size: 15px; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 16px; }
.muted { color: var(--muted-foreground); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: var(--primary-foreground); padding: 6px 12px; z-index: 200; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent); border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklch, var(--background) 85%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 12px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--primary); color: var(--primary-foreground); font-family: var(--display); font-size: 15px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--muted-foreground); }

.search { position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.search input, .input, .inline-search, select.input, textarea.input {
  width: 100%; height: 32px; border-radius: var(--radius); border: 1px solid var(--input);
  background: transparent; color: var(--foreground); padding: 4px 10px; font: inherit; font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
:root[data-theme="dark"] .search input, :root[data-theme="dark"] .input, :root[data-theme="dark"] .inline-search {
  background: color-mix(in oklch, var(--input) 30%, transparent);
}
textarea.input { height: auto; min-height: 76px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.search input:focus, .input:focus, .inline-search:focus { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent); }
.search input::placeholder, .input::placeholder, .inline-search::placeholder { color: var(--muted-foreground); }
.search-results {
  position: absolute; top: 40px; left: 0; right: 0; max-height: 60vh; overflow-y: auto;
  background: var(--popover); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 4px; z-index: 120;
}
.search-results a { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 6px; font-size: 14px; }
.search-results a:hover, .search-results a.hl { background: var(--accent); }
.search-results .sr-t { font-weight: 500; }
.search-results .sr-s { color: var(--muted-foreground); font-size: 12px; margin-left: auto; }
.search-results .sr-empty { padding: 12px; color: var(--muted-foreground); text-align: center; font-size: 13px; }

.icon-btn, .nav-toggle {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--radius);
  border: 1px solid var(--border); background: transparent; color: var(--foreground); cursor: pointer; font-size: 15px;
}
.icon-btn:hover, .nav-toggle:hover { background: var(--accent); }
.nav-toggle { display: none; }

/* ---------- Main nav (Nova tabs 느낌의 칩) ---------- */
.mainnav { border-top: 1px solid var(--border); }
.nav-scroll { display: flex; gap: 4px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-chip {
  flex-shrink: 0; height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px;
  border-radius: var(--radius); font-size: 13px; font-weight: 500; color: var(--muted-foreground);
  border: 1px solid transparent; white-space: nowrap; transition: background .12s, color .12s;
}
.nav-chip:hover { color: var(--foreground); background: var(--accent); }
.nav-chip.is-active { color: var(--foreground); background: var(--secondary); border-color: var(--border); }

/* ---------- Buttons (base-nova: h-8 · rounded-lg · px-2.5) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 10px;
  border-radius: var(--radius); font: inherit; font-weight: 500; font-size: 14px; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: background .12s, color .12s, transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: color-mix(in oklch, var(--primary) 80%, transparent); }
.btn-ghost, .btn-outline { background: var(--background); border-color: var(--border); color: var(--foreground); }
:root[data-theme="dark"] .btn-outline, :root[data-theme="dark"] .btn-ghost { background: color-mix(in oklch, var(--input) 30%, transparent); border-color: var(--input); }
.btn-ghost:hover, .btn-outline:hover { background: var(--muted); }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn-destructive { background: color-mix(in oklch, var(--destructive) 12%, transparent); color: var(--destructive); }
.btn-destructive:hover { background: color-mix(in oklch, var(--destructive) 20%, transparent); }
.btn-success { background: color-mix(in oklch, var(--success) 14%, transparent); color: var(--success); }
.btn-success:hover { background: color-mix(in oklch, var(--success) 22%, transparent); }
.btn-lg { height: 36px; padding: 0 14px; }
.btn-sm { height: 28px; padding: 0 8px; font-size: 13px; }

/* ---------- Badge (h-5 rounded-full) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 500; white-space: nowrap; border: 1px solid transparent;
  background: var(--secondary); color: var(--secondary-foreground);
}
.badge-default { background: var(--primary); color: var(--primary-foreground); }
.badge-outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.badge-destructive { background: color-mix(in oklch, var(--destructive) 14%, transparent); color: var(--destructive); }
.badge-success { background: color-mix(in oklch, var(--success) 14%, transparent); color: var(--success); }
.badge-warning { background: color-mix(in oklch, var(--warning) 16%, transparent); color: var(--warning); }
.badge-info { background: color-mix(in oklch, var(--info) 14%, transparent); color: var(--info); }

/* ---------- Card (rounded-xl · ring-1 foreground/10 · 16px) ---------- */
.card {
  background: var(--card); color: var(--card-foreground); border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--foreground) 10%, transparent); overflow: hidden;
}
.card-header { padding: 16px 16px 0; display: grid; gap: 2px; }
.card-title { font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0; display: flex; align-items: center; gap: 8px; }
.card-description { font-size: 13px; color: var(--muted-foreground); margin: 0; }
.card-content { padding: 16px; }
.card-footer { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); background: color-mix(in oklch, var(--muted) 50%, transparent); }
.card-header + .card-content { padding-top: 12px; }

/* ---------- Alert ---------- */
.alert { display: grid; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; font-size: 14px; background: var(--card); margin: 0 0 12px; }
.alert b { font-weight: 500; }
.alert p { margin: 0; color: var(--muted-foreground); font-size: 13px; }
.alert-destructive { color: var(--destructive); border-color: color-mix(in oklch, var(--destructive) 35%, transparent); }
.alert-destructive p { color: color-mix(in oklch, var(--destructive) 85%, transparent); }
.alert-success { color: var(--success); border-color: color-mix(in oklch, var(--success) 35%, transparent); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { height: 40px; padding: 0 8px; text-align: left; font-weight: 500; color: var(--foreground); white-space: nowrap; border-bottom: 1px solid var(--border); }
.table td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in oklch, var(--muted) 50%, transparent); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .mono { font-family: var(--mono); font-size: 12.5px; color: var(--muted-foreground); }

/* ---------- Hero ---------- */
main { padding-block: 24px 56px; min-height: 60vh; }
.hero { position: relative; text-align: center; padding: 48px 16px 36px; }
.hero-glow { display: none; }
.hero-inner { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted-foreground); font-weight: 500; font-size: 12px; margin: 0 0 16px; }
.hero-title { font-size: clamp(28px, 5.4vw, 48px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; margin: 0; }
.hero-title span { color: var(--brand); }
.hero-sub { color: var(--muted-foreground); font-size: 16px; margin: 14px auto 22px; max-width: 540px; }
.hero-cta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections / cards ---------- */
.section { margin-top: 40px; }
.section-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.menu-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: calc(var(--radius) + 4px);
  background: var(--card); box-shadow: 0 0 0 1px color-mix(in oklch, var(--foreground) 10%, transparent);
  transition: box-shadow .14s, background .14s;
}
.menu-card:hover { background: color-mix(in oklch, var(--muted) 60%, var(--card)); box-shadow: 0 0 0 1px color-mix(in oklch, var(--foreground) 18%, transparent); }
.menu-card.feature { box-shadow: 0 0 0 1px color-mix(in oklch, var(--brand) 45%, transparent); background: linear-gradient(180deg, var(--brand-soft), var(--card)); }
.mc-icon { width: 36px; height: 36px; border-radius: var(--radius); display: grid; place-items: center; background: var(--muted); font-size: 18px; flex-shrink: 0; }
.mc-body { display: flex; flex-direction: column; min-width: 0; }
.mc-body b { font-size: 14.5px; font-weight: 600; }
.mc-body em { font-style: normal; color: var(--muted-foreground); font-size: 12.5px; margin-top: 1px; }
.mc-arrow { margin-left: auto; color: var(--muted-foreground); font-size: 15px; transition: transform .14s; }
.menu-card:hover .mc-arrow { transform: translateX(3px); color: var(--foreground); }

.policy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.policy { background: var(--card); box-shadow: 0 0 0 1px color-mix(in oklch, var(--foreground) 10%, transparent); border-radius: calc(var(--radius) + 4px); padding: 14px 16px; }
.policy b { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.policy b::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--brand); }
.policy p { margin: 6px 0 0; color: var(--muted-foreground); font-size: 13px; line-height: 1.6; }

/* ---------- Doc / page ---------- */
.doc { max-width: 840px; margin-inline: auto; }
.doc-head { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.crumb { color: var(--muted-foreground); font-size: 13px; margin: 0 0 8px; }
.crumb a:hover { color: var(--foreground); }
.crumb span { margin: 0 6px; }
.doc-title { font-size: clamp(22px, 3.6vw, 30px); letter-spacing: -0.02em; margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.dt-icon { font-size: .85em; }
.doc-sub { color: var(--muted-foreground); font-size: 15px; margin: 8px 0 0; }

/* ---------- Prose (markdown) ---------- */
.prose { font-size: 15px; }
.prose h2 { font-size: 19px; margin: 36px 0 12px; padding-top: 12px; border-top: 1px solid var(--border); font-weight: 600; letter-spacing: -0.01em; }
.prose h2:first-child { border-top: 0; margin-top: 4px; }
.prose h3 { font-size: 16px; margin: 26px 0 8px; font-weight: 600; }
.prose h4 { font-size: 14.5px; margin: 18px 0 6px; font-weight: 600; color: var(--muted-foreground); }
.prose p { margin: 10px 0; }
.prose a { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand); }
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--muted-foreground); }
.prose strong { font-weight: 600; }
.prose code { background: var(--muted); border-radius: 5px; padding: 1px 5px; font-size: .88em; font-family: var(--mono); }
.prose blockquote { margin: 14px 0; padding: 8px 12px; border: 1px solid var(--border); border-left: 3px solid var(--brand); background: var(--card); border-radius: var(--radius); color: var(--muted-foreground); }
.prose blockquote p { margin: 4px 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0; font-size: 13.5px; display: block; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-weight: 500; white-space: nowrap; background: color-mix(in oklch, var(--muted) 50%, transparent); }

/* ---------- Dungeons ---------- */
.dungeon-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tier-tabs { display: inline-flex; gap: 2px; flex-wrap: wrap; padding: 3px; border-radius: var(--radius); background: var(--muted); }
.tier-tab { height: 26px; padding: 0 10px; border-radius: calc(var(--radius) - 3px); background: transparent; border: 1px solid transparent; color: var(--muted-foreground); font: inherit; font-weight: 500; font-size: 13px; cursor: pointer; }
.tier-tab:hover { color: var(--foreground); }
.tier-tab.is-active { color: var(--foreground); background: var(--background); border-color: var(--border); box-shadow: var(--shadow); }
:root[data-theme="dark"] .tier-tab.is-active { background: color-mix(in oklch, var(--input) 30%, transparent); }
.inline-search { min-width: 220px; flex: 1; max-width: 300px; }

.dungeon-list { display: flex; flex-direction: column; gap: 8px; }
.dungeon { background: var(--card); box-shadow: 0 0 0 1px color-mix(in oklch, var(--foreground) 10%, transparent); border-radius: calc(var(--radius) + 4px); overflow: hidden; }
.dungeon-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--foreground); font: inherit; }
.dungeon-head:hover { background: color-mix(in oklch, var(--muted) 50%, transparent); }
.dg-badge { flex-shrink: 0; font-size: 11.5px; font-weight: 500; height: 20px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; }
.dg-badge.tier-green { background: color-mix(in oklch, var(--success) 15%, transparent); color: var(--success); }
.dg-badge.tier-blue { background: color-mix(in oklch, var(--info) 15%, transparent); color: var(--info); }
.dg-badge.tier-red { background: color-mix(in oklch, var(--destructive) 15%, transparent); color: var(--destructive); }
.dg-badge.tier-purple { background: color-mix(in oklch, var(--violet) 15%, transparent); color: var(--violet); }
.dg-name { font-size: 15px; font-weight: 600; }
.dg-level { font-size: 12px; font-weight: 500; color: var(--brand); background: var(--brand-soft); height: 20px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; }
.dg-region { font-size: 12.5px; color: var(--muted-foreground); }
.dg-count { margin-left: auto; font-size: 12px; color: var(--muted-foreground); border: 1px solid var(--border); height: 20px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; }
.dg-toggle { color: var(--muted-foreground); font-size: 13px; transition: transform .18s; }
.dungeon.is-open .dg-toggle { transform: rotate(180deg); }
.dungeon-body { display: none; padding: 4px 14px 14px; border-top: 1px solid var(--border); }
.dungeon.is-open .dungeon-body { display: block; }
.dg-note { color: var(--muted-foreground); font-size: 13.5px; margin: 10px 0 12px; }

.mob-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.mob-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.mob-table th { text-align: left; height: 38px; padding: 0 12px; font-weight: 500; font-size: 12.5px; white-space: nowrap; color: var(--muted-foreground); background: color-mix(in oklch, var(--muted) 50%, transparent); }
.mob-table td { padding: 9px 12px; border-top: 1px solid var(--border); vertical-align: middle; }
.mob-table .c-exp, .mob-table .c-hp { white-space: nowrap; font-variant-numeric: tabular-nums; width: 90px; color: var(--success); }
.mob-table .c-hp { color: var(--destructive); }
.mob-table tr.is-boss td { background: color-mix(in oklch, var(--violet) 7%, transparent); }
.c-mob { display: flex; align-items: center; gap: 10px; }
.mob-ic { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #14161a; background: var(--c, #c9a24a); }
.mob-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mob-meta b { font-size: 14px; font-weight: 600; }
.mob-meta em { font-style: normal; color: var(--muted-foreground); font-size: 12px; }
.tag { display: inline-flex; align-items: center; height: 18px; font-size: 10.5px; font-weight: 600; padding: 0 6px; border-radius: 999px; vertical-align: middle; }
.tag-boss { background: color-mix(in oklch, var(--violet) 18%, transparent); color: var(--violet); }
.tag-aggro { background: color-mix(in oklch, var(--destructive) 14%, transparent); color: var(--destructive); }
.tag-calm { background: color-mix(in oklch, var(--success) 14%, transparent); color: var(--success); }
.drop-list { display: flex; flex-wrap: wrap; gap: 4px; }
.drop-chip { font-size: 12px; border: 1px solid var(--border); color: var(--muted-foreground); height: 20px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 999px; white-space: nowrap; }
.no-results { text-align: center; color: var(--muted-foreground); padding: 36px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 56px; padding: 24px 0 40px; }
.site-footer p { margin: 4px 0; font-size: 13px; }
.site-footer b { font-weight: 600; }

/* ---------- 404 ---------- */
.err { text-align: center; padding: 72px 16px; }
.err h1 { font-size: 64px; letter-spacing: -0.04em; margin: 0; }
.err p { color: var(--muted-foreground); font-size: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .header-inner { gap: 8px; }
  .brand-text em { display: none; }
  .search { max-width: none; }
  .nav-toggle { display: inline-grid; }
  .mainnav { position: fixed; left: 0; right: 0; top: 56px; background: var(--background); display: none; border-bottom: 1px solid var(--border); }
  .mainnav.open { display: block; }
  .nav-scroll { flex-wrap: wrap; padding-block: 10px; }
  .dungeon-controls { flex-direction: column; align-items: stretch; }
  .inline-search { max-width: none; }
  .c-mob { min-width: 200px; }
}
@media (min-width: 721px) and (max-width: 1024px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 인게임 웹뷰 임베드 모드 (?embed=1) ---------- */
body.embed .site-footer { display: none; }
body.embed .hero { padding: 26px 16px 18px; }
body.embed .hero-title { font-size: clamp(24px, 4.6vw, 36px); }
body.embed main { padding-block: 14px 24px; }
body.embed .section { margin-top: 28px; }
body.embed .card-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* =========================================================
   웹 관리자(/admin) — 사이드바 레이아웃
   ========================================================= */
.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.admin-side { border-right: 1px solid var(--border); background: color-mix(in oklch, var(--muted) 40%, var(--background)); padding: 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.admin-side .brand { padding: 6px 6px 14px; }
.side-label { font-size: 11.5px; color: var(--muted-foreground); padding: 10px 8px 4px; font-weight: 500; }
.side-link { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: var(--radius); font-size: 14px; color: var(--foreground); }
.side-link:hover { background: var(--accent); }
.side-link.is-active { background: var(--secondary); font-weight: 500; box-shadow: 0 0 0 1px var(--border); }
.side-link .count { margin-left: auto; }
.side-foot { margin-top: auto; display: flex; gap: 6px; align-items: center; padding: 8px 4px 0; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted-foreground); }
.admin-main { min-width: 0; }
.admin-top { height: 56px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; padding: 0 20px; position: sticky; top: 0; background: color-mix(in oklch, var(--background) 88%, transparent); backdrop-filter: blur(10px); z-index: 10; }
.admin-top h1 { font-size: 15px; font-weight: 600; margin: 0; }
.admin-top .spacer { flex: 1; }
.admin-body { padding: 20px; display: grid; gap: 16px; max-width: 1180px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; }
.stat .label { font-size: 13px; color: var(--muted-foreground); }
.stat .value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12px; color: var(--muted-foreground); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.form-row { display: grid; gap: 6px; margin-bottom: 12px; }
.form-row label { font-size: 13px; font-weight: 500; }
.form-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.form-inline .form-row { margin: 0; flex: 1; min-width: 120px; }
.hint { font-size: 12px; color: var(--muted-foreground); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius); background: var(--muted); }
.seg a { height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: calc(var(--radius) - 3px); font-size: 13px; font-weight: 500; color: var(--muted-foreground); border: 1px solid transparent; }
.seg a.is-active { background: var(--background); color: var(--foreground); border-color: var(--border); box-shadow: var(--shadow); }
:root[data-theme="dark"] .seg a.is-active { background: color-mix(in oklch, var(--input) 30%, transparent); }
.app-card .intro { white-space: pre-wrap; background: var(--muted); border-radius: var(--radius); padding: 8px 10px; font-size: 13.5px; margin: 8px 0; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted-foreground); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { text-align: center; color: var(--muted-foreground); padding: 28px; font-size: 14px; }
.flash { position: fixed; right: 16px; bottom: 16px; z-index: 300; max-width: 360px; box-shadow: var(--shadow-lg); animation: flashIn .2s ease-out; }
@keyframes flashIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; }
details.fb summary { cursor: pointer; list-style: none; }
details.fb summary::-webkit-details-marker { display: none; }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--border); }
  .admin-side .brand, .side-label, .side-foot { display: none; }
  .admin-body { padding: 14px; }
}

/* =========================================================
   공지 · 업데이트 (첫 화면 + /news) — 원문 Docs/baram-Beta-Test.txt → content/news.json
   ========================================================= */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.section-head .section-title { margin: 0; }
.home-hero-slim.hero { padding: 22px 16px 4px; }
.home-hero-slim .eyebrow { margin-bottom: 10px; }
.home-hero-slim .hero-title { font-size: clamp(24px, 3.8vw, 36px); }
.home-hero-slim .hero-sub { font-size: 15px; margin: 8px auto 14px; }
body.embed .home-hero-slim.hero { padding: 12px 16px 0; }
body.embed .home-hero-slim .hero-title { font-size: clamp(22px, 3.4vw, 30px); }
.news-home { margin-top: 24px; }
.news-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.news-main, .news-side { display: grid; gap: 12px; min-width: 0; }

.news-update, .news-notice {
  background: var(--card); border-radius: calc(var(--radius) + 4px); padding: 14px 16px;
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--foreground) 10%, transparent);
}
.news-update.is-latest { box-shadow: 0 0 0 1px color-mix(in oklch, var(--brand) 45%, transparent); background: linear-gradient(180deg, var(--brand-soft), var(--card) 70%); }
.nu-head, .nn-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nu-date { font-size: 12px; font-weight: 600; color: var(--brand); background: var(--brand-soft); height: 22px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.nu-title, .nn-head b { font-size: 15px; font-weight: 600; }
.nu-count { margin-left: auto; font-size: 12px; color: var(--muted-foreground); }
.nu-lines, .nn-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.nu-lines li, .nn-lines li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.nu-lines li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 5px; height: 5px; border-radius: 99px; background: var(--brand); }
.nn-lines li { padding-left: 0; color: var(--muted-foreground); font-size: 13.5px; }
.nn-lines li + li { border-top: 1px dashed var(--border); padding-top: 6px; }
.nu-lines a, .nn-lines a { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand); }

.news-prev { background: var(--card); border-radius: calc(var(--radius) + 4px); padding: 6px; box-shadow: 0 0 0 1px color-mix(in oklch, var(--foreground) 10%, transparent); }
.np-label { margin: 4px 8px 4px; font-size: 12px; color: var(--muted-foreground); font-weight: 500; }
.np-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius); font-size: 13.5px; min-width: 0; }
.np-row:hover { background: var(--accent); }
.np-date { flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--muted-foreground); min-width: 64px; font-variant-numeric: tabular-nums; }
.np-first { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-more { flex-shrink: 0; font-size: 12px; color: var(--muted-foreground); }

.news-page .news-notice { margin-bottom: 8px; }
.news-h2 { margin-top: 28px; }
.news-timeline { display: grid; gap: 10px; }

@media (max-width: 860px) {
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .np-date { min-width: 0; }
  .nu-count { display: none; }
}
body.embed .news-home { margin-top: 14px; }

/* ── 지역 · 맵 안내(/regions) — 인게임 스크린샷 가이드 ── */
.doc-wide { max-width: 1040px; }
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.region-card { display: flex; flex-direction: column; background: var(--card); border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: 0 0 0 1px color-mix(in oklch, var(--foreground) 10%, transparent); transition: box-shadow .14s; }
.region-card:hover { box-shadow: 0 0 0 1px color-mix(in oklch, var(--brand) 55%, transparent); }
.region-cover { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--muted); }
.region-cover-empty { display: grid; place-items: center; font-size: 42px; }
.region-card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.region-card-body b { font-size: 15px; }
.region-card-body em { font-style: normal; color: var(--muted-foreground); font-size: 13px; }
.region-meta { color: var(--muted-foreground); font-size: 12px; }
.region-route ol { margin: 0 0 8px; padding-left: 22px; font-size: 14.5px; }
.region-route li { margin: 4px 0; }
.map-index { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 18px; }
.map-sec { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--border); }
.map-title { font-size: 19px; font-weight: 600; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.shot { margin: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px color-mix(in oklch, var(--foreground) 8%, transparent); }
.shot img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.shot figcaption { padding: 6px 10px; font-size: 13px; color: var(--muted-foreground); }
.map-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.map-box { background: var(--card); border-radius: var(--radius); padding: 10px 14px; box-shadow: 0 0 0 1px color-mix(in oklch, var(--foreground) 8%, transparent); }
.map-box h3 { font-size: 14px; margin: 0 0 6px; }
.map-box ul { margin: 0; padding-left: 18px; font-size: 13.5px; }
.map-box li { margin: 3px 0; }
.map-box .mono { font-family: var(--mono); font-size: 12px; color: var(--muted-foreground); }
.map-box a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand); }
.map-link { margin: 8px 0 0; font-size: 13px; }

/* ── 지역 가이드 2판(2026-10-02) — 길잡이 말풍선 · 목차 · 지역 카드 · 몹 도감 · 퀘스트 단계 · 표 ──
   ⚠ 인게임 F1 웹뷰(구형 Chromium) 호환: 색은 var() 토큰 · rgba 만 쓴다(oklch·color-mix 직접 금지). */
.rg { font-size: 15.5px; }
.rg-sec { margin-top: 30px; padding-top: 6px; }
.rg-h2 { font-size: 22px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rg-h2 .muted { font-size: 13.5px; font-weight: 400; }
.gd-hello { display: flex; align-items: flex-end; gap: 14px; margin: 6px 0 14px; padding: 16px 18px; background: var(--brand-soft); border-radius: calc(var(--radius) + 4px); }
.gd-portrait { width: 60px; height: auto; image-rendering: pixelated; flex-shrink: 0; }
.gd-hello-body { flex: 1; min-width: 0; }
.gd-bubble { position: relative; margin: 0; padding: 10px 14px; background: var(--card); color: var(--card-foreground); border-radius: 12px; border: 1px solid var(--border); font-size: 14.5px; line-height: 1.6; box-shadow: var(--shadow); }
.gd-bubble b { display: block; font-size: 12px; color: var(--brand); margin-bottom: 2px; }
.gd-bubble-lg { font-size: 16px; padding: 12px 16px; }
.gd-bubble::before { content: ""; position: absolute; left: -7px; bottom: 14px; width: 12px; height: 12px; background: var(--card); border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); transform: rotate(45deg); }
.gd-say { display: flex; align-items: flex-end; gap: 10px; margin: 8px 0 10px; }
.gd-face { width: 30px; height: auto; image-rendering: pixelated; flex-shrink: 0; }
.gd-say .gd-bubble { flex: 1; min-width: 0; }
.rg-toc { position: sticky; top: calc(var(--head-h) + 4px); z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; margin: 0 0 6px; background: var(--background); border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); box-shadow: var(--shadow); }
.rg-toc a { padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--secondary); color: var(--secondary-foreground); }
.rg-toc a:hover { background: var(--brand-soft); color: var(--foreground); }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.hl-card { display: flex; gap: 10px; padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.hl-icon { font-size: 24px; line-height: 1.2; }
.hl-card b { font-size: 15px; }
.hl-card p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted-foreground); }
.route-list { margin: 0; padding-left: 22px; }
.route-list li { margin: 6px 0; }
.area-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; padding: 14px; margin-bottom: 14px; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); }
.area-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.area-shots .shot:only-child { grid-column: 1 / -1; }
.area-title { font-size: 19px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lv-badge { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.area-desc { margin: 6px 0; }
.tip-list { margin: 6px 0; padding-left: 20px; font-size: 14px; }
.tip-list li { margin: 3px 0; }
.area-mobs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; }
.mob-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 3px; border-radius: 999px; background: var(--secondary); font-size: 13px; }
.mob-chip img { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; }
.mob-group { font-size: 16px; margin: 18px 0 8px; color: var(--muted-foreground); }
.mob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.mob-card { display: flex; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.mob-pic { width: 84px; height: 96px; flex-shrink: 0; display: grid; place-items: center; background: var(--muted); border-radius: 8px; }
.mob-pic img { max-width: 78px; max-height: 90px; image-rendering: pixelated; }
.mob-body { min-width: 0; flex: 1; }
.mob-name { font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.mob-desc { margin: 2px 0 6px; font-size: 13px; color: var(--muted-foreground); }
.mob-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0 0 6px; }
.mob-stats div { background: var(--muted); border-radius: 6px; padding: 3px 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.mob-stats dt { font-size: 11px; color: var(--muted-foreground); white-space: nowrap; }
.mob-stats dd { margin: 0; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mob-line { margin: 2px 0; font-size: 13px; }
.mob-line .muted { display: inline-block; min-width: 30px; }
.tag-size { background: var(--secondary); color: var(--secondary-foreground); }
.q-index { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.quest { padding: 16px; margin-bottom: 18px; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); }
.quest-title { font-size: 20px; margin: 0 0 8px; }
.quest-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.quest-meta div { display: flex; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--secondary); font-size: 13.5px; }
.quest-meta dt { color: var(--muted-foreground); }
.quest-meta dd { margin: 0; font-weight: 600; }
.quest-meta .q-reward { background: var(--brand-soft); }
.quest-sum { margin: 4px 0 10px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--border); }
.step-num { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; }
.step-body { flex: 1; min-width: 0; }
.step-body h4 { margin: 4px 0 2px; font-size: 16.5px; }
.step-detail { margin: 4px 0 8px; font-size: 14.5px; }
.step-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 10px; max-width: 900px; }
.step-shots .shot:only-child { max-width: 620px; }
.rg-table { margin-bottom: 18px; }
.rg-table h3 { font-size: 16px; margin: 0 0 6px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.tbl-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl-wrap th { text-align: left; padding: 8px 10px; background: var(--muted); font-weight: 600; white-space: nowrap; }
.tbl-wrap td { padding: 8px 10px; border-top: 1px solid var(--border); }
.tbl-note { font-size: 13px; margin: 6px 2px 0; }
.map-det { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 6px; background: var(--card); }
.map-det > summary { cursor: pointer; padding: 10px 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; list-style: none; }
.map-det > summary::-webkit-details-marker { display: none; }
.map-det > summary::after { content: "▾"; margin-left: auto; color: var(--muted-foreground); }
.map-det[open] > summary::after { content: "▴"; }
.map-det[open] { padding-bottom: 10px; }
.map-det > *:not(summary) { margin-left: 12px; margin-right: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; image-rendering: pixelated; border-radius: 6px; }
.lightbox figcaption { color: #fff; font-size: 15px; margin-top: 8px; }
.lb-close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border-radius: 999px; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 18px; cursor: pointer; }
@media (max-width: 760px) {
  .area-card { grid-template-columns: 1fr; }
  .rg-toc { position: static; }
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .tag-aggro { background: rgba(231, 0, 11, .12); }
  .tag-calm { background: rgba(46, 158, 91, .14); }
}

/* ── 홍보 이미지(나바클 공식) · 퀘스트 목록 카드 / 상세 (2026-10-02) ──
   인게임 F1 웹뷰 = 구형 Chromium → color-mix · aspect-ratio 를 쓰지 않는다(토큰 · rgba · padding-top 비율 박스만). */
.brand-logo { width: 36px; height: 36px; border-radius: 999px; display: block; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(234,187,87,.45); }

.promo-hero { position: relative; margin: 18px 0 8px; border-radius: calc(var(--radius) + 8px); overflow: hidden; background: #120c1c; box-shadow: var(--shadow-lg); }
.promo-hero-img { display: block; width: 100%; height: auto; }
.promo-hero-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 24px 22px; text-align: center;
  background: linear-gradient(180deg, rgba(10,6,18,0) 0%, rgba(10,6,18,.78) 48%, rgba(10,6,18,.94) 100%); color: #fafafa; }
.promo-hero-body .eyebrow { color: #e9dcff; border-color: rgba(255,255,255,.25); background: rgba(20,12,34,.5); margin-bottom: 10px; }
.promo-hero-title { font-size: clamp(22px, 3.4vw, 34px); line-height: 1.2; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
.promo-hero-title span { color: #eabb57; }
.promo-hero-body .hero-sub { color: #d8d0e6; margin: 8px auto 14px; font-size: 15px; }
.promo-hero-body .btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: #fafafa; }
.promo-hero-body .btn-ghost:hover { background: rgba(255,255,255,.16); }
.promo-hero-body .btn-primary { background: #eabb57; color: #1a1205; border-color: #eabb57; }
@media (max-width: 760px) {
  .promo-hero { background: var(--card); }
  .promo-hero-body { position: static; padding: 14px 16px 18px; background: var(--card); color: var(--foreground); }
  .promo-hero-body .eyebrow { color: var(--muted-foreground); border-color: var(--border); background: transparent; }
  .promo-hero-body .hero-sub { color: var(--muted-foreground); }
  .promo-hero-title span { color: var(--brand); }
  .promo-hero-body .btn-ghost { background: var(--background); border-color: var(--border); color: var(--foreground); }
}

.promo-strip { margin: 16px 0 14px; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: #120c1c; box-shadow: var(--shadow-lg); }
.promo-strip img { display: block; width: 100%; height: auto; }

.q-sec { margin: 22px 0 30px; }
.q-sec-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 20px; margin: 0 0 12px; }
.q-sec-link { margin-left: auto; font-size: 13.5px; font-weight: 500; color: var(--muted-foreground); }
.q-sec-link:hover { color: var(--foreground); }
.q-count { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 700; vertical-align: middle; }

.qcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.qcard { display: flex; flex-direction: column; background: var(--card); border-radius: calc(var(--radius) + 6px); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(128,128,128,.22), var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.qcard:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(234,187,87,.65), var(--shadow-lg); }
.qcard-cover { position: relative; height: 0; padding-top: 56.25%; background: #120c1c; overflow: hidden; }
.qcard-cover img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; image-rendering: pixelated; transition: transform .3s ease; }
.qcard-cover img.qcard-fallback { image-rendering: auto; }
.qcard:hover .qcard-cover img { transform: scale(1.04); }
.qcard-cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.45)); pointer-events: none; }
/* 표지 위 띠 두 개(지역 · 반복 조건) — 한 줄 가로 묶음. 긴 반복 조건은 남은 폭에서 말줄임(전체 문구 = title · 상세 페이지). */
.qcard-tags { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.qcard-region, .qcard-repeat { display: block; height: 24px; line-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: auto; }
.qcard-region { flex: 0 0 auto; background: rgba(12,8,20,.78); color: #fafafa; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.qcard-repeat { flex: 0 1 auto; min-width: 0; margin-left: auto; overflow: hidden; text-overflow: ellipsis; background: #eabb57; color: #1a1205; }
.qcard-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 14px; }
.qcard-title { margin: 0 0 6px; font-size: 17.5px; line-height: 1.35; letter-spacing: -0.015em; }
.qcard-sum { margin: 0 0 10px; color: var(--muted-foreground); font-size: 14px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qcard-meta { margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.qcard-meta div { display: flex; gap: 8px; }
.qcard-meta dt { flex-shrink: 0; width: 34px; color: var(--muted-foreground); }
.qcard-meta dd { margin: 0; font-weight: 500; min-width: 0; }
.qcard-meta .qm-reward dd { color: var(--brand); font-weight: 700; }
.qcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13px; }
.qcard-go { font-weight: 600; color: var(--foreground); }
.qcard-go span { display: inline-block; transition: transform .15s ease; }
.qcard:hover .qcard-go span { transform: translateX(3px); }

.qd-hero { display: flex; gap: 20px; align-items: flex-start; margin: 0 0 26px; padding: 16px; background: var(--card); border-radius: calc(var(--radius) + 6px); box-shadow: 0 0 0 1px rgba(128,128,128,.22), var(--shadow); }
.qd-cover { display: block; flex: 0 0 46%; max-width: 520px; border-radius: var(--radius); overflow: hidden; background: #120c1c; }
.qd-cover img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.qd-info { flex: 1; min-width: 0; }
.qd-region { position: static; display: inline-block; margin-bottom: 10px; }
.qd-sum { margin: 0 0 14px; font-size: 15.5px; line-height: 1.7; }
.qd-meta { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.qd-meta div { display: flex; gap: 10px; padding: 8px 12px; border-radius: var(--radius); background: var(--secondary); font-size: 14px; }
.qd-meta dt { flex-shrink: 0; width: 36px; color: var(--muted-foreground); }
.qd-meta dd { margin: 0; font-weight: 600; min-width: 0; }
.qd-meta .qm-reward { background: var(--brand-soft); }
.qd-meta .qm-reward dd { color: var(--brand); }
.qd-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 8px; padding-top: 18px; border-top: 1px solid var(--border); }
.qd-nav > * { flex: 1; }
.qd-nav .btn { flex: 0 0 auto; }
.qd-nav-a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px rgba(128,128,128,.22); font-size: 13px; min-width: 0; }
.qd-nav-a b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qd-nav-a:hover { box-shadow: 0 0 0 1px rgba(234,187,87,.65); }
.qd-next { text-align: right; }
@media (max-width: 760px) {
  .qcard-grid { grid-template-columns: 1fr; }
  .qd-hero { flex-direction: column; padding: 12px; }
  .qd-cover { flex: none; width: 100%; max-width: none; }
  .qd-nav { flex-wrap: wrap; }
  .qd-nav .btn { order: 3; width: 100%; flex: 1 0 100%; }
}
.q-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.q-fbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--foreground); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.q-fbtn span { color: var(--muted-foreground); font-weight: 500; }
.q-fbtn:hover { border-color: rgba(234,187,87,.6); }
.q-fbtn.is-on { background: #eabb57; border-color: #eabb57; color: #1a1205; }
.q-fbtn.is-on span { color: #5a3f0c; }
.qcard-cell { display: flex; }
.qcard-cell > .qcard { flex: 1; }
.q-empty { text-align: center; padding: 30px 0; }
@media (min-width: 761px) {
  .promo-hero-img { height: 470px; object-fit: cover; object-position: center 22%; }
  body.embed .promo-hero-img { height: 380px; }
}
/* 모바일 가로 넘침 방지(2026-10-02 실측: 단계 스크린샷 격자 420px 고정 · 공지 격자 1fr 가 긴 줄에 늘어남) */
.news-main, .news-side { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .news-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .step-shots { grid-template-columns: minmax(0, 1fr); }
  .step-shots .shot:only-child { max-width: none; }
  .step { gap: 8px; }
}
.nu-lines li, .np-row { overflow-wrap: anywhere; }

/* 던전 상세 공략 링크(2026-10-03) — F1 구형 Chromium 호환: rgba/hex 만 */
.tag-guide { background: rgba(234, 187, 87, .16); color: #eabb57; }
.dg-more { margin: 4px 0 12px; }
.dg-more .btn { font-size: 13.5px; }

/* ── 던전 가이드 카드(2026-10-04) — F1 구형 Chromium 호환: rgba/hex 만 ── */
.dg-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 6px 0 18px; }
.dg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dg-chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--card); color: inherit; font: inherit; font-size: 14px; cursor: pointer; box-shadow: 0 0 0 1px rgba(128,128,128,.25); }
.dg-chip span { opacity: .6; margin-left: 4px; font-size: 12px; }
.dg-chip.is-active { background: #eabb57; color: #1a1408; box-shadow: none; font-weight: 700; }
.dg-region { margin-bottom: 26px; }
.dgcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dgcard { display: flex; flex-direction: column; background: var(--card); border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: 0 0 0 1px rgba(128,128,128,.22); transition: transform .15s ease, box-shadow .15s ease; }
.dgcard:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(234,187,87,.65), 0 10px 30px -12px rgba(0,0,0,.45); }
.dgcard-cover { position: relative; height: 0; padding-top: 56%; background: #120c1c; overflow: hidden; }
.dgcard-cover img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.dgcard-cover.is-mobs { background: radial-gradient(circle at 50% 60%, #2a2238 0%, #120c1c 70%); }
.dgcard-mobs { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 4%; padding: 0 8% 8%; }
.dgcard-mobs img { position: static; width: auto; height: 70%; max-width: 30%; object-fit: contain; image-rendering: pixelated; }
.dgcard-badge { position: absolute; top: 10px; left: 10px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(12,8,20,.8); color: #eabb57; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; box-shadow: 0 0 0 1px rgba(234,187,87,.5); }
.dgcard-body { padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dgcard-title { margin: 0; font-size: 16.5px; }
.dgcard-lv { margin: 0; font-size: 13px; color: #eabb57; font-weight: 600; }
.dgcard-note { margin: 2px 0 0; font-size: 13px; opacity: .78; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dgcard-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.dgcard-avatars { display: flex; gap: 2px; align-items: flex-end; min-height: 30px; }
.dgcard-avatars img { height: 30px; width: auto; max-width: 40px; object-fit: contain; image-rendering: pixelated; }
/* 몹 표·드랍 칩 그림 */
.mob-pic-sm { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; flex: 0 0 44px; }
.drop-chip img, .drop-it img { width: 20px; height: 20px; object-fit: contain; image-rendering: pixelated; vertical-align: middle; margin-right: 4px; }
.drop-it { display: inline-flex; align-items: center; margin-right: 8px; white-space: nowrap; }
@media (max-width: 560px) { .dgcard-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .dgcard-note { display: none; } }

/* ---------- 영상(/videos) — 공식 유튜브 채널 · 롱폼/쇼츠 ----------
   ⚠ 인게임 F1 웹뷰(구형 Chromium) 호환: oklch·color-mix·aspect-ratio·flex gap 을 쓰지 않는다
   (비율 상자는 padding-top 트릭, 간격은 grid gap · margin). */
.vchannel { display: flex; align-items: center; padding: 12px 14px; margin: 0 0 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.vch-logo { width: 36px; height: 36px; border-radius: 10px; background: #e62117; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; margin-right: 12px; }
.vch-body { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.vch-body b { font-size: 15px; }
.vch-body em { font-style: normal; font-size: 12.5px; color: var(--muted-foreground); }
.vtabs { display: inline-flex; padding: 3px; border-radius: var(--radius); background: var(--muted); margin: 0 0 18px; }
.vtab { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 8px; font-size: 14px; color: var(--muted-foreground); }
.vtab span { margin-left: 6px; font-size: 12px; opacity: .8; }
.vtab:hover { color: var(--foreground); }
.vtab.is-active { background: var(--background); color: var(--foreground); font-weight: 600; box-shadow: var(--shadow); }
.vsec { margin: 0 0 26px; }
.vsec[hidden] { display: none; }
.vgrid { display: grid; grid-gap: 14px; }
.vgrid-long { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.vgrid-short { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.vcard { display: block; width: 100%; padding: 0; margin: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .12s ease, border-color .12s ease; }
.vcard:hover { transform: translateY(-2px); border-color: var(--brand); }
.vthumb { position: relative; display: block; width: 100%; height: 0; padding-top: 56.25%; background: #000; overflow: hidden; }
.vcard-short .vthumb { padding-top: 177.78%; }
.vthumb img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vplay { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; padding-left: 3px; box-sizing: border-box; transition: background .12s ease; }
.vcard:hover .vplay { background: #e62117; }
.vtag { position: absolute; left: 8px; top: 8px; padding: 1px 8px; border-radius: 999px; background: #e62117; color: #fff; font-size: 11.5px; font-weight: 600; }
.vmeta { display: block; padding: 10px 12px 12px; }
.vtitle { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; max-height: 2.8em; overflow: hidden; }
.vdate { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--muted-foreground); }
.vempty { text-align: center; padding: 48px 16px; border: 1px dashed var(--border); border-radius: var(--radius); }
.vempty p { margin: 4px 0; }
.vempty-icon { font-size: 40px; }
.vmodal { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 300; display: flex; align-items: center; justify-content: center; }
.vmodal[hidden] { display: none; }
.vmodal-dim { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0,0,0,.78); }
.vmodal-box { position: relative; width: 92%; max-width: 1040px; background: #111; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.vmodal-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 14px; color: #fff; }
.vmodal-head b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 10px; }
.vmodal-head .btn { background: #222; border-color: #333; color: #fff; flex-shrink: 0; }
.vframe { position: relative; width: 100%; height: 0; padding-top: 56.25%; background: #000; }
.vframe iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; }
.vframe.is-short { width: 360px; max-width: 100%; margin: 0 auto; padding-top: 0; height: 640px; }
.vmodal-box.is-short { max-width: 380px; }
body.vmodal-open { overflow: hidden; }
body.embed .vmodal-box { width: 96%; }
body.embed .vframe.is-short { width: 315px; height: 560px; }
body.embed .vmodal-box.is-short { max-width: 335px; }
/* 홈 「최근 영상」 줄 */
.vhome { display: grid; grid-gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ── 마법 직업별 탭 (skill.md · tools/guide/export-guide-spells.cjs) — CSS 라디오 탭(JS 없음 · F1 웹뷰 호환) ── */
.sp-tabs { margin: 14px 0 6px; }
.sp-tabs > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.sp-tabs > label { display: inline-block; padding: 8px 16px; margin: 0 4px 6px 0; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; background: var(--card); color: var(--foreground); }
.sp-tabs > label:hover { border-color: var(--brand); }
.sp-panel { display: none; margin-top: 8px; }
#sp-warrior:checked ~ label[for="sp-warrior"], #sp-rogue:checked ~ label[for="sp-rogue"],
#sp-shaman:checked ~ label[for="sp-shaman"], #sp-necro:checked ~ label[for="sp-necro"] { background: var(--brand); border-color: var(--brand); color: #fff; }
#sp-warrior:checked ~ #sp-panel-warrior, #sp-rogue:checked ~ #sp-panel-rogue,
#sp-shaman:checked ~ #sp-panel-shaman, #sp-necro:checked ~ #sp-panel-necro { display: block; }
.sp-master { margin: 6px 0 4px; font-size: 14px; }
.sp-sub { margin: 18px 0 4px; font-size: 15px; }
.sp-sum { margin: 8px 0 0; font-size: 13px; color: var(--muted-foreground); }
.sp-table td.sp-lv { white-space: nowrap; font-weight: 600; text-align: center; }
.sp-table td.sp-nm { white-space: nowrap; font-weight: 600; }
.sp-table td.sp-gold { white-space: nowrap; text-align: right; }
.sp-table td.sp-mat { min-width: 160px; }
.sp-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 500; background: var(--brand-soft); color: var(--foreground); }

/* ── 페이지 섹션 탭 (app.js 「페이지 섹션 탭」) — 위에 붙는 탭 바 ── */
.pg-tabs { position: sticky; top: var(--head-h); z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; padding: 8px 0; background: var(--background); border-bottom: 1px solid var(--border); }
.pg-tab { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--foreground); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pg-tab:hover { border-color: var(--brand); }
.pg-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pg-sec > h2:first-child { margin-top: 6px; }
