:root {
  --bg: #0b0614;
  --bg-2: #140a24;
  --panel: #1a0f2e;
  --panel-2: #22143b;
  --line: rgba(255, 255, 255, .08);
  --text: #f3eefc;
  --muted: #a99bc4;
  --pink: #ff2e88;
  --cyan: #2de2e6;
  --orange: #ff9e3d;
  --yellow: #ffd23f;
  --purple: #9d4edd;
  --green: #3ddc84;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --head: 'Bebas Neue', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% -10%, rgba(255, 46, 136, .18), transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(45, 226, 230, .12), transparent 45%),
    linear-gradient(transparent 0 calc(100% - 1px), rgba(157, 78, 221, .07) 0) 0 0 / 100% 48px,
    linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(157, 78, 221, .07) 0) 0 0 / 48px 100%;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--pink); }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 780px; }
.muted { color: var(--muted); }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: .02em; font-weight: 400; line-height: 1.05; margin: 0 0 .4em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 6, 20, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.logo:hover { color: var(--text); }
.logo-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  font: 26px/1 var(--head);
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 0 22px rgba(255, 46, 136, .55);
  color: #fff;
}
.logo-text { font: 26px/1 var(--head); letter-spacing: .04em; }
.logo-text span {
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0 4px;
}
.logo.small .logo-mark { width: 32px; height: 32px; font-size: 20px; }
.logo.small .logo-text { font-size: 22px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  color: var(--text); padding: 8px 12px; border-radius: 8px;
  font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
}
.main-nav a:hover { background: var(--panel-2); color: var(--pink); }
.main-nav .nav-admin { color: var(--yellow); }
.nav-search input {
  width: 170px; margin-left: 8px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: 14px;
  transition: width .2s, border-color .2s;
}
.nav-search input:focus { outline: none; border-color: var(--pink); width: 220px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); font-size: 20px; border-radius: 8px; padding: 4px 12px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 460px; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, #1b0b33 0%, #5a1a5e 45%, #ff2e88 75%, #ff9e3d 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(11, 6, 20, .92) 100%);
}
.hero .sun {
  position: absolute; right: 10%; bottom: 20%;
  width: 340px; height: 340px; border-radius: 50%;
  background: linear-gradient(180deg, var(--yellow), var(--orange) 50%, var(--pink));
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 22px, transparent 22px 28px);
  mask: repeating-linear-gradient(180deg, #000 0 22px, transparent 22px 28px);
  box-shadow: 0 0 120px rgba(255, 158, 61, .6);
  opacity: .9;
}
.hero .palms {
  position: absolute; inset: auto 0 0 0; height: 60%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cg fill='%230b0614'%3E%3Cpath d='M300 300 C305 220 312 160 330 100 L336 102 C320 160 314 220 312 300Z'/%3E%3Cpath d='M333 100 C300 80 270 85 240 110 C275 92 305 92 333 104Z'/%3E%3Cpath d='M333 100 C360 70 390 70 400 80 C380 75 355 85 335 106Z'/%3E%3Cpath d='M333 100 C320 60 290 45 260 50 C295 55 318 75 330 104Z'/%3E%3Cpath d='M333 100 C350 55 375 40 395 42 C370 52 350 72 336 104Z'/%3E%3Cpath d='M333 100 C300 110 285 135 280 160 C295 135 312 118 334 106Z'/%3E%3Cpath d='M333 100 C365 110 380 135 382 160 C370 135 355 118 332 106Z'/%3E%3Cpath d='M60 300 C62 240 66 200 80 150 L85 152 C73 200 70 240 70 300Z'/%3E%3Cpath d='M82 150 C55 135 30 138 10 155 C35 145 58 145 82 156Z'/%3E%3Cpath d='M82 150 C105 125 130 128 145 140 C125 135 105 140 84 156Z'/%3E%3Cpath d='M82 150 C75 118 55 105 30 108 C58 115 74 130 80 154Z'/%3E%3Cpath d='M82 150 C95 115 115 105 135 108 C112 116 96 132 85 154Z'/%3E%3C/g%3E%3C/svg%3E") right bottom / auto 100% no-repeat;
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 56px; max-width: 1200px; width: 100%; }
.hero h1, .hero .hero-title { font-size: clamp(42px, 7vw, 84px); max-width: 820px; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.hero h1 a, .hero .hero-title a { color: #fff; }
.hero h1 a:hover, .hero .hero-title a:hover { color: var(--yellow); }
.section-head h1::before { content: ''; display: inline-block; width: 6px; height: 28px; margin-right: 12px; background: linear-gradient(var(--pink), var(--orange)); border-radius: 3px; vertical-align: -2px; }
.hero p { max-width: 620px; font-size: 18px; color: #f1e6ff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.kicker {
  display: inline-block; margin-bottom: 12px;
  font: 600 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--cyan);
}

/* ---------- buttons, badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #fff; font: 700 14px/1 var(--body); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(255, 46, 136, .35);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 46, 136, .5); }
.btn.ghost { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2); box-shadow: none; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font: 700 11px/1.3 var(--body); text-transform: uppercase; letter-spacing: .1em;
  background: var(--accent, var(--pink)); color: #0b0614;
}
.badge:hover { color: #0b0614; filter: brightness(1.15); }
.chip {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font-size: 13px; font-weight: 500;
}
.chip:hover { border-color: var(--accent, var(--pink)); color: var(--accent, var(--pink)); }
.chips, .tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* category accent colors */
.cat-news { --accent: var(--pink); --c2: #7a1145; }
.cat-beginner { --accent: var(--cyan); --c2: #0f5c63; }
.cat-missions { --accent: var(--orange); --c2: #7a3e0a; }
.cat-money { --accent: var(--green); --c2: #0f5a33; }
.cat-vehicles { --accent: var(--yellow); --c2: #7a5c0a; }
.cat-weapons { --accent: #ff5c5c; --c2: #6b1414; }
.cat-map { --accent: #5ab0ff; --c2: #143f6b; }
.cat-online { --accent: var(--purple); --c2: #3e1466; }
.cat-tips { --accent: #ff7ad9; --c2: #6b1458; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 48px; padding-bottom: 64px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h1, .section-head h2 { font-size: 40px; margin: 0; }
.section-head h2::before { content: ''; display: inline-block; width: 6px; height: 28px; margin-right: 12px; background: linear-gradient(var(--pink), var(--orange)); border-radius: 3px; vertical-align: -2px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---------- cards ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 0 1px var(--accent); }
.card-cover {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, var(--c2) 0%, transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, var(--accent), #160b27 85%);
  background-size: cover; background-position: center;
}
.card-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0, 0, 0, .35)); }
.cover-title { position: relative; z-index: 1; font: 34px/1 var(--head); color: rgba(255, 255, 255, .92); text-shadow: 0 2px 20px rgba(0, 0, 0, .4); letter-spacing: .05em; text-align: center; padding: 0 12px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .badge { align-self: flex-start; }
.card h3 { font-size: 26px; margin: 4px 0 0; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.card .meta { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.widget h4 { font-size: 24px; color: var(--cyan); }
.latest { list-style: none; counter-reset: n; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.latest li { counter-increment: n; display: grid; grid-template-columns: 32px 1fr; column-gap: 8px; }
.latest li::before { content: counter(n, decimal-leading-zero); grid-row: span 2; font: 24px/1 var(--head); color: var(--pink); }
.latest a { color: var(--text); font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.latest a:hover { color: var(--pink); }
.latest span { font-size: 12px; color: var(--muted); }
.wanted { background: linear-gradient(135deg, #2a0f3f, #4a0f33); text-align: center; }
.stars { font-size: 26px; letter-spacing: 4px; color: var(--yellow); text-shadow: 0 0 14px rgba(255, 210, 63, .6); }
.stars.big { font-size: 48px; }

/* ---------- page head ---------- */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--purple)) 25%, transparent), transparent); }
.page-head h1 { font-size: clamp(44px, 7vw, 72px); }

/* ---------- post ---------- */
.post-head {
  position: relative; padding: 72px 0 48px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 30%, transparent), transparent 90%);
}
.post-head[style] { background: linear-gradient(180deg, rgba(11, 6, 20, .55), var(--bg)), var(--cover) center / cover; }
.post-head h1 { font-size: clamp(40px, 6.5vw, 68px); margin-top: 16px; }
.lead { font-size: 19px; color: #dcd0f0; }
.post-head .meta { color: var(--muted); font-size: 14px; }
.prose { padding: 40px 0 16px; font-size: 17.5px; }
.prose h2 { font-size: 36px; margin-top: 1.6em; color: var(--text); }
.prose h2::after { content: ''; display: block; width: 60px; height: 3px; margin-top: 8px; background: linear-gradient(90deg, var(--pink), var(--orange)); border-radius: 2px; }
.prose h3 { font-size: 26px; margin-top: 1.4em; color: var(--cyan); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--pink); }
.prose strong { color: #fff; }
.prose blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--yellow); background: var(--panel); border-radius: 0 10px 10px 0; color: #e7dcf7; }
.prose blockquote p:last-child { margin: 0; }
.prose code { background: var(--panel-2); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.prose pre { background: var(--panel); padding: 16px; border-radius: 10px; overflow: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--cyan); font-weight: 600; background: var(--panel); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 24px 0 8px; margin-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.share a, .share button { background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 8px 14px; border-radius: 8px; font: 600 13px var(--body); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--pink); color: var(--pink); }
.related { padding-top: 32px; padding-bottom: 64px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 16px; }
.notfound h1 { font-size: 96px; color: var(--pink); text-shadow: 0 0 40px rgba(255, 46, 136, .5); }

/* ---------- admin ---------- */
.admin, .admin-box { padding-top: 48px; padding-bottom: 64px; }
.admin-box { max-width: 420px; }
.admin-box h1 { font-size: 48px; }
.row { display: flex; gap: 12px; align-items: center; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.alert.error { background: rgba(255, 92, 92, .12); border: 1px solid rgba(255, 92, 92, .4); color: #ffb3b3; }
.alert.ok { background: rgba(61, 220, 132, .1); border: 1px solid rgba(61, 220, 132, .4); color: #a6f5c8; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.form input, .form select, .form textarea {
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font: 15px/1.5 var(--body); text-transform: none; letter-spacing: 0;
}
.form textarea.content-input { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 46, 136, .2); }
.form .check { flex-direction: row; align-items: center; gap: 10px; }
.form .btn { align-self: flex-start; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.editor-tabs { display: flex; gap: 4px; margin-bottom: -14px; }
.editor-tabs button { background: transparent; color: var(--muted); border: 1px solid var(--line); border-bottom: 0; padding: 8px 16px; border-radius: 8px 8px 0 0; cursor: pointer; font: 600 13px var(--body); }
.editor-tabs button.active { background: var(--panel); color: var(--pink); }
.preview-pane { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 24px; min-height: 300px; }
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.table td a { color: var(--text); font-weight: 600; }
.table td a:hover { color: var(--pink); }
.nowrap { white-space: nowrap; }
.actions { display: flex; gap: 14px; align-items: center; }
.actions a { color: var(--cyan) !important; }
.link { background: none; border: 0; padding: 0; cursor: pointer; font: 600 14.5px var(--body); }
.link.danger { color: #ff7b7b; }
.empty { padding: 40px; text-align: center; background: var(--panel); border-radius: var(--radius); color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--pink); }
.disclaimer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: #7d6f99; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .main-nav a { padding: 8px 8px; font-size: 13px; }
  .nav-search input { width: 130px; }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 8px; font-size: 15px; }
  .nav-search input, .nav-search input:focus { width: 100%; margin: 8px 0 0; }
  .hero .sun { width: 220px; height: 220px; right: 5%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { min-height: 400px; }
  .hero .palms { opacity: .6; }
  .section-head h1, .section-head h2 { font-size: 32px; }
  .prose { font-size: 16.5px; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- ads ---------- */
.ad { margin: 28px 0; text-align: center; min-height: 100px; }
.grid .ad { grid-column: 1 / -1; margin: 0; }
.ad-label { display: block; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: #6f6290; margin-bottom: 6px; }
.sidebar .ad { margin: 0; }

/* ---------- home quick links ---------- */
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.ql { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); color: var(--text); }
.ql strong { font: 26px/1 var(--head); letter-spacing: .03em; color: var(--cyan); }
.ql span { color: var(--muted); font-size: 14px; }
.ql:hover { border-color: var(--pink); color: var(--text); }
.ql:hover strong { color: var(--pink); }

/* ---------- guides hub ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 28px 0 8px; }
.guide-group { padding-top: 32px; }
.guide-group .section-head h2::before { background: var(--accent); }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.guide-list a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; color: var(--text); }
.guide-list a:hover { border-color: var(--accent); }
.guide-list span { font-size: 14px; color: var(--muted); }
.page-head .kicker a { color: var(--cyan); }
.page-head.slim { padding: 40px 0 24px; }

/* ---------- database ---------- */
.db-hub, .db-list { padding-top: 40px; padding-bottom: 64px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.hub-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: transform .2s, border-color .2s; }
.hub-card:hover { transform: translateY(-3px); border-color: var(--pink); color: var(--text); }
.hub-card strong { font: 32px/1 var(--head); letter-spacing: .03em; }
.hub-card .muted { font-size: 14px; }
.hub-icon { font-size: 32px; }
.hub-count { color: var(--pink); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.map-card { background: linear-gradient(135deg, #3b0f3a, #0f2f4a); }
.legend-box { margin-top: 32px; }
.legend-box h2 { font-size: 32px; }
.status-legend { display: flex; flex-direction: column; gap: 10px; }
.status { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 700 11px/1.4 var(--body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.status-confirmed { background: rgba(61, 220, 132, .15); color: var(--green); border: 1px solid rgba(61, 220, 132, .4); }
.status-trailer { background: rgba(45, 226, 230, .12); color: var(--cyan); border: 1px solid rgba(45, 226, 230, .4); }
.status-reported { background: rgba(255, 210, 63, .12); color: var(--yellow); border: 1px solid rgba(255, 210, 63, .4); }
.status-expected { background: rgba(169, 155, 196, .12); color: var(--muted); border: 1px solid rgba(169, 155, 196, .35); }
.db-tools { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.db-tools input { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font: inherit; max-width: 420px; }
.db-tools input:focus { outline: none; border-color: var(--pink); }
button.chip { cursor: pointer; font-family: var(--body); }
.chip.active { background: var(--pink); border-color: var(--pink); color: #fff; }
.db-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.db-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--text); transition: border-color .15s, transform .15s; }
.db-card[hidden] { display: none; }
.db-card:hover { border-color: var(--cyan); transform: translateY(-2px); color: var(--text); }
.db-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.db-card-top strong { font-size: 16.5px; }
.db-fields { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.db-fields em { font-style: normal; color: #7d6f99; }
.db-card p { margin: 0; font-size: 14px; color: var(--muted); }
.infobox { margin-top: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row > span:first-child { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.layout > article .prose { padding-top: 24px; }

/* ---------- map ---------- */
.map-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; padding-top: 24px; }
.map-panel { display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; height: 72vh; min-height: 520px; }
.map-panel input[type=search], .map-panel select { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; }
.map-types { display: flex; flex-wrap: wrap; gap: 6px; }
.map-types .chip { font-size: 12px; padding: 4px 10px; opacity: .45; }
.map-types .chip.active { opacity: 1; background: var(--panel-2); color: var(--text); border-color: rgba(255,255,255,.25); }
.map-types i, .map-list i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; flex-shrink: 0; }
.map-panel .check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.map-progress { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.map-progress span { color: var(--yellow); font-weight: 700; }
.map-progress .link { margin-left: auto; font-size: 13px; }
.map-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; border-top: 1px solid var(--line); }
.map-list li { display: flex; align-items: center; gap: 8px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.map-list li.is-found span { opacity: .5; text-decoration: line-through; }
.map-list button { display: flex; align-items: center; background: none; border: 0; color: var(--text); cursor: pointer; text-align: left; font: 600 14px var(--body); padding: 0; flex: 1; }
.map-list button:hover { color: var(--pink); }
.map-list small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.map-list input { accent-color: var(--pink); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
#map { height: 72vh; min-height: 520px; background: #081a30; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.leaflet-popup-content { margin: 14px 16px; font-family: var(--body); }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.map-pop strong { display: block; font: 24px/1.1 var(--head); letter-spacing: .03em; margin: 4px 0; }
.map-pop p { margin: 0 0 8px; font-size: 13.5px; color: #d8cdee; }
.pop-type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.pop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.pop-actions button { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 5px 9px; cursor: pointer; font: 600 12px var(--body); }
.pop-actions button:hover { border-color: var(--pink); }
.leaflet-tooltip { background: var(--bg); color: var(--text); border: 1px solid var(--line); font: 600 12px var(--body); }
.leaflet-tooltip-top:before { border-top-color: var(--bg); }
.leaflet-bar a { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.leaflet-bar a:hover { background: var(--pink); color: #fff; }
.map-notes { padding-top: 16px; }

/* ---------- contact ---------- */
.hp { position: absolute; left: -9999px; }
.msg { margin-bottom: 16px; }

@media (max-width: 960px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-panel { height: auto; min-height: 0; order: 2; }
  .map-list { max-height: 320px; }
  #map { height: 60vh; min-height: 380px; }
  .quick-links { grid-template-columns: 1fr; }
}

/* ---------- images ---------- */
.card-cover.has-img { background: #000; }
.card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-cover img { transform: scale(1.05); }
.hero.has-img { background: #0b0614 var(--hero) center 30% / cover no-repeat; min-height: 520px; }
.hero.has-img::after { background: linear-gradient(90deg, rgba(11, 6, 20, .88) 0%, rgba(11, 6, 20, .55) 50%, rgba(11, 6, 20, .1) 100%), linear-gradient(180deg, transparent 55%, rgba(11, 6, 20, .95) 100%); }
.post-head[style] { background: linear-gradient(180deg, rgba(11, 6, 20, .45), rgba(11, 6, 20, .75) 60%, var(--bg)), var(--cover) center 35% / cover; padding: 140px 0 48px; }
.page-head.has-img { background: linear-gradient(90deg, rgba(11, 6, 20, .92), rgba(11, 6, 20, .55)), linear-gradient(180deg, transparent 50%, var(--bg)), var(--cover) center 35% / cover; padding: 110px 0 48px; }
.img-credit { font-size: 11.5px; color: #8d80a8; margin-top: 10px; }
/* 16:9 image frame that always fills the card width */
.thumb { position: relative; display: block; flex: none; align-self: stretch; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .4s; }
.thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(26, 15, 46, .7)); }
.hub-card.has-img, .db-card.has-img { padding-top: 0; overflow: hidden; }
.hub-card.has-img .thumb { margin: 0 -22px 8px; }
.db-card.has-img .thumb { margin: 0 -18px 4px; }
.hub-card:hover .thumb img, .db-card:hover .thumb img { transform: scale(1.05); }
.gallery-page { padding-bottom: 64px; }
.gallery-section { padding-top: 32px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gallery-grid.small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 8px; }
.gallery-grid a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--panel); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s, opacity .3s; }
.gallery-grid a:hover img { transform: scale(1.06); }
.prose .gallery-grid a { border: 1px solid var(--line); }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 2, 10, .94); display: flex; align-items: center; justify-content: center; padding: 48px 64px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 32px; line-height: 1; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: var(--pink); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) { .lightbox { padding: 64px 8px; } .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; } }

/* ---------- interactive map v2 ---------- */
.map-app { position: relative; height: calc(100vh - 72px); min-height: 680px; background: #071f38; overflow: hidden; border-bottom: 1px solid var(--line); }
.map-stage, #map { position: absolute; inset: 0; height: 100%; min-height: 0; background: #071f38; }
.map-app .map-panel { position: absolute; z-index: 700; top: 14px; left: 14px; bottom: 14px; width: 342px; display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow: hidden; background: rgba(16, 9, 29, .93); border: 1px solid rgba(255,255,255,.13); border-radius: 16px; box-shadow: 0 16px 50px rgba(0,0,0,.45); backdrop-filter: blur(10px); }
.map-title h1 { font-size: 34px; margin: 2px 0 3px; }
.map-title p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.map-title .kicker { font-size: 11px; }
.map-progress-box { padding: 9px 11px; background: rgba(255,255,255,.05); border-radius: 10px; font-size: 13px; color: var(--muted); }
.map-progress-box > div:first-child { display: flex; gap: 5px; align-items: center; }
.map-progress-box strong { color: var(--text); }
.map-progress-box .link { margin-left: auto; font-size: 12px; }
.map-track { height: 5px; margin-top: 7px; background: rgba(255,255,255,.1); border-radius: 5px; overflow: hidden; }
.map-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--pink), var(--yellow)); transition: width .25s; }
.map-app .map-panel input[type=search], .map-app .map-panel select { width: 100%; min-height: 38px; padding: 7px 11px; font-size: 14px; border-radius: 9px; }
.map-filter-head, .map-list-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.map-filter-head button { padding: 0; border: 0; background: none; color: var(--cyan); font: inherit; cursor: pointer; }
.map-app .map-types { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.map-filter { display: flex; align-items: center; gap: 6px; min-width: 0; height: 32px; padding: 0 8px; color: var(--muted); background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; font: 600 12px var(--body); cursor: pointer; }
.map-filter span { flex: 1; overflow: hidden; text-align: left; white-space: nowrap; text-overflow: ellipsis; }
.map-filter b { font-size: 11px; font-weight: 600; opacity: .75; }
.map-filter i, .map-list i { display: inline-grid; flex: 0 0 18px; width: 18px; height: 18px; margin: 0; place-items: center; background: none; border-radius: 0; color: var(--pin); }
.map-filter svg, .map-list i svg { width: 15px; height: 15px; fill: currentColor; }
.map-filter:not(.active) { opacity: .45; }
.map-filter:not(.active) i { color: var(--muted); }
.map-filter.active { color: var(--text); border-color: color-mix(in srgb, var(--pin) 55%, transparent); background: color-mix(in srgb, var(--pin) 12%, transparent); }
.map-app .check { font-size: 13px; }
.map-app .map-list { flex: 1; min-height: 80px; max-height: none; margin-right: -8px; padding-right: 8px; border-top: 0; scrollbar-width: thin; }
.map-app .map-list li { padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.map-app .map-list button { flex: 1; min-width: 0; gap: 8px; padding: 3px 0; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.map-app .map-list small { font-size: 11px; }
.map-list-empty { margin: 0; color: var(--muted); font-size: 13px; }
.map-credit { position: absolute; z-index: 650; right: 10px; bottom: 8px; padding: 3px 9px; color: rgba(255,255,255,.82); background: rgba(7,18,35,.72); border-radius: 6px; font-size: 11px; pointer-events: none; }
.map-pin { position: relative; display: grid; width: 32px; height: 32px; place-items: center; color: #10091d; background: var(--pin); border: 2px solid #fff; border-radius: 50% 50% 50% 4px; box-shadow: 0 3px 9px rgba(0,0,0,.5); transform: rotate(-45deg); transform-origin: 50% 50%; transition: transform .12s, filter .12s; }
.map-pin svg { width: 17px; height: 17px; fill: currentColor; transform: rotate(45deg); }
.map-pin.is-region { width: 38px; height: 38px; }
.map-pin.is-region svg { width: 21px; height: 21px; }
.map-pin:hover, .map-pin.is-active { filter: brightness(1.12); transform: rotate(-45deg) scale(1.17); }
.map-pin.is-active { box-shadow: 0 0 0 4px rgba(255,255,255,.3), 0 4px 12px rgba(0,0,0,.55); }
.map-pin.is-found { color: #fff; background: #4b4556; border-color: var(--pin); }
.map-region-label { display: grid; place-items: center; pointer-events: none; }
.map-region-label span { color: #fff; font: 22px/1 var(--head); letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 2px 3px rgba(0,0,0,.8), 0 0 14px rgba(0,0,0,.65); }
.labels-small .map-region-label span { font-size: 15px; }
.map-app .leaflet-top { top: 4px; }
.map-app .leaflet-bar { border: 1px solid rgba(255,255,255,.16); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.map-app .leaflet-bar a { width: 36px; height: 36px; line-height: 36px; background: rgba(22,13,39,.95); }
.map-home { display: grid !important; place-items: center; }
.map-home svg { width: 18px; height: 18px; fill: currentColor; }
.map-pop .pop-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.map-pop .pop-actions a, .map-pop .pop-actions button { padding: 5px 9px; color: var(--text); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 7px; font: 600 12px var(--body); cursor: pointer; text-decoration: none; }
.map-pop .pop-actions a { color: #10091d; background: var(--yellow); border-color: var(--yellow); }
@media (max-width: 959px) {
  .map-app { height: auto; min-height: 0; overflow: visible; }
  .map-stage { position: relative; height: 68vh; min-height: 430px; }
  #map { height: 100%; min-height: 0; }
  .map-app .map-panel { position: static; width: auto; max-height: none; margin: 0; border-width: 1px 0 0; border-radius: 0; box-shadow: none; backdrop-filter: none; order: 2; }
  .map-app { display: flex; flex-direction: column; }
  .map-stage { order: 1; }
  .map-app .map-list { max-height: 340px; }
  .map-region-label span { font-size: 16px; }
  .labels-small .map-region-label span { font-size: 12px; }
  .map-credit { font-size: 10px; }
}
.map-region-label { display: block; }
.map-region-label span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.map-pin { --pin-scale: 1; transform: rotate(-45deg) scale(var(--pin-scale)); }
.map-pin:hover, .map-pin.is-active { transform: rotate(-45deg) scale(calc(var(--pin-scale) * 1.17)); }
.labels-small .map-pin { --pin-scale: .68; }
.map-app .leaflet-popup-content-wrapper, .map-app .leaflet-popup-tip { color: var(--text); background: #22143b; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 12px 34px rgba(0,0,0,.55); }
.map-app .leaflet-popup-content-wrapper { border-radius: 13px; }
.map-app .leaflet-popup-content p { margin: 0 0 8px; color: #d8cdee; }
.map-app .leaflet-container a.leaflet-popup-close-button { color: #d8cdee; }
.map-app .leaflet-tooltip { color: var(--text); background: #0b0614; border-color: rgba(255,255,255,.18); }
.map-app .leaflet-tooltip-top:before { border-top-color: #0b0614; }
.map-app .leaflet-bar a { color: var(--text); border-bottom-color: rgba(255,255,255,.14); }
.map-app .leaflet-bar a:hover { color: #fff; background: var(--pink); }
