/* KillrunMP website: the launcher's visual language (krmp-launcher/src/theme.rs).
   Near-black navy, electric violet bars, cyan highlights, Josefin Sans
   (SIL OFL 1.1, see /assets/fonts/OFL.txt), uppercase tracked headings,
   chamfered frames and corner brackets. No external resources. */

@font-face {
  font-family: "Josefin Sans";
  src: url("/assets/fonts/JosefinSans-Variable.woff2") format("woff2"),
       url("/assets/fonts/JosefinSans-Variable.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  /* Josefin's tall ascender sits text high in its line box (the launcher
     shifts it by 0.08 em); these metrics centre capitals vertically. */
  ascent-override: 84%;
  descent-override: 16%;
  line-gap-override: 0%;
}

:root {
  --bg-deep: #06090e;
  --bg: #0a0e14;
  --panel: #0d121a;
  --card: #111722;
  --card-hi: #171f2e;
  --line: #1d2636;
  --line-hi: #2e3b54;
  --violet: #5b00ff;
  --violet-hi: #742bff;
  --violet-deep: #2b0a78;
  --cyan: #00e5ff;
  --text: #ffffff;
  --text-dim: #a9b3c6;
  /* Launcher mute is #66728A; nudged up for WCAG AA on small text. */
  --text-mute: #75819a;
  --warn: #ffb547;
  --err: #ff4d6a;

  --font: "Josefin Sans", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --wrap: 1320px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .14s;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Window backdrop: two faint glows, a 40 px grid and scanlines (theme.rs backdrop). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 760px 440px at 14% -60px, rgba(91, 0, 255, .17), transparent 72%),
    radial-gradient(ellipse 640px 400px at calc(100% - 40px) calc(100% + 60px), rgba(0, 229, 255, .055), transparent 72%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .13) 0 1px, transparent 1px 3px),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd, pre, .mono { font-family: var(--mono); font-size: .86em; }
code { color: var(--text); background: var(--bg-deep); border: 1px solid var(--line); padding: .05em .4em; border-radius: 2px; overflow-wrap: anywhere; }
pre { background: var(--bg-deep); border: 1px solid var(--line); padding: 14px 16px; overflow-x: auto; margin: 0 0 1em; line-height: 1.5; }
pre code { border: 0; padding: 0; background: none; }
kbd { border: 1px solid var(--line-hi); border-bottom-width: 2px; padding: 0 .4em; border-radius: 2px; color: var(--text); }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
::selection { background: var(--violet); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--violet);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 13px;
}
.skip-link:focus { top: 12px; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main { flex: 1 0 auto; padding-bottom: 72px; }
main:focus { outline: none; }

/* ---------- Type helpers ---------- */

.caps {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 600;
}
.label {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 600;
  font-size: 11px;
  color: var(--text-mute);
}
.dim { color: var(--text-dim); }
.mute { color: var(--text-mute); }
.cyan { color: var(--cyan); }
.warn { color: var(--warn); }
.err { color: var(--err); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-dim); line-height: 1.6; }
.prose { color: var(--text-dim); max-width: 74ch; }
.prose p { margin: 0 0 1em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose li::marker { color: var(--cyan); }
.prose h3 { color: var(--text); font-size: 15px; text-transform: uppercase; letter-spacing: .14em; margin: 1.6em 0 .6em; }

/* ---------- Corner brackets (theme.rs brackets) ---------- */

.brk { position: relative; }
.brk::before {
  --bl: 8px; --bw: 1.5px;
  content: "";
  position: absolute;
  inset: var(--bi, -5px);
  pointer-events: none;
  color: var(--bc, rgba(255, 255, 255, .6));
  background:
    linear-gradient(currentColor 0 0) top left / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) top left / var(--bw) var(--bl),
    linear-gradient(currentColor 0 0) top right / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) top right / var(--bw) var(--bl),
    linear-gradient(currentColor 0 0) bottom left / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) bottom left / var(--bw) var(--bl),
    linear-gradient(currentColor 0 0) bottom right / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) bottom right / var(--bw) var(--bl);
  background-repeat: no-repeat;
  transition: inset var(--t) var(--ease), opacity var(--t) var(--ease), color var(--t) var(--ease);
}
.brk--lg::before { --bl: 16px; --bw: 1.5px; --bi: -6px; }
.brk--cyan::before { --bc: var(--cyan); }

/* ---------- Buttons (widgets.rs button) ---------- */

.btn {
  --h: 38px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--h);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 1px;
  background: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), transform .08s;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  --bl: 6px; --bw: 1.3px;
  content: "";
  position: absolute;
  inset: -4px;
  pointer-events: none;
  color: #fff;
  opacity: .5;
  background:
    linear-gradient(currentColor 0 0) top left / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) top left / var(--bw) var(--bl),
    linear-gradient(currentColor 0 0) top right / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) top right / var(--bw) var(--bl),
    linear-gradient(currentColor 0 0) bottom left / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) bottom left / var(--bw) var(--bl),
    linear-gradient(currentColor 0 0) bottom right / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) bottom right / var(--bw) var(--bl);
  background-repeat: no-repeat;
  transition: inset var(--t) var(--ease), opacity var(--t) var(--ease), color var(--t);
}
.btn:hover::before, .btn:focus-visible::before { inset: -6px; opacity: .95; }
.btn:active { transform: scale(.985); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary { background: var(--violet); }
.btn--primary::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px; width: 0;
  background: var(--cyan);
  transition: width .18s var(--ease);
}
.btn--primary:hover { background: var(--violet-hi); }
.btn--primary:hover::after, .btn--primary:focus-visible::after { width: 100%; }

.btn--ghost {
  background: rgba(17, 23, 34, .7);
  border-color: var(--line-hi);
  color: var(--text-dim);
}
.btn--ghost::before { opacity: .22; }
.btn--ghost:hover { background: rgba(91, 0, 255, .22); border-color: var(--violet-hi); color: var(--text); }

.btn--danger {
  background: rgba(17, 23, 34, .7);
  border-color: var(--line-hi);
  color: var(--text-dim);
}
.btn--danger::before { opacity: .22; }
.btn--danger:hover { background: rgba(255, 77, 106, .14); border-color: var(--err); color: var(--err); }
.btn--danger:hover::before { color: var(--err); }

.btn--sm { --h: 30px; padding: 0 12px; font-size: 11.5px; letter-spacing: .12em; }
.btn--lg { --h: 48px; padding: 0 26px; font-size: 14px; letter-spacing: .18em; }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}
.btn[disabled]::before, .btn[aria-disabled="true"]::before { display: none; }

