@font-face {
  font-family: "VesroDisplay";
  src: url("VesroDisplay.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
  --gold: #e4c98a;
  --gold2: #f7e7c2;
  --gold3: #b8914a;
  --text: #fff6e8;
  --muted: #d9c9a8;
  --line: rgba(255, 226, 170, 0.22);
  --panel: rgba(14, 11, 8, 0.62);
  --ok: #7ee07a;
  --bad: #ff7070;
  --side: 300px;
  --gap: 20px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; width: 100%; }
body {
  font-family: "Segoe UI", Georgia, serif;
  color: var(--text);
  background: #070605;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--gold2); }
.bg {
  position: fixed; inset: -40px; z-index: -2;
  background: url("bg.jpg") center center / cover no-repeat;
  filter: blur(14px) saturate(1.1) brightness(0.5);
  transform: scale(1.1);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 50% 0%, rgba(255, 190, 90, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(8,6,4,0.30) 0%, rgba(8,6,4,0.72) 100%);
}
.wrap { max-width: 1260px; margin: 0 auto; padding: 0 20px; }

/* ---- Top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 8, 6, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.topbar-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand {
  display: flex; align-items: center; flex: none;
  text-decoration: none;
}
@keyframes vesro-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 4px rgba(255, 255, 255, 0.28))
      drop-shadow(0 0 9px rgba(186, 28, 22, 0.5))
      drop-shadow(0 2px 10px rgba(0,0,0,0.75));
  }
  50% {
    filter:
      drop-shadow(0 0 7px rgba(255, 255, 255, 0.62))
      drop-shadow(0 0 16px rgba(214, 42, 32, 0.72))
      drop-shadow(0 2px 10px rgba(0,0,0,0.75));
  }
}
.brand img {
  display: block; height: 52px; width: auto; max-width: 220px;
  animation: vesro-glow 3.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .brand img { animation: none; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.75)); }
}
.menu { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; justify-content: center; }
.menu a {
  color: var(--muted); text-decoration: none; font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 8px 14px; border-radius: 999px;
}
.menu a:hover { color: var(--gold2); background: rgba(255,255,255,0.08); }
.menu a.on { color: #1a1206; background: var(--gold); text-shadow: none; font-weight: 700; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.06);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 0 rgba(126,224,122,0.7); animation: pulse 2s infinite; }
.dot.off { background: var(--bad); box-shadow: 0 0 10px rgba(255,112,112,0.7); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(126,224,122,0.65); }
  70% { box-shadow: 0 0 0 10px rgba(126,224,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(126,224,122,0); }
}

/* ---- Banner slider ---- */
.slider {
  position: relative; margin: 24px 0 var(--gap); border-radius: 20px; overflow: hidden;
  aspect-ratio: 1260 / 420; min-height: 220px; max-height: 460px;
  border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,0.5); background: #0d0a07;
}
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s;
  background-size: cover; background-position: center;
}
.slide.on { opacity: 1; visibility: visible; }
.slide a.fill { position: absolute; inset: 0; z-index: 1; }
.slide .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 48px 44px;
  background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.slide .cap .cta { pointer-events: auto; }
.slide .cap h2 {
  margin: 0; font-family: "VesroDisplay", Georgia, serif; font-weight: normal;
  font-size: clamp(26px, 4vw, 46px); color: var(--gold2); letter-spacing: 0.03em;
}
.slide .cap p { margin: 6px 0 0; color: var(--text); font-size: clamp(14px, 1.6vw, 18px); max-width: 720px; }
.slide .cap .cta { position: relative; z-index: 2; margin-top: 16px; }
.slide.default { background-image: url("bg.jpg"); }
.slider .arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(0,0,0,0.35); color: #fff;
  font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 0;
}
.slider .arrow:hover { background: rgba(0,0,0,0.55); border-color: var(--gold); }
.slider .prev { left: 16px; }
.slider .next { right: 16px; }
.dots { position: absolute; right: 24px; bottom: 18px; z-index: 3; display: flex; gap: 8px; }
.dots button {
  width: 11px; height: 11px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.7); background: rgba(255,255,255,0.2);
}
.dots button.on { background: var(--gold); border-color: var(--gold); width: 28px; border-radius: 999px; }
.progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold); z-index: 3; width: 0; }
.progress.run { animation: fillbar 5s linear forwards; }
@keyframes fillbar { from { width: 0; } to { width: 100%; } }

