/* Respawn — CS-Games.net. Палитра HUD: графит + янтарь. */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/unbounded-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/unbounded-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0d121b;
  --bg-deep: #0a0e15;
  --panel: #141b28;
  --panel-2: #1a2333;
  --panel-3: #222d41;
  --line: #27324a;
  --line-2: #34415d;
  --ink: #edf1f8;
  --ink-2: #b4bdd0;
  --ink-3: #8d98b0;
  --amber: #ffb21a;
  --amber-2: #ffc54d;
  --amber-ink: #1d1400;
  --amber-text: #ffbf3f;
  --amber-soft: rgba(255, 178, 26, .13);
  --amber-line: rgba(255, 178, 26, .42);
  --dot: rgba(255, 255, 255, .05);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Unbounded", "Arial Black", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 14px;
  --r-sm: 10px;
  --lane: 1240px;
  --gut: 16px;
  --hud-h: 64px;
  color-scheme: dark;
}

:root[data-theme="day"] {
  --bg: #f5f2ea;
  --bg-deep: #ebe6da;
  --panel: #ffffff;
  --panel-2: #f7f4ee;
  --panel-3: #ece6d9;
  --line: #ddd5c4;
  --line-2: #c9bfaa;
  --ink: #121826;
  --ink-2: #3c4558;
  --ink-3: #5a6377;
  --amber-text: #8f5c00;
  --amber-soft: rgba(255, 178, 26, .2);
  --amber-line: rgba(186, 120, 0, .5);
  --dot: rgba(18, 24, 38, .06);
  --shadow: 0 18px 36px -20px rgba(60, 45, 10, .35);
  color-scheme: light;
}