/* Big chamfered action (home.rs play_button). */
.action {
  --cut: 18px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 14px 28px 14px 24px;
  color: #fff;
  text-decoration: none !important;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.action::before {
  --bl: 12px; --bw: 1.5px;
  content: "";
  position: absolute;
  inset: -5px;
  pointer-events: none;
  color: #fff;
  opacity: .6;
  background:
    linear-gradient(currentColor 0 0) top left / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) top left / var(--bw) var(--bl),
    linear-gradient(currentColor 0 0) top right / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) top right / var(--bw) var(--bl),
    linear-gradient(currentColor 0 0) bottom left / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) bottom left / var(--bw) var(--bl),
    linear-gradient(currentColor 0 0) bottom right / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) bottom right / var(--bw) var(--bl);
  background-repeat: no-repeat;
  transition: inset var(--t) var(--ease), opacity var(--t) var(--ease);
}
.action::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--cyan);
  transition: width .2s var(--ease);
}
.action:hover::before, .action:focus-visible::before { inset: -7px; opacity: 1; }
.action:hover::after, .action:focus-visible::after { width: 100%; }
.action:focus-visible { outline-offset: 10px; }
.action__shadow, .action__face {
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.action__shadow { transform: translate(6px, 6px); background: rgba(43, 10, 120, .7); }
.action__face {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, transparent 50%, rgba(0, 229, 255, .1)),
    var(--violet);
  transition: background-color var(--t);
  overflow: hidden;
}
.action__face::after {
  /* Slanted light bars on the right (home.rs play button). */
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 24px;
  width: 150px;
  background: repeating-linear-gradient(-70deg, transparent 0 18px, rgba(255, 255, 255, .09) 18px 30px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
  transition: transform .25s var(--ease);
}
.action:hover .action__face { background-color: var(--violet-hi); }
.action:hover .action__face::after { transform: translateX(12px); }
.action__glyph { flex: none; width: 34px; height: 34px; }
.action__text { display: flex; flex-direction: column; min-width: 0; }
.action__label {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: .26em;
  line-height: 1.05;
  text-transform: uppercase;
}
.action__sub {
  margin-top: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.action--md { min-height: 72px; }
.action--md .action__label { font-size: clamp(17px, 1.7vw, 21px); letter-spacing: .16em; }
.action--md .action__glyph { width: 26px; height: 26px; }
.action[aria-disabled="true"] { pointer-events: none; }
.action[aria-disabled="true"] .action__face { background: var(--card-hi); }
.action[aria-disabled="true"] .action__shadow { background: rgba(29, 38, 54, .6); }
.action[aria-disabled="true"]::before { display: none; }
.action[aria-disabled="true"] .action__label, .action[aria-disabled="true"] .action__sub { color: var(--text-mute); }

/* ---------- Chips (widgets.rs chip) ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 7px;
  border-radius: 1px;
  background: rgba(46, 59, 84, .75);
  color: var(--text-dim);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.chip--cyan { background: var(--cyan); color: var(--bg-deep); }
.chip--violet { background: var(--violet); color: #fff; }
.chip--warn { background: var(--warn); color: var(--bg-deep); }
.chip--err { background: var(--err); color: var(--bg-deep); }
.chip--line { background: transparent; border: 1px solid var(--line-hi); }

/* ---------- Section title (widgets.rs section) ---------- */

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  min-height: 24px;
}
.section-title::before {
  content: "";
  width: 6px; height: 6px;
  flex: none;
  background: var(--cyan);
}
.section-title h2, .section-title h3, .section-title > span:first-of-type {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.section-title .rule { flex: 1; height: 1px; background: var(--line); min-width: 24px; }
.section-title .aside {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}
.section-title a.aside:hover { color: var(--cyan); text-decoration: none; }

/* ---------- Page header (widgets.rs page_header) ---------- */

.page-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 34px 0 30px;
  min-width: 0;
}
.slant-title {
  --skew: 14px;
  position: relative;
  display: inline-block;
  padding: 9px calc(var(--skew) + 22px) 6px 22px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.15;
  text-transform: uppercase;
  isolation: isolate;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.slant-title::before, .slant-title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(var(--skew) 0, 100% 0, calc(100% - var(--skew)) 100%, 0 100%);
}
.slant-title::before { transform: translate(5px, 4px); background: rgba(43, 10, 120, .85); }
.slant-title::after { background: var(--violet); }
.page-head .rule { flex: 1; height: 1px; background: var(--line-hi); min-width: 20px; }
.page-head .aside {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-align: right;
}
.crumb { padding-top: 26px; }
.crumb + .page-head { padding-top: 22px; }

/* ---------- Panels, cards ---------- */

.panel {
  background: rgba(13, 18, 26, .92);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(18px, 2vw, 26px);
}
.panel > .section-title { margin-bottom: 14px; }
.panel--accent { border-left: 3px solid var(--violet); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(17, 23, 34, .92);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: inherit;
  text-decoration: none !important;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
  min-width: 0;
}
.card::after {
  --bl: 9px; --bw: 1.3px;
  content: "";
  position: absolute;
  inset: -3px;
  pointer-events: none;
  color: rgba(255, 255, 255, .75);
  opacity: 0;
  background:
    linear-gradient(currentColor 0 0) top left / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) top left / var(--bw) var(--bl),
    linear-gradient(currentColor 0 0) top right / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) top right / var(--bw) var(--bl),
    linear-gradient(currentColor 0 0) bottom left / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) bottom left / var(--bw) var(--bl),
    linear-gradient(currentColor 0 0) bottom right / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) bottom right / var(--bw) var(--bl);
  background-repeat: no-repeat;
  transition: opacity var(--t) var(--ease), inset var(--t) var(--ease);
}
a.card:hover, a.card:focus-visible { background: rgba(23, 31, 46, .96); border-color: var(--line-hi); }
a.card:hover::after, a.card:focus-visible::after { opacity: 1; inset: -5px; }
a.card:focus-visible { outline: none; }
a.card:focus-visible::after { color: var(--cyan); }

.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-deep);
  margin: 1px 1px 0;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.9);
  transition: filter .2s var(--ease), transform .4s var(--ease);
}
a.card:hover .card__media img { filter: brightness(1); transform: scale(1.025); }
.card__media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(17, 23, 34, .9));
  pointer-events: none;
}
.card__badges {
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.card__read {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 1;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .45);
  transition: color var(--t);
}
a.card:hover .card__read { color: #fff; }
.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
  flex: 1;
}
.card__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.card__meta {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: -6px;
}
.card__summary {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__note {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  color: var(--cyan);
  margin: 0;
}
.card__note::before { content: ""; width: 6px; height: 6px; flex: none; background: currentColor; transform: translateY(-1px); }
.card__note--mute { color: var(--text-dim); }
.card__note--mute::before { background: var(--text-mute); }
.card__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(29, 38, 54, .8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.card__foot .go { color: var(--text-dim); transition: color var(--t); }
a.card:hover .card__foot .go { color: var(--cyan); }
.stat-inline { display: inline-flex; align-items: center; gap: 6px; }
.stat-inline svg { width: 13px; height: 13px; }

/* News card (home.rs news_card). */
.card--news .card__media { aspect-ratio: 960 / 400; }
.card--news .card__date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--cyan);
}
.card--news .card__title { font-size: 18px; letter-spacing: .02em; text-transform: none; }
.card--news .card__summary { -webkit-line-clamp: 3; }

