/* L2Radar — тёмная тема, «радарный» бирюзово-зелёный акцент, VIP — золото */
:root {
  --bg: #0b0f14;
  --panel: #121922;
  --row: #161f2a;
  --row-h: #1c2836;
  --line: #233041;
  --text: #e7edf3;
  --muted: #8a98a9;
  --acc: #2ee6a8;
  --acc-d: #1aa87a;
  --gold: #f5c542;
  --r: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(1100px 520px at 50% -220px, rgba(46, 230, 168, .10), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--acc); }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
img { max-width: 100%; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 20px; padding-bottom: 40px; }

/* Шапка */
.hdr { border-bottom: 1px solid var(--line); background: rgba(11, 15, 20, .85); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo__i { width: 30px; height: 30px; color: var(--acc); }
.logo__t { font-size: 22px; font-weight: 800; letter-spacing: .06em; }
.logo__t b { color: var(--acc); font-weight: 800; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--acc); background: var(--panel); }

/* Баннеры */
.topban { display: block; position: relative; max-width: 1920px; margin: 0 auto; }
.topban img { display: block; width: 100%; height: auto; }
/* Как у l2oops: на широком экране нижняя часть «обоев» плавно уходит под контент */
@media (min-width: 1101px) {
  .topban::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
  .topban + .main { position: relative; margin-top: min(-9vw, -60px); }
}
.sideban { display: block; max-width: 240px; margin: 0 auto; width: 100%; }
.sideban img { display: block; width: 100%; height: auto; border-radius: var(--r); }
.sideban--m { display: none; margin: 0 auto 24px; max-width: 240px; }

/* Заголовки и крошки */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--acc); }
.crumbs span { margin: 0 6px; }
.h1 { margin: 0 0 20px; font-size: 26px; line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }

/* Раскладка: списки + правая колонка */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-items: start; }

/* Блок серверов */
.blk { margin-bottom: 28px; }
.blk__t {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
}
.blk__t::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px rgba(46, 230, 168, .15); }
.rows { display: grid; gap: 6px; }

/* Строка сервера: [иконка | название | рейт | хроника | дата] */
.row {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) 52px 92px 66px; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 12px;
  background: var(--row); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: 13px;
  transition: background .15s, border-color .15s;
}
.row:hover { background: var(--row-h); border-color: var(--acc-d); }
.row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__i { display: flex; align-items: center; justify-content: center; }
.crown { width: 18px; height: 18px; color: var(--gold); filter: drop-shadow(0 0 4px rgba(245, 197, 66, .35)); }
.dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.row__n { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.row__r { color: var(--acc); font-weight: 700; }
.row__c { color: var(--muted); }
.row__d { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* Правая колонка */
.side { display: grid; gap: 16px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.box__t { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 8px;
  background: var(--row); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font: inherit; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--acc-d); color: var(--acc); }
.btn--acc { background: var(--acc); border-color: var(--acc); color: #04120c; font-weight: 800; }
.btn--acc:hover { background: #5cf0c0; color: #04120c; }
.filter { display: grid; gap: 8px; }
.filter .box__t { margin-bottom: 2px; }
.filter select {
  width: 100%; height: 38px; padding: 0 10px;
  background: var(--row); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; font-size: 14px;
}

/* Календарь */
.cal__h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal__h .box__t { margin: 0; }
.cal__h a { color: var(--text); text-decoration: none; font-size: 20px; line-height: 1; padding: 2px 8px; border-radius: 6px; }
.cal__h a:hover { background: var(--row); color: var(--acc); }
.cal table { width: 100%; border-collapse: collapse; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.cal th { color: var(--muted); font-weight: 600; font-size: 12px; padding: 4px 0; }
.cal td { padding: 2px; height: 30px; }
.cal td.now { box-shadow: inset 0 0 0 1px var(--acc-d); border-radius: 6px; }
.cal td a { display: block; line-height: 26px; border-radius: 6px; background: var(--acc); color: #04120c; font-weight: 800; text-decoration: none; }
.cal td a:hover { background: #5cf0c0; }

/* Тексты: SEO и информационные страницы */
.prose { color: #c9d3dd; }
.prose h2, .prose h3, .prose h4 { color: var(--text); line-height: 1.3; margin: 1.4em 0 .5em; }
.prose h2 { font-size: 20px; }
.prose h3 { font-size: 17px; }
.prose h4 { font-size: 15px; }
.prose > :first-child { margin-top: 0; }
.prose code { background: var(--row); padding: 1px 5px; border-radius: 4px; }
.seo { margin-top: 32px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.empty { color: var(--muted); }

/* Подвал */
.ftr { border-top: 1px solid var(--line); background: #080b0f; padding: 32px 0 20px; font-size: 14px; }
.ftr__in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.ftr__about p { color: var(--muted); margin: 10px 0 0; max-width: 300px; }
.ftr__col { display: flex; flex-direction: column; gap: 6px; }
.ftr__col a { color: var(--muted); text-decoration: none; }
.ftr__col a:hover { color: var(--acc); }
.ftr__t { font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; margin-bottom: 4px; }
.ftr__copy { margin-top: 24px; color: var(--muted); font-size: 13px; }

/* Уведомление о cookies */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10; max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  font-size: 14px;
}
.cookie[hidden] { display: none; }

/* Планшет: правая колонка уходит под списки, боковой баннер — после «Скоро откроются» */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sideban--m { display: block; }
  .sideban--d { display: none; }
  .ftr__in { grid-template-columns: 1fr 1fr; }
}

/* Телефон */
@media (max-width: 720px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .side { grid-template-columns: minmax(0, 1fr); }
  .h1 { font-size: 21px; }
  .hdr__in { padding-top: 10px; padding-bottom: 6px; }
  .nav { width: 100%; justify-content: space-between; }
  .nav a { padding: 6px 4px; font-size: 13px; }
}
@media (max-width: 480px) {
  .row { grid-template-columns: 14px minmax(0, 1fr) 48px 60px 52px; gap: 5px; padding: 0 8px; font-size: 12px; }
  .row__n { font-size: 13px; letter-spacing: 0; }
  .crown { width: 14px; height: 14px; }
  .ftr__in { grid-template-columns: 1fr; }
}