@media (min-width: 720px) {
  :root { --gut: 24px; }
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (min-width: 720px) {
  body { font-size: 18px; }
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:where(h1, h2, h3, h4) { margin: 0; font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(27px, 3.6vw, 44px); font-weight: 700; }
h2 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

::selection { background: var(--amber); color: var(--amber-ink); }

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

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--amber); color: var(--amber-ink); font-weight: 700; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.lane {
  width: 100%;
  max-width: calc(var(--lane) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons, chips ---------- */

.btn-go, .btn-alt, .btn-ghost {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  border-radius: 12px; border: 2px solid transparent;
  font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.btn-go { background: var(--amber); color: var(--amber-ink); }
.btn-go::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn-go:hover { background: var(--amber-2); }
.btn-go:hover::after { transform: translateX(120%); transition: transform .6s ease; }
.btn-alt { border-color: var(--line-2); background: var(--panel-2); color: var(--ink); }
.btn-alt:hover { border-color: var(--amber-line); color: var(--amber-text); }
.btn-ghost { background: transparent; color: var(--ink-2); padding-inline: 14px; min-height: 44px; }
.btn-ghost:hover { color: var(--amber-text); }
.btn-go:active, .btn-alt:active { transform: translateY(1px) scale(.99); }
.btn-go .ico, .btn-alt .ico { width: 20px; height: 20px; }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: 16px; border-radius: 10px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 3px 12px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--ink-2);
  font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.chip b { color: var(--amber-text); font-family: var(--mono); font-weight: 700; }
.chip--hd { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.chip--author { border-color: var(--amber-line); color: var(--amber-text); background: var(--amber-soft); }
.chip--lite { border-style: dashed; }
.chip--css { background: transparent; }

/* ---------- HUD header ---------- */

.hud {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.hud__bar {
  display: flex; align-items: center; gap: 14px;
  min-height: var(--hud-h);
}

.radar-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: -.02em;
  flex: none;
}
.radar-logo span b { color: var(--amber-text); font-weight: 800; }
.radar {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  background: radial-gradient(circle, var(--panel-3) 0 60%, var(--panel) 61%);
  border: 2px solid var(--amber-line);
  position: relative; overflow: hidden;
}
.radar svg { width: 100%; height: 100%; }
.radar__ring { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.radar__beam { fill: url(#rs-beam); transform-origin: 20px 20px; animation: radar-spin 3.2s linear infinite; }
.radar__blip { fill: var(--amber); animation: radar-blip 3.2s linear infinite; }
.radar__blip--2 { animation-delay: -1.6s; }
.radar__me { fill: var(--ink); }
@keyframes radar-spin { to { transform: rotate(360deg); } }
@keyframes radar-blip { 0%, 8% { opacity: 1; } 40%, 100% { opacity: .15; } }

.hud-nav { display: none; }
.hud-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.hud-nav a {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 17px; white-space: nowrap;
}
.hud-nav a:hover { color: var(--ink); background: var(--panel-2); }
.hud-nav a[aria-current="page"] { color: var(--amber-text); background: var(--amber-soft); }

.hud-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hud-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; padding: 0;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
  color: var(--ink-2);
}
.hud-btn:hover { color: var(--amber-text); border-color: var(--amber-line); }
.hud-btn__badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 999px; background: var(--amber); color: var(--amber-ink);
  font-size: 13px; font-weight: 800; line-height: 1;
}
.theme-day, :root[data-theme="day"] .theme-night { display: none; }
:root[data-theme="day"] .theme-day { display: block; }

.hud-search { position: relative; display: none; }
.hud-search input {
  width: 230px; height: 46px; padding: 0 46px 0 16px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
  font-size: 17px;
}
.hud-search input::placeholder { color: var(--ink-3); }
.hud-search input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.hud-search button {
  position: absolute; right: 4px; top: 4px; width: 38px; height: 38px;
  display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2);
}

.hud-menu { display: inline-grid; }

.hud-drawer {
  display: none;
  border-top: 1px solid var(--line);
  padding-block: 12px 18px;
}
.hud.is-open .hud-drawer { display: block; }
.hud-drawer ul { list-style: none; display: grid; gap: 4px; }
.hud-drawer a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; border-radius: 12px; background: var(--panel);
  text-decoration: none; font-weight: 700; font-size: 18px;
}
.hud-drawer a span { color: var(--ink-3); font-weight: 500; font-size: 15px; }
.hud-drawer form { display: flex; gap: 8px; margin-bottom: 12px; }
.hud-drawer input {
  flex: 1; min-width: 0; height: 50px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 18px;
}

/* шапка: до 1200 — меню-гамбургер, 1200–1399 — меню в строку и поиск иконкой, от 1400 — всё в строку */
.hud-search-btn { display: none; }
@media (min-width: 1200px) {
  .hud-nav { display: block; }
  .hud-menu { display: none; }
  .hud-search-btn { display: inline-grid; }
  .hud-drawer__nav { display: none !important; }
  .hud-drawer form { margin-bottom: 0; max-width: 560px; margin-left: auto; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .hud-nav a { padding: 10px 9px; font-size: 16px; }
}
@media (min-width: 1400px) {
  .hud-search { display: block; }
  .hud-search-btn { display: none; }
  .hud.is-open .hud-drawer { display: none; }
}

/* HUD counters — как деньги и HP в игре */
.hud-stats {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
.hud-stats ul {
  display: flex; gap: 22px; list-style: none;
  overflow-x: auto; scrollbar-width: none;
  padding-block: 7px;
}
.hud-stats ul::-webkit-scrollbar { display: none; }
.hud-stats li { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; font-size: 15px; color: var(--ink-3); }
.hud-stats a { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.hud-stats a:hover span { color: var(--ink); }
.hud-stats b {
  font-family: var(--mono); font-size: 17px; font-weight: 800; color: var(--amber-text);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}

/* ---------- page shells ---------- */

.arena { padding-block: 26px 64px; }
.zone { margin-top: 56px; }
.zone:first-child { margin-top: 0; }
.zone-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.zone-head p { color: var(--ink-2); max-width: 64ch; }
.zone-head__text { display: grid; gap: 10px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-text);
}
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; }

.page-head { display: grid; gap: 12px; margin-bottom: 24px; }
.page-head p { color: var(--ink-2); max-width: 70ch; font-size: 18px; }

.crumbs { margin-bottom: 18px; font-size: 15px; color: var(--ink-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-inline: 10px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--amber-text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-3); }

/* ---------- hero (главная) ---------- */

.spawn {
  position: relative;
  padding-block: 34px 44px;
  background:
    radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.5px) 0 0 / 26px 26px,
    radial-gradient(ellipse 60% 70% at 85% 30%, var(--amber-soft), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.spawn__grid { display: grid; gap: 30px; align-items: center; }
.spawn__text { display: grid; gap: 18px; }
.spawn__text p { color: var(--ink-2); font-size: 18px; max-width: 58ch; }
.spawn__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.spawn__note { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-3); font-size: 15px; list-style: none; }
.spawn__note li { display: inline-flex; align-items: center; gap: 8px; }
.spawn__note li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); transform: rotate(45deg); }

.showcase { display: grid; gap: 10px; }
.showcase__stage {
  position: relative; aspect-ratio: 16 / 10.35; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line-2); background: var(--panel);
  box-shadow: var(--shadow);
}
.showcase__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.showcase__stage img.is-on { opacity: 1; }
.showcase__corner {
  position: absolute; z-index: 1; inset: 12px auto auto 12px;
  padding: 4px 10px; border-radius: 8px;
  background: rgba(10, 14, 21, .72); color: #ffc54d; font: 700 14px/1.4 var(--mono);
}
.showcase__dots { display: flex; gap: 8px; list-style: none; }
.showcase__dots button {
  width: 100%; height: 6px; padding: 0; border: 0; border-radius: 4px; background: var(--line-2);
}
.showcase__dots li { flex: 1; }
.showcase__dots button[aria-current="true"] { background: var(--amber); }
.showcase__dots button::before { content: ""; display: block; height: 28px; margin-top: -11px; }

@media (min-width: 900px) {
  .spawn { padding-block: 54px 64px; }
  .spawn__grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
}

/* ---------- типы сборок ---------- */

.shelf-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shelf-tile {
  position: relative; display: grid; gap: 6px; align-content: start;
  min-height: 132px; padding: 18px;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--panel);
  text-decoration: none; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.shelf-tile:hover { border-color: var(--amber-line); transform: translateY(-2px); }
.shelf-tile svg { width: 42px; height: 42px; color: var(--amber-text); margin-bottom: 6px; }
.shelf-tile b { font-family: var(--font-head); font-size: 18px; line-height: 1.2; }
.shelf-tile span { color: var(--ink-3); font-size: 15px; line-height: 1.45; }
.shelf-tile[aria-current="page"] { border-color: var(--amber); background: var(--amber-soft); }
.shelf-tile__count {
  position: absolute; top: 14px; right: 14px;
  font: 800 15px/1 var(--mono); color: var(--ink-3);
}
.shelf-tile--crate { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.shelf-tile--crate svg, .shelf-tile--crate span { color: var(--amber-ink); }
.shelf-tile--crate:hover { border-color: var(--amber-2); background: var(--amber-2); }

@media (min-width: 720px) { .shelf-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .shelf-bar { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.shelf-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 22px; scrollbar-width: thin; list-style: none; }
.shelf-strip a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  min-height: 46px; padding: 8px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); text-decoration: none; font-weight: 700; font-size: 16px;
}
.shelf-strip a:hover { border-color: var(--amber-line); }
.shelf-strip a[aria-current="page"] { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }

/* ---------- filters ---------- */

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.filter-bar__label { color: var(--ink-3); font-size: 15px; margin-right: 4px; }
.filter-btn {
  min-height: 42px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-weight: 600; font-size: 16px;
}
.filter-btn:hover { color: var(--ink); border-color: var(--amber-line); }
.filter-btn[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.filter-empty { grid-column: 1 / -1; padding: 30px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r); }

/* ---------- loot cards ---------- */

.stash {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
}
.stash--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.stash > .pager, .stash > nav { grid-column: 1 / -1; }

.loot {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--panel);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.loot:hover { border-color: var(--amber-line); transform: translateY(-3px); box-shadow: var(--shadow); }
.loot.is-hidden { display: none; }

.loot__pic {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--panel-3);
}
.loot__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s ease, transform .4s ease; }
.loot__pic img.is-on { opacity: 1; }
.loot:hover .loot__pic img.is-on { transform: scale(1.03); }
.loot__nopic { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, var(--panel-2) 0 10px, var(--panel-3) 10px 20px); }
.loot__ticks {
  position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 1;
  display: flex; gap: 4px; opacity: 0; transition: opacity .2s ease;
}
.loot__ticks i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.loot__ticks i.is-on { background: var(--amber); }
.loot__pic:hover .loot__ticks { opacity: 1; }