/* Procedural stand-in art (widgets.rs placeholder_art). */
.art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 50% 50%, var(--art-glow, rgba(91, 0, 255, .14)), transparent 72%),
    repeating-linear-gradient(118deg, transparent 0 34px, var(--art-bar, rgba(91, 0, 255, .07)) 34px 44px, transparent 44px 66px),
    linear-gradient(135deg, var(--card-hi), var(--bg-deep) 55%, var(--card));
}
.art--cyan { --art-glow: rgba(0, 229, 255, .1); --art-bar: rgba(0, 229, 255, .06); }
.art__mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .16);
  font-weight: 700;
  font-size: clamp(16px, 2.2vw, 26px);
  letter-spacing: .3em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 12px;
}

/* ---------- Grids ---------- */

.grid { display: grid; gap: 22px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--news { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .grid--2 { grid-template-columns: minmax(0, 1fr); } }

.stack > * + * { margin-top: 28px; }
.stack-sm > * + * { margin-top: 14px; }
.section { margin-top: 56px; }

/* ---------- Status rows (widgets.rs status_row) ---------- */

.status { list-style: none; margin: 0; padding: 0; }
.status__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0 11px 20px;
  border-bottom: 1px solid rgba(29, 38, 54, .8);
  min-width: 0;
}
.status__row::before {
  content: "";
  position: absolute;
  left: 1px; top: 17px;
  width: 8px; height: 8px;
  background: var(--lvl, var(--cyan));
  box-shadow: 0 0 10px 1px color-mix(in srgb, var(--lvl, var(--cyan)) 40%, transparent);
}
.status__row--info { --lvl: var(--text-mute); }
.status__row--info::before { box-shadow: none; }
.status__row--warn { --lvl: var(--warn); }
.status__row--err { --lvl: var(--err); }
.status__text { min-width: 0; }
.status__label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1.6;
}
.status__value {
  display: block;
  font-size: 15px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.status__value a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-hi); text-underline-offset: 3px; }
.status__value a:hover { color: var(--cyan); text-decoration-color: var(--cyan); }

/* ---------- Forms ---------- */

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field > .label-text, fieldset > legend {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field .hint { font-size: 13px; color: var(--text-mute); }
.input, .select, .textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 1px;
  color: var(--text);
  font-size: 15px;
  caret-color: var(--cyan);
  transition: border-color var(--t), background-color var(--t);
}
.input::placeholder, .textarea::placeholder { color: var(--text-mute); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-hi); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--violet-hi); background: #080b11; box-shadow: 0 0 0 1px var(--violet-hi); }
.textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(-45deg, transparent 50%, var(--text-dim) 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.select option { background: var(--panel); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 680px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-dim); cursor: pointer; }
.check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--line-hi); background: var(--bg-deep); display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 8px; height: 8px; background: var(--cyan); transform: scale(0); transition: transform .1s; }
.check input:checked { border-color: var(--cyan); }
.check input:checked::after { transform: scale(1); }

/* Segmented filter buttons (catalog ALL / S&D). */
.seg { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px; }
.seg__btn {
  position: relative;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-hi);
  background: rgba(17, 23, 34, .7);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 1px;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.seg__btn:hover { border-color: var(--violet-hi); color: var(--text); background: rgba(91, 0, 255, .22); }
.seg__btn[aria-pressed="true"], .seg__btn[aria-selected="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.seg__btn[aria-pressed="true"]::before, .seg__btn[aria-selected="true"]::before {
  --bl: 6px; --bw: 1.3px;
  content: "";
  position: absolute;
  inset: -4px;
  pointer-events: none;
  color: rgba(255, 255, 255, .75);
  background:
    linear-gradient(currentColor 0 0) top left / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) top left / var(--bw) var(--bl),
    linear-gradient(currentColor 0 0) top right / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) top right / var(--bw) var(--bl),
    linear-gradient(currentColor 0 0) bottom left / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) bottom left / var(--bw) var(--bl),
    linear-gradient(currentColor 0 0) bottom right / var(--bl) var(--bw),
    linear-gradient(currentColor 0 0) bottom right / var(--bw) var(--bl);
  background-repeat: no-repeat;
}
.seg__btn .count { margin-left: 6px; opacity: .7; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-bottom: 26px;
}
.toolbar .search { flex: 1 1 260px; max-width: 360px; position: relative; }
.toolbar .search .input { padding-left: 36px; }
.toolbar .search svg { position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--text-mute); pointer-events: none; }
.toolbar .spacer { flex: 1; }
.toolbar .field--inline { flex-direction: row; align-items: center; gap: 10px; }
.toolbar .field--inline .select { width: auto; min-width: 120px; min-height: 34px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; }

/* ---------- States ---------- */

.state {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 34px 28px;
  border: 1px solid var(--line);
  background: rgba(13, 18, 26, .8);
  color: var(--text-dim);
  grid-column: 1 / -1;
}
.state > * { position: relative; }
.state .art { z-index: 0; opacity: .8; }
.state__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text);
}
.state p { margin: 0; max-width: 60ch; }
.state--err { border-left: 3px solid var(--err); }
.state--err .state__title { color: var(--err); }

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  min-height: 320px;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(91, 0, 255, .1) 45%, rgba(0, 229, 255, .06) 55%, transparent 70%);
  transform: translateX(-100%);
  animation: sweep 1.4s infinite var(--ease);
}
.skeleton--news { min-height: 300px; }
.skeleton--row { min-height: 64px; }
.skeleton--line { min-height: 18px; border: 0; margin: 10px 0; }
@keyframes sweep { to { transform: translateX(100%); } }

.loader {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.loader::before {
  content: "";
  width: 54px;
  height: 3px;
  background:
    linear-gradient(90deg, rgba(91, 0, 255, .2), var(--cyan), rgba(91, 0, 255, .2)) 0 0 / 40% 100% no-repeat,
    var(--line);
  animation: indet 1.2s infinite linear;
}
@keyframes indet { from { background-position: -40% 0, 0 0; } to { background-position: 160% 0, 0 0; } }

/* Progress bar (widgets.rs progress_bar). */
.progress { position: relative; height: 4px; background: rgba(29, 38, 54, .9); overflow: hidden; }
.progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width .2s linear;
}
.progress__fill::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: var(--cyan); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(6, 9, 14, .86);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  color: #fff;
  text-decoration: none !important;
  flex: none;
  line-height: 1;
}
.wordmark__name {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .19em;
  margin-right: -.19em;
}
.wordmark__bars { display: flex; gap: 4px; margin: 5px 0 6px; }
.wordmark__bars::before { content: ""; width: 16px; height: 2px; background: var(--violet); }
.wordmark__bars::after { content: ""; width: 5px; height: 2px; background: var(--cyan); }
.wordmark__sub {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .31em;
  color: var(--cyan);
  white-space: nowrap;
}