/* ---- Three columns ---- */
.layout {
  display: grid; gap: var(--gap);
  grid-template-columns: var(--side) minmax(0, 1fr) var(--side);
  grid-template-areas: "left center right";
  align-items: start;
}
.col { display: grid; gap: var(--gap); min-width: 0; }
.col.left { grid-area: left; }
.col.center { grid-area: center; }
.col.right { grid-area: right; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px;
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 14px 36px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.10);
}
.panel h2 {
  margin: 0 0 14px; font-size: 14px; color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.panel h2::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--gold2), var(--gold3));
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.panel-head a { font-size: 13px; color: var(--gold); text-decoration: none; }
.panel-head a:hover { text-decoration: underline; }

/* ---- Server status ---- */
.srv { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.srv.on { color: var(--ok); }
.srv.off { color: var(--bad); }
.count { margin: 14px 0 8px; display: flex; align-items: baseline; gap: 6px; }
.count strong { font-size: 34px; line-height: 1; color: var(--gold2); font-family: Consolas, monospace; }
.count span { color: var(--muted); font-size: 14px; }
.bar {
  height: 14px; border-radius: 999px; overflow: hidden; border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
}
.bar span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #6fd06b 0%, #e4c98a 60%, #ff8a5c 100%);
  background-size: 300px 100%;
  box-shadow: 0 0 12px rgba(228,201,138,0.5);
  transition: width 0.8s ease;
}
.bar-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; font-family: Consolas, monospace; }
.ipline {
  margin-top: 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); display: flex; justify-content: space-between; gap: 8px; font-size: 13px;
}
.ipline span { color: var(--muted); }
.ipline strong { font-family: Consolas, monospace; color: var(--gold2); }

