/* CS Warzone - look borrowed from gametracker.rs: black, red #c00000 panels, Audiowide titles. */

@font-face {
  font-family: "Audiowide";
  src: url("/assets/fonts/audiowide-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #c00000;
  --red-dark: #7a0000;
  --red-deep: #880000;
  --red-line: #ff4444;
  --gold: #f5c500;
  --gold-dark: #c89800;
  --bg: #000;
  --panel: rgba(0, 0, 0, .88);
  --card: #0d0d0d;
  --line: #2a0000;
  --text: #cccccc;
  --muted: #9a9a9a;
  --white: #fff;
  --title: "Audiowide", "Arial Black", sans-serif;
  --body: Verdana, Tahoma, "Segoe UI", Arial, sans-serif;
  --mono: Consolas, "Lucida Console", "Courier New", monospace;
  --radius: 7px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.65 var(--body);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 45% at 12% 0%, rgba(192, 0, 0, .55), transparent 70%),
    radial-gradient(ellipse 45% 40% at 95% 35%, rgba(192, 0, 0, .28), transparent 70%),
    url("/assets/img/hex.svg");
  background-attachment: fixed, fixed, scroll;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

img { max-width: 100%; height: auto; }
a { color: #ff5a5a; text-underline-offset: 2px; }
a:hover { color: #fff; }
code, kbd, pre { font-family: var(--mono); }
code { color: #ffd2d2; background: #1a0000; border: 1px solid #3a0000; border-radius: 3px; padding: 1px 5px; font-size: .92em; }
kbd { color: #fff; background: #222; border: 1px solid #555; border-bottom-width: 2px; border-radius: 3px; padding: 0 6px; font-size: .9em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--title); font-weight: 400; color: var(--white); line-height: 1.15; margin: 0 0 .6em; }
h3 { font-size: 1rem; letter-spacing: .02em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.small { font-size: .85rem; color: var(--muted); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 3px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .92);
  border-bottom: 2px solid var(--red);
  backdrop-filter: blur(6px);
}
.top__in { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-family: var(--title); font-size: 1.15rem; letter-spacing: .03em; }
.brand b { color: var(--red-line); font-weight: 400; }
.nav { display: flex; gap: 4px; margin-left: auto; align-self: stretch; }
.nav a {
  display: flex; align-items: center; padding: 0 16px;
  font-family: var(--title); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: #ddd; text-decoration: none; border-radius: 0 0 10px 10px;
}
.nav a:hover { background: var(--red); color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--title); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  border: 0; border-radius: 3px; padding: 10px 18px; cursor: pointer;
  box-shadow: 0 0 6px rgba(192, 0, 0, .35);
  transition: box-shadow .15s, transform .15s, filter .15s;
}
.btn:hover { color: var(--white); box-shadow: 0 0 16px rgba(255, 40, 40, .6); filter: brightness(1.12); }
.btn--sm { padding: 8px 14px; font-size: .72rem; }
.top .btn--sm { margin-left: 8px; }
.btn--xl {
  padding: 16px 28px; font-size: 1.15rem; color: #000;
  background: linear-gradient(var(--gold), var(--gold-dark));
  box-shadow: 0 0 0 1px #ffe066 inset, 0 6px 24px rgba(245, 197, 0, .25);
  text-align: left;
}
.btn--xl:hover { color: #000; box-shadow: 0 0 0 1px #fff2a8 inset, 0 8px 32px rgba(245, 197, 0, .45); transform: translateY(-1px); }
.btn--xl small { display: block; font-family: var(--body); font-size: .72rem; letter-spacing: 0; text-transform: none; opacity: .8; margin-top: 2px; }
.btn--ghost { background: #000; border: 1px solid var(--red); box-shadow: none; padding: 16px 22px; }
.btn__icon { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 48px; }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 16px; padding: 4px 12px;
  font-family: var(--title); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); background: var(--red); border-radius: 3px;
}
.nw { white-space: nowrap; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); text-shadow: 0 0 24px rgba(192, 0, 0, .6); }
.lead { font-size: 1.08rem; color: #e2e2e2; max-width: 36em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: #0d0d0d; border: 1px solid #3a0000; border-radius: 3px; padding: 5px 10px; font-size: .82rem; }
.facts b { color: var(--red-line); font-weight: 400; margin-right: 4px; }

.console { border: 2px solid var(--red); border-radius: var(--radius); background: #050505; overflow: hidden; box-shadow: 0 0 40px rgba(192, 0, 0, .35); }
.console__bar { display: flex; justify-content: space-between; align-items: center; background: var(--red); color: var(--white); font-family: var(--title); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; }
.console__bar i { width: 12px; height: 12px; border: 2px solid var(--white); border-radius: 2px; }
.console__body { margin: 0; padding: 16px 18px; min-height: 300px; font-size: .86rem; line-height: 1.6; color: #d8d8d8; white-space: pre-wrap; }
.console__cursor::after { content: "_"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .console__cursor::after { animation: none; } }

/* ---------- stat boxes ---------- */
.strip { padding: 8px 0 24px; }
.strip__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.strip__in div {
  text-align: center; padding: 14px 8px;
  background: linear-gradient(var(--red), var(--red-dark));
  border: 1px solid var(--red-line); border-radius: 5px;
}
.strip b { display: block; font-family: var(--title); font-weight: 400; font-size: 1.6rem; color: var(--white); line-height: 1.2; }
.strip span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #ffdcdc; }

/* ---------- panels ---------- */
.sec { padding: 14px 0; }
.panel { background: var(--panel); border: 2px solid var(--red); border-radius: var(--radius); overflow: hidden; }
.panel__head {
  margin: 0; padding: 9px 16px;
  background: var(--red); color: var(--white);
  font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
}
.panel__body { padding: 20px 20px 22px; }
.panel__body > :last-child { margin-bottom: 0; }
.sec__lead { margin-top: 0; max-width: 62em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.card { background: var(--card); border: 1px solid #3a0000; border-left: 3px solid var(--red); border-radius: 4px; padding: 16px 18px; transition: border-color .15s, background .15s; }
.card:hover { border-color: var(--red); background: #140000; }
.card p { margin: 0; font-size: .92rem; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 48px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; display: grid; place-items: center;
  font-family: var(--title); color: var(--white);
  background: linear-gradient(var(--red), var(--red-dark)); border: 1px solid var(--red-line); border-radius: 5px;
}
.steps b { color: var(--white); }

.hash { display: flex; gap: 8px; align-items: stretch; margin: 14px 0; }
.hash code { flex: 1; display: block; padding: 10px 12px; word-break: break-all; font-size: .82rem; }
.hash__copy { font: inherit; font-size: .8rem; color: var(--white); background: linear-gradient(135deg, var(--red), var(--red-deep)); border: 0; border-radius: 3px; padding: 0 14px; cursor: pointer; }
.cmd { margin: 6px 0 0; padding: 10px 12px; background: #0d0d0d; border: 1px solid #3a0000; border-radius: 3px; font-size: .85rem; overflow-x: auto; color: #e8e8e8; }

table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 12px; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid #2a0000; vertical-align: top; }
thead th { font-family: var(--title); font-weight: 400; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--white); background: #1a0000; }
tbody th { color: var(--white); font-weight: 400; white-space: nowrap; }
tbody tr:nth-child(odd) { background: rgba(255, 255, 255, .02); }
.cmds td:first-child { white-space: nowrap; width: 1%; }

.faq details { border-bottom: 1px solid #2a0000; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 13px 32px 13px 0; color: var(--white); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-family: var(--title); font-size: 1.3rem; color: var(--red-line); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: #ffbcbc; }
.faq details p { margin: 0 0 16px; }

/* ---------- inner pages ---------- */
.page-head { padding: 40px 0 6px; }
.page-head h1 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); text-shadow: 0 0 24px rgba(192, 0, 0, .6); }
.page-head .lead { margin-bottom: 8px; }
.nav a[aria-current="page"] { background: var(--red); color: var(--white); }

/* ---------- server list (rows written by tools/build_servers.py) ---------- */
.srv__note { margin-top: 0; font-size: .9rem; }
.srv__updated { color: var(--muted); }
.srv { margin-top: 4px; font-size: .84rem; table-layout: fixed; }
.srv thead th { letter-spacing: .02em; }
.srv th, .srv td { padding: 6px 8px; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv tbody tr:hover { background: #1a0000; }
.srv__rank { width: 66px; color: var(--muted); }
.srv__pl { width: 88px; }
.srv__addr { width: 182px; }
.srv__mod { width: 62px; text-transform: uppercase; }
.srv__cc { width: 88px; }
.srv__map { width: 150px; }
.srv td.srv__rank, .srv td.srv__addr, .srv td.srv__map { color: var(--muted); }
.srv td.srv__pl { color: var(--white); font-weight: 700; }
.srv__name a { color: #ff3b3b; font-weight: 700; text-decoration: none; }
.srv__name a:hover { color: var(--white); text-decoration: underline; }
.srv__ipm { display: none; font-size: .78rem; color: var(--muted); }
.srv__flag { width: 20px; height: 15px; vertical-align: -3px; border-radius: 1px; }
.srv__empty { white-space: normal !important; text-align: center; padding: 18px 8px !important; }

/* ---------- install guide ---------- */
.prep { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prep__item { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid #3a0000; border-radius: 6px; padding: 16px; }
.prep__item b { color: var(--white); font-family: var(--title); font-weight: 400; font-size: .9rem; letter-spacing: .03em; }
.prep__item p { margin: 6px 0 0; font-size: .9rem; }
.prep__icon { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 8px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; background: linear-gradient(var(--red), var(--red-dark)); border: 1px solid var(--red-line); }

/* The six installer screens. Plain numbered list without JS; install.js adds .wiz--js. */
.wiz__stage { list-style: none; margin: 0; padding: 0; }
.wiz__step { margin: 0 0 28px; }
.wiz__step:last-child { margin-bottom: 0; }
.wiz__shot {
  margin: 0; padding: 34px 16px; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid #3a0000;
  background:
    radial-gradient(ellipse 65% 75% at 50% 42%, rgba(192, 0, 0, .45), transparent 70%),
    linear-gradient(160deg, #1f0000, #050000 70%);
}
.wiz__frame { position: relative; width: min(100%, 500px); }
.wiz__frame img { display: block; width: 100%; height: auto; border-radius: 2px; box-shadow: 0 18px 50px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 0, 0, .5); -webkit-user-drag: none; user-select: none; }
.wiz__ring { display: none; }
.wiz__text { max-width: 760px; margin: 18px auto 0; }
.wiz__num { margin: 0 0 4px; font-family: var(--title); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red-line); }
.wiz__text h3 { font-size: 1.25rem; margin-bottom: .5em; }
.wiz__text p { margin: 0 0 10px; }
.wiz__text b { color: var(--white); }

.wiz--js { outline: none; }
.wiz--js .wiz__stage { position: relative; overflow: hidden; touch-action: pan-y; }
.wiz--js .wiz__step {
  position: absolute; top: 0; left: 0; right: 0; margin: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
}
/* transitions switch on one frame after setup, so the page does not flash all six screens */
.wiz--ready .wiz__stage { transition: height .45s cubic-bezier(.2, .8, .2, 1); }
.wiz--ready .wiz__step { transition: opacity .35s ease, transform .55s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .55s; }
.wiz--js .wiz__step.to-left { transform: translateX(-12%) scale(.94); }
.wiz--js .wiz__step.to-right { transform: translateX(12%) scale(.94); }
.wiz--js .wiz__step.from-right { transform: translateX(12%) scale(.94); }
.wiz--js .wiz__step.from-left { transform: translateX(-12%) scale(.94); }
.wiz--js .wiz__step.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.wiz--ready .wiz__step.is-active { transition-delay: 0s; }

/* the dialog "opens" like a real window, then a ring shows where to click */
.wiz--js .is-active .wiz__frame { animation: wiz-pop .6s cubic-bezier(.2, .9, .25, 1.15) both; }
.wiz--js .wiz__ring {
  display: block; position: absolute; width: 21%; aspect-ratio: 3 / 1.2;
  transform: translate(-50%, -50%); border: 3px solid var(--gold); border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(245, 197, 0, .25), 0 0 24px rgba(245, 197, 0, .7);
  opacity: 0; pointer-events: none;
}
.wiz--js .is-active .wiz__ring { animation: wiz-ring-in .4s ease .65s forwards, wiz-pulse 1.6s ease-in-out 1.05s infinite; }
.wiz__ring--1 { left: 64.1%; top: 59.1%; }
.wiz__ring--2 { left: 25.4%; top: 88.7%; }
.wiz--js .wiz__ring--2 { width: 46%; aspect-ratio: 3 / .55; }
.wiz__ring--3 { left: 73.3%; top: 94.8%; }
.wiz__ring--4 { left: 73.3%; top: 94.5%; }
.wiz__ring--5 { left: 73.4%; top: 94.3%; }
.wiz__ring--6 { left: 73.0%; top: 94.5%; }
.wiz--js .is-active .wiz__text > * { animation: wiz-up .5s ease both; }
.wiz--js .is-active .wiz__text > :nth-child(2) { animation-delay: .08s; }
.wiz--js .is-active .wiz__text > :nth-child(3) { animation-delay: .16s; }
.wiz--js .is-active .wiz__text > :nth-child(4) { animation-delay: .24s; }

@keyframes wiz-pop { from { opacity: 0; transform: scale(.86) translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wiz-ring-in { from { opacity: 0; transform: translate(-50%, -50%) scale(1.8); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes wiz-pulse { 50% { box-shadow: 0 0 0 9px rgba(245, 197, 0, .12), 0 0 30px rgba(245, 197, 0, .9); } }
@keyframes wiz-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.wiz__bar { height: 4px; background: #1a0000; border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.wiz__fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.wiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #2a0000; }
.wiz__btn { font: inherit; font-family: var(--title); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--white); background: linear-gradient(135deg, var(--red), var(--red-deep)); border: 0; border-radius: 3px; padding: 10px 22px; cursor: pointer; transition: filter .15s, box-shadow .15s; }
.wiz__btn:hover:not(:disabled) { filter: brightness(1.15); box-shadow: 0 0 14px rgba(255, 40, 40, .55); }
.wiz__btn:disabled { opacity: .35; cursor: default; }
.wiz__btn--prev { background: #000; border: 1px solid var(--red); }
.wiz__dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.wiz__dot { font: inherit; font-family: var(--title); font-size: .78rem; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: #bbb; background: #0d0d0d; border: 1px solid #3a0000; transition: background .2s, color .2s, transform .2s, border-color .2s; }
.wiz__dot:hover { border-color: var(--red); color: var(--white); }
.wiz__dot.is-done { background: #2a0000; color: #ffbcbc; border-color: var(--red-dark); }
.wiz__dot[aria-current="step"] { background: linear-gradient(var(--red), var(--red-dark)); color: var(--white); border-color: var(--red-line); transform: scale(1.12); box-shadow: 0 0 12px rgba(255, 40, 40, .5); }

@media (prefers-reduced-motion: reduce) {
  .wiz--ready .wiz__stage, .wiz--ready .wiz__step, .wiz__fill { transition: none; }
  .wiz--js .wiz__step.to-left, .wiz--js .wiz__step.to-right, .wiz--js .wiz__step.from-left, .wiz--js .wiz__step.from-right { transform: none; }
  .wiz--js .is-active .wiz__frame, .wiz--js .is-active .wiz__text > * { animation: none; }
  .wiz--js .is-active .wiz__ring { animation: none; opacity: 1; }
}

.first { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: f; }
.first li { counter-increment: f; position: relative; background: var(--card); border: 1px solid #3a0000; border-top: 3px solid var(--red); border-radius: 4px; padding: 16px 16px 16px; }
.first li::before { content: counter(f); position: absolute; right: 12px; top: 8px; font-family: var(--title); font-size: 1.6rem; color: rgba(255, 68, 68, .18); }
.first b { display: block; font-family: var(--title); font-weight: 400; color: var(--white); margin-bottom: 6px; }
.first span { font-size: .9rem; }
.faq details ol { margin: 0 0 16px; padding-left: 22px; }
.faq details ol li { margin-bottom: 6px; }

/* ---------- system requirements ---------- */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.spec {
  position: relative; overflow: hidden; padding: 18px 18px 16px;
  background: linear-gradient(160deg, #160000, #050505 55%);
  border: 1px solid #3a0000; border-radius: 10px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.spec::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--red), transparent); }
.spec:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(192, 0, 0, .25); }
.spec__top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.spec__top h2 { margin: 0; font-size: 1.05rem; letter-spacing: .03em; }
.spec__icon { flex: none; width: 42px; height: 42px; padding: 8px; border-radius: 10px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; background: linear-gradient(var(--red), var(--red-dark)); border: 1px solid var(--red-line); }
.spec__vals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.spec__vals div { background: rgba(255, 255, 255, .03); border: 1px solid #2a0000; border-radius: 6px; padding: 8px 10px; }
.spec__vals dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.spec__vals dd { margin: 2px 0 0; color: var(--white); font-weight: 700; font-size: .95rem; }
.spec__vals .spec__rec { border-color: var(--red-dark); background: rgba(192, 0, 0, .12); }
.spec__vals .spec__rec dd { color: var(--gold); }
.spec p { margin: 0; font-size: .88rem; }

.rig { margin: 6px 0 0; padding: 18px 18px 14px; border: 2px solid var(--red); border-radius: var(--radius); background: radial-gradient(ellipse 60% 70% at 50% 45%, rgba(192, 0, 0, .22), rgba(0, 0, 0, .92) 75%); }
.rig__svg { display: block; width: 100%; max-width: 820px; height: auto; margin: 0 auto; }
.rig figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.rig__fan { transform-box: fill-box; transform-origin: center; animation: rig-spin 1.1s linear infinite; }
.rig__fan--2 { animation-duration: 1.4s; }
.rig__led { animation: rig-led 2.6s ease-in-out infinite; }
.rig__power { animation: rig-led 1.8s ease-in-out infinite; }
.rig__fps { animation: rig-flick 3.5s steps(1) infinite; }
.rig__blip { animation: rig-blip 1.2s ease-in-out infinite; }
.rig__cross { transform-box: fill-box; transform-origin: center; animation: rig-breathe 2.2s ease-in-out infinite; }
.rig__shine { animation: rig-shine 6s ease-in-out infinite; }
.rig__keys { animation: rig-keys 1.6s steps(4) infinite; }
.rig__floor { animation: rig-led 4s ease-in-out infinite; }
@keyframes rig-spin { to { transform: rotate(360deg); } }
@keyframes rig-led { 50% { opacity: .45; } }
@keyframes rig-flick { 92% { opacity: 1; } 94% { opacity: .4; } 96% { opacity: 1; } }
@keyframes rig-blip { 50% { opacity: .2; } }
@keyframes rig-breathe { 50% { transform: scale(1.18); } }
@keyframes rig-shine { 0%, 70%, 100% { opacity: 0; } 80% { opacity: .06; } }
@keyframes rig-keys { 0% { transform: translateX(0); } 25% { transform: translateX(70px); } 50% { transform: translateX(140px); } 75% { transform: translateX(210px); } }
@media (prefers-reduced-motion: reduce) {
  .rig__fan, .rig__led, .rig__power, .rig__fps, .rig__blip, .rig__cross, .rig__shine, .rig__keys, .rig__floor { animation: none; }
}

.tips { list-style: none; margin: 0; padding: 0; }
.tips li { position: relative; padding: 0 0 12px 26px; }
.tips li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 2px; background: var(--red-line); box-shadow: 0 0 8px rgba(255, 68, 68, .7); transform: rotate(45deg); }
.tips b { color: var(--white); }

/* ---------- download stats (/stats/, tools/build_stats.py) ---------- */
.stats__title { margin-top: 10px; font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 18px 0 20px; }
.stat { display: flex; flex-direction: column; padding: 16px; border: 1px solid #3a0000; border-top: 3px solid var(--red); border-radius: 8px; background: linear-gradient(160deg, #160000, #050505 60%); }
.stat__label { font-family: var(--title); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
.stat__big { font-size: 2rem; color: var(--gold); line-height: 1.1; }
.stat__mid { font-size: 1.2rem; color: var(--white); margin-top: 8px; line-height: 1.1; }
.stat__sub { font-size: .75rem; color: var(--muted); }
.daybars { display: flex; align-items: flex-end; gap: 3px; height: 180px; overflow-x: auto; }
.daybar { position: relative; flex: 1 0 12px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.daybar__fill { display: block; min-height: 2px; border-radius: 2px 2px 0 0; background: linear-gradient(var(--gold), var(--red)); }
.daybar__day { font-size: .62rem; color: var(--muted); text-align: center; margin-top: 3px; }
.daybar__h0 { height: 0%; }
.daybar__h1 { height: 5%; }
.daybar__h2 { height: 10%; }
.daybar__h3 { height: 15%; }
.daybar__h4 { height: 20%; }
.daybar__h5 { height: 25%; }
.daybar__h6 { height: 30%; }
.daybar__h7 { height: 35%; }
.daybar__h8 { height: 40%; }
.daybar__h9 { height: 45%; }
.daybar__h10 { height: 50%; }
.daybar__h11 { height: 55%; }
.daybar__h12 { height: 60%; }
.daybar__h13 { height: 65%; }
.daybar__h14 { height: 70%; }
.daybar__h15 { height: 75%; }
.daybar__h16 { height: 80%; }
.daybar__h17 { height: 85%; }
.daybar__h18 { height: 90%; }
.daybar__h19 { height: 95%; }
.daybar__h20 { height: 100%; }
.stats__table { margin-top: 16px; }
.stats__table td:not(:first-child), .stats__table th:not(:first-child) { text-align: right; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- final + footer ---------- */
.final { padding: 40px 0 56px; }
.final__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; border: 2px solid var(--red); border-radius: var(--radius); background: linear-gradient(135deg, rgba(192, 0, 0, .45), rgba(0, 0, 0, .9) 60%); }
.final h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.final h2 span { display: block; font-size: .6em; color: #ffbcbc; margin-top: 6px; }

.foot { border-top: 2px solid var(--red); background: #000; padding: 26px 0 32px; }
.foot p { margin: 0 0 6px; }
.foot b { font-family: var(--title); font-weight: 400; color: var(--white); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__in, .two { grid-template-columns: 1fr; }
  .prep { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .first { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 36px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .console__body { min-height: 0; }
}
@media (max-width: 760px) {
  .srv__addr, .srv__mod, .srv__map { display: none; }
  .srv__ipm { display: block; }
  .srv__name { white-space: normal !important; }
  .srv__name a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav { display: none; }
  .top .btn--sm { margin-left: auto; }
  .strip__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .grid { grid-template-columns: 1fr; }
  .btn--xl { width: 100%; justify-content: flex-start; }
  .btn--ghost { width: 100%; padding: 12px; }
  .panel__body { padding: 16px; }
  .final__in { padding: 22px 18px; }
  .cmds td:first-child { white-space: normal; }
  .first { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .rig { padding: 10px 6px; }
  .wiz__shot { padding: 18px 8px; }
  .wiz__dot { width: 30px; height: 30px; }
  .wiz__dots { gap: 5px; }
  .wiz__btn { padding: 10px 14px; }
  .srv__rank { display: none; }
  .srv { font-size: .8rem; }
  .srv th, .srv td { padding: 6px 5px; }
  .srv__pl { width: 70px; }
  .srv__cc { width: 32px; }
  .srv thead .srv__cc { font-size: 0; }
  .srv thead .srv__pl { overflow: visible; text-overflow: clip; }
}