.nav { display: flex; align-items: stretch; height: 100%; margin-left: 8px; }
.nav ul { display: flex; list-style: none; align-items: stretch; gap: 2px; }
.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 100%;
  padding: 0 13px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none !important;
  transition: color var(--t), background-color var(--t);
}
.nav__link svg { width: 17px; height: 17px; flex: none; }
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .03); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--violet-hi);
  transform: scaleX(0);
  transition: transform .18s var(--ease);
}
.nav__link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(0deg, rgba(91, 0, 255, .38), transparent 85%);
}
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] svg { color: var(--cyan); }

.header-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.account { position: relative; }
.account__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  background: rgba(17, 23, 34, .7);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  max-width: 220px;
  border-radius: 1px;
  list-style: none;
}
.account__btn::-webkit-details-marker { display: none; }
.account__btn:hover { border-color: var(--line-hi); background: var(--card-hi); }
.account__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 32px; height: 32px;
  flex: none;
  object-fit: cover;
  background: var(--violet);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  border-radius: 1px;
}
.avatar--lg { width: 72px; height: 72px; font-size: 28px; }
.account__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: var(--panel);
  border: 1px solid var(--line-hi);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  padding: 6px;
  display: flex;
  flex-direction: column;
}
.account__menu a, .account__menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: left;
  background: none;
  border: 0;
  text-decoration: none !important;
}
.account__menu a:hover, .account__menu button:hover { background: rgba(91, 0, 255, .22); color: #fff; }
.account__meta { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 12px; color: var(--text-mute); }
.account__meta strong { display: block; color: var(--text); font-size: 14px; }

.steam-btn svg { width: 17px; height: 17px; }

.menu-btn { display: none; }

@media (max-width: 1560px) {
  .nav__link svg { display: none; }
  .nav__link { padding: 0 11px; letter-spacing: .14em; }
}
@media (max-width: 1280px) {
  :root { --header-h: 64px; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: auto;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    margin: 0;
    display: none;
    background: rgba(8, 11, 17, .98);
    border-bottom: 1px solid var(--line-hi);
    box-shadow: 0 30px 50px rgba(0, 0, 0, .6);
    padding: 10px 0 16px;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav__link { height: 50px; padding: 0 var(--gutter); gap: 16px; font-size: 14px; letter-spacing: .2em; }
  .nav__link svg { display: block; width: 18px; height: 18px; }
  .nav__link::after { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; transform: scaleY(0); }
  .nav__link[aria-current="page"] { background: linear-gradient(90deg, rgba(91, 0, 255, .42), transparent 70%); }
  .nav__link[aria-current="page"]::after { transform: scaleY(1); }
  .site-header .wrap { gap: 12px; }
  .wordmark__name { font-size: 21px; }
  .wordmark__sub { font-size: 7.5px; }
}
@media (max-width: 520px) {
  .account__name { display: none; }
  .account__btn { padding: 3px; }
  .steam-btn .long { display: none; }
  .header-end { gap: 10px; }
}

/* ---------- Footer ---------- */

.site-footer {
  flex: none;
  border-top: 1px solid var(--line);
  background: rgba(6, 9, 14, .92);
  padding: 44px 0 30px;
  color: var(--text-mute);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.footer-grid h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--text-mute); }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand p { margin: 16px 0 0; max-width: 34ch; }
.footer-note {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12.5px;
}
.footer-note .disclaimer { color: var(--text-dim); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Home ---------- */

.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(36px, 5vw, 64px);
  overflow: hidden;
}
.hero::before {
  /* Slanted violet bars (mode card art), right side. */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  right: -8%;
  width: 58%;
  background: repeating-linear-gradient(-66deg, transparent 0 42px, rgba(91, 0, 255, .1) 42px 58px, transparent 58px 80px, rgba(116, 43, 255, .06) 80px 92px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000 80%, transparent);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%; top: 40%;
  width: 900px; height: 560px;
  transform: translate(-10%, -50%);
  background: radial-gradient(closest-side, rgba(91, 0, 255, .16), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.kicker::before { content: ""; width: 6px; height: 6px; background: var(--cyan); }
.hero__mark { margin: 22px 0 0; }
.hero__name {
  display: block;
  font-size: clamp(54px, 8.6vw, 124px);
  font-weight: 700;
  letter-spacing: .17em;
  margin-right: -.17em;
  line-height: .95;
}
.hero__bars { display: flex; gap: 8px; margin: clamp(10px, 1.4vw, 18px) 0 clamp(10px, 1.2vw, 16px); }
.hero__bars::before { content: ""; width: clamp(54px, 7vw, 92px); height: clamp(4px, .5vw, 6px); background: var(--violet); }
.hero__bars::after { content: ""; width: clamp(14px, 1.8vw, 24px); height: clamp(4px, .5vw, 6px); background: var(--cyan); }
.hero__sub {
  display: block;
  font-size: clamp(14px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: .34em;
  color: var(--cyan);
}
.hero__tagline {
  margin: clamp(22px, 2.6vw, 34px) 0 0;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.45;
  color: var(--text);
  max-width: 34ch;
}
.hero__tagline span { color: var(--text-dim); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px 30px;
  margin-top: clamp(28px, 3vw, 40px);
}
.hero__actions .action { flex: 0 1 440px; }
.hero__meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  color: var(--text-mute);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; background: var(--text-mute); }

.spotlight { position: relative; }
.spotlight__frame { position: relative; display: block; color: inherit; text-decoration: none !important; }
.spotlight__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--line-hi);
}
.spotlight__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.spotlight__frame:hover .spotlight__img img { transform: scale(1.03); }
.spotlight__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .1) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, transparent 45%, rgba(6, 9, 14, .92));
}
.spotlight__info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 22px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.spotlight__title { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: .12em; text-transform: uppercase; }
.spotlight__meta { margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.spotlight__tag { position: absolute; top: 16px; left: 16px; z-index: 1; display: flex; gap: 6px; }
.spotlight__go { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); white-space: nowrap; }
.spotlight .brk::before { --bi: -8px; --bl: 18px; }

.statsbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(13, 18, 26, .88);
}
.statsbar__item {
  position: relative;
  padding: 22px 26px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.statsbar__item:first-child { border-left: 0; }
.statsbar__item::before { content: ""; position: absolute; left: -1px; top: 22px; width: 3px; height: 26px; background: var(--violet); }
.statsbar__value {
  display: block;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.statsbar__label { display: block; margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--text-mute); }
@media (max-width: 760px) {
  .statsbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statsbar__item:nth-child(3) { border-left: 0; }
  .statsbar__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .statsbar__item { padding: 18px 18px 18px 22px; }
}

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  padding: 26px 24px 24px;
  background: linear-gradient(160deg, rgba(23, 31, 46, .95), rgba(6, 9, 14, .95));
  border: 1px solid var(--line);
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: var(--violet);
}
.step__num { font-size: 11px; font-weight: 600; letter-spacing: .26em; color: var(--text-mute); }
.step__title { margin: 10px 0 10px; font-size: 21px; letter-spacing: .1em; text-transform: uppercase; }
.step__title em { font-style: normal; color: var(--cyan); }
.step p { color: var(--text-dim); font-size: 15px; margin: 0; }
.step__visual { margin-top: 22px; min-height: 104px; display: flex; align-items: flex-end; }
@media (max-width: 960px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Mini mode cards (home.rs mode_card) used in "How it works". */
.mini-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.mini-mode {
  position: relative;
  padding: 12px 12px 12px 15px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--card), var(--bg-deep));
  overflow: hidden;
}
.mini-mode::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: rgba(169, 179, 198, .4); }
.mini-mode__k { font-size: 9px; font-weight: 600; letter-spacing: .24em; color: var(--text-mute); }
.mini-mode__t { font-size: 15px; font-weight: 700; letter-spacing: .22em; margin-top: 4px; }
.mini-mode__s { font-size: 8.5px; font-weight: 600; letter-spacing: .2em; color: var(--text-dim); margin-top: 2px; }
.mini-mode--on {
  border-color: var(--violet-hi);
  background:
    repeating-linear-gradient(-62deg, transparent 0 16px, rgba(91, 0, 255, .14) 16px 24px),
    linear-gradient(135deg, #1a1440, var(--bg-deep));
  box-shadow: 0 0 0 4px rgba(116, 43, 255, .08), 0 0 24px rgba(91, 0, 255, .25);
}
.mini-mode--on::before { background: var(--violet); }
.mini-mode--on .mini-mode__s { color: var(--cyan); }
.mini-mode--on .chip { position: absolute; top: 8px; right: 8px; height: 16px; font-size: 8.5px; padding: 0 5px; }

.mini-dl { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.mini-dl__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(6, 9, 14, .7); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.mini-dl__row .progress { flex: 1; max-width: 120px; }

.teaser {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 90% at 100% 0%, rgba(0, 229, 255, .07), transparent 70%),
    linear-gradient(135deg, rgba(43, 10, 120, .5), rgba(6, 9, 14, .9) 60%);
  overflow: hidden;
}
.teaser h2 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: .12em; text-transform: uppercase; margin: 14px 0 14px; }
.teaser p { color: var(--text-dim); max-width: 52ch; }
.teaser__list { list-style: none; display: grid; gap: 10px; }
.teaser__list li { display: flex; gap: 12px; align-items: baseline; padding: 12px 14px; border: 1px solid var(--line); background: rgba(6, 9, 14, .6); color: var(--text-dim); font-size: 14.5px; }
.teaser__list li strong { color: var(--text); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; min-width: 88px; }
@media (max-width: 860px) {
  .hero__grid, .teaser { grid-template-columns: minmax(0, 1fr); }
  .hero::before { width: 100%; right: -30%; opacity: .6; }
}

/* ---------- Detail pages (map / pack / news) ---------- */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  grid-template-areas: "media aside" "body aside";
  grid-template-rows: auto 1fr;
  gap: 34px clamp(24px, 3vw, 44px);
  align-items: start;
}
.detail__media { grid-area: media; min-width: 0; }
.detail__body { grid-area: body; min-width: 0; }
.detail__aside { grid-area: aside; position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (max-width: 980px) {
  .detail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "aside" "body"; gap: 28px; }
  .detail__aside { position: static; }
}

.media-main {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-hi);
  background: var(--bg-deep);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: zoom-in;
}
.media-main img { width: 100%; height: 100%; object-fit: cover; }
.media-main .zoom {
  position: absolute;
  right: 14px; bottom: 12px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  background: rgba(6, 9, 14, .7);
  padding: 5px 8px;
}
.thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 4px 4px 6px; scrollbar-width: thin; }
.thumbs button {
  flex: 0 0 auto;
  width: 132px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  opacity: .65;
  transition: opacity var(--t), border-color var(--t);
  overflow: hidden;
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button:hover, .thumbs button[aria-current="true"] { opacity: 1; border-color: var(--violet-hi); }
.thumbs button[aria-current="true"] { box-shadow: 0 0 0 1px var(--violet-hi); }

.install-card { display: flex; flex-direction: column; gap: 18px; }
.install-card .summary { color: var(--text-dim); margin: 0; font-size: 15px; }
.install-hint { font-size: 13.5px; color: var(--text-mute); margin: 0; }
.install-hint a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.install-hint a:hover { color: var(--cyan); }
.fallback {
  border: 1px solid var(--line-hi);
  border-left: 3px solid var(--cyan);
  background: rgba(0, 229, 255, .04);
  padding: 16px 18px;
  animation: rise .25s var(--ease);
}
.fallback__title { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin: 0 0 6px; }
.fallback p { font-size: 14px; color: var(--text-dim); margin: 0 0 14px; }
.fallback .actions { display: flex; flex-wrap: wrap; gap: 14px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.req-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.req {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(17, 23, 34, .92);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none !important;
  transition: border-color var(--t), background-color var(--t);
}
a.req:hover { border-color: var(--line-hi); background: var(--card-hi); }
.req__icon { width: 46px; height: 46px; flex: none; position: relative; overflow: hidden; background: var(--bg-deep); border: 1px solid var(--line); }
.req__icon img { width: 100%; height: 100%; object-fit: cover; }
.req__text { flex: 1; min-width: 0; }
.req__title { display: block; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; }
.req__meta { display: block; font-size: 13px; color: var(--text-mute); overflow-wrap: anywhere; }
.req__size { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--text-dim); white-space: nowrap; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-mute); background: rgba(6, 9, 14, .6); white-space: nowrap; }
.table td { color: var(--text-dim); }
.table tr:last-child td { border-bottom: 0; }
.table td strong { color: var(--text); font-weight: 600; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.hash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 12px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  min-width: 0;
}
.hash code { flex: 1; min-width: 0; border: 0; background: none; padding: 0; font-size: 12px; color: var(--text-dim); word-break: break-all; }

/* Asset grid (pack page). */
.asset-groups { display: flex; flex-direction: column; gap: 34px; }
.asset-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 156px), 1fr)); list-style: none; }
.asset {
  display: flex;
  flex-direction: column;
  background: rgba(17, 23, 34, .92);
  border: 1px solid var(--line);
  transition: border-color var(--t), background-color var(--t);
  min-width: 0;
}
.asset:hover { border-color: var(--line-hi); background: var(--card-hi); }
.asset__img {
  position: relative;
  aspect-ratio: 1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(91, 0, 255, .14), transparent 70%),
    linear-gradient(160deg, var(--card-hi), var(--bg-deep));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.asset__img img { width: 100%; height: 100%; object-fit: contain; }
.asset__img .chip { position: absolute; top: 8px; left: 8px; height: 18px; font-size: 9.5px; padding: 0 5px; }
.asset__body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 4px; }
.asset__title { font-size: 13px; font-weight: 600; letter-spacing: .03em; line-height: 1.3; overflow-wrap: anywhere; }
.asset__meta { font-size: 11.5px; color: var(--text-mute); line-height: 1.35; font-variant-numeric: tabular-nums; }