.loot__weight {
  position: absolute; left: 10px; top: 10px; z-index: 1;
  padding: 3px 9px; border-radius: 8px;
  background: rgba(10, 14, 21, .78); color: #ffc54d; font: 700 14px/1.4 var(--mono);
}

.loot__vs {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(10, 14, 21, .72); color: #fff;
  opacity: 0; transition: opacity .15s ease;
}
.loot__vs .ico { width: 20px; height: 20px; }
.loot:hover .loot__vs, .loot__vs:focus-visible, .loot__vs[aria-pressed="true"] { opacity: 1; }
.loot__vs[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
@media (hover: none) { .loot__vs { opacity: 1; } }

.loot__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px; }
.loot__name { font-family: var(--font); font-size: 19px; font-weight: 750; line-height: 1.3; letter-spacing: 0; }
.loot__name a { text-decoration: none; }
.loot__name a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.loot__name a:hover { color: var(--amber-text); }
.loot__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--ink-3); font-size: 15px; }
.loot__meta span { display: inline-flex; align-items: center; gap: 6px; }
.loot__meta .ico { width: 17px; height: 17px; }
.loot__text { color: var(--ink-2); font-size: 16px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.loot__acts { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.loot__acts > * { flex: 1; }
.loot .chip-row { position: relative; z-index: 1; gap: 6px; }
.loot .chip { min-height: 26px; padding: 2px 10px; font-size: 14px; }
.loot__pic, .loot__vs { z-index: 1; }

.loot--skin .loot__pic, .loot--map .loot__pic { aspect-ratio: 4 / 3; }
.loot--article .loot__pic { aspect-ratio: 16 / 9; }

/* ---------- aside lists ---------- */

.home-split { display: grid; gap: 24px; }
@media (min-width: 1100px) { .home-split { grid-template-columns: 260px minmax(0, 1fr); gap: 30px; align-items: start; } }

.side-box { border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); padding: 18px; }
.side-box + .side-box { margin-top: 14px; }
.side-box h2, .side-box h3 { font-size: 17px; margin-bottom: 12px; font-family: var(--font-head); }
.side-box ul { list-style: none; display: grid; gap: 2px; }
.side-box li a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin-inline: -10px; border-radius: 10px;
  text-decoration: none; font-size: 16px; color: var(--ink-2);
}
.side-box li a::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--amber); transform: rotate(45deg); flex: none; }
.side-box li a:hover { background: var(--panel-2); color: var(--ink); }
@media (min-width: 1100px) { .home-split > aside { position: sticky; top: calc(var(--hud-h) + 60px); } }

