/* DropLab v2 — дизайн-система в стиле крупных сайтов кейсов CS2 (яркие кейсы, живая лента, цветные плитки).
   Токены в :root, общие компоненты ниже. Стили отдельных страниц — в <style> страницы на этих токенах. */

:root {
  --bg: #080c12;
  --bg-2: #0b1119;
  --panel: #0f1620;
  --panel-2: #141d29;
  --panel-3: #1b2533;
  --line: #1c2633;
  --line-2: #273345;

  --text: #eef1f6;
  --muted: #8f9bad;
  --dim: #5f6b7d;

  --yellow: #ffc700;
  --yellow-2: #ffd84d;
  --yellow-ink: #1a1400;
  --green: #5fb31a;
  --green-2: #74cc29;
  --red: #ff4141;
  --cyan: #2fd2ff;

  /* редкости CS2 */
  --r-consumer: #b0c3d9;
  --r-industrial: #5e98d9;
  --r-milspec: #4b69ff;
  --r-restricted: #8847ff;
  --r-classified: #d32ce6;
  --r-covert: #eb4b4b;
  --r-gold: #e4ae39;

  /* заливки плиток по редкости: светлый верх → насыщенный низ */
  --g-consumer: linear-gradient(180deg, #7d8899 0%, #3a414c 100%);
  --g-industrial: linear-gradient(180deg, #23a7d6 0%, #0b415c 100%);
  --g-milspec: linear-gradient(180deg, #2f64ff 0%, #0f2069 100%);
  --g-restricted: linear-gradient(180deg, #8740ff 0%, #2c1068 100%);
  --g-classified: linear-gradient(180deg, #d832ea 0%, #560c66 100%);
  --g-covert: linear-gradient(180deg, #ff4a3d 0%, #680f0b 100%);
  --g-gold: linear-gradient(180deg, #e0bb00 0%, #5a4900 100%);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --wrap: 1680px;   /* как у крупных кейс-сайтов: контент почти на всю ширину экрана (≈86% от 1920), а не узкая колонка */
  --feed-h: 92px;
  --header-h: 72px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font: 500 14px/1.5 var(--font); -webkit-font-smoothing: antialiased;
}
/* фон: тёмная «комната» с цветными подсветками по краям */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 0% 30%, rgba(47, 100, 255, 0.10), transparent 70%),
    radial-gradient(900px 600px at 100% 40%, rgba(255, 106, 26, 0.08), transparent 70%),
    radial-gradient(1200px 500px at 50% 0%, rgba(255, 199, 0, 0.04), transparent 70%),
    var(--bg);
}
.bg-art { position: fixed; z-index: -1; pointer-events: none; opacity: 0.16; filter: blur(1px) saturate(0.7); }
.bg-art.left { left: -120px; top: 140px; width: 520px; transform: rotate(-58deg); }
.bg-art.right { right: -140px; top: 260px; width: 560px; transform: rotate(52deg) scaleX(-1); }
@media (max-width: 1100px) { .bg-art { display: none; } }
/* clip, а не hidden: обрезает вылетающие повёрнутые скины, но не ломает липкие панели */
main { flex: 1 0 auto; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
::selection { background: var(--yellow); color: var(--yellow-ink); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* крупные заголовки разделов, как на витринах кейсов */
.sec-title { text-align: center; font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; color: #c9ced8; text-shadow: 0 2px 0 rgba(0,0,0,0.6), 0 0 24px rgba(255,255,255,0.06); margin: 56px 0 28px; scroll-margin-top: 140px; }
.sec-sub { text-align: center; color: var(--muted); margin: -18px 0 26px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--panel-3); color: var(--text);
  font: 700 13px/1 var(--font); text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap;
  transition: transform 120ms var(--ease), filter 120ms, background 160ms;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; }
.btn-yellow { background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 6px 20px -8px rgba(255, 199, 0, 0.7); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 6px 20px -8px rgba(95, 179, 26, 0.8); }
.btn-red { background: #4a1416; color: #ff9a9a; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 15px; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 11px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- монеты ---------- */
.coins { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--yellow); white-space: nowrap; font-variant-numeric: tabular-nums; }
.coins svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-yellow .coins { color: var(--yellow-ink); }
.price-pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; background: #161f2c; box-shadow: inset 0 0 0 2px #0a0f16, 0 4px 0 #05080c; font-weight: 800; font-size: 16px; }
.price-pill s { color: var(--dim); font-weight: 600; font-size: 13px; text-decoration-thickness: 2px; }
.price-pill .coins { font-size: 16px; }
.price-pill.is-free { color: var(--yellow); }
.price-pill.is-free.is-locked { color: var(--muted); }
/* баллы: вторая валюта (за пополнения и ставки, тратятся на бонусные кейсы), значок звезды */
.points { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--cyan); white-space: nowrap; font-variant-numeric: tabular-nums; }
.points svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-yellow .points { color: var(--yellow-ink); }
.price-pill.is-points { gap: 6px; color: var(--cyan); box-shadow: inset 0 0 0 2px rgba(47, 210, 255, 0.35), 0 4px 0 #05080c; }
.price-pill.is-points .points { font-size: 16px; }
.price-pill.is-points small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: lowercase; }

/* ---------- поля ---------- */
.input, .select { height: 44px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: 600 14px var(--font); }
.input::placeholder { color: var(--dim); }
.input:focus, .select:focus { outline: none; border-color: var(--yellow); }
.chip { height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-sm); background: var(--panel-2); color: var(--muted); font: 700 13px var(--font); cursor: pointer; }
.chip:hover { color: var(--text); }
.chip.is-on { background: var(--yellow); color: var(--yellow-ink); }
.toggle { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--panel-2); cursor: pointer; font-weight: 700; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { position: relative; width: 38px; height: 22px; border-radius: 11px; background: #263243; transition: background 160ms; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #6c788a; transition: transform 200ms var(--ease), background 160ms; }
.toggle input:checked + i { background: var(--yellow); }
.toggle input:checked + i::after { transform: translateX(16px); background: var(--yellow-ink); }
.toggle input:focus-visible + i { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* строка формы: поле растягивается, кнопки рядом, на телефоне переносятся */
.form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.form-row .input { flex: 1 1 220px; min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.field .input { width: 100%; text-transform: none; letter-spacing: 0; }
.field-check { display: inline-flex; align-items: center; gap: 10px; height: 44px; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; }
.field-check input { width: 18px; height: 18px; accent-color: var(--yellow); }
.hash { display: block; margin-top: 4px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--bg-2); font: 600 12px/1.4 ui-monospace, Consolas, monospace; color: #c9ced8; word-break: break-all; }
/* таблицы: на узком экране прокручиваются внутри обёртки, страница не едет вбок */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.data-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 12px 14px; text-align: left; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { overflow-wrap: normal; white-space: nowrap; }
.data-table .num { text-align: right; }
.panel { background: var(--panel); border-radius: 14px; padding: 20px; }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 5px; font: 800 10px/1 var(--font); text-transform: uppercase; letter-spacing: 0.03em; background: rgba(0,0,0,0.35); color: #fff; }
.badge-st { background: #ff8a00; color: #1b0d00; }
.badge-bot { background: #23324a; color: #9cc2ff; }
.badge-you { background: var(--yellow); color: var(--yellow-ink); }
.badge-sale { background: var(--red); color: #fff; }
.badge-new { background: var(--green); color: #fff; }
.badge-points { background: rgba(47, 210, 255, 0.18); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(47, 210, 255, 0.4); }
.badge-key { background: var(--yellow); color: var(--yellow-ink); }
.badge svg { width: 11px; height: 11px; }

/* ---------- живая лента ---------- */
.feed { position: relative; height: var(--feed-h); background: #05080c; overflow: hidden; display: flex; }
.feed-best { position: relative; flex: none; width: 210px; height: 100%; padding: 10px 12px; color: #fff; overflow: hidden;
  background: var(--g, var(--g-covert)); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%); }
.feed-best::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 70% 60%, rgba(255,255,255,0.18), transparent 60%); pointer-events: none; }
.feed-best b { position: relative; z-index: 2; display: block; font-size: 12px; font-weight: 800; line-height: 1.15; }
.feed-best img { position: absolute; right: 18px; top: 18px; width: 120px; height: 62px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,0.6)); z-index: 1; }
.feed-best small { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: 11px; line-height: 1.25; max-width: 92px; }
.feed-best small i { display: block; font-style: normal; color: rgba(255,255,255,0.65); font-size: 10px; }
.feed-track { flex: 1; display: flex; gap: 0; overflow: hidden; }
.feed-tile { position: relative; flex: none; width: 104px; height: 100%; margin-right: -6px; background: var(--g); cursor: default;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 10px 100%, 0 50%); }
.feed-tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 40%, rgba(255,255,255,0.20), transparent 70%); }
.feed-tile img { position: absolute; left: 14px; right: 14px; top: 12px; width: calc(100% - 28px); height: 62px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.55)); transition: transform 200ms var(--ease); }
.feed-tile:hover img { transform: scale(1.08); }
.feed-tile .who { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 9.5px; font-weight: 700; color: rgba(255,255,255,0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 14px; opacity: 0; transition: opacity 160ms; }
.feed-tile:hover .who { opacity: 1; }
.feed-tile.is-you { box-shadow: inset 0 -3px 0 var(--yellow); }
.feed-tile.is-in { animation: feed-in 520ms var(--ease); }
@keyframes feed-in { from { transform: translateX(-60px); opacity: 0; } }
.feed-live { position: absolute; right: 0; top: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 12px 0 34px;
  background: linear-gradient(90deg, transparent, #05080c 32%); }
.feed-live .dot { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: #ff5a5a; letter-spacing: 0.06em; }
.feed-live .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 0 rgba(255,59,59,0.7); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(255,59,59,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); } }
.feed-live .seg { display: flex; background: #121a25; border-radius: 6px; padding: 2px; }
.feed-live .seg button { border: 0; background: none; color: var(--muted); font: 700 11px var(--font); padding: 4px 9px; border-radius: 5px; cursor: pointer; }
.feed-live .seg button.is-on { background: var(--yellow); color: var(--yellow-ink); }
.feed-live .why { font-size: 10px; color: var(--dim); max-width: 120px; line-height: 1.2; }

/* ---------- верхняя тонкая навигация ---------- */
.topbar { background: #0a0f16; }
/* правый угол верхней полосы: язык, Telegram, звук */
.topbar .tb-tools { display: inline-flex; align-items: center; gap: 8px; }
.topbar .tb-tg { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--panel-2); color: #8fd0ff; }
.topbar .tb-tg:hover { background: var(--panel-3); color: #fff; }
.topbar .tb-tg svg { width: 18px; height: 18px; }
.topbar .tb-lang { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--panel-2); }
.topbar .tb-lang button { min-width: 36px; height: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.topbar .tb-lang button.is-on { background: var(--panel-3); color: #fff; }
.topbar .wrap { display: flex; align-items: center; gap: 22px; height: 46px; font-size: 13.5px; color: var(--muted); }
.topbar a:hover { color: var(--text); }
.topbar .new { display: inline-flex; align-items: center; gap: 8px; color: var(--yellow); }
.topbar .new em { font-style: normal; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 10px; background: var(--yellow); color: var(--yellow-ink); }
.topbar .sp { flex: 1; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--panel-2); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--panel-3); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(8, 12, 18, 0.96); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 2px; font-weight: 900; font-size: 22px; line-height: 0.86; font-style: italic; letter-spacing: -0.02em; }
.logo span { display: flex; flex-direction: column; }
.logo b { color: var(--yellow); font-weight: 900; }
.logo svg { width: 34px; height: 34px; margin-right: 6px; }
/* Логотип «Кабомба» (голо-стикер, js/brand.js): SVG в странице, ширина задаётся, высота по пропорциям.
   Перелив идёт всегда, при наведении бомба качается, искра вспыхивает, слово подпрыгивает (стили внутри SVG) */
.logo .logo-svg, .logo .logo-img { display: block; width: 196px; height: auto; margin: -12px 0; overflow: visible; }
.logo.logo-big .logo-svg, .logo.logo-big .logo-img { width: 230px; margin: 0; }
.mainnav { display: flex; gap: 6px; }
.mainnav a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 8px; color: #b6bfcc; font-weight: 800; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.02em; }
.mainnav a svg { width: 19px; height: 19px; color: #8d99ab; }
.mainnav a:hover { color: #fff; }
.mainnav a.is-on { color: var(--yellow); }
.mainnav a.is-on svg { color: var(--yellow); }
.hdr-side { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.balance { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 16px; border: 0; border-radius: 10px; background: var(--panel-2); cursor: pointer; font-size: 16px; }
.balance:hover { background: var(--panel-3); }
.balance .plus { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--yellow); color: var(--yellow-ink); }
.balance .plus svg { width: 16px; height: 16px; }
.balance.has-gift .plus { animation: gift 1.5s infinite; }
@keyframes gift { 50% { box-shadow: 0 0 0 6px rgba(255, 199, 0, 0.18); } }
.inv-btn { position: relative; }
.inv-btn .cnt { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--yellow); color: var(--yellow-ink); font-size: 10px; font-weight: 800; line-height: 18px; text-align: center; }
/* .profile-btn убрана (2026-10-19): в профиль ведут аватар и ник (.hdr-me) */
/* вход через Steam в шапке (рисует live.js): кешбек, аватар, ник */
.header .logo, .balance, .inv-btn, .profile-btn { flex: none; }
.hdr-side { min-width: 0; }
.hdr-auth { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto; }
.hdr-cb { flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 13px; background: rgba(95, 179, 26, 0.14); color: var(--green-2); font-size: 11.5px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* аватар + ник + уровень: одна ссылка в профиль */
.hdr-me { display: inline-flex; align-items: center; gap: 9px; height: 46px; min-width: 0; padding: 0 10px 0 6px; border-radius: 10px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.hdr-me:hover { background: var(--panel-3); }
.hdr-ava { flex: none; width: 34px; height: 34px; border-radius: 8px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,0.4); }
.hdr-ava-empty { display: grid; place-items: center; background: var(--green); color: #fff; font-size: 15px; font-weight: 900; }
.hdr-name { min-width: 0; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.hdr-lvl { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--green); color: #fff; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hdr-lvl:empty { display: none; }
/* выход из аккаунта: тихая кнопка рядом с ником; на телефоне она живёт в профиле */
.hdr-out { flex: none; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); font: 800 11px var(--font); text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
.hdr-out:hover { color: #fff; background: var(--panel-2); }
.hdr-out[disabled] { opacity: 0.5; cursor: wait; }
.pf-acc-who { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; font-weight: 700; }
.hdr-login .short { display: none; }
/* баллы и вращения барабана в шапке (лояльность v2) */
.hdr-points { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px; border-radius: 10px; background: var(--panel-2); color: var(--cyan); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hdr-points:hover { background: var(--panel-3); }
.hdr-points svg { width: 17px; height: 17px; flex: none; }
.hdr-spin { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px; border-radius: 10px; background: linear-gradient(160deg, #ff9d00, var(--yellow)); color: var(--yellow-ink); font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; box-shadow: 0 6px 20px -8px rgba(255, 199, 0, 0.9); animation: spin-pulse 2.2s ease-in-out infinite; }
.hdr-spin svg { width: 18px; height: 18px; flex: none; animation: spin-slow 6s linear infinite; }
.hdr-spin b { font-variant-numeric: tabular-nums; }
@keyframes spin-pulse { 50% { box-shadow: 0 0 0 5px rgba(255, 199, 0, 0.16); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.hdr-cb.is-points { background: rgba(47, 210, 255, 0.12); color: var(--cyan); }
.hdr-cb.is-points .points { font-size: 12px; }

/* подразделы каталога (липкая строка под шапкой) */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(8, 12, 18, 0.96); }
/* на главной подменю каталога прячется наверху страницы и выезжает, когда игрок прокрутил вниз (home.js) */
.subnav.is-lazy { position: fixed; left: 0; right: 0; transform: translateY(-110%); opacity: 0; transition: transform 0.3s var(--ease), opacity 0.3s; box-shadow: 0 10px 30px -14px #000; }
.subnav.is-lazy.is-shown { transform: none; opacity: 1; }
.subnav .wrap { display: flex; gap: 22px; height: 46px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.subnav a:hover, .subnav a.is-on { color: var(--yellow); }

/* ---------- плитка предмета (заливка цветом редкости) ---------- */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 8px; }
.it { --g: var(--g-milspec); position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1 / 0.84; padding: 10px 11px; border-radius: var(--radius); overflow: hidden; background: var(--g); color: #fff; border: 0; text-align: left; min-width: 0; }
.it::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% 0%, rgba(255,255,255,0.32), transparent 62%); pointer-events: none; }
.it img { position: absolute; left: 10%; right: 10%; top: 6%; width: 80%; height: 62%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,0.5)); transition: transform 220ms var(--ease); }
button.it, a.it { cursor: pointer; }
button.it:hover img, a.it:hover img { transform: scale(1.07) rotate(-2deg); }
.it-w { position: relative; font-size: 11px; color: rgba(255,255,255,0.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-n { position: relative; font-size: 12.5px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; gap: 4px; z-index: 1; }
.it-price { position: relative; margin-top: 4px; font-size: 12.5px; }
.it-price .coins { color: var(--yellow-2); text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.it-chance { font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 5px; background: rgba(0,0,0,0.35); }
.it.is-sel { box-shadow: inset 0 0 0 3px var(--yellow); }
.it.is-dim { filter: grayscale(0.8) brightness(0.55); }
.it[data-r="consumer"] { --g: var(--g-consumer); }
.it[data-r="industrial"] { --g: var(--g-industrial); }
.it[data-r="milspec"] { --g: var(--g-milspec); }
.it[data-r="restricted"] { --g: var(--g-restricted); }
.it[data-r="classified"] { --g: var(--g-classified); }
.it[data-r="covert"] { --g: var(--g-covert); }
.it[data-r="gold"], .it[data-r="contraband"] { --g: var(--g-gold); }

/* ---------- Kabo: маскот в левом нижнем углу, карточка достижения как в Майнкрафте ---------- */
.kabo-pop { position: fixed; left: 18px; bottom: 22px; z-index: 60; display: flex; align-items: flex-end; gap: 8px; cursor: pointer; max-width: calc(100vw - 36px);
  opacity: 0; transform: translateY(26px) scale(0.7) rotate(-6deg); transform-origin: 20% 100%; pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.2s ease; }
.kabo-pop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.kabo-pop img { width: 92px; height: auto; flex: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55)); }
.kabo-card { display: grid; gap: 2px; max-width: 260px; margin-bottom: 40px; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #fff; color: #0b0b0f; box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.7); }
.kabo-kicker { display: none; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: #b8860b; }
.kabo-title { font-size: 14px; font-weight: 900; line-height: 1.25; }
.kabo-text { font-size: 13px; font-weight: 700; line-height: 1.25; color: #0b0b0f; }
.kabo-pop:not(.is-ach) .kabo-title:empty { display: none; }
/* достижение: плашка в духе Майнкрафта, тёмная с жёлтым заголовком и свечением */
.kabo-pop.is-ach .kabo-card { background: linear-gradient(180deg, #1b2533, #0f1620); color: var(--text); border: 2px solid var(--yellow); border-radius: 10px; box-shadow: 0 0 0 3px #0a0f16, 0 0 30px -4px rgba(255, 199, 0, 0.6); min-width: 230px; }
.kabo-pop.is-ach .kabo-kicker { display: block; color: var(--yellow); }
.kabo-pop.is-ach .kabo-title { font-size: 16px; }
.kabo-pop.is-ach .kabo-text { color: var(--muted); font-weight: 600; }
.kabo-pop.is-ach img { animation: kabo-bounce 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 0.2s 2 alternate; }
@keyframes kabo-bounce { to { transform: translateY(-10px) rotate(4deg); } }
@media (max-width: 760px) { .kabo-pop { left: 10px; bottom: 80px; } .kabo-pop img { width: 72px; } .kabo-card { margin-bottom: 30px; max-width: 210px; } }
@media (prefers-reduced-motion: reduce) { .kabo-pop { transition: opacity 0.2s; transform: none; } .kabo-pop.is-ach img { animation: none; } }

/* ---------- стенд исследования (web/js/research.js): показ приёмов удержания ---------- */
/* «цвета редкости» выключены: все плитки одинаково серые, без свечения */
.r-no-rarity .it { --g: linear-gradient(180deg, #4a5261 0%, #262c36 100%) !important; }
.r-no-rarity .it::before { opacity: 0.35; }
.r-no-rarity .feed-tile, .r-no-rarity .feed-best { --g: linear-gradient(180deg, #4a5261 0%, #262c36 100%) !important; }
.r-no-rarity .gw { filter: saturate(0.15); }
.r-no-rarity .cp-cell .it.is-epic { box-shadow: none; }
.r-no-rarity .cp-flash, .r-no-rarity .cp-rays { display: none; }
/* «почти выигрыш»: соседняя клетка с ножом подсвечивается, когда лента остановилась */
/* без плашки «почти!» и без своей рамки: дорогой предмет рядом светится так же, как любая дорогая плитка
   у указателя (.is-rare), поэтому показ не выделяется и не выглядит подстроенным */
.roulette.is-done .it.is-near { opacity: 0.55 !important; }
/* «проигрыш под видом выигрыша»: вспышка и плашка «Вы выиграли!» у любого дропа */
.cp-res-label.is-ldw { color: var(--yellow); font-size: 18px; letter-spacing: 0.06em; text-shadow: 0 0 18px rgba(255, 199, 0, 0.6); }
/* витрина: верхние предметы кейса крупнее */
.cp-items.is-showcase { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.cp-items.is-showcase .it.is-top { grid-column: span 2; grid-row: span 2; }
.cp-items.is-showcase .it.is-top .it-n { font-size: 16px; }
.cp-items.is-showcase .it.is-top .it-price { font-size: 14px; }
/* счётчики масштаба на главной */
/* плашки «счётчики масштаба» под шапкой и над подвалом (ui.js, renderBars) */
.r-bar { padding: 10px 0; }
.r-bar-bottom { margin-top: 44px; padding: 26px 0 24px; background: radial-gradient(70% 140% at 50% 0%, rgba(47, 100, 255, 0.2), transparent 70%), #080c12; border-top: 1px solid var(--line); }
.r-bar-bottom h3 { margin: 0 0 14px; text-align: center; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.r-bar-in { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.r-bar-in::-webkit-scrollbar { display: none; }
.r-bar-tile { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px; border-radius: 12px; background: linear-gradient(180deg, #161f2b, #0f151e); box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 22px -16px #000; white-space: nowrap; }
.r-bar-tile .r-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 199, 0, 0.12); color: var(--yellow); }
.r-bar-tile .r-ic svg { width: 17px; height: 17px; }
.r-bar-tile b { font-size: 18px; font-variant-numeric: tabular-nums; }
.r-bar-tile b.is-bump { animation: r-bump 0.4s ease-out; }
@keyframes r-bump { 0% { transform: translateY(-3px); color: var(--yellow); } }
.r-bar-tile > span:last-child { font-size: 12px; color: var(--muted); }
.r-bar-tile.is-live .r-ic { background: rgba(116, 204, 41, 0.14); color: var(--green-2); }
.r-bar-tile.is-live .r-ic::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 10px var(--green-2); animation: r-pulse 1.6s ease-in-out infinite; }
.r-bar-bottom .r-bar-in { flex-wrap: wrap; justify-content: center; }
.r-bar-bottom .r-bar-tile { flex-direction: column; gap: 4px; min-width: 150px; padding: 14px 18px; text-align: center; }
.r-bar-bottom .r-bar-tile b { font-size: 24px; }
.r-bar-bottom .r-bar-tile .r-ic { width: 36px; height: 36px; margin-bottom: 4px; }
@media (max-width: 760px) {
  .r-bar-tile { min-height: 44px; padding: 6px 12px; gap: 8px; }
  .r-bar-tile b { font-size: 15px; }
  .r-bar-bottom .r-bar-tile { min-width: calc(50% - 4px); }
}
.r-counters { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.r-counters .tile { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 10px; background: var(--panel); min-height: 56px; }
.r-counters .tile b { font-size: 18px; font-variant-numeric: tabular-nums; }
.r-counters .tile span { font-size: 12.5px; color: var(--muted); }
.r-counters .tile i { width: 9px; height: 9px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 8px var(--green-2); animation: r-pulse 1.6s ease-in-out infinite; }
@keyframes r-pulse { 50% { opacity: 0.35; } }
/* значки доверия */
.r-trust { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0 0; }
/* на странице кейса значки стоят между заголовком и подписью: подпись сдвигается вниз */
.r-trust + .sec-sub { margin-top: 16px; }
.r-trust span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--panel-2); font-size: 12.5px; font-weight: 800; color: #cfe3ff; }
.r-trust span::before { content: "✓"; color: var(--green-2); }
/* название кейса с обещанием */
.case-name .r-promise { color: var(--yellow); }
.price-pill .r-word { font-size: 11px; font-weight: 600; color: var(--muted); margin-right: 2px; }

/* ---------- карточка кейса ---------- */
/* Ряды кейсов по центру, как на витринах сайтов кейсов: неполный последний ряд встаёт посередине */
.cases { --per: 5; --gx: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 44px var(--gx); }
.cases > .case { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gx)) / var(--per)); max-width: 310px; }
.case { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text); }
.case-link { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; border-radius: 12px; }
.case-name { margin-top: 8px; font-size: 16px; font-weight: 600; color: #c6cdd8; line-height: 1.3; min-height: 2.6em; display: grid; place-items: center; }
.case:hover .case-name { color: #fff; }
.case .price-pill { margin-top: 10px; }
.case-fav { position: absolute; top: 4px; right: 8px; z-index: 5; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(8,12,18,0.6); color: #6f7a8c; cursor: pointer; opacity: 0; transition: opacity 160ms; }
.case:hover .case-fav, .case-fav.is-on { opacity: 1; }
.case-fav.is-on { color: var(--yellow); }
.case-fav svg { width: 18px; height: 18px; }
.case-tags { position: absolute; top: 6px; left: 10px; z-index: 5; display: flex; gap: 4px; }
/* замок поверх картинки кейса (сверху, а не от низа: с плашкой тира карточка стала выше, и замок налезал на название) */
.case-lock { position: absolute; inset: 40% 0 auto 0; z-index: 6; display: flex; justify-content: center; }
.case-lock span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; background: rgba(5,8,12,0.85); font-size: 12px; font-weight: 800; color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }
.case-lock svg { width: 14px; height: 14px; color: var(--yellow); }
.case.is-locked .art { filter: grayscale(0.7) brightness(0.6); }
/* плашка тира бесплатного кейса: название тира, порог пополнений, состояние */
.case-tier { display: grid; gap: 2px; width: 100%; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; line-height: 1.25; }
.case-tier b { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text); }
.case-tier span { color: var(--muted); }
.case-tier em { font-style: normal; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.case-tier.is-ok { box-shadow: inset 0 0 0 1px rgba(116, 204, 41, 0.45); }
.case-tier.is-ok em { color: var(--green-2); }
.case-tier.is-locked em { color: #ffb36b; }
.case-tier.is-wait em { color: var(--cyan); }
.case.is-bonus .case-name { color: #cfe3ff; }

/* Картинки кейсов и скинов — оформление, а не контент: браузер не должен предлагать их «сохранить»
   или искать по картинке при наведении (меню Edge/Chrome появляется только над самим <img>), и тащить их мышью нельзя */
.art img, .it img, .feed-tile img, .feed-best img, .cp-artbox img, .bt-thumb img, .up-big, .kabo-pop img, .logo-img {
  pointer-events: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }

/* ---------- картинка кейса (сундук + скин + свечение) ---------- */
.art { --c: #ffc700; position: relative; width: 100%; max-width: 250px; aspect-ratio: 1 / 0.9; isolation: isolate; transition: transform 300ms var(--ease); }
.case:hover .art { transform: translateY(-6px) scale(1.03); }
.art-glow { position: absolute; left: -4%; right: -4%; top: -2%; bottom: 8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 80%, #fff 20%) 0%, color-mix(in srgb, var(--c) 55%, transparent) 38%, color-mix(in srgb, var(--c) 14%, transparent) 62%, transparent 76%); filter: blur(16px); opacity: 0.95; }
.art-rays { position: absolute; left: 4%; right: 4%; top: -6%; height: 78%; z-index: -1; opacity: 0.55;
  background: conic-gradient(from 200deg at 50% 92%, transparent 0deg, color-mix(in srgb, var(--c) 85%, #fff 15%) 8deg, transparent 18deg, transparent 34deg, color-mix(in srgb, var(--c) 85%, #fff 15%) 42deg, transparent 52deg, transparent 70deg, color-mix(in srgb, var(--c) 85%, #fff 15%) 80deg, transparent 92deg, transparent 112deg, color-mix(in srgb, var(--c) 85%, #fff 15%) 122deg, transparent 134deg, transparent 360deg);
  -webkit-mask: radial-gradient(70% 90% at 50% 92%, #000 30%, transparent 75%); mask: radial-gradient(70% 90% at 50% 92%, #000 30%, transparent 75%); filter: blur(3px); }
.art-flame { position: absolute; left: 14%; right: 14%; top: 0; height: 70%; z-index: -1;
  background: radial-gradient(60% 70% at 50% 88%, color-mix(in srgb, var(--c) 85%, #fff 15%), transparent 70%); filter: blur(10px); opacity: 0.8; animation: flame 3.2s ease-in-out infinite; }
@keyframes flame { 50% { transform: scaleY(1.08) translateY(-3px); opacity: 1; } }
.art-floor { position: absolute; left: 14%; right: 14%; bottom: 2%; height: 9%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,0.8), transparent); }
.art svg { position: absolute; left: 11%; width: 78%; height: auto; }
.art .chest-back { top: 38%; }
.art .chest-front { top: 38%; z-index: 3; }
.art .skin { position: absolute; z-index: 2; left: -2%; width: 104%; top: -2%; height: 70%; object-fit: contain; transform: rotate(-26deg) scale(1.08); filter: drop-shadow(0 12px 14px rgba(0,0,0,0.6)) drop-shadow(0 0 22px color-mix(in srgb, var(--c) 60%, transparent)); }
.art .case-img { position: absolute; z-index: 2; left: 8%; width: 84%; bottom: 8%; height: 70%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0,0,0,0.6)); }
.art .emblem { position: absolute; z-index: 1; left: 22%; width: 56%; top: 0; height: 42%; object-fit: contain; transform: rotate(-16deg); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c) 70%, transparent)); }
/* художественная картинка кейса: края мягко растворяются в фоне страницы */
.art-pic .pic { position: absolute; z-index: 2; left: 2%; top: 0; width: 96%; height: 100%; object-fit: contain;
  -webkit-mask: radial-gradient(closest-side, #000 62%, transparent 100%); mask: radial-gradient(closest-side, #000 62%, transparent 100%);
  filter: saturate(1.15) contrast(1.05); }
.art-pic .art-glow { opacity: 0.55; }
/* нарисованная сцена SVG (viewBox 400×360) + скин поверх: скин вылетает из открытого сундука */
.art-scene .scene { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.art-scene .skin { z-index: 2; left: -3%; width: 106%; top: -9%; height: 62%; transform: rotate(-24deg) scale(1.12); }
.art-scene .art-glow { opacity: 0.6; }
.art .spark { position: absolute; z-index: 4; width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--c) 60%, #fff 40%); box-shadow: 0 0 8px var(--c); animation: spark 2.6s ease-in-out infinite; }
@keyframes spark { 0%, 100% { opacity: 0.2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-6px); } }

/* ---------- первый экран главной: герой ---------- */
/* Одно обещание, одна главная кнопка и кейс дня справа. Цвет подсветки --c берётся у кейса дня (home.js) */
.hero { --c: #ffc700; position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); align-items: center; gap: 24px 40px;
  margin-top: 18px; padding: 34px 44px 30px; border-radius: 18px; overflow: hidden; isolation: isolate;
  background: linear-gradient(110deg, #0a1018 0%, #0f1824 55%, #0c131c 100%); box-shadow: inset 0 0 0 1px var(--line); }
.hero::before { content: ""; position: absolute; inset: -20% -10% -20% 40%; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 60% at 72% 50%, color-mix(in srgb, var(--c) 34%, transparent), transparent 70%); filter: blur(10px); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 60%, transparent), transparent); }
.hero-text { min-width: 0; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(30px, 3.3vw, 54px); line-height: 1.02; font-weight: 900; letter-spacing: -0.01em; text-shadow: 0 2px 0 rgba(0,0,0,0.5); text-wrap: balance; overflow-wrap: anywhere; }
.hero-sub { margin-top: 16px; max-width: 560px; font-size: 15.5px; line-height: 1.5; color: #b7c1d1; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-open { padding: 0 28px; font-size: 15px; box-shadow: 0 10px 30px -10px rgba(255, 199, 0, 0.8); animation: hero-pulse 2.8s ease-in-out infinite; }
.hero-open:hover { animation: none; }
.hero-open .hero-price { display: inline-flex; align-items: center; margin-left: 4px; padding: 3px 10px; border-radius: 8px; background: rgba(0,0,0,0.16); }
.hero-open .hero-price .coins { color: var(--yellow-ink); font-size: 14px; }
@keyframes hero-pulse { 50% { box-shadow: 0 10px 34px -6px rgba(255, 199, 0, 0.95); } }
.hero-note { display: block; margin-top: 12px; max-width: 520px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-height: 20px; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.hero-meta b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 800; }
.hero-meta b.is-bump { animation: r-bump 0.4s ease-out; }
.hero-live { display: inline-flex; align-items: center; gap: 7px; }
.hero-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 10px var(--green-2); animation: r-pulse 1.6s ease-in-out infinite; }
.hero-trust { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #cfe3ff; }
.hero-trust::before { content: "✓"; color: var(--green-2); font-weight: 900; }
/* кейс дня: крупная картинка, медленно парит; клик ведёт на страницу кейса */
.hero-case { position: relative; justify-self: center; display: flex; flex-direction: column; align-items: center; width: min(100%, 400px); text-align: center; color: var(--text); }
.hero-case .art { max-width: 380px; aspect-ratio: 1 / 0.9; animation: hero-float 5s ease-in-out infinite; }
.hero-case:hover .art { transform: translateY(-6px) scale(1.03); animation-play-state: paused; }
.hero-case .art-glow { opacity: 1; }
@keyframes hero-float { 50% { transform: translateY(-8px); } }
.hero-tag { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); z-index: 6; padding: 5px 12px; border-radius: 999px; background: var(--yellow); color: var(--yellow-ink); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 6px 18px -8px rgba(255, 199, 0, 0.9); }
.hero-case-name { margin-top: 4px; font-size: 18px; font-weight: 800; }
.hero-case .price-pill { margin-top: 10px; }
.hero-case .price-pill .r-word { display: none; }
/* полка призов: три настоящих предмета кейса дня с ценой «до» и честным шансом */
.hero-prizes-lbl { display: block; margin-top: 10px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero-prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 8px; }
.hp { aspect-ratio: 1 / 0.92; padding: 8px 9px; text-align: left; }
.hp img { top: 14%; height: 52%; }
.hp .it-w { font-size: 10px; }
.hp .it-n { font-size: 11.5px; }
.hp .it-price { font-size: 11px; color: rgba(255,255,255,0.8); }
.hp .it-price .coins { font-size: 11px; }
.hp-odds { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; background: rgba(5,8,12,0.75); color: #fff; font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; max-width: 100%; letter-spacing: -0.01em; }
.hero-case:hover .hp img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .hero-open, .hero-case .art, .hero-live i { animation: none; } }

/* ---------- полоса быстрых действий (бонус дня, задания, промокод) ---------- */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.qa { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.qa.is-hot { box-shadow: inset 0 0 0 1px rgba(255, 199, 0, 0.45); background: linear-gradient(110deg, #141a14, #0f1620 60%); }
.qa-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 199, 0, 0.12); color: var(--yellow); }
.qa-ic svg { width: 22px; height: 22px; }
.qa > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.qa b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa > div > span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa code { font: 800 12px var(--font); padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,0.07); color: var(--text); letter-spacing: 0.04em; }
.qa .btn { flex: none; }

/* ---------- блоки главной ---------- */
.stats-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 8px; border-radius: 14px; background: #05080c; }
.stat-tile { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-radius: 10px; background: var(--panel); min-height: 76px; }
.stat-tile > div > span { display: block; font-size: 13px; color: var(--muted); }
.stat-tile > div > b { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-tile svg { width: 52px; height: 52px; flex: none; }
/* плитки с цифрами всего сайта (приём «счётчики масштаба»): компактнее, цифры крупнее, онлайн пульсирует */
.stats-row.is-scale .stat-tile { min-height: 62px; padding: 10px 14px; }
.stats-row.is-scale .stat-tile svg { width: 42px; height: 42px; }
.stats-row.is-scale .stat-tile > div > span { font-size: 12px; }
.stats-row.is-scale .stat-tile > div > b { font-size: 17px; }
.stats-row.is-scale .stat-tile b.is-bump { animation: r-bump 0.4s ease-out; }
.stats-row.is-scale .stat-tile.is-live svg { animation: r-pulse 1.6s ease-in-out infinite; }
.banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; border-radius: 14px; background: #05080c; margin-top: 18px; }
.banner { position: relative; min-height: 150px; padding: 22px 24px; border-radius: 10px; overflow: hidden; background: var(--panel); }
.banner small { display: block; color: #c8ced8; font-size: 13.5px; }
.banner h3 { margin: 6px 0 16px; font-size: 17px; color: var(--yellow); text-transform: uppercase; max-width: 60%; }
.banner .btn { position: relative; z-index: 2; }
.banner .b-art { position: absolute; right: -6px; bottom: -6px; width: 46%; height: 100%; display: grid; place-items: center; }
.banner .b-art img { width: 100%; max-height: 120px; object-fit: contain; transform: rotate(-18deg); filter: drop-shadow(0 10px 14px rgba(0,0,0,0.6)); }
.banner.is-red { background: linear-gradient(110deg, #3a0f0d, #8a2414 60%, #c4441b); }
.banner.is-red h3 { color: #fff; }
.banner.is-dark { background: linear-gradient(110deg, #070a0f, #121a24); }

/* раздача скинов */
.gw-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gw { --g: var(--g-restricted); position: relative; display: grid; grid-template-columns: 40% 1fr; gap: 8px; align-items: center; min-height: 150px; padding: 34px 16px 14px; border-radius: 12px; background: var(--g); overflow: hidden; color: #fff; }
.gw::before { content: ""; position: absolute; left: 20px; top: 50%; width: 120px; height: 120px; transform: translateY(-50%); background:
  linear-gradient(135deg, rgba(0,0,0,0.18) 25%, transparent 25%) 0 0 / 36px 36px; clip-path: polygon(0 0, 30% 0, 60% 50%, 30% 100%, 0 100%, 30% 50%); opacity: 0.6; }
.gw img { position: relative; width: 100%; height: 90px; object-fit: contain; transform: rotate(-20deg); filter: drop-shadow(0 8px 10px rgba(0,0,0,0.5)); }
.gw-name { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.85); line-height: 1.25; }
.gw-val { margin: 4px 0 6px; font-size: 21px; font-weight: 800; }
.gw-val .coins { color: #fff; }
.gw-timer { display: flex; gap: 6px; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gw-timer i { font-style: normal; opacity: 0.6; }
.gw-users { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,0.3); font-size: 11.5px; font-weight: 800; }
.gw-users svg { width: 12px; height: 12px; }
.gw-act { margin-top: 10px; }
.gw-done { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 6px; background: rgba(0,0,0,0.35); line-height: 1.25; }
.gw[data-r="classified"] { --g: var(--g-classified); }
.gw[data-r="covert"] { --g: var(--g-covert); }
.gw[data-r="gold"] { --g: var(--g-gold); }

/* фильтры каталога */
.filters { position: sticky; top: calc(var(--header-h) + 46px); z-index: 30; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px; margin-top: 18px; border-radius: 14px; background: rgba(5, 8, 12, 0.96); }
.filters .input { flex: 0 1 260px; }
.filters .sp { flex: 1; }

/* ---------- модалка и тосты ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(3, 5, 8, 0.8); overflow-y: auto; animation: fade 200ms; }
.modal { width: 100%; max-width: 540px; max-height: calc(100vh - 32px); overflow: auto; padding: 24px; border-radius: 16px; background: var(--panel); box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 0 1px var(--line); animation: pop 280ms var(--ease); }
.modal.is-wide { max-width: 920px; }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 16px; }
.modal-head h3 { font-size: 19px; text-transform: uppercase; }
.modal-close { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--panel-2); color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--text); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }
/* окно «Бонусы и монеты» */
.bonus-bal { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); font-size: 13px; font-weight: 700; color: var(--muted); }
.bonus-bal .coins { font-size: 20px; }
.bonus-note { margin: 10px 0 6px; font-size: 13px; color: var(--muted); }
.bonus-pts { display: inline-flex; align-items: baseline; gap: 5px; margin-left: auto; }
.bonus-pts .points { font-size: 18px; }
.bonus-pts small { font-size: 11px; color: var(--muted); }
/* награды за пополнение в форме профиля: баллы и вращения барабана */
.pf-acc-rewards { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.pf-acc-rewards span { display: inline-flex; align-items: center; gap: 5px; }
.pf-acc-rewards svg { width: 15px; height: 15px; color: var(--yellow); }
.pf-acc-rewards .points svg { color: inherit; }
.pf-acc-rewards b { color: var(--text); }
.pf-acc-rewards .dim { color: var(--dim); }
.pf-acc-rewards .dim svg { color: var(--dim); }
.bonus-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.bonus-txt { flex: 1 1 200px; min-width: 0; }
.bonus-txt b { display: block; }
.bonus-txt span { display: block; font-size: 13px; color: var(--muted); }
.bonus-wait { font-size: 13px; font-weight: 700; color: var(--dim); }
.bonus-promo { display: flex; gap: 8px; }
.bonus-promo .input { width: 140px; min-width: 0; }
@media (max-width: 520px) {
  .bonus-row > .btn, .bonus-promo { flex: 1 1 100%; }
  .bonus-promo .input { flex: 1; width: auto; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; max-width: 360px; padding: 12px 16px; border-radius: 10px; background: var(--panel-3); box-shadow: 0 12px 30px rgba(0,0,0,0.5); border-left: 4px solid var(--yellow); font-size: 14px; animation: pop 260ms var(--ease); }
.toast.is-ok { border-color: var(--green-2); }
.toast.is-err { border-color: var(--red); }
.toast.is-out { opacity: 0; transition: opacity 200ms; }

/* ---------- рулетка ---------- */
/* высота по плитке (пропорция .it 1 : 0,84) плюс поля, без пустой полосы снизу */
.roulette { position: relative; overflow: hidden; height: calc(var(--tile) * 0.84 + 30px); border-radius: 14px; background: #06090e; --tile: 170px; --tile-gap: 8px; }
.roulette::before { content: ""; position: absolute; z-index: 3; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--yellow); box-shadow: 0 0 14px rgba(255,199,0,0.9); }
.roulette::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, #06090e 0%, transparent 16%, transparent 84%, #06090e 100%); }
.roulette-strip { position: absolute; top: 15px; left: 0; display: flex; gap: var(--tile-gap); will-change: transform; }
.roulette-strip .it { width: var(--tile); flex: none; }
/* дорогие плитки (розовые и выше) разгораются по мере приближения к указателю: --near 0..1 ставит рулетка (ui.js) */
.roulette-strip .it.is-rare { --near: 0; --glow: var(--r-classified); z-index: 1;
  filter: brightness(calc(1 + var(--near) * 0.6)) saturate(calc(1 + var(--near) * 0.5));
  box-shadow: 0 0 calc(var(--near) * 36px) calc(var(--near) * 5px) var(--glow), inset 0 0 0 calc(var(--near) * 2px) rgba(255, 255, 255, 0.85);
  transform: scale(calc(1 + var(--near) * 0.07)); }
.roulette-strip .it.is-rare[data-r="covert"] { --glow: var(--r-covert); }
.roulette-strip .it.is-rare[data-r="gold"], .roulette-strip .it.is-rare[data-r="contraband"] { --glow: var(--r-gold); }
.roulette-strip .it.is-rare img { transform: scale(calc(1 + var(--near) * 0.08)); transition: none; }
.roulette.is-done .it.is-rare { transition: filter 0.4s, box-shadow 0.4s, transform 0.4s; }
.roulette-strip .it.is-win { box-shadow: inset 0 0 0 3px #fff, 0 0 30px rgba(255,255,255,0.3); }
.roulette-strip .it.is-win.is-rare { box-shadow: inset 0 0 0 3px #fff, 0 0 40px 6px var(--glow); }
.roulette.is-vertical { height: 340px; --tile: 150px; }
.roulette.is-vertical::before { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 3px; margin: -1.5px 0 0; }
.roulette.is-vertical::after { background: linear-gradient(180deg, #06090e 0%, transparent 20%, transparent 80%, #06090e 100%); }
.roulette.is-vertical .roulette-strip { flex-direction: column; left: 50%; top: 0; margin-left: calc(var(--tile) / -2); }

/* ---------- подробности предмета ---------- */
.it-details { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: center; }
.it-details .it { aspect-ratio: 1 / 0.9; }
.kv { display: grid; gap: 7px; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; text-align: right; }
.floatbar { position: relative; margin-top: 14px; padding-top: 6px; }
.floatbar-track { display: flex; height: 7px; border-radius: 4px; overflow: hidden; }
.floatbar-track i:nth-child(1) { background: #3ddc84; } .floatbar-track i:nth-child(2) { background: #9be15d; } .floatbar-track i:nth-child(3) { background: #f2c94c; } .floatbar-track i:nth-child(4) { background: #f2994a; } .floatbar-track i:nth-child(5) { background: #eb5757; }
.floatbar b { position: absolute; top: 0; width: 3px; height: 19px; margin-left: -1.5px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 2px rgba(0,0,0,0.5); }
@media (max-width: 560px) { .it-details { grid-template-columns: 1fr; } }

/* ---------- подвал ---------- */
.footer { margin-top: 70px; background: #05080c; border-top: 1px solid var(--line); padding: 34px 0 40px; color: var(--muted); font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; }
.footer h4 { margin: 0 0 12px; color: var(--text); font-size: 13px; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer a:hover { color: var(--text); }
.footer .note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); max-width: 110ch; }

/* нижнее меню телефона */
.tabbar { display: none; }

/* ---------- адаптив ---------- */
/* широкий экран: пять кейсов в ряд с воздухом между ними (карточки ~300px, как у крупных кейс-сайтов) */
@media (min-width: 1500px) {
  .cases { --per: 5; --gx: 34px; }
}
/* ноутбук 1366×768: герой компактнее, чтобы полоса действий и фильтры каталога попадали на первый экран */
@media (max-width: 1500px) {
  .hero { padding: 24px 34px 22px; gap: 16px 30px; }
  .hero-kicker { margin-bottom: 10px; }
  .hero h1 { font-size: clamp(28px, 3vw, 44px); }
  .hero-sub { margin-top: 10px; font-size: 14.5px; }
  .hero-cta { margin-top: 18px; }
  .hero-meta { margin-top: 12px; gap: 6px 12px; font-size: 12px; }
  .hero-note { margin-top: 10px; font-size: 12px; }
  .hero-case .art { max-width: 200px; }
  .hero-case-name { font-size: 15px; }
  .hero-case .price-pill { display: none; }   /* цена уже на главной кнопке */
  .hero-prizes-lbl { margin-top: 6px; }
}
@media (max-width: 1200px) {
  .cases { --per: 4; }
  .mainnav a span { display: none; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .gw-row { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr); gap: 20px 28px; padding: 28px 30px 26px; }
  .hero-case .art { max-width: 300px; }
  .quick { grid-template-columns: 1fr 1fr; }
  .quick .qa:last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --header-h: 62px; --feed-h: 78px; }
  .topbar { display: none; }
  .mainnav { display: none; }
  .profile-btn span { display: none; }
  .profile-btn { padding: 0 6px; }
  .feed-best { width: 160px; }
  .feed-best img { width: 84px; right: 12px; top: 20px; height: 46px; }
  .feed-tile { width: 86px; }
  .feed-tile img { height: 50px; }
  .feed-live .why { display: none; }
  .banners { grid-template-columns: 1fr; }
  .banner { min-height: 0; padding: 16px 18px; }
  .banner h3 { margin-bottom: 0; font-size: 15px; }
  .banner .btn { margin-top: 12px; }
  /* телефон: кейс дня сверху небольшим, под ним заголовок и кнопки на всю ширину */
  /* колонка flex, а не grid: ширина текста = ширина экрана, ничего не вылезает за край */
  .hero { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 12px; padding: 18px 16px 20px; border-radius: 14px; text-align: center; }
  .hero-text { width: 100%; max-width: 100%; min-width: 0; }
  .hero-text > * { max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .hero::before { inset: -30% -20% 40% -20%; background: radial-gradient(60% 60% at 50% 30%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); }
  /* телефон: сундук убираем, полка призов становится картинкой героя, кнопка поднимается выше */
  .hero-case { order: -1; width: 100%; }
  .hero-case .art { display: none; }
  .hero-tag { position: static; transform: none; margin-bottom: 4px; }
  .hero-case-name { font-size: 15px; }
  .hero-case .price-pill { display: none; }
  .hero-prizes-lbl { margin-top: 6px; }
  .hero-prizes { margin-top: 6px; }
  .hp { padding: 6px 7px; }
  .hp .it-top { top: 6px; left: 6px; right: 6px; }
  .hp-odds { height: 16px; padding: 0 4px; font-size: 9px; }
  .hp img { top: 20%; height: 46%; }
  .hero-note { margin: 10px auto 0; }
  .hero-kicker { display: none; }   /* на телефоне «Кейс дня» уже написано над полкой призов */
  .hero h1 { margin-top: 6px; font-size: 24px; }
  .hero-sub { margin: 10px auto 0; font-size: 13.5px; }
  .hero-cta { margin-top: 16px; }
  .hero-cta .btn { flex: 1 1 100%; min-height: 50px; }
  .hero-meta { justify-content: center; margin-top: 14px; gap: 6px 12px; font-size: 11.5px; }
  .quick { grid-template-columns: 1fr; gap: 8px; }
  .qa { min-height: 60px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-tile svg { width: 40px; height: 40px; }
  .cases { --per: 2; --gx: 10px; row-gap: 24px; }
  .case-name { font-size: 13.5px; }
  .price-pill { height: 38px; padding: 0 12px; font-size: 14px; }
  .filters { position: static; }
  .subnav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: #0a0f16; border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 6px; font-size: 9.5px; font-weight: 800; text-transform: uppercase; color: #8d99ab; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.is-on { color: var(--yellow); }
  body { padding-bottom: 68px; }
  .toasts { left: 12px; right: 12px; bottom: 78px; }
  .toast { max-width: none; }
  /* пока открыто окно, тосты уходят наверх, чтобы не закрывать его кнопки */
  body:has(.modal-backdrop) .toasts { top: 12px; bottom: auto; }
  .roulette { --tile: 130px; }
  .roulette-strip { top: 12px; }
}
/* после входа рядом с профилем появляются кешбек и ник: на ноутбуках сжимаем шапку, чтобы всё влезало */
@media (max-width: 1440px) {
  .header .wrap { gap: 18px; }
  .mainnav { gap: 2px; }
  .mainnav a { padding: 0 10px; }
  .profile-btn > span:not(.ava) { display: none; }
  .profile-btn { padding: 0 6px; }
}
@media (max-width: 860px) {
  .header .wrap { gap: 14px; }
  .hdr-cb .lbl { display: none; }
  .hdr-points { height: 40px; padding: 0 10px; font-size: 13.5px; }
  .hdr-spin { height: 40px; padding: 0 10px; font-size: 11px; }
  .hdr-spin .lbl { display: none; }
  .case-tier { font-size: 11px; padding: 6px 8px; }
  .case-tier b { font-size: 11.5px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 12px; }
  .gw-row { grid-template-columns: 1fr; }
  .header .wrap { gap: 8px; }
  .hdr-side { gap: 6px; }
  .hdr-cb { display: none; }
  /* на телефоне после входа в шапке: лого, баланс, баллы, аватар (ссылка в профиль). Ник, уровень и «Выйти»
     не влезают: они на странице профиля. Кнопка «Крутить» живёт на странице события и в окне бонусов */
  .hdr-name, .hdr-lvl, .hdr-out { display: none; }
  .hdr-me { height: 40px; padding: 0 3px; gap: 0; }
  .hdr-ava { width: 34px; height: 34px; }
  .hdr-spin { display: none; }
  .header .wrap { overflow-x: clip; }
  .hdr-points { height: 40px; padding: 0 8px; gap: 4px; font-size: 13px; }
  .hdr-points svg { width: 14px; height: 14px; }
  .hdr-login { min-height: 38px; padding: 0 12px; font-size: 11.5px; }
  .hdr-login .long { display: none; }
  .hdr-login .short { display: inline; }
  .inv-btn { display: none; }
  .balance { gap: 8px; height: 40px; padding: 0 4px 0 10px; }
  .balance .plus { width: 30px; height: 30px; }
  .balance { font-size: 14px; }
  .stat-tile { padding: 10px 12px; min-height: 64px; }
  .stat-tile b { font-size: 14px; }
  .logo { font-size: 18px; }
  .logo svg { width: 28px; height: 28px; }
  .header .logo .logo-svg, .header .logo .logo-img { width: 128px; margin: -6px 0; }
}
@media (max-width: 400px) {
  /* 390px: лого 96 + баланс ~100 + баллы ~60 + профиль 40 + отступы ≈ 320 из 366 доступных */
  .header .logo .logo-svg, .header .logo .logo-img { width: 96px; margin: -4px 0; }
  .header .wrap { gap: 6px; }
  .hdr-side { gap: 5px; }
  .balance { padding: 0 3px 0 8px; gap: 5px; font-size: 13px; }
  .balance .plus { width: 26px; height: 26px; }
  .hdr-points { padding: 0 6px; font-size: 12.5px; gap: 3px; }
  .hdr-ava { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