/* News article (home.rs news_detail). */
.article { max-width: 980px; }
.article__img { position: relative; aspect-ratio: 960 / 400; overflow: hidden; background: var(--bg-deep); }
.article__img img { width: 100%; height: 100%; object-fit: cover; }
.article { margin-top: 34px; }
.article__date { display: block; margin-top: 30px; font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--cyan); }
.article__title { margin-top: 6px; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: .1em; text-transform: uppercase; line-height: 1.15; overflow-wrap: anywhere; }
.article__summary { margin: 14px 0 22px; font-size: clamp(17px, 1.6vw, 19px); font-weight: 600; color: var(--text); }
.article__body { color: var(--text-dim); font-size: 16.5px; max-width: 72ch; }
.article__body p { white-space: pre-line; }
.article__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 18px; }

/* Download page. */
.dl-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.dl-hero__main { display: flex; flex-direction: column; gap: 22px; }
.dl-hero__main .action { max-width: 560px; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.platform { display: flex; flex-direction: column; gap: 16px; }
.platform__head { display: flex; align-items: center; gap: 14px; }
.platform__head svg { width: 30px; height: 30px; color: var(--text-dim); flex: none; }
.platform__name { font-size: 20px; letter-spacing: .14em; text-transform: uppercase; }
.platform__meta { font-size: 13px; color: var(--text-mute); }
.platform .btn { align-self: flex-start; }
.platform--detected { border-color: var(--violet); }
.platform--soon { opacity: .9; }
.steps-list { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.steps-list > li {
  counter-increment: s;
  position: relative;
  padding: 2px 0 2px 46px;
  color: var(--text-dim);
  min-height: 30px;
}
.steps-list > li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 26px;
  display: grid;
  place-items: center;
  background: var(--violet-deep);
  border-left: 2px solid var(--violet-hi);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.steps-list strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) {
  .dl-hero, .platforms { grid-template-columns: minmax(0, 1fr); }
}

/* Creators. */
.toc { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.guide-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; counter-reset: g; }
.guide-step {
  counter-increment: g;
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  background: rgba(17, 23, 34, .92);
}
.guide-step::before {
  content: "STEP " counter(g, decimal-leading-zero);
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--cyan);
  margin-bottom: 8px;
}
.guide-step h3 { font-size: 17px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.guide-step p, .guide-step li { color: var(--text-dim); font-size: 14.5px; }
.guide-step p:last-child { margin-bottom: 0; }
.guide-step ul { padding-left: 1.1em; }
.guide-step li::marker { color: var(--cyan); }

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 150px;
  padding: 24px;
  border: 1px dashed var(--line-hi);
  background: rgba(6, 9, 14, .7);
  text-align: center;
  color: var(--text-dim);
  transition: border-color var(--t), background-color var(--t);
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--violet-hi); background: rgba(91, 0, 255, .1); }
.dropzone:focus-within { border-color: var(--cyan); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone svg { width: 28px; height: 28px; color: var(--cyan); }
.dropzone strong { color: var(--text); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.dropzone .file { color: var(--cyan); font-weight: 600; overflow-wrap: anywhere; }

.problems { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.problems li { position: relative; padding: 8px 12px 8px 26px; background: rgba(255, 77, 106, .06); border-left: 2px solid var(--err); font-size: 14px; color: var(--text-dim); overflow-wrap: anywhere; }
.problems li::before { content: ""; position: absolute; left: 10px; top: 15px; width: 6px; height: 6px; background: var(--err); }
.problems li.is-warn { background: rgba(255, 181, 71, .06); border-left-color: var(--warn); }
.problems li.is-warn::before { background: var(--warn); }
.problems .path { font-family: var(--mono); font-size: 12px; color: var(--text); margin-right: 6px; }

/* Rows (installed.rs). */
.rows { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(17, 23, 34, .92);
  border: 1px solid var(--line);
  min-width: 0;
}
.row__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--card-hi), var(--bg-deep)); border: 1px solid var(--line); color: var(--text-dim); }
.row__icon svg { width: 20px; height: 20px; }
.row__main { flex: 1; min-width: 0; }
.row__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 16px; font-weight: 700; letter-spacing: .08em; }
.row__title .t { overflow-wrap: anywhere; }
.row__meta { margin-top: 3px; font-size: 13.5px; color: var(--text-mute); overflow-wrap: anywhere; }
.row__extra { margin-top: 10px; }
.row__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; flex: none; }
@media (max-width: 640px) {
  .row { flex-wrap: wrap; }
  .row__actions { width: 100%; justify-content: flex-start; padding-left: 62px; }
}

.profile { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile__name { font-size: 24px; letter-spacing: .1em; }
.profile__meta { color: var(--text-mute); font-size: 14px; margin-top: 4px; overflow-wrap: anywhere; }
.profile .spacer { flex: 1; }

/* Tabs (admin). */
.tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; padding: 4px; }
.tabpanel[hidden] { display: none; }

/* Dialog / lightbox. */
dialog {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-hi);
  padding: 0;
  max-width: min(560px, calc(100vw - 32px));
  width: 100%;
}
dialog::backdrop { background: rgba(4, 6, 10, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog__body { padding: 24px 24px 20px; }
.dialog__title { font-size: 16px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.dialog__text { color: var(--text-dim); font-size: 15px; }
.dlg-field { margin-top: 16px; }
.dialog__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 14px; padding: 16px 24px 22px; }
dialog[open] { animation: rise .18s var(--ease); }

.lightbox {
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  border: 0;
  background: transparent;
  padding: clamp(12px, 3vw, 40px);
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(4, 6, 10, .94); }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: calc(100% - 60px); }
.lightbox__stage img { max-width: min(1600px, 100%); max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); object-fit: contain; border: 1px solid var(--line-hi); background: var(--bg-deep); }
.lightbox__bar { display: flex; align-items: center; gap: 18px; margin-top: 18px; color: var(--text-dim); font-size: 12px; font-weight: 600; letter-spacing: .2em; }
.lightbox__close { position: fixed; top: 16px; right: 16px; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.icon-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
.icon-btn svg { width: 18px; height: 18px; }

/* Toasts (launcher bottom-right notice). */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast {
  padding: 14px 18px;
  background: rgba(13, 18, 26, .97);
  border: 1px solid var(--line-hi);
  border-left: 3px solid var(--cyan);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  animation: rise .2s var(--ease);
}
.toast__title { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.toast__text { font-size: 14px; color: var(--text-dim); margin-top: 3px; }
.toast--err { border-left-color: var(--err); }
.toast--err .toast__title { color: var(--err); }
.toast--warn { border-left-color: var(--warn); }
.toast--warn .toast__title { color: var(--warn); }

/* 404. */
.lost { text-align: left; padding: clamp(48px, 10vw, 120px) 0 40px; }
.lost__code { font-size: clamp(90px, 18vw, 220px); font-weight: 700; letter-spacing: .14em; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--line-hi); }
.lost__title { margin-top: 18px; }
.lost p { color: var(--text-dim); margin: 20px 0 30px; max-width: 52ch; }
.lost .actions { display: flex; flex-wrap: wrap; gap: 22px; }

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  background: rgba(255, 181, 71, .05);
  color: var(--text-dim);
  font-size: 14.5px;
}
.notice strong { color: var(--text); }
.notice--info { border-left-color: var(--cyan); background: rgba(0, 229, 255, .04); }
/* Multi-paragraph notice (servers: Steam account; download: SmartScreen). */
.notice--block { display: block; padding: 20px 24px; font-size: 15px; }
.notice--block > * + * { margin-top: 10px; }
.notice--block h3 { color: var(--warn); }