/* ---------- pager ---------- */

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; }
.pager a, .pager span {
  display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 14px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
  text-decoration: none; font-weight: 700; font-size: 17px;
}
.pager a:hover { border-color: var(--amber-line); color: var(--amber-text); }
.pager span { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.pager span.nav_ext { background: transparent; border-color: transparent; color: var(--ink-3); }
.pager__step { gap: 6px; }

/* ---------- lore (тексты) ---------- */

.lore { max-width: 78ch; color: var(--ink-2); font-size: 18px; line-height: 1.7; }
.lore > * + * { margin-top: 1em; }
.lore :where(h2, h3, h4) { color: var(--ink); margin-top: 1.6em; }
.lore :where(h2) { font-size: clamp(24px, 2.6vw, 30px); }
.lore :where(h3) { font-size: clamp(21px, 2.2vw, 25px); }
.lore :where(h4) { font-size: 19px; }
.lore a { color: var(--amber-text); text-underline-offset: 3px; }
.lore b, .lore strong { color: var(--ink); }
.lore ul, .lore ol { padding-left: 1.3em; }
.lore li + li { margin-top: .4em; }
.lore img { border-radius: 12px; margin-inline: auto; }
.lore figure { margin: 1.4em 0; }
.lore figcaption { margin-top: 8px; color: var(--ink-3); font-size: 15px; text-align: center; }
.lore blockquote { margin: 1.2em 0; padding: 14px 18px; border-left: 4px solid var(--amber); background: var(--panel); border-radius: 0 12px 12px 0; }
.lore table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.lore th, .lore td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.lore iframe { max-width: 100%; border-radius: 12px; }
.lore pre, .lore code { font-family: var(--mono); font-size: .9em; }
.lore code { padding: 2px 6px; border-radius: 6px; background: var(--panel-2); color: var(--ink); }
.lore--wide { max-width: none; }
.lore--cat { margin-top: 48px; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); max-width: none; }

.lore-cols { display: grid; gap: 30px; }
@media (min-width: 1100px) { .lore-cols { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; } }
.lore-toc { display: none; }
@media (min-width: 1100px) {
  .lore-toc { display: block; position: sticky; top: calc(var(--hud-h) + 60px); align-self: start; }
  .lore-toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
  .lore-toc a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--ink-3); text-decoration: none; font-size: 16px; border-left: 2px solid var(--line); border-radius: 0; }
  .lore-toc a:hover, .lore-toc a.is-on { color: var(--amber-text); border-left-color: var(--amber); }
}

.gear-grid { display: grid; gap: 12px; margin-top: 1.2em; }
@media (min-width: 720px) { .gear-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gear { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); margin: 0 !important; }
.gear img { width: 110px; height: auto; border-radius: 0; }
.gear p { font-size: 16px; line-height: 1.55; }

/* ---------- match (полная новость) ---------- */

.match__head { display: grid; gap: 14px; margin-bottom: 22px; }
.match__grid { display: grid; gap: 24px; }
.match__main { min-width: 0; display: grid; gap: 28px; align-content: start; }
.match__side { display: grid; gap: 14px; align-content: start; }
@media (min-width: 1000px) {
  .match__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .match__side { position: sticky; top: calc(var(--hud-h) + 52px); }
}

.viewer { margin: 0; display: grid; gap: 10px; }
.viewer__stage {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line); background: var(--bg-deep);
  isolation: isolate;
}
.viewer__stage::before {
  content: ""; position: absolute; inset: -30px; z-index: -1;
  background: var(--viewer-bg) center / cover no-repeat;
  filter: blur(24px) saturate(1.2); opacity: .65;
}
.viewer__img { width: 100%; height: 100%; object-fit: contain; }
.viewer__nav, .viewer__zoom {
  position: absolute; z-index: 1;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(10, 14, 21, .7); color: #fff;
}
.viewer__nav svg, .viewer__zoom svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.viewer__nav { top: 50%; margin-top: -24px; }
.viewer__nav--prev { left: 12px; }
.viewer__nav--next { right: 12px; }
.viewer__zoom { right: 12px; bottom: 12px; }
.viewer__nav:hover, .viewer__zoom:hover { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.viewer__strip { display: flex; gap: 8px; overflow-x: auto; list-style: none; padding-bottom: 4px; scrollbar-width: thin; }
.viewer__thumb {
  display: block; width: 132px; flex: none; padding: 0; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: 10px; border: 2px solid transparent; background: var(--panel-3); opacity: .7;
}
.viewer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.viewer__thumb:hover { opacity: 1; }
.viewer__thumb.is-on { border-color: var(--amber); opacity: 1; }
.viewer__cap { color: var(--ink-3); font-size: 15px; }

.loadout { border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); padding: 18px; display: grid; gap: 14px; }
.loadout--main { border-color: var(--amber-line); background: linear-gradient(180deg, var(--amber-soft), transparent 70%), var(--panel); }
.loadout__acts { display: grid; gap: 10px; }
.loadout__file { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-3); font-size: 15px; }
.loadout__file b { color: var(--ink); font-family: var(--mono); font-size: 15px; word-break: break-all; text-align: right; }
.loadout h2 { font-size: 17px; }

