@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/Onest-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/Onest-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/JetBrainsMono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  --pw-bg: #0b0c10;
  --pw-tile: #14161d;
  --pw-tile2: #1b1e28;
  --pw-ink: #eef0f5;
  --pw-muted: #8a90a2;
  --pw-line: rgba(255, 255, 255, .07);
  --pw-lime: #c6ff3d;
  --pw-refresh: #34e3a5;
  --pw-x100: #ff9f2e;
  --pw-r: 26px;
  --pw-font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pw-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--pw-bg); }
body {
  margin: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(198, 255, 61, .06), transparent 70%), var(--pw-bg);
  color: var(--pw-ink);
  font: 15px/1.5 var(--pw-font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, p, dl, dd { margin: 0; }

.pw-shell {
  display: flex; flex-direction: column;
  max-width: 1440px; min-height: 100vh; min-height: 100svh;
  margin: 0 auto; padding: 16px;
}
.pw-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pw-muted); }

/* Top bar */
.pw-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px;
  border: 1px solid var(--pw-line); border-radius: 999px;
  background: rgba(20, 22, 29, .86);
}
.pw-bar__logo { display: flex; align-items: center; gap: 12px; padding: 0 6px 0 14px; flex: none; }
.pw-bar__logo img { display: block; height: 28px; width: auto; }
.pw-bar__tag {
  flex: none; padding: 5px 10px; border-radius: 999px;
  background: rgba(198, 255, 61, .12); color: var(--pw-lime);
  font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
}
.pw-bar__nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.pw-bar__nav a {
  padding: 10px 12px; border-radius: 999px;
  color: var(--pw-muted); font-weight: 500; white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.pw-bar__nav a:hover { color: var(--pw-ink); background: var(--pw-tile2); }
.pw-bar__pic { display: none; }
.pw-bar__right { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.pw-bar__nav a:focus-visible, .pw-bar__pic:focus-visible, .pw-pill:focus-visible {
  outline: 2px solid var(--pw-lime); outline-offset: 2px;
}

.pw-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 18px; border-radius: 999px;
  color: var(--pw-ink); font: 500 15px/1 var(--pw-font); white-space: nowrap;
  transition: background .15s ease;
}
.pw-pill--ghost { border: 1px solid var(--pw-line); }
.pw-pill--ghost:hover { background: var(--pw-tile2); }

/* Heading */
.pw-gate-page { flex: 1; display: flex; flex-direction: column; }
.pw-head { padding: 36px 8px 24px; text-align: center; }
.pw-head h1 { margin-top: 8px; color: #fff; font-size: clamp(44px, 6vw, 84px); font-weight: 900; line-height: .95; letter-spacing: -.05em; }

/* Server choice */
.pw-gates { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pw-gate {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 560px; padding: 32px;
  border: 1px solid var(--pw-line); border-radius: var(--pw-r);
  transition: opacity .3s ease, filter .3s ease, border-color .3s ease, transform .3s ease;
}
.pw-gate--refresh { --pw-server: var(--pw-refresh); background: radial-gradient(80% 65% at 72% 28%, rgba(52, 227, 165, .22) 0%, transparent 65%), var(--pw-tile); }
.pw-gate--x100 { --pw-server: var(--pw-x100); background: radial-gradient(80% 65% at 72% 28%, rgba(255, 159, 46, .22) 0%, transparent 65%), var(--pw-tile); }
.pw-gate::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 22, 29, 0) 35%, rgba(20, 22, 29, .96) 80%);
}
.pw-gates:hover .pw-gate:not(:hover) { opacity: .55; filter: saturate(.3); }
.pw-gate:hover, .pw-gate:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--pw-server) 50%, transparent); }
.pw-gate:focus-visible { outline: 2px solid var(--pw-server); outline-offset: 3px; }

.pw-gate__art {
  position: absolute; top: 20px; right: 2%; z-index: 0;
  width: 80%; height: 70%; object-fit: contain; object-position: right top;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.pw-gate--x100 .pw-gate__art { width: 60%; height: 78%; top: 10px; right: 6%; }
.pw-gate:hover .pw-gate__art { transform: translateY(-8px) scale(1.03); }

.pw-gate__body { position: relative; z-index: 2; max-width: 480px; }
.pw-gate__body .pw-label { color: var(--pw-server); }
.pw-gate__name { margin: 6px 0 12px; color: #fff; font-size: clamp(52px, 5.5vw, 84px); font-weight: 900; line-height: .95; letter-spacing: -.05em; }
.pw-gate__body p { margin-bottom: 18px; color: #c9cdd8; font-size: 15px; }

.pw-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.pw-facts div { min-width: 92px; padding: 10px 14px; border-radius: 14px; background: rgba(27, 30, 40, .85); }
.pw-facts dt { color: var(--pw-muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pw-facts dd { color: var(--pw-ink); font: 700 18px/1.3 var(--pw-mono); }

.pw-play {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--pw-server); color: #0b0c10; font-weight: 700; font-size: 16px;
  transition: background .15s ease;
}
.pw-play::after { content: "\2192"; }
.pw-gate:hover .pw-play { background: color-mix(in srgb, var(--pw-server) 80%, #fff); }
.pw-gate__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
/* Live version from rf.pvpwar.net/server_versions.js (cron of the forum news import); hidden until it loads */
.pw-gate__ver { display: inline-flex; align-items: center; gap: 8px; color: var(--pw-muted); font: 600 13px/1 var(--pw-mono); }
.pw-gate__ver::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pw-server); box-shadow: 0 0 10px var(--pw-server); }
.pw-gate__ver[hidden] { display: none; }
.pw-gate-note { padding: 18px 8px 4px; color: var(--pw-muted); font-size: 14px; text-align: center; }
.pw-gate-note a { color: var(--pw-ink); text-decoration: underline; text-decoration-color: rgba(238, 240, 245, .35); text-underline-offset: 3px; }
.pw-gate-note a:hover { color: var(--pw-lime); text-decoration-color: currentColor; }

/* Footer */
.pw-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 18px 8px 4px; color: var(--pw-muted); font-size: 13px; }
.pw-foot a { color: var(--pw-ink); }

@media (max-width: 860px) {
  .pw-bar__nav { display: none; }
  .pw-bar a.pw-bar__pic {
    display: inline-flex; align-items: center;
    min-height: 38px; padding: 0 12px; border-radius: 999px;
    color: var(--pw-muted); font-weight: 500; font-size: 14px; white-space: nowrap;
  }
  .pw-bar a.pw-bar__pic:hover { color: var(--pw-ink); background: var(--pw-tile2); }
  .pw-shell { padding: 10px; }
  .pw-bar__logo { padding: 0 4px 0 8px; }
  .pw-bar__logo img { height: 22px; }
  .pw-pill { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .pw-head { padding: 24px 4px 16px; }
  .pw-head h1 { font-size: 44px; }
  .pw-gates { grid-template-columns: 1fr; gap: 10px; }
  .pw-gates:hover .pw-gate:not(:hover) { opacity: 1; filter: none; }
  .pw-gate { min-height: 470px; padding: 20px; border-radius: 22px; }
  .pw-gate__art { width: 90%; height: 58%; }
  .pw-gate--x100 .pw-gate__art { width: 62%; height: 62%; }
  .pw-gate__name { font-size: 52px; }
  .pw-play { justify-content: center; width: 100%; }
}
@media (max-width: 470px) {
  .pw-bar__tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pw-gate, .pw-gate__art { transition: none; }
}