.more { display: flex; justify-content: center; margin-top: 30px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 36px); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 640px) {
  .page-head { flex-wrap: wrap; padding: 26px 0 22px; gap: 12px 16px; }
  .page-head .rule { display: none; }
  .page-head .aside { text-align: left; width: 100%; }
  .section { margin-top: 44px; }
  .action { min-height: 72px; padding: 12px 18px; gap: 14px; }
  .action__glyph { width: 26px; height: 26px; }
  .card__body { padding: 14px 15px 16px; }
  .hero__actions { gap: 22px; }
  .hero__actions .action { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Home additions ---------- */

.statsbar dd, .statsbar dt { margin: 0; }
.action--hero .action__label { font-size: clamp(17px, 1.45vw, 21px); letter-spacing: .15em; }
.action--hero .action__sub { letter-spacing: .16em; }
.action--mini { min-height: 62px; width: 100%; max-width: 340px; padding: 10px 22px 10px 18px; pointer-events: none; }
.action--mini .action__label { font-size: 24px; letter-spacing: .3em; }
.action--mini .action__glyph { width: 24px; height: 24px; }
.action--mini .action__sub { font-size: 9.5px; margin-top: 4px; }
.progress__fill--demo { width: 64%; }
.spotlight__skeleton { aspect-ratio: 16 / 10; min-height: 0; }
.grid--home-maps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--home-maps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--home-maps { grid-template-columns: minmax(0, 1fr); } }

.section-title + .install-hint { margin: -6px 0 14px; }

/* ---------- Page additions ---------- */

.panel--err { border-left: 3px solid var(--err); }
.platform__head .rule { flex: 1; height: 1px; background: var(--line); min-width: 12px; }
.profile .label { margin-bottom: 2px; }
.profile strong { font-size: 17px; letter-spacing: .06em; }
.profile .chips { margin-top: 8px; }
.profile__chips { margin-top: 10px; }
.row__icon--img { position: relative; overflow: hidden; width: 74px; height: 46px; }
.row__icon--img img { width: 100%; height: 100%; object-fit: cover; }
.btn.icon-only { width: 30px; padding: 0; }
.tabpanel > * + * { margin-top: 18px; }
.tabpanel > .section { margin-top: 48px; }
.tabs .count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 8px; background: var(--cyan); color: var(--bg-deep); font-size: 10.5px; opacity: 1; }
.admin-news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 28px; align-items: start; }
.news-preview .card { pointer-events: none; }
@media (max-width: 960px) { .admin-news { grid-template-columns: minmax(0, 1fr); } }
.form-actions { justify-content: flex-start; }
.featured-list { counter-reset: none; }
.row__title a.t { color: var(--text); }
.row__title a.t:hover { color: var(--cyan); }
.state > .btn, .state > a.btn { position: relative; }
.toolbar .field--inline label { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-mute); white-space: nowrap; }
.install-block .action { width: 100%; }

.footer-brand .wordmark, .footer-brand .wordmark:hover { color: #fff; text-decoration: none; }
.toc { align-self: center; align-items: center; justify-content: flex-end; }
.section-title .aside-node { flex: none; }
.install-block:has(.fallback) .install-hint { display: none; }
input[type="file"].input { padding: 6px 8px; font-size: 14px; color: var(--text-dim); }
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line-hi);
  border-radius: 1px;
  background: var(--card-hi);
  color: var(--text);
  font: 600 11.5px/1.2 var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { border-color: var(--violet-hi); background: rgba(91, 0, 255, .22); }
@media (max-width: 640px) { .toc { justify-content: flex-start; } }

/* ---------- Small screens ---------- */

.split > *, .grid > *, .detail > * { min-width: 0; }
@media (max-width: 640px) {
  .section-title { flex-wrap: wrap; row-gap: 2px; }
  .section-title h2, .section-title h3 { white-space: normal; }
  .section-title .aside { white-space: normal; text-align: right; margin-left: auto; }
  .section-title .rule { min-width: 12px; }
}
@media (max-width: 420px) {
  .menu-btn .label-text { display: none; }
  .menu-btn { padding: 0 9px; }
  .steam-btn { padding: 0 10px; }
  .site-header .wrap { gap: 10px; }
}
@media (max-width: 640px) {
  .grid--home-maps > :nth-child(n + 4) { display: none; }
  .spotlight__info { padding: 16px; }
  .spotlight__title { font-size: 20px; }
  .spotlight__go { display: none; }
  .spotlight__tag { top: 12px; left: 12px; }
}
.noscript { margin-top: 24px; }
.profile__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.row { align-items: flex-start; }
.row__main { align-self: center; }
.row__actions { align-self: center; }
.row:has(.row__extra) .row__main { align-self: flex-start; }
@media (max-width: 640px) { .profile .spacer { display: none; } .profile__actions { width: 100%; } }

/* ---------------- Private playtest ---------------- */

/* The gate page: nothing to navigate to until access is approved. */
body[data-gate] #site-nav,
body[data-gate] .menu-btn,
body[data-gate] .footer-grid > nav:not([aria-label="About"]) { display: none; }
.playtest-form { width: 100%; max-width: 420px; }
.link-code { font-family: var(--mono); font-size: clamp(28px, 7vw, 44px); font-weight: 600; letter-spacing: .14em; color: var(--text); }
.link-code-input { font-family: var(--mono); font-size: 20px; letter-spacing: .12em; text-transform: uppercase; }
.row__note { margin: 6px 0 0; color: var(--text-dim); font-size: 14px; overflow-wrap: anywhere; }

/* ---------------- Buy KILLRUN on Steam ---------------- */