.specs { display: grid; gap: 0; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--ink-3); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }

.meter-list { list-style: none; display: grid; gap: 12px; }
.meter { display: grid; gap: 6px; }
.meter__name { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.meter__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.meter__bar i { height: 9px; border-radius: 3px; background: var(--panel-3); transform: skewX(-18deg); }
.meter__bar i:nth-child(-n + 1) { background: var(--amber); }
.meter__bar[style*="--fill:2"] i:nth-child(-n + 2),
.meter__bar[style*="--fill:3"] i:nth-child(-n + 3),
.meter__bar[style*="--fill:4"] i:nth-child(-n + 4),
.meter__bar[style*="--fill:5"] i { background: var(--amber); }

.match__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-3); font-size: 15px; }
.match__meta span { display: inline-flex; align-items: center; gap: 6px; }
.match__meta .ico { width: 18px; height: 18px; }

.panel { border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); padding: 22px; }
.panel > h2 { font-size: 22px; margin-bottom: 14px; }

.steps { list-style: none; counter-reset: step; display: grid; gap: 12px; margin-top: 14px; }
.steps li { position: relative; padding: 14px 16px 14px 62px; border-radius: 12px; background: var(--panel-2); counter-increment: step; color: var(--ink-2); font-size: 17px; }
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 12px;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--amber); color: var(--amber-ink); font: 800 16px/1 var(--mono);
}
.steps a { color: var(--amber-text); }
.steps code, .cmd code { font-family: var(--mono); color: var(--ink); background: var(--panel-3); padding: 2px 7px; border-radius: 6px; font-size: .92em; word-break: break-all; }

.cmd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 4px 12px; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); font-size: 15px; font-weight: 600;
}
.copy-btn:hover { color: var(--amber-text); border-color: var(--amber-line); }
.copy-btn.is-done { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.copy-btn .ico { width: 16px; height: 16px; }


.related { margin-top: 56px; }
.related > h2 { margin-bottom: 20px; }

/* ---------- avatars ---------- */

.ava-wall { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(30%, 132px), 1fr)); list-style: none; }
.ava {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel-3);
}
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava::after {
  content: "Скачать"; position: absolute; inset: auto 6px 6px 6px;
  padding: 4px 6px; border-radius: 8px; text-align: center;
  background: var(--amber); color: var(--amber-ink); font-size: 14px; font-weight: 800;
  opacity: 0; transform: translateY(6px); transition: .15s ease;
}
.ava:hover { border-color: var(--amber); }
.ava:hover::after, .ava:focus-visible::after { opacity: 1; transform: none; }
.ava-more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: center; margin-top: 24px; color: var(--ink-3); font-size: 15px; }

/* ---------- static, info, search ---------- */

.notice { display: grid; gap: 10px; padding: 22px; border-radius: var(--r); border: 1px solid var(--amber-line); background: var(--amber-soft); margin-bottom: 24px; }
.notice h1, .notice h2 { font-size: 24px; }
.respawn-page { display: grid; justify-items: center; gap: 18px; text-align: center; padding-block: 40px; }
.respawn-page .radar { width: 96px; height: 96px; }
.respawn-page p { color: var(--ink-2); max-width: 52ch; }

.search-box { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.search-box input[type="search"], .search-box input[type="text"] {
  flex: 1 1 260px; min-height: 54px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); font-size: 18px;
}
.search-box input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.search-note { color: var(--ink-3); margin-bottom: 18px; }
.hit { padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); display: grid; gap: 8px; }
.hit h2 { font-size: 20px; font-family: var(--font); font-weight: 750; }
.hit h2 a { text-decoration: none; }
.hit h2 a:hover { color: var(--amber-text); }
.hit p { color: var(--ink-2); font-size: 16px; }

/* ---------- crate (открыть кейс) ---------- */

.crate {
  position: relative; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--amber-line);
  background:
    radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--amber-soft), transparent 60%),
    var(--panel);
  padding: 22px;
}
.crate__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.crate__head p { color: var(--ink-2); max-width: 56ch; margin-top: 6px; }
.crate__window { position: relative; overflow: hidden; border-radius: 14px; background: var(--bg-deep); border: 1px solid var(--line); padding-block: 14px; }
.crate__window::before, .crate__window::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: 12%; pointer-events: none;
}
.crate__window::before { left: 0; background: linear-gradient(90deg, var(--bg-deep), transparent); }
.crate__window::after { right: 0; background: linear-gradient(-90deg, var(--bg-deep), transparent); }
.crate__marker {
  position: absolute; left: 50%; top: 4px; bottom: 4px; z-index: 3; width: 3px; margin-left: -1.5px;
  background: var(--amber); border-radius: 2px; box-shadow: 0 0 12px var(--amber);
}
.crate__marker::before, .crate__marker::after {
  content: ""; position: absolute; left: 50%; margin-left: -8px;
  border: 8px solid transparent;
}
.crate__marker::before { top: -4px; border-top-color: var(--amber); }
.crate__marker::after { bottom: -4px; border-bottom-color: var(--amber); }
.crate__track { display: flex; gap: 10px; list-style: none; will-change: transform; padding-inline: 10px; }
.crate__item {
  flex: none; width: 168px; display: grid; gap: 6px;
  padding: 8px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
  border-bottom: 3px solid var(--line-2);
}
.crate__item[data-rs-shelves~="hd"] { border-bottom-color: var(--amber); }
.crate__item[data-rs-shelves~="author"] { border-bottom-color: var(--amber-2); }
.crate__item .loot__pic { border-radius: 8px; }
.crate__item b { font-size: 14px; line-height: 1.3; height: 2.6em; overflow: hidden; }
.crate__result { display: grid; gap: 16px; margin-top: 18px; align-items: center; }
.crate__result .loot { max-width: 420px; }
.crate__win { display: grid; gap: 8px; }
.crate__win h3 { font-size: 24px; }
.crate__win p { color: var(--ink-2); }
@media (min-width: 720px) { .crate__result { grid-template-columns: 360px 1fr; gap: 24px; } }
.crate.is-spinning .crate__go { pointer-events: none; opacity: .7; }

