/* GTA 6 Treasure Map — stylesheet. No external dependencies. */
:root {
  --bg: #061527;
  --bg-2: #082038;
  --panel: #0d2843;
  --panel-2: #123352;
  --panel-3: #0a2036;
  --line: rgba(128, 199, 226, .18);
  --line-strong: rgba(128, 199, 226, .34);
  --text: #eaf5fb;
  --muted: #9fb9cd;
  --muted-2: #7796b0;
  --cyan: #26d8e6;
  --cyan-dark: #0d8fa3;
  --gold: #ffc857;
  --blue: #38d9ff;
  --green: #4ad9a0;
  --violet: #c58bff;
  --red: #ff8a95;
  --shadow: 0 18px 48px rgba(0, 8, 20, .42);
  --radius: 18px;
  --radius-sm: 11px;
  --font: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(29, 178, 199, .16), transparent 70%),
    radial-gradient(800px 600px at 100% 0%, rgba(38, 92, 168, .14), transparent 70%),
    linear-gradient(180deg, #071a30 0%, #061527 52%, #04101f 100%);
}
img { max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #8af2f8; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--cyan); color: #04121f; padding: 10px 18px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
.container { width: min(1400px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(940px, calc(100% - 40px)); margin-inline: auto; }
.zh { color: var(--muted-2); font-size: .82em; font-weight: 400; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 21, 39, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; color: var(--text); font-weight: 800; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--cyan), #1474a8); color: #04182a; font-size: 19px;
  box-shadow: 0 0 22px rgba(38, 216, 230, .3);
}
.brand-text { font-size: 16px; line-height: 1.1; }
.brand-text small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .16em; color: var(--muted-2); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--muted); font-size: 13.5px; font-weight: 600; padding: 9px 12px; border-radius: 9px;
  white-space: nowrap;
}
.nav a:hover { background: rgba(38, 216, 230, .1); color: var(--text); }
.nav a[aria-current="page"] { color: var(--cyan); background: rgba(38, 216, 230, .12); }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  background: linear-gradient(120deg, var(--cyan), #1aa9c9); color: #04182a !important;
  font-size: 13px; font-weight: 800; white-space: nowrap;
}
.header-cta:hover { filter: brightness(1.12); }
.nav-toggle { display: none; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; }

/* ---------- Hero ---------- */
.hero { padding: 54px 0 30px; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 38px; align-items: start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
  background: rgba(38, 216, 230, .1); border: 1px solid rgba(38, 216, 230, .26);
  padding: 7px 13px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.025em; margin: 0 0 16px; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); font-weight: 850; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 750; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(1rem, 1.3vw, 1.16rem); color: #c4d8e7; max-width: 66ch; }