/* ---- Forms and buttons ---- */
form.stack { display: grid; gap: 10px; }
label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
input {
  width: 100%; padding: 10px 12px; border-radius: 12px; font: inherit;
  border: 1px solid var(--line); background: rgba(8,6,4,0.55); color: var(--text);
}
input:focus { outline: 1px solid rgba(240,217,160,0.75); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 700; letter-spacing: 0.05em; color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
  background: linear-gradient(180deg, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0.12) 45%, rgba(230,200,140,0.20) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 8px 20px rgba(0,0,0,0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { filter: brightness(1.1); }
.btn.gold {
  color: #1d1406; text-shadow: none; border-color: #f3dca5;
  background: linear-gradient(180deg, #fbe9bd 0%, #e4c98a 45%, #b8914a 100%);
}
.btn.block { width: 100%; }
.btn.off { opacity: 0.45; pointer-events: none; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-row .btn { padding: 11px 8px; font-size: 14px; }
.hello { margin: 0 0 12px; color: var(--muted); }
.hello strong { color: var(--gold2); }
.donate p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.donate .btn { font-size: 16px; padding: 14px 18px; }
.donate svg { width: 20px; height: 20px; fill: currentColor; }

/* ---- News ---- */
.news-list { display: grid; gap: 16px; }
.news-card {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: rgba(255,255,255,0.04); text-decoration: none; color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.news-card:hover { border-color: var(--gold); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.news-card .thumb { aspect-ratio: 16 / 10; background: #120e09 center / cover no-repeat; position: relative; }
.news-card .thumb.none {
  display: flex; align-items: center; justify-content: center;
  background: #120e09 url("vesro-logo.png") center / 72% no-repeat;
  color: transparent; font-size: 0;
}
.news-card .body { padding: 14px 16px 14px 0; min-width: 0; }
.news-card h3 { margin: 6px 0 6px; font-size: 18px; color: var(--gold2); line-height: 1.3; }
.news-card p { margin: 0; color: var(--muted); font-size: 14px; }
.news-card .more { display: inline-block; margin-top: 8px; color: var(--gold); font-size: 13px; font-weight: 600; }
.meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.cat {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-shadow: none;
  padding: 3px 9px; border-radius: 999px; color: #1d1406; background: var(--gold);
}
.cat.c1 { background: #8fd3ff; }
.cat.c2 { background: #9be29a; }
.cat.c3 { background: #ffb37a; }
.empty { color: var(--muted); margin: 0; font-size: 14px; }

/* ---- Rankings ---- */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.tabs button {
  padding: 8px 6px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255,255,255,0.05);
}
.tabs button.on { color: #1d1406; background: var(--gold); border-color: var(--gold); text-shadow: none; }
.tab-pane { display: none; }
.tab-pane.on { display: block; }
table.rank { width: 100%; border-collapse: collapse; font-size: 13px; }
table.rank th {
  text-align: left; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  font-weight: 600; padding: 0 6px 6px; border-bottom: 1px solid var(--line);
}
table.rank td { padding: 7px 6px; border-bottom: 1px solid rgba(255,226,170,0.10); }
table.rank tr:last-child td { border-bottom: 0; }
table.rank .n { text-align: right; font-family: Consolas, monospace; color: var(--gold2); white-space: nowrap; }
table.rank .name { font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.rank .sub { display: block; font-size: 11px; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.pos {
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; background: rgba(255,255,255,0.08); color: var(--muted); text-shadow: none;
}
.pos.p1 { background: linear-gradient(180deg, #ffe7a3, #d4a73c); color: #2a1c02; }
.pos.p2 { background: linear-gradient(180deg, #f1f1f1, #a9a9a9); color: #222; }
.pos.p3 { background: linear-gradient(180deg, #f0b98a, #a8683a); color: #2a1406; }
.fort { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.fort div {
  border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: rgba(255,255,255,0.04);
}
.fort span { display: block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fort b { display: block; font-size: 13px; color: var(--gold2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fort b.none { color: var(--muted); font-weight: 400; font-style: italic; }
.subhead { margin: 0 0 8px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.race {
  font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 4px; margin-left: 4px; vertical-align: middle;
  background: rgba(255,255,255,0.12); color: var(--muted); text-shadow: none;
}
.vip {
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 999px; text-shadow: none;
  color: #2a1c02; background: linear-gradient(180deg, #ffe7a3, #d4a73c); white-space: nowrap;
}
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; margin-left: 5px; vertical-align: middle; }

/* ---- Social ---- */
.social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.social a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.05);
  color: var(--text); text-decoration: none; font-size: 11px; letter-spacing: 0.04em;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.social a svg { width: 24px; height: 24px; fill: currentColor; }
.social a:hover { transform: translateY(-2px); background: var(--brand, rgba(255,255,255,0.12)); border-color: transparent; }
.social a.off { opacity: 0.35; pointer-events: none; }

/* ---- Footer ---- */
footer.site {
  margin-top: 36px; padding: 22px 0 30px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px; text-align: center; background: rgba(8,6,4,0.45);
}
footer.site .wrap {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.aegis-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid rgba(226, 245, 106, 0.32);
  background: rgba(12, 14, 8, 0.55);
  color: #cfc3a8; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.aegis-badge strong {
  color: #e2f56a; font-weight: 700;
  text-shadow: 0 0 10px rgba(226, 245, 106, 0.35);
}
.aegis-mark {
  width: 18px; height: 20px; flex: none;
  animation: aegis-pulse 3.2s ease-in-out infinite;
}
.aegis-mark path {
  fill: none; stroke: #e2f56a; stroke-width: 4;
  stroke-linejoin: round; stroke-linecap: round;
}
@keyframes aegis-pulse {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(226, 245, 106, 0.35)); }
  50% { filter: drop-shadow(0 0 8px rgba(226, 245, 106, 0.8)); }
}
@media (prefers-reduced-motion: reduce) {
  .aegis-mark { animation: none; }
}

/* ---- Empty states ---- */
.empty-state { text-align: center; padding: 44px 20px 36px; }
.empty-state svg { width: 56px; height: 56px; fill: var(--gold); opacity: 0.85; filter: drop-shadow(0 4px 14px rgba(228,201,138,0.35)); }
.empty-state h3 { margin: 14px 0 6px; color: var(--gold2); font-size: 20px; }
.empty-state p { margin: 0 auto 20px; color: var(--muted); max-width: 440px; font-size: 14px; }
.empty-state .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.empty-state.small { padding: 26px 16px 22px; }
.empty-state.small svg { width: 42px; height: 42px; }
.empty-state.small h3 { font-size: 17px; }

/* ---- News page ---- */
.page { margin-top: 24px; }
.page-hero {
  position: relative; display: flex; align-items: flex-end; min-height: 190px; margin-bottom: var(--gap);
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background: url("bg.jpg") center 30% / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,6,4,0.88) 0%, rgba(8,6,4,0.45) 60%, rgba(8,6,4,0.15) 100%);
}
.page-hero .in { position: relative; padding: 28px 36px; }
.page-hero .crumb { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.page-hero .crumb a { color: var(--gold); text-decoration: none; }
.page-hero h1 {
  margin: 0; font-family: "VesroDisplay", Georgia, serif; font-weight: normal; letter-spacing: 0.03em;
  font-size: clamp(32px, 4.4vw, 52px); color: var(--gold2);
  text-shadow: 0 2px 18px rgba(0,0,0,0.7), 0 0 20px rgba(212,179,106,0.3);
}
.page-hero p { margin: 6px 0 0; color: var(--text); opacity: 0.9; }
.article { max-width: 860px; margin: 0 auto; }
.article .hero { width: 100%; border-radius: 16px; display: block; margin: 0 0 18px; border: 1px solid var(--line); }
.article .gallery { display: grid; gap: 10px; margin: 0 0 18px; }
.article .gallery img {
  width: 100%; border-radius: 14px; display: block; border: 1px solid var(--line);
  max-height: 520px; object-fit: cover;
}
.article .gallery.g2, .article .gallery.g3, .article .gallery.g4,
.article .gallery.g5, .article .gallery.g6 { grid-template-columns: 1fr 1fr; }
.article .gallery.g2 img:first-child,
.article .gallery.g3 img:first-child,
.article .gallery.g4 img:first-child,
.article .gallery.g5 img:first-child,
.article .gallery.g6 img:first-child { grid-column: 1 / -1; max-height: 560px; }
.article h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 8px 0 14px; color: var(--gold2); line-height: 1.2; }
.article .content { font-size: 16px; line-height: 1.75; }
.article .content p { margin: 0 0 14px; }
.back { display: inline-block; margin-bottom: 14px; color: var(--gold); text-decoration: none; font-size: 14px; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.news-grid .news-card { grid-template-columns: 1fr; gap: 0; }
.news-grid .news-card .body { padding: 14px 16px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.pager a, .pager span {
  min-width: 38px; padding: 8px 12px; border-radius: 10px; text-align: center; text-decoration: none;
  border: 1px solid var(--line); color: var(--gold2); background: rgba(255,255,255,0.05);
}
.pager span.on { background: var(--gold); color: #1d1406; font-weight: 700; text-shadow: none; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  :root { --side: 270px; }
  .news-card { grid-template-columns: 180px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "center center" "left right";
  }
  .topbar-in { flex-wrap: wrap; justify-content: center; gap: 10px; padding: 10px 0; }
  .menu { order: 3; flex-basis: 100%; }
}
@media (max-width: 640px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "left" "center" "right"; }
  .news-card, .news-grid { grid-template-columns: 1fr; }
  .news-card .body { padding: 0 14px 14px; }
  .slide .cap { padding: 40px 20px 36px; }
  .slider .arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .dot.on { animation: none; }
  .progress.run { animation: none; }
}
