/* ==========================================================================
   SENTRY WARS - современная тема (30.09.2026). Подключается ПОСЛЕ style.css и только
   переопределяет вид; разметка та же. Вернуть старый дизайн: в config.local.php
   'site_theme' => 'classic' (тогда этот файл не подключается). Копия старых файлов:
   C:\Server\SentryWeb\backup\design-classic-20260930
   ========================================================================== */
:root {
  --bg: #080b10; --bg2: #0c1118; --panel: #121821; --panel2: #161e29; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --text: #cdd6e0; --muted: #8a96a5; --white: #f5f7fa;
  --accent: #ffb000; --accent2: #ff6a00; --blue: #4ea1ff; --green: #34d399; --red: #f8514f;
  --radius: 14px; --radius-s: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.03) inset;
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
}

html { scroll-behavior: smooth; }
body {
  font: 15px/1.6 "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(255,140,0,.13), transparent 60%),
    radial-gradient(800px 460px at 95% 0%, rgba(78,161,255,.10), transparent 60%),
    linear-gradient(180deg, #0b0f15 0%, var(--bg) 420px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255,176,0,.35); color: #fff; }
a { color: var(--accent); transition: color .15s; }
a:hover { color: #ffc84d; text-decoration: none; }
h1 { font-size: 32px; letter-spacing: -.5px; font-weight: 700; margin: 28px 0 10px; }
h2 { font-size: 18px; letter-spacing: -.2px; font-weight: 650; }
.wrap { max-width: 1180px; padding: 0 20px; }

/* ---- шапка: липкая, полупрозрачная ---- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,20,.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,176,0,.7), transparent); }
.top-row { padding-top: 12px; padding-bottom: 12px; }
.brand { font-size: 17px; letter-spacing: 1.5px; font-weight: 800; }
.brand img { filter: drop-shadow(0 0 8px rgba(255,176,0,.45)); }
.brand span { color: var(--muted); font-weight: 600; letter-spacing: .5px; }
nav { gap: 4px; }
nav a { color: var(--text); padding: 6px 11px; border-radius: 9px; font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
nav a:hover { background: rgba(255,255,255,.06); color: var(--white); }
nav .nav-vip { color: var(--accent) !important; }
nav a.btn.small { color: #10131a; padding: 6px 14px; margin-left: 4px; }
nav a.btn.small:hover { color: #10131a; }
button.link { padding: 6px 11px; border-radius: 9px; }
button.link:hover { background: rgba(255,255,255,.06); color: var(--white); }
.lang-menu summary { border-radius: 9px; padding: 5px 11px; border-color: var(--line2); background: rgba(255,255,255,.03); }
.lang-list { background: #121821; border-color: var(--line2); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.6); }

/* ---- кнопки ---- */
.btn {
  background: var(--grad); color: #10131a; border-radius: 10px; padding: 9px 18px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(255,120,0,.25); transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255,120,0,.35); color: #10131a; }
.btn:active { transform: translateY(0); }
.btn.small { padding: 5px 13px; font-size: 13px; }
.btn.ghost { background: rgba(255,255,255,.06); color: var(--text); box-shadow: none; border: 1px solid var(--line2); }
.btn.ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn.danger { background: linear-gradient(135deg, #ff5f5f, #d93636); color: #fff; box-shadow: 0 6px 18px rgba(248,81,79,.25); }

/* ---- главный блок ---- */
.hero {
  position: relative; overflow: hidden; margin-top: 26px; padding: 34px 34px 30px;
  border: 1px solid var(--line2); border-top: 1px solid var(--line2); border-radius: 20px;
  background:
    radial-gradient(600px 260px at 85% -20%, rgba(255,140,0,.22), transparent 70%),
    radial-gradient(500px 240px at 0% 120%, rgba(78,161,255,.14), transparent 70%),
    linear-gradient(180deg, #141b25, #0f141c);
  box-shadow: var(--shadow);
}
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero > * { position: relative; }
.hero h1 { font-size: 40px; margin: 0 0 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 span { -webkit-text-fill-color: var(--white); color: var(--white); font-weight: 600; }
.hero p { font-size: 16px; max-width: 720px; color: var(--text); }
.server { gap: 10px; margin-top: 18px; }
.server > span:not(.dot), .server > b { display: inline-flex; align-items: center; gap: 6px; }
.server > span:not(.dot) { background: rgba(255,255,255,.05); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; font-size: 14px; }
.server code { background: rgba(0,0,0,.35); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 14px; }
.dot { width: 9px; height: 9px; box-shadow: 0 0 0 4px rgba(248,81,79,.15); }
.dot.on { box-shadow: 0 0 0 4px rgba(52,211,153,.18), 0 0 12px rgba(52,211,153,.8); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(52,211,153,.06), 0 0 16px rgba(52,211,153,.9); } }

/* ---- панели, карточки, формы ---- */
.box, .card, .kpi, .forum-list, .post, .article-card, .faq details, .toc, .shots a, .plan, .mod-bar {
  background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.box { padding: 22px; }
.side-box { padding: 16px 18px; }
.card, .kpi { transition: transform .15s, border-color .15s; }
.card:hover, .kpi:hover { transform: translateY(-2px); border-color: var(--line2); }
.card .num, .kpi b, .mini-stats b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi { padding: 18px 14px; }
.kpi b { font-size: 32px; font-weight: 800; }
.vip-promo { background: radial-gradient(260px 120px at 100% 0%, rgba(255,140,0,.25), transparent 70%), linear-gradient(180deg, var(--panel2), var(--panel)); border-color: rgba(255,176,0,.35); }
.vip-promo:hover { border-color: var(--accent); transform: translateY(-2px); }
.vip-promo { transition: transform .15s, border-color .15s; }
.notice, .notice-inline, .article .warn { background: linear-gradient(180deg, rgba(255,176,0,.10), rgba(255,176,0,.04)); border-color: rgba(255,176,0,.35); border-radius: var(--radius-s); }
.flash { border-radius: var(--radius-s); background: rgba(52,211,153,.10); border-color: rgba(52,211,153,.5); }
.flash.error { background: rgba(248,81,79,.10); border-color: rgba(248,81,79,.5); }

input, select, textarea { background: rgba(0,0,0,.28); border: 1px solid var(--line2); border-radius: var(--radius-s); padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(255,176,0,.7); box-shadow: 0 0 0 4px rgba(255,176,0,.15); }
label { font-weight: 500; }

/* ---- таблицы ---- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--panel); }
table { background: transparent; }
th { background: rgba(255,255,255,.025); color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; padding: 11px 12px; }
td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.05); }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: rgba(255,255,255,.035); }
.badge { border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.pager a { border-radius: 9px; border-color: var(--line2); background: rgba(255,255,255,.03); }
.pager a.cur { background: var(--grad); border-color: transparent; }
.tabs { border-bottom-color: var(--line); gap: 4px; }
.tabs a { border-radius: 10px 10px 0 0; }
.tabs a.cur { background: var(--panel2); border-color: var(--line); }

/* ---- форум ---- */
.forum-list { overflow: hidden; }
.forum-row { background: transparent; border-bottom-color: rgba(255,255,255,.05); transition: background .12s; }
.forum-row:hover { background: rgba(255,255,255,.03); }
.post-author { background: rgba(0,0,0,.2); border-right-color: var(--line); }
.side-list li { border-bottom-color: rgba(255,255,255,.05); }

/* ---- статьи ---- */
.article-card { transition: transform .15s, border-color .15s; overflow: hidden; }
.article-card:hover { transform: translateY(-3px); border-color: rgba(255,176,0,.45); }
.article pre { border-radius: var(--radius-s); background: rgba(0,0,0,.35); }
.plan:has(input:checked) { background: linear-gradient(180deg, rgba(255,176,0,.14), rgba(255,176,0,.04)); }

/* ---- топ и статистика ---- */
.top-table th { text-transform: none; letter-spacing: 0; font-size: 12px; }
.top-table tr.place1 td { background: linear-gradient(90deg, rgba(255,215,0,.10), rgba(255,215,0,.02)); }
.top-table tr.place2 td { background: linear-gradient(90deg, rgba(220,220,220,.07), transparent); }
.top-table tr.place3 td { background: linear-gradient(90deg, rgba(224,153,94,.08), transparent); }
.rank-n { background: rgba(78,161,255,.14); color: #8cc4ff; border-radius: 6px; }
.chart .bar-a, .sw.bar-a { fill: var(--accent); background: var(--accent); }
.chart .bar-b, .sw.bar-b { fill: var(--green); background: var(--green); }
.chart .bar-xp { fill: var(--blue); }
.chart .grid { stroke: rgba(255,255,255,.06); }
.hbar rect { fill: var(--accent); }

/* ---- подвал ---- */
.site-footer { margin-top: 70px; background: linear-gradient(180deg, rgba(18,24,33,.6), #06080c); border-top: 1px solid var(--line); }
.footer-server code { border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid var(--line2); }
.footer-bottom { border-top-color: var(--line); }

@media (max-width: 700px) {
  .top { position: static; }   /* на телефоне меню в несколько строк - липкая шапка заняла бы полэкрана */
  h1 { font-size: 25px; }
  .hero { padding: 24px 20px; border-radius: 16px; }
  .hero h1 { font-size: 28px; }
  nav a { padding: 5px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- header in two rows (2026-10-16): brand + account/language on top, sections below in one line ---- */
.top-row { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 6px; }
.brand { white-space: nowrap; flex-shrink: 0; }
.top-user { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; white-space: nowrap; }
.top-user .user-link { max-width: 160px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.nav-row { padding-bottom: 6px; }
.main-nav { display: flex; flex-wrap: nowrap; gap: 2px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; margin: 0 -11px; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { white-space: nowrap; flex-shrink: 0; }
.main-nav a.cur { color: var(--white); background: rgba(255,255,255,.07); }
nav a, button.link { white-space: nowrap; }
@media (max-width: 760px) {
  .brand span { display: none; }
  .hide-sm { display: none; }
  .top-user .user-link { max-width: 90px; }
}
@media (max-width: 420px) {
  .top-row { flex-wrap: wrap; }
}

/* ---- header in one row (2026-10-17): small logo | menu in the middle | account + language ---- */
.top-row { flex-wrap: nowrap; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.brand.brand-sm { font-size: 15px; letter-spacing: .3px; gap: 7px; font-weight: 800; }
.brand.brand-sm img { width: 20px; height: 20px; }
.main-nav { flex: 1 1 auto; min-width: 0; margin: 0; overflow-x: auto; }
.main-nav > a:first-child { margin-left: auto; }   /* centered while it fits, scrollable when it does not */
.main-nav > a:last-child { margin-right: auto; }
.main-nav a { padding: 6px 9px; font-size: 13.5px; }
.top-user { flex-shrink: 0; }
.top-user a, .top-user button.link { font-size: 13.5px; padding: 6px 9px; }
@media (max-width: 900px) {
  .top-row { flex-wrap: wrap; row-gap: 4px; }
  .brand.brand-sm { order: 1; }
  .top-user { order: 2; margin-left: auto; }
  .main-nav { order: 3; flex-basis: 100%; }
}
.top-user .hide-sm { display: none; }               /* messages: icon + unread count, the word is in the tooltip */
.top-user .user-link { max-width: 120px; }
@media (max-width: 1150px) {
  .top-row { flex-wrap: wrap; row-gap: 2px; }
  .brand.brand-sm { order: 1; }
  .top-user { order: 2; margin-left: auto; }
  .main-nav { order: 3; flex-basis: 100%; }
  .main-nav > a:first-child { margin-left: 0; }
}
/* menu right after the logo (2026-10-17) */
.main-nav > a:first-child { margin-left: 0; }
.main-nav > a:last-child { margin-right: 0; }
.top-user { margin-left: auto; }

/* ---- home page (2026-10-17): main column (hero + forum) + sidebar on the right; compact hero ---- */
.home-grid { margin-top: 18px; }
.home-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.home-main > .hero { margin-top: 0; }
.home-side { margin-top: 0; }
.hero { padding: 17px 18px 15px; border-radius: 16px; }
.hero h1 { font-size: 26px; margin: 0 0 4px; }
.hero .server { margin-top: 8px; }
.hero-grid { align-items: start; gap: 16px; }
.hero-map { align-self: start; position: sticky; top: 0; }
.hero-map img, .hero-map .map-ph { width: 176px; height: 132px; border-radius: 10px; }
.hero-map figcaption { margin-top: 4px; font-size: 12px; }
.hero-players { margin-top: 10px; max-width: none; }
.hero-players p { margin: 0 0 4px; }
/* players table: player | rank | frags | time */
.players-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px .5em 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
.players-table th.num { text-align: right; }
.players-table td:nth-child(1), .players-table th:nth-child(1) { width: 38%; }
.players-table td:nth-child(2), .players-table th:nth-child(2) { width: 34%; }
.players-table td:nth-child(3), .players-table th:nth-child(3) { width: 10%; }
.players-table td:nth-child(4), .players-table th:nth-child(4) { width: 18%; }
.players-table td.pl-rank { display: table-cell; font-size: 13px; color: #f0b429; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.players-table td { padding: 4px .5em; }
/* "Show all" without JavaScript: hidden checkbox + label under the table */
.players-table tbody.pl-more { display: none; }
.pl-toggle:checked ~ .players-table tbody.pl-more { display: table-row-group; }
.pl-toggle-btn { display: inline-block; margin-top: 6px; cursor: pointer; color: #f0b429; font-weight: 600; user-select: none; }
.pl-toggle-btn .pl-hide { display: none; }
.pl-toggle:checked ~ .pl-toggle-btn .pl-show { display: none; }
.pl-toggle:checked ~ .pl-toggle-btn .pl-hide { display: inline; }
@media (max-width: 760px) { .hero-map { position: static; } .hero-map img, .hero-map .map-ph { width: 100%; height: auto; } }
input.pl-toggle { display: none !important; }
/* bigger map picture (2026-10-17) */
.hero-map img, .hero-map .map-ph { width: 260px; height: 195px; }
@media (max-width: 760px) { .hero-map img, .hero-map .map-ph { width: 100%; height: auto; } }
/* tighter hero (2026-10-17) */
.hero { padding-top: 10px; padding-bottom: 10px; }
.home-main { gap: 22px; }
.home-main #forum > .head-row h2.section { margin-top: 0; margin-bottom: 8px; }
/* forum on the home page = one card with a header, like the sidebar boxes (2026-10-17) */
.home-main #forum { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.home-main #forum > .head-row { padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.home-main #forum > .head-row h2.section { margin: 0; font-size: 16px; padding: 0; border: 0; }
.home-main #forum > .head-row h2.section::before, .home-main #forum > .head-row h2.section::after { display: none; }
.home-main #forum .forum-list { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.home-main #forum > details { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; padding: 12px 18px; }
/* admin panel button at the top of the sidebar (2026-10-17) */
.admin-panel-btn { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,176,0,.18), rgba(255,120,0,.06)); border: 1px solid rgba(255,176,0,.45);
  color: var(--white); box-shadow: var(--shadow); transition: transform .15s, border-color .15s, background .15s; }
.admin-panel-btn:hover { text-decoration: none; transform: translateY(-1px); border-color: rgba(255,176,0,.8); background: linear-gradient(135deg, rgba(255,176,0,.26), rgba(255,120,0,.1)); }
.admin-panel-btn .apb-icon { font-size: 22px; line-height: 1; color: #f0b429; }
.admin-panel-btn .apb-text { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.admin-panel-btn .apb-text b { font-size: 15px; }
.admin-panel-btn .apb-text small { color: var(--muted); font-size: 12px; }
.user-rights .perm-list { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; }
/* click to copy the server address (2026-10-17) */
.copy-ip { cursor: pointer; position: relative; transition: border-color .15s, background .15s; }
.copy-ip:hover { border-color: rgba(255,176,0,.6); background: rgba(255,176,0,.08); }
.copy-ip::after { content: "\29C9"; margin-left: 7px; opacity: .55; font-size: .9em; }
.copy-ip.copied::before { content: attr(data-tip-copied); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  background: #2ea043; color: #fff; font: 600 12px/1 system-ui, sans-serif; padding: 5px 8px; border-radius: 6px; white-space: nowrap; }

/* spacing between home blocks (hero / forum / sidebar) */
.home-grid { gap: 26px; }
.home-side { gap: 20px; }

/* ---- home sidebar: one style for all blocks ---- */
.home-side .sb-card { padding: 0; overflow: hidden; background: linear-gradient(180deg, var(--panel2, #161b22), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius, 12px); }
.home-side .sb-card > *:not(.sb-head) { margin-left: 16px; margin-right: 16px; }
.home-side .sb-card > :last-child { margin-bottom: 14px; }
.sb-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px !important; padding: 11px 16px; font-size: 14px !important; letter-spacing: .02em;
           background: rgba(255,255,255,.025); border-bottom: 1px solid var(--line); }
.sb-head .sb-ico { color: var(--accent); font-size: 14px; width: 18px; text-align: center; }
.sb-head .sb-more { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted, #8b949e); }
.sb-head .sb-more:hover { color: var(--accent); }
.sb-live { width: 8px; height: 8px; margin: 0 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.chat-box h2::before { display: none; }
.home-side .sb-card .side-list { margin-top: -4px; }

/* privileges block */
.priv-box .pb-item { display: block; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: rgba(255,255,255,.02); color: var(--text); }
.priv-box .pb-item:hover { border-color: rgba(255,176,0,.5); text-decoration: none; }
.priv-box summary, .priv-box .pb-premium { display: flex; align-items: center; gap: 10px; padding: 9px 10px; cursor: pointer; list-style: none; }
.priv-box summary::-webkit-details-marker { display: none; }
.pb-tag { flex: none; min-width: 44px; text-align: center; padding: 3px 6px; border-radius: 6px; font-weight: 700; font-size: 12px; background: #2ea043; color: #fff; }
.pb-tag.month { background: #388bfd; }
.pb-tag.prem { background: linear-gradient(135deg, #ffb000, #ff7a00); color: #111; min-width: 64px; }
.pb-name { flex: 1; font-size: 13.5px; line-height: 1.3; }
.pb-more { flex: none; font-size: 11.5px; color: var(--muted, #8b949e); }
.priv-box details[open] .pb-more { visibility: hidden; }
.pb-body { padding: 0 10px 10px; font-size: 13px; line-height: 1.45; }
.pb-body p { margin: 0 0 8px; }
.pb-body p:last-child { margin-bottom: 0; }
.pb-body .btn.wide { width: 100%; }
.priv-box .pb-premium { margin-bottom: 0; border-color: rgba(255,176,0,.35); background: linear-gradient(90deg, rgba(255,176,0,.10), transparent); }
/* home: SEO text under the forum */
.seo-text { margin: 0; }
.seo-text h2 { font-size: 17px; margin: 0 0 10px; }
.seo-text p { color: var(--muted, #8b949e); line-height: 1.6; margin: 0 0 10px; font-size: 14px; }
.seo-text p:last-child { margin-bottom: 0; }

/* hero a bit lower (2026-10-17, 2nd pass) */
.hero { padding-top: 8px; padding-bottom: 8px; }
.hero h1 { font-size: 23px; margin-bottom: 2px; }
.hero .server { margin-top: 4px; }
.hero-grid { gap: 14px; }
.hero-map img, .hero-map .map-ph { width: 208px; height: 156px; }
.hero-map figcaption { margin-top: 3px; }
.hero-players { margin-top: 6px; }
.hero-players .players-table th, .hero-players .players-table td { padding-top: 4px; padding-bottom: 4px; }
@media (max-width: 760px) { .hero-map img, .hero-map .map-ph { width: 100%; height: auto; max-height: 180px; } }
/* ban list: clickable rows + details */
tr.ban-row { cursor: pointer; }
tr.ban-row:hover td, tr.ban-row.open td { background: rgba(255,176,0,.06); }
tr.ban-details td { background: rgba(255,255,255,.02); padding: 14px 16px; }
.ban-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.ban-dl dt { color: var(--muted, #8b949e); }
.ban-dl dd { margin: 0; word-break: break-word; }
.ban-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ban-actions:empty { display: none; }
@media (max-width: 640px) { .ban-dl { grid-template-columns: 1fr; gap: 2px; } .ban-dl dd { margin-bottom: 6px; } }
/* articles written by players */
.uart-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.uart-form { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.uart-form label { display: flex; flex-direction: column; gap: 4px; }
.uart-form textarea { min-height: 320px; font-family: inherit; }
.uart-side { display: flex; flex-direction: column; gap: 16px; }
.uart-side .box { margin: 0; }
.uart-preview { max-height: 520px; overflow: auto; }
.uart-decide input { min-width: 160px; flex: 1; }
.uart-article .lead { font-size: 1.05em; }
@media (max-width: 900px) { .uart-layout { grid-template-columns: 1fr; } }
/* ---- mobile (2026-10-17): ☰ menu, compact hero ---- */
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .top-row { flex-wrap: wrap; row-gap: 6px; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 36px; padding: 0 9px;
                order: 3; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
  .nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .brand-sm { order: 1; }
  .top-user { order: 2; margin-left: auto; }
  .main-nav { order: 4; flex-basis: 100%; display: none !important; margin: 0 !important; overflow: visible !important; }
  body.nav-open .main-nav { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px 0 4px; }
  body.nav-open .main-nav a { margin: 0 !important; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); font-size: 15px; text-align: left; }
  .top-user a, .top-user button.link { padding: 6px 7px; }
  /* hero: the map is a small strip, the table keeps nick + score */
  .hero h1 { font-size: 21px; }
  .hero-map img, .hero-map .map-ph { width: 100%; height: 110px !important; max-height: 110px; object-fit: cover; aspect-ratio: auto; }
  .players-table th:nth-child(2), .players-table td:nth-child(2) { display: none !important; }
  .players-table td:nth-child(1), .players-table th:nth-child(1) { width: 58%; }
  .players-table td:nth-child(3), .players-table th:nth-child(3) { width: 18%; }
  .players-table td:nth-child(4), .players-table th:nth-child(4) { width: 24%; }
}
@media (max-width: 400px) {
  .top-user .btn.small { padding: 6px 9px; }
}
.m-sep { display: none; }
@media (max-width: 700px) { .m-sep { display: inline; } }

/* mobile tables: tighter cells; ban list keeps date, player, reason, status (the rest is in the details) */
@media (max-width: 640px) {
  .table-wrap th, .table-wrap td { padding: 8px 7px; font-size: 13px; }
  .table-wrap th { font-size: 11px; }
  .bans-table tr.ban-row > :nth-child(3), .bans-table tr.ban-row > :nth-child(5), .bans-table tr.ban-row > :nth-child(6),
  .bans-table thead th:nth-child(3), .bans-table thead th:nth-child(5), .bans-table thead th:nth-child(6) { display: none; }
  .bans-table td.nowrap { white-space: normal; }
  .priv-table th:first-child, .priv-table td:first-child { display: none; }
}
/* admin tabs on phones: one scrollable row instead of five lines */
@media (max-width: 640px) {
  nav.tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  nav.tabs::-webkit-scrollbar { display: none; }
  nav.tabs a { white-space: nowrap; flex-shrink: 0; padding: 8px 11px; }
}
/* VIP: level + term lists */
.plan-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.plan-pick label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.plan-pick select { min-width: 190px; font-size: 15px; padding: 9px 12px; }
.plan-total { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
.plan-total b { font-size: 30px; color: var(--accent); line-height: 1.1; }
.plan-forever-note { margin: 8px 2px 10px; }
.plan-grid table { font-size: 13.5px; }
.plan-grid td, .plan-grid th { text-align: center; }
.plan-grid td:first-child { text-align: left; }
@media (max-width: 640px) { .plan-pick select { min-width: 0; width: 100%; } .plan-pick label { flex: 1 1 140px; } .plan-total { margin-left: 0; align-items: flex-start; width: 100%; } }
/* editor bar over textareas (forum, articles) */
.editor-bar { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 -2px; padding: 5px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; }
.editor-bar + textarea { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 0; }
.editor-bar button { min-width: 34px; height: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--text); cursor: pointer; font: 600 14px/1 system-ui, sans-serif; }
.editor-bar button:hover { background: rgba(255,176,0,.12); border-color: rgba(255,176,0,.35); color: var(--accent); }
.editor-bar .ed-i { font-style: italic; } .editor-bar .ed-s { text-decoration: line-through; } .editor-bar .ed-code { font-family: Consolas, monospace; font-size: 12px; }
.post-text blockquote, .article-body blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--accent); background: rgba(255,255,255,.03); color: var(--muted); }
.post-text p { margin: 0 0 8px; } .post-text p:last-child { margin-bottom: 0; }
.post-text ul { margin: 4px 0 8px; padding-left: 20px; }
/* site background picture (sentries + lasers), darkened so the text stays readable; a fixed layer works on phones too */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9,12,18,.45) 0%, rgba(9,12,18,.70) 55%, rgba(9,12,18,.92) 100%),
    url("/assets/bg-1.jpg") center top / cover no-repeat;
}
@media (max-width: 760px) {
  body::before { background: linear-gradient(180deg, rgba(9,12,18,.55) 0%, rgba(9,12,18,.85) 60%, rgba(9,12,18,.95) 100%), url("/assets/bg-1-mobile.jpg") center top / cover no-repeat; }
}
/* the picture layer must not be covered by the body background (html has its own colour, so body's is not moved to the canvas) */
html { background: #080b10; }
body { background: transparent !important; }
body::before {
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(255,140,0,.10), transparent 60%),
    linear-gradient(90deg, rgba(9,12,18,.15) 0%, rgba(9,12,18,.55) 25%, rgba(9,12,18,.62) 50%, rgba(9,12,18,.55) 75%, rgba(9,12,18,.15) 100%),
    linear-gradient(180deg, rgba(9,12,18,.15) 0%, rgba(9,12,18,.35) 60%, rgba(9,12,18,.75) 100%),
    url("/assets/bg-1.jpg") center top / cover no-repeat;
}
@media (max-width: 760px) {
  body::before { background: linear-gradient(180deg, rgba(9,12,18,.35) 0%, rgba(9,12,18,.7) 55%, rgba(9,12,18,.9) 100%), url("/assets/bg-1-mobile.jpg") center top / cover no-repeat; }
}
@media (max-width: 760px) { body::before { background-position: 0 0, 8% top; } }

/* readability over the background picture: darker in the middle, shadow under text that sits right on the picture */
body::before {
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(255,140,0,.08), transparent 60%),
    linear-gradient(90deg, rgba(9,12,18,.30) 0%, rgba(9,12,18,.78) 18%, rgba(9,12,18,.86) 50%, rgba(9,12,18,.78) 82%, rgba(9,12,18,.30) 100%),
    linear-gradient(180deg, rgba(9,12,18,.20) 0%, rgba(9,12,18,.45) 60%, rgba(9,12,18,.80) 100%),
    url("/assets/bg-1.jpg") center top / cover no-repeat;
}
main.wrap { text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 14px rgba(0,0,0,.55); }
main.wrap .muted, main.wrap p.muted, main.wrap .small-text { color: #b3bcc8; }
main.wrap .box .muted, main.wrap .table-wrap .muted, main.wrap .box .small-text { color: var(--muted); }
@media (max-width: 760px) {
  body::before { background: linear-gradient(180deg, rgba(9,12,18,.55) 0%, rgba(9,12,18,.82) 45%, rgba(9,12,18,.93) 100%), url("/assets/bg-1-mobile.jpg") 8% top / cover no-repeat; }
}

/* dropdown lists: the open list gets a solid dark background (it was transparent, white text on a white system list) */
:root { color-scheme: dark; }
select { color: var(--text); background-color: #141a24; }
select option, select optgroup { background-color: #141a24; color: #e6edf3; }
select option:checked { background-color: #2a3242; color: #fff; }
/* text inside cards has its own dark background - no shadow (it also spoils the gradient numbers) */
main.wrap .box, main.wrap .kpi, main.wrap .card, main.wrap .hero, main.wrap .table-wrap, main.wrap table, main.wrap .forum-list, main.wrap .article-card, main.wrap .plan-pick, main.wrap .notice, main.wrap .flash, main.wrap .post { text-shadow: none; }

/* ---- text that lies right on the background picture: own dark plates (2026-10-17) ---- */
main.wrap > h1, main.wrap > .head-row > h1, main.wrap > h2.section, main.wrap > .head-row > h2.section,
main.wrap > section > .head-row > h2.section {
  display: inline-block; margin-right: auto; padding: 6px 16px 7px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(9,12,18,.90), rgba(9,12,18,.70)); border: 1px solid rgba(255,255,255,.06);
  border-left: 3px solid var(--accent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-shadow: none;
}
main.wrap > h1 { font-size: 30px; }
main.wrap > p, main.wrap > .head-row > p, main.wrap > ul, main.wrap > ol, main.wrap > .crumbs, main.wrap > nav.crumbs {
  padding: 8px 14px; border-radius: 10px; background: rgba(9,12,18,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  width: fit-content; max-width: 100%; text-shadow: none;
}
main.wrap > ul, main.wrap > ol { padding-left: 34px; }
main.wrap > p.muted, main.wrap > .head-row > p.muted { color: #c3ccd7; }

/* articles: the text sits on a solid panel */
.article, .uart-article {
  background: linear-gradient(180deg, rgba(19,25,35,.96), rgba(13,17,24,.96)); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 30px; box-shadow: 0 10px 40px rgba(0,0,0,.35); text-shadow: none;
}
.article > h1, .uart-article > h1 { margin-top: 0; }
@media (max-width: 640px) {
  .article, .uart-article { padding: 18px 16px; border-radius: 12px; }
  main.wrap > h1 { font-size: 24px; }
}
/* ---- page headings as bars, like the "Forum" header on the home page (2026-10-17, replaces the plates) ---- */
main.wrap > h1, main.wrap > h2.section, main.wrap > section > h2.section,
main.wrap > .head-row:has(> h1), main.wrap > .head-row:has(> h2.section) {
  display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box;
  margin: 16px 0 12px; padding: 12px 18px; border-radius: var(--radius, 14px);
  background: linear-gradient(180deg, var(--panel2, #161c27), var(--panel, #11161f)); border: 1px solid var(--line);
  box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.3)); backdrop-filter: none; -webkit-backdrop-filter: none; text-shadow: none;
}
main.wrap > h1, main.wrap > .head-row:has(> h1) > h1 { font-size: 20px; line-height: 1.3; }
main.wrap > h2.section, main.wrap > section > h2.section, main.wrap > .head-row:has(> h2.section) > h2.section { font-size: 16px; }
main.wrap > .head-row:has(> h1) > h1, main.wrap > .head-row:has(> h2.section) > h2.section {
  margin: 0; padding: 0; border: 0; background: none; box-shadow: none; display: block; width: auto; flex: 1;
}
main.wrap > h2.section::before, main.wrap > h2.section::after, main.wrap > section > h2.section::before, main.wrap > section > h2.section::after,
main.wrap > .head-row > h2.section::before, main.wrap > .head-row > h2.section::after { display: none; }
main.wrap > .head-row:has(> h1) { justify-content: space-between; flex-wrap: wrap; }
@media (max-width: 640px) { main.wrap > h1, main.wrap > .head-row:has(> h1) > h1 { font-size: 18px; } }
/* pages with the sidebar (articles): the same heading bars inside the main column */
.page-grid { margin-top: 16px; }
.page-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.page-main > * { margin-top: 0; margin-bottom: 0; }
.page-main > h1, .page-main > h2.section, .page-main > .head-row:has(> h1), .page-main > .head-row:has(> h2.section) {
  display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 12px 18px; border-radius: var(--radius, 14px);
  background: linear-gradient(180deg, var(--panel2, #161c27), var(--panel, #11161f)); border: 1px solid var(--line); box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.3)); text-shadow: none;
}
.page-main > h1, .page-main > .head-row:has(> h1) > h1 { font-size: 20px; line-height: 1.3; }
.page-main > h2.section { font-size: 16px; }
.page-main > .head-row:has(> h1) > h1, .page-main > .head-row:has(> h2.section) > h2.section { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; flex: 1; }
.page-main > h2.section::before, .page-main > h2.section::after { display: none; }
.page-main > p, .page-main > ul, .page-main > .crumbs, .page-main > nav.crumbs, .page-main > .head-row:not(:has(> h1)) {
  padding: 8px 14px; border-radius: 10px; background: rgba(9,12,18,.78); width: fit-content; max-width: 100%; box-sizing: border-box; text-shadow: none;
}
.page-main > .head-row:not(:has(> h1)) { width: 100%; }
.page-main > ul { padding-left: 34px; }
.page-main .article, .page-main .uart-article { max-width: none; }
.page-main .article-list { margin-top: 0; }
/* ---- one solid card per page (2026-10-17): heading = card header, everything below inside the same card ---- */
main.wrap:not(:has(> .home-grid)) {
  margin-top: 18px; margin-bottom: 26px; padding: 0 0 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(22,28,39,.97), rgba(15,19,27,.97)); border: 1px solid var(--line);
  border-radius: var(--radius, 14px); box-shadow: 0 14px 44px rgba(0,0,0,.45);
}
main.wrap:not(:has(> .home-grid)) > * { margin-left: 20px; margin-right: 20px; }
main.wrap:not(:has(> .home-grid)) > :first-child { margin-top: 0; }
main.wrap:not(:has(> .home-grid)) > h1,
main.wrap:not(:has(> .home-grid)) > .head-row:has(> h1),
main.wrap:not(:has(> .home-grid)) > nav.tabs + h1 {
  margin: 0 0 16px; width: auto; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none;
  background: rgba(255,255,255,.025); padding: 14px 20px;
}
main.wrap:not(:has(> .home-grid)) > h2.section, main.wrap:not(:has(> .home-grid)) > .head-row:has(> h2.section) {
  margin: 22px 0 14px; width: auto; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none;
  background: rgba(255,255,255,.025); padding: 11px 20px;
}
/* plain text in the card needs no dark plates */
main.wrap:not(:has(> .home-grid)) > p, main.wrap:not(:has(> .home-grid)) > ul, main.wrap:not(:has(> .home-grid)) > ol,
main.wrap:not(:has(> .home-grid)) > .crumbs, main.wrap:not(:has(> .home-grid)) > .head-row > p {
  background: none; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; width: auto;
}
main.wrap:not(:has(> .home-grid)) > ul, main.wrap:not(:has(> .home-grid)) > ol { padding-left: 22px; }
main.wrap:not(:has(> .home-grid)) { text-shadow: none; }
/* admin tabs as the top strip of the card */
main.wrap:not(:has(> .home-grid)) > nav.tabs { margin: 0; padding: 10px 14px 0; background: rgba(255,255,255,.02); }
main.wrap:not(:has(> .home-grid)) > nav.tabs + h1 { border-top: 1px solid var(--line); }

/* pages with the sidebar: the main column is one card too */
.page-main {
  gap: 0; padding: 0 0 20px; overflow: hidden; align-self: start;
  background: linear-gradient(180deg, rgba(22,28,39,.97), rgba(15,19,27,.97)); border: 1px solid var(--line);
  border-radius: var(--radius, 14px); box-shadow: 0 14px 44px rgba(0,0,0,.45);
}
.page-main > * { margin: 0 20px 14px !important; }
.page-main > h1, .page-main > .head-row:has(> h1), .page-main > h2.section {
  margin: 0 0 16px !important; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: rgba(255,255,255,.025); padding: 14px 20px;
}
.page-main > h2.section { margin-top: 8px !important; border-top: 1px solid var(--line); }
.page-main > p, .page-main > ul, .page-main > .crumbs, .page-main > nav.crumbs, .page-main > .head-row:not(:has(> h1)) { background: none; padding: 0; width: auto; }
.page-main > .crumbs:first-child, .page-main > nav.crumbs:first-child { margin: 0 !important; padding: 10px 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.page-main .article, .page-main .uart-article { background: none; border: 0; box-shadow: none; padding: 6px 0 0; border-radius: 0; }
@media (max-width: 640px) {
  main.wrap:not(:has(> .home-grid)) > * { margin-left: 12px; margin-right: 12px; }
  .page-main > * { margin: 0 12px 12px !important; }
  main.wrap:not(:has(> .home-grid)) { border-radius: 12px; margin-left: 8px; margin-right: 8px; }
}
main.wrap:not(:has(> .home-grid)) > p.notice-inline, main.wrap:not(:has(> .home-grid)) > p.notice, main.wrap:not(:has(> .home-grid)) > p.flash, .page-main > p.notice-inline { padding: 10px 14px; background: linear-gradient(180deg, rgba(255,176,0,.10), rgba(255,176,0,.04)); }

/* announcement from Admin - Settings, under the header on every page */
.site-announce { background: linear-gradient(90deg, rgba(255,140,0,.22), rgba(255,176,0,.10)); border-bottom: 1px solid rgba(255,176,0,.35); color: #ffe2a8; font-size: 14px; }
.site-announce .wrap { padding-top: 8px; padding-bottom: 8px; }

/* Admin - Settings */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.settings-grid .box { margin: 0; max-width: none; display: flex; flex-direction: column; gap: 8px; }
.settings-grid .box h2 { margin: 0 0 4px; font-size: 16px; }
.settings-grid .price-in { width: 80px; display: inline-block; padding: 5px 8px; }
.settings-save { position: sticky; bottom: 0; padding: 12px 0; margin: 12px 0 0; background: linear-gradient(180deg, transparent, rgba(15,19,27,.95) 40%); }

/* page shell: the page card takes the whole column under the server block */
.home-main > .page-main { align-self: stretch; width: 100%; box-sizing: border-box; }
.page-main > .head-row:has(> h1) { justify-content: space-between; }

/* the server block title is a div on pages that have their own h1 */
.hero div.hero-title { font-size: 23px; font-weight: 700; line-height: 1.25; margin: 0 0 2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero div.hero-title span { -webkit-text-fill-color: var(--white); color: var(--white); font-weight: 600; }
@media (max-width: 760px) { .hero div.hero-title { font-size: 21px; } }
/* latest events (home page, between the server block and the forum) */
.events-box { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.events-box > .head-row { padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); margin: 0; }
.events-box > .head-row h2.section { margin: 0; font-size: 16px; padding: 0; border: 0; background: none; box-shadow: none; }
.events-box > .head-row h2.section::before, .events-box > .head-row h2.section::after { display: none; }
.events-list { list-style: none; margin: 0; padding: 6px 0; }
.events-list li { display: flex; align-items: baseline; gap: 10px; padding: 6px 18px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.04); }
.events-list li:last-child { border-bottom: 0; }
.events-list li:hover { background: rgba(255,255,255,.025); }
.events-list li.ev-extra { display: none; }
.pl-toggle:checked ~ .events-list li.ev-extra { display: flex; }
.ev-time { flex: none; width: 82px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ev-ico { flex: none; width: 18px; text-align: center; }
.ev-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-text a { color: var(--text); }
.ev-text a:hover { color: var(--accent); }
.ev-toggle { display: block; padding: 6px 18px 12px; margin: 0; }
@media (max-width: 640px) { .ev-time { width: 64px; } .events-list li { padding: 6px 12px; } .ev-text { white-space: normal; } }
/* events: plain text in the normal colour, nick / title / level as links */
.events-list li { font-size: 14.5px; }
.ev-text { color: var(--text); }
.ev-time { color: #9aa6b4; }
.ev-text a { text-decoration: none; }
.ev-text a.ev-nick { color: var(--accent); font-weight: 600; }
.ev-text a.ev-link { color: #ffd27a; font-weight: 600; }
.ev-text a:hover { text-decoration: underline; color: #fff; }
.ev-text a.ev-role { padding: 1px 7px; border-radius: 6px; font-size: 12.5px; font-weight: 700; color: #fff; }
.ev-text a.ev-role.role-owner { background: #d93636; }
.ev-text a.ev-role.role-admin { background: #f0883e; color: #111; }
.ev-text a.ev-role.role-mod { background: #388bfd; }
.ev-text a.ev-role.role-premium { background: linear-gradient(135deg, #ffb000, #ff7a00); color: #111; }
.ev-text a.ev-role.role-vip { background: #2ea043; }
.ev-ico { filter: saturate(1.3) brightness(1.15); }
/* public profile /u/<login> */
.prof-h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.prof-avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800;
               background: linear-gradient(135deg, #ffb000, #ff6a00); color: #111; flex: none; }
.prof-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prof-card { background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.prof-card h2 { font-size: 15px; margin: 0 0 10px; }
.prof-card h3 { font-size: 14px; margin: 14px 0 6px; }
.prof-wide { grid-column: 1 / -1; }
.prof-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.prof-stats div { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.prof-stats b { display: block; font-size: 19px; color: var(--accent); }
.prof-stats b.prof-rank { font-size: 15px; color: #58a6ff; }
.prof-stats small { color: var(--muted); font-size: 12px; }
.prof-list { list-style: none; margin: 0; padding: 0; }
.prof-list li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.prof-list li:last-child { border-bottom: 0; }
.prof-list time { color: var(--muted); font-size: 12.5px; margin-right: 6px; }
.badge.role-premium { background: linear-gradient(135deg, #ffb000, #ff7a00); color: #111; }
.badge.role-vip { background: #2ea043; color: #fff; }
@media (max-width: 760px) { .prof-grid { grid-template-columns: 1fr; } }
/* user names as profile links */
a.user-name { color: var(--accent); }
a.chat-nick { text-decoration: none; font-weight: 700; }
a.chat-nick:hover { text-decoration: underline; }

/* top: the row of the logged-in player */
.top-table tr.me td { background: linear-gradient(90deg, rgba(56,139,253,.28), rgba(56,139,253,.10)) !important; }
.top-table tr.me td:first-child { box-shadow: inset 4px 0 0 #58a6ff; }
.top-me-note { padding: 8px 14px !important; border-radius: 10px; background: rgba(56,139,253,.14) !important; border: 1px solid rgba(88,166,255,.45); color: #cfe3ff; width: fit-content; }

/* Admin - Log */
.sub-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.sub-tabs a { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); }
.sub-tabs a.cur { background: rgba(255,176,0,.14); border-color: rgba(255,176,0,.5); color: var(--accent); }
.log-tech pre { white-space: pre-wrap; max-height: 260px; overflow: auto; }

/* login / registration: one centred card, the page itself has no outer card */
main.wrap:has(> .auth-card) { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; overflow: visible !important; }
main.wrap > .auth-card {
  width: 100%; max-width: 420px; margin: 48px auto 56px !important; padding: 28px 30px 24px; box-sizing: border-box;
  background: linear-gradient(180deg, rgba(22,28,39,.97), rgba(15,19,27,.97)); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
.auth-card .auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; font-weight: 800; font-size: 18px; color: var(--accent); }
.auth-card h1 { display: block !important; text-align: center; font-size: 22px !important; margin: 0 0 18px !important; padding: 0 !important;
                background: none !important; border: 0 !important; box-shadow: none !important; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.auth-card label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--muted); margin: 0; }
.auth-card input { width: 100%; box-sizing: border-box; font-size: 15px; padding: 11px 13px; margin: 0; }
.auth-card small { font-size: 12px; }
.auth-card .btn.wide { width: 100%; margin-top: 6px; padding: 12px; font-size: 15px; }
.auth-card > p { margin: 16px 0 0; }
@media (max-width: 480px) { main.wrap > .auth-card { margin: 20px auto 30px !important; padding: 22px 18px; border-radius: 14px; } }