/* ---------- versus (сравнение) ---------- */

.versus-tray {
  position: fixed; left: 50%; bottom: 16px; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  width: min(640px, calc(100% - 24px)); padding: 10px 10px 10px 16px;
  border-radius: 16px; border: 1px solid var(--amber-line); background: var(--panel);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6);
  transform: translateX(-50%);
  animation: tray-in .25s ease;
}
@keyframes tray-in { from { transform: translate(-50%, 30px); opacity: 0; } }
.versus-tray__slots { display: flex; gap: 6px; flex: 1; min-width: 0; }
.versus-tray__slots img, .versus-tray__slots span {
  width: 56px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--panel-3); border: 1px dashed var(--line-2);
}
.versus-tray__label { font-size: 15px; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 520px) { .versus-tray__label { display: none; } }

.versus-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.versus-table th, .versus-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.versus-table thead th { vertical-align: bottom; }
.versus-table tbody th { color: var(--ink-3); font-weight: 600; white-space: nowrap; width: 1%; }
.versus-table img { width: 100%; max-width: 220px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.versus-table a { text-decoration: none; font-weight: 750; }
.versus-table .is-best { color: var(--amber-text); font-weight: 800; }
.versus-scroll { overflow-x: auto; }
.versus-table .meter__bar { min-width: 110px; }

/* ---------- dialogs, toast ---------- */

.modal {
  width: min(960px, calc(100% - 24px)); max-height: calc(100% - 32px);
  padding: 0; border-radius: 18px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--ink);
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, .7);
}
.modal::backdrop { background: rgba(6, 9, 14, .72); }
.modal__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--panel); border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 22px; }
.modal__body { padding: 18px; }
.modal--photo { width: min(1400px, calc(100% - 16px)); background: #05070b; border-color: #222; }
.modal--photo .modal__body { padding: 0; display: grid; place-items: center; min-height: 40vh; }
.modal--photo img { max-height: calc(100vh - 140px); width: auto; margin: auto; }
.modal--photo .modal__head { background: #05070b; border-color: #222; color: #fff; }
.modal--sm { width: min(560px, calc(100% - 24px)); }

.toast-zone { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: grid; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px;
  min-width: 260px; max-width: min(380px, calc(100vw - 32px)); padding: 12px 16px 12px 12px;
  border-radius: 14px; border: 1px solid var(--amber-line); background: var(--panel);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .6);
  animation: toast-in .35s cubic-bezier(.2, 1.4, .4, 1);
  pointer-events: auto;
}
.toast.is-out { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { transform: translateX(-30px) scale(.95); opacity: 0; } }
@keyframes toast-out { to { transform: translateX(-30px); opacity: 0; } }
.toast__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--amber); color: var(--amber-ink); }
.toast__icon .ico { width: 24px; height: 24px; }
.toast small { display: block; color: var(--amber-text); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.toast b { display: block; font-size: 16px; line-height: 1.3; }
.toast span { display: block; color: var(--ink-3); font-size: 14px; line-height: 1.35; }

.trophy-list { list-style: none; display: grid; gap: 10px; }
.trophy { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); }
.trophy__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--panel-3); color: var(--ink-3); }
.trophy b { display: block; font-size: 17px; }
.trophy span { display: block; color: var(--ink-3); font-size: 15px; }
.trophy.is-open { border-color: var(--amber-line); }
.trophy.is-open .trophy__icon { background: var(--amber); color: var(--amber-ink); }
.trophy:not(.is-open) b { color: var(--ink-2); }
.trophy-sum { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.trophy-sum__bar { flex: 1; height: 10px; border-radius: 6px; background: var(--panel-3); overflow: hidden; }
.trophy-sum__bar i { display: block; height: 100%; background: var(--amber); border-radius: inherit; }

.up-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 45;
  display: grid; place-items: center; width: 50px; height: 50px; padding: 0;
  border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease;
}
.up-btn.is-on { opacity: 1; transform: none; pointer-events: auto; }
.up-btn:hover { color: var(--amber-text); border-color: var(--amber-line); }
body.has-tray .up-btn { bottom: 92px; }

/* ---------- footer ---------- */