.hero h1 span { color: var(--cyan); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 21px; border-radius: 11px; font-weight: 700; font-size: 14.5px;
  border: 1px solid var(--line-strong); color: var(--text); background: var(--panel);
  transition: transform .16s ease, filter .16s ease, background .16s ease;
}
.btn:hover { color: var(--text); transform: translateY(-1px); background: var(--panel-2); }
.btn-primary { background: linear-gradient(120deg, var(--cyan), #19a6c8); color: #04182a; border-color: transparent; }
.btn-primary:hover { color: #04182a; filter: brightness(1.1); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.hero-note { font-size: 12.5px; color: var(--muted-2); }
.hero-card {
  background: linear-gradient(160deg, rgba(19, 58, 90, .92), rgba(9, 32, 54, .92));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.hero-card img { border-radius: 11px; display: block; width: 100%; border: 1px solid var(--line); }
.hero-card figcaption { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 30px 0 6px; }
.stat {
  background: linear-gradient(160deg, rgba(18, 51, 82, .72), rgba(9, 31, 52, .72));
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
}
.stat b { display: block; font-size: 1.9rem; font-weight: 850; line-height: 1.1; letter-spacing: -.04em; }
.stat span { font-size: 12.5px; color: var(--muted); }
.stat small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted-2); }

/* ---------- Section frame ---------- */
.section { padding: 30px 0 54px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 62ch; margin: 0; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }

/* ---------- Map application ---------- */
.map-app {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  background: #02abc9;
  box-shadow: var(--shadow);
}
.map-viewport {
  position: relative;
  height: calc(100svh - 66px - 24px);
  min-height: 460px;
  overflow: hidden;
  background: #02abc9;
  cursor: grab;
  touch-action: none;
}
.map-section { padding: 12px 0 30px; }
.map-bottom-bar {
  display: none; align-items: center; gap: 8px; margin-top: 10px;
  padding: 8px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: rgba(13, 40, 67, .92); box-shadow: var(--shadow);
}
.map-bottom-bar input {
  flex: 1; min-width: 0; padding: 11px 12px; color: #fff; font-size: 14px;
  background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px;
}
.map-bottom-bar input::placeholder { color: rgba(255, 255, 255, .42); }
.map-bottom-bar input:focus { outline: 2px solid rgba(38, 216, 230, .55); outline-offset: 1px; }
.bar-filter-btn {
  flex: 0 0 auto; padding: 11px 15px; border-radius: 10px; border: 0;
  background: linear-gradient(120deg, var(--cyan), #19a6c8); color: #04182a; font-size: 13.5px; font-weight: 800;
}
/* colored region overlay */
.region-layer {
  position: absolute; top: 0; bottom: 0;
  left: var(--map-pad, 27.62%);
  /* an <svg> is a replaced element: left+right alone would not stretch it, so size it explicitly */
  width: calc(100% - 2 * var(--map-pad, 27.62%)); height: 100%; pointer-events: none; z-index: 1; overflow: hidden;
}
.region-group {
  opacity: 0; transition: opacity .25s ease;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, .45));
}
.region-group path {
  fill: var(--rc); fill-opacity: .3;
  stroke: var(--rc); stroke-width: 3; stroke-opacity: .9;
  vector-effect: non-scaling-stroke; paint-order: stroke fill;
}
.region-group.active { opacity: 1; }
.marker-layer { z-index: 2; }
.chip[data-region]:not([data-region="all"])::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px;
  border-radius: 50%; background: var(--rc, var(--cyan)); vertical-align: 1px;
}
.chip[data-region][aria-pressed="true"]:not([data-region="all"]) {
  background: var(--rc); border-color: var(--rc); color: #071423;
}
.chip[data-region][aria-pressed="true"]:not([data-region="all"])::before { background: #071423; }
.map-viewport.dragging { cursor: grabbing; }
.map-stage {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.map-stage > img { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.tile-layer {
  position: absolute; top: 0; bottom: 0;
  left: var(--map-pad, 27.62%); right: var(--map-pad, 27.62%);
  isolation: isolate; pointer-events: none; overflow: hidden;
}
.tile-level { position: absolute; inset: 0; }
.tile-level[hidden] { display: none; }
.tile {
  position: absolute; display: block; max-width: none;
  opacity: 0; transition: opacity .25s ease;
  user-select: none; -webkit-user-drag: none;
}
.tile.ready { opacity: 1; }
.marker-layer {
  position: absolute; top: 0; bottom: 0;
  left: var(--map-pad, 27.62%); right: var(--map-pad, 27.62%);
  pointer-events: none;
}

.map-marker {
  position: absolute; width: 16px; height: 16px; padding: 0; border-radius: 50%;
  transform: translate(-50%, -50%) scale(var(--inv-zoom, 1));
  border: 2px solid #fff; background: var(--mc, var(--cyan));
  box-shadow: 0 2px 10px rgba(3, 20, 35, .55);
  pointer-events: auto; cursor: pointer; z-index: 3;
  transition: box-shadow .15s ease;
}
.map-marker::after {
  content: attr(data-label);
  position: absolute; left: 50%; top: -9px; transform: translate(-50%, -100%);
  background: rgba(20, 22, 42, .95); color: #fff; border: 1px solid rgba(255, 255, 255, .16);
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 7px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .12s ease;
}
.map-marker:hover::after, .map-marker:focus-visible::after { opacity: 1; }
.map-marker:hover, .map-marker.selected {
  z-index: 9;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .38), 0 0 22px var(--mc, var(--cyan));
}
.map-marker.found { background: #0f2c3f; border-color: var(--green); }
.map-marker.found::before {
  content: "✓"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 10px; font-weight: 900; color: var(--green);
}
.map-cluster {
  position: absolute; min-width: 36px; height: 36px; padding: 0 9px; border-radius: 999px;
  transform: translate(-50%, -50%) scale(var(--inv-zoom, 1));
  border: 2px solid #fff; background: var(--mc, var(--cyan)); color: #052033;
  font-size: 12.5px; font-weight: 900; cursor: pointer; z-index: 5;
  box-shadow: 0 6px 18px rgba(3, 20, 35, .45);
}
.map-cluster:hover { filter: brightness(1.08); }
.map-cluster small { font-size: 9px; opacity: .8; }

/* floating filter panel */
.map-sidebar {
  position: absolute; left: 14px; top: 14px; bottom: 14px; width: 344px; z-index: 15;
  display: flex; flex-direction: column;
  padding: 16px 16px 18px;
  background: rgba(20, 22, 42, .9);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  overflow-y: auto; overscroll-behavior: contain;
  color: #eaf6fb;
  color-scheme: dark;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .28) transparent;
  transition: transform .25s ease;
}
.map-sidebar::-webkit-scrollbar { width: 8px; }
.map-sidebar::-webkit-scrollbar-track { background: transparent; margin: 14px 0; }
.map-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .26); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
.map-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .42); background-clip: content-box; }
@media (min-width: 901px) {
  .map-app.panel-collapsed .map-sidebar { transform: translateX(calc(-100% - 24px)); pointer-events: none; }
  .map-app.panel-collapsed .map-panel-toggle { display: inline-flex; }
}
.panel-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.panel-eyebrow { margin: 0 0 3px; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.panel-title { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.panel-count { margin: 2px 0 0; font-size: 12px; color: rgba(255, 255, 255, .62); }
.panel-close {
  margin-left: auto; width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06);
  color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
}
.panel-close:hover { background: rgba(255, 255, 255, .14); }
.side-title { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .55); margin: 0 0 9px; }
.side-block { margin-bottom: 20px; }
.side-block:last-of-type { margin-bottom: 14px; }
.cat-list { display: grid; gap: 7px; }
.cat-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px; padding: 9px 10px; color: #fff; font-size: 13px; font-weight: 650;
  transition: background .15s, border-color .15s, opacity .15s;
}
.cat-btn:hover { background: rgba(255, 255, 255, .1); }
.cat-btn[aria-pressed="false"] { opacity: .45; }
.cat-btn[aria-pressed="true"] { border-color: rgba(38, 216, 230, .55); background: rgba(38, 216, 230, .12); }
.cat-icon {
  width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center;
  border-radius: 9px; color: #06131f; font-size: 15px; font-weight: 900;
}
.cat-label { flex: 1; min-width: 0; line-height: 1.25; }
.cat-count { font-size: 11.5px; font-weight: 800; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .1); padding: 2px 8px; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 650;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .74);
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { color: #fff; border-color: rgba(38, 216, 230, .6); }
.chip[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: #04182a; }
.search-box { position: relative; }
.search-box input {
  width: 100%; padding: 11px 12px 11px 34px; color: #fff; font-size: 13px;
  background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .14); border-radius: 11px;
}
.search-box input::placeholder { color: rgba(255, 255, 255, .42); }
.search-box input:focus { outline: 2px solid rgba(38, 216, 230, .55); outline-offset: 1px; }
.search-box::before { content: "⌕"; position: absolute; left: 11px; top: 7px; color: var(--cyan); font-size: 19px; }
.search-results { margin-top: 8px; display: grid; gap: 3px; max-height: 178px; overflow-y: auto; }
.search-results:empty { display: none; }
.search-result {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: transparent; border: 0; border-radius: 8px; padding: 7px 9px; color: rgba(255, 255, 255, .78); font-size: 12.5px;
}
.search-result:hover { background: rgba(38, 216, 230, .14); color: #fff; }
.search-result i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.search-result span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result small { margin-left: auto; color: rgba(255, 255, 255, .45); font-size: 10.5px; }
.progress-wrap { background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 12px; }
.progress-row { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, .62); margin-bottom: 9px; }
.progress-row b { color: #fff; font-size: 14px; }
.bar { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--green)); transition: width .35s ease; }
.toggle-label { display: inline-flex; align-items: center; gap: 7px; margin-top: 11px; cursor: pointer; user-select: none; font-size: 12px; color: rgba(255, 255, 255, .72); }
.toggle-label input { accent-color: var(--cyan); }
.progress-actions { display: flex; gap: 6px; margin-top: 11px; }
.progress-actions button {
  flex: 1; font-size: 11.5px; padding: 8px 4px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .78);
}
.progress-actions button:hover { color: #fff; border-color: rgba(38, 216, 230, .6); }
.side-note { font-size: 11px; color: rgba(255, 255, 255, .48); border-left: 2px solid rgba(38, 216, 230, .5); padding-left: 10px; margin: 0; }

/* map chrome */
.map-panel-toggle {
  position: absolute; left: 14px; top: 14px; z-index: 16; display: none;
  align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px;
  background: rgba(20, 22, 42, .92); border: 1px solid rgba(255, 255, 255, .16); color: #fff;
  font-size: 12.5px; font-weight: 750; backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.map-controls {
  position: absolute; right: 14px; top: 14px; z-index: 12;
  display: flex; align-items: center; gap: 2px; padding: 5px;
  background: rgba(20, 22, 42, .86); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
}
.map-controls button {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent;
  color: #fff; font-size: 18px; font-weight: 700; display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.map-controls button:hover { background: rgba(255, 255, 255, .14); color: var(--cyan); }
.map-controls .ctrl-reset {
  margin: 0 0 0 4px; padding: 0; border: 0; border-left: 1px solid rgba(255, 255, 255, .12);
  border-radius: 0 999px 999px 0; width: 36px; height: 34px; font-size: 16px;
}
.zoom-readout { min-width: 34px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: rgba(255, 255, 255, .62); line-height: 1; }
.map-legend {
  position: absolute; left: 14px; bottom: 14px; z-index: 11;
  display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center;
  background: rgba(20, 22, 42, .88); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  padding: 9px 16px; font-size: 11.5px; color: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.legend-row { display: flex; align-items: center; gap: 7px; }
@media (min-width: 901px) {
  .map-legend { left: 372px; }
}
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.map-hint {
  position: absolute; right: 66px; bottom: 14px; z-index: 10; font-size: 11px;
  color: rgba(255, 255, 255, .78); background: rgba(20, 22, 42, .8); border-radius: 999px; padding: 7px 12px;
  backdrop-filter: blur(12px);
}
.detail-card {
  position: absolute; right: 68px; top: 14px; z-index: 14; width: min(316px, calc(100% - 96px));
  background: rgba(20, 22, 42, .96); border: 1px solid rgba(255, 255, 255, .16); border-radius: 15px;
  padding: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); backdrop-filter: blur(16px);
}
.detail-card[hidden] { display: none; }
.detail-top { display: flex; align-items: flex-start; gap: 10px; }
.detail-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; color: #04182a; white-space: nowrap;
}
.detail-close {
  margin-left: auto; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8); font-size: 17px; line-height: 1;
}
.detail-close:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.detail-card h3 { margin: 10px 0 4px; font-size: 17px; color: #fff; }
.detail-meta { font-size: 11.5px; color: rgba(255, 255, 255, .55); margin-bottom: 10px; }
.detail-card p { font-size: 13px; color: rgba(255, 255, 255, .78); margin-bottom: 12px; }
.detail-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.detail-actions .btn { flex: 1; }
.detail-source { display: block; margin-top: 11px; font-size: 11px; color: rgba(255, 255, 255, .45); }
.map-footer-note {
  margin: 12px 0 0; padding: 11px 16px; border: 1px solid var(--line);
  border-radius: 12px; font-size: 11.5px; color: var(--muted-2); background: rgba(6, 26, 45, .7);
}
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: #0d3a52; border: 1px solid var(--cyan); color: var(--text);
  border-radius: 10px; padding: 11px 18px; font-size: 13px; font-weight: 650;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Category cards / guides ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  background: linear-gradient(165deg, rgba(18, 51, 82, .75), rgba(8, 29, 49, .75));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 8px; transition: transform .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.card-num { font-size: 2rem; font-weight: 850; line-height: 1; letter-spacing: -.04em; }
.card h3 { margin: 2px 0 4px; font-size: 1.08rem; }
.card p { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.card .card-link { margin-top: auto; font-size: 13px; font-weight: 750; }

/* ---------- Article / guide pages ---------- */
.page-hero { padding: 38px 0 18px; }
.breadcrumb { font-size: 12.5px; color: var(--muted-2); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 7px; opacity: .6; }
.page-hero .lead { margin-bottom: 18px; }
.meta-line { font-size: 12px; color: var(--muted-2); display: flex; gap: 16px; flex-wrap: wrap; }
.meta-line b { color: var(--muted); font-weight: 650; }
.prose { font-size: 15.5px; color: #d3e4ef; }
.prose h2 { margin-top: 42px; }
.prose h3 { margin-top: 26px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-decoration-color: rgba(38,216,230,.4); text-underline-offset: 3px; }
.notice {
  border-left: 3px solid var(--cyan); background: rgba(38, 216, 230, .07);
  border-radius: 0 12px 12px 0; padding: 15px 18px; font-size: 13.5px; color: #c6deeb; margin: 22px 0;
}
.notice strong { color: var(--cyan); }
.notice.warn { border-color: var(--gold); background: rgba(255, 200, 87, .07); }
.notice.warn strong { color: var(--gold); }
.toc {
  background: rgba(12, 40, 66, .62); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; margin: 24px 0 32px;
}
.toc b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 9px; }
.toc ol { margin: 0; padding-left: 20px; font-size: 13.5px; columns: 2; column-gap: 26px; }
.toc li { margin-bottom: 5px; break-inside: avoid; }
.site-block {
  border: 1px solid var(--line); border-radius: 15px; padding: 20px 22px; margin-bottom: 18px;
  background: linear-gradient(160deg, rgba(16, 47, 76, .6), rgba(7, 27, 46, .6));
}
.site-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.site-head h3 { margin: 0; font-size: 1.24rem; }
.site-head .count-pill {
  margin-left: auto; font-size: 11.5px; font-weight: 800; background: rgba(255,200,87,.14);
  color: var(--gold); border: 1px solid rgba(255,200,87,.3); padding: 4px 10px; border-radius: 999px;
}
.site-meta { font-size: 12.5px; color: var(--muted-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 14px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: rgba(38, 216, 230, .08); color: var(--text); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.025); }
td.num { color: var(--muted-2); font-variant-numeric: tabular-nums; width: 44px; }
td.code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--gold); white-space: nowrap; }
.check-cell { width: 42px; text-align: center !important; }
.check-cell input { width: 17px; height: 17px; accent-color: var(--green); cursor: pointer; }
.found-row { opacity: .58; }
.found-row td:not(.check-cell) { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.28); }
.checklist-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: rgba(12, 40, 66, .6); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; margin: 18px 0; font-size: 13px; color: var(--muted);
}
.checklist-toolbar .bar { flex: 1; min-width: 130px; }
.checklist-toolbar b { color: var(--text); }
.map-link {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
  color: var(--cyan); white-space: nowrap;
}
.faq { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 12px; }
.faq details { border-bottom: 1px solid var(--line); padding: 15px 2px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15.5px; color: var(--text); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--cyan); font-weight: 800; margin-right: 11px; }
.faq details[open] summary::before { content: "−"; }
.faq details p { margin: 10px 0 0 22px; font-size: 14px; color: var(--muted); }
.related { margin: 40px 0 10px; }
.related ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.related li a {
  display: block; padding: 13px 16px; border: 1px solid var(--line); border-radius: 11px;
  background: rgba(12, 40, 66, .5); font-size: 13.5px; font-weight: 650; color: var(--text);
}
.related li a:hover { border-color: var(--cyan); color: var(--cyan); }
.source-list { font-size: 13px; columns: 2; column-gap: 28px; padding-left: 20px; }
.source-list li { margin-bottom: 9px; break-inside: avoid; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; background: rgba(4, 15, 28, .65); padding: 34px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; }
.footer-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .13em; color: var(--muted-2); margin-bottom: 12px; }
.footer-grid p, .footer-grid li { font-size: 13px; color: var(--muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; font-size: 11.5px; color: var(--muted-2); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #082038; border-bottom: 1px solid var(--line); padding: 12px; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 14px; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .map-viewport { height: calc(100svh - 66px - 96px); min-height: 400px; }
  .map-sidebar { width: auto; right: 14px; transform: translateX(calc(-100% - 20px)); transition: transform .25s ease; }
  .map-app.panel-open .map-sidebar { transform: none; }
  .map-panel-toggle { display: none !important; }
  .map-bottom-bar { display: flex; }
  .map-section { padding-top: 8px; }
  .map-app.panel-open .map-controls { opacity: 0; pointer-events: none; }
  .map-controls { top: 10px; right: 10px; }
  .map-controls button { width: 32px; height: 32px; font-size: 16px; }
  .panel-close { display: grid; }
  .map-hint { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc ol, .source-list { columns: 1; }
}
@media (max-width: 620px) {
  .container, .narrow { width: min(100% - 26px, 1400px); }
  .hero { padding-top: 34px; }
  .card-grid, .card-grid-2, .stat-grid, .related ul, .footer-grid { grid-template-columns: 1fr; }
  .map-viewport { height: calc(100svh - 66px - 96px); min-height: 380px; }
  .map-legend { display: none; }
  .map-sidebar { left: 8px; right: 8px; top: 8px; bottom: 8px; }
  .detail-card { top: auto; bottom: 10px; right: 10px; left: 10px; width: auto; }
  .map-hint { display: none; }
  .site-block { padding: 16px; }
  h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .map-controls, .map-sidebar, .detail-card, .hero-actions, .checklist-toolbar { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .map-app { color: #000; }
  a { color: #000; }
}
