/* общий стиль базы дропа и вики (drop.html, wiki.html) */
:root {
  --bg: #09070a; --card: rgba(255,255,255,0.03); --card-h: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08); --accent: #b3272c; --accent-l: #e0524a;
  --text: #e9e2e2; --muted: #857577; --spoil: #d98a3d; --raid: #a77be0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh;
  background-image: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(179,39,44,0.14) 0%, transparent 65%);
}
a { color: inherit; }
.wrap { max-width: 920px; margin: 0 auto; padding: 28px 16px 60px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.logo { font-family: 'Cinzel', serif; font-size: 22px; letter-spacing: .08em; text-decoration: none; }
.logo b { color: var(--accent-l); font-weight: 600; }
.lang { display: flex; gap: 4px; }
.lang a { text-decoration: none; background: var(--card); border: 1px solid var(--border); color: var(--muted); border-radius: 8px; padding: 5px 10px; font-size: 13px; }
.lang a.on { color: var(--text); border-color: var(--accent); }
nav.top { margin-right: auto; margin-left: 18px; font-size: 14px; }
nav.top a { color: var(--muted); text-decoration: none; margin-right: 16px; }
nav.top a:hover { color: var(--text); }
h1.h2 { display: flex; align-items: center; gap: 12px; font-size: 20px; margin-bottom: 4px; }
.lang button { background: var(--card); border: 1px solid var(--border); color: var(--muted); border-radius: 8px; padding: 5px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.lang button.on { color: var(--text); border-color: var(--accent); }
h1 { font-size: 26px; font-weight: 600; letter-spacing: .01em; margin-bottom: 6px; }
.sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.search { position: relative; }
.search input {
  width: 100%; padding: 14px 44px 14px 16px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px; outline: none;
}
.search input:focus { border-color: var(--accent); }
.clear {
  position: absolute; top: 9px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; display: none;
}
.clear:hover { color: var(--text); background: var(--card-h); }
.clear.on { display: block; }
.list { margin-top: 8px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #110d10; }
.list:empty { display: none; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; text-decoration: none; border-top: 1px solid var(--border); }
.row:first-child { border-top: 0; }
.row:hover, .row.sel { background: var(--card-h); }
.row .tag { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.ico { width: 32px; height: 32px; border-radius: 4px; flex: none; background: #1a1418; }
.ico.sm { width: 24px; height: 24px; }
.card { margin-top: 22px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.card h2 { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.card .meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
td a { text-decoration: none; }
td a:hover { color: var(--accent-l); }
.name { display: flex; align-items: center; gap: 8px; }
.where { color: var(--muted); font-size: 12px; }
.kind { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--card-h); white-space: nowrap; }
.kind.k1 { color: var(--spoil); } .kind.k2 { color: var(--raid); }
.pa { color: var(--muted); }
.map { height: 380px; margin: 0 0 16px; border-radius: 10px; border: 1px solid var(--border); background: #b2aea0; z-index: 0; }
.maps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.maps:empty { display: none; }
.maps button { background: var(--card); border: 1px solid var(--border); color: var(--muted); border-radius: 8px; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.maps button.on { color: var(--text); border-color: var(--accent); }
.map.leaflet-container { background: #b2aea0; } /* перебиваем #ddd из leaflet.css: никаких светлых полос у краёв */
.leaflet-tooltip { font-family: Inter, sans-serif; }
.note { margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.empty { color: var(--muted); padding: 14px; font-size: 14px; }
@media (max-width: 600px) {
  h1 { font-size: 22px; }
  /* телефон: строка таблицы = 2 строки: имя | шанс, тип · кол-во | ПА */
  .map { height: 300px; }
  .tbl table, .tbl tbody { display: block; }
  .tbl tr.head { display: none; }
  .tbl tr { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "n n p" "k c a"; column-gap: 8px; row-gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: center; }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl td { display: block; padding: 0; border: 0; }
  .tbl td.c-n { grid-area: n; min-width: 0; }
  .tbl td.c-k { grid-area: k; }
  .tbl td.c-p { grid-area: p; font-size: 15px; font-weight: 600; }
  .tbl td.c-a { grid-area: a; font-size: 12px; }
  .tbl td.c-a::before { content: attr(data-l) " "; }
  .tbl td.c-c { grid-area: c; text-align: left; font-size: 12px; color: var(--muted); }
  .tbl td.c-c::before { content: "× "; }
  .tbl tr.ind td.c-k { margin-left: 32px; }
}
/* вики */
.sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; margin-top: 22px; }
.sections .card { margin-top: 0; }
.sect h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.sect-link { display: block; text-decoration: none; padding: 9px 10px; margin: 0 -10px; border-radius: 8px; }
.sect-link:hover { background: var(--card-h); }
.sect-link .txt > b { display: block; font-weight: 600; font-size: 15px; }
.sect-link .txt > span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.45; }
.crumbs { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.crumbs a { text-decoration: none; color: var(--accent-l); }
.crumbs a:hover { color: var(--text); }
.prose { line-height: 1.65; font-size: 15px; }
.prose h1.h2 { margin-bottom: 14px; }
.prose h2 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
.prose h3 { font-size: 15px; font-weight: 600; margin: 16px 0 4px; }
.prose p { margin: 8px 0; color: #d9d1d1; }
.prose ul, .prose ol { margin: 6px 0 10px 22px; color: #d9d1d1; }
.prose li { margin: 3px 0; }
.prose li img.ico { width: 24px; height: 24px; vertical-align: middle; margin-right: 6px; }
.prose a { color: var(--accent-l); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose table { margin: 10px 0; }
.prose code { background: var(--card-h); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.ptbl { overflow-x: auto; }
/* вики: оформление */
.wrap.wide { max-width: 1120px; }
.whero {
  position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--border);
  padding: 34px 20px 30px; text-align: center; margin-bottom: 8px;
  background: linear-gradient(to bottom, rgba(9,7,10,.35), rgba(9,7,10,.88)), url('/static/img/bg.jpg') center 30% / cover;
}
.whero::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 120px 20px rgba(0,0,0,.65); pointer-events: none; }
.whero > * { position: relative; z-index: 1; }
.whero-logo { width: 220px; height: auto; filter: drop-shadow(0 4px 18px rgba(0,0,0,.6)); }
.whero-tag { font-family: 'Cormorant SC', serif; letter-spacing: .32em; font-size: 13px; color: #c9b9b9; margin-top: 6px; }
.whero-title { font-family: 'Cormorant SC', serif; font-weight: 700; font-size: 54px; line-height: 1.05; margin: 4px 0 8px;
  text-shadow: 0 0 22px rgba(224,82,74,.55), 0 0 4px rgba(224,82,74,.6); letter-spacing: .04em; }
.whero-sub { color: #d6cccc; font-size: 15px; }
.slot { flex: none; width: 40px; height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #2a1d1f, #120c0e); border: 1px solid rgba(224,82,74,.28); box-shadow: inset 0 0 10px rgba(0,0,0,.6); }
.slot img { width: 32px; height: 32px; border-radius: 4px; }
.slot.big { width: 52px; height: 52px; }
.slot.big img { width: 42px; height: 42px; }
.sect-link { display: flex; gap: 12px; align-items: center; }
.sect-link .txt { min-width: 0; }
.sect-link:hover .slot { border-color: var(--accent-l); box-shadow: inset 0 0 10px rgba(0,0,0,.6), 0 0 12px rgba(224,82,74,.35); }
.sect h2 { border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.wlayout { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; margin-top: 4px; }
.wside { position: sticky; top: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.wside summary { display: none; }
.wside-sect { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin: 10px 6px 4px; }
.wside-sect:first-of-type { margin-top: 2px; }
.wside-link { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; text-decoration: none; font-size: 14px; color: #d9d1d1; }
.wside-link img { width: 22px; height: 22px; border-radius: 3px; }
.wside-link:hover { background: var(--card-h); }
.wside-link.on { background: rgba(179,39,44,.16); color: var(--text); box-shadow: inset 2px 0 0 var(--accent-l); }
.wlayout .prose { margin-top: 0; padding: 22px 26px; }
.whead { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; }
.whead h1 { font-size: 26px; margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 6px; font-size: 12px; }
.toc span { color: var(--muted); margin-right: 2px; }
.toc a { color: #d9d1d1 !important; background: var(--card-h); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
.toc a:hover { border-color: var(--accent); text-decoration: none !important; }
.prose h2 { display: flex; align-items: center; gap: 10px; scroll-margin-top: 12px; }
.prose h2::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(var(--accent-l), var(--accent)); flex: none; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.prose .tip { border-left: 3px solid var(--accent-l); background: rgba(179,39,44,.09); padding: 10px 14px; border-radius: 0 8px 8px 0; color: var(--text); }
.prose ul li::marker { color: var(--accent-l); }
@media (max-width: 900px) {
  .wlayout { grid-template-columns: 1fr; }
  .wside { position: static; padding: 0; }
  .wside summary { display: block; cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 14px; }
  .wside details[open] { padding: 0 12px 12px; }
  .wside details[open] summary { margin: 0 -12px; }
}
@media (max-width: 600px) {
  .whero-title { font-size: 42px; }
  .whero-logo { width: 170px; }
  .wlayout .prose { padding: 18px 16px; }
  .whead h1 { font-size: 22px; }
}
.st { font-size: 12px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.st-alive { color: #7fd48f; background: rgba(76,175,125,.14); }
.st-dead { color: #e0524a; background: rgba(179,39,44,.14); }
.prose td.mobs { line-height: 1.6; }
.toc[hidden] { display: none; }
/* вики «Обновления»: каждый день — отдельный блок */
.prose .upd { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: rgba(255,255,255,.02); padding: 4px 18px 10px; margin: 18px 0; }
.prose .upd h2 { margin-top: 12px; }
.prose .upd h2::before { display: none; }
.prose .upd h3 { color: var(--accent-l); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
/* таблица сравнения (чемпионы), в стиле «О сервере» на главной */
.ctable { margin-top: 14px; }
.ctable th { color: var(--accent-l); font-size: 13px; font-weight: 600; padding: 0 12px 10px 8px; border-bottom: 1px solid rgba(179,39,44,.45); text-align: left; }
.ctable th span { display: block; color: var(--muted); font-weight: 400; font-size: 11px; margin-top: 2px; }
.ctable th.c-blue { color: #7fb2ff; }
.ctable th.c-red { color: #ff6b5f; }
.ctable td { padding: 11px 12px 11px 8px; color: #d9d1d1; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.05); }
.ctable td:first-child { color: var(--text); font-weight: 500; font-size: 14px; }
.ctable td:nth-child(2) { color: #a9c8ff; font-weight: 600; }
.ctable td:nth-child(3) { color: #ff8f85; font-weight: 600; }
.ctable tr:hover td { background: rgba(255,255,255,.02); }
