/* ==========================================================================
   chegan · 第五人格战术工具
   Original visual system. No external assets.
   ========================================================================== */

:root {
  --bg: #0a0c0f;
  --bg-elev: #0f1216;
  --panel: #13171c;
  --panel-2: #171c22;
  --panel-3: #1d232b;
  --ink: #eee6d6;
  --ink-soft: #cfc6b6;
  --muted: #8e8b84;
  --faint: #5f605e;
  --gold: #d5b26d;
  --gold-2: #a8864d;
  --gold-dim: rgba(213, 178, 109, .16);
  --teal: #79b9ae;
  --teal-dim: rgba(121, 185, 174, .14);
  --red: #c56d60;
  --red-dim: rgba(197, 109, 96, .15);
  --blue: #86a9c7;
  --line: #282824;
  --line-soft: rgba(238, 230, 214, .08);
  --line-gold: rgba(213, 178, 109, .25);
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --radius: 4px;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Georgia", serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Consolas", monospace;
  --sidebar: 252px;
  --header: 70px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #3a3933 #0a0c0f; }
html, body { width: 100%; max-width: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
.content, .main, .hero__copy, .tool-grid > *, .map-detail-grid > *, .route-detail__body > * { min-width: 0; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(213, 178, 109, .075), transparent 60%),
    radial-gradient(900px 700px at 15% 105%, rgba(121, 185, 174, .05), transparent 60%),
    linear-gradient(180deg, #0a0c0f, #090b0d 45%, #0b0d10);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(238, 230, 214, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 230, 214, .025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 78%);
}
::selection { background: rgba(213, 178, 109, .28); color: #fff; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 200;
  background: var(--gold); color: #16130d; padding: 10px 16px; border-radius: 2px;
  font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ---------- shell ---------- */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 60;
  width: var(--sidebar);
  display: flex; flex-direction: column;
  padding: 26px 20px 20px;
  background:
    linear-gradient(180deg, rgba(19, 22, 27, .96), rgba(10, 12, 15, .98)),
    radial-gradient(400px 300px at 10% 0%, rgba(213, 178, 109, .06), transparent);
  border-right: 1px solid var(--line);
}
.sidebar::after {
  content: ""; position: absolute; top: 0; right: -1px; width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--gold-dim) 12%, transparent 60%);
}
.sidebar__top { display: flex; align-items: flex-start; justify-content: space-between; }
.brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.brand__mark { width: 42px; height: 42px; color: var(--gold); flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand__text b {
  font-family: var(--serif); font-size: 20px; letter-spacing: .18em; font-weight: 600;
  color: var(--ink);
}
.brand__text small {
  margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .24em;
  white-space: nowrap;
}
.icon-btn {
  border: 1px solid transparent; background: transparent; color: var(--muted);
  width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 2px;
  cursor: pointer; transition: .18s ease;
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.icon-btn:hover { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.03); }
.sidebar__close { display: none; }

.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 42px; }
.nav__label {
  margin: 0 10px 9px; font-family: var(--mono); font-size: 9px; letter-spacing: .22em;
  color: var(--faint); text-transform: uppercase;
}
.nav__label--second { margin-top: 25px; }
.nav__item {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 10px 11px; color: #a7a49c; border: 1px solid transparent; border-radius: 2px;
  font-size: 13px; letter-spacing: .04em; transition: .18s ease;
}
.nav__item::before {
  content: ""; position: absolute; left: -20px; top: 50%; width: 2px; height: 0;
  background: var(--gold); transform: translateY(-50%); transition: .2s ease;
}
.nav__item:hover { color: var(--ink); background: rgba(255,255,255,.025); }
.nav__item.is-active { color: var(--ink); background: linear-gradient(90deg, rgba(213,178,109,.10), transparent 80%); border-color: rgba(213,178,109,.10); }
.nav__item.is-active::before { height: 22px; }
.nav__item.is-active .nav__icon { color: var(--gold); }
.nav__icon { width: 18px; height: 18px; flex: none; color: #6e706c; display: grid; place-items: center; }
.nav__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.nav__key { margin-left: auto; font-family: var(--mono); font-size: 9px; color: #444540; }
.sidebar__footer { margin-top: auto; padding-top: 22px; }
.dossier {
  border: 1px solid var(--line); background: rgba(255,255,255,.015);
  padding: 12px 13px; border-radius: 2px;
}
.dossier__row { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: var(--muted); line-height: 2; }
.dossier__row b { color: var(--ink-soft); font-weight: 500; font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.is-beta { color: var(--gold) !important; }
.owner { margin-top: 13px; font-size: 9px; letter-spacing: .08em; color: #5f605b; }
.owner b { color: #9f9278; font-weight: 600; }

.content { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 40px;
  background: rgba(10, 12, 15, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar__menu { display: none; }
.crumbs { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 9px; letter-spacing: .16em; white-space: nowrap; overflow: hidden; }
.crumbs__root { color: var(--faint); }
.crumbs__sep { color: #41423d; }
.crumbs__current { color: var(--gold); overflow: hidden; text-overflow: ellipsis; }
.search-trigger {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); background: rgba(255,255,255,.018); color: var(--muted);
  padding: 7px 10px; border-radius: 2px; cursor: pointer; font-size: 11px; transition: .18s ease;
}
.search-trigger:hover { border-color: var(--line-gold); color: var(--ink-soft); background: rgba(213,178,109,.04); }
.search-trigger__icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
kbd {
  display: inline-block; padding: 1px 5px; border: 1px solid #393933; border-radius: 2px;
  font-family: var(--mono); font-size: 8px; color: #77776f; background: #111317; line-height: 1.6;
}
.signal-chip {
  display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted);
  border-left: 1px solid var(--line); padding-left: 16px; transition: .18s ease;
}
.signal-chip:hover { color: var(--ink); }
.signal-chip b { color: var(--gold); font-family: var(--mono); font-weight: 500; }
.signal-chip__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 4px rgba(121,185,174,.09); animation: pulse 2.8s infinite;
}
.brand-chip {
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: #6c6354;
  border: 1px solid #302d26; padding: 5px 8px; border-radius: 2px;
}
.main { flex: 1; padding: 38px 40px 80px; width: 100%; max-width: 1540px; margin: 0 auto; outline: none; }
.site-footer {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  padding: 27px 40px 32px; border-top: 1px solid var(--line-soft);
  color: #5d5e59; font-size: 9px; letter-spacing: .04em;
}
.site-footer > div:first-child { display: flex; gap: 12px; align-items: flex-start; }
.footer-mark {
  width: 22px; height: 22px; border: 1px solid #3e3a31; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-2); font-family: var(--serif);
  font-size: 11px; flex: none; margin-top: 2px;
}
.footer-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none;
  border: 1px solid rgba(213,178,109,.38); margin-top: 1px;
  box-shadow: 0 0 0 3px rgba(213,178,109,.045);
}
.site-footer p { line-height: 1.8; }
.site-footer b { color: #8d8679; font-weight: 500; }
.site-footer__meta { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.site-footer__meta a { color: #8c806b; border-bottom: 1px solid transparent; }
.site-footer__meta a:hover { border-color: #8c806b; }
.mobile-nav { display: none; }
.sidebar-scrim { display: none; }

/* ---------- shared ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--gold-2);
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.page-head h1 {
  font-family: var(--serif); font-size: clamp(28px, 3.3vw, 45px); font-weight: 500;
  letter-spacing: .06em; line-height: 1.15; margin-top: 9px;
}
.page-head p { max-width: 620px; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.page-head__meta { display: flex; gap: 26px; flex-wrap: wrap; flex: none; padding-bottom: 3px; }
.head-stat { min-width: 72px; }
.head-stat b { display: block; font-family: var(--serif); font-size: 25px; font-weight: 500; color: var(--ink); line-height: 1.2; }
.head-stat span { font-size: 9px; letter-spacing: .12em; color: var(--faint); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 46px 0 17px; }
.section-head h2 { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: .06em; }
.section-head p { color: var(--muted); font-size: 10px; margin-top: 4px; }
.section-head__link { color: var(--gold-2); font-size: 10px; letter-spacing: .06em; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.section-head__link:hover { color: var(--gold); }
.section-head__link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.rule { height: 1px; background: linear-gradient(90deg, var(--line-gold), var(--line), transparent); margin: 24px 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 16px; border: 1px solid var(--line); background: transparent;
  color: var(--ink-soft); font-size: 11px; letter-spacing: .04em; border-radius: 2px;
  cursor: pointer; transition: .18s ease;
}
.btn:hover { border-color: var(--line-gold); color: var(--ink); background: rgba(213,178,109,.045); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #17130c; font-weight: 600; }
.btn--gold:hover { background: #e2c17d; border-color: #e2c17d; color: #17130c; }
.btn--ghost { border-color: var(--line); }
.btn--sm { min-height: 30px; padding: 0 11px; font-size: 10px; }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.filter-chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
  padding: 5px 11px; border-radius: 100px; font-size: 10px; letter-spacing: .04em; transition: .16s ease;
}
.filter-chip:hover { color: var(--ink); border-color: #45443c; }
.filter-chip.is-active { color: #17130c; background: var(--gold); border-color: var(--gold); }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px;
  border: 1px solid var(--line); color: #928f86; font-size: 9px; letter-spacing: .04em; border-radius: 2px;
}
.tag--gold { color: var(--gold); border-color: rgba(213,178,109,.25); background: rgba(213,178,109,.05); }
.tag--teal { color: var(--teal); border-color: rgba(121,185,174,.22); background: var(--teal-dim); }
.tag--red { color: var(--red); border-color: rgba(197,109,96,.22); background: var(--red-dim); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.notice {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 13px;
  border: 1px solid #2b2922; background: rgba(213,178,109,.035);
  color: #8f887b; font-size: 10px; line-height: 1.8; border-radius: 2px;
}
.notice svg { width: 14px; height: 14px; flex: none; margin-top: 2px; fill: none; stroke: var(--gold-2); stroke-width: 1.5; }
.notice b { color: var(--gold-2); font-weight: 500; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); font-size: 12px; }

/* ---------- home hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 40px; align-items: center; padding: 16px 0 26px;
}
.hero__copy { position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(46px, 6.6vw, 86px); font-weight: 400;
  letter-spacing: .07em; line-height: 1.07; margin-top: 16px;
}
.hero h1 em {
  position: relative; display: inline-block; font-style: normal; color: var(--gold);
}
.hero h1 em::after {
  content: ""; position: absolute; left: 2px; right: -4px; bottom: 8px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: .55;
}
.hero__sub { margin-top: 20px; max-width: 480px; color: #aaa397; font-size: 13px; line-height: 2; }
.hero__sub b { color: var(--ink-soft); font-weight: 500; }
.hero__actions { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero__meta {
  margin-top: 26px; display: flex; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 8px; letter-spacing: .12em; color: #5e605b;
}
.hero__meta span { display: flex; align-items: center; gap: 6px; }
.hero__meta span::before { content: ""; width: 4px; height: 4px; background: var(--gold-2); border-radius: 50%; }
.hero__visual { position: relative; min-height: 370px; display: grid; place-items: center; }
.hero__visual::before {
  content: ""; position: absolute; inset: 8% 4%;
  border: 1px solid rgba(213,178,109,.10); border-radius: 50%;
  transform: rotate(-14deg);
}
.hero__visual::after {
  content: ""; position: absolute; inset: 18% 13%;
  border: 1px dashed rgba(238,230,214,.075); border-radius: 50%;
  transform: rotate(22deg);
}
.radar { position: relative; width: min(100%, 390px); aspect-ratio: 1; }
.radar svg { width: 100%; height: 100%; overflow: visible; }
.radar__caption {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  text-align: center; white-space: nowrap;
}
.radar__caption b { display: block; font-family: var(--serif); color: var(--gold); font-size: 21px; font-weight: 500; letter-spacing: .08em; }
.radar__caption span { font-size: 8px; letter-spacing: .18em; color: var(--faint); }
.radar__tag {
  position: absolute; right: 0; top: 10%; padding: 5px 8px;
  border: 1px solid rgba(213,178,109,.18); background: rgba(10,12,15,.7);
  font-family: var(--mono); font-size: 8px; color: var(--gold-2); letter-spacing: .08em;
}
.radar__tag--2 { right: auto; left: 0; top: 62%; color: var(--teal); border-color: rgba(121,185,174,.18); }

/* ---------- stats ---------- */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); background: rgba(19,23,28,.58); margin-top: 16px;
}
.stat-cell { position: relative; padding: 18px 20px; border-right: 1px solid var(--line); }
.stat-cell:last-child { border-right: 0; }
.stat-cell b { display: block; font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.1; }
.stat-cell b small { font-family: var(--sans); font-size: 9px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.stat-cell span { display: block; margin-top: 5px; font-size: 9px; letter-spacing: .12em; color: var(--faint); }
.stat-cell i {
  position: absolute; right: 13px; top: 13px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-2); opacity: .55;
}

/* ---------- map cards ---------- */
.map-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.map-card {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(23,28,34,.9), rgba(15,18,22,.9));
  min-height: 236px; display: flex; flex-direction: column; transition: .22s ease; border-radius: 3px;
}
.map-card:hover { transform: translateY(-3px); border-color: rgba(213,178,109,.28); box-shadow: 0 18px 45px rgba(0,0,0,.26); }
.map-card__visual {
  position: relative; height: 132px; overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(213,178,109,.055), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.012), transparent);
}
.map-card__visual svg { width: 100%; height: 100%; }
.map-card__visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(10,12,15,.5));
}
.map-card--real .map-card__visual--real {
  height: 218px; border-bottom: 1px solid var(--line);
  background: #080b0e;
}
.map-card__visual--real img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: saturate(.78) brightness(.76) contrast(1.04);
  transform: scale(1.01); transition: transform .55s ease, filter .35s ease;
}
.map-card--real:hover .map-card__visual--real img {
  transform: scale(1.055); filter: saturate(.95) brightness(.9) contrast(1.05);
}
.map-card__visual--real::after {
  background:
    linear-gradient(180deg, rgba(8,11,14,.25), transparent 35%, rgba(8,11,14,.82)),
    radial-gradient(ellipse at 50% 30%, transparent 20%, rgba(8,11,14,.28));
}
.map-card__glow {
  position: absolute; inset: -20%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(213,178,109,.12), transparent 45%);
  opacity: 0; transition: opacity .3s ease;
}
.map-card--real:hover .map-card__glow { opacity: 1; }
.map-card--real .map-card__index,
.map-card--real .map-card__flag {
  z-index: 2; background: rgba(8,11,14,.55); padding: 3px 6px;
  border: 1px solid rgba(238,230,214,.08); backdrop-filter: blur(5px);
}
.map-card--real .map-card__body { padding: 14px 16px 13px; }
.map-card__enter {
  display: inline-flex; align-items: center; gap: 5px; font-size: 9px;
  color: var(--gold-2); letter-spacing: .06em; transition: .18s ease;
}
.map-card__enter svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.map-card:hover .map-card__enter { color: var(--gold); gap: 8px; }
.map-card__index {
  position: absolute; top: 11px; left: 13px; z-index: 2;
  font-family: var(--mono); font-size: 8px; color: #686962; letter-spacing: .12em;
}
.map-card__flag {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  font-family: var(--mono); font-size: 8px; letter-spacing: .08em; color: var(--gold-2);
}
.map-card__body { padding: 14px 16px 15px; display: flex; flex-direction: column; flex: 1; }
.map-card__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.map-card__title h3 { font-family: var(--serif); font-size: 18px; letter-spacing: .05em; font-weight: 500; }
.map-card__title .map-card__en { font-family: var(--mono); font-size: 7px; letter-spacing: .12em; color: var(--faint); text-align: right; line-height: 1.5; }
.map-card__desc { margin-top: 7px; color: #8f8c84; font-size: 10px; line-height: 1.8; flex: 1; }
.map-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.map-card__tags { display: flex; gap: 5px; flex-wrap: wrap; }
.map-card__arrow { color: #5b5c56; transition: .18s ease; }
.map-card__arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.map-card:hover .map-card__arrow { color: var(--gold); transform: translateX(2px); }
.map-card--wide { grid-column: span 2; }

/* ---------- home modules ---------- */
.module-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; }
.panel {
  border: 1px solid var(--line); background:
    linear-gradient(160deg, rgba(23,28,34,.72), rgba(15,18,22,.82));
  padding: 19px 20px; border-radius: 3px;
}
.panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel__head h3 { font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: .04em; }
.panel__head p { margin-top: 4px; color: var(--faint); font-size: 9px; letter-spacing: .06em; }
.panel__code { font-family: var(--mono); font-size: 8px; color: #55564f; letter-spacing: .1em; }
.practice-list { margin-top: 16px; display: flex; flex-direction: column; }
.practice-item {
  display: flex; align-items: center; gap: 13px; padding: 12px 0;
  border-top: 1px solid var(--line-soft); transition: .16s ease;
}
.practice-item:first-child { border-top: 0; }
.practice-item:hover { padding-left: 4px; }
.practice-item__num {
  width: 28px; height: 28px; border: 1px solid #34332c; display: grid; place-items: center;
  font-family: var(--mono); font-size: 9px; color: var(--gold-2); flex: none; border-radius: 50%;
}
.practice-item__copy { min-width: 0; }
.practice-item__copy b { display: block; font-size: 11px; font-weight: 500; color: var(--ink-soft); }
.practice-item__copy span { display: block; margin-top: 2px; font-size: 9px; color: var(--faint); }
.practice-item__go { margin-left: auto; color: #55564f; }
.practice-item__go svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.practice-item:hover .practice-item__go { color: var(--gold); }
.range-mini { display: flex; flex-direction: column; gap: 11px; margin-top: 17px; }
.range-mini__row { display: grid; grid-template-columns: 76px 1fr 40px; align-items: center; gap: 9px; }
.range-mini__row span { font-size: 9px; color: var(--muted); }
.range-mini__bar { height: 3px; background: #232420; overflow: hidden; }
.range-mini__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.range-mini__row b { font-family: var(--mono); font-size: 9px; color: var(--gold-2); text-align: right; font-weight: 400; }
.range-note { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line-soft); color: #77766e; font-size: 9px; line-height: 1.8; }
.rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rule-card {
  border: 1px solid var(--line); background: rgba(255,255,255,.014); padding: 16px;
  position: relative; min-height: 130px; transition: .18s ease; border-radius: 2px;
}
.rule-card:hover { border-color: rgba(213,178,109,.2); background: rgba(213,178,109,.025); }
.rule-card__num { font-family: var(--serif); font-size: 25px; color: #3d3b33; line-height: 1; }
.rule-card h4 { margin-top: 13px; font-family: var(--serif); font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.rule-card p { margin-top: 5px; color: #77766e; font-size: 9px; line-height: 1.8; }

/* ---------- map detail ---------- */
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.detail-head__back {
  display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted);
  margin-bottom: 13px; transition: .16s ease;
}
.detail-head__back:hover { color: var(--gold); }
.detail-head__back svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.detail-head h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 52px); font-weight: 400; letter-spacing: .08em; line-height: 1.1; }
.detail-head__en { margin-top: 7px; font-family: var(--mono); font-size: 8px; letter-spacing: .2em; color: var(--faint); }
.detail-head__summary { max-width: 680px; margin-top: 12px; color: #9c978d; font-size: 12px; line-height: 1.95; }
.detail-head__stats { display: flex; gap: 24px; flex: none; padding-top: 19px; }
.detail-head__stats .head-stat { min-width: 62px; }
.detail-head__stats .head-stat b { font-size: 21px; }
.map-detail-grid { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(280px, .52fr); gap: 14px; align-items: start; }
.board-panel { border: 1px solid var(--line); background: #0d1014; overflow: hidden; border-radius: 3px; }
.board-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 15px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015);
}
.board-panel__head h3 { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: var(--muted); font-weight: 400; }
.board-panel__tools { display: flex; gap: 5px; flex-wrap: wrap; }
.tool-toggle {
  border: 1px solid var(--line); background: transparent; color: #716f68; cursor: pointer;
  font-size: 8px; letter-spacing: .04em; padding: 4px 7px; border-radius: 2px;
}
.tool-toggle.is-on { color: var(--gold); border-color: rgba(213,178,109,.3); background: rgba(213,178,109,.06); }
.board { position: relative; aspect-ratio: 1.16 / 1; min-height: 320px; }
.board svg { width: 100%; height: 100%; }
.board__legend {
  position: absolute; left: 13px; bottom: 11px; display: flex; gap: 10px; flex-wrap: wrap;
  padding: 5px 8px; background: rgba(10,12,15,.74); border: 1px solid rgba(238,230,214,.07);
  backdrop-filter: blur(4px); z-index: 2;
}
.board__legend span { display: flex; align-items: center; gap: 4px; font-size: 7px; color: #77766e; letter-spacing: .04em; }
.legend-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.legend-dot--teal { background: var(--teal); }
.legend-dot--red { background: var(--red); }
.legend-dot--gate { background: #8dae84; border-radius: 1px; }
.board__scale { position: absolute; right: 12px; bottom: 12px; font-family: var(--mono); font-size: 7px; color: #4f504a; letter-spacing: .06em; }

/* actual 2D map viewer */
.map-zoom-group { display: flex; align-items: center; gap: 4px; }
.map-zoom-group .tool-toggle { min-width: 24px; text-align: center; }
.map-zoom-label { font-family: var(--mono); font-size: 7px; color: #6f6c63; min-width: 30px; text-align: center; }
.toolbar-sep { width: 1px; height: 15px; background: var(--line); margin: 0 4px; }
.map-viewport {
  position: relative; max-height: 70vh; overflow: auto; background: #070a0d;
  scrollbar-width: thin; scrollbar-color: #433c30 #070a0d;
}
.real-map-zoom { width: 100%; transform-origin: 50% 45%; transition: transform .2s ease; }
.real-map {
  position: relative; width: 100%; overflow: hidden;
  background: #080b0e; isolation: isolate;
}
.real-map__img {
  width: 100%; height: 100%; display: block; object-fit: fill;
  user-select: none; -webkit-user-drag: none;
}
.real-map__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 42%, rgba(4,7,10,.28) 100%),
    linear-gradient(180deg, rgba(5,8,11,.18), transparent 22%, transparent 78%, rgba(5,8,11,.28));
}
.real-map__overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.real-map__overlay.is-hidden { display: none; }
.real-map__route {
  fill: none; stroke: #f0c778; stroke-width: 4;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(240,199,120,.55));
  animation: dash 4s linear infinite;
}
.real-map__node-ring { fill: none; stroke: rgba(240,199,120,.28); stroke-width: 2; }
.real-map__node { fill: #f0c778; stroke: #0b0e11; stroke-width: 2; filter: drop-shadow(0 0 5px rgba(240,199,120,.55)); }
.real-map__num { fill: #17130c; font-family: var(--mono); font-weight: 700; }
.real-map__label {
  fill: #f8efdd; font-family: var(--sans); font-weight: 600;
  paint-order: stroke; stroke: #080b0e; stroke-width: 4px; stroke-linejoin: round;
  letter-spacing: .02em;
}
.real-map__poi { fill: #c7b998; stroke: #0a0d10; stroke-width: 1.2; opacity: .9; }
.real-map__poi--door { fill: #9fc797; }
.real-map__poi-label {
  fill: #d8d0c0; font-family: var(--sans); font-weight: 500;
  paint-order: stroke; stroke: #080b0e; stroke-width: 3.5px; stroke-linejoin: round;
  opacity: .92; letter-spacing: .01em;
}
.real-map__dungeon { fill: rgba(141,174,132,.22); stroke: #9fc797; stroke-width: 2; }
.real-map__dungeon-label { fill: #b4d3ad; font-family: var(--sans); paint-order: stroke; stroke: #080b0e; stroke-width: 3px; }
.real-map.no-labels .real-map__label,
.real-map.no-labels .real-map__dungeon-label { display: none; }
.real-map.no-route .real-map__route,
.real-map.no-route .real-map__node,
.real-map.no-route .real-map__node-ring,
.real-map.no-route .real-map__num { display: none; }
.real-map.no-dungeon .real-map__dungeon,
.real-map.no-dungeon .real-map__dungeon-label { display: none; }
.real-map__hud {
  position: absolute; left: 12px; bottom: 11px; z-index: 2;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding: 5px 8px; border: 1px solid rgba(238,230,214,.09);
  background: rgba(7,10,13,.72); backdrop-filter: blur(7px);
  font-family: var(--mono); font-size: 7px; color: #a29a8b; letter-spacing: .04em;
}
.real-map__hud-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(213,178,109,.1); }
.real-map__hud-scale { color: #5e6059; border-left: 1px solid #34342e; padding-left: 7px; }
.map-source-note {
  display: flex; align-items: flex-start; gap: 7px; padding: 9px 13px;
  border-top: 1px solid var(--line); color: #6f716a; font-size: 9px; line-height: 1.7;
  background: rgba(255,255,255,.012);
}
.map-source-note svg { width: 13px; height: 13px; flex: none; margin-top: 2px; fill: none; stroke: var(--gold-2); stroke-width: 1.5; }
.map-source-note a { color: #a99774; border-bottom: 1px solid #4a4233; }
.map-source-note a:hover { color: var(--gold); border-color: var(--gold-2); }
.route-strip { display: flex; gap: 6px; overflow-x: auto; padding: 11px 13px; border-top: 1px solid var(--line); scrollbar-width: thin; }
.route-pill {
  flex: none; border: 1px solid var(--line); background: #12161b; color: #8b8880; cursor: pointer;
  border-radius: 2px; padding: 6px 9px; font-size: 9px; text-align: left; min-width: 136px; transition: .16s ease;
}
.route-pill small { display: block; font-size: 7px; color: #565750; letter-spacing: .08em; }
.route-pill b { display: block; margin-top: 1px; font-weight: 400; color: #a8a398; }
.route-pill.is-active { border-color: rgba(213,178,109,.4); background: rgba(213,178,109,.06); }
.route-pill.is-active b { color: var(--gold); }
.side-stack { display: flex; flex-direction: column; gap: 12px; }
.info-card { border: 1px solid var(--line); background: rgba(19,23,28,.72); padding: 15px 16px; border-radius: 3px; }
.info-card__label { font-family: var(--mono); font-size: 8px; letter-spacing: .16em; color: var(--faint); text-transform: uppercase; }
.info-card h3 { margin-top: 5px; font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: .04em; }
.info-card p { margin-top: 7px; color: #8f8c84; font-size: 10px; line-height: 1.9; }
.info-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.info-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 10px; color: #98948b; line-height: 1.7; }
.info-list li::before { content: ""; width: 4px; height: 4px; margin-top: 7px; flex: none; background: var(--gold-2); border-radius: 50%; }
.info-list li b { color: var(--ink-soft); font-weight: 500; }
.info-sub { margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.info-sub > span { display: block; font-family: var(--mono); font-size: 7px; letter-spacing: .12em; color: var(--gold-2); margin-bottom: 3px; }
.info-sub p { margin-top: 0; font-size: 9px; color: #817d74; }
.dungeon-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.dungeon-pill { font-size: 8px; padding: 3px 7px; border: 1px solid rgba(141,174,132,.2); color: #9bb292; background: rgba(141,174,132,.05); border-radius: 2px; }
.pick-row { margin-top: 10px; }
.pick-row:first-of-type { margin-top: 12px; }
.pick-row span { font-size: 8px; color: var(--faint); letter-spacing: .1em; }
.pick-row div { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.pick {
  font-size: 9px; color: #b9b2a5; padding: 2px 6px; border: 1px solid var(--line);
  background: rgba(255,255,255,.015); border-radius: 2px;
}
.route-detail { grid-column: 1 / -1; margin-top: 2px; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(23,28,34,.75), rgba(14,17,21,.85)); border-radius: 3px; }
.route-detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.route-detail__head h3 { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: .04em; }
.route-detail__head p { color: var(--faint); font-size: 9px; margin-top: 3px; }
.route-detail__body { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; padding: 18px 20px 21px; }
.route-path { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 15px; }
.route-path span {
  font-size: 9px; color: var(--ink-soft); border: 1px solid var(--line); padding: 3px 7px;
  background: #12161b; border-radius: 2px;
}
.route-path i { color: #5e5f58; font-style: normal; font-size: 9px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: step; }
.steps li { position: relative; padding-left: 25px; font-size: 10px; color: #99958b; line-height: 1.8; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 2px;
  font-family: var(--mono); font-size: 8px; color: var(--gold-2);
  width: 17px; height: 17px; border: 1px solid #37342b; border-radius: 50%; display: grid; place-items: center;
}
.route-aside { border-left: 1px solid var(--line); padding-left: 20px; }
.route-aside__block + .route-aside__block { margin-top: 15px; }
.route-aside__block span { display: block; font-size: 8px; color: var(--faint); letter-spacing: .1em; margin-bottom: 3px; }
.route-aside__block p { color: #8f8b82; font-size: 10px; line-height: 1.85; }
.route-aside__block strong { color: var(--red); font-weight: 400; }

/* ---------- route library ---------- */
.library-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px 14px; border: 1px solid var(--line); background: rgba(19,23,28,.55);
  margin-bottom: 16px; border-radius: 2px;
}
.library-bar__group { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.library-bar__label { font-family: var(--mono); font-size: 8px; color: var(--faint); letter-spacing: .1em; margin-right: 4px; }
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.route-card {
  border: 1px solid var(--line); background: rgba(19,23,28,.55); padding: 15px;
  display: flex; flex-direction: column; min-height: 210px; transition: .18s ease; border-radius: 3px;
}
.route-card:hover { border-color: rgba(213,178,109,.22); background: rgba(23,28,34,.8); transform: translateY(-2px); }
.route-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.route-card__map { font-family: var(--mono); font-size: 8px; color: var(--gold-2); letter-spacing: .08em; }
.route-card h3 { margin-top: 7px; font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: .03em; }
.route-card__goal { margin-top: 4px; color: #73736c; font-size: 9px; }
.route-card__path { display: flex; gap: 4px; flex-wrap: wrap; margin: 12px 0; }
.route-card__path span { font-size: 8px; color: #979188; border-bottom: 1px solid #3a372f; padding-bottom: 1px; }
.route-card__path i { font-size: 7px; color: #4a4b45; font-style: normal; }
.route-card__foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.route-card__foot .tag { font-size: 8px; }
.route-card__open { color: #625f56; }
.route-card__open svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.route-card:hover .route-card__open { color: var(--gold); }

/* ---------- characters ---------- */
.char-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.char-search {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  background: rgba(19,23,28,.6); padding: 0 11px; min-width: 240px; height: 34px; border-radius: 2px;
}
.char-search svg { width: 14px; height: 14px; fill: none; stroke: #666760; stroke-width: 1.5; flex: none; }
.char-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.char-search input::placeholder { color: #5f605a; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
.char-card {
  position: relative; border: 1px solid #2c2d29; background: #0d1014;
  padding: 0; display: flex; flex-direction: column; overflow: hidden;
  transition: .22s ease; border-radius: 3px;
}
.char-card:hover { border-color: rgba(213,178,109,.55); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.38); }
.char-card--hunter { box-shadow: inset 0 0 0 1px rgba(197,109,96,.12); }
.char-card--survivor { box-shadow: inset 0 0 0 1px rgba(121,185,174,.12); }
.char-card__portrait { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #090c0f; }
.char-card__avatar {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.72) brightness(.86) contrast(1.04); transition: transform .45s ease, filter .25s ease;
}
.char-card:hover .char-card__avatar { transform: scale(1.055); filter: saturate(.95) brightness(.96) contrast(1.03); }
.char-card__wash {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 50% 36%, transparent 24%, rgba(5,8,10,.14) 62%, rgba(5,8,10,.55) 100%),
    linear-gradient(180deg, transparent 55%, rgba(5,8,10,.7));
  box-shadow: inset 0 0 24px rgba(0,0,0,.3);
}
.char-card--hunter .char-card__wash {
  background:
    radial-gradient(circle at 50% 36%, transparent 26%, rgba(22,8,8,.24) 64%, rgba(22,8,8,.66) 100%),
    linear-gradient(180deg, transparent 55%, rgba(38,12,11,.66));
}
.char-card--survivor .char-card__wash {
  background:
    radial-gradient(circle at 50% 36%, transparent 26%, rgba(5,17,17,.18) 64%, rgba(5,20,19,.62) 100%),
    linear-gradient(180deg, transparent 55%, rgba(7,27,26,.62));
}
.char-card__id {
  position: absolute; left: 7px; top: 7px; z-index: 2;
  padding: 2px 5px; border: 1px solid rgba(238,230,214,.13);
  background: rgba(7,10,13,.66); backdrop-filter: blur(4px);
  font-family: var(--mono); font-size: 7px; letter-spacing: .08em; color: #c3b9a5;
}
.char-card--hunter .char-card__id { color: #d5a49a; border-color: rgba(197,109,96,.25); }
.char-card--survivor .char-card__id { color: #9dc8c0; border-color: rgba(121,185,174,.22); }
.char-card__info {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 9px 9px; background: linear-gradient(180deg, #151a20, #101419);
  border-top: 1px solid rgba(238,230,214,.055); min-width: 0;
}
.char-card__name {
  display: block; font-family: var(--serif); font-size: 13px; font-weight: 500;
  color: #e9e1d2; letter-spacing: .03em; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.char-card__role {
  display: block; font-size: 7.5px; color: #77756d; letter-spacing: .03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.char-card--featured { border-color: rgba(213,178,109,.4); }
.char-card--featured::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid rgba(240,199,120,.24);
}
.char-card__star {
  position: absolute; right: 7px; top: 6px; z-index: 2; color: var(--gold);
  font-size: 11px; text-shadow: 0 0 8px rgba(213,178,109,.75);
}

/* character detail */
.char-detail { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.char-profile {
  position: sticky; top: calc(var(--header) + 20px); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(23,28,34,.9), rgba(14,17,21,.95)); padding: 20px; border-radius: 3px;
}
.char-profile__sigil {
  width: 88px; height: 88px; border: 1px solid #494238; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 38px;
  color: var(--gold); background: radial-gradient(circle, rgba(213,178,109,.08), transparent 70%);
  margin-bottom: 16px;
}
.char-profile--hunter .char-profile__sigil { color: #d79a8b; border-color: rgba(197,109,96,.3); background: radial-gradient(circle, rgba(197,109,96,.10), transparent 70%); }
.char-profile--survivor .char-profile__sigil { color: #a8d0c8; border-color: rgba(121,185,174,.28); background: radial-gradient(circle, rgba(121,185,174,.09), transparent 70%); }
.char-profile__avatar-wrap { padding: 0; overflow: hidden; }
.char-profile__avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.char-profile h1 { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: .05em; line-height: 1.3; }
.char-profile__real { margin-top: 2px; font-size: 9px; color: var(--faint); letter-spacing: .08em; }
.char-profile__intro { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line-soft); color: #969187; font-size: 10px; line-height: 1.9; }
.char-profile__meta { margin-top: 14px; display: grid; gap: 7px; }
.char-profile__meta div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted #2c2c27; padding-bottom: 6px; }
.char-profile__meta span { font-size: 9px; color: var(--faint); }
.char-profile__meta b { font-size: 9px; color: var(--ink-soft); font-weight: 400; text-align: right; }
.char-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 15px; }
.char-number { border: 1px solid #2d2b25; background: rgba(213,178,109,.03); padding: 8px; border-radius: 2px; }
.char-number b { display: block; font-family: var(--mono); font-size: 14px; color: var(--gold); line-height: 1.3; }
.char-number span { display: block; margin-top: 2px; font-size: 7px; color: #6e6a60; letter-spacing: .03em; }
.char-main { display: flex; flex-direction: column; gap: 13px; }
.char-banner {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(213,178,109,.08), rgba(19,23,28,.55) 50%);
  padding: 17px 19px; border-radius: 3px;
}
.char-banner p { position: relative; z-index: 1; max-width: 750px; font-family: var(--serif); font-size: 15px; line-height: 1.8; color: #b8b0a2; letter-spacing: .02em; }
.char-banner::after {
  content: "C"; position: absolute; right: 16px; bottom: -34px; font-family: var(--serif);
  font-size: 130px; line-height: 1; color: rgba(213,178,109,.035); pointer-events: none;
}
.skill-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.skill-item { display: grid; grid-template-columns: 54px 1fr; border-top: 1px solid var(--line-soft); background: rgba(19,23,28,.48); }
.skill-item:first-child { border-top: 0; }
.skill-item__idx { padding: 17px 0 0 17px; font-family: var(--mono); font-size: 8px; color: var(--gold-2); }
.skill-item__body { padding: 16px 18px 17px 0; }
.skill-item__head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.skill-item__head h3 { font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: .03em; }
.skill-item__head span { font-family: var(--mono); font-size: 7px; color: #5e5f58; letter-spacing: .08em; }
.skill-item__body p { margin-top: 5px; color: #918d84; font-size: 10px; line-height: 1.9; }
.skill-item__body b { color: var(--gold-2); font-weight: 500; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.note-card { border: 1px solid var(--line); background: rgba(19,23,28,.52); padding: 16px 17px; border-radius: 3px; }
.note-card h3 { display: flex; align-items: center; gap: 7px; font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: .04em; }
.note-card h3 svg { width: 14px; height: 14px; fill: none; stroke: var(--gold-2); stroke-width: 1.5; }
.note-card p, .note-card li { color: #918d84; font-size: 10px; line-height: 1.9; }
.note-card p { margin-top: 7px; }
.note-card ul { margin: 8px 0 0; padding: 0 0 0 14px; }
.note-card li { margin-top: 4px; }
.related-routes { display: flex; flex-direction: column; gap: 6px; margin-top: 9px; }
.related-route { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 9px; }
.related-route:first-child { border-top: 0; }
.related-route b { font-weight: 400; color: #a8a398; }
.related-route span { color: var(--gold-2); font-family: var(--mono); font-size: 7px; }

/* ---------- training ---------- */
.training-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.training-tab {
  position: relative; border: 0; background: transparent; color: #77766e; cursor: pointer;
  padding: 10px 15px 12px; font-size: 11px; letter-spacing: .04em; white-space: nowrap;
}
.training-tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 1px; background: transparent; }
.training-tab:hover { color: var(--ink-soft); }
.training-tab.is-active { color: var(--gold); }
.training-tab.is-active::after { background: var(--gold); }
.training-panel { animation: fadeUp .35s ease both; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 16px; align-items: start; }
.tool-stage {
  position: relative; min-height: 440px; border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(121,185,174,.045), transparent 58%),
    linear-gradient(160deg, #101419, #0c0f12);
  overflow: hidden; border-radius: 3px;
}
.tool-stage__label { position: absolute; left: 15px; top: 13px; z-index: 2; font-family: var(--mono); font-size: 8px; color: #5e6059; letter-spacing: .14em; }
.tool-stage__tag { position: absolute; right: 15px; top: 12px; z-index: 2; font-family: var(--mono); font-size: 8px; color: var(--gold-2); border: 1px solid rgba(213,178,109,.2); padding: 3px 6px; letter-spacing: .08em; }
.tool-stage svg { width: 100%; height: 100%; min-height: 440px; }
.tool-controls { display: flex; flex-direction: column; gap: 12px; }
.tool-card { border: 1px solid var(--line); background: rgba(19,23,28,.7); padding: 17px 18px; border-radius: 3px; }
.tool-card h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: .04em; }
.tool-card > p { margin-top: 6px; color: #8d8980; font-size: 10px; line-height: 1.9; }

/* actual-map training tools */
.tool-grid--map { grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr); }
.tool-stage--real {
  min-height: 0;
  background: #080b0e;
  display: flex; flex-direction: column;
}
.tool-stage__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.018);
}
.tool-stage__bar .tool-stage__label { position: static; }
.map-select-label {
  display: flex; align-items: center; gap: 7px; font-size: 9px; color: #6e6f68;
  letter-spacing: .05em;
}
.map-select-label select {
  background: #131820; border: 1px solid #373a3a; color: #c7c0b2;
  font-size: 9px; padding: 4px 7px; border-radius: 2px; outline: 0;
  max-width: 150px;
}
.map-select-label select:focus { border-color: var(--gold-2); }
.tool-map-frame { padding: 10px; display: flex; justify-content: center; background: #070a0d; }
.tool-map {
  position: relative; width: min(100%, calc(58vh * var(--map-ratio)));
  aspect-ratio: var(--map-ratio); overflow: hidden; border: 1px solid #302e27;
  background: #0a0d10; touch-action: none; user-select: none;
  box-shadow: 0 18px 45px rgba(0,0,0,.4);
}
.tool-map > img { width: 100%; height: 100%; object-fit: fill; display: block; }
.tool-map__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(5,8,11,.24)),
    linear-gradient(180deg, rgba(5,8,11,.2), transparent 25%, transparent 78%, rgba(5,8,11,.28));
}
.tool-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; pointer-events: none; overflow: visible; }
.tool-map .map-token {
  position: absolute; z-index: 4; width: 34px; height: 34px; transform: translate(-50%,-50%);
  border-radius: 50%; border: 1px solid currentColor; background: rgba(8,11,14,.82);
  color: var(--gold); display: grid; place-items: center; cursor: grab;
  box-shadow: 0 4px 18px rgba(0,0,0,.55), inset 0 0 0 3px rgba(8,11,14,.6);
  touch-action: none; padding: 0;
}
.tool-map .map-token:active, .tool-map .map-token.is-dragging { cursor: grabbing; transform: translate(-50%,-50%) scale(1.12); }
.tool-map .map-token__icon { width: 17px; height: 17px; display: grid; place-items: center; }
.tool-map .map-token__icon svg { width: 17px; height: 17px; min-height: 0; fill: none; stroke: currentColor; stroke-width: 1.7; }
.tool-map .map-token__halo {
  position: absolute; inset: -8px; border: 1px solid currentColor; border-radius: 50%;
  opacity: .25; animation: pulse 3s infinite;
}
.tool-map .map-token--hunter,
.tool-map .map-token--naiad { color: #e3bb72; width: 38px; height: 38px; }
.tool-map .map-token--survivor { color: #83c9c0; }
.tool-map .map-token--fork { color: #d7c7a6; width: 30px; height: 30px; }
.tool-map .map-token--portrait { overflow: hidden; background: #090c0f; }
.tool-map .map-token--portrait .map-token__avatar {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  display: block; position: relative; z-index: 1; filter: saturate(.9) brightness(.96);
}
.tool-map .map-token--portrait .map-token__halo { z-index: 2; pointer-events: none; }
.tool-ring { fill: none; }
.tool-ring--water { fill: rgba(121,185,174,.11); stroke: rgba(121,185,174,.9); stroke-width: 3; }
.tool-ring--throw { stroke: rgba(213,178,109,.55); stroke-width: 2; stroke-dasharray: 8 7; }
.tool-ring--tether { stroke: rgba(213,178,109,.28); stroke-width: 2; stroke-dasharray: 4 9; }
.tool-ring-line { stroke: rgba(240,199,120,.8); stroke-width: 2.5; stroke-dasharray: 7 6; }
.tool-map__readout {
  position: absolute; left: 10px; top: 10px; z-index: 3;
  padding: 4px 8px; background: rgba(7,10,13,.78); border: 1px solid rgba(213,178,109,.28);
  font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: .04em;
  backdrop-filter: blur(5px);
}
.tool-map__hint {
  position: absolute; left: 10px; bottom: 9px; z-index: 3;
  font-family: var(--mono); font-size: 7px; color: #8d887d; letter-spacing: .04em;
  background: rgba(7,10,13,.7); padding: 3px 6px; border: 1px solid rgba(238,230,214,.07);
}
.tool-stage__caption {
  display: flex; align-items: flex-start; gap: 7px; padding: 9px 12px;
  border-top: 1px solid var(--line); color: #72736b; font-size: 8px; line-height: 1.7;
}
.tool-stage__caption svg { width: 13px; height: 13px; min-height: 0; flex: none; margin-top: 1px; fill: none; stroke: var(--gold-2); stroke-width: 1.5; }
.range-slider { margin-top: 17px; }
.range-slider__head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.range-slider__head span { font-size: 10px; color: var(--muted); }
.range-slider__head b { font-family: var(--mono); font-size: 18px; color: var(--gold); font-weight: 400; }
.range-slider__head b small { font-size: 9px; color: var(--muted); margin-left: 2px; }
input[type="range"] {
  width: 100%; margin: 13px 0 0; -webkit-appearance: none; appearance: none; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 0; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(213,178,109,.1); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold); cursor: pointer;
}
.slider-scale { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 7px; color: #51524c; }
.status-box {
  margin-top: 16px; padding: 12px 13px; border: 1px solid #35332b; background: rgba(213,178,109,.035);
  display: flex; align-items: center; gap: 11px; border-radius: 2px;
}
.status-box__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(121,185,174,.08); flex: none; }
.status-box.is-off .status-box__dot { background: #5e5e58; box-shadow: none; }
.status-box b { display: block; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.status-box span { display: block; font-size: 8px; color: var(--faint); margin-top: 1px; }
.micro-status {
  margin-top: 10px; display: flex; align-items: center; gap: 7px;
  padding: 7px 9px; border: 1px solid rgba(121,185,174,.16); background: rgba(121,185,174,.04);
  color: #a9c7c0; font-size: 9px; line-height: 1.5;
}
.micro-status .status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); flex: none; box-shadow: 0 0 0 3px rgba(121,185,174,.08); }
.micro-status.is-out { color: #b8a08f; border-color: rgba(197,109,96,.18); background: rgba(197,109,96,.04); }
.micro-status.is-out .status-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(197,109,96,.08); }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 15px; }
.fact { border: 1px solid #2d2b25; padding: 9px 10px; border-radius: 2px; }
.fact b { display: block; font-family: var(--mono); font-size: 14px; color: var(--gold); line-height: 1.4; }
.fact span { display: block; font-size: 8px; color: #767269; margin-top: 2px; }
.segmented { display: flex; border: 1px solid var(--line); padding: 2px; border-radius: 2px; margin-top: 14px; }
.segmented button {
  flex: 1; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 7px 8px; font-size: 9px; border-radius: 1px; transition: .15s ease;
}
.segmented button.is-active { background: rgba(213,178,109,.12); color: var(--gold); }
.moisture-meter { margin-top: 15px; }
.moisture-meter__top { display: flex; align-items: baseline; justify-content: space-between; }
.moisture-meter__top span { font-size: 9px; color: var(--faint); }
.moisture-meter__top b { font-family: var(--mono); font-size: 22px; color: var(--teal); font-weight: 400; }
.meter { height: 5px; background: #23241f; margin-top: 7px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width .2s ease; }
.timeline { margin-top: 14px; display: flex; flex-direction: column; gap: 0; }
.timeline__row { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); align-items: center; }
.timeline__row:first-child { border-top: 0; }
.timeline__row time { font-family: var(--mono); font-size: 9px; color: var(--gold-2); }
.timeline__row span { font-size: 9px; color: #918d84; }
.timeline__row b { color: var(--ink-soft); font-weight: 500; }
.big-answer { border: 1px solid rgba(213,178,109,.24); background: linear-gradient(120deg, rgba(213,178,109,.08), transparent); padding: 17px 18px; border-radius: 3px; }
.big-answer h3 { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: .03em; }
.big-answer p { margin-top: 7px; font-size: 10px; line-height: 1.95; color: #a09a8e; }
.big-answer b { color: var(--gold); font-weight: 500; }
.range-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.range-table th, .range-table td { text-align: left; padding: 9px 8px; border-top: 1px solid var(--line-soft); font-size: 9px; }
.range-table th { font-family: var(--mono); font-size: 7px; letter-spacing: .1em; color: var(--faint); font-weight: 400; }
.range-table td { color: #989389; }
.range-table td b { color: var(--gold-2); font-family: var(--mono); font-weight: 400; }
.range-table tr:hover td { background: rgba(255,255,255,.015); }
.scale-visual { position: relative; margin: 18px 0 4px; height: 38px; }
.scale-line { position: absolute; left: 0; right: 0; top: 14px; height: 1px; background: #3a3932; }
.scale-mark { position: absolute; top: 7px; transform: translateX(-50%); text-align: center; }
.scale-mark i { display: block; width: 1px; height: 15px; background: #4a483f; margin: 0 auto 3px; }
.scale-mark span { font-family: var(--mono); font-size: 7px; color: #5f6059; white-space: nowrap; }
.scale-mark--gold i { background: var(--gold); }
.scale-mark--gold span { color: var(--gold-2); }
.scale-mark--teal i { background: var(--teal); }
.quiz-shell { max-width: 830px; margin: 0 auto; }
.quiz-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.quiz-progress__bar { flex: 1; height: 2px; background: #262722; }
.quiz-progress__bar i { display: block; height: 100%; background: var(--gold); transition: width .3s ease; }
.quiz-progress span { font-family: var(--mono); font-size: 8px; color: var(--faint); letter-spacing: .08em; }
.quiz-card { border: 1px solid var(--line); background: linear-gradient(155deg, rgba(23,28,34,.85), rgba(14,17,21,.92)); padding: 25px 26px; border-radius: 3px; }
.quiz-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.quiz-card h2 { margin-top: 13px; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 27px); font-weight: 500; letter-spacing: .03em; line-height: 1.5; }
.quiz-card__scene { margin-top: 10px; padding: 12px 14px; border-left: 2px solid var(--gold-2); background: rgba(213,178,109,.035); color: #a5a094; font-size: 12px; line-height: 1.95; }
.quiz-options { display: flex; flex-direction: column; gap: 7px; margin-top: 19px; }
.quiz-option {
  display: flex; align-items: flex-start; gap: 11px; text-align: left; border: 1px solid var(--line);
  background: rgba(255,255,255,.012); color: #a7a197; padding: 12px 13px; cursor: pointer;
  font-size: 11px; line-height: 1.7; border-radius: 2px; transition: .15s ease;
}
.quiz-option:hover:not(:disabled) { border-color: rgba(213,178,109,.3); background: rgba(213,178,109,.04); }
.quiz-option:disabled { cursor: default; }
.quiz-option__key {
  width: 20px; height: 20px; flex: none; border: 1px solid #3b3931; display: grid;
  place-items: center; font-family: var(--mono); font-size: 8px; color: #77756c; border-radius: 50%;
}
.quiz-option.is-correct { border-color: rgba(121,185,174,.45); background: rgba(121,185,174,.07); color: #bfd6cf; }
.quiz-option.is-correct .quiz-option__key { border-color: var(--teal); color: var(--teal); }
.quiz-option.is-wrong { border-color: rgba(197,109,96,.4); background: rgba(197,109,96,.07); color: #caa59d; }
.quiz-option.is-wrong .quiz-option__key { border-color: var(--red); color: var(--red); }
.quiz-feedback { margin-top: 15px; border-top: 1px solid var(--line-soft); padding-top: 13px; display: none; }
.quiz-feedback.is-on { display: block; animation: fadeUp .25s ease; }
.quiz-feedback h3 { font-family: var(--serif); font-size: 15px; font-weight: 500; color: var(--gold); }
.quiz-feedback p { margin-top: 5px; color: #938e84; font-size: 10px; line-height: 1.9; }
.quiz-actions { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quiz-score { font-family: var(--mono); font-size: 9px; color: var(--faint); }
.quiz-score b { color: var(--gold); font-size: 15px; font-weight: 400; }
.quiz-done { text-align: center; padding: 30px 20px; }
.quiz-done__num { font-family: var(--serif); font-size: 64px; color: var(--gold); line-height: 1; }
.quiz-done h2 { margin-top: 8px; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.quiz-done p { margin: 8px auto 0; max-width: 460px; color: var(--muted); font-size: 11px; line-height: 1.9; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.about-card { border: 1px solid var(--line); background: rgba(19,23,28,.55); padding: 22px; border-radius: 3px; }
.about-card--wide { grid-column: span 2; }
.about-card h2 { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: .04em; }
.about-card p { margin-top: 8px; color: #938e85; font-size: 11px; line-height: 2; }
.about-card p + p { margin-top: 6px; }
.about-card b { color: var(--ink-soft); font-weight: 500; }
.source-list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.source-list li { display: flex; gap: 8px; align-items: baseline; font-size: 10px; color: #8f8b82; }
.source-list li::before { content: "↗"; color: var(--gold-2); font-size: 9px; }
.source-list a { border-bottom: 1px solid #343129; transition: .15s ease; }
.source-list a:hover { color: var(--gold); border-color: var(--gold-2); }
.source-list a svg { width: 11px; height: 11px; display: inline-block; vertical-align: -1px; margin-left: 2px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.ownership-seal {
  display: flex; align-items: center; gap: 18px; padding: 18px; border: 1px solid rgba(213,178,109,.22);
  background: rgba(213,178,109,.035); margin-top: 15px;
}
.ownership-seal__mark { width: 48px; height: 48px; border: 1px solid var(--gold-2); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); color: var(--gold); font-size: 22px; flex: none; }
.ownership-seal__avatar {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none;
  border: 1px solid rgba(213,178,109,.55); box-shadow: 0 0 0 4px rgba(213,178,109,.06);
}
.contact-block { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.contact-block__title {
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  font-family: var(--serif); font-size: 16px; color: var(--ink); letter-spacing: .04em;
}
.contact-block__title span { font-family: var(--sans); font-size: 8px; color: var(--faint); letter-spacing: .04em; }
.contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.contact-link {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  padding: 9px 10px; border: 1px solid #34342e; background: rgba(255,255,255,.018);
  transition: .18s ease; border-radius: 2px;
}
.contact-link:hover { border-color: rgba(213,178,109,.35); background: rgba(213,178,109,.045); transform: translateY(-1px); }
.contact-link__icon { width: 27px; height: 27px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.035); }
.contact-link__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-link--wechat .contact-link__icon { color: #73c48f; background: rgba(115,196,143,.08); }
.contact-link--qq .contact-link__icon { color: #78b8e8; background: rgba(120,184,232,.08); }
.contact-link__text { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.contact-link__text small { font-size: 7px; color: var(--faint); letter-spacing: .08em; }
.contact-link__text b { font-family: var(--mono); font-size: 9px; color: #c5bdae; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-link__hint { margin-left: auto; font-size: 7px; color: #716a5b; white-space: nowrap; }
.contact-note { margin-top: 8px; font-size: 8px; line-height: 1.7; color: #716e66; }
.ownership-seal b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: .04em; }
.ownership-seal span { display: block; font-size: 9px; color: var(--muted); margin-top: 3px; }
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }
.roadmap div { border: 1px solid var(--line); padding: 11px; }
.roadmap b { display: block; font-size: 10px; color: var(--ink-soft); font-weight: 500; }
.roadmap span { display: block; font-size: 8px; color: var(--faint); margin-top: 3px; }

/* ---------- command palette / modal ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 130; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 20px 20px; }
.search-overlay[hidden] { display: none; }
.search-overlay__scrim { position: absolute; inset: 0; background: rgba(4,5,7,.72); backdrop-filter: blur(7px); }
.command {
  position: relative; width: min(680px, 100%); max-height: 70vh; display: flex; flex-direction: column;
  border: 1px solid #3a3730; background: #111419; box-shadow: 0 40px 100px rgba(0,0,0,.55);
  border-radius: 4px; overflow: hidden; animation: commandIn .2s ease both;
}
.command__head { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.command__head > span svg { width: 17px; height: 17px; fill: none; stroke: var(--gold-2); stroke-width: 1.5; }
.command__head input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--ink); font-size: 13px; }
.command__head input::placeholder { color: #5f6059; }
.command__body { overflow-y: auto; padding: 7px; }
.command__group-label { padding: 9px 10px 5px; font-family: var(--mono); font-size: 8px; letter-spacing: .14em; color: #5d5e57; }
.command__item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 2px;
  color: #a8a297; font-size: 11px; cursor: pointer;
}
.command__item:hover, .command__item.is-active { background: rgba(213,178,109,.08); color: var(--ink); }
.command__item small { margin-left: auto; color: #5d5e57; font-size: 8px; }
.command__type { font-family: var(--mono); font-size: 7px; color: var(--gold-2); width: 34px; flex: none; }
.command__empty { padding: 35px 20px; text-align: center; color: var(--muted); font-size: 11px; }
.command__foot { display: flex; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--line); color: #5f6059; font-size: 8px; }
.command__foot b { color: var(--gold-2); font-weight: 400; }
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 30px 20px; }
.modal[hidden] { display: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(4,5,7,.7); backdrop-filter: blur(5px); }
.modal__dialog {
  position: relative; width: min(720px, 100%); max-height: 84vh; overflow-y: auto;
  border: 1px solid #3b3830; background: #111419; padding: 24px; border-radius: 4px;
  box-shadow: var(--shadow); animation: commandIn .2s ease both;
}
.modal__close { position: absolute; right: 12px; top: 12px; z-index: 2; }
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); z-index: 160;
  background: #1b201f; border: 1px solid rgba(121,185,174,.28); color: #b7cfc8;
  padding: 9px 15px; font-size: 10px; border-radius: 2px; opacity: 0; pointer-events: none;
  transition: .22s ease; box-shadow: var(--shadow);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- svg map styling ---------- */
.map-svg .grid { stroke: rgba(238,230,214,.045); stroke-width: .35; }
.map-svg .contour { fill: none; stroke: rgba(213,178,109,.10); stroke-width: .55; stroke-dasharray: 2 3; }
.map-svg .edge { stroke: rgba(238,230,214,.16); stroke-width: .7; stroke-dasharray: 2 2; }
.map-svg .edge--route { stroke: rgba(213,178,109,.55); stroke-width: 1.1; stroke-dasharray: none; }
.map-svg .zone-node { fill: #14181d; stroke: #5b584e; stroke-width: .8; }
.map-svg .zone-node--strong { fill: rgba(213,178,109,.15); stroke: var(--gold); }
.map-svg .zone-node--transit { fill: rgba(121,185,174,.14); stroke: var(--teal); }
.map-svg .zone-node--gate { fill: rgba(141,174,132,.16); stroke: #91aa88; }
.map-svg .zone-node--hazard { fill: rgba(197,109,96,.13); stroke: var(--red); }
.map-svg .zone-label { fill: #aaa499; font-size: 2.8px; font-family: var(--sans); letter-spacing: .04em; paint-order: stroke; stroke: #0d1014; stroke-width: .7px; }
.map-svg .zone-label--small { font-size: 2.2px; fill: #73746c; }
.map-svg .route-line { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(213,178,109,.4)); }
.map-svg .route-node { fill: var(--gold); stroke: #0d1014; stroke-width: .6; }
.map-svg .route-num { fill: #17130c; font-size: 2.3px; font-family: var(--mono); font-weight: 700; }
.map-svg .dungeon-mark { fill: rgba(141,174,132,.16); stroke: #91aa88; stroke-width: .6; }
.map-svg .dungeon-cross { stroke: #91aa88; stroke-width: .5; }
.map-svg .compass { stroke: rgba(238,230,214,.15); fill: none; stroke-width: .5; }
.map-svg .compass-text { fill: #5d5e57; font-family: var(--mono); font-size: 2.3px; letter-spacing: .1em; }
.map-svg .sector { fill: rgba(238,230,214,.018); stroke: rgba(238,230,214,.05); stroke-width: .4; }
.map-svg .sector-label { fill: #4e504a; font-family: var(--mono); font-size: 1.9px; letter-spacing: .12em; }
.map-svg .tinnitus-circle { fill: rgba(121,185,174,.035); stroke: rgba(121,185,174,.35); stroke-width: .8; stroke-dasharray: 2 2; }
.map-svg .tinnitus-label { fill: var(--teal); font-family: var(--mono); font-size: 2.1px; }
.map-svg .water-ring { fill: none; stroke: rgba(121,185,174,.45); stroke-width: .7; }
.map-svg .water-fill { fill: rgba(121,185,174,.06); }
.map-svg .naiad-line { fill: none; stroke: rgba(213,178,109,.55); stroke-width: .7; stroke-dasharray: 2 2; }
.map-svg .naiad-label { fill: var(--gold-2); font-family: var(--mono); font-size: 2.2px; }
.map-svg.no-labels .zone-label,
.map-svg.no-labels .sector-label { display: none; }
.map-svg.no-route .route-line,
.map-svg.no-route .route-node,
.map-svg.no-route .route-num { display: none; }
.map-svg.no-dungeon .zone-node--gate { opacity: .25; }

/* ---------- animations ---------- */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(121,185,174,.07); opacity: .9; }
  50% { box-shadow: 0 0 0 7px rgba(121,185,174,.02); opacity: 1; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes commandIn { from { opacity: 0; transform: translateY(-8px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -18; } }
.radar__sweep { transform-origin: 50% 50%; animation: sweep 12s linear infinite; }
.radar__pulse { animation: pulse 3.2s infinite; }
.route-line { animation: dash 3.2s linear infinite; }
.page-enter { animation: fadeUp .35s ease both; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .char-grid { grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); }
  .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1120px) {
  :root { --sidebar: 220px; }
  .main { padding-left: 28px; padding-right: 28px; }
  .topbar { padding-left: 28px; padding-right: 28px; }
  .hero { grid-template-columns: 1fr .72fr; gap: 20px; }
  .hero h1 { font-size: clamp(44px, 6vw, 68px); }
  .map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule-grid { grid-template-columns: repeat(2, 1fr); }
  .map-detail-grid { grid-template-columns: 1fr; }
  .side-stack { display: grid; grid-template-columns: 1fr 1fr; }
  .route-detail { grid-column: auto; }
  .char-detail { grid-template-columns: 260px minmax(0, 1fr); }
  .char-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
@media (max-width: 920px) {
  :root { --header: 60px; }
  .sidebar {
    transform: translateX(-102%); transition: transform .25s ease; width: 260px;
    box-shadow: 30px 0 80px rgba(0,0,0,.4); padding-top: 22px;
  }
  .sidebar.is-open { transform: none; }
  .sidebar__close { display: inline-grid; }
  .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(4,5,7,.6); backdrop-filter: blur(3px); }
  .sidebar-scrim[hidden] { display: none; }
  .content { margin-left: 0; }
  .topbar { padding: 0 20px; }
  .topbar__menu { display: inline-grid; }
  .brand-chip { display: none; }
  .main { padding: 28px 20px 90px; }
  .site-footer { padding: 24px 20px 90px; flex-direction: column; align-items: flex-start; }
  .mobile-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex;
    justify-content: space-around; padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    background: rgba(12,15,18,.94); border-top: 1px solid var(--line); backdrop-filter: blur(14px);
  }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #6d6e67; font-size: 8px; padding: 5px 12px; border-radius: 2px; }
  .mobile-nav a.is-active { color: var(--gold); background: rgba(213,178,109,.06); }
  .mobile-nav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
  .hero { grid-template-columns: 1fr; }
  .hero__visual { min-height: 300px; order: -1; }
  .radar { width: min(80%, 330px); }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2) { border-right: 0; }
  .stat-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .module-grid { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .page-head__meta { padding-bottom: 0; }
  .detail-head { flex-direction: column; gap: 17px; }
  .detail-head__stats { padding-top: 0; }
  .side-stack { grid-template-columns: 1fr 1fr; }
  .char-detail { grid-template-columns: 1fr; }
  .char-profile { position: static; display: grid; grid-template-columns: 104px 1fr; gap: 0 18px; }
  .char-profile__sigil { grid-row: span 2; width: 92px; height: 92px; margin-bottom: 0; }
  .char-profile h1 { margin-top: 5px; }
  .char-profile__intro, .char-profile__meta, .char-numbers { grid-column: 1 / -1; }
  .char-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
  .tool-grid, .tool-grid--map { grid-template-columns: 1fr; }
  .tool-stage { min-height: 360px; }
  .tool-stage--real { min-height: 0; }
  .tool-stage svg { min-height: 360px; }
  .tool-map > svg { min-height: 0; }
  .tool-map { width: min(100%, calc(58vh * var(--map-ratio))); }
  .about-grid { grid-template-columns: 1fr; }
  .about-card--wide { grid-column: auto; }
  .route-detail__body { grid-template-columns: 1fr; gap: 17px; }
  .route-aside { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 15px; }
}
@media (max-width: 640px) {
  .topbar__right { gap: 8px; }
  .search-trigger span:not(.search-trigger__icon) { display: none; }
  .search-trigger kbd { display: none; }
  .signal-chip { padding-left: 10px; font-size: 9px; }
  .crumbs { font-size: 8px; letter-spacing: .1em; }
  .hero h1 { font-size: clamp(39px, 12vw, 58px); }
  .hero__sub { font-size: 12px; }
  .hero__meta { gap: 10px; font-size: 7px; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat-cell { padding: 14px; }
  .stat-cell b { font-size: 23px; }
  .map-grid, .route-grid { grid-template-columns: 1fr; }
  .map-card--wide { grid-column: auto; }
  .rule-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .char-card__info { padding: 7px 8px 8px; }
  .char-card__name { font-size: 12px; }
  .contact-links { grid-template-columns: 1fr; }
  .map-card--real .map-card__visual--real { height: 188px; }
  .map-viewport { max-height: 62vh; }
  .tool-map { width: min(100%, calc(48vh * var(--map-ratio))); }
  .tool-stage__bar { align-items: flex-start; flex-direction: column; gap: 7px; }
  .map-select-label { width: 100%; justify-content: space-between; }
  .side-stack { grid-template-columns: 1fr; }
  .page-head__meta { gap: 18px; }
  .detail-head__stats { gap: 18px; display: grid; grid-template-columns: 1fr 1fr 1fr; width: 100%; }
  .board { aspect-ratio: 1 / 1.05; }
  .board-panel__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .route-pill { min-width: 120px; }
  .char-profile { grid-template-columns: 82px 1fr; padding: 16px; }
  .char-profile__sigil { width: 72px; height: 72px; font-size: 31px; }
  .char-profile h1 { font-size: 23px; }
  .two-col { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .quiz-card { padding: 19px 16px; }
  .quiz-option { font-size: 10px; }
  .command { max-height: 78vh; }
  .search-overlay { padding: 7vh 10px 10px; }
  .site-footer__meta { justify-content: flex-start; }
}
@media (max-width: 390px) {
  .char-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__actions .btn { width: 100%; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat-cell { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .stat-cell:last-child { border-bottom: 0; }
}
@media (max-width: 350px) {
  .char-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (pointer: coarse) {
  .tool-map .map-token { width: 40px; height: 40px; }
  .tool-map .map-token--hunter,
  .tool-map .map-token--naiad { width: 44px; height: 44px; }
  .tool-map .map-token--fork { width: 36px; height: 36px; }
  .filter-chip { min-height: 32px; padding: 6px 12px; }
  .tool-toggle { min-height: 30px; padding: 5px 9px; }
  .route-pill { min-height: 42px; }
}
@media (max-width: 920px) and (orientation: landscape) {
  .tool-map { width: min(100%, calc(50vh * var(--map-ratio))); }
  .map-viewport { max-height: 58vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