.endzone { border-top: 1px solid var(--line); background: var(--bg-deep); padding-block: 36px 24px; color: var(--ink-2); }
.endzone__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.endzone__brand { display: grid; gap: 10px; max-width: 60ch; }
.endzone__brand p { font-size: 16px; }
.endzone__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.endzone__grid { display: grid; gap: 4px; padding-block: 18px; }
@media (min-width: 720px) {
  .endzone__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-block: 28px; }
}
.endzone__group summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 0; cursor: pointer; }
.endzone__group summary::-webkit-details-marker { display: none; }
.endzone__group summary::after {
  content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .2s ease; margin-right: 4px;
}
.endzone__group[open] summary::after { transform: rotate(-135deg); }
.endzone__group + .endzone__group { border-top: 1px solid var(--line); }
@media (min-width: 720px) {
  .endzone__group summary { pointer-events: none; padding: 0 0 12px; }
  .endzone__group summary::after { display: none; }
  .endzone__group + .endzone__group { border-top: 0; }
}
.endzone h2 { font-size: 16px; color: var(--ink); font-family: var(--font-head); }
.endzone ul { list-style: none; display: grid; gap: 2px; padding-bottom: 10px; }
.endzone li a { display: inline-block; padding: 5px 0; text-decoration: none; font-size: 16px; }
.endzone li a:hover { color: var(--amber-text); }
.endzone .endzone__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.endzone__chips a {
  display: inline-flex !important; align-items: center; min-height: 38px; padding: 6px 14px !important;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-size: 15px !important; font-weight: 600;
}
.endzone__chips a:hover { border-color: var(--amber-line); }
.endzone__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-3); }
.endzone__trophies {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); font-size: 15px;
}
.endzone__trophies:hover { border-color: var(--amber-line); color: var(--ink); }
.endzone__trophies .ico { width: 18px; height: 18px; color: var(--amber-text); }
.endzone__trophies b { color: var(--amber-text); font-family: var(--mono); }
.endzone__bar { width: 64px; height: 6px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.endzone__bar i { display: block; width: 0; height: 100%; background: var(--amber); border-radius: inherit; transition: width .4s ease; }
.endzone__bottom > p { flex: 1 1 420px; }
.endzone__side { display: flex; align-items: center; gap: 12px; }
.endzone__metrika { display: flex; align-items: center; line-height: 0; }
.endzone__metrika img { border-radius: 4px; }

/* ---------- crosshair lab ---------- */

.xhair { display: grid; gap: 24px; }
@media (min-width: 1000px) {
  .xhair { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "view panel" "out panel"; align-items: start; }
  .xhair__view { grid-area: view; }
  .xhair__panel { grid-area: panel; }
  .xhair-out { grid-area: out; }
}
.xhair-out { display: grid; gap: 14px; }
.xhair-out > h2 { margin-bottom: 0; }
.xhair__screen {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line-2); background: #111 center / cover no-repeat;
}
.xhair__screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.xhair__hud { position: absolute; left: 12px; bottom: 10px; display: flex; gap: 16px; font: 800 20px/1 var(--mono); color: #ffb21a; text-shadow: 0 1px 2px #000; opacity: .9; pointer-events: none; }
.xhair__scenes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.xhair__panel { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span, .field legend { font-weight: 700; font-size: 16px; }
.field small { color: var(--ink-3); font-size: 15px; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 14px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 16px; font-weight: 600;
}
.seg input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.swatch { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .3); }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--amber); height: 30px; }
.range-row output { min-width: 56px; text-align: right; font: 700 16px/1 var(--mono); color: var(--amber-text); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.switch input { width: 22px; height: 22px; accent-color: var(--amber); }
.cfg-out {
  width: 100%; min-height: 260px; padding: 14px 16px; resize: vertical;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-deep); color: var(--ink);
  font: 15px/1.6 var(--mono);
}
.cfg-acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- motion / bhop easter egg ---------- */

.is-bhop .radar-logo, .is-bhop .loot, .is-bhop .shelf-tile { animation: bhop .5s cubic-bezier(.3, 0, .3, 1) infinite alternate; }
.is-bhop .loot:nth-child(2n) { animation-delay: .12s; }
.is-bhop .loot:nth-child(3n) { animation-delay: .24s; }
@keyframes bhop { from { transform: translateY(0); } to { transform: translateY(-14px); } }

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

@media print {
  .hud, .endzone, .up-btn, .versus-tray, .toast-zone, .match__side .loadout__acts { display: none !important; }
  body { background: #fff; color: #000; }
}

.shelf-tile__count { font-style: normal; }

.lane:has(> #fullsearch) { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); }
.lane:has(> #fullsearch) > :not(.loot):not(.hit) { grid-column: 1 / -1; }
.search-ext { display: grid; gap: 12px; margin-bottom: 18px; }
.search-ext select { max-width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); padding: 6px 10px; }
.crumbs--bar a::after { content: "/"; margin-inline: 10px; color: var(--line-2); }
.tag-cloud a { display: inline-flex; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; }

.respawn-page { padding: 48px 20px; border-radius: 20px; border: 1px solid var(--line); background:
  radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.5px) 0 0 / 22px 22px, var(--panel); margin-bottom: 24px; }
.respawn-page h1, .respawn-page h2 { font-size: clamp(24px, 3vw, 34px); }
.respawn-page .radar { border-width: 3px; }
.respawn-page__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.respawn-page form { display: flex; gap: 8px; width: min(480px, 100%); }
.respawn-page input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 17px; }