.btn--steam {
  background: linear-gradient(135deg, #1b2838, #2a475e);
  border: 1px solid rgba(102, 192, 244, .45);
  color: #fff;
}
.btn--steam::before { color: #66c0f4; opacity: .35; }
.btn--steam:hover { background: linear-gradient(135deg, #22344a, #31597a); border-color: #66c0f4; }
.btn--steam svg { width: 20px; height: 20px; }
.hero__require {
  margin: 22px 0 0;
  max-width: 62ch;
  padding: 12px 16px;
  border-left: 3px solid #66c0f4;
  background: rgba(27, 40, 56, .55);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dim);
}
.hero__require strong { color: var(--text); }
.hero__meta a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); }
.hero__meta a::before { content: ""; width: 5px; height: 5px; background: var(--text-mute); }
.hero__meta a:hover { color: var(--cyan); }
@media (max-width: 640px) { .hero__actions .btn--steam { width: 100%; } }

/* ---------------- Feedback ---------------- */

.chip--ok { background: #3ddc84; color: var(--bg-deep); }
.avatar--xs { width: 22px; height: 22px; font-size: 11px; }
.btn--xs { --h: 24px; padding: 0 9px; font-size: 10.5px; letter-spacing: .1em; }
.textarea--sm { min-height: 96px; }

.fb-compose { margin-bottom: 22px; }
.fb-compose > p { margin: 0; max-width: 72ch; color: var(--text-dim); line-height: 1.55; }
.fb-compose__actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }
.fb-form__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.fb-row:hover { border-color: var(--line-hi); background: var(--card-hi); }
.fb-row__main { min-width: 0; }
.fb-row__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fb-row__title { margin: 8px 0 0; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: .01em; overflow-wrap: anywhere; }
.fb-row__title a { color: var(--text); }
.fb-row__title a:hover { color: var(--cyan); }
.fb-row__excerpt { margin: 6px 0 0; color: var(--text-dim); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.fb-row__meta { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--text-mute); font-size: 13.5px; }
.fb-row__meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-mute); }
.fb-row__meta a:hover { color: var(--cyan); }
.fb-row__meta svg { width: 15px; height: 15px; }

.fb-cat { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text); border-left: 3px solid var(--line-hi); background: rgba(46, 59, 84, .45); }
.fb-cat--bug { border-left-color: var(--err); }
.fb-cat--idea { border-left-color: var(--cyan); }
.fb-cat--balance { border-left-color: var(--warn); }
.fb-cat--other { border-left-color: var(--text-mute); }

.fb-vote {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 54px; min-height: 58px; padding: 6px 0;
  background: var(--panel); color: var(--text-dim);
  border: 1px solid var(--line-hi); border-radius: 2px;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease), background var(--t) var(--ease);
}
.fb-vote svg { width: 18px; height: 18px; }
.fb-vote:hover { border-color: var(--cyan); color: var(--text); }
.fb-vote[aria-pressed="true"] { background: rgba(0, 229, 255, .12); border-color: var(--cyan); color: var(--cyan); }
.fb-vote--big { width: 64px; min-height: 70px; font-size: 19px; }
.fb-vote:disabled { opacity: .6; cursor: wait; }

.fb-author { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); }
.fb-author__name { color: var(--text); font-weight: 600; }
.fb-team { padding: 1px 6px; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: var(--violet); color: #fff; }

.fb-post { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 22px; }
.fb-post--admin { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 960px) { .fb-post--admin { grid-template-columns: minmax(0, 1fr); } }
.fb-post__main { min-width: 0; }
.fb-post__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.fb-post__title { margin: 10px 0 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; overflow-wrap: anywhere; }
.fb-post__body { margin-top: 22px; max-width: 78ch; font-size: 16.5px; line-height: 1.65; overflow-wrap: anywhere; }
.fb-post__body p { margin: 0 0 1em; }
.fb-note { margin-top: 18px; max-width: 78ch; padding: 14px 18px; border-left: 3px solid var(--violet); background: rgba(91, 0, 255, .12); }
.fb-note--done { border-left-color: #3ddc84; background: rgba(61, 220, 132, .08); }
.fb-note--denied { border-left-color: var(--err); background: rgba(255, 77, 106, .08); }
.fb-note--in_progress { border-left-color: var(--warn); background: rgba(255, 181, 71, .08); }
.fb-note__title { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.fb-note p:not(.fb-note__title) { margin: 0; line-height: 1.55; }

.fb-thread { margin-top: 36px; }
.fb-thread__title { margin: 0 0 14px; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.fb-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 82ch; }
.fb-event { padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 2px; }
.fb-event--hidden { opacity: .55; border-style: dashed; }
.fb-event--status { background: transparent; border-color: transparent; border-left: 2px solid var(--line-hi); }
.fb-event__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; color: var(--text-mute); }
.fb-event__head .spacer { flex: 1; }
.fb-event__what { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); }
.fb-event__body { margin-top: 8px; line-height: 1.6; overflow-wrap: anywhere; }
.fb-event__body p { margin: 0 0 .7em; }
.fb-event__body p:last-child { margin-bottom: 0; }
.fb-reply { margin-top: 18px; max-width: 82ch; }

.fb-admin { position: sticky; top: calc(var(--header-h) + 18px); }
.fb-admin__title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.fb-admin__title svg { width: 16px; height: 16px; }
.fb-admin__row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.fb-admin__sid { margin: 16px 0 0; font-size: 13px; color: var(--text-mute); line-height: 1.6; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .fb-row { gap: 12px; padding: 14px; }
  .fb-vote { width: 46px; min-height: 52px; }
  .fb-post__head { gap: 14px; }
}

/* ---------------- Patch notes ---------------- */

.patch-intro { margin: 0 0 26px; max-width: 72ch; color: var(--text-dim); line-height: 1.6; }
.patch-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.patch { margin-bottom: 44px; }
.patch__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line-hi); }
.patch__version { margin: 0; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: .04em; }
.patch__date { color: var(--text-mute); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.patch__lead { margin: 16px 0 0; max-width: 78ch; font-size: 17px; line-height: 1.6; color: var(--text); }
.patch h3 { margin: 28px 0 10px; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.patch ul { margin: 0; padding-left: 20px; max-width: 82ch; }
.patch li { margin: 0 0 9px; line-height: 1.6; color: var(--text-dim); }
.patch li strong { color: var(--text); }

/* Map Kit page: captioned screenshots (each opens full size), image and text
   rows, the FAQ. */
.shot { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.shot > a { position: relative; display: block; overflow: hidden; border: 1px solid var(--line-hi); background: var(--bg-deep); }
.shot > a::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  z-index: 1;
  width: 18px; height: 18px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}
.shot img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.shot > a:hover img { transform: scale(1.015); }
.shot figcaption { font-size: 13.5px; color: var(--text-mute); line-height: 1.5; }
.shot figcaption strong { color: var(--text-dim); font-weight: 600; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .shots { grid-template-columns: minmax(0, 1fr); } }
.guide-steps--flow { margin-top: 22px; }
.kit-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 36px); align-items: start; margin-top: 30px; }
.kit-row:first-child { margin-top: 0; }
.kit-row--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
@media (max-width: 900px) { .kit-row, .kit-row--flip { grid-template-columns: minmax(0, 1fr); } }
.kit-row .prose h3:first-child { margin-top: 0; }
.kit-notes { margin-top: 22px; }
.kit-notes .prose h3, .section .grid > .prose h3 { margin-top: 0; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); background: rgba(17, 23, 34, .92); }
.faq details[open] { border-color: var(--line-hi); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: .04em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--cyan); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { background: var(--card-hi); }
.faq details > .prose { padding: 0 20px 4px; max-width: none; }