/* мобильный порядок на странице материала: галерея → кнопка «Скачать» → описание */
@media (max-width: 999px) {
  .match__grid { display: flex; flex-direction: column; gap: 24px; }
  .match__main, .match__side { display: contents; }
  .match__main > * { order: 3; }
  .match__main > .viewer { order: 1; }
  .match__side > .loadout--main { order: 2; }
  .match__side > :not(.loadout--main) { order: 4; }
}
@media (max-width: 520px) {
  .shelf-tile { padding: 14px; min-height: 0; }
  .shelf-tile b { font-size: 16px; }
  .shelf-tile svg { width: 34px; height: 34px; }
  .spawn__acts > a { flex: 1 1 100%; }
}

/* особенности сборки: плитки с галочкой */
.perk-list { list-style: none; display: grid; gap: 10px; }
@media (min-width: 720px) { .perk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.perk-list li {
  position: relative; display: flex; align-items: center;
  min-height: 56px; padding: 12px 16px 12px 58px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--ink-2); font-size: 17px; line-height: 1.45;
}
.perk-list li::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  border-radius: 9px; background: var(--amber-soft); border: 1px solid var(--amber-line);
}
.perk-list li::after {
  content: ""; position: absolute; left: 21px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: var(--amber-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.perk-list li:hover { border-color: var(--amber-line); color: var(--ink); }

/* ---------- навигация: типы карт ---------- */

.type-nav { margin-bottom: 24px; }
.type-grid { list-style: none; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 719px) {
  .type-grid { display: flex; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .type-grid::-webkit-scrollbar { display: none; }
  .type-grid li { flex: 0 0 148px; }
}
.type-tile {
  position: relative; display: grid; gap: 2px; height: 100%;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
  text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.type-tile b { font: 800 19px/1.2 var(--mono); color: var(--amber-text); }
.type-tile span { color: var(--ink-3); font-size: 14px; line-height: 1.3; padding-right: 26px; }
.type-tile em { position: absolute; top: 12px; right: 12px; font: 700 13px/1.4 var(--mono); font-style: normal; color: var(--ink-3); }
.type-tile:hover { border-color: var(--amber-line); transform: translateY(-2px); }
.type-tile[aria-current="page"] { background: var(--amber); border-color: var(--amber); }
.type-tile[aria-current="page"] b, .type-tile[aria-current="page"] span, .type-tile[aria-current="page"] em { color: var(--amber-ink); }
.type-tile--all b { font-family: var(--font-head); font-size: 17px; }

/* ---------- навигация: модели как меню закупки ---------- */

.buy-menu { margin-bottom: 24px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.buy-menu__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.game-switch { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-deep); border: 1px solid var(--line); }
.game-switch a { padding: 8px 16px; border-radius: 9px; text-decoration: none; font-weight: 700; font-size: 16px; color: var(--ink-2); }
.game-switch a[aria-current="page"] { background: var(--amber); color: var(--amber-ink); }
.buy-menu__all { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-2); text-decoration: none; font-weight: 600; font-size: 16px; }
.buy-menu__all em, .buy-slot__list em { font: 700 13px/1 var(--mono); font-style: normal; color: var(--ink-3); }
.buy-menu__all[aria-current="page"] { border-color: var(--amber); color: var(--amber-text); }
.buy-menu__grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .buy-menu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .buy-menu__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.buy-slot { display: grid; gap: 8px; align-content: start; }
.buy-slot__name { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--ink); }
.buy-slot__name kbd {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  background: var(--panel-3); border: 1px solid var(--line-2); border-bottom-width: 3px;
  font: 800 14px/1 var(--mono); color: var(--amber-text);
}
.buy-slot__list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.buy-slot__list a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 5px 12px;
  border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2);
  text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.buy-slot__list a:hover { border-color: var(--amber-line); color: var(--ink); }
.buy-slot__list a[aria-current="page"] { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.buy-slot__list a[aria-current="page"] em { color: var(--amber-ink); }

.buy-menu__fold summary { display: none; }
@media (max-width: 719px) {
  .buy-menu__fold summary {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none;
    min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2);
    font-weight: 700; cursor: pointer;
  }
  .buy-menu__fold summary::-webkit-details-marker { display: none; }
  .buy-menu__fold summary span { color: var(--amber-text); font-weight: 600; font-size: 15px; }
  .buy-menu__fold[open] summary { margin-bottom: 14px; }
}
@media (min-width: 720px) { .buy-menu__fold:not([open]) > .buy-menu__grid { display: grid; } }

.endzone__admin { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 10px; border: 1px dashed var(--amber-line); color: var(--amber-text); font-size: 15px; font-weight: 600; text-decoration: none; }
.endzone__admin:hover { background: var(--amber-soft); }